Message Boards Message Boards

0
|
1994 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

[Solved] Function AbsArg not available in Mathematica 9?

Anonymous User
Anonymous User
Posted 3 years ago

What am I doing wrong? I wanted to convert a complex number to its polar form (a+bi=x(Cos[y]+i Sin[y]), but when I tried to type AbsArg in Mathematica 9 it doesn't recognize!! For example, AbsArg[1+i].

Do I need to install a package or something, does this function AbsArg really exist in version 9?

This is absolutely nuts and super annoying how the function is on their site, but isn't recognized for me. Please help.

POSTED BY: Anonymous User
2 Replies

AbsArg was introduced in version 10.1. Functions Abs and Arg do work though. You can also make it yourself:

AbsArg[x_List] := AbsArg /@ x
AbsArg[x_] := {Abs[x],Arg[x]}

Note that this version is not deeply integrated but will work for simple cases.

POSTED BY: Sander Huisman
Anonymous User
Anonymous User
Posted 3 years ago

Thanks so much, Sander. I was puzzled.

POSTED BY: Anonymous User
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract