[sage-support] Re: callable symbolic function name to string
There's probably a better way, but this works: sage: f = function('hello',x) sage: f._f._name 'hello' (That's just what f._repr_() uses.) -cc On Tue, Apr 28, 2009 at 8:30 PM, Alex Raichev tortoise.s...@gmail.com wrote: Hi all: How do you retrieve the name of a callable symbolic function as a string? For instance, suppose you have sage: f= function('hello',x) and you want to retrieve 'hello' from f. sage: str(f) '\n hello(x)' followed by stripping away the extra characters works, but is there a more direct approach? Alex --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: SageWorld
May be I reinventing bicycle ? Could anyone comment whether something familiar has been already known ? I want to play mathematics with my kid and colleagues with the help of Sage. Is it a bad idea ? Serge A. Salamanka Serge Salamanka пишет: This is very simple and effective but not for the task I'm heading for. It might be better to start from the idea itself. SageWorld is mathematical world where everyone could create mathematical objects and operate them to win a certain battle. For example, the world in 3D space with physical laws and its constants: SageWarrior creates there an object according to the rules existing in this SageWorld. SageWarrior owns this object until he is available to control its behavior. The task and challenge is to occupy more space or to control more objects. In a way it is just for the game ))) But perhaps would be practically useful. So I need tools to make one separate session for SageWorld with its own behavior and the tools to connect to this session by users and manipulate objects. Thus the SageWar begins. :) Serge William Stein пишет: On Mon, Apr 27, 2009 at 5:01 PM, Serge Salamanka salsa-...@tut.by wrote: Hello, I wonder how it is possible to make a common shared objects space for all of the users on the Sage server ? If X is any object in any Sage session then any user can type save(X, '/tmp/name.sobj') and any other user can load X by typing X = load('/tmp/name.sobj') That basically accomplishes what you asked for, right? -- William The idea is to make available the mathematical space to users providing that they all can have access from within their own sessions to a common session. As far as I understand: I propose to install server as multiuser app with unix accounts. Each user runs IPython shell when working with Sage (also from notebook). There is a need to make the user objects accessible to others (say, like to work in the same session). The best would be even to use ACLs for controlling access to objects (say, another user cannot modify object but only read and use it). Could you please point me to the right direction. I suppose I should look for this somewhere in python functionality ? Comments are welcome. Serge --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~--- begin:vcard fn:Serge A. Salamanka n:Salamanka;Serge A. org:National Academy of Sciences of Belarus;Laboratory of High Performance Systems adr:;;;Minsk;;;Belarus email;internet:salsa-...@tut.by title:Software engineer x-mozilla-html:FALSE version:2.1 end:vcard
[sage-support] Re: substituting initial condition into ODE
great, thanks. R. On 28 Dub, 21:04, David Joyner wdjoy...@gmail.com wrote: Too tricky, but maybe this helps: sage: c,x = var(c,x) sage: y = function('y',x) sage: soln = desolve(diff(y,x)+sin(x)*y^6==0,y); soln 1/(5*y(x)^5) == c - cos(x) sage: soln.subs(x = pi) 1/(5*y(pi)^5) == c + 1 sage: ssoln = soln.__repr__(); ssoln '1/(5*y(x)^5) == c - cos(x)' sage: ssoln = ssoln.replace(y(x),9); ssoln '1/(5*9^5) == c - cos(x)' sage: ssoln = ssoln.replace(x,pi); ssoln '1/(5*9^5) == c - cos(pi)' sage: nsoln = eval(ssoln) sage: nsoln c + 1 == 0 Hopefully there are better ways. Using SymPy: sage: x = Symbol('x') sage: C1 = Symbol('C1') sage: y = Function('y') sage: soln = dsolve(Derivative(y(x),x)+sin(x)*y(x)^6,y(x)); soln (C1 - 5*cos(x))**(-1/5) sage: ypi = soln.subs(x,pi); ypi (5 + C1)**(-1/5) But now sage: solve(ypi - 9, C1) yields an error which I don't understand. On Tue, Apr 28, 2009 at 1:59 PM, ma...@mendelu.cz ma...@mendelu.cz wrote: Hello, I just want to test, if I can do with my students in computer lab what they usualy do on the paper 1. find general solution 2. substitute from initail conditions 3. find c 4. use this c in general solution I agree that this may be strange to do this in the case, we have a command for solving IVP. I just wanted to know, if it is possible to substitute some value for y (x), if y(x) is declared as a function. Thanks. Robert On 28 Dub, 16:45, David Joyner wdjoy...@gmail.com wrote: I don't know if you are asking about how to use ICs in desolve or if you are asking about how to do substitutions. Anyway, I get this: sage: y=function('y',x) sage: desolve(diff(y,x)+sin(x)*y^6==0,y) 1/(5*y(x)^5) == c - cos(x) sage: desolve(diff(y,x)+sin(x)*y^6==0,y,[pi,9]) 1/(5*y(x)^5) == (-295245*cos(x) - 295244)/295245 Does that help? On Tue, Apr 28, 2009 at 10:36 AM, ma...@mendelu.cz ma...@mendelu.cz wrote: Dear memebers of SAGE-support I wonder if it is possible to substitute initial conditions into an equation produced by desolve. I tried something like y=function('y',x) desolve(diff(y,x)+sin(x)*y^6==0,y) sol({x:pi,y:9}) and got 1/(5*y(pi)^5) == c + 1 but I would like to see 1/(5*9^5) == c + 1 many thanks Robert --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage -optional bug?
On Wed, Apr 29, 2009 at 8:17 AM, simon.k...@uni-jena.de wrote: Hi David, On Apr 29, 2:01 pm, mabshoff michael.absh...@mathematik.uni- dortmund.de wrote: ... [Errno 13] Permission denied: '/usr/lib/sagemath/tmp/list' Well, you need write permission to install optional spkgs. The error message is less than elegant in this case. Thanks Michael. Yes. I forgot I ran this from the global/apt-get sage install rather than the local one. I'm looking for an easy way to determine the exact number of standard packages and optional packages for this talk I'm giving in RI in 2 days. Well, just look into spkg/[optional|experimental] to see what is installed. Or try sage: optional_packages() sage: experimental_packages() sage: standard_packages() Thanks Simon. I want len(optional_packages()[1]) but I get an error. It seems sage: len(optional_packages()[int(1)]) 41 or sage: len(flatten(list(optional_packages( 41 is the right command (should int(1) really be needed?). sage: len(flatten(list(standard_packages( 91 For completeness: sage: len(flatten(list(experimental_packages( 59 I don't know, however, if you run into the same permission issues. Cheers, Simon --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] find_root deprecation?
Dear support, sage: find_root(.05^(x+1)==(x+1)*10^(-10),5,100) yields DeprecationWarning: Substitution using function-call syntax and unnamed arguments is deprecated and will be removed from a future release of Sage; you can use named arguments instead, like EXPR(x=..., y=...) But I didn't actually do anything like sage: f=x^2 sage: f(2) Is there something internal to find_root that does this, or should there be different syntax? find_root? says a symbolic equality is ok for input, and nothing about deprecation. It would indeed be tedious to have to define a polynomial ring just to do this computation. Thanks! - kcrisman --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage -optional bug?
Hi David, On Apr 29, 2:42 pm, David Joyner wdjoy...@gmail.com wrote: sage: len(optional_packages()[int(1)]) 41 or sage: len(flatten(list(optional_packages( 41 is the right command (should int(1) really be needed?). I would do: sage: L=optional_packages() sage: len(L[0])+len(L[1]) 41 since L[0] comprises the installed and L[1] the not-yet-installed packages. Cheers, Simon --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: find_root deprecation?
On Wed, Apr 29, 2009 at 6:04 AM, kcrisman kcris...@gmail.com wrote: Is there something internal to find_root that does this, or should there be different syntax? find_root? says a symbolic equality is ok for input, and nothing about deprecation. It would indeed be tedious to have to define a polynomial ring just to do this computation. Currently in my tree with pynac being the default for symbolic expressions, this isn't an issue. So, it should be fixed in 4.0 which is planned for May 15th. Depending how much time I have, I may make a patch for 3.4.2. Thanks. Hmm, but just using var('x',ns=1) didn't fix the problem for me - it found this problem: sage/numerical/optimize.pyc in find_root(f, a, b, xtol, rtol, maxiter, full_output) 58 if a b: 59 a, b = b, a --- 60 left = f(a) But certainly don't bother with a patch unless find_root all of a sudden no longer will work under pynac. I did still get the correct answer, after all! - kcrisman --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] memory leak?
Hello, I am using sage 3.4 I have written a simple sage script to evalute the cardinal of Brent- Suyama elliptic curves s=11 for primes 2^27. Memory usage increases till program (or machine) crashes. The script is the following: p=30 def FindGroupOrder(p,s): K = GF(p) v = K(4*s) u = K(s**2-5) x = u**3 b = 4*x*v a = (v-u)**3*(3*u+v) A = a/b-2 x = x/v**3 b = x**3 + A*x**2 + x E = EllipticCurve(K,[0,b*A,0,b**2,0]) return factor(E.cardinality()) while p134217689: p=next_prime(p) g=FindGroupOrder(p,11) print g Any idea why this happens? Regards, --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Multiple users w/ VMWare
I feel silly asking this, but I can't seem to find info anywhere on this. I'm running the VMWare image (Sage ver. 3.2.3) and I want to be able to have multiple users log into the server. Right now it automatically signs in under the 'admin' account. If I sign out and try to sign back in, it logs right in with no password prompt or option to create a new user. I've tried changing the password but I don't know the current password (if left blank it give an error saying such). Any help or if anyone can point me in the right direction I'd appreciate it. Thanks. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: memory leak?
On Apr 29, 11:11 am, opti iram.che...@gmail.com wrote: Hello, Hi, I am using sage 3.4 I have written a simple sage script to evalute the cardinal of Brent- Suyama elliptic curves s=11 for primes 2^27. Memory usage increases till program (or machine) crashes. The script is the following: p=30 def FindGroupOrder(p,s): K = GF(p) v = K(4*s) u = K(s**2-5) x = u**3 b = 4*x*v a = (v-u)**3*(3*u+v) A = a/b-2 x = x/v**3 b = x**3 + A*x**2 + x E = EllipticCurve(K,[0,b*A,0,b**2,0]) return factor(E.cardinality()) while p134217689: p=next_prime(p) g=FindGroupOrder(p,11) print g Any idea why this happens? I would guess it is a leak :) Running it up to p=966233 consumed about 2 GB - I will have a closer look. IIR there are some open memory leaks in that area of the code, but I should know more in a couple hours. Regards, Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Problem Sage 3.4 windows XP
a) Same problem. Sage 3.2.3 runs, Sage 3.4.1 does not run. Both on WindowsXP, Service Pack 3, with VMware-player-2.5.2-156735. I tried on two different computers (one with XP-Professional, one with XP-home) but both with Service Pack 3. b) I tried to type manage instead of notebook, then sudo su and then sage. Following happened on the first computer: Sage Version 3.4.1, Release Date: 2009-04-21 Type notebook() for the GUI, and license () for information. /usr/local/sage/bin/sage-sage: line 198: 4057 Illegal instruction sage-ipython $@ -i r...@sage:/home/manage# _ Following happened on the second computer: Sage Version 3.4.1, Release Date: 2009-04-21 Type notebook() for the GUI, and license () for information. ** Warning! This Sage install was build on a machine that supports instructions that are not available on this computer. Sage will likely fail with Illegal Instruction errors! The following processor flags were on the build machine but are not on this vomputer: sse2 Email ... r...@sage:/home/manage# sage and then again I got the error message regarding line 198 like above. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Problem Sage 3.4 windows XP
Same problem on two different computers running WindowsXP Service Pack 3 with VMware-player-2.5.2-156735: SAGE 3.2.3 works and SAGE 3.4.1 does not work. It looks that there is something wrong on line 198 as I got an error message as following. Trying to start the command line Version with manage, sudo su and then sage I got the following message on both computers: Sage Version 3.4.1, Release Date : 2009-04-21 Type notebook() for the GUI, and license() for information. /usr/local/sage/local/bin/sage-sage: line 198: 4084 Illegal instruction sag e-ipython $@ -i r...@sage:/home/manage# --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Problem Sage 3.4 windows XP
Hi, What is the output of cat /proc/cpuinfo on both computers? You need to use manage before typing the above. The error message you're getting specifically means that Sage was built on a machine with a processor that is much newer than yours. Did you actually read the error message? Here it is: Warning! This Sage install was build on a machine that supports instructions that are not available on this computer. Sage will likely fail with Illegal Instruction errors! -- William On Wed, Apr 29, 2009 at 12:21 PM, gemili j...@gmx.de wrote: a) Same problem. Sage 3.2.3 runs, Sage 3.4.1 does not run. Both on WindowsXP, Service Pack 3, with VMware-player-2.5.2-156735. I tried on two different computers (one with XP-Professional, one with XP-home) but both with Service Pack 3. b) I tried to type manage instead of notebook, then sudo su and then sage. Following happened on the first computer: Sage Version 3.4.1, Release Date: 2009-04-21 Type notebook() for the GUI, and license () for information. /usr/local/sage/bin/sage-sage: line 198: 4057 Illegal instruction sage-ipython $@ -i r...@sage:/home/manage# _ Following happened on the second computer: Sage Version 3.4.1, Release Date: 2009-04-21 Type notebook() for the GUI, and license () for information. ** Warning! This Sage install was build on a machine that supports instructions that are not available on this computer. Sage will likely fail with Illegal Instruction errors! The following processor flags were on the build machine but are not on this vomputer: sse2 Email ... r...@sage:/home/manage# sage and then again I got the error message regarding line 198 like above. -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: find_root deprecation?
kcrisman wrote: On Wed, Apr 29, 2009 at 6:04 AM, kcrisman kcris...@gmail.com wrote: Is there something internal to find_root that does this, or should there be different syntax? find_root? says a symbolic equality is ok for input, and nothing about deprecation. It would indeed be tedious to have to define a polynomial ring just to do this computation. Currently in my tree with pynac being the default for symbolic expressions, this isn't an issue. So, it should be fixed in 4.0 which is planned for May 15th. Depending how much time I have, I may make a patch for 3.4.2. Thanks. Hmm, but just using var('x',ns=1) didn't fix the problem for me - it found this problem: sage/numerical/optimize.pyc in find_root(f, a, b, xtol, rtol, maxiter, full_output) 58 if a b: 59 a, b = b, a --- 60 left = f(a) But certainly don't bother with a patch unless find_root all of a sudden no longer will work under pynac. I did still get the correct answer, after all! Carl Witty might comment on this as well. If I recall correctly, there was an exception in the deprecation made for numerical integrals and plotting of single-variable functions. Perhaps there should have been an exception for find_root as well? Or perhaps the syntax to find_root should be changed so that we specify the variable: find_root(f, (x, a, b)) or find_root(f, x, a, b) or something. Or perhaps mhansen has a better solution and we just need to be patient... Jason -- Jason Grout --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: SageWorld
Is it a good idea to share objects between python processes with the help of any database ? Can't still find any decent tool for sharing objects. Saving and loading them in Sage seems to be a simple approach for user but not for an application to run. Serge Serge Salamanka пишет: I found Pyro with exceptional functionality. pyro.sourceforge.net This might be used for the purpose? I just need to make easily accessible the objects that other user creates during his session and also share my objects. Better this would be fully automated rather than loading/saving William Stein пишет: On Mon, Apr 27, 2009 at 5:01 PM, Serge Salamanka salsa-...@tut.by wrote: Hello, I wonder how it is possible to make a common shared objects space for all of the users on the Sage server ? If X is any object in any Sage session then any user can type save(X, '/tmp/name.sobj') and any other user can load X by typing X = load('/tmp/name.sobj') That basically accomplishes what you asked for, right? -- William The idea is to make available the mathematical space to users providing that they all can have access from within their own sessions to a common session. As far as I understand: I propose to install server as multiuser app with unix accounts. Each user runs IPython shell when working with Sage (also from notebook). There is a need to make the user objects accessible to others (say, like to work in the same session). The best would be even to use ACLs for controlling access to objects (say, another user cannot modify object but only read and use it). Could you please point me to the right direction. I suppose I should look for this somewhere in python functionality ? Comments are welcome. Serge --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: SageWorld
On Wed, Apr 29, 2009 at 3:00 PM, Serge Salamanka salsa-...@tut.by wrote: Is it a good idea to share objects between python processes with the help of any database ? Can't still find any decent tool for sharing objects. Saving and loading them in Sage seems to be a simple approach for user but not for an application to run. I think you might find it easier if you had only one Sage process and then wrote a client for multiple users to connect to that --Mike --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: SageWorld
Thank you, Mike Let's say, I run a Sage process on some python code which creates a space and sets variables and constants, starts time and log, loads objects and does manipulations with them, writes back the state of the objects. From user side I have to: - create object, - share it somehow with Sage, - have access to manipulate it (others should not be able to do that), - get the state of my object and other objects in the space, - decide what to do with my object: transform it or move it, either smth else, - share these changes with Sage. Ex., I follow picture of 2D graph where I have a circle to be my object in sageworld. Someone else joins in and draws a square somewhere close. Sage code checks that objects do not intercept. I need to swallow up that square. I write code for necessary transformations taking into account restrictions and all the rules of the sageworld and send it to a sage session. On the other end, the user which has a square looks at his 2d graph and sees that circle has begun transforming in a strange way. The task of that user is to avoid swallowing of his square by the circle. He makes the necessary precautions and sends the code to sageworld. This is a simple thing what I want to do. Sorry, if I described it very silly. But just to illustrate that writing a client may be is not the way to accomplish the task ... ??? I don't know. But thank you for the idea Serge Mike Hansen пишет: On Wed, Apr 29, 2009 at 3:00 PM, Serge Salamanka salsa-...@tut.by wrote: Is it a good idea to share objects between python processes with the help of any database ? Can't still find any decent tool for sharing objects. Saving and loading them in Sage seems to be a simple approach for user but not for an application to run. I think you might find it easier if you had only one Sage process and then wrote a client for multiple users to connect to that --Mike --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: find_root deprecation?
If I recall correctly, there was an exception in the deprecation made for numerical integrals and plotting of single-variable functions. Perhaps there should have been an exception for find_root as well? Or perhaps the syntax to find_root That would seem reasonable, if there is only one variable. Particularly since it calls scipy and the code in there does tricks like fx = func(x,*args). The problem is that you shouldn't have to declare f(x)=x+e^x (say) and only then use find_root. should be changed so that we specify the variable: find_root(f, (x, a, b)) or find_root(f, x, a, b) or something. scipy.optimize._zeros seems to be where the magic happens, but I can't tell what that does upon introspection - perhaps it's compiled, it's a .so file. But it doesn't appear to take a variable as input. Also interesting, though presumably unrelated, is the fact that I don't get the deprecation warnings in the notebook after the first time they appear - perhaps that is by design. - kcrisman --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Arbitrary precision computations?
Here's my input: h=10.0^(-20) ex=(2.7^h-1)/h and my output: 0.000 How to I coerce Sage to work with arbitrary precision, and to return the correct value, which is about 0.99? Thanks, Alasdair --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Arbitrary precision computations?
On Wed, Apr 29, 2009 at 6:17 PM, Alasdair amc...@gmail.com wrote: Here's my input: h=10.0^(-20) ex=(2.7^h-1)/h and my output: 0.000 How to I coerce Sage to work with arbitrary precision, and to return the correct value, which is about 0.99? Here's one way: sage: R = RealField(200) sage: h = R(10^(-20)) sage: (R(2.7)^h-1)/h 0.99325177301028339017267700150615326394159909466200116916687 --Mike --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Arbitrary precision computations?
On Apr 29, 2009, at 6:17 PM, Alasdair wrote: Here's my input: h=10.0^(-20) ex=(2.7^h-1)/h and my output: 0.000 How to I coerce Sage to work with arbitrary precision, and to return the correct value, which is about 0.99? Try sage: R = RealField(500) sage: h = R(10)^-20 sage: print (R(2.7)^h-1)/h 0.9932517730102833901726770015061532639415526726048180749159032931769966 089695123374514625906903549365273146831326783123824292605435199290675977 83729094 - Robert --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Arbitrary precision computations?
Thanks very much! -Alasdair --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Multiple users w/ VMWare
On Wed, Apr 29, 2009 at 11:41 AM, dw dwe...@structuralcomponents.net wrote: I feel silly asking this, but I can't seem to find info anywhere on this. I'm running the VMWare image (Sage ver. 3.2.3) and I want to be able to have multiple users log into the server. Right now it automatically signs in under the 'admin' account. If I sign out and try to sign back in, it logs right in with no password prompt or option to create a new user. I've tried changing the password but I don't know the current password (if left blank it give an error saying such). Any help or if anyone can point me in the right direction I'd appreciate it. Thanks. 1. Record the address that you use to connect to the vmware server (in your web browser) (in single user mode). 2. At the login prompt type type login: sage 3. Type at the sage prompt. sage: notebook(address=1.2.3.4, accounts=True, port=80) where 1.2.3.4 is the address you recorded in 1. It might work! William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---