1 unstable release
0.1.0 | Oct 26, 2020 |
---|
#1165 in Math
12KB
261 lines
mathlib
Introduction
mathlib
is an effort to provide a native math library for Rust, which covers multiple domains of mathematics. At this moment, this library is a work-in-progress, but I hope to make this library a stable reality in the near future.
Stability
This library is currently under development, which implies that there may be unpredictable changes to the public API.
License
This library is distributed under the permissive Apache-2.0 License.
lib.rs
:
mathlib
mathlib
is an effort to provide a native math library for Rust developers that covers
a multiple domains in mathematics.
Note: This library is current a work-in-progress
trig
The trig module provides primitives and methods for trigonometric operations. Most importantly,
the trig
module provides two types: DegreeAngle
and RadianAngle
which can be used for most trigonometric
operations
Type coercions
Always remember that RHS is preferred over LHS. Let's take a look at a couple of cases:
DegreeAngle<T>
+RadianAngle<T>
=RadianAngle<T>
RadianAngle<T>
+DegreeAngle<T>
=DegreeAngle<T>