[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2010-01-12T15:26:28-05:00 http://petesqbsite.com/phpBB3/app.php/feed/topic/3201 2010-01-12T15:26:28-05:00 2010-01-12T15:26:28-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=20310#p20310 <![CDATA[Square root program]]>
:wink: It's a great salad separate countries ... by a union.

Statistics: Posted by lrcvs — Tue Jan 12, 2010 3:26 pm


]]>
2010-01-12T14:40:32-05:00 2010-01-12T14:40:32-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=20309#p20309 <![CDATA[Square root program]]>
They may have said: "Hey this is a nice country, let's take it over!"

The wimpy French said: "Come right in..."

Note that the Germans never even wanted Spain because all they knew was QB.

I love those Europeans with their Euros.

Statistics: Posted by burger2227 — Tue Jan 12, 2010 2:40 pm


]]>
2010-01-12T01:18:38-05:00 2010-01-12T01:18:38-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=20308#p20308 <![CDATA[Square root program]]>
(LOL) A post without your opinion, has less category.!

I think that my experiments are simple, useful.

Also some people are curious mathematical experiments.

:wink: In a way is good, both have many fans ...

The write post in QB64, is that QB64 will be a great dialect of Basic, It has a great future!!!!

:::::::::::::::::::::::::::::::::::::::::::

Prosper:

Thanks for your opinion, but I only know Qbasic.

Basic also has SQR (x)

(I'm old school, also I'm very old)

The Germans say:

:wink: Why make things easier when you can make it with difficult!

Statistics: Posted by lrcvs — Tue Jan 12, 2010 1:18 am


]]>
2010-01-11T17:21:12-05:00 2010-01-11T17:21:12-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=20306#p20306 <![CDATA[Square root program]]>
Currently he is polluting the QB64 site also....... :(

Statistics: Posted by burger2227 — Mon Jan 11, 2010 5:21 pm


]]>
2010-01-11T16:47:30-05:00 2010-01-11T16:47:30-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=20305#p20305 <![CDATA[Square root program]]> Statistics: Posted by Prosper — Mon Jan 11, 2010 4:47 pm


]]>
2010-01-11T15:36:32-05:00 2010-01-11T15:36:32-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=20304#p20304 <![CDATA[Square root program]]>
'lrcvs

'12 Jan 2010

'This program is based on the algorithm of arithmetic division program.

cls

'a$ = number to square root

a$ = "25521342100008787"

la = INT(LEN(a$) / 2) + 1
c$ = STRING$(la, "0")
FOR r = 1 TO la
FOR s = 0 TO 9
MID$(c$, r) = LTRIM$(STR$(s))
v$ = LTRIM$(STR$(VAL(c$) * VAL(c$)))
'IF VAL(v$) = VAL(a$) THEN PRINT v$
IF VAL(a$) > VAL(v$) THEN MID$(c$, r) = LTRIM$(STR$(s))
IF VAL(a$) < VAL(v$) THEN MID$(c$, r) = LTRIM$(STR$(s - 1)): EXIT FOR
NEXT s
NEXT r

t$ = LTRIM$(STR$(VAL(a$) - (VAL(c$) * VAL(c$))))
d$ = LTRIM$(STR$(VAL(t$) / (VAL(c$)) / 2))

PRINT "Square root of = "; a$
PRINT
PRINT "Program = "; LTRIM$(STR$(VAL(c$))) + " . " + RIGHT$(d$, LEN(d$) - 1)
PRINT
PRINT "Remanence = "; t$
PRINT
PRINT "Computer = "; SQR(VAL(a$))
SLEEP
END

Statistics: Posted by lrcvs — Mon Jan 11, 2010 3:36 pm


]]>