On Wednesday, February 8, 2017 at 6:45:41 PM UTC, [email protected] wrote:
>
> 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 documentation of expand() appears to say that
this is the same thing, essentially. 

>
> The same question for  
> lambda f: (f^2).expand()
> (in Simon's answer): is the lambda construction just a shortcut, 
> equivalent to 
> return (g^2).expand()
> or is it something different?
>
it is the same thing - lambda is a facility to create nameless functions 
in-place.

 
 

>
> Thanks again
>
>  
>
>
> On Saturday, February 4, 2017 at 2:48:22 PM UTC-6, [email protected] 
> 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 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)
>> L[a_,x_]:=f[a]+f'[a](x-a)
>> Solve[L[a,x]==f[x],x]
>> Here the main issue for me is how use the derivative f'(x) without having 
>> to define a new function g(x)=derivative(f(x))
>>
>> 2) Testing if |f(z)| < f(|z|) for various choices of f:
>> Pl[f_,r_]:=Plot[Abs[f[r Exp[I t]]]/f[r],{t,0,2Pi}]
>> Here I am mostly interested in how to write a command that uses a 
>> function as a variable. 
>>
>> Thanks for any suggestions.
>>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to