Instead of:
gamma=vector([t,t^2,t^3])
use:
gamma=vector([t,t^2,t^3]).function(t)

Alternatively, keep gamma as is and use gamma(t=x) instead of gamma(x).

On Thursday, September 9, 2021 at 1:18:52 PM UTC-7 Federico Galetto wrote:

> Hello, I get a warning due to function-call syntax deprecation and I don't 
> understand how to fix it despite looking at other similar conversations.
>
> Here is the setup for my code:
>
> t=var('t')
> gamma=vector([t,t^2,t^3])
> curve=parametric_plot(gamma,(t,-2,2),color='black',radius=0.02)
> v=derivative(gamma,t)
> T=v/v.norm()
> Tp=derivative(T,t)
> N=Tp/Tp.norm()
> B=T.cross_product(N)
>
> This code creates the plot of a space curve and computes T,N,B which are 
> unit tangent, normal, and binormal vectors. Now I want to create an 
> interactive 3d plot:
>
> def frame(x):
>     pT = T(x).plot(start=gamma(x),radius=0.02)
>     pN = N(x).plot(color='red',start=gamma(x),radius=0.02)
>     pB = B(x).plot(color='green',start=gamma(x),radius=0.02)
>     frenet = pT + pN + pB
>     whole = frenet + curve
>     return whole
> a = animate([frame(x) for x in srange(-0.5,1.5,.02)])
> a.show()
>
> Although this works, I get the syntax deprecation warning at the line 'a = 
> animate(...'.
>
> Any help is greatly appreciated!
> Fred
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/59eba31c-57f2-4c9b-851a-335526ee2dc6n%40googlegroups.com.

Reply via email to