[sage-support] Re: extending the Expression class

2011-08-02 Thread Steven Pollack
Weirdly enough, I'm not sure if this is so important, after all. It might be cleaner to just define a more basic Class, which takes expressions as attributes. Doing arithmetic on these objects might get a little weird, but I'm sure the purpose of the object and the context of its creation will

[sage-support] Re: extending the Expression class

2011-07-29 Thread Steven Pollack
sion, *variables, **attributes): [var('{0}'.format(variable)) for variable in variables] self.exp = expression for options in attributes.items(): self.attr[option] = attributes(option) ? Thanks, Steven On Jul 26, 3:15 pm, Burcin Erocal wrote: > On Mon,

[sage-support] Re: extending the Expression class

2011-07-25 Thread Steven Pollack
ppreciate the effort. Thanks, Steven On Jul 21, 6:37 am, Burcin Erocal wrote: > Hi, > > On Wed, 20 Jul 2011 17:02:49 -0700 (PDT) > > Steven Pollack wrote: > > I noticed that a thread was developed for this sort of thing (http:// > > groups.google.com/group/sage-sup

[sage-support] extending the Expression class

2011-07-20 Thread Steven Pollack
Hi everyone, I noticed that a thread was developed for this sort of thing (http:// groups.google.com/group/sage-support/browse_thread/thread/ d50dc3bc2bdbeab0/34798c0585fc034f?lnk=gst&q=nicolas&fwc=1#), but I'm a newbie, and a lot of it went over my head. Is there a simple to create a subclass of

[sage-support] Pydev and Sage (help!)

2011-07-20 Thread Steven Pollack
Hi, I've been googling around to find a way to set up pydev and sage, and have had nothing but the worst of luck. sage 4.7 is located in /home/steven/sage-4.7, and I've created a "sage_python" python interpreter who's location is "/home/steven/ sage-4.7/local/bin/python". I've set the following

[sage-support] Re: ultraspherical (Gegenbauer polynomials)

2011-07-13 Thread Steven Pollack
So, for anyone interested, I was able to *sort-of* solve the Gegenbauer polynomial problem. Using a lambda-function: C = lambda (n, Lambda, x): sum( [(2*x)^(n-2*m)*(-1)^(m)*rising_factorial(Lambda,n-m)/(factorial(m)*factorial(n-2*m)) for m in [0..floor(n/2)]] ) (the definition is taken from

Re: [sage-support] implicit_plot3d and solve

2011-07-12 Thread Steven Pollack
Thanks. I might work on some sort of script, I suppose, because maple has an "intersectplot" function, and that's definitely something I need for this project. How hard would it be to scan through the list of solutions to "solve([nodalSet1,nodalSet2], [x,y,z], dict_solution=True)" and use som

[sage-support] Re: implicit_plot3d and solve

2011-07-12 Thread Steven Pollack
Thanks for the reply. In my particular instance, there are a lot of constants, and the problem looks a bit difficult to automate. Here are the specifics: var('x1,x2,x3,x4,k,x,y,z', domain=RR) # Definition of P = Im[(x1 + i x2)^k] P(k, x1, x2, x3, x4) = (x1^2 + x2^2)^(k/2)*sin(k*arctan2(x2,x1)) #

[sage-support] ultraspherical (Gegenbauer polynomials)

2011-07-12 Thread Steven Pollack
Hi, I know that sage has ultraspherical(n,a,x) implemented, however if a is not a number, ultraspherical(n,a,x) returns the error: NameError: name 'a' not defined (even if I write a = var('a')). This, partly, flies in the face of the fact that the Gegenbauer polynomials are functions of a. Wors

[sage-support] implicit_plot3d and solve

2011-07-12 Thread Steven Pollack
Hi everyone, I'm new to SAGE, so I'm sorry if this is an amateur question, however I've been trying to find the simplest way to plot the intersection of two surfaces. The impression I'm under is that I "should" be able to do this with implicit_plot3d and solve. More specifically, I have two functi