www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Automatic Equation and Inequation evaluation.

reply "Carlos" <checoimg gmail.com> writes:
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(;
}
Jun 14 2013
parent "Carlos" <checoimg gmail.com> writes:
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); }
Jun 14 2013