[sage-support] Re: Quantlib (SWIG) and Sage - Experimental package

2008-10-24 Thread William Stein
On Fri, Oct 24, 2008 at 2:58 PM, tomanizer <[EMAIL PROTECTED]> wrote: > > Hi All, > > I have successfully compiled the new > quantlib_swig-0.9.6 > quantlib-0.9.6 > packages from Sage 3.0.1. > > A number of functions work fine form the Sage notebook. > Unfortunately the important quantlib Date() f

[sage-support] Re: Maple 11 in Sage

2008-10-24 Thread Jacob
I just wanted to second this problem. When I run a Maple command in the Sage Notebook (Sage 3.1.2 on OSX 10.4), I have to execute the cell three times to see the output. The first time I execute, I get no output at all. The second time, I get an output that's something like read "/Users/jacobm

[sage-support] Quantlib (SWIG) and Sage - Experimental package

2008-10-24 Thread tomanizer
Hi All, I have successfully compiled the new quantlib_swig-0.9.6 quantlib-0.9.6 packages from Sage 3.0.1. A number of functions work fine form the Sage notebook. Unfortunately the important quantlib Date() function is causing problems. I am trying to run from QuantLib import * calendar = TARG

[sage-support] Re: Problems with .show() and integration

2008-10-24 Thread LRN
On 24.10.2008 15:12, Jason Grout wrote: > > Please let us know if that solves the problem. > > It does. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For

[sage-support] Re: Is interact partly broken in 3.1.4 (or before)?

2008-10-24 Thread kcrisman
> > The automatic evaluation of interact cells bothers me; I think it > > would be better if this was changed.  Is it not enough to use #auto? - > > William's comments suggest things are more complicated, but if not > > #auto already provides the same mechanism. > > +1 to interact cells not auto-e

[sage-support] Re: Problems with .show() and integration

2008-10-24 Thread LRN
On 24.10.2008 15:48, Jason Grout wrote: > Marshall Hampton wrote: > >> Is "gauss(x) = exp(-(x)2/(2*sigma2))" a typo? Because that raises a >> syntax error for me. >> > > Should that be: > > > gauss(x) = exp(-(x)^2/(2*sigma^2)) > > sometimes my copy and paste strip the "^" signs; is that

[sage-support] Re: How to detect memory leaks?

2008-10-24 Thread mabshoff
On Oct 24, 8:52 am, Simon King <[EMAIL PROTECTED]> wrote: > Dear Carlo and all others, > > On Oct 23, 5:11 pm, "Carlo Hamalainen" <[EMAIL PROTECTED]> > wrote: > > > Valgrind is the thing to try:http://wiki.sagemath.org/ValgrindingSage > > Sorry, when I read the first lines of that page I thought

[sage-support] Re: How to detect memory leaks?

2008-10-24 Thread Simon King
Dear Carlo and all others, On Oct 23, 5:11 pm, "Carlo Hamalainen" <[EMAIL PROTECTED]> wrote: > Valgrind is the thing to try:http://wiki.sagemath.org/ValgrindingSage Sorry, when I read the first lines of that page I thought I had to re- build Sage from scratch. But later it says that there is an

[sage-support] Re: bug in simplify_radical()?

2008-10-24 Thread Burcin Erocal
On Friday 24 October 2008 16:20:24 Stan Schymanski wrote: > Thanks for the advice! It seems like a combination of expand() and > simplify() would go a long way. Unfortunately, I am not a > Mathematician and hence struggle to understand rings and fields. > > I am still a bit hesitant about simplify

[sage-support] Re: bug in simplify_radical()?

2008-10-24 Thread Stan Schymanski
Thanks for the advice! It seems like a combination of expand() and simplify() would go a long way. Unfortunately, I am not a Mathematician and hence struggle to understand rings and fields. I am still a bit hesitant about simplify, though. Should a bug report be filed to Maxima? By the way, is py

[sage-support] Re: bug in simplify_radical()?

2008-10-24 Thread Jason Grout
Burcin Erocal wrote: > On Friday 24 October 2008 15:17:57 Stan Schymanski wrote: >> That's interesting. It seems that the bug lies in the use of floating >> point numbers? By the way, simplify_trig and simplify_rational create >> the same mistake. I agree that the use of simplify_radical() is not

[sage-support] Re: bug in simplify_radical()?

2008-10-24 Thread John Cremona
2008/10/24 Stan Schymanski <[EMAIL PROTECTED]>: > > That's interesting. It seems that the bug lies in the use of floating > point numbers? By the way, simplify_trig and simplify_rational create > the same mistake. I agree that the use of simplify_radical() is not > very useful here, but if it make

[sage-support] Re: bug in simplify_radical()?

2008-10-24 Thread Burcin Erocal
On Friday 24 October 2008 15:17:57 Stan Schymanski wrote: > That's interesting. It seems that the bug lies in the use of floating > point numbers? By the way, simplify_trig and simplify_rational create > the same mistake. I agree that the use of simplify_radical() is not > very useful here, but if

[sage-support] Re: bug in simplify_radical()?

2008-10-24 Thread Stan Schymanski
That's interesting. It seems that the bug lies in the use of floating point numbers? By the way, simplify_trig and simplify_rational create the same mistake. I agree that the use of simplify_radical() is not very useful here, but if it makes such an obvious mistake, how confident can we be that it

[sage-support] Re: bug in simplify_radical()?

