[sage-support] AttributeError with Incomplete Gamma Function Plot
I am attempting to plot the incomplete gamma function, gamma(x,2), but Sage returns an error: AttributeError: type object 'float' has no attribute 'precision'. This is the exact command I am typing: plot(gamma(x,2),(x,0,5)) I am using Sage 6.4.1. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: Unable to Solve Simple Problem
Unfortunately, that method could produce extraneous solutions. There is an additional constraint from the original equation that x=0 since the square root of something must be =0 (no complex number is a solution, either). That is missing from x^2-x-1=0. Is there a way to make Sage check it with the original equation before displaying the final solutions, or somehow force it to solve the original? Although this may be a simple problem, there are difficult problems with constraints that may be overlooked by someone. -- 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 URL: http://www.sagemath.org
[sage-support] Unable to Solve Simple Problem
For some reason, Sage is unable to solve x=sqrt(1+x). It should be fairly easy to solve and has a solution being the golden ratio. Unfortunately, Sage simply returns the same equation. If it fails to solve this, I imagine it cannot solve more equations similar to this. -- 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 URL: http://www.sagemath.org
[sage-support] Re: Digamma Function in 4.1.1
I'm afraid I just don't know enough about this programming language yet to design this function before the final version of 4.1.2 is released. It seems to ignore any variation of a custom _integrate_. Here is what I have achieved so far if someone is interested in helping or further developing this function: class Function_psi(PrimitiveFunction): def __init__(self): Some description here. PrimitiveFunction.__init__(self, psi, nargs=2, latex=r'\psi', conversions=dict(ginac='psi')) __call__ = SFunction.__call__ polygamma = Function_psi() def psi(a,b=default): if b==default: return polygamma(0,a) else: return polygamma(a,b) The definition at the bottom is necessary since Sage simplifies psi (0,x) to psi(x). Optional arguments are accepted only after the required arguments, therefore, I created this to convert back. --~--~-~--~~~---~--~~ 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: Digamma Function in 4.1.1
I meant to say that I created the polygamma function as psi(order,x), not polygamma(order,x). --~--~-~--~~~---~--~~ 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: Digamma Function in 4.1.1
I managed to create the symbolic polygamma function as psi(order,x). Psi is limited in what it can do, though. I can get it to grab special values from Maxima's or GiNaC's table, but I still cannot get it to approximate any value of any integer order. It can be differentiated, but not integrated. It seems that this is a limitation of Maxima and GiNaC, not Sage. --~--~-~--~~~---~--~~ 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: Digamma Function in 4.1.1
Does anyone know which files are used for Sage? I need to know where from Sage's root directory to make this modification. --~--~-~--~~~---~--~~ 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: Digamma Function in 4.1.1
On Sep 21, 9:37 pm, Jason Grout jason-s...@creativetrax.com wrote: After modifying a file, do: sage -br which copies the modified files to the build directory and rebuilds Sage and then runs Sage. To just rebuild, just do sage -b I am currently using the Ubuntu 9.04 64-bit binary. Using ./sage -br or ./sage -b causes an error and prevents Sage from working afterward. Starting Sage normally also no longer works after rebuilding. Using ./sage -br ends with this error: ImportError: libcsage.so: cannot open shared object file: No such file or directory Error importing ipy_profile_sage - perhaps you should run %upgrade? WARNING: Loading of ipy_profile_sage failed. ERROR: name 'sage_prompt' is not defined Typing %upgrade tells me to delete a hidden file and retry the command. Sage still doesn't work after I do. The same situation occurred after I reinstalled Sage, ran the program, upgraded, modified a file, and rebuilt again. I may just download the source code, make the modification, and completely build Sage for my system. --~--~-~--~~~---~--~~ 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: Digamma Function in 4.1.1
On Sep 19, 10:33 am, Burcin Erocal bur...@erocal.org wrote: On Fri, 18 Sep 2009 15:47:45 -0700 (PDT) Defining a function psi, similar to the way arctan2 is defined in line 422 of sage/functions/trig.py should fix this. What is the location from Sage's root directory of the files used by Sage? I found several locations of sage/functions/trig.py. I found in the pdf of the reference manual that psi can be numerically calculated by using PARI (for example, pari(2.2342).psi()), but it still cannot be used symbolically or used to plot until the function psi is defined. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---