Posts: 1,856
Threads: 190
Joined: Apr 2022
Reputation:
88
Absolutely historical. Terry warned everyone about the dangers of using GOTO, and oddly enough, he even screwed himself!
Pete
- IF pete = smartascii THEN GOTO hello_world
Posts: 623
Threads: 89
Joined: Apr 2022
Reputation:
20
09-30-2022, 12:36 AM
(This post was last modified: 09-30-2022, 12:39 AM by PhilOfPerth.)
@Terry:
Just noticed, in lesson 2, in your CONSTANTS explanation, line 13, you give the circumference of a circle as R*(pi squared), instead of R*pi*2. (As you know, R*(pi squared) is the area).
Posts: 1,856
Threads: 190
Joined: Apr 2022
Reputation:
88
That's a Marine size pi, Phil, but if you wish, I'm sure Terry can cut you a slice of civilian size pi.
Pete
Posts: 3,564
Threads: 165
Joined: Apr 2022
Reputation:
172
09-30-2022, 02:09 AM
(This post was last modified: 09-30-2022, 02:24 AM by bplus.)
(09-30-2022, 12:36 AM)PhilOfPerth Wrote: @Terry:
Just noticed, in lesson 2, in your CONSTANTS explanation, line 13, you give the circumference of a circle as R*(pi squared), instead of R*pi*2. (As you know, R*(pi squared) is the area).
Not quite, area is Pi * r ^ 2 ( not Pi ^ 2 ) and yes, circumference is 2 * Pi * r.
Speaking of Pi there is a QB64 Function _Pi(x) that will return multiples of Pi eg, _Pi(2) is circumference of a unit circle, a circle with radius = 1.
b = b + ...
Posts: 623
Threads: 89
Joined: Apr 2022
Reputation:
20
@bplus: Yes, sorry, got a bit excited there, and made a similar mistake! But I think it still needs to be corrected.
And I didn't know about the _Pi(x) function; thanks.
Posts: 3,564
Threads: 165
Joined: Apr 2022
Reputation:
172
Yes either correct the formula for circumference or the application for Area of Circle
Yeah I am still learning all the new _NonQB4.5 compatibles.
b = b + ...
Posts: 623
Threads: 89
Joined: Apr 2022
Reputation:
20
I'm still trying to stop the _NonNew functions from disappearing into the dim regions of my brain!
Posts: 1,709
Threads: 63
Joined: Jul 2022
Reputation:
52
09-30-2022, 05:16 AM
(This post was last modified: 09-30-2022, 06:09 PM by mnrvovrfc.)
I don't like "$NOPREFIX" because it could cause confusion about which keyword was created by Dartmouth or by M$, and which was not. And Freebasic having something that allows "new" keywords used in program which are supposed to be edited away from Q(uick)Basic but I guess some people want to go back to 16-bit, like the ones using music tracker software...
EDIT: Good job with the warning near the top of the lession #5.
Posts: 1,069
Threads: 101
Joined: Apr 2022
Reputation:
88
09-30-2022, 08:58 PM
(This post was last modified: 09-30-2022, 09:11 PM by TerryRitchie.)
(09-30-2022, 12:36 AM)PhilOfPerth Wrote: @Terry:
Just noticed, in lesson 2, in your CONSTANTS explanation, line 13, you give the circumference of a circle as R*(pi squared), instead of R*pi*2. (As you know, R*(pi squared) is the area).
Oh son of a pup. That was on my "to fix" list from the previous tutorial as well. Argh. Fixing it now.
Edit: all fixed. Wow, so much easier to edit with Google Sites.
Posts: 1,069
Threads: 101
Joined: Apr 2022
Reputation:
88
(09-30-2022, 01:13 AM)Pete Wrote: That's a Marine size pi, Phil, but if you wish, I'm sure Terry can cut you a slice of civilian size pi.
Pete
Semper Pi !
|