vtrig

Crates.iovtrig
lib.rsvtrig
version1.0.1
sourcesrc
created_at2021-09-28 14:59:23.2746
updated_at2021-09-28 21:36:30.720615
descriptionHidden trigonometry functions with their derivates and integrals
homepage
repositoryhttps://github.com/BitFields/vtrig
max_upload_size
id457573
size496,683
AES (JosipHaboic)

documentation

README

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
Commit count: 36

cargo fmt