June 15, 2013 Automatic Equation and Inequation evaluation. | ||||
|---|---|---|---|---|
| ||||
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(;
}
| ||||
June 15, 2013 Re: Automatic Equation and Inequation evaluation. | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Carlos | 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);
}
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply