Automatic Equation and Inequation evaluation.
Carlos
checoimg at gmail.com
Fri Jun 14 18:44:49 PDT 2013
On Saturday, 15 June 2013 at 01:31:23 UTC, Carlos wrote:
> I'm interested in this kind of functionalities does D have
> something on this ?
>
> I thought about something like a "eval" function that would use
> specified algorithms.
> something likes this
>
> import std.stdio, std.math, atd.eval;
>
> eval(Real a+b+c^^x=56){
> algor.brute;
> writeln(Real, " ", Positive value(;
> }
import std.stdio, std.math, std.eval;
void main()
{
eval(Real; a+b^^x+c=56){
algor.brute(&result);
}
writeln("Positive value is : ", result);
}
More information about the Digitalmars-d-learn
mailing list