[sage-support] Re: simple definition

2017-08-27 Thread valeriodea
Thank you Simon for the clear explanation On Sunday, August 27, 2017 at 8:32:34 AM UTC-5, Simon King wrote: > > PS: > > On 2017-08-27, Simon King wrote: > > So, what exactly is happening here? Two symbolic variables are > > created, and a symbolic function is created,

[sage-support] simple definition

2017-08-27 Thread valeriodea
I would like to understand why this definition of the slope of the secant line does not allow me to define the tangent line at a=1, even though it works if I use it by itself: f(x)=x^2 def sl(a): if a!=1: m=(f(a)-f(1))/(a-1) else: m=f.diff(x)(1) return m sl(1) 2

[sage-support] option head=2 together with dashdot for arrow does not work

2017-02-18 Thread valeriodea
arrow((2,2),(3,5),arrowsize=8,head=2,width=1,linestyle='dashdot',zorder=10) does not show a double arrow (that is, the option head=2 does not work with linestyle='dashdot') -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe

[sage-support] Re: how to do this in SAGE

2017-02-13 Thread valeriodea
Thanks for the explanations. I now know how to use the tab completion in SAGE and it's useful. Best, Valerio On Wednesday, February 8, 2017 at 4:21:31 PM UTC-6, Simon King wrote: > > Hi! > > On 2017-02-08, valer...@gmail.com > wrote: > > Is there a difference between

[sage-support] Re: how to do this in SAGE

2017-02-08 Thread valeriodea
Thank you to the people who responded, all answers were helpful. Is there a difference between return expand(f^2) and return (g^2).expand() or are they perfect synonyms? The same question for lambda f: (f^2).expand() (in Simon's answer): is the lambda construction just a shortcut, equivalent

[sage-support] Re: how to do this in SAGE

2017-02-07 Thread valeriodea
On Saturday, February 4, 2017 at 4:46:38 PM UTC-6, Dima Pasechnik wrote: > > > > On Saturday, February 4, 2017 at 8:48:22 PM UTC, valer...@gmail.com wrote: >> >> I would like to know the right way to do in SAGE what I am currently >> doing with Mathematica in these two examples (I actually know

[sage-support] how to do this in SAGE

2017-02-04 Thread valeriodea
I would like to know the right way to do in SAGE what I am currently doing with Mathematica in these two examples (I actually know how to do the first one in SAGE, but probably not in the best way): 1) Finding the intersection of a generic tangent line to f(x) with f(x): f[x_]:= x^2(x^2-1)