Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 36

Thread: Example: Section 7.7 (pages 222-224) Explorations with the Mandelbrot Set

  1. #11
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Example: Section 7.7 (pages 222-224) Explorations with the Mandelbrot Set

    Thanks a lot Stan.

    I'm always willing to try to optimize thinBasic so whatever indication even critics (I know you are not criticizing but just to give your the idea) are for me a point to take into consideration for understanding where I can improve.

    Yes, using current iComplex module can be quite difficult when you have such equations.
    Operators overloading is something I cannot give you at the moment. I will think about it for future releases but for the moment I cannot promise anything.
    Maybe I can get some more speed in iComplex math, actually it was built quite quickly and there is a lot of memory moving (every complex is byte moved into another one when operations take place) so I think I will be able to get more speed for future thinBasic versions.

    Thanks again
    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

  2. #12
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Example: Section 7.7 (pages 222-224) Explorations with the Mandelbrot Set

    Hi Stan,

    rendering in way the lines would be visible during computation is possible.

    It will become very easy and ellegant in next release of ThinBASIC, where I introduced the promised optimized way to render big amounts of primitives.

    Stay tuned!


    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

  3. #13
    Member sblank's Avatar
    Join Date
    Feb 2010
    Location
    Wayne City, Illinois
    Posts
    80
    Rep Power
    23

    Re: Example: Section 7.7 (pages 222-224) Explorations with the Mandelbrot Set

    Thanks Eros!

    No problem with overloading... I'll just have to think a bit on how to represent a more complicated equation. I'm certain is can be done, probably using intermediate variables... I'll just have to experiment.

    The new added iComplex functions sound great and any optimizing is welcome, certainly!

    Petr, the new TBGL features have my interest! Any news on when the release will be?

    Cheers,

    Stan

    Quote Originally Posted by Eros Olmi
    Thanks a lot Stan.

    I'm always willing to try to optimize thinBasic so whatever indication even critics (I know you are not criticizing but just to give your the idea) are for me a point to take into consideration for understanding where I can improve.

    Yes, using current iComplex module can be quite difficult when you have such equations.
    Operators overloading is something I cannot give you at the moment. I will think about it for future releases but for the moment I cannot promise anything.
    Maybe I can get some more speed in iComplex math, actually it was built quite quickly and there is a lot of memory moving (every complex is byte moved into another one when operations take place) so I think I will be able to get more speed for future thinBasic versions.

    Thanks again
    Eros


  4. #14

    Re: Example: Section 7.7 (pages 222-224) Explorations with the Mandelbrot Set

    Hi Stan,

    About a year ago I introduced operator sets into Oxygen which could support all kinds of exotic operators and variables. I wrote a simple set of complex number operations to test it out, but I have not done anything with it since. my complex operator set contains +-*/^=. I think of complex numbers as an arcane form of Cartesian geometry so I am not accustomed to using them per se. But I'll try them out with the Mandelbrot and see whether they are well tempered or not.

    Charles

  5. #15
    Member sblank's Avatar
    Join Date
    Feb 2010
    Location
    Wayne City, Illinois
    Posts
    80
    Rep Power
    23

    Re: Example: Section 7.7 (pages 222-224) Explorations with the Mandelbrot Set

    Hi Charles,

    Now THAT would be very interesting!

    I usually introduce complex numbers in my programming class by illustrating the Cartesian coordinate link... it seems to help a bit. Otherwise, most students think "i" is imaginary, and therefore doesn't really exist.

    Thanks!

    Stan

    Quote Originally Posted by Charles Pegge
    Hi Stan,

    About a year ago I introduced operator sets into Oxygen which could support all kinds of exotic operators and variables. I wrote a simple set of complex number operations to test it out, but I have not done anything with it since. my complex operator set contains +-*/^=. I think of complex numbers as an arcane form of Cartesian geometry so I am not accustomed to using them per se. But I'll try them out with the Mandelbrot and see whether they are well tempered or not.

    Charles

  6. #16
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Example: Section 7.7 (pages 222-224) Explorations with the Mandelbrot Set

    Hi Stan,

    if new TB won't be out till the Sunday of this week, I will post the TBGL DLL here on forum.
    I will do some testing meanwhile to make sure it works as it should.

    It is internally based on Vertex Arrays/Vertex Buffer Objects, but much easier to setup (1 command create, 1 command fill, 1 command render, 1 command destroy).


    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

  7. #17
    Member sblank's Avatar
    Join Date
    Feb 2010
    Location
    Wayne City, Illinois
    Posts
    80
    Rep Power
    23

    Re: Example: Section 7.7 (pages 222-224) Explorations with the Mandelbrot Set

    Sounds great... looking forward to it!

    Thanks,

    Stan

    Quote Originally Posted by Petr Schreiber
    Hi Stan,

    if new TB won't be out till the Sunday of this week, I will post the TBGL DLL here on forum.
    I will do some testing meanwhile to make sure it works as it should.

    It is internally based on Vertex Arrays/Vertex Buffer Objects, but much easier to setup (1 command create, 1 command fill, 1 command render, 1 command destroy).


    Petr

  8. #18

    Re: Example: Section 7.7 (pages 222-224) Explorations with the Mandelbrot Set

    Hi Stan,

    Here is the Oxygen version with the mini complex number library embedded in the script. It is slightly less efficient than using floats directly due to the generic complex operator calls. But I hope it will give you the gist of how specialised operator sets can be implemented.

    I had to fix the ^ operator, (which is not used here) so complex exponents will only work in the next ThinBasic Beta.

    The core Mandelbrot algorithm now looks like this:
    [code=thinbasic]
    i=0
    zzman=>0,0
    zzcor=>xcor,ycor
    do while i<maxit
    zzman=zzman*zzman+zzcor 'COMPLEX OPERATIONS
    esc=zzman.r * zzman.r + zzman.i * zzman.i
    if esc>lmt then exit do
    inc i
    end do
    [/code]

    Charles
    Attached Files Attached Files

  9. #19
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Example: Section 7.7 (pages 222-224) Explorations with the Mandelbrot Set

    Incredible Charles
    Oxygen module always astonished me !
    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

  10. #20
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: Example: Section 7.7 (pages 222-224) Explorations with the Mandelbrot Set

    That is fast isn't it, wow! Oxygen is always impressing Charles. I can't wait till I get up to fractals and the physics stuff in the book.
    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

Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. 3D Mandelbrot Set
    By zak in forum General
    Replies: 11
    Last Post: 29-11-2010, 06:40
  2. Benoit Mandelbrot, RIP
    By LanceGary in forum Shout Box Area
    Replies: 6
    Last Post: 05-11-2010, 03:35

Members who have read this thread: 35

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •