Message Boards Message Boards

Define a complex number

Posted 10 years ago

Hello, I want to define a complex number like z(x,y) = x + i y But when I do some mathematical operations on this number, Mathematica program don't know that the variables x and y are real numbers

How can i enforce mathematica to deal with x and y as a real numbers not a complex numbers

I am looking for ward to receive a comment .. many thanks

POSTED BY: Ahmed Al-Ali
4 Replies
POSTED BY: Ulrich Mutze

First, try using ComplexExpand:

http://reference.wolfram.com/language/ref/ComplexExpand.html

ComplexExpand expands an expression assuming the variables are Real.

Additionally, you can use the Assumptions option on many commands to tell it to assume that certain variables are Real

Assumptions ->Element[{x,y},Reals]

See: http://reference.wolfram.com/language/ref/Assumptions.html

POSTED BY: Sean Clarke
Posted 10 years ago
POSTED BY: Ahmed Al-Ali
Posted 10 years ago

Hello, I want to define a complex number like z(x,y) = x + i y But when I do some mathematical operations on this number, Mathematica program don't know that the variables x and y are real numbers

How can i enforce mathematica to deal with x and y as a real numbers not a complex numbers

I am looking for ward to receive a comment .. many thanks

POSTED BY: Ahmed Al-Ali
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