And I figured out which tyro mistake I was making -- -1 * A + B <> -1 * (A + B)
This is a demonstration of the "Coat Rack" effect. The process of describing the problem to others forces one to think clearly about the problem in order to articulate it. I doesn't matter if the "others" understand the ...
Search found 21 matches
- Tue Feb 15, 2022 1:07 pm
- Forum: Coding Questions
- Topic: Numerical Methods Question
- Replies: 6
- Views: 694
- Tue Feb 15, 2022 3:33 am
- Forum: Coding Questions
- Topic: Numerical Methods Question
- Replies: 6
- Views: 694
Re: Numerical Methods Question
Did some more poking around and the issue is multiplication by -1
The same code snippet multiplying by 1 gives correct results across the board.
The same code snippet multiplying by 1 gives correct results across the board.
- Tue Feb 15, 2022 3:28 am
- Forum: Coding Questions
- Topic: Numerical Methods Question
- Replies: 6
- Views: 694
Numerical Methods Question
I've got a really odd numerical result that I can't explain. Look at the following code snippet -- you can copy and run and you will get the MesageRequester message to see the results.
f1.d = 325.0
f2.d = 0.125
f3.d = f1 + f2
f4.d = f1 + 1.0 / 8.0
f5.d = -1 * f1 + 1.0 / 8.0
f6.d = -1.0 * f1 + (1.0 ...
f1.d = 325.0
f2.d = 0.125
f3.d = f1 + f2
f4.d = f1 + 1.0 / 8.0
f5.d = -1 * f1 + 1.0 / 8.0
f6.d = -1.0 * f1 + (1.0 ...
- Mon Feb 14, 2022 2:19 am
- Forum: Coding Questions
- Topic: Linear Programmer looking for a clue
- Replies: 24
- Views: 3363
Re: Linear Programmer looking for a clue
Thanks for the catch on Temp vs iTemp. This code fragment was extracted from a larger unit and then simplified to show the structure of the problem.
Also thanks for your snippet. I'm in the process of figuring out how this works.
-Glenn
Also thanks for your snippet. I'm in the process of figuring out how this works.
-Glenn
- Mon Feb 14, 2022 12:44 am
- Forum: Coding Questions
- Topic: Linear Programmer looking for a clue
- Replies: 24
- Views: 3363
2D graphics - When do things happen
I'm working on a program which displays a quilting block part by part. I think the code below should create a window, project a black background,
and display 6 squares on the diagonal with a one-second delay between squares. What I get is a grey window with banner and nothing else.
I copied the ...
and display 6 squares on the diagonal with a one-second delay between squares. What I get is a grey window with banner and nothing else.
I copied the ...
- Wed Feb 09, 2022 2:40 am
- Forum: Coding Questions
- Topic: Linear Programmer looking for a clue
- Replies: 24
- Views: 3363
Re: Linear Programmer looking for a clue
Thanks all for the help. I got the gadgets into the order I wanted and life is good.
On a more philosophical note -- I use the Form Designer tool when I'm starting a new language or using new project tools to get a feel for the mechanical requirements. This get me to "something that works". I ...
On a more philosophical note -- I use the Form Designer tool when I'm starting a new language or using new project tools to get a feel for the mechanical requirements. This get me to "something that works". I ...
- Tue Feb 08, 2022 3:39 am
- Forum: Coding Questions
- Topic: Linear Programmer looking for a clue
- Replies: 24
- Views: 3363
Field order on a form -- how to fix what the IDE gave
OK - I have a new burning question.
I used the IDE to create a simple form with 6 fields and two buttons. The fields 1-5 run down the left margin, field 6 is to the right of 5 and the buttons are on the bottom.
I expected the progression to be F1 - F2 - ... F5 - F6 - B1 -B2 and back to F1
i Get ...
I used the IDE to create a simple form with 6 fields and two buttons. The fields 1-5 run down the left margin, field 6 is to the right of 5 and the buttons are on the bottom.
I expected the progression to be F1 - F2 - ... F5 - F6 - B1 -B2 and back to F1
i Get ...
- Sat Feb 05, 2022 6:43 pm
- Forum: Coding Questions
- Topic: Linear Programmer looking for a clue
- Replies: 24
- Views: 3363
Re: Linear Programmer looking for a clue
Thanks mk-soft, a much more involved response than expected!
I've just gotten onto GitHub to get the SQLite tools. I agree this is the best long-term solution.
If the quilting utilities actually become ready for prime time I will post them there.
Until/unless I migrate you get credit for the ...
I've just gotten onto GitHub to get the SQLite tools. I agree this is the best long-term solution.
If the quilting utilities actually become ready for prime time I will post them there.
Until/unless I migrate you get credit for the ...
- Sat Feb 05, 2022 6:38 pm
- Forum: Coding Questions
- Topic: Linear Programmer looking for a clue
- Replies: 24
- Views: 3363
Re: Linear Programmer looking for a clue
Thank you Bitblazer for the invite.
- Sat Feb 05, 2022 3:14 pm
- Forum: Coding Questions
- Topic: Linear Programmer looking for a clue
- Replies: 24
- Views: 3363
Re: Linear Programmer looking for a clue
I've downloaded Discord but it looks like I need an invite to the PB community server.
Glennj.0158 is my Discord handle
Regards
Glenn
Glennj.0158 is my Discord handle
Regards
Glenn
- Sat Feb 05, 2022 2:53 pm
- Forum: Coding Questions
- Topic: Linear Programmer looking for a clue
- Replies: 24
- Views: 3363
Re: Linear Programmer looking for a clue
Thank you both (and others who may follow) for the assist. I did find and am already reading the survival guide and will pick up and read the other references. I will have to look at the JSON as this looks like a workable short-term solution but I agree that using a DBMS to pick up the slack is a ...
- Sat Feb 05, 2022 3:22 am
- Forum: Coding Questions
- Topic: Linear Programmer looking for a clue
- Replies: 24
- Views: 3363
Linear Programmer looking for a clue
Hi all -- I''m an embarrassed old fart. Began programming in the '60s and worked with linear languages like Fortran and COBOL with a little C and several more obscure languages thrown in. While I understand the conceptual basis for event-driven programming I have zero experience.
I'm looking for a ...
I'm looking for a ...
- Wed Apr 29, 2020 2:40 am
- Forum: Feature Requests and Wishlists
- Topic: multiple assignment
- Replies: 28
- Views: 8706
Re: multiple assignment
Remember, you can return a structure or modify the called parameters using @x,@y,@z.
I tried passing an address as an argument and it didn't work as I expected. I posted the question and the overall answer was that PureBasic does not support indirect reference and you would need to use the Poke ...
I tried passing an address as an argument and it didn't work as I expected. I posted the question and the overall answer was that PureBasic does not support indirect reference and you would need to use the Poke ...
- Wed Apr 29, 2020 2:32 am
- Forum: Coding Questions
- Topic: Basic Pointer Problem -- Pointer treated as simple variable
- Replies: 7
- Views: 1753
Re: Basic Pointer Problem -- Pointer treated as simple varia
Hi all
What I'm trying for is Call-By-Reference, where the address of an external variable is passed into the procedure and the procedure acts directly on the external variable.
What I was expecting to happen was that by defining *c.Point I would pass the address of the external variable into the ...
What I'm trying for is Call-By-Reference, where the address of an external variable is passed into the procedure and the procedure acts directly on the external variable.
What I was expecting to happen was that by defining *c.Point I would pass the address of the external variable into the ...
- Mon Apr 27, 2020 10:36 pm
- Forum: Coding Questions
- Topic: Problem vector printing text
- Replies: 5
- Views: 1572
Re: Problem vector printing text (Resolved)
There were two problems:
Missing call to StopPrinting() -- This causes the print queue to be improperly closed causes some print problems.
Call to VectorSourceColor (#Black) -- I assumed this would give black text. I have no idea what it actually does
but when I removed it the printing magically ...
Missing call to StopPrinting() -- This causes the print queue to be improperly closed causes some print problems.
Call to VectorSourceColor (#Black) -- I assumed this would give black text. I have no idea what it actually does
but when I removed it the printing magically ...