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

Re^4: Regarding the polynomial evaluation. Stuck at one part. please helpppp!!

by freekngeek (Acolyte)
on Jan 22, 2013 at 15:24 UTC ( [id://1014694]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Regarding the polynomial evaluation. Stuck at one part. please helpppp!!
in thread Calculating polynomials and pushing them into an array. Stuck at one part. please helpppp!!

Thanks for your reply. Yes, that's exactly what I need to solve. when I am running my script it's giving me these errors

Use of uninitialized value $polynominal in substitution (s///) at /hom +e/vtyagi/perl/EMcheck1/pkg_EMIRcheck/EMIRcheck_tools.pm line 32. Use of uninitialized value $polynominal in substitution (s///) at /hom +e/vtyagi/perl/EMcheck1/pkg_EMIRcheck/EMIRcheck_tools.pm line 33. Use of uninitialized value $polynominal in eval "string" at /home/vtya +gi/perl/EMcheck1/pkg_EMIRcheck/EMIRcheck_tools.pm line 34.
About eval, I have used eval for my last few scripts and it worked very smooth and it's also giving me outputs for the rest of the equations. May be next time i'll keep your advice in my mind and use Math::GSL::Poly. Do you think it could be the problem with format of that particular equation, I mean all the equation have been generated with same format, then what's the problem with this one.

  • Comment on Re^4: Regarding the polynomial evaluation. Stuck at one part. please helpppp!!
  • Download Code

Replies are listed 'Best First'.
Re^5: Regarding the polynomial evaluation. Stuck at one part. please helpppp!!
by Anonymous Monk on Jan 22, 2013 at 15:27 UTC

    Do you think it could be the problem with format of that particular equation, I mean all the equation have been generated with same format, then what's the problem with this one.

    Hmm, perl seems to tell you that its a problem with that (syntax error)

    I wouldn't waste my time with string eval

      It worked, I missed a bracket while parsing the text into an array. And I got your point, next time I won't use eval and if still I got a problem, I'll come and knock at your door. Thanks a lot man.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (None)
    As of 2024-04-25 00:57 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found