95 scripts tagged as: [//math]
Natural numbers sum | ||
nutural-numbers-sum.r | 1.0 KB 27 Sep 2014 | Sums all the natural numbers up to
a given input.
Uses the equality:
1 + 2 + 3 +... + n = n*(n+1)/2
to avoid looping. author: Caridorc |
Test if leap year | ||
oneliner-leapyear.r | v:1.0.0 681 bytes 20 Jul 2003 | 'Leapyear? returns 'true for date values that are leapyears. For example:
>> leapyear? 1/1/2001
== none
>> leapyear? 1/1/2000
== true author: Andrew Martin |
Morse code | ||
oneliner-morse-code.r | v:1.0.0 660 bytes 13 Nov 2003 | Encodes a sentence into morse code. This version is a bit suboptimal so that the
html generator won't destroy it. author: Johan Roennblom |
Fractional length | ||
oneliner-nfrac.r | v:1.0.0 610 bytes 27 Sep 2003 | nfrac 33 => 0 ; nfrac 456 => 0 ; nfrac 0.2104 => 4 ; nfrac 1256.63 => 2 ; nfrac
1.0 => 0 author: collective contribution on www.codeur.org/forum/forum.php?theme=17 |
Calculate Pi | ||
oneliner-pi.r | v:1.0.0 654 bytes 20 Jul 2003 | Approximate PI with John Wallis formula.
Precision limited to 15 digits due to REBOL. Just press ESC when fed up ;-)
Formula from http:// www.chez.com/algor/math/pi.htm author: Jean-Nicolas Merville |
Prime factors | ||
oneliner-prime-factors.r documentation | 556 bytes 23 Jun 2008 | [no purpose header found] author: Sunanda |
Prime numbers | ||
oneliner-prime-numbers.r | v:0.0.1 452 bytes 23 Dec 2012 | Give some prime numbers author: Marco Antoniazzi translated from Wouter van Oortmerssen |
Quine -- a program that displays it's own source | ||
oneliner-quine.r | v:1.0.0 636 bytes 8 Mar 2009 | Creates a self modifying window. (includes the REBOL Header.) author: Ammon Johnson |
Cellular automata | ||
oneliner-rule-110-ca.r | v:1.0.0 759 bytes 20 Jul 2003 | Shows some steps in the evolution of a Turing complete cellular automaton from a
single marked cell. Replace ..1.11. with some other expression, like ..11.. or .1..11 ,
and what do you have? Rule 90, and rule 30, respectively. author: Errru |
Day of week | ||
oneliner-weekday.r | v:1.0.0 563 bytes 20 Jul 2003 | Returns the weekday of the date. Use 'Weekday? like:
Weekday? 25/Dec/2002
; == Wednesday author: Andrew Martin |
Equation Dialect Parser | ||
parse-equation.r documentation | v:0.9.3 7.1 KB 15 Mar 2011 | Converts a mathematical equation into a block of rebol code that can be evaluated. author: Francois Vanzeveren |
Mathematical Expression Dialect Parser | ||
parse-expression.r documentation | v:0.9.6 8.3 KB 22 Mar 2011 | Converts a mathematical expression into a block of rebol code that can be evaluated. author: Francois Vanzeveren |
Fire and Smoke particles generator. | ||
particle-generator.r | v:1.0.1 11.5 KB 17 Sep 2010 | A particle engine demo which generates fire and smoke, with a lot of control and some compositing built-in author: [unknown] |
periodic table | ||
periodictable.r documentation | v:0.9.4 11.9 KB 15 Aug 2007 | Display a periodic table of the elements as REBOL buttons author: Brian Tiffin |
Permute | ||
permute.r | v:1.0.0 2.0 KB 13 Mar 2003 | Permutes a matrix. author: Andrew Martin |
Prime number checker | ||
prime.r documentation | v:0.0.2 3.0 KB 13 Mar 2003 | 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 author: Tom Conlin |
Pytagoras' theorem | ||
pytagoras-thorem.r | 1.7 KB 3 Oct 2014 | User friendly interface to apply
the Pytagoras' theorem. author: Caridorc |
Quick Plot Dialect | ||
q-plot.r | v:0.1.0 41.4 KB 6 Mar 2007 | Provide a quick and easy to use dialect for plotting in REBOL author: Matt Licholai |
r3D | ||
r3d2.r documentation | v:2.2.6 21.6 KB 17 Oct 2012 | 3D Library, you can use also images.
Look a the end of the file to see how are made 3D model. author: andrew hoadley |
Random.org | ||
random-org.r | 900 bytes 17 Jun 2008 | Get really random numbers (come from atmospheric noise) from http://random.org author: [unknown] |
Random Number Generator | ||
randomr.r | v:1.0 4.1 KB 19 Jun 2009 | Random Number Generator using continous and discret statistical laws author: François Jouen. Based on Vincent Levorato's java code |
RebCannon | ||
rebcannon.r | 5.2 KB 16 Dec 2012 | [no purpose header found] author: Massimiliano Vessi |
Rebocalc | ||
rebocalc.r | v:1.0.0 2.7 KB 1 Jan 2005 | The world's smallest spreadsheet program, but very powerful. author: Carl Sassenrath |
Rectangle Module | ||
rect-lib.r | v:0.0.1 6.8 KB 11 Oct 2003 | Code from a REBOLForces article
(http://www.rebolforces.com/articles/pairs/2/) that provides
support for rectangle-related operations. It was also used to
explore the concept of function spec templates. You could
refactor that concept out though if you want. author: Gregg Irwin |
Roman | ||
roman.r | v:1.0.0 2.1 KB 13 Mar 2003 | Converts a Roman numeral to Arabic and reverse! author: Andrew Martin |
51 / 95 | 1 | 2 | [3] | 4 |