Ask Your Question
0

Error in the revolution plot

asked 2024-03-19 09:53:46 +0100

Kaunil gravatar image

updated 2024-03-19 16:41:36 +0100

FrédéricC gravatar image

Hi all,

I have mentioned the error and code below. Assistance is most appreciated.

Rot=matrix([[1,0,0],[0,cos(x),sin(x)],[0,-sin(x),cos(x)]])
v=vector([1,2,3])
revolution_plot3d(Rot*v,(x,0,2*pi))

error:

/opt/sagemath-9.3/local/lib/python3.7/site-packages/sage/repl/rich_output/display_manager.py:629: DeprecationWarning: Substitution using function-call syntax and unnamed arguments is deprecated and will be removed from a future release of Sage; you can use named arguments instead, like EXPR(x=..., y=...)

  rich_output = self._call_rich_repr(obj, rich_repr_kwds)
/opt/sagemath-9.3/local/lib/python3.7/site-packages/sage/repl/rich_output/display_manager.py:596: RichReprWarning: Exception in _rich_repr_ while displaying object: the number of arguments must be less than or equal to 0
  RichReprWarning,

Regards, Kaunil

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2024-03-19 20:47:31 +0100

FrédéricC gravatar image

try

revolution_plot3d(list(Rot*v),(x,0,2*pi))
edit flag offensive delete link more

Comments

Thanks, I used parametric plot instead. Your code is giving something complicated.

Kaunil gravatar imageKaunil ( 2024-07-28 16:43:08 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2024-03-19 09:53:46 +0100

Seen: 201 times

Last updated: Mar 19