[SciPy-User] Error

Waléria Antunes David waleriantunes@gmail....
Wed Oct 20 11:45:13 CDT 2010


Hi all,

I have this code: http://pastebin.com/9qi75Bbv

This equation has integral calculus.
Is an extended equation so i decided to split it into pieces, first part
called "a" and the second "b".

Well, i have three conditions:

if omega_k == 0
    (cauculus)

if omega_k > 0
    (cauculus)
if omega_k < 0
     (cauculus)

But returns me this error:

Request Method:         POST
Request URL:
http://localhost:8000/index/<http://www.google.com/url?sa=D&q=http://localhost:8000/index/&usg=AFQjCNGewui6bFz-4vTORtifwhVXsUSktw>
Exception Type:         NameError
Exception Value:

global name 'omega_k' is not defined
Exception Location:     \supernovas_Ia\..\supernovas_Ia\supernovas
\views.py in index, line 17

What am I doing wrong? And the way I'm using the condition correct? And then
to return the result in the graph is correct?

Thanks,
Waleria
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20101020/fff68391/attachment.html 


More information about the SciPy-User mailing list