appmath_basics.rb

Path: appmath_basics.rb
Last Update: Sun Dec 14 17:43:24 +0100 2008

ruby

Ulrich Mutze, www.ulrichmutze.de

2008-12-09

This is free software. It comes without any warranty. Please contact the author to report problems or to ask questions.

The intention is that a statement

  require 'appmath_basics.rb'

allows us to use in the following a programming style in which the concept of real numbers is handled in a flexibel manner so that switching from standard type Float to arbitrary precision type R can be achieved by a single statement of the type

  R.dig = -1 ( for using Float)

or

  R.dig = 100 ( for using R with 100 decimal places )

All modules and classes to be defined furtheron within the module

  AppMath

will require appmath_basics.rb and will use real numbers in the manner indicated above.

Required files

rnum   float_ext  

[Validate]