[sage-support] Re: help about the function diff()

2009-11-04 Thread Robert Bradshaw
On Nov 4, 2009, at 7:43 PM, wxu...@sohu.com wrote: > > Hi, all > > > I just saw that if I defined a function: f=f(e^t), How did you define f? Perhaps > the f.diff(f,t) will give e^t*D[0](f)(e^t). and the > > question is what is the meaning of D[0](f)(e^t)? > > I can find that in the help of dif

[sage-support] help about the function diff()

2009-11-04 Thread wxuyec
Hi, all I just saw that if I defined a function: f=f(e^t), the f.diff(f,t) will give e^t*D[0](f)(e^t). and the question is what is the meaning of D[0](f)(e^t)? I can find that in the help of diff(). thanks in advance. --~--~-~--~~~---~--~~ To post to this g

[sage-support] Re: Matrix inconsistency with decimal/fraction representations

2009-11-04 Thread Robert Bradshaw
On Nov 4, 2009, at 3:01 PM, Michael Orlitzky wrote: > Simon King wrote: >> Hi Michael! >> >> On 4 Nov., 20:55, Michael Orlitzky wrote: >> [...] it starts using floating point numbers internally. >>> I didn't tell it to do that. >> >> You did. 0.5 is a floating point number. > > I guess it c

[sage-support] Re: Gap Undeposited Implementations

2009-11-04 Thread Robert Bradshaw
On Nov 4, 2009, at 7:27 PM, Adam Sorkin wrote: > > I am trying to load a Gap package for braid orbit computations. I > would like to run everything through Sage if possible. This is an > undeposited Implementation, so running "sage -i gap_packages-4.4.10_4 > " doesn't retrieve this package. I'm

[sage-support] Gap Undeposited Implementations

2009-11-04 Thread Adam Sorkin
I am trying to load a Gap package for braid orbit computations. I would like to run everything through Sage if possible. This is an undeposited Implementation, so running "sage -i gap_packages-4.4.10_4 " doesn't retrieve this package. I'm running this on OSX, 10.5, and have gap_version() = 4.4.10

[sage-support] Re: Question about Karmic.

2009-11-04 Thread Lucio Lastra
Thanks than I'll try that from now on :) On Wed, Nov 4, 2009 at 9:05 PM, Dan Drake wrote: > On Wed, 04 Nov 2009 at 01:10PM -0200, Lucio Lastra wrote: > > Is there any difference if the Sage 4.2 Karmic release runs on Ubuntu > > Jaunty? > > > > I mean, do certain features fail or something alike

[sage-support] Re: AttributeError: object has no attribute 'eigenvalues'

2009-11-04 Thread Jason Grout
Dan Drake wrote: > On Wed, 04 Nov 2009 at 04:07PM -0800, Simon King wrote: >> Hi Dan! >> >> On 5 Nov., 00:15, Dan Drake wrote: >> ... >>> There's a space between "eigenvalues" and "()". Python (and hence Sage) >>> gets confused by that. Use A.eigenvalues() with no spaces. >> No, that's not true.

[sage-support] another bug in solve()?

2009-11-04 Thread Alex Raichev
Hi all: I found some strange behavior in solve that's related to function composition. Check out this short example. -- | Sage Version 4.2, Release Date: 2009-10-24 | | Type notebook() for the GUI, and l

[sage-support] Re: AttributeError: object has no attribute 'eigenvalues'

2009-11-04 Thread Dan Drake
On Wed, 04 Nov 2009 at 04:07PM -0800, Simon King wrote: > > Hi Dan! > > On 5 Nov., 00:15, Dan Drake wrote: > ... > > There's a space between "eigenvalues" and "()". Python (and hence Sage) > > gets confused by that. Use A.eigenvalues() with no spaces. > > No, that's not true. On sage.math, it w

[sage-support] Re: AttributeError: object has no attribute 'eigenvalues'

2009-11-04 Thread Jason Grout
Simon King wrote: > Hi Dan! > > On 5 Nov., 00:15, Dan Drake wrote: > ... >> There's a space between "eigenvalues" and "()". Python (and hence Sage) >> gets confused by that. Use A.eigenvalues() with no spaces. > > No, that's not true. On sage.math, it works with the additional space. > sage:

[sage-support] Re: AttributeError: object has no attribute 'eigenvalues'

2009-11-04 Thread Simon King
Hi Dan! On 5 Nov., 00:15, Dan Drake wrote: ... > There's a space between "eigenvalues" and "()". Python (and hence Sage) > gets confused by that. Use A.eigenvalues() with no spaces. No, that's not true. On sage.math, it works with the additional space. sage: A = matrix([[0, 4], [-1, 0]]) sa

[sage-support] Re: AttributeError: object has no attribute 'eigenvalues'

2009-11-04 Thread Dan Drake
On Wed, 04 Nov 2009 at 01:30PM -0800, q wrote: > sage: A = matrix([[0, 4], [-1, 0]]) > sage: A.eigenvalues () There's a space between "eigenvalues" and "()". Python (and hence Sage) gets confused by that. Use A.eigenvalues() with no spaces. Dan -- --- Dan Drake - http://mathsci.kaist.ac.k

[sage-support] Re: Documentation for Sage HTML cells, or what can I do with them?

2009-11-04 Thread Dan Drake
On Wed, 04 Nov 2009 at 04:54PM +, Johann Myrkraverk Oskarsson wrote: > I've been trying to google for documentation on what is available in a > html cell in a sage notebook. And I find nothing. Is there such a doc > anywhere? We use TinyMCE, whose documentation is here: http://tinymce.moxiecod

[sage-support] Re: Question about Karmic.

2009-11-04 Thread Dan Drake
On Wed, 04 Nov 2009 at 01:10PM -0200, Lucio Lastra wrote: > Is there any difference if the Sage 4.2 Karmic release runs on Ubuntu > Jaunty? > > I mean, do certain features fail or something alike or everything should run > fine as always? I would run "make test" or "make ptest" and see for yourse

[sage-support] Re: Matrix inconsistency with decimal/fraction representations

2009-11-04 Thread Jason Grout
Michael Orlitzky wrote: > Jason Grout wrote: >> I think there are several points here: >> >> 1. The moment Sage sees a decimal, it starts using approximate, floating >> point arithmetic. If you don't want that, then don't use decimals; use >> fractions. This is consistent with most mathematica

[sage-support] Re: Matrix inconsistency with decimal/fraction representations

2009-11-04 Thread Michael Orlitzky
Simon King wrote: > Hi Michael! > > On 4 Nov., 20:55, Michael Orlitzky wrote: > [...] >>> it starts using floating point numbers internally. >> I didn't tell it to do that. > > You did. 0.5 is a floating point number. I guess it comes down to that, when I say 0.3 I mean 0.3, and SAGE assumes

[sage-support] Re: Matrix inconsistency with decimal/fraction representations

2009-11-04 Thread Simon King
Hi Michael! On 4 Nov., 20:55, Michael Orlitzky wrote: [...] > > it starts using floating point numbers internally. > > I didn't tell it to do that. You did. 0.5 is a floating point number. > Ok, but (assuming it can be done) how do you propose I convert my > problem to an exact field? By hand?

[sage-support] Re: Some issues with OS X 10.6

2009-11-04 Thread Justin Domke
Well, I've resolved these issues while trying to get a different application to work. In the unlikely event that someone else has the same problem, it seems I somehow removed my own write permissions to my home directory. (Very strange on a brand-new machine...) With that fixed (by doing "get i

[sage-support] Re: Matrix inconsistency with decimal/fraction representations

