wolfe-pack / wolfe

Wolfe Language and Engine
https://wolfe-pack.github.io/wolfe
Apache License 2.0
135 stars 17 forks source link

Argmin behaves as argmax? #80

Closed insperatum closed 10 years ago

insperatum commented 10 years ago

For example: argmin(-3 until 3) {x => x*x} returns -3 rather than 0

riedelcastro commented 10 years ago

Nice catch! Could you add a unit test / spec to OptimizeByInferenceSpecs that captures this issue?

riedelcastro commented 10 years ago

I did fix this issue superficially now and added a spec. We can show you how this works when you start.