Skip to content

Program to calculate intermediate and derived values of a system of equations and generate a dot (Graphviz) file. Currently implemented for Disk Clock internal calculations. Mostly for my own use, but the plain-code equation system has promise.

Notifications You must be signed in to change notification settings

JustinLove/mathviz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

-*- rdoc -*-

MathViz

DESCRIPTION:

Turn simple equations (a = b * c) into GraphViz dot files showing relationships, values, and units.

FEATURES/PROBLEMS:

  • Adds one method to Object (by way of Graphable) and several to Numeric (by way Measurable, Unit, and NumericExtensions) If you use units of measure, each unit will appear on Numeric via module Unit.

  • MathViz produces textual .dot files. You will need a viewer which supports dot files directly, or Graphviz to convert them to images yourself.

SYNOPSIS:

<%= File.read(‘examples/E_mc2.rb’).gsub(/^/, ‘ ’)%>

REQUIREMENTS:

INSTALL:

  • sudo gem install mathviz

LICENSE:

Creative Commons Attribution-Share Alike 3.0 Unported Licence creativecommons.org/licenses/by-sa/3.0/

About

Program to calculate intermediate and derived values of a system of equations and generate a dot (Graphviz) file. Currently implemented for Disk Clock internal calculations. Mostly for my own use, but the plain-code equation system has promise.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages