Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Converting a Number into a Radical

by Anonymous Monk
on Dec 18, 2013 at 04:49 UTC ( #1067587=note: print w/replies, xml ) Need Help??


in reply to Converting a Number into a Radical

I don't know of a Perl solution, but SymPy (see www.sympy.org) can do this kind of thing.

>>> sqrt(49) 7 >>> sqrt(27) 3*sqrt(3) >>> simplify(sqrt(4+sqrt(448))) 2*sqrt(1 + 2*sqrt(7))

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1067587]
help
Chatterbox?
[tye]: though, really, I just replace with single calls to clock_gettime( CLOCK_PROCESS_CPUT IME_ID)

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2017-02-23 03:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (338 votes). Check out past polls.