[sage-support] Typeset in SageMathCloud?
Is there a `typeset` option like in the sage notebook for SageMathCloud? Or ist it necessary to use the `show()` function? -- 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] Want all real solutions to a Simple trig equation
solve(sin(x)==1/2,x) produces only one solution. Is here a way to have sage produce all real solutions ? Thx -- 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.
Re: [sage-support] Want all real solutions to a Simple trig equation
I On 3 May 2014 16:54, Javier Marquez drquij...@gmail.com wrote: solve(sin(x)==1/2,x) produces only one solution. Is here a way to have sage produce all real solutions ? Thx Is there not an infinite number of solutions? If so, it would be difficult to get them all Dave -- 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: Want all real solutions to a Simple trig equation
Dr. David Kirkby wrote: I On 3 May 2014 16:54, Javier Marquez drquij...@gmail.com mailto:drquij...@gmail.com wrote: solve(sin(x)==1/2,x) produces only one solution. Is here a way to have sage produce all real solutions ? Thx Is there not an infinite number of solutions? If so, it would be difficult to get them all Not difficult, but would take infinitely long to get them all... Note that one could use assume() to get a finite subset. -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- 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: Want all real solutions to a Simple trig equation
Javier Marquez wrote: solve(sin(x)==1/2,x) produces only one solution. Is here a way to have sage produce all real solutions ? Thx sage: solve(sin(x)==1/2,x,to_poly_solve='force') [x == 5/6*pi + 2*pi*z50, x == 1/6*pi + 2*pi*z48] is probably what you've been looking for. ('z50' and 'z48' indicate arbitrary integers.) assume() doesn't seem to have an impact here, and passing further relations to solve() doesn't seem to give useful results either. -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- 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: incomplete gamma function: evaluation and taylor series
On 2014-05-03, suvrat.r...@gmail.com suvrat.r...@gmail.com wrote: I am new to Sage; trying to explore open source alternatives to Mathematica. However, I seem to be having trouble with the incomplete gamma function. Here are two difficulties. First, in trying to evaluate the incomplete gamma function at a point where the result should be very small, I just get zero even if I increase the precision arbitrarily. In particular consider numerical_approx(gamma(9, 10^(-3))-gamma(9), digits=40) the value of this number is approximate -1.1 \times 10^(-28), but I just get 0.0 ...0 for the input above. I think this is a bug in the Sage's interface to PARI's incomplete gamma-function implementation. The latter has a parameter 'precision' that actually allows you do increase the precision of the computation here as much as you like. E.g. sage: pari(9).incgam(1/1000,precision=100).sage() - gamma(9) -1.1101098718046915201731717980618372763e-28 (the part pari(9).incgam(1/1000,precision=100) calls the PARI's incomplete gamma-function code, and .sage() pulls it back into Sage.) and you can increase the precision, e.g.: sage: pari(9).incgam(1/1000,precision=200).sage()-gamma(9) -1.110111565517708813007363808370583494179636586117301130595952112736737061589e-28 sage: pari(9).incgam(1/1000,precision=500).sage()-gamma(9) -1.11011156551770881300736380837058349417963658951616739908084575093982182228943211704794146886994896523236690487484369923202470676572472807219205439592102e-28 etc. Any takes to fix this? (meanwhile, you can use the workaround as above) HTH, Dmitrii -- 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: Typeset in SageMathCloud?
On Friday, May 2, 2014 10:46:53 PM UTC-5, Christian Caballero wrote: Is there a `typeset` option like in the sage notebook for SageMathCloud? Or ist it necessary to use the `show()` function? Yes there is...https://github.com/sagemath/cloud/wiki/FAQ#typsetting-output Turn it on with typeset_mode(True) and off with typeset_mode(False) Putting %auto typeset_mode(True) at the top of a worksheet will make this automatic. -- 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.
Re: [sage-support] Re: Typeset in SageMathCloud?
On Sat, May 3, 2014 at 3:25 PM, ssing...@coe.edu wrote: On Friday, May 2, 2014 10:46:53 PM UTC-5, Christian Caballero wrote: Is there a `typeset` option like in the sage notebook for SageMathCloud? Or ist it necessary to use the `show()` function? Yes there is...https://github.com/sagemath/cloud/wiki/FAQ#typsetting-output Turn it on with typeset_mode(True) and off with typeset_mode(False) Putting %auto typeset_mode(True) at the top of a worksheet will make this automatic. Yep -- thanks. Just a note -- I think that %auto doesn't necessarily 100% work correctly, always. This is a bug, which will get fixed, as soon as a couple of more high priority issues are resolved. William -- 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. -- William Stein Professor of Mathematics University of Washington http://wstein.org -- 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: incomplete gamma function: evaluation and taylor series
Hello, However, I seem to be having trouble with the incomplete gamma function. Here are two difficulties. First, in trying to evaluate the incomplete gamma function at a point where the result should be very small, I just get zero even if I increase the precision arbitrarily. In particular consider numerical_approx(gamma(9, 10^(-3))-gamma(9), digits=40) the value of this number is approximate -1.1 \times 10^(-28), but I just get 0.0 ...0 for the input above. I think this is a bug in the Sage's interface to PARI's incomplete gamma-function implementation. The latter has a parameter 'precision' that actually allows you do increase the precision of the computation here as much as you like. From looking at the source code, I suspect that the problem is in sage.functions.other.Function_gamma_inc, where the method _evalf_() does not use its argument parent (and hence does not know about the precision of that parent). If you don't want to use PARI explicitly, you can also avoid the bug by typing sage: C = ComplexField(400) sage: C(9).gamma_inc(1/1000) - gamma(9) -1.11011156551770881154239109830530085698810642670976295680548580836149189576782725366794514487711609262987622059881687164e-28 Peter -- 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: incomplete gamma function: evaluation and taylor series
This is in fact a long-standing bug, reported here: http://trac.sagemath.org/ticket/7099 (serious incomplete gamma function precision bugs) -- 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: incomplete gamma function: evaluation and taylor series
Correction: it is not exactly the same bug, but the two are certainly related. -- 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: incomplete gamma function: evaluation and taylor series
On Saturday, May 3, 2014 7:17:04 AM UTC-4, suvra...@gmail.com wrote: I am new to Sage; trying to explore open source alternatives to Mathematica. However, I seem to be having trouble with the incomplete gamma function. Here are two difficulties. First, in trying to evaluate the incomplete gamma function at a point where the result should be very small, I just get zero even if I increase the precision arbitrarily. In particular consider numerical_approx(gamma(9, 10^(-3))-gamma(9), digits=40) the value of this number is approximate -1.1 \times 10^(-28), but I just get 0.0 ...0 for the input above. I believe mpmath (in Sage) should also be able to do this fine, though I haven't tested your particular case: http://mpmath.googlecode.com/svn/trunk/doc/build/functions/expintegrals.html#gammainc -- 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] Discrete Logarithm Algorithm
Hi everybody. I want to know what algorithm are implemented for calculate log() and discrete log(). and what are the differences? -- 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.