Expand description
- A collection of math functions
§Metadata
- Copyright: © 2022-2023
CroftSoft Inc
- Author:
David Wallace Croft
- Java created: 1998-12-27
- Java updated: 2008-08-09
- Rust created: 2022-08-24
- Rust updated: 2023-03-20
§History
- Adapted from the Java class com.croftsoft.core.math.MathLib
- In the Java-based
CroftSoft Core Library
- In the Java-based
Structs§
- Clip
- Clips the value to a minimum and maximum range
- Cumulative
Distribution Function - Cumulative Distribution Function (CDF)
- Polar
Coordinates - Coordinates specified as angle and radius from the origin
- Rectangular
Coordinates - Cartesian (x, y) coordinates
- Wrap
- Wraps the value to [minimum, minimum + range)
Enums§
- Clip
Error - Factor
Error - Greatest
Common Factor Error - Wrap
Error - Wrap
Error Float Resolution - Wrap
Error Invalid Argument
Functions§
- factor
- Factors a number into its primes
- greatest_
common_ factor - Computes the greatest common factor for two positive integers
- sigmoid
- The sigmoid or logistic function
- sigmoid_
derivative - The derivative of the sigmoid function with respect to the argument