# Anybody good at mathematics?

#### Lee

##### Well-known member
Can anybody just verify if I am right in thinking the following little equation is correct?

When working with real and imaginary numbers in polar form I am right in thinking that you times or divide the real part and add or subtract the imaginary part, yes?

##### Well-known member
Have you tried WolframAlpha.com? (100L20°)/(2L60°)

http://www.wolframalpha.com/input/?i=(100L20°)/2L60°)&a=*MC.L20-_*Unit.dflt-&a=UnitClash_*L.*Lamberts--&a=UnitClash_*°.*AngularDegrees.dflt--

edit: oops wrong one. Pretty sure this is what you're looking for:
Pretty sure your answer is correct just need to move the 40 back down for the "proper" notation.

http://www.wolframalpha.com/input/?i=(100L20°)/(2L60°)&a=*MC.L20-_*ConcatPower-&a=UnitClash_*L.*Liters.dflt--&a=UnitClash_*°.*AngularDegrees.dflt--

#### Ingenious

##### Well-known member
Can anybody just verify if I am right in thinking the following little equation is correct?

When working with real and imaginary numbers in polar form I am right in thinking that you times or divide the real part and add or subtract the imaginary part, yes?

View attachment 42950

I managed to follow this up until the word "Can"

#### Sim

##### Well-known member
When working with real and imaginary numbers in polar form

What on earth are you studying that needs you to work with numbers in polar form?

Not something you come across very often (read: ever!).

Lee

#### Lee

##### Well-known member
What on earth are you studying that needs you to work with numbers in polar form?

Not something you come across very often (read: ever!).

Electronics. We use them a lot to work out impedances of electronic components.

#### Lee

##### Well-known member
Just for the record my answer up there is correct

#### Biker

##### Well-known member
Whew! Thank goodness. Because I still have issues with 1+2 (It's 4, by the way).

#### kkm323

##### Well-known member
I thought math was my thing

#### Alien

##### Well-known member
I can count to potato...

#### SilverCircle

##### Well-known member
Can anybody just verify if I am right in thinking the following little equation is correct?
Code:
``````package foo.bar;
import org.apache.commons.math3.complex.*;
import org.apache.commons.math3.util.FastMath;

public class Main {

public static void main(String[] args) {
Complex p1 = ComplexUtils.polar2Complex(100, FastMath.toRadians(20));
Complex p2 = p1.divide(ComplexUtils.polar2Complex(2, FastMath.toRadians(60)));

double theta = FastMath.atan(p2.getImaginary() / p2.getReal());
double mag = FastMath.sqrt(p2.getImaginary() * p2.getImaginary() + p2.getReal() * p2.getReal());

System.out.println(mag + "L" + FastMath.toDegrees(theta));
}
}``````
Output:
50.0L-40.00000000000000
So, yeah, you're right - and yes, I'm in idle mode (not sayin' I'm bored), but this took only a couple of minutes anyway

#### Lee

##### Well-known member
Code:
``````package foo.bar;
import org.apache.commons.math3.complex.*;
import org.apache.commons.math3.util.FastMath;

public class Main {

public static void main(String[] args) {
Complex p1 = ComplexUtils.polar2Complex(100, FastMath.toRadians(20));
Complex p2 = p1.divide(ComplexUtils.polar2Complex(2, FastMath.toRadians(60)));

double theta = FastMath.atan(p2.getImaginary() / p2.getReal());
double mag = FastMath.sqrt(p2.getImaginary() * p2.getImaginary() + p2.getReal() * p2.getReal());

System.out.println(mag + "L" + FastMath.toDegrees(theta));
}
}``````
Output:

So, yeah, you're right - and yes, I'm in idle mode (not sayin' I'm bored), but this took only a couple of minutes anyway

thanks very much!

Replies
10
Views
192
Replies
8
Views
535
XF 2.2 Poke Addon
Replies
0
Views
153
Replies
0
Views
180
Replies
3
Views
280