lopolop Posted February 7, 2006 Share Posted February 7, 2006 (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 February 8, 2006 by lopolop Link to comment Share on other sites More sharing options...
jjohn Posted February 8, 2006 Share Posted February 8, 2006 may be... said $n is the test number $n-Int($n)>0 then is irrational =0 is rational hope this answer your question Link to comment Share on other sites More sharing options...
lopolop Posted February 8, 2006 Author Share Posted February 8, 2006 ok i see now thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now