Giter VIP home page Giter VIP logo

rust-fractal-core's Issues

Series approximation improvements

  • If a root is found in the series approximation, it may be better to shift the main reference to the root which will reduce the amount of glitches that need correcting in the image.
  • It may be better to place the series approximation probe points on or near found roots as to reduce overskipping and reduce the amount of probes required.

Revise the mantexp library.

Currently, the mantexp library is not very good. This will need to be revised into a full extended float library, with optimizations for complex numbers.

One such optimization is that a complex number can be represented with a common exponent, provided the real and imaginary parts are close enough to each other. This will simplify and optimize the current code.

Add in check for series approximation.

The series approximation can calculate the coefficients correctly, however it cannot at the moment choose the correct number of iterations to skip. There are a few automated checks to implement here.

Use series approximation to skip iterations.

Series approximation methods allow for a dramatic speedup particularly on deep zoom levels. In order for them to be implemented there will need to be a floatexp class containing a floating point number as well as an integer exponent.

Reuse reference

In order to reuse the reference some of the program has to be reorganized:

  • Make reference iteration and series approximation separate
  • Glitch correction requires the current z value in high precision, at the series approximation limit. This can use a lot of memory. A better option might be to only store every thousandth iteration of the reference in high precision, and iterate from here for each glitch reference.

Updated descriptions for Mac OS

Cargo does not successfully build on current Mac OS (Ventura 13.0).
I have found the workaround:

  • Here is my Cargo.toml (remember to remove the .txt in the filename). In particular rug and gmp-mpfr-sys need to have updated versions to build successfully.

Usage hint:

  • Once cargo build --release finishes, in the git repo folder (where Cargo.toml lives), remember to mkdir output (otherwise program will panic and quit) and then try running ./target/release/main -o default.toml locations/flake.toml

Cargo.toml.txt

Error compiling

error[E0557]: feature has been removed
  --> ~/.cargo/registry/src/github.com-1ecc6299db9ec823/lock_api-0.4.2/src/lib.rs:91:42
   |
91 | #![cfg_attr(feature = "nightly", feature(const_fn))]
   |                                          ^^^^^^^^ feature has been removed
   |
   = note: split into finer-grained feature gates

Series approximation optimization

The current algorithm checks the approximation every iteration. It would be possible to check only once every 100 iterations and back step when the approximation is no longer valid.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.