[sage-support] formatting not saved in notebooks
Dear all, As of version 3.1.2, plots are saved correctly in notebooks. Thanks to those that fixed it. However, I noticed that the formatting of cells beginning with %hide %html is not saved. I need to re-evaluate all of those cells to get the formatting back. Is this a bug in SAGE or does it have something to do with the web browser (Firefox 3.0.3 on Mac OS X 10.4)? Thanks again for the great effort! Stan --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: problem with animate on OS X 10.5, Sage 3.1.2
William Stein wrote: On Sat, Sep 27, 2008 at 5:51 PM, mabshoff [EMAIL PROTECTED] wrote: On Sep 27, 5:41 pm, John H Palmieri [EMAIL PROTECTED] wrote: Can anyone else reproduce this? I can't since I do not have convert on a Mac, but the problem is that we switched to a dynamic libpng. The solution is: * create a convert script in $SAGE_LOCAL/bin * set DYLD_LIBRARY_PATH to SAGE_ORIG_DYLD_LIBRARY_PATH * call convert with an absolute path (use which convert from outside Sage) and pass on all parameters (i.e. /use/local/foo/convert $@) We should probably do that automatically on OSX for convert, emacs and the other usual suspects. The problem boils down to Apple renaming some of the symbols in libpng and creating libPng.dylib in the process. The right solution, which we've probably halfway already done if I remember correctly, is to write a Sage function called run_command that resets the environment as you suggest above, runs the subcommand, and returns.This should be completely transparent to the user, and should do the right thing on Linux, OS X, etc. Then the animate command would call convert via run_command instead of os.system. See http://trac.sagemath.org/sage_trac/ticket/975 for a solution that is already put in place. Basically, use $SAGE_ROOT/local/bin/sage-native-execute, which does exactly what mabshoff says above. Thanks, Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: How do I extend an extension field?
On Sep 29, 2008, at 8:50 AM, David Møller Hansen wrote: Let F2=GF(2^7,'a'), E=EllipticCurve(F1,[0,0,1,1,1]), P=E.random_point(), F2=GF((2^7)^4,'a') Purpose: I want to look at the point P in the curve over F2 instead of F1. So I some way I want to extend F1. My question is how do I, when I already have an extension field F1, extend it to F2 in a way s.t. I can reuse element from F1 in F2? Does this do what you want? sage: F1.a = GF(2^7) sage: f=x^2+x+F1(1) sage: F2=F1.extension(f,'u') sage: F2 Univariate Quotient Polynomial Ring in u over Finite Field in a of size 2^7 with modulus u^2 + u + 1 sage: a in F2 True HTH Justin -- Justin C. Walker, Curmudgeon-At-Large, Director Institute for the Enhancement of the Director's Income The path of least resistance: it's not just for electricity any more. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: formatting not saved in notebooks
On Mon, Sep 29, 2008 at 7:00 AM, Stan Schymanski [EMAIL PROTECTED] wrote: Dear all, As of version 3.1.2, plots are saved correctly in notebooks. Thanks to those that fixed it. However, I noticed that the formatting of cells beginning with %hide %html is not saved. I need to re-evaluate all of those cells to get the formatting back. Is this a bug in SAGE or does it have something to do with the web browser (Firefox 3.0.3 on Mac OS X 10.4)? Thanks again for the great effort! This is definitely a bug. If it isn't listed at trac.sagemath.org somewhere, I hope somebody adds it, so it will get fixed. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: How do I extend an extension field?
Here's an alternative approach: sage: F1 = GF(2^7,'a'); F2 = GF(2^28,'b') # different names for legibility sage: F1.gen().minpoly().roots(F2) [ long list ] sage: g = F1.gen().minpoly().roots(F2)[0][0] sage: phi = Hom(F1, F2)(g) This is a bit roundabout, but it works. Unfortunately at present you can't just do phi(P), although you should be able to; but you can still create a new curve E2 over F2 and define P2 = E2([phi(u) for u in P]). David On Sep 29, 4:50 pm, David Møller Hansen [EMAIL PROTECTED] wrote: Let F2=GF(2^7,'a'), E=EllipticCurve(F1,[0,0,1,1,1]), P=E.random_point(), F2=GF((2^7)^4,'a') Purpose: I want to look at the point P in the curve over F2 instead of F1. So I some way I want to extend F1. My question is how do I, when I already have an extension field F1, extend it to F2 in a way s.t. I can reuse element from F1 in F2? /David --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: How do I extend an extension field?
Thank you for you answer Justin and I should also apologize for my badly formulated question but you understood it correctly. I just can't get SAGE to eat the line you write f=x^2+x+F1(1), it complains with: TypeError: unsupported operand parent(s) for '+': 'Symbolic Ring' and 'Finite Field in a of size 2^7' /David --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: How do I extend an extension field?
Thank you David. This seems to work just fine, though a bit of a roundabout - I agree. I do not understand why sage doesn't have a command just letting you expand a Galois field with a arbitrary expansion degree, in my case 4. /David --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: formatting not saved in notebooks
On Sep 29, 10:17 am, William Stein [EMAIL PROTECTED] wrote: On Mon, Sep 29, 2008 at 7:00 AM, Stan Schymanski [EMAIL PROTECTED] wrote: Dear all, As of version 3.1.2, plots are saved correctly in notebooks. Thanks to those that fixed it. However, I noticed that the formatting of cells beginning with %hide %html is not saved. I need to re-evaluate all of those cells to get the formatting back. Is this a bug in SAGE or does it have something to do with the web browser (Firefox 3.0.3 on Mac OS X 10.4)? Thanks again for the great effort! This is definitely a bug. If it isn't listed at trac.sagemath.org somewhere, I hope somebody adds it, so it will get fixed. This does not seem to be in trac, so I made this #4217. William Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: problem with animate on OS X 10.5, Sage 3.1.2
On Sep 29, 7:40 am, Jason Grout [EMAIL PROTECTED] wrote: See http://trac.sagemath.org/sage_trac/ticket/975for a solution that is already put in place. Basically, use $SAGE_ROOT/local/bin/sage-native-execute, which does exactly what mabshoff says above. So like the following? http://trac.sagemath.org/sage_trac/ticket/4216 By the way, is there a way to tell which calls to os.system should use sage-native-execute, or should we just deal with case-by-case? John --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: problem with animate on OS X 10.5, Sage 3.1.2
On Sep 29, 11:15 am, John H Palmieri [EMAIL PROTECTED] wrote: On Sep 29, 7:40 am, Jason Grout [EMAIL PROTECTED] wrote: Seehttp://trac.sagemath.org/sage_trac/ticket/975fora solution that is already put in place. Basically, use $SAGE_ROOT/local/bin/sage-native-execute, which does exactly what mabshoff says above. So like the following? http://trac.sagemath.org/sage_trac/ticket/4216 Yep, pretty much. By the way, is there a way to tell which calls to os.system should use sage-native-execute, or should we just deal with case-by-case? sage-native-execute sets [DY]LD_LIBRARY_PATH depending if the binary is in $SAGE_LOCAL/bin or not and avoids the kind of missing or incorrect symbol problem. I would always prefer sage-native-execute over os.system. John Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: How do I extend an extension field?
On Sep 29, 2008, at 10:51 AM, David Møller Hansen wrote: Thank you for you answer Justin and I should also apologize for my badly formulated question but you understood it correctly. I just can't get SAGE to eat the line you write f=x^2+x+F1(1), it complains with: TypeError: unsupported operand parent(s) for '+': 'Symbolic Ring' and 'Finite Field in a of size 2^7' Any time you see 'Symbolic Ring', or something similar, in an error message, you have run afoul of some short-cuts built into sage to make things simple for those who are new to sage, or are just using it as a quick and dirty calculator. The issue is that 'x' is predeclared as a symbolic calculus variable, and you want it to be an indeterminate for use in a polynomial ring. My reply earlier finessed the problem by not mentioning that I actually had this between defining F1 and defining f: sage: P1.x=PolynomialRing(F1) When you do this, your polynomial will actually be an element in F1 [x], and not some strange symbolic thing that doesn't play well with others :-} In short, the correct way to do what I showed earlier is sage: F1.a = GF(2^7) sage: P1.x=PolynomialRing(F1) sage: f=x^2+x+F1(1) sage: F2=F1.extension(f,'u') sage: F2 Univariate Quotient Polynomial Ring in u over Finite Field in a of size 2^7 with modulus u^2 + u + 1 sage: a in F2 True (which I just verified in a fresh run of sage 3.1.1). Sorry for the confusion. Justin -- Justin C. Walker, Curmudgeon-At-Large Director Institute for the Enhancement of the Director's Income Here lies Lester Moore Two bullets from a .44 No less, no more --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: How do I extend an extension field?
This is great, this is actually how I initially hoped it could be done. And yes - I am quite new to SAGE. It's though still a bit messy, since when I in F2 request a random_element() I will only get 1 or 0. /David On Sep 29, 9:12 pm, Justin C. Walker [EMAIL PROTECTED] wrote: On Sep 29, 2008, at 10:51 AM, David Møller Hansen wrote: Thank you for you answer Justin and I should also apologize for my badly formulated question but you understood it correctly. I just can't get SAGE to eat the line you write f=x^2+x+F1(1), it complains with: TypeError: unsupported operand parent(s) for '+': 'Symbolic Ring' and 'Finite Field in a of size 2^7' Any time you see 'Symbolic Ring', or something similar, in an error message, you have run afoul of some short-cuts built into sage to make things simple for those who are new to sage, or are just using it as a quick and dirty calculator. The issue is that 'x' is predeclared as a symbolic calculus variable, and you want it to be an indeterminate for use in a polynomial ring. My reply earlier finessed the problem by not mentioning that I actually had this between defining F1 and defining f: sage: P1.x=PolynomialRing(F1) When you do this, your polynomial will actually be an element in F1 [x], and not some strange symbolic thing that doesn't play well with others :-} In short, the correct way to do what I showed earlier is sage: F1.a = GF(2^7) sage: P1.x=PolynomialRing(F1) sage: f=x^2+x+F1(1) sage: F2=F1.extension(f,'u') sage: F2 Univariate Quotient Polynomial Ring in u over Finite Field in a of size 2^7 with modulus u^2 + u + 1 sage: a in F2 True (which I just verified in a fresh run of sage 3.1.1). Sorry for the confusion. Justin -- Justin C. Walker, Curmudgeon-At-Large Director Institute for the Enhancement of the Director's Income Here lies Lester Moore Two bullets from a .44 No less, no more --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: formatting not saved in notebooks
Hello, On Mon, Sep 29, 2008 at 7:00 AM, Stan Schymanski [EMAIL PROTECTED] wrote: As of version 3.1.2, plots are saved correctly in notebooks. Thanks to those that fixed it. However, I noticed that the formatting of cells beginning with %hide %html is not saved. I need to re-evaluate all of those cells to get the formatting back. Is this a bug in SAGE or does it have something to do with the web browser (Firefox 3.0.3 on Mac OS X 10.4)? I'm not able to reproduce this on my machine. Could you makes a specific list of thing you do to reproduce this on your system? Thanks, Mike --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: How do I extend an extension field?
On Sep 29, 2008, at 12:33 PM, David Møller Hansen wrote: This is great, this is actually how I initially hoped it could be done. And yes - I am quite new to SAGE. It's though still a bit messy, since when I in F2 request a random_element() I will only get 1 or 0. I think 'messy' is understating things. This seems like a bug. I've created Trac #4218 for this problem. Thanks for reporting this. Justin -- Justin C. Walker, Curmudgeon-At-Large Director Institute for the Enhancement of the Director's Income Here lies Lester Moore Two bullets from a .44 No less, no more --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] aspect_ratio in 3d
I don't understand aspect_ratio for 3d plots, or maybe there are bugs. If I do (from the notebook interface) sage: var('x y') sage: Q = plot3d(sin(x+y), (-3,3), (-2,2)) sage: Q.show() then I get a nice picture, with a labeled frame showing x going from -3 to 3, y from -2 to 2, z from -1 to 1. The different axes are scaled differently, so that (for example) the x and y axes have the same length. Also, sage: Q.show(aspect_ratio=[1,1,1]) works as expected: the variables are displayed in the appropriate ranges, and the axes seem to all be scaled the same. But if I do sage: Q.show(aspect_ratio=[1,1,2]) then I get a picture with a labeled frame showing x going from -3 to 3, y going from -4 to 4 (!), z going from -2 to 2 (!), the x and z axes scaled the same, and the y-axis is at about half the scale of the x-axis. This is not at all what I expected; I was thinking that [1,1,2] would mean that the z-axis would be doubled (or maybe halved) in scale, compared to the other two. I'm puzzled; can anyone explain this? The documentation for aspect_ratio in show says (default: automatic) -- aspect ratio of the coordinate system itQ. Give [1,1,1] to make spheres look round. This is not helpful to me. (And what does itQ mean? Is it a typo? Oh, I see, it should have said itself, but self got replaced by Q.) John --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: How do I extend an extension field?
On Mon, Sep 29, 2008 at 10:54 AM, David Møller Hansen [EMAIL PROTECTED] wrote: Thank you David. This seems to work just fine, though a bit of a roundabout - I agree. I do not understand why sage doesn't have a command just letting you expand a Galois field with a arbitrary expansion degree, in my case 4. It's only because you haven't written it and contributed it to Sage yet. :-) Seriously, I released Sage-0.1 in Jan 2005, just over 3 years ago, and Sage just isn't done yet, and that's pretty much the only reason why Sage doesn't have lots of natural things that one would like to have yet. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Lost notebook worksheets after updating
Several times I indicated the same problem but until now no action. I just save my worksheets (around 30) manually and recover the *.sws files one by one in the new SAGE version. Life is hard Roland On 29 sep, 14:11, Daniel Loughran [EMAIL PROTECTED] wrote: I am currently using sage on windows, and I recently upgraded my sage to the latest version, but was disappointed to discover that the notebook had been reset and I had lost all my worksheets. Is there anyway to recover them? Or to save them externally so that I do not lose them again? Shouldnt there be some sort of warning somewhere in the installation process so that you know you are going to lose everything? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Lost notebook worksheets after updating
On Mon, Sep 29, 2008 at 2:27 PM, Rolandb [EMAIL PROTECTED] wrote: Several times I indicated the same problem but until now no action. It's definitely not due to lack of desire on our part. It's just that there are so many things to do, and so little time. The simplest solution would be to add a link to the notebook that allows one to download all the files for that notebook into a single file (a tarball), and another link in the notebook that allows one to upload all worksheets in such an archive. I think this could be implemented in a few hours. What do people think of this? It would beat doing this: I just save my worksheets (around 30) manually and recover the *.sws files one by one in the new SAGE version. -- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: aspect_ratio in 3d
On Mon, Sep 29, 2008 at 2:22 PM, John H Palmieri [EMAIL PROTECTED] wrote: I don't understand aspect_ratio for 3d plots, or maybe there are bugs. If I do (from the notebook interface) sage: var('x y') sage: Q = plot3d(sin(x+y), (-3,3), (-2,2)) sage: Q.show() then I get a nice picture, with a labeled frame showing x going from -3 to 3, y from -2 to 2, z from -1 to 1. The different axes are scaled differently, so that (for example) the x and y axes have the same length. Also, sage: Q.show(aspect_ratio=[1,1,1]) works as expected: the variables are displayed in the appropriate ranges, and the axes seem to all be scaled the same. But if I do sage: Q.show(aspect_ratio=[1,1,2]) then I get a picture with a labeled frame showing x going from -3 to 3, y going from -4 to 4 (!), z going from -2 to 2 (!), the x and z axes scaled the same, and the y-axis is at about half the scale of the x-axis. This is not at all what I expected; I was thinking that [1,1,2] would mean that the z-axis would be doubled (or maybe halved) in scale, compared to the other two. I'm puzzled; can anyone explain this? The documentation for aspect_ratio in show says (default: automatic) -- aspect ratio of the coordinate system itQ. Give [1,1,1] to make spheres look round. This is not helpful to me. (And what does itQ mean? Is it a typo? Oh, I see, it should have said itself, but self got replaced by Q.) Try frame_aspect_ratio, which is probably what you really want given your questions. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sageplot axis numbering
On Sat, Sep 27, 2008 at 4:36 AM, Munthe [EMAIL PROTECTED] wrote: Hey I'm writing a paper about the trigonometric functions, using LaTeX and sagetex. And would therefore like to chance the the default numbering on the x-axis to a pi scale. Unfortunately, this is currently not supported by the current sage plotting infrastructure. I wish it were. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Lost notebook worksheets after updating
On Sep 29, 3:33 pm, William Stein [EMAIL PROTECTED] wrote: On Mon, Sep 29, 2008 at 2:27 PM, Rolandb [EMAIL PROTECTED] wrote: Several times I indicated the same problem but until now no action. It's definitely not due to lack of desire on our part. It's just that there are so many things to do, and so little time. The simplest solution would be to add a link to the notebook that allows one to download all the files for that notebook into a single file (a tarball), and another link in the notebook that allows one to upload all worksheets in such an archive. I think this could be implemented in a few hours. What do people think of this? It would beat doing this: I just save my worksheets (around 30) manually and recover the *.sws files one by one in the new SAGE version. Yep, the feature request to do this is #2740. Cheers, Michael -- William Stein Associate Professor of Mathematics University of Washingtonhttp://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: aspect_ratio in 3d
On Mon, Sep 29, 2008 at 4:17 PM, John H Palmieri [EMAIL PROTECTED] wrote: On Sep 29, 3:51 pm, William Stein [EMAIL PROTECTED] wrote: On Mon, Sep 29, 2008 at 2:22 PM, John H Palmieri [EMAIL PROTECTED] wrote: Try frame_aspect_ratio, which is probably what you really want given your questions. Hmm. You're right -- that it is probably what I really want -- but I still don't understand aspect_ratio. Why, if I change aspect_ratio from [1,1,1] to [1,1,2], do the relative scalings of the x- and y-axes change? Shouldn't only the z-axis (relative to x and y) be affected? I guess I find the behavior of aspect_ratio rather unpredictable. With P = sphere() P.show(aspect_ratio=[a,b,c]) it makes sense: the coordinate system, and hence the sphere, is stretched by these factors. However, with the plot that I mentioned in my original post, it seems to behave oddly, as mentioned above: changing from [1,1,1] to [1,1,2] altered the relative scales on the x and y axes. If it just doesn't make sense to you, even after you've thought about it and read the docs, then I think it's buggy! We can talk about it when I'm back in Seattle (e.g., tomorrow)... -- William -- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Setting the bounding box on plot3d
Is there any way for the user to set the bounding box on plot3d? The basic idea is I don't want the full z-values for the function and would like to crop some of them off. The best I've come up with so far without hunting through source files is: y=var('y') f=lambda x,y: min(x^2+y^2,4); plot3d( f, (x,-2,2), (y,-2,2)) If not, where do I start trying to implement it? Thanks, Matt --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: problem with attach
Thanks. This answers my question completely. On 25 sep, 19:40, William Stein [EMAIL PROTECTED] wrote: On Thu, Sep 25, 2008 at 2:09 AM, Jan Peeters [EMAIL PROTECTED] wrote: I have a worksheet Getaltheorie in my Worksheet List. When i give the command attach Getaltheorie (or attach 'Getaltheorie', or or attach 'Getaltheorie.sage' or ...) in another worksheet, i get the error message 'Error attaching /Users/jokr004/.sage/Getaltheorie -- file not found'. I'm sure I'm doing something wrong but i have no idea how to solve it. Is there a way to load the commands defined in ane worksheet into another worksheet? There is no way load the commands defined in one worksheet into another, unfortunately. You can however, put commands you want to be common to multiple worksheets in a file and attach that file. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---