-1

I can not seem to figure out how to plot my vector function. I define the function like this

alpha = vector([sin(x), cos(x)])

and I can plot a single vector

plot(alpha(x=1))

but can not plot the whole function

plot(alpha(x=x))
#unable to simplify to float approximation

This plots the 2 functions separately

plot([sin(x), cos(x)])
Rohit Gupta
  • 4,022
  • 20
  • 31
  • 41

1 Answers1

0

as John Palmieri pointed out one can use parametric_plot to plot vector functions but you need to use a slight modified version like this

parametric_plot(alpha(x=x), (0,1))

or like this

parametric_plot(alpha, (x, 0, 1))

where 0 are the starting point and 1 the end point

the second one comes from John Palmieri as well
thank you for your help John