You can just call the .NET API like C#:

> System.Math.Log(40.0, 25.0);;

val it : float = 1.146014837

By on 10/6/2010 11:28 AM ()

Thanks guys! This works.

By on 10/6/2010 11:52 AM ()

remember that for any x, and any b, log_b n = log_x n / log_x b (any x b n where the expression makes sense, that is)

for instance, taking x=e:

1
2
3
4
5
6
7
8
> let logb n b = log n / log b;;

val logb : float -> float -> float

> logb 40. 25.;;

val it : float = 1.146014837
By on 10/6/2010 11:21 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper