Skip to content

Instantly share code, notes, and snippets.

@NebulaFox
Created December 19, 2018 19:54
Show Gist options
  • Save NebulaFox/1e331c1d672f4525db95c888b7a516f3 to your computer and use it in GitHub Desktop.
Save NebulaFox/1e331c1d672f4525db95c888b7a516f3 to your computer and use it in GitHub Desktop.
test tan π/2 and -π/2 is infinity
import 'dart:math';
void main() {
final v = tan(pi * 0.5);
final u = tan(-pi * 0.5);
print("tan(π/2) = $v");
print("tant(-π/2) = $v");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment