REBOL Library REBOL

Math Related

Updated: 29-May-2003

Return to main library index

Factorial

factorial.r

6-Jan-1999

Compute a factorial

2 lines

372 bytes

 
Average

average.r

3-Jul-2002

Averages the values in the Block.

6 lines

474 bytes

 
Celcius

celcius.r

3-Jul-2002

Converts Temperature in Fahrenheit to Celcius.

6 lines

533 bytes

 
Fahrenheit

fahrenheit.r

3-Jul-2002

Converts Temperature in Celcius to Fahrenheit.

6 lines

552 bytes

 
Leap-Year

leap-year.r

3-Jul-2002

Returns true for a leap year.

13 lines

594 bytes

 
Round

round.r

3-Jul-2002

Rounds a number at any given place.

14 lines

1091 bytes

 
Accumulate

accumulate.r

3-Jul-2002

Cumulates values in a block together, by successively applying the function to each value in Series.

17 lines

950 bytes

 
Tally

tally.r

3-Jul-2002

Tallies up the values in a series, producing a block of [Value Count] pairs.

17 lines

802 bytes

 
Transpose

transpose.r

3-Jul-2002

Transposes a Matrix's rows and columns.

19 lines

1016 bytes

 
Calculator

calculator.r

2-Apr-2001

Simple numeric calculator.

34 lines

1276 bytes

 
Black Scholes Option Price

black-scholes.r

11-Nov-2001

Provide a Rebol function for computing the Black-Scholes (1973) formula for determining an European style Option Price.

34 lines

2404 bytes

 
Mini-Calculator

mini-calc.r

6-Mar-2002

Tiny calculator example.

34 lines

1145 bytes

 
Scientific Calculator

sci-calc.r

16-Mar-2002

For scientific calculations. Currently in beta, so dont use it to figure out critical information just yet.

34 lines

1657 bytes

 
Permute

permute.r

3-Jul-2002

Permutes a matrix.

52 lines

2379 bytes

 
Prime number checker

prime.r

21-Jul-1999

Address the question, could this integer be a prime number? results of false are not prime, results of true are very probably prime and with the /strong refinement, ( I still have to verify this ) true ( should ) guarantee prime. if the argument is outside the domain of the function, none is returned

59 lines

2966 bytes

 
Desk Calculator

desk-calc.r

6-Mar-2002

A tool for simple calculations.

61 lines

2583 bytes

 
Roman

roman.r

3-Jul-2002

Converts a Roman numeral to Arabic and reverse!

64 lines

2776 bytes

 
Age

age.r

5-Jul-2002

Calulates Age in Years, Months & Days.

65 lines

2260 bytes

 
Mandelbrot

mandelbrot.r

21-Sep-2001

Create Mandelbrot Set

67 lines

1912 bytes

 
Rebocalc

rebocalc.r

19-Jun-2001

The world's smallest spreadsheet program, but very powerful.

69 lines

2582 bytes

 
Condense Data

condense.r

18-Feb-2002

Provide a series of functions for aggregating data. Specifically designed for taking daily stock data and condensing it into weekly or monthly data series, but flexible enough for most data aggregation tasks.

97 lines

5310 bytes

 
Mandelbrot II

mandelbrot2.r

23-Sep-2001

Create Mandelbrot Set with colors

114 lines

3068 bytes

 
Calculation

calc-engine.r

14-Mar-2002

A dialect for creating calculators.

2 pages

4874 bytes

 
Calculese

calculese.r

16-Mar-2002

A dialect for creating calculators.

2 pages

5141 bytes

 
Graph a function

graph.r

19-Jun-2001

Graph a function draw-line function adapted from drawline.r by Larry Palmiter rounding function by Ladislav Mecir Changes since 1.0.0 round value of x & fx before converting to pair minor gui additions - load & save equations change initial screen limits Usage .... Type in your function of x into the input field Some pretty functions to get you started ..... 3 * sin (0.5 * pi * x) 3 * sin (x * x) exp(0.1 * x) * (sin(4 * pi * x)) 4 * sin (4 * pi / x) 0.2 * exp(- x) * sin (0.5 * pi * x) 10 / ((3 * x * x) + (4 * x) - 3)

5 pages

11096 bytes

 


The line count is for code lines only and is used as a rough estimate of code size. It does not include script headers, blank lines, or comment lines.

To add or modify a file, run REBOL/View and click on the Add-Script icon in the Library folder. Be sure that the script has a REBOL header that describes its purpose.

You can download the entire library as a compressed, self-extracting REBOL archive. The file is 585 KB and requires REBOL to extract. You may need to right click on this link to save the file in some browsers.

Once you have extracted the files, you can build these HTML index pages locally by running the build-lib.r script.

Note: All scripts are provided AS IS without warranty and without liability to the author or to REBOL Technologies.

REBOL is a trademark of REBOL Technologies.