Skip to content
Snippets Groups Projects
Commit 5f81e241 authored by Raymond Toy's avatar Raymond Toy
Browse files

Fix to handle (log 3/2 2) and (log -3/2 2). Test added.

 * src/code/irrat.lisp:
   * Fix LOG2 to handle the case of negative rational numbers.
   * Fix LOG of rational to a rational base. We want to convert the
     log of the number to a single float because log2 isn't intended
     to handle single-float type.

 * tests/irrat.lisp:
   * Add test for log of rational to rational base.
   * Add some additional tests for dd-%log2.
parent 46b80669
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment