Ask Your Question

yotama9's profile - activity

2018-03-06 13:27:41 +0200 received badge  Notable Question (source)
2017-05-02 15:38:26 +0200 received badge  Good Question (source)
2016-08-13 08:52:04 +0200 received badge  Popular Question (source)
2013-05-26 06:29:59 +0200 received badge  Famous Question (source)
2013-04-24 20:04:43 +0200 received badge  Notable Question (source)
2012-11-07 05:56:29 +0200 received badge  Notable Question (source)
2012-09-15 11:04:45 +0200 received badge  Popular Question (source)
2012-05-20 09:50:44 +0200 received badge  Popular Question (source)
2011-07-12 12:03:43 +0200 received badge  Taxonomist
2011-06-09 14:40:34 +0200 commented answer summing over bessel function

Thanks. I need to sum over positive and negative k and I will not include K(0,0).

2011-06-08 16:13:44 +0200 received badge  Nice Question (source)
2011-06-06 19:27:55 +0200 received badge  Student (source)
2011-06-06 03:55:23 +0200 asked a question how to tell sage to give numeric result.

If I give sage the following:

sin(2*pi/30)

It give in return

sin(1/15*pi)

While I want the numeric value. I know that the most accurate result is the one given by sage by I need to compare it with another result I gut from numerical calculation.

2011-06-06 03:51:58 +0200 commented answer summing over bessel function

So there is no way around this, perhaps using a for loop...

2011-06-05 12:26:22 +0200 asked a question summing over bessel function

Hi.

I need to sum over a bessel function K:

sum(bessel_K(0,2*PI*abs(x+k)),k,-oo,oo)

How ever I get an error:

TypeError: Cannot evaluate symbolic expression to a numeric value.

Which sounds logical. I there any way around this?

Thanks

2010-08-23 18:33:14 +0200 commented question unable to use interact

You are probably right. I'll check this out later. Thanks

2010-08-23 17:12:50 +0200 asked a question unable to use interact

Hi guys.

I'm tying to use interact to show a plot. I input the following commands:

@interact
def _(a=(0,2)):
    show(plot(sin(x*(1+a*x)), (x,0,6)), figsize=4)

which I found typing help(sage) and got an error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_171.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8
-*-\\n" +
_support_.preparse_worksheet_cell(base64.b64decode("X2ludGVyYWN0Xy5yZWNv\
bXB1dGUoIjc1Iik="),globals())+"\\n");
execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single')
  File "", line 1, in <module>

  File "/tmp/tmpgG2nqV/___code___.py", line 2, in <module>
    exec compile(u'_interact_.recompute("75")' + '\n', '', 'single')
  File "", line 1, in <module>

  File
"/home/yotam/Documents/Apps/sage/sage-4.5.2-linux-32bit-ubuntu_10.04_lts\
-i686-Linux/local/lib/python2.6/site-packages/sagenb-0.8.2-py2.6.egg/sag\
enb/notebook/interact.py", line 3746, in recompute
    S['function']()
  File
"/home/yotam/Documents/Apps/sage/sage-4.5.2-linux-32bit-ubuntu_10.04_lts\
-i686-Linux/local/lib/python2.6/site-packages/sagenb-0.8.2-py2.6.egg/sag\
enb/notebook/interact.py", line 2558, in _
    z = f(*[variables[arg] for arg in args])
  File "/tmp/tmpE4fUak/___code___.py", line 5, in _
    show(plot(sin(x*(_sage_const_1 +a*x)), (x,_sage_const_0
,_sage_const_6 )), figsize=_sage_const_4 )
TypeError: can't multiply sequence by non-int of type 'float'

What have I missed?