README

DESCRIPTION

This directory contains programmes using the Arithmetic::PaperAndPencil module, beyond the simple display of a single operation.

The programmes can be run directly from this examples directory, after cloning the Github repo and before installing the module. Or you can install the module, move the programmes into a directory present in your $PATH variable and run them.

PROGRAMMES

  • comparison-Newton-gallows.raku

This programme computes āˆš2 using the Newton method. There are three functions, one using Rat numbers, the second using Num numbers and the last using Arithmetic::PaperAndPencil. A fourth function computes āˆš2 using Arithmetic::PaperAndPencil with the direct "gallows" method.

  • conv-pi.raku

This programme converts Ļ€ (with up to 50 decimal digits) from radix 10 to another radix.

  • phi.raku

This programme computes the golden ratio Ļ† in any radix from 2 to 36.

AUTHOR

Jean Forget [email protected]

COPYRIGHT AND LICENSE

Copyright 2024 Jean Forget

This software is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

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.