# math udf: _GetCommonFactors

## Recommended Posts

ok..

With the subject math (at my school) we're doing a chapter about common factors..

Like this:

you have 2 numbers..

the first number is 8 and the second number is 15..

Now:

You need to find 2 numbers that if you add them together they become 8 and if you multiply them they become 15..

example:

8 and 15 = 3 and 5 because:

3+5 = 8

3*5 = 15

so 3 and 5 are the common factors

if you don't understand this please tell me..

the udf is here: (With an example)

Btw: I'm not sure if that name is correct..

Enjoy

Edited by ludocus

##### Share on other sites

ok..

With the subject math (at my school) we're doing a chapter about common factors..

Like this:

you have 2 numbers..

the first number is 8 and the second number is 15..

Now:

You need to find 2 numbers that if you add them together they become 8 and if you * (I forgot the word) them it becomes 15..

example:

8 and 15 = 3 and 5 because:

3+5 = 8

3*5 = 15

so 3 and 5 are the common factors

if you don't understand this please tell me..

the udf is here: (With an example)

Btw: I'm not sure if that name is correct..

Enjoy

What are you doing here? Go to your room!

Math is waiting for you.

.

eMyvnE

##### Share on other sites

..

with this its finished in seconds

##### Share on other sites

..

with this its finished in seconds

I don't know...

Last time I checked common factors of 15 and 8 it turned not to be 3 and 5.

Go now!

.

eMyvnE

##### Share on other sites

I don't know...

Last time I checked common factors of 15 and 8 it turned not to be 3 and 5.

Go now!

he just named it wrong. I think what he means is if you got a equation:

x^2 + 8x + 15=0

_GetCommonFactors(8,15)

you know its 3 & 5 now so:

(x+3)(x+5)=0

so the solutions are -3 and -5

but i dont really know if your function should be used like this since the abc formula works easier.. + works in all cases.

Edited by cageman

##### Share on other sites

I don't know...

Last time I checked common factors of 15 and 8 it turned not to be 3 and 5.

Go now!

I don't understand you..

##### Share on other sites

I don't understand you..

That's ok

.

eMyvnE

## Create an account or sign in to comment

You need to be a member in order to leave a comment

## Create an account

Sign up for a new account in our community. It's easy!

Register a new account