Re: [sage-support] Re: Latex rendering in axes_labels not working

2010-08-13 Thread Mani Chandra
31:56 CEST 2010 x86_64 Intel(R) Core(TM) i7 CPU Q 820 @ 1.73GHz GenuineIntel GNU/Linux Mani On Fri, Aug 13, 2010 at 9:18 PM, Jason Grout wrote: > On 8/13/10 3:21 AM, Mani Chandra wrote: > >> Hi, >> >> The following example code does not work: >> >> plot(sin(x^2),

[sage-support] Latex rendering in axes_labels not working

2010-08-13 Thread Mani Chandra
Hi, The following example code does not work: plot(sin(x^2), (x, -3, 3), axes_labels=['$x$','$y$']) Traceback (click to the left of this block for traceback) ... TypeError: coercing to Unicode: need string or buffer, dict found But works when I remove the '$' symbo

Re: [sage-support] Re: Symbolic determinant

2010-08-12 Thread Mani Chandra
Hi, In the same context, how can I get the following to work? A = matrix(SR, [[x, 1], [x**3, 4]]) A.eigenvectors_right() __main__:1: UserWarning: Using generic algorithm for an inexact ring, which may result in garbage from numerical precision issues. __main__:1: UserWarning: Using generic algor

[sage-support] Bug in integrate

2009-09-09 Thread Mani chandra
: sage71 : integrate(sage67,sage68,sage69,sage70)$ Maxima ERROR: Division by 0 What went wrong? Thanks, Mani chandra --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

[sage-support] Re: Problem with simplify

2009-09-01 Thread Mani chandra
Mani chandra wrote: > Hi, > > There seems to be some issue with "simplify" when used in the > following manner: > > sage: var('x, a, b') > (x, a, b) > sage: x = a + I*b > sage: x.conjugate() > conjugate(a) - I*conjugate(b) > sage: x.conju

[sage-support] Problem with simplify

2009-09-01 Thread Mani chandra
why is SAGE giving out a - I*b when I say x.conjugate().simplify() but conjugate(a) - I*conjugate(b) when only x.conjugate() is called? Thanks, Mani chandra --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe fr

[sage-support] Re: How does one define a "real" variable

2009-08-27 Thread Mani chandra
Minh Nguyen wrote: > On Sun, Aug 23, 2009 at 12:16 AM, Mani chandra wrote: > >> Minh Nguyen wrote: >> > > Ticket #6802 has been closed as a duplicate of #6559. > > Hi, Just wanted to ask, since you're the release manager for the next release

[sage-support] Re: How does one define a "real" variable

2009-08-22 Thread Mani chandra
Robert Bradshaw wrote: > On Aug 22, 2009, at 3:13 AM, Mani chandra wrote: > > >> Mani chandra wrote: >> >>> Hi, >>> >>> How does one define a variable in sage and make sure the it's >>> conjugate is the

[sage-support] Re: How does one define a "real" variable

2009-08-22 Thread Mani chandra
Minh Nguyen wrote: > Hi Mani, > > On Sat, Aug 22, 2009 at 8:40 PM, Mani chandra wrote: > >> William Stein wrote: >> >>> >>> sage: var('a') >>> sage: a.conjugate() >>> conjugate(a) >>> >>

[sage-support] Re: How does one define a "real" variable

2009-08-22 Thread Mani chandra
> > Unfortunately, I don't think this is implemented yet. > > -- William > > Hi, Can this be some sort of a feature request for the next release? Thanking you, Mani chandra --~--~-~--~~~---~--~~ To post to this group, send email to

[sage-support] Re: How does one define a "real" variable

2009-08-22 Thread Mani chandra
Mani chandra wrote: > Hi, > > How does one define a variable in sage and make sure the it's > conjugate is the same as the variable itself? > > Thanks, > Mani chandra > > > > > Hi, Perhaps I wasn't specific. sage: var('a') sage

[sage-support] How does one define a "real" variable

2009-08-21 Thread Mani chandra
Hi, How does one define a variable in sage and make sure the it's conjugate is the same as the variable itself? Thanks, Mani chandra --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this

[sage-support] Re: Memory issues with maxima in SAGE

2009-08-21 Thread Mani chandra
Ondrej Certik wrote: > On Mon, Aug 17, 2009 at 11:06 AM, William Stein wrote: > >> On Mon, Aug 17, 2009 at 6:27 AM, Mani chandra wrote: >> >>> William Stein wrote: >>> >>>> On Mon, Aug 17, 2009 at 2:26 AM, Juan Jose >>>>

[sage-support] Re: Memory issues with maxima in SAGE

2009-08-19 Thread Mani chandra
Hi, Sage now runs fine when recompiled with a much larger memory limit for maxima. (Passing the command through maxima() didn't work). Thanks to everybody for helping out. Regards, Mani chandra --~--~-~--~~~---~--~~ To post to this group, send ema

[sage-support] Re: Memory issues with maxima in SAGE

2009-08-17 Thread Mani chandra
6772 > > -- William > > > > > Hi, I'm glad that this issue has finally been taken up. But as an interm measure, how does one pass this command through a sage code? I tried maxima.eval_String, but it doesn't seem to work. In an unrelated note, I rewrote

[sage-support] Re: Memory issues with maxima in SAGE

2009-08-16 Thread Mani chandra
Robert Dodier wrote: > Mani chandra wrote: > > >> I've attached the value of a particular func where it fails. But >> this varies though. Also I restarted the code, making sure I evaluate >> only the problematic part and it works. So, it must be an interna

[sage-support] Re: Memory issues with maxima in SAGE

2009-08-16 Thread Mani chandra
Robert Dodier wrote: > Mani chandra wrote: > > >> Yes, the computation of the "select_mode" function does indeed >> succeed for simple expressions. But if you run the code, you will notice >> that it works for some modes which probably have more complic

[sage-support] Re: Memory issues with maxima in SAGE

2009-08-15 Thread Mani chandra
William Stein wrote: > On Sat, Aug 15, 2009 at 5:44 AM, Mani chandra wrote: > >> Hi, >> >>I wrote a code in sage to construct a Low Dimensional model for the >> Magnetohydrodynamic equations to study dynamos etc... But the program >> crashes at differe

[sage-support] Re: Memory issues with maxima in SAGE

2009-08-15 Thread Mani chandra
Robert Dodier wrote: > Mani chandra wrote: > > >> def select_mode(func,l,m,n): >> val = (func*exp(-I*(l*x + m*y + >> n*z))).integrate(x,0,2*pi).integrate(y,0,2*pi).integrate(z,0,2*pi) >> return val/(8*pi**3) >> > > I guess l, m, and n

[sage-support] Memory issues with maxima in SAGE

2009-08-15 Thread Mani chandra
ion backend for SAGE is Maxima, Pynac or Sympy? Or is it a combination of all the three? Will SAGE move to a single backend in the future? If this bug can't be fixed, is it suggested that I rewrite the code using the Sympy library? P.S If anyone is running the code, then please note that it takes

[sage-support] Re: Problem with "solve"

2009-08-13 Thread Mani chandra
Minh Nguyen wrote: > Hi Mani, > > On Thu, Aug 13, 2009 at 6:08 PM, Mani chandra wrote: > >> Hi, >> >>I have a set of variables which I defined in an array and I'm trying >> to use "solve" to solve for these variables, but I get the followi

[sage-support] Problem with "solve"

2009-08-13 Thread Mani chandra
ist] TypeError: 'sage.symbolic.expression.Expression' object is not iterable However the following seems to work: solve([Eqn[1]==0], x[1]) [x1 == x0 + x2] The reason I need solution_dict=True is that I need to put the solution in x[1], which solve

[sage-support] Problem with integration

2009-08-01 Thread Mani chandra
Hi, Attached is the code. x = var('x') def f(x): if (x > 0): return x**2 elif (x <= 0): return -x**2 f(x).integrate(x, 0, 10) output: Traceback (most recent call last): File "", line 1, in File "/home/mc/.sage/sage_notebook/worksheets/admin/2/code/58.py", line 14,

[sage-support] Plots inside interact not working

2009-03-14 Thread Mani chandra
1), (k, -20, 20) ) ) @interact def _(a=(1.0), k_min=(-20.0), k_max=(20.0), l=(0..50) ): show(plot(delta_l_hs(l, k, a), (k, k_min, k_max) ) ) Help appreciated. Mani chandra --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubs

