2020-04-30 02:34:23 +0200 | received badge | ● Taxonomist |
2018-01-20 02:15:06 +0200 | received badge | ● Famous Question (source) |
2013-07-04 03:01:24 +0200 | received badge | ● Notable Question (source) |
2012-08-08 05:11:45 +0200 | received badge | ● Popular Question (source) |
2011-09-30 13:00:52 +0200 | answered a question | scipy interpolate in sage I just misspelled the line, I am using the correct call in my program. Since it seems to work for you, I'll check it out further and come back if I find something. Thanks. |
2011-09-30 11:53:55 +0200 | asked a question | scipy interpolate in sage Hi there, I am trying to interpolate a 1D function in sage using scipy.interpolate.interp1d(). I have an array of X values and an array of Y values. I generate the interpolation function like: f = scipy.interpolation.interp1d(x, y, kind='cubic') So far so good. Now, when I try to calculate the value of the function at a given value: f(1.0) I get the following error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_2.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -- coding: utf-8 --\n" + _support_.preparse_worksheet_cell(base64.b64decode("c2lsaWNvbl9yZWFsKDIwMC4wKQ=="),globals())+"\n"); execfile(os.path.abspath("___code___.py")) File "", line 1, in <module> File "/tmp/tmpEKr8Bl/___code___.py", line 3, in <module> exec compile(u'silicon_real(_sage_const_200p0 ) File "", line 1, in <module> NameError: name 'f' is not defined |