Message Boards Message Boards

0
|
3196 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How to expand a symbolic, complex operation?

I am trying to perform the following operation:

the equation I want to expand, or -(((240 - 180 I) (30 I + z))/(120 I + 7 z))

However, Mathematica throws me exactly the same expression. Expand, Minimize, Simplify and other commands I've tried don't work. Any ideas?

POSTED BY: Omar Valenzuela
4 Replies
Posted 3 years ago
exp = -((240 - 180 I) *(30 I + z))/(120 I + 7 z)

ExpandNumerator@exp

$$\frac{(-5400-7200 i)-(240-180 i) z}{7 z+120 i}$$

Not sure what you mean by "decimal format", the symbol z has no value. You can specify a value and get a numerical result

exp /. z -> I // N
(* -58.5827 + 43.937 I *)

exp /. z -> 1 // N
(* -61.034 + 43.4397 I *)
POSTED BY: Rohit Namjoshi

Got it! Thanks! I wanted Mathematica to perform the division, but now I see that is not possible unless z is defined. Correct?

POSTED BY: Omar Valenzuela

What different result are you hoping to obtain?

POSTED BY: Daniel Lichtblau

I expect the same result, but expanded, that is, I want Mathematica to symbolically multiply the two factors in the numerator and divide that by the denominator, then show the result in decimal format. For this, I tried the N[] command, but it doesn't work.

POSTED BY: Omar Valenzuela
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