Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Another small filled circe sub (not as fast as fcirc)
#88
(09-03-2024, 12:16 AM)NakedApe Wrote: Hey @Dav, I tried running your BALLFIELD above, but get Illegal Function line 96, which reads: x = SQR(r2 - y * y)
I'm on a Mac. Any idea why I can run it? Seems like the SQR function oughta work for me too, darn it... Thnx.

Hmm, I dunno.  Works for me, but I'm in Linux.  Probably bplus is right about the SQR is getting a bad number some reason.  Maybe you could alter the SUB to make sure SQR gets a positive, like this, just for trying sake, try this in the FC sub instead and see what happens.

- Dav

Not saying this is a solution or fix, let’s just see if it gets you past that error and see what happens next or if it will run at all…

Code: (Select All)
        precalc = r2 - y * y: If precalc <= 0 Then precalc = 1
        x = Sqr(precalc)

Find my programs here in Dav's QB64 Corner
Reply


Messages In This Thread
RE: Another small filled circe sub (not as fast as fcirc) - by Dav - 09-03-2024, 01:04 AM



Users browsing this thread: 16 Guest(s)