[sage-support] "python not found" error after installation (Ubuntu)

2010-09-27 Thread obrintpas
Hi List, could someone please help a newbie who has problems running sage? After unpacking the standard 4.5.3 package for 64bit ubuntu linux, i get the following error when trying to run sage from the terminal. I am running it on Ubuntu 10.04.1 LTS Thank you for your help! ---

[sage-support] simplifying expressions

2010-09-27 Thread Aidan
Hi, This may be a repeat question, but is there a function to simplify complex expressions in sage? For example, the input M = matrix([[e^(2*pi*I*i*j/3) for i in [0..2]] for j in [0..2]]); M.eigenvalues() outputs [-1/2*(-10/9*I*sqrt(3) + 2*I)^(1/3)*(I*sqrt(3) + 1) + 1/3*(I*sqrt(3) - 1)/(-10/9*I

Re: [sage-support] Re: common devisor

2010-09-27 Thread Johannes
I tried both attempts, but unfortunately both fail: the first one (using the denominator function) leads to this error: /TypeError: lcm function not defined for elements of the base ring/ Does this happen, because i have variables in my term? In this case i would be enough to get a * b as result of

[sage-support] Re: Plotting a function f(x) when x is not in the domain

2010-09-27 Thread kcrisman
On Sep 27, 2:54 pm, "jerome.p.lefeb...@gmail.com" wrote: > Hi, > > I'm teaching differential calculus and I'm trying to use sage plotting > as much as I can. > > For example, I want to show the graph of the derivative of |x|. > What would be the best code to do this? > > For example, if I use: >

Re: [sage-support] Re: common devisor

2010-09-27 Thread Johannes
thnx, luis, thats nearly what I'm looking for, but i missed something in my first post. in my fractions i work with some variable (with are all integer, that's why I missed this in the beginning) I'd like to have something like this: a,b = var('a,b') v = vector([2/a, 1/ab]) and with the results: v

[sage-support] Plotting a function f(x) when x is not in the domain

2010-09-27 Thread jerome.p.lefeb...@gmail.com
Hi, I'm teaching differential calculus and I'm trying to use sage plotting as much as I can. For example, I want to show the graph of the derivative of |x|. What would be the best code to do this? For example, if I use: f(x) = abs(x+1) g = f.differentiate() show(plot(g(x),(-2,2)), xmin = -2,xmax

[sage-support] Re: inserting number into symbolic equation

2010-09-27 Thread Mike
Thanks for the response. The "subs" solution seems to work pretty well. This will save me a lot of time copying and pasting, then inserting the number into the variable spot and evaluating. Thanks again -mike- -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe f

[sage-support] Re: common devisor

2010-09-27 Thread Yann
On Sep 27, 5:53 pm, luisfe wrote: > On Sep 27, 3:34 pm, Johannes wrote: > > > Hi list, > > is there a way to get a sum of fraction to a common devisor? or even > > better into a product of a fraction like \frac{1}{something here} and a > > sum of integers? > > and my next step would be this, i

[sage-support] Re: common devisor

2010-09-27 Thread luisfe
On Sep 27, 3:34 pm, Johannes wrote: > Hi list, > is there a way to get a sum of fraction to a common devisor? or even > better into a product of a fraction like \frac{1}{something here} and a > sum of integers? > and my next step would be this, i dont have a single value, which i want > to get as

[sage-support] common devisor

2010-09-27 Thread Johannes
Hi list, is there a way to get a sum of fraction to a common devisor? or even better into a product of a fraction like \frac{1}{something here} and a sum of integers? and my next step would be this, i dont have a single value, which i want to get as the above produkt, but i've got a vector for wich