Register to reply

Mathematica:How can I acclaim a variable is real in a complex function

Share this thread:
palzle
#1
Feb17-09, 10:31 PM
P: 2
Hi,I'm a beginner.
here's the example:
f[x_] := E^(I*x)
Conjugate[f[x]]*f[x]
I'd like get 1,but it give me a complex function coz it regard x as complex.
please help me:how to claim x is real?

by the way,is that necessary to define a letter as a constant.no matter yes or not,how to refer a letter constant to be real or pure imaginary

Thank you!
Phys.Org News Partner Science news on Phys.org
An interesting glimpse into how future state-of-the-art electronics might work
Tissue regeneration using anti-inflammatory nanomolecules
C2D2 fighting corrosion
CRGreathouse
#2
Feb17-09, 11:47 PM
Sci Advisor
HW Helper
P: 3,684
You could do
f[x_]:=Exp[I*Re[x]]
so it takes only the real part of x (which doesn't change it, of course, when x is real).
palzle
#3
Feb18-09, 07:00 AM
P: 2
Thanks for your reply.
I tried your answer,and it works.

Well,I have some...eerr...
what if I'd define the domain for function f[x]?
I mean that I wanna prescribe x in f[x] must be real or pure imaginary or rational number.How to do that.

I've a similar question here.How to claim a letter constant to be real or pure imaginary or rational number?

Waiting for your kindness.


Register to reply

Related Discussions
Singularity of function of complex variable Calculus & Beyond Homework 0
[Q]How can i draw real graph from complex function? Advanced Physics Homework 2
How do singularities of a function on a complex plane affect real line behavior? Calculus 1
Real and Complex Parts of a Wave Function Advanced Physics Homework 3
Complex Functions of a complex variable Calculus & Beyond Homework 3