<< CL_kp_M2v Orbit properties CL_kp_anomConvertCir >>

CelestLab >> Orbit properties > CL_kp_anomConvert

CL_kp_anomConvert

Conversion of anomaly

Calling Sequence

[anom2] = CL_kp_anomConvert(type_anom1, type_anom2, ecc, anom1)

Description

Parameters

type_anom1:

(string) Type of input anomaly ("M", "E", "v") (1x1)

type_anom2:

(string) Type of output anomaly ("M", "E", "v") (1x1)

ecc :

Eccentricity (1xN or 1x1)

anom1:

Input anomaly of type type_anom1 (1xN or 1x1)

anom2:

Output anomaly of type type_anom2 (1xN)

Authors

See also

Examples

// Mean anomaly to true anomaly :
ecc = 0.3;
M = [-0.1, 10.2]; // rad
v = CL_kp_anomConvert("M", "v", ecc, M)

// Consistency test:
M - CL_kp_anomConvert("v", "M", ecc, v) // => 0

Report an issue
<< CL_kp_M2v Orbit properties CL_kp_anomConvertCir >>