Sign in to follow this  
Followers 0
lopolop

Some Math help

3 posts in this topic

#1 ·  Posted (edited)

im doing alot quadratic stuff in math...

ive been using formuals and stuff.. instead of actually doing everything i wanted to make a program.. but one thing we need to do is find the discriminate and the equation to find this is..

$B^2-4*$A*$C

One of the things i need to check is if it s a perfect square...

I am unsure how to do this...

like i need to check if the Sqrt of the answer is a Rational Number then In a message box say there is 2 solutions.

then if it isnt.. check it is irrational... i can figure the rest out just need to no the rational/irrational numbers

Edited by lopolop

Share this post


Link to post
Share on other sites



may be... said $n is the test number

$n-Int($n)>0 then is irrational =0 is rational

hope this answer your question

Share this post


Link to post
Share on other sites

ok i see now thanks!


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  
Followers 0