MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / template

Function template

src/math/trig_functions.rs:7–62  ·  view source on GitHub ↗

Function that contains the similarities of the sine and cosine implementations Both of them are calculated using their MacLaurin Series Because there is just a '+1' that differs in their formula, this function has been created for not repeating

(x: T, tol: f64, kind: i32)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

sineFunction · 0.85
cosineFunction · 0.85

Calls 2

round_up_to_decimalFunction · 0.85
factorialFunction · 0.70

Tested by

no test coverage detected