Note
Go to the end to download the full example code.
Exponential Map Example#
Compute the exponential map on the unit sphere.
Input vectors:
x = [0. 0. 1.]
v = [1. 1. 0.]
Exponential map exp_map(x, v):
[0.698456 0.698456 0.15594369]
import numpy as np
from spheresmooth import exp_map
# Example inputs
x = np.array([0.0, 0.0, 1.0])
v = np.array([1.0, 1.0, 0.0])
print("Input vectors:")
print("x =", x)
print("v =", v)
# Compute exponential map: exp_map(x, v)
result = exp_map(x, v)
print("\nExponential map exp_map(x, v):")
print(result)
Total running time of the script: (0 minutes 0.001 seconds)