[sage-support] interact not working with 3D plots

2009-03-14 Thread Mani chandra
, theta = var('r_, theta') x = r_*cos(theta) y = r_*sin(theta) z = exp_ikz_expansion(r_, theta, 10).real() @interact def _(r=(10.0), l_max=(0..20)): parametric_plot3d( [x, y, z], (r_, 0, r), (theta, 0, 2*pi) ) Help appreciated. Ma

[sage-support] 3D plots side by side

2009-03-13 Thread Mani chandra
Hi, How can I get 3D plots side by side? Also when using interact for sliders, how do I make it such that the evaluation is done after maybe I press some button instead of it being evaluated immediately after I change a value on the slider? Thanks Mani chandra

[sage-support] Re: Maxima not able to multiply functions with complex numbers

2009-03-11 Thread Mani chandra
Simon King wrote: > Dear Mani chandra, > > something really weird seems to be going on. This is a fresh session > of Sage 3.3: > > sage: complex(0,1)*spherical_bessel_J(1,1) > --

[sage-support] Maxima not able to multiply functions with complex numbers

2009-03-11 Thread Mani chandra
/coerce.so in sage.structure.coerce.CoercionModel_cache_maps.bin_op (sage/structure/coerce.c:5833)() TypeError: unsupported operand parent(s) for '*': '' and 'Symbolic Ring' Help appreciated. Thank you Mani chandra --~--~-~--~~~---~--~---