The Octave Forge package repository is no longer actively maintained. Please find Octave Packages at https://packages.octave.org.

Navigation

Operators and Keywords

Function List:

C++ API

Function File: sm = deg2sm (deg)
Function File: sm = deg2sm (deg, radius)
Function File: sm = deg2sm (deg, sphere)

Converts angle n degrees to distance in statute miles by multiplying angle with radius.

Calculates the distances sm in a sphere with radius (also in statute miles) for the angles deg. If unspecified, radius defaults to 3958 sm, the mean radius of Earth.

Alternatively, sphere can be one of "sun", "mercury", "venus", "earth", "moon", "mars", "jupiter", "saturn", "uranus", "neptune", or "pluto", in which case radius will be set to that object’s mean radius.

See also: deg2km, deg2nm, km2rad, km2deg, nm2deg, nm2rad, rad2km, rad2nm, rad2sm, sm2deg, sm2rad.

Package: mapping