Jump to content
Sign in to follow this  
ludocus

math udf: _GetCommonFactors

Recommended Posts

ludocus

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

Share this post


Link to post
Share on other sites
trancexx

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

Share this post


Link to post
Share on other sites
ludocus

:(..

with this its finished in seconds :mellow:

Share this post


Link to post
Share on other sites
trancexx

:(..

with this its finished in seconds :mellow:

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 this post


Link to post
Share on other sites
cageman

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 this post


Link to post
Share on other sites
ludocus

I don't know...

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

Go now!

:mellow: I don't understand you..

Share this post


Link to post
Share on other sites
trancexx

:mellow: I don't understand you..

That's ok

♡♡♡

.

eMyvnE

Share this post


Link to post
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
Sign in to follow this  

×