#hidden #trigonometry

nightly vtrig

Hidden trigonometry functions with their derivates and integrals

2 stable releases

1.0.1 Sep 28, 2021

#872 in Math

27 downloads per month

Apache-2.0

495KB
82 lines

Secret trigonometry

Hidden Trigonometry functions

The versine or versed sine is a trigonometric function found in some of the earliest (Vedic Aryabhatia I) trigonometric tables.
The versine of an angle is 1 minus its cosine.
There are several related functions, most notably the coversine and haversine.
The latter, half a versine, is of particular importance in the haversine formula of navigation
(source: Wikipedia)

vsin(Θ) = 1 - cos(Θ)

vsin

cvsin(Θ) = 1 - sin(Θ)

cvsin

vcos(Θ) = 1 + cos(Θ)

vcos

cvcos(Θ) = 1 + sin(Θ)

cvcos

hvsin(Θ) = (1 - cos(Θ)) / 2

hvsin

hcvsin(Θ) = (1 - sin(Θ)) / 2

hcvsin

hvcos(Θ) = (1 + cos(Θ)) / 2

hvcos

hcvcos(Θ) = (1 + sin(Θ)) / 2

hcvcos

Hidden Trigonometry calculus, derivates and integrals

Examples

derivates
---------
d(vsin x) / dx = sin x
d(cvsin x) / dx = -cos x

integrals
---------
∫ vsin(x) dx = x - sin x + C
∫ cvsin(x) dx = x + cos x + C

No runtime deps