bcmath icon indicating copy to clipboard operation
bcmath copied to clipboard

support? log exp function

Open birdol opened this issue 8 years ago • 1 comments

when I use php function ,like ln() log()、exp(), in $formula with bc::parse(), it output a string for me. also in pow(x,y)


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

birdol avatar Sep 06 '17 09:09 birdol

Yes, BC::parse() doesn't support function calls. You have to do those other ways, at least for the moment.

At some point, I may create/release a complete mathematics parsing/evaluation library. It will be a separate package from this one, though, even if it does end up using BC::math behind the scenes.

danhunsaker avatar Sep 06 '17 09:09 danhunsaker