v2.0.0
invertible
一個用於定義可逆函數及其組合的 Dart 庫
3喜歡 2.1萬近 30 天下載160Pub 分數
AndroidiOSWebmacOSWindowsLinux
一個用於定義可逆函數及其組合的 Dart 庫。
以下為英文專案原文快照,最新內容請造訪 GitHub。
Version Build Status Coverage Status License
A Dart library for defining invertible functions and their compositions
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
See documentation for more