Square root function in F #

How to find the square root of a number in F #? Do we have a Sqrt function in F # just like we have a Math.Sqrt () function in Java? I am new to F # and have not found any significant help on the Internet.

+4
source share
2 answers

F # already has a sqrt function, so you should just be able to use:

 sqrt x 

where x is the value you want to find in the root.

+20
source

Yes, F # comes with the "sqrt" function. "Sqrt" is called :)

http://blogs.msdn.com/b/dsyme/archive/2008/09/01/the-f-operators-and-basic-functions.aspx

F # has more numerical libraries available, either open source (for example, CodePlex), or from third-party providers:

http://msdn.microsoft.com/en-us/library/vstudio/hh304372%28v=vs.100%29.aspx

+8
source

Source: https://habr.com/ru/post/1489626/


All Articles