Failed to give up

One reason I gave up on dynamatrix was the natrual log function failed.  I have fixed this bug.

In Expr.cs

case FXType.Ln: mi = typeof(Math).GetMethod(“Log”));

change to

case FXType.Ln: mi = typeof(Math).GetMethod(“Log”, new Type[]{typeof(double)});

The problem was that the program uses reflection to find the Log function in the math assembly, but there is an override, so two functions are available and an exception is thrown.  The extra code specifies that we want the override that does not specify a new base, that is, use the base e

Reflection is cool.

Comments are closed.