Calculate Real Part of Expression in Mathematica

  • Context: Mathematica 
  • Thread starter Thread starter bulash
  • Start date Start date
  • Tags Tags
    Mathematica
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 7K views
bulash
Messages
4
Reaction score
0
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.
 
Physics news on Phys.org
You have a rogue square bracket in your logarithm.
 
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.
 
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.