Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.6K Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Use parametric complex functions?

Posted 9 years ago

Hello! I was wondering if there is a way to use parametric complex functions, i.e. giving as an input

Abs[x+iy]

get the output

Sqrt[x^2+y^2]

For example if I write Abs[1+i] I get Sqrt[2], but Abs[x+i] doesn't work (I guess that the software doesn't know that x is a real variable) Thanks for the help!

POSTED BY: Mario R
3 Replies
Posted 9 years ago

Thank you!

POSTED BY: Mario R

ComplexExpand may be the function for your task:

Abs[x + I] // ComplexExpand
POSTED BY: Gianluca Gorni
Posted 9 years ago

Example:

Assuming[{x \[Element] Reals, x > 0}, Simplify[Abs[x + I]]]

returns

Abs[I + x]

instead of

Sqrt[1 + x^2]
POSTED BY: Mario R
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard