scipy_port 0.1.1 copy "scipy_port: ^0.1.1" to clipboard
scipy_port: ^0.1.1 copied to clipboard

A simple (and partial) scipy port for Dart. Includes Beta and Gamma functions, hypergeometric function, Student's t distribution CDF and more.

example/main.dart

import 'package:scipy_port/scipy_port.dart';

main() {
  /* Check the scipy documentation for full examples. Here you just have
   * some functions. */

  /* P(T<t) where T is a Student's t-distribution with n degrees of freedom */
  double t = 1.2341;
  int n = 3;
  print("${stdtr(n, t)}");

  /* Hypergeometric function */
  double res = hyp2f1(1, 1/2, 1, 3);
  print(res);

  /* Gamma */
  res = gamma(1/2);
  print(res);
}
2
likes
40
pub points
16%
popularity

Publisher

unverified uploader

A simple (and partial) scipy port for Dart. Includes Beta and Gamma functions, hypergeometric function, Student's t distribution CDF and more.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on scipy_port