Issue #9528 has been updated by Martin Vahi.

File the_code.rb added
File run_demo.bash added

Well, I have the same wish, except that I also have a demo code available.

A speed optimized demo can be downloaded from

    http://longterm.softf1.com/2014/demos/2014_11_08_ruby_factorial_proposal/the_code.rb

and run by

    http://longterm.softf1.com/2014/demos/2014_11_08_ruby_factorial_proposal/run_demo.bash

For 100000.factorial the speed difference is literally roughly 20-fold (not just 20%).


----------------------------------------
Feature #9528: mathn.rb library
https://bugs.ruby-lang.org/issues/9528#change-49856

* Author: Umair Amjad
* Status: Closed
* Priority: Normal
* Assignee: Zachary Scott
* Category: lib
* Target version: current: 2.2.0
----------------------------------------
I want to add factorial method mathn.rb file as feature of Math module.

---Files--------------------------------
the_code.rb (7.49 KB)
run_demo.bash (591 Bytes)


-- 
https://bugs.ruby-lang.org/