Search found 21 matches
- 21 Apr 2020 23:54
- Forum: Visual Prolog
- Topic: Multiplication Overflow
- Replies: 4
- Views: 3750
Multiplication Overflow
I'm trying to implement a version of "De Bruijn Multiplication" that counts on an arithmetic overflow. For instance: multiplying let say V=512, so (V * 0x03f79d71b4cb0a89). I have everything working except for the overflow. And I checked the correct functionality using a programming calcul...
- 21 Nov 2019 3:15
- Forum: Visual Prolog Tips & Samples
- Topic: xyChartDemo - GDIPLUS XY graphing demonstration
- Replies: 4
- Views: 7240
Re: xyChartDemo - GDIPLUS XY graphing demonstration
This is great! I have the demo working on V9. However, I needed to change the following: %fNameLABEL = "Lucida Sans". % used for axis labels %fNameVALUE = "Lucida Sans". % used for axis values at tics & grids fNameLABEL = "Arial". % used for axis labels fNameVALUE =...
- 18 Oct 2019 19:51
- Forum: Visual Prolog
- Topic: Using "anyflow" works in "pro" file but seems to need all declared iterations in the "cl" file.
- Replies: 2
- Views: 3763
Re: Using "anyflow" works in "pro" file but seems to need all declared iterations in the "cl" file.
Thank you for the great response! I was so proud of my little "slide" routine in 8 lines of code. And then I see this (your version): slide4([X1, X2, X3 | Rest], V1, V2, V3) :- V1 = X1, V2 = X2, V3 = X3 or slide4([X2, X3 | Rest], V1, V2, V3). Brilliant. Thanks again.
- 18 Oct 2019 2:10
- Forum: Visual Prolog
- Topic: Using "anyflow" works in "pro" file but seems to need all declared iterations in the "cl" file.
- Replies: 2
- Views: 3763
Using "anyflow" works in "pro" file but seems to need all declared iterations in the "cl" file.
This is only my 2nd post and again I'll state again I haven't developed with prolog in about 30 years until just recently (my previous experience being "Turbo Prolog" in the late 80's). So I have this quick question. I created a predicate called "slide" that (slides) through a Li...
- 6 Sep 2019 21:21
- Forum: Visual Prolog
- Topic: Saving/Consulting a List of objects
- Replies: 3
- Views: 3662
Re: Saving/Consulting a List of objects
Thanks for the replies. The responses make perfect sense.
- 5 Sep 2019 19:46
- Forum: Visual Prolog
- Topic: Saving/Consulting a List of objects
- Replies: 3
- Views: 3662
Saving/Consulting a List of objects
Its been 20+ years since I used Prolog so please forgive if this is a bad question or has already been answered. I've been going through the "VisualPrologBeginners.pdf" and ran into a problem trying to save my class facts. On page 131 (Section 8.6) there is the following snippet which is e...