[sage-support] Re: Printing Equations

2011-05-24 Thread mankoff
On May 24, 6:23 am, kcrisman wrote: > On May 24, 3:04 am, mankoff wrote: > > > y = x^2 > > show(y) > > > In a worksheet in the notebook, this shows x and then a small raised > > two. > > I'd like it to show 'y = ' and then that symbol. >

[sage-support] Re: Change language for a cell.

2011-05-24 Thread mankoff
On May 24, 12:03 am, Mike Hansen wrote: > On Mon, May 23, 2011 at 11:59 PM, mankoff wrote: > > Is there a way to change the language for one cell? For example, if in > > a worksheet I'd like to have just one paragraph of LaTeX or a chunk of > > R. It is awkward

[sage-support] Printing Equations

2011-05-24 Thread mankoff
y = x^2 show(y) In a worksheet in the notebook, this shows x and then a small raised two. I'd like it to show 'y = ' and then that symbol. eqn = y == x^2 show(eqn) does what I want (y=x^2) But the upper code (y=x^2) lets me operate on it (y(3), diff(y), etc.) wherease y==x^2 does not. This ge

[sage-support] Change language for a cell.

2011-05-24 Thread mankoff
Hi, Is there a way to change the language for one cell? For example, if in a worksheet I'd like to have just one paragraph of LaTeX or a chunk of R. It is awkward to wrap it all in a latex('...') function call. If a command exists that means "everything from here down is in language X" or "This ce

[sage-support] Re: using existing functions with vectors / lists / arrays

2011-05-23 Thread mankoff
On May 22, 8:59 pm, Rajeev Singh wrote: > On Sun, May 22, 2011 at 4:45 PM, Berkin Malkoc wrote: > > > > I have something like: > >> >     y = x^2 > > >> > I can evaluate it at one point: > >> >     y(2) # 4 > > >> > I'd like to evaluate it at a group of points: > >> >     y( x ) # 2, 4, 9, 16,

[sage-support] using existing functions with vectors / lists / arrays

2011-05-21 Thread mankoff
I've never yet figured out in Python when to use lists, arrays, or vectors. I have something like: y = x^2 I can evaluate it at one point: y(2) # 4 I'd like to evaluate it at a group of points: y( x ) # 2, 4, 9, 16, ... Can this "just work" like in IDL or MATLAB? How would one defin

[sage-support] Re: Solving for a variable not a value

2011-05-21 Thread mankoff
On May 21, 10:02 pm, John H Palmieri wrote: > On Saturday, May 21, 2011 9:43:55 PM UTC-7, mankoff wrote: > > > I can solve basic equations for a variable without setting the LHS > > equal to a value: > > > reset() > > var('a b c') > > f(

[sage-support] Solving for a variable not a value

2011-05-21 Thread mankoff
I can solve basic equations for a variable without setting the LHS equal to a value: reset() var('a b c') f(a,b,c) = a+b+c solve(f,a) a == -b - c But slightly more complex equations don't seem to work unless I solve for f==something: reset() var('a b c') f(a,b,c) = a*b*c solve(f,a) a ==

[sage-support] Re: How to evaluate an expression numerically

2011-05-15 Thread mankoff
mankoff wrote: > Hi List, > > I'm a sage newbie and am having trouble getting a numerical expression > from sage. > > # I've set up an equation: > phi(t) = A*exp(k*c*t) > > # and I solve it for when the exponential grows past 1: > time = solve(phi ==

[sage-support] How to evaluate an expression numerically

2011-05-15 Thread mankoff
Hi List, I'm a sage newbie and am having trouble getting a numerical expression from sage. # I've set up an equation: phi(t) = A*exp(k*c*t) # and I solve it for when the exponential grows past 1: time = solve(phi == 1,t) time [t == 432000*log(1000)/pi] Now, how can I evaluate 'time' or 't=...'?

[sage-support] shell & emacs integration issues

2011-05-10 Thread mankoff
Hi, Two newbie issues. When I load or attach a file, there is a different verbosity than when I type the commands at the interactive shell. I would like the two to behave the same. Right now, at the shell "diff(42)" returns a 0, but if I load or attach a file with contents "diff(42)", nothing happ

[sage-support] Re: Using Sage Python as System Python

2011-01-11 Thread mankoff
On Jan 11, 9:57 pm, Adam Webb wrote: > On Jan 12, 6:49 am, mankoff wrote: > > > Hi Group, > > > I'm using Sage as my python install. How can I upgrade a python > > package within sage? For example, pygmentize is version 0.11, and I'd > > like to up

[sage-support] Using Sage Python as System Python

2011-01-11 Thread mankoff
Hi Group, I'm using Sage as my python install. How can I upgrade a python package within sage? For example, pygmentize is version 0.11, and I'd like to upgrade this. Easy_install doesn't seem to be working, or places the new binary in /usr/local/bin, and if I copy that into sage/ local/bin/ it cau

[sage-support] Re: Using sage python with GUI

2010-12-15 Thread mankoff
On Dec 15, 3:49 am, emil wrote: > On Dec 14, 9:13 pm, mankoff wrote: > > > > Hi Sage Group, > > > I'm trying to use sage as a means to get a nice python installation, > > without actually using sage. I hope this is an OK use of the software. > > I

[sage-support] Using sage python with GUI

2010-12-14 Thread mankoff
to a problem when I try to display graphics with a GUI. If I run this which I think should give me a simple empty window: import pylab as P P.figure() P.show() I get this error: Your currently selected backend, 'agg' does not support show(). Please select a GUI backend in your matpl