[sage-support] latex output for real numbers without zeros at the end
-- Hi, i browsed the support but i found just an equal question (fixing precision for real and complex and sliders) without answer. If i do the show command on a formula where real numbers are involved the numbers are printed with many zeros at the end. Is there an option to truncate this zeros to get a nice output ? Here is an example for the issue: var('vps tair') vps._latex_ = lambda: 'p_{vsat}' tair._latex_ = lambda: 'T_{a}' eqvps = vps == 0.6108 * exp(17.27 * tair / (tair + 237.3)) show(eqvps) I also tried the n.function (digits=...). By using just the number it works: show(0.6108.n(digits=4)) but if i add a latex term the function does not work and the output shows the zeros again: show(0.6108.n(digits=4)*tair) Thanks for help, Andreas -- --~--~-~--~~~---~--~~ 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: Sagemath : Problem of installation
2008/11/7 Cyriaque M'BAKA Cyriaque.M'[EMAIL PROTECTED]: Good morning, I'm ingenior in department Calcul Scientifique of laboratory LIP6, University of Paris 6. In your department, many people are interested on Sage. Some have installed Sage on personal computer (Windows, Mac); But the common computers have Scientic Linux system and your version for fedora Linux do not compile (see my test later). Can you help us? You did not build from source. The information below says that the binary you got was built for a (much) newer CPU than the hardware you have. You will have to build from source, as explained at http://sagemath.org/download-source.html Please direct future emails to the mailing list [EMAIL PROTECTED] Thanks! Best regards, === Test == real0m4.228s user0m0.812s sys 0m1.176s To install gap, gp, singular, etc., scripts in a standard bin directory, start sage and type something like sage: install_scripts('/usr/local/bin') at the SAGE command prompt. SAGE build/upgrade complete! == [EMAIL PROTECTED] sage-3.1.2-fedora8-x86_64-x86_64-Linux]# ./sage -- | SAGE Version 3.1.2, Release Date: 2008-09-19 | | Type notebook() for the GUI, and license() for information.| -- The SAGE install tree may have moved. Regenerating Python.pyo and .pyc files that hardcode the install PATH (please wait at most a few minutes)... Please do not interrupt this. /usr/local/prive/users/sagemath/sage-3.1.2-fedora8-x86_64-x86_64-Linux/local/bin/sage-sage: line 215: 31513 Instruction illégale sage-ipython $@ -c $SAGE_STARTUP_COMMAND; [EMAIL PROTECTED] sage-3.1.2-fedora8-x86_64-x86_64-Linux]# = vi /usr/local/prive/users/sagemath/sage-3.1.2-fedora8-x86_64-x86_64-Linux/local/bin/sage-sage: 215 sage() { sage_setup sage-ipython $@ -c $SAGE_STARTUP_COMMAND; } = == -- 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: implicit_plot automatically fills?
I found the solution. implicit_plot calls contour_plot, whose default value for the fill option is True. Setting fill=False works: sage: implicit_plot(x^2+y^2-1,(x,-5,5),(y,-5,5),fill=False) IMHO most people don't want implicit_plot to fill in by default, so Trac #4462 has been added. regards john perry On Nov 6, 5:05 pm, john_perry_usm [EMAIL PROTECTED] wrote: Hullo, The most recent version I have of Sage (3.1.4) believes that I want my implicit plots filled. For example, implicit_plot(x^2+y^2-1,(x,-5,5),(y,-5,5)) gives a filled-in disc, not an open circle. This happens with open curves, too; check out implicit_plot(5*x^4-x^2-y^2,(x,-5,5),(y,-5,5)) This appears to be a change from 3.1.1 and earlier, where implicit plots (closed or open) were not filled in. I verified both at my installation and at sagenb.org. How do I get the old functionality back? regards john perry --~--~-~--~~~---~--~~ 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: implicit_plot automatically fills?
john_perry_usm wrote: I found the solution. implicit_plot calls contour_plot, whose default value for the fill option is True. Setting fill=False works: sage: implicit_plot(x^2+y^2-1,(x,-5,5),(y,-5,5),fill=False) IMHO most people don't want implicit_plot to fill in by default, so Trac #4462 has been added. Thanks for tracking this down. It bothered me too. 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] customizing latex output
Hello, is it possibleto translate (sin(x))^2 in LaTeX output into \sin^2(x) instead of \sin(x)^2? Maxima has this functionality, but what about Sage? Thank you Robert Marik --~--~-~--~~~---~--~~ 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: implicit_plot automatically fills?
Jason Grout wrote: john_perry_usm wrote: I found the solution. implicit_plot calls contour_plot, whose default value for the fill option is True. Setting fill=False works: sage: implicit_plot(x^2+y^2-1,(x,-5,5),(y,-5,5),fill=False) IMHO most people don't want implicit_plot to fill in by default, so Trac #4462 has been added. Thanks for tracking this down. It bothered me too. Patch is up at #4462 and needs to be reviewed (should be really easy). Basically, #4201 forgot to override the contour_plot's default value of fill=True. We should have caught this in the refereeing process; sorry! 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: java plugin for ubuntu 8.04 on amd64
Hm I can give it a try. As a work around, is it possible to have the behaviour of jmol so that instead of being embeded in the webpage as an applet it launches it as it normally would? In Intrepid, the icedtea plugin does not work either. I've heard you can install the sun java plugin if you install a 32bit firefox: http://ubuntuforums.org/showthread.php?p=1174435 However, if you use the TeXmacs session, and write for example: g=sphere() show(g) a jmol window pops up and works ok with the openjdk. Regards Pablo --~--~-~--~~~---~--~~ 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 to use the Sage interface to CoCoA?
Bonjour, This semester, I have a course on Computative Algebra and we are given exercices using CoCoA. I installed it and I don't really like the interface. Although, cocoa is not mentionned in 14. Interpreter Interfaceshttp://www.sagemath.org/doc/ref/node95.htmlof the *Sage* Reference Manual, I have seen that the file sage/interfaces/cocoa.py exists. But nothing of cocoa.py is imported in the file sage/interfaces/all.py . What should I do so that I can open a cocoa console in sage ? I would be happy to have an answer before November 11th, because I will give a presentation on sage that day to the teacher and the other students in the course mentionned above. Merci beaucoup, Sébastien, UQAM --~--~-~--~~~---~--~~ 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] Notebook can't view files
I recently upgraded to the new version (3.1.4), and I can't view any of the worksheets that I create. When I open up the notebook, no worksheets are present even after I created a new one. I checked the sage_notebook folder, and the files are being created, but for some reason they are not showing up on the notebook. If anyone could help, I would greatly appreciate it. Michael Yurko --~--~-~--~~~---~--~~ 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 to use the Sage interface to CoCoA?
On Nov 7, 3:47 pm, Sébastien Labbé [EMAIL PROTECTED] wrote: Bonjour, Hi Sébastien, This semester, I have a course on Computative Algebra and we are given exercices using CoCoA. I installed it and I don't really like the interface. Although, cocoa is not mentionned in 14. Interpreter Interfaceshttp://www.sagemath.org/doc/ref/node95.htmlof the *Sage* Reference Manual, I have seen that the file sage/interfaces/cocoa.py exists. But nothing of cocoa.py is imported in the file sage/interfaces/all.py . What should I do so that I can open a cocoa console in sage ? I would be happy to have an answer before November 11th, because I will give a presentation on sage that day to the teacher and the other students in the course mentionned above. Unfortunately there interface never worked and it has actually been discussed removing that file since it is non-functional for now. One issue is that the separator in CoCoA does not work very well and that there is no input prompt. Merci beaucoup, Sébastien, UQAM 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: Notebook can't view files
On Fri, Nov 7, 2008 at 4:30 PM, M. Yurko [EMAIL PROTECTED] wrote: I recently upgraded to the new version (3.1.4), and I can't view any of the worksheets that I create. What version did you upgrade from? When I open up the notebook, no worksheets are present even after I created a new one. I checked the sage_notebook folder, and the files are being created, but for some reason they are not showing up on the notebook. If anyone could help, I would greatly appreciate it. Are you looking at $HOME/.sage/sage_notebook? You might try moving that folder out of the way and creating a new notebook from scratch. Are there worksheet.txt files from your old notebook? If so you can paste their text into a fresh worksheet (after clicking Edit). Michael Yurko -- 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] tan(pi/2) unevaluated?
Hello all :-) I'm new to sage and to this group. I teach at a two-year college and have been exploring the possibilities of incorporating sage into some of my classes. On my laptop I also have Mathematica and Matlab installed and have used Maple in the past as well. I started experimenting with sage because it would provide a free (yay!) alternative to the programs mentioned above; this is a big plus for my students already burdened with the high cost of their textbooks. With the small amount of exposure to sage I've had so far, I can say that I find it useful and powerful. It is also, to me, confusing at time but to be fair so too are Mathematica and Maple. Now to the problem at hand. I've been trying to evaluate a symbolic double integral but am perplexed by the unevaluated tan(pi/2) expressions in the result since tan(pi/2) is undefined. What am I missing here and what do I need to do to get this to evaluate to the correct value of (4*pi - 3*sqrt(3))*a^2/6? Thanks much, Gary sage input: *** var('a r theta') assume(a 0) integral(integral(r, r, a*csc(theta), 2*a), theta, pi/6, pi/2) *** sage output: * (2*pi*tan(pi/2) + 1)*a^2/(2*tan(pi/2)) - (2*pi + 3*sqrt(3))*a^2/6 * --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---