Mathematica real part

  • Mathematica
  • Thread starter bulash
  • Start date
  • #1
4
0

Main Question or Discussion Point

Dear all,

I try to get the Real part of the following function in Mathematica:

Code:
(-0.0006451572617131402 + 0.01297637024965604i)*
Log[(1.3104275557173537 - 1.368518505178231i]) + x]

by using Re[z]. However, it gives no solution other than just repetition of what I entered:


Code:
Re[(-0.0006451572617131402 + 0.01297637024965604i)*
Log[(1.3104275557173537 - 1.368518505178231i]) + x]]

Any suggestions? Thanks in advance.

bulash.
 

Answers and Replies

  • #2
1,013
70
You have a rogue square bracket in your logarithm.
 
  • #3
4
0
OK. Right, thank you.

It was my "copy-paste fault". Must be like that:

Code:
(-0.0006451572617131402 + 0.01297637024965604i)*
Log[(1.3104275557173537 - 1.368518505178231i) + x]
The problem is, I think, the lack of definition of x as real. But how? tried almost every way, no way? :(

B.
 
  • #4
61
0
You have written the imaginary symbol "i" wrongly in your code. Replace it with a capital "I" or alternatively use the mathematica symbol for an imaginary number, which you can get by typing Esc, ii, Esc (Esc is the button Esc on the keyboard).

Try either method and you should get the code to work.
 
  • #5
29,762
6,089
Also, you can use ComplexExpand to get a symbolic representation assuming that x is real.
 

Related Threads on Mathematica real part

  • Last Post
Replies
8
Views
809
Replies
3
Views
2K
Replies
3
Views
2K
Replies
3
Views
3K
Replies
6
Views
6K
Replies
5
Views
1K
Replies
0
Views
636
Replies
3
Views
4K
Top