2008-10-24 Thread John Cremona
A variation on your first try is: sage: ((a*b - (1/2)*a*(b - c))/a).simplify_radical() (c + b)/2 which works fine. Maybe it's a bug in maxima. I don't see why you would need simplify_radical() at all here, since your expression contains no radicals. John Cremona 2008/10/24 Stan Schymanski <[

[sage-support] bug in simplify_radical()?

2008-10-24 Thread Stan Schymanski
Dear all, I just noted some strange behaviour with simplify_radical(): -- | SAGE Version 3.1.2, Release Date: 2008-09-19 | | Type notebook() for the GUI, and license() for information.|

[sage-support] Re: accessing a notebook on a remote machine

2008-10-24 Thread Jason Grout
Stan Schymanski wrote: > Yes, confirmed. I now just use the computer name because it is a lot > easier to remember. :) > > Is there an easy way to prevent someone from accidentally deleting data > on the computer? Just login from a restricted account before opening the > notebook, or do I have

[sage-support] Re: Problems with .show() and integration

2008-10-24 Thread Jason Grout
Marshall Hampton wrote: > Is "gauss(x) = exp(-(x)2/(2*sigma2))" a typo? Because that raises a > syntax error for me. Should that be: gauss(x) = exp(-(x)^2/(2*sigma^2)) sometimes my copy and paste strip the "^" signs; is that what happened? Jason --~--~-~--~~~---

[sage-support] Re: accessing a notebook on a remote machine

2008-10-24 Thread Stan Schymanski
Yes, confirmed. I now just use the computer name because it is a lot easier to remember. :) Is there an easy way to prevent someone from accidentally deleting data on the computer? Just login from a restricted account before opening the notebook, or do I have to set up a chroot jail? Thanks!

[sage-support] Re: Problems with .show() and integration

2008-10-24 Thread Marshall Hampton
Is "gauss(x) = exp(-(x)2/(2*sigma2))" a typo? Because that raises a syntax error for me. -M. Hampton On Oct 24, 6:12 am, Jason Grout <[EMAIL PROTECTED]> wrote: > LRN wrote: > > Here's the code: > > > sigma = 0.2 > > > gauss(x) = exp(-(x)2/(2*sigma2)) > > > gauss1 = gauss(x).derivative > > > gau

[sage-support] Re: accessing a notebook on a remote machine

2008-10-24 Thread Jason Grout
Stan Schymanski wrote: > Dear William and Jason, > > I got the network socket fixed by our support, went to > http://www.whatismyip.com/ > to find out my IP address, then followed William's instructions and > typed: > > sage: notebook(address="ipaddress",port=8100,secure=True) > > where ipaddr

[sage-support] Re: Problems with .show() and integration

2008-10-24 Thread Jason Grout
LRN wrote: > Here's the code: > > sigma = 0.2 > > gauss(x) = exp(-(x)2/(2*sigma2)) > > gauss1 = gauss(x).derivative > > gauss2 = gauss1(x).derivative > > ngauss2(x) = -1*gauss2(x) > > sngauss2(x,y) = ngauss2(sqrt(x2 + y2)) > > a1 = var('a1'); a2 = var('a2'); b1 = var('b1'); b2 = var('b2') >

[sage-support] Re: code generation

2008-10-24 Thread Burcin Erocal
On Friday 24 October 2008 11:28:05 peter wrote: > OK, sorry, I explain a little bit more in detail: > - I work on thermal building simulation. We use for example one > environment (TRNSYS) where you can connect models (for example > building model to heating system model etc.). The models are main

[sage-support] Re: code generation

2008-10-24 Thread Jurgis Pralgauskis
pypy has some power in this direction http://www.strakt.com/~jacob/Pypy_for_the_rest_of_us.pdf http://morepypy.blogspot.com/ On Fri, Oct 24, 2008 at 12:38 PM, Tim Lahey <[EMAIL PROTECTED]> wrote: > On Oct 24, 2008, at 5:28 AM, peter wrote: > >> >> OK, sorry, I explain a little bit more in detail

[sage-support] Problems with .show() and integration

2008-10-24 Thread LRN
Here's the code: sigma = 0.2 gauss(x) = exp(-(x)2/(2*sigma2)) gauss1 = gauss(x).derivative gauss2 = gauss1(x).derivative ngauss2(x) = -1*gauss2(x) sngauss2(x,y) = ngauss2(sqrt(x2 + y2)) a1 = var('a1'); a2 = var('a2'); b1 = var('b1'); b2 = var('b2') chunkx = integral(sngauss2, x, a1, b1) chu

[sage-support] Re: code generation

2008-10-24 Thread Tim Lahey
On Oct 24, 2008, at 5:28 AM, peter wrote: OK, sorry, I explain a little bit more in detail: - I work on thermal building simulation. We use for example one environment (TRNSYS) where you can connect models (for example building model to heating system model etc.). The models are mainly written

[sage-support] Re: code generation

2008-10-24 Thread peter
OK, sorry, I explain a little bit more in detail: - I work on thermal building simulation. We use for example one environment (TRNSYS) where you can connect models (for example building model to heating system model etc.). The models are mainly written in Fortran or C++ and compiled in DLL's that

[sage-support] Re: accessing a notebook on a remote machine

2008-10-24 Thread Stan Schymanski
Dear William and Jason, I got the network socket fixed by our support, went to http://www.whatismyip.com/ to find out my IP address, then followed William's instructions and typed: sage: notebook(address="ipaddress",port=8100,secure=True) where ipaddress was replaced by the IP address of my co