2009-11-04 Thread Michael Orlitzky
Jason Grout wrote: > > I think there are several points here: > > 1. The moment Sage sees a decimal, it starts using approximate, floating > point arithmetic. If you don't want that, then don't use decimals; use > fractions. This is consistent with most mathematical software (though > other

[sage-support] Re: Matrix inconsistency with decimal/fraction representations

2009-11-04 Thread Jason Grout
Michael Orlitzky wrote: >> It's messy the instant you type it in with decimal points > > Not the end user's fault. > > >> it starts using floating point numbers internally. > > I didn't tell it to do that. > I think there are several points here: 1. The moment Sage sees a decimal, it star

[sage-support] Re: AttributeError: object has no attribute 'eigenvalues'

2009-11-04 Thread Michael Welsh
On 5/11/2009, at 10:30 AM, q wrote: > Can someone please explain this to me? Works fine for me - sage: A = matrix([[0, 4], [-1, 0]]) sage: A [ 0 4] [-1 0] sage: A.eigenvalues sage: A.eigenvalues() [-2*I, 2*I] > > I'm using Ubuntu 9.04, sage version 3.0.5 which I installed from the > synapti

[sage-support] AttributeError: object has no attribute 'eigenvalues'

2009-11-04 Thread q
I was trying to find the eigenvalues of a matrix. I tried the example from the tutorial (http://www.sagemath.org/doc/ tutorial/tour_linalg.html): sage: A = matrix([[0, 4], [-1, 0]]) sage: A.eigenvalues () And I got this error: "AttributeError: 'sage.matrix.matrix_integer_dense.Matrix_integer_de

[sage-support] Re: Help with some calculus

2009-11-04 Thread ma...@mendelu.cz
[ma...@um-bc107 /opt/sage]$ ./sage -- | Sage Version 4.1.2, Release Date: 2009-10-13 | | Type notebook() for the GUI, and license() for information.| --

[sage-support] Re: Matrix inconsistency with decimal/fraction representations

2009-11-04 Thread Robert Bradshaw
On Nov 4, 2009, at 11:25 AM, Michael Orlitzky wrote: > Robert Bradshaw wrote: >> >> I'd also like to point out that we don't just want to fall back and >> do >> everything over the rationals (even though any finite decimal >> expansion is rational) as things get much slower due to coefficient >

[sage-support] Re: Matrix inconsistency with decimal/fraction representations

2009-11-04 Thread Michael Orlitzky
Robert Bradshaw wrote: > > > Technically, your matrix does not contain integer multiples of 0.1, it > contains approximations to integer multiples of 0.1, represented base > 2, truncated to 53 bits of precision. > > sage: (0.1).exact_rational() > 3602879701896397/36028797018963968 > > As yo

[sage-support] Re: Matrix inconsistency with decimal/fraction representations

2009-11-04 Thread Robert Bradshaw
On Nov 4, 2009, at 11:08 AM, Michael Orlitzky wrote: > > Jason Grout wrote: >> >> I don't think it's an issue of irrational versus rational. It's >> numerical precision and inexact floating point numbers. This >> matrix is >> terribly ill-conditioned. It is right on the border line between

[sage-support] Re: Matrix inconsistency with decimal/fraction representations

2009-11-04 Thread Michael Orlitzky
Robert Bradshaw wrote: > > I'd also like to point out that we don't just want to fall back and do > everything over the rationals (even though any finite decimal > expansion is rational) as things get much slower due to coefficient > explosion. For example Who cares about speed when the ans

[sage-support] Help with some calculus

2009-11-04 Thread Paul Sargent
Hi, My calculus is a bit rusty, and I'm trying to do the following. sage: x,a = var("x a") sage: sinc(x) = sin(pi*x)/(pi*x) sage: L = sinc(x)*sinc(x/3) sage: L 3*sin(1/3*pi*x)*sin(pi*x)/(pi^2*x^2) sage: L.integrate(x) 3*integrate(sin(1/3*pi*x)*sin(pi*x)/x^2, x)/pi^2 ...which doesn't help me m

[sage-support] Re: Matrix inconsistency with decimal/fraction representations

2009-11-04 Thread Michael Orlitzky
Jason Grout wrote: > > I don't think it's an issue of irrational versus rational. It's > numerical precision and inexact floating point numbers. This matrix is > terribly ill-conditioned. It is right on the border line between being > invertible or not, numerically speaking: No, it isn't.

[sage-support] Re: Documentation for Sage HTML cells, or what can I do with them?

2009-11-04 Thread ma...@mendelu.cz
On 4 lis, 17:54, "Johann \"Myrkraverk\" Oskarsson" wrote: > Hi all, > > I've been trying to google for documentation on what is available in a > html cell in a sage notebook. And I find nothing. Is there such a doc > anywhere? The TinyMCE in Sage is quite recent - (I guess no more than 1 year ol

[sage-support] Re: [sage-devel] Illegal instruction fix error

2009-11-04 Thread William Stein
On Wed, Nov 4, 2009 at 10:51 AM, Lucio Lastra wrote: > Hi all, > > I was trying to fix the Illegal instruction error as described here: > > http://wiki.sagemath.org/faq#Otherquestions > > typing: > > rm spkg/installed/mpir* spkg/installed/atlas* > make > > but got an error and attached the log. >

[sage-support] Some issues with OS X 10.6

2009-11-04 Thread Justin Domke
Hello all, I had (have) some minor troubles running sage under OS X 10.6, that I thought I would report here: A) The installation instructions don't make sense. In particular, the following paragraph in sage-README-osx.txt doesn't appear to correspond to reality. (Probably it did in a previous

[sage-support] Documentation for Sage HTML cells, or what can I do with them?

2009-11-04 Thread Johann "Myrkraverk" Oskarsson
Hi all, I've been trying to google for documentation on what is available in a html cell in a sage notebook. And I find nothing. Is there such a doc anywhere? I do know that I can use latex commands to render mathematics. There does not seem to be any list of what kind of latex commands are avai

[sage-support] Re: Segmentation fault with find_fit function

2009-11-04 Thread cchristy...@gmail.com
Thanks a lot ! It works now. On 4 nov, 13:18, Marshall Hampton wrote: > I changed your Kohl function to: > > def Kohl(t,b): >     return n(exp(-(exp(t*ln(10.0))/T_sol)**b)) > > and things worked on sagenb.  I don't completely understand what's > going on though, seems like a bug in find_fit in c

[sage-support] Re: maxima

2009-11-04 Thread Mikie
Willian, I found it. In /local/bin/ On Nov 4, 9:26 am, William Stein wrote: > On Wed, Nov 4, 2009 at 8:24 AM, Mikie wrote: > > > Willian, Thanks, I found it.  How do I start it. > > Type > >    ./sage -maxima > > from the root of your Sage install. > >  -- william > > > > > > > > > On Nov 4,

[sage-support] Re: random number generation from cython

2009-11-04 Thread Dag Sverre Seljebotn
Flavio Coelho wrote: > Thanks for the pointer, > > but randstate.pyx, which allows one to choose between differents RNGs, > offers the built-in python RNG as a python object. > > on line 561 it does a > import random > rand = random.Random() > return rand > > What I am looking for is a way to c

[sage-support] Re: maxima

2009-11-04 Thread William Stein
On Wed, Nov 4, 2009 at 8:24 AM, Mikie wrote: > > Willian, Thanks, I found it.  How do I start it. Type ./sage -maxima from the root of your Sage install. -- william > > On Nov 4, 8:35 am, William Stein wrote: >> On Wed, Nov 4, 2009 at 7:22 AM, Mikie wrote: >> >> > Is the Maxima that Sa

[sage-support] Re: maxima

2009-11-04 Thread Mikie
Willian, Thanks, I found it. How do I start it. On Nov 4, 8:35 am, William Stein wrote: > On Wed, Nov 4, 2009 at 7:22 AM, Mikie wrote: > > > Is the Maxima that Sage uses a full version? > > Yes > > > Where is Maxima in the > > Sage directory?  Can I load Maxima and do some command line work? >

[sage-support] Re: Question about Karmic.

2009-11-04 Thread William Stein
On Wed, Nov 4, 2009 at 7:10 AM, Lucio Lastra wrote: > Hi all, > > Is there any difference if the Sage 4.2 Karmic release runs on Ubuntu > Jaunty? > > I mean, do certain features fail or something alike or everything should run > fine as always? Sage should work perfectly on both 9.04 and 9.10.

[sage-support] Re: maxima

2009-11-04 Thread William Stein
On Wed, Nov 4, 2009 at 7:22 AM, Mikie wrote: > > Is the Maxima that Sage uses a full version? Yes > Where is Maxima in the > Sage directory?  Can I load Maxima and do some command line work? sage -maxima > Thanx > > > -- William Stein Associate Professor of Mathematics University of Washi

[sage-support] Re: maxima

2009-11-04 Thread kcrisman
There are several ways to do this. sage: maxima_console() gives you a fully functioning version of Maxima, just as if you downloaded it yourself. Or you can use Maxima one thing at a time: sage: from sage.calculus.calculus import maxima sage: maxima.eval('integrate(cos(x),x)') 'sin(x)' Usuall

[sage-support] maxima

2009-11-04 Thread Mikie
Is the Maxima that Sage uses a full version? Where is Maxima in the Sage directory? Can I load Maxima and do some command line work? Thanx --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send

[sage-support] Question about Karmic.

2009-11-04 Thread Lucio Lastra
Hi all, Is there any difference if the Sage 4.2 Karmic release runs on Ubuntu Jaunty? I mean, do certain features fail or something alike or everything should run fine as always? Greetings, Lucio --~--~-~--~~~---~--~~ To post to this group, send email to sage-su

[sage-support] Re: Segmentation fault with find_fit function

2009-11-04 Thread Marshall Hampton
I changed your Kohl function to: def Kohl(t,b): return n(exp(-(exp(t*ln(10.0))/T_sol)**b)) and things worked on sagenb. I don't completely understand what's going on though, seems like a bug in find_fit in converting things to numpy types. While it shouldn't have to be this way, I have fo

[sage-support] Re: Segmentation fault with find_fit function

2009-11-04 Thread Burcin Erocal
On Wed, 4 Nov 2009 03:30:24 -0800 (PST) "cchristy...@gmail.com" wrote: > B_sol=find_fit(f1_data, Kohl, parameters = [Beta], variables = [t], > initial_guess = [0.3], solution_dict = True)[Beta] > > where Kohl is a python function : > > var("Beta") > def Kohl(t,Beta): >return n(exp(-(exp(t*

[sage-support] Re: Segmentation fault with find_fit function

2009-11-04 Thread cchristy...@gmail.com
That's strange, the page published #924 isn't mine any more.. Here is mine : http://www.sagenb.org/home/pub/931/ If it disappears again, the problem comes from this line : B_sol=find_fit(f1_data, Kohl, parameters = [Beta], variables = [t], initial_guess = [0.3], solution_dict = True)[Beta] whe

[sage-support] Re: random number generation from cython

2009-11-04 Thread Flavio Coelho
Thanks for the pointer, but randstate.pyx, which allows one to choose between differents RNGs, offers the built-in python RNG as a python object. on line 561 it does a import random rand = random.Random() return rand What I am looking for is a way to call the C function behind random.random dir

[sage-support] Re: Segmentation fault with find_fit function

2009-11-04 Thread Burcin Erocal
Hi, On Tue, 3 Nov 2009 12:42:47 -0800 (PST) "cchristy...@gmail.com" wrote: > Since I have compiled the new version of sage, 'Sage Version 4.1.2, > Release Date: 2009-10-14' , the find_fit function of my programs don't > want to work any more. > > The error message is : > /sage/sage/local/bin/s