Mafia and Math

Tpj_4000

Member
I see that mafia can do basic math and float^float. I am in need of the natural log function -> ln(x). I'm sure there is support for this in the math library it uses as it is pretty standard, however, does mafia support it's use?
 

jasonharper

Developer
Generally speaking, ASH only has the math functions needed to predict the results of existing game mechanics - there's plenty of square rooting going on in the game, and the occasional exponential, but no logarithms that I'm aware of. I'm curious as to what you'd use this for?
 

bumcheekcity

Active member
If you're really desparate, you can use Newton-Rhapson to approximate the log of x. Although I'm wondering, like Jason, why you'd need it.
 

Tpj_4000

Member
I need it to solve the probability density function for a different variable.

I am aware of the Newton-Raphson method. I've used it to calculate float^float before. I wasn't aware it could be used for logarithms, though. I guess I'll search on it more.
 
Top