NumDart
Constants
Mathematical and physical constants and unit conversion factors.
Like scipy.constants
The constants follow scipy.constants: SI values of physical constants, and factors that convert a unit to its SI base (for example degree is one degree in radians).
import 'package:scidart/numdart.dart';
void main() {
print('speed of light: $speedOfLight m/s');
print('Planck constant: $Planck J s');
print('golden ratio: $golden');
print('1 degree in radians: $degree');
}
Output
speed of light: 299792458 m/s Planck constant: 6.62607015e-34 J s golden ratio: 1.618033988749895 1 degree in radians: 0.017453292519943295
The full list is in the API reference.