Skip to content

Wrong JavaScript value of logarithm with non-standard base #127

@truebluepl

Description

@truebluepl

Current behaviour:
console.log(ce.box(ce.parse('\\log_{3}(27)')).evaluate().compile()());
return 1.4313637641589874 which is value of Math.log(27),

Expected behaviour:
should be compiled to Math.log(27)/Math.log(3), and return 3

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions