Roots of a function: Difference between revisions

Added Julia version
(Added GNU Scientific Library version to C)
(Added Julia version)
Line 1,105:
"~1.9999999999999993"
]</lang>
 
=={{header|Julia}}==
 
Assuming that one has the Roots package installed:
 
<lang Julia>using Roots
 
println(fzeros(x -> x^3 - 3x^2 + 2x))</lang>
 
{{out}}
 
<pre>[0.0,1.0,2.0]</pre>
 
=={{header|Liberty BASIC}}==
Anonymous user