Chris Maness
unread,Jul 2, 2014, 7:33:33 PM7/2/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sage-s...@googlegroups.com
I don't see what the issue is with the code below:
phinS=e^(i*n*pi*x/a);
phim=e^(-i*m*pi*x/a);
a=var('a');
assume(a > 0);
n=1;
m=1;
integrate(phinS*phim,x,-a,a)
I get this undecipherable error:
Traceback (most recent call last): integrate(phinS*phim,x,-a,a)
File "", line 1, in <module>
File "/private/var/folders/ql/h8_whzn142g4zv11m77dlh4h0000gn/T/tmpCThsN_/___code___.py",
line 3, in <module>
phinS=e**(i*n*pi*x/a);
File "element.pyx", line 1715, in
sage.structure.element.RingElement.__mul__
(sage/structure/element.c:15355)
File "coerce.pyx", line 847, in
sage.structure.coerce.CoercionModel_cache_maps.bin_op
(sage/structure/coerce.c:8326)
TypeError: unsupported operand parent(s) for '*': 'Symbolic Ring' and
'<type 'function'>'
Any suggestions?
Thanks,
Chirs