Jump to content

math udf: _GetCommonFactors


ludocus
 Share

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)

_GetCommonFactors.au3

previous downloads: 8

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

Enjoy :mellow:

Edited by ludocus
Link to comment
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 :mellow:

What are you doing here? Go to your room!

Math is waiting for you.

♡♡♡

.

eMyvnE

Link to comment
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
Link to comment
Share on other sites

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

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...