-
-
Save giruzou/b21661688a9a3bc34b84fd4724446897 to your computer and use it in GitHub Desktop.
Ruby平方根 ref: https://qiita.com/DrqYuto/items/89205337150f3abd0dfc
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
require 'complex' | |
p Math.sqrt(2) | |
#=>1.4142135623730951 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment