invertible - Define invertible functions and their compositions
A Dart library for defining invertible functions and their compositions
Usage
See example/invertible_example.dart
final InvertibleRealFunction celsiusToFahrenheit =
InvertibleRealFunction.parse('* 9; / 5; + 32;');
final InvertibleRealFunction fahrenheitToCelsius = celsiusToFahrenheit.inverse();
final num fahrenheit = celsiusToFahrenheit(40);
// fahrenheit == 104
final num celsius = fahrenheitToCelsius(41);
// celsius == 5
Syntax
See documentation for more