comparison-Newton-gallows

POD

NAME

comparison-Newton-gallows.raku -- computing āˆš2 with Newton's method using various implementations

DESCRIPTION

This programme computes āˆš2 with 8 decimal digits using Newton's method. The computation can use Rat, Num or Arithmetic::PaperAndPencil. When using Arithmetic::PaperAndPencil, the programme displays a few statistics on elementary actions and it stores the generated CSV and HTML files.

Also, the programme may compute āˆš2 with the gallows method and Arithmetic::PaperAndPencil values. Statistics are displayed and the CSV file is generated (but not the HTML file).

USAGE

raku conv-pi.raku comparison-Newton-gallows.raku --rat --num --paper --direct

Parameters

rat

Boolean parameter triggering the computation with Rat values.

num

Boolean parameter triggering the computation with Num values.

paper

Boolean parameter triggering the computation with Arithmetic::PaperAndPencil values.

direct

Boolean parameter triggering the computation with Arithmetic::PaperAndPencil values but with the gallows method instead of Newton's method.

COPYRIGHT and LICENCE

Copyright (C) 2024, Jean Forget, all rights reserved

This programme is published under the same conditions as Raku: the Artistic License version 2.0.

The text of the license is available in the file in this repository, or you can read them at:

https://raw.githubusercontent.com/Raku/doc/master/LICENSE

Arithmetic::PaperAndPencil v0.0.1

Simulating paper-and-pencil techniques for basic arithmetic operations

Authors

  • Jean Forget

License

Artistic-2.0

Dependencies

Test Dependencies

Provides

  • Arithmetic::PaperAndPencil
  • Arithmetic::PaperAndPencil::Action
  • Arithmetic::PaperAndPencil::Char
  • Arithmetic::PaperAndPencil::Label
  • Arithmetic::PaperAndPencil::Number

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.