Giter Club home page Giter Club logo

lucid-a / open-grapheq Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maximsmol/open-grapheq

0.0 0.0 0.0 218 KB

Implementation of an algorithm for generating robust graphs of mathematical functions. Currently able to graph with domain-tracking and pixel-precision using custom interval arithmetic. Based on Jeff Turper's paper "Reliable Two-Dimensional Graphing Methods for Mathematical Formulae with Two Free Variables".

License: MIT License

Shell 0.82% C++ 83.60% Haskell 15.58%

open-grapheq's Introduction

Open-GraphEq is a robust graphing application for mathematical formulae with 2 variables.

It is an open source alternative to the shareware GrafEq.

Both GrafEq and Open-GraphEq are based on the methods described in Reliable Two-Dimensional Graphing Methods for Mathematical Formulae with Two Free Variables by Jeff Tupper of University of Toronto, SIGGRAPH 2001.

Status

Video

Screenshot

The screenshot shows Open-GraphEq displaying a finished graph of y < 1/x. There is also a demo screencast.

Legend:

  • White areas – no solutions
  • Black areas – proven solutions
  • Purples lines – progressively-refined grid used in the calculation

Features:

  • Graphing engine based on interval arithmetic
  • Toggleable grid display
  • Optional domain tracking
  • Care has been taken to produce accurate results

Planned Features:

  • Optional subpixel refinement
  • Optional continuity tracking
  • Formula editor
  • Verify floating point accuracy

Building

Open-GraphEq uses Shake. Other than that, its sole dependency is rolmodl. In addition to the system-defined lib and include paths, the build system looks for the rolmodl shared library in ./lib/rolmodl/, and for the rolmodl header files (./src/rolmodl/hpp/*) in ./lib/rolmodl/hpp.

After installing the dependencies, simply run ./build.sh from the project folder.

Manual

Use ./run.sh to run the application once built.

Key Action
Esc Exit
G Toggle grid
Enter Finish graph (does not keep track of grid refining)
Space Take a step in the graphing process

Use the mouse to select a region and dump the intervals it describes to stdout.

open-grapheq's People

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.