|
-
Feb 20th, 2003, 03:28 AM
#1
Thread Starter
Registered User
-
Feb 20th, 2003, 11:30 AM
#2
Retired VBF Adm1nistrator
Well you'd check for which values the square root would give even whole number results.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Feb 20th, 2003, 12:07 PM
#3
Fanatic Member
well just say any value of a works.
Massey RuleZ! ^-^__  Cheers!  __^-^ Massey RuleZ!
Did you know that...
The probability that a random rational number has an even denominator is 1/3 (Salamin and Gosper 1972)? This result is independently verified by me (2002)!
-
Feb 21st, 2003, 02:30 AM
#4
Thread Starter
Registered User
1 < a < 99
A can be from 2 to 98 - I think.
How can I prove / reason this?
s.
-
Feb 21st, 2003, 05:55 AM
#5
transcendental analytic
thats the formula to solve quadratic polynominals
x^2+bx-a=0
so in other words
a=x^2+bx
put for instance x=1 and for any b in [1,98] you get a in [2,99]
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Feb 21st, 2003, 02:03 PM
#6
But 1,98 doesn't sound likea natuaral number!
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
Feb 21st, 2003, 02:27 PM
#7
transcendental analytic
we use commas as decimal delimiter here in Finland, but in math i think its better to stay to . because , is used in other contexts, like [a,b] which means from and including a to and including b
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Feb 21st, 2003, 02:31 PM
#8
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
Feb 22nd, 2003, 10:51 PM
#9
Thread Starter
Registered User
OK, I now think 9 < a < 100
VB Code:
For a = 99 To 1 Step -1
For b = 11000 To 1 Step -1
x = ((b + Sqr((b ^ 2) + (4 * a))) / 2)
If InStr(1, x, ".") = 0 Then List1.AddItem "a: " & a & " b: " & b & " x: " & x
Next
Next
How could I explain this or is there a fault in my reasoning?
s.
-
Feb 23rd, 2003, 02:11 PM
#10
Fanatic Member
Originally posted by kedaman
thats the formula to solve quadratic polynominals
x^2+bx-a=0
so in other words
a=x^2+bx
put for instance x=1 and for any b in [1,98] you get a in [2,99]
WRONG, that's not the equation for solving quadratics.
x = -b +- sqrt(b^2 + 4ac)/2a
is the Equation for solving quadratics.

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
-
Feb 23rd, 2003, 02:33 PM
#11
transcendental analytic
with polynomals ax^2+bx+c=0 yes, but we have the same roots for all n for nx^2+nbx +nc=0.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Feb 23rd, 2003, 04:10 PM
#12
Thread Starter
Registered User
Originally posted by prog_tom
WRONG, that's not the equation for solving quadratics.
x = -b +- sqrt(b^2 + 4ac)/2a
is the Equation for solving quadratics.
Yes, that's the quadratic formula, but there are other ways in which you can solve quadratics.
Anyway, I proved it - don't worry 
Thanks for the help.
s.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|