Created
December 19, 2018 19:54
-
-
Save NebulaFox/1e331c1d672f4525db95c888b7a516f3 to your computer and use it in GitHub Desktop.
test tan π/2 and -π/2 is infinity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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