Boring plot of 5000 functions! - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Works in Progress (https://qb64phoenix.com/forum/forumdisplay.php?fid=9) +---- Thread: Boring plot of 5000 functions! (/showthread.php?tid=1814) |
Boring plot of 5000 functions! - mnrvovrfc - 07-05-2023 This is another program that would only display graphic silliness. Don't expected colored, fractal stuff; a program such as this might have been attempted with QuickBASIC or Turbo Pascal, trying to burn those weak single-core CPU's to a crisp. Many pictures are just an useless line at the top or at the side of the screen. Others are just near-diagonal lines. Others are "steps" as if trying to plot binary or something else. But there are a few good ones here. The program tries to plot a function with 500 points of Cartesian coordinates taking part in a polar scheme. If the function is not plottable, it's skipped. The "Illegal function call" had to be trapped for it. The functions were fabricated from another QB64 program I wrote. Don't spend too much time looking at them or it will cause some loss of sanity! Press [ESC] to quit, or on Linux leave it for long enough and then it seg-faults, I don't know why. (shrugs) At the terminal command line it's possible to follow the executable file's name with an integer from 1 to 5000, to start from the function indicated by the huge "SELECT CASE... END SELECT" block. This has nothing to do with random numbers. It was already taken care of by my "extreme function maker" LOL. That is the first parameter. There is a second parameter which is a float-type factor. The default is to just plot a circle with X,Y for 500 points. The circle is always created by this program with a "radius" of 2. The factor in this program can only cause the effect of an open shape. In other words, the chosen factor by the user cannot be smaller than the default value of 1.3888. The actual program is too big to post into this forum, so I'm posting only a portion of it. Otherwise you will have to download the attachment. Code: (Select All)
forceq-graph.bas.zip (Size: 125.59 KB / Downloads: 53) RE: Boring plot of 5000 functions! - bplus - 07-05-2023 I got tired of waiting for qb64 to finish checking the 30102 LOC, perhaps trying the top 100 Functions instead? RE: Boring plot of 5000 functions! - Jack - 07-05-2023 bplus you can compile from the command prompt, qb64pe -c forceq-graph.bas but it take a couple of minutes, didn't actually time it, just a guess RE: Boring plot of 5000 functions! - SMcNeill - 07-06-2023 If it's taking a while to compile, remember to click off the option for compiler optimizations. Those -o2 settings increase compile times by a ton. RE: Boring plot of 5000 functions! - mnrvovrfc - 07-06-2023 (07-05-2023, 10:51 PM)bplus Wrote: I got tired of waiting for qb64 to finish checking the 30102 LOC, perhaps trying the top 100 Functions instead? Originally it was going to be over 7000 functions. :O But your computer is supposed to be more advanced than mine! What I have is an 11-year-old Hewlett-Packard laptop with Intel "Sandy Bridge" CPU. I don't think any compiler switches should have anything to do with it. In my last compile on Debian XFCE it did take me five minutes. Could reduce it to 1000 functions which is what I had to do once while debugging it. |