# How to separate imaginary and real parts from the equation..​..........​.....Pleas help

조회 수: 51 (최근 30일)
Maruti Patil 2015년 9월 28일
댓글: Walter Roberson 2015년 10월 6일
I have the following equation(p) and I want to separate out real and imag parts
syms a b
p=(a+1i*b)*3.142*tan((a+1i*b)*3.142)-1i*1.23*340*sqrt((a+1i*b)^2*3.142^2+(3.142/0.8)^2+(3.142/0.6)^2)
How to do this...?

댓글을 달려면 로그인하십시오.

### 답변 (1개)

Walter Roberson 2015년 9월 28일
real(p) and imag(p)
However, the results are not going to be "nice"
##### 댓글 수: 1이전 댓글 -1개 표시이전 댓글 -1개 숨기기
Walter Roberson 2015년 10월 6일
This is difficult to separate. The real part involves a component which is the imaginary part of sqrt(144*(a+I*b)^2*Pi^2+625*Pi^2) and the imaginary part involves a component which is the real part of the same quantity. Separating this further is hard.
It is possible to get rid of the explicit Real and Imaginary taking by rewriting in terms of abs() and simplifying. However you still end up working with imaginary quantities, even if you can demonstrate that afterwards the imaginary parts must cancel.

댓글을 달려면 로그인하십시오.

### 카테고리

Help CenterFile Exchange에서 Operations on Strings에 대해 자세히 알아보기

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by