Kent,
this is great!
I like how dynamic you made it, you type formula and it is immediately represented.
Very good job!,
Petr
Super Function Plotter Updated. Buttons now do a lot of the equations as presets in this section.
Just run the program, a default plot appears. Click the Clear B button for example to see how it changes the plot.
The program does 2 types of plots. I named them simple and complex. If both x and y are assigned formulas, this is considered complex. In this case t is assigned the range values. Follow the instructions below and then press the other function buttons. The numbers in some of the button match which exercise problem. I made the changes Petr recommended. Now lines does line strip. New updates attached to this message.
If only y has a formula and x is empty, then it plots the simple. In this case, the range is assigned to x.
It is all interactive and dynamic, so you will get the idea right away. Now you can just type in values for many of the equations on pages 41-64 and see the results.
Perhaps someone would like to carry on assign some of the named equations to the clear buttons. I started to do it, but decided it is a task for someone else to carry on.
If you want the x or y axis not showing, just assign it the same color as the background.
The default starts up with exercise 1 from page 53, you will see why I chose this one, it makes a cool big S.
Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server
Kent,
this is great!
I like how dynamic you made it, you type formula and it is immediately represented.
Very good job!,
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Little hint: to render the function smooth using lines, do not use %GL_LINES, as they take each 2 vertices as definition for single line. Use %GL_LINE_STRIP instead in PlotFunc and PlotFunc2, and you will see it will look much better.
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Kent,
great great job: an on the fly calculator using Eval module.
Thanks a lot for this example, it can become a great thinBasic flagship.
Eros
PS, Little speed improvement: it is not necessary to call more than once setEvals... functions (where you call Eval_SetNumber in order link internal Eval module variable to script variable) unless you change to script variable associated to Eval counterparts. Once script variables are linked, they will remain linked unless you have to change some links.
This would give a little more speed in execution.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Eros not sure I understand how to do what you said, but will study later today. And I will add changes you recommend and Petr's too-- later. Then it is ready to be added to by the next coder. Perhaps Stan can tinker with it, a good way to get his hands into thinBasic quickly with this skeleton in place.
Glad you guys liked it, thanks for the feedback. Also of course Petr helped a lot as mentioned in the comments, but wanted to say thanks here too.
Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server
the ultimate beauty, thanks kent.
can we call thinbasic a GymnasticsBasic in which the hard to achieve is possible!.
also big thanks to stan for his very fine book. and for stirring such an interest in math and opengl.
Sorry, my mistake. Non need to do anything.Originally Posted by kent sarikaya
I was thinking you was linking using Eval_LinkExt method.
Forget my suggestion.
Eros
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Thanks Zak. Stan's book brings the beauty in math to the nonMath people like me who are interested, but had no clue. And I had no idea that openGL could do 2D to that extent even though I played with it for some time now. I always thought you had to use GDI or GDI+ routines. So for me, two major light bulbs went off with Stan's book.Originally Posted by zak
Also the fact that others got into it so much too and did so many conversions is really exciting.
Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server
Kent:
The Super Function Plotter is a beautiful piece of work, illustrating the power and facility of thinBasic, and is a very useful application. Many thanks for sharing you'r work.
Don
XPS 1710
Kent!!
What a fantastic piece of programming! This is great and I'm having a lot fun playing with functions.
Great work... just great!
Stan
Bookmarks