Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Simple algebraic calculations

by moritz (Cardinal)
on Apr 18, 2014 at 19:56 UTC ( #1082813=note: print w/ replies, xml ) Need Help??


in reply to Simple algebraic calculations

Since you mention algebraic in the title (but not in the body) of your question, I feel I have to ask: are you actually doing algebraic (symbolic) calculations?

If yes, you should use a proper computer algebra system (Mathematica, Maple, Maxima, yacas, ...). Despite all the love for Perl, using a tool better suited for the job will save you lots of time and trouble.

If no, Physics::Unit might be worth considering for the units management. I haven't use it before, but looks quite comprehensive to me.

Regarding the repetitive aspect, it's a good idea to factor commonly use things out into subroutines, and collect them in a module. That way, repetitiveness reduces over time.


Comment on Re: Simple algebraic calculations
Re^2: Simple algebraic calculations
by wanna_code_perl (Pilgrim) on Apr 19, 2014 at 16:19 UTC
    If yes, you should use a proper computer algebra system (Mathematica, Maple, Maxima, yacas, ...). Despite all the love for Perl, using a tool better suited for the job will save you lots of time and trouble.

    Perhaps you are right. With all the difficulty I had coming up with a compelling example for discussion, that's probably a symptom of me trying to shove a square peg in a round hole. Yes, symbolic calculations would simplify most of what I'm doing, so maybe I should indeed use a full math language--I can always glue in a bit of Perl if absolutely necessary. Thank you.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1082813]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2015-07-02 05:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (27 votes), past polls