VB6 expression too complex
-
VB6 says the following expression is too complex to be computed (provided by a genetic program): (0.187385 +(0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) + oN1*(-0.361811+-0.34512*oN1)))*(-0.647353+(0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) + oN1*(-0.361811+-0.34512*oN1)))*(-5.2078)) +(0.0531293 + oDP3*(0.260794+oDP3*(-0.0914714+0.00960239*oDP3)) +oOPT*(+oOPT*(+0.000904296*oDP3) +oDP3*(-0.0286061+0.00372593*oDP3)))*(-5.25864+(0.0531293 +oDP3*(0.260794+oDP3*(-0.0914714+0.00960239*oDP3)) +oOPT*(+oOPT*(+0.000904296*oDP3) + oDP3*(-0.0286061+0.00372593*oDP3)))*(37.8453+-71.5963*(0.0531293 + oDP3*(0.260794+oDP3*(-0.0914714+0.00960239*oDP3)) +oOPT*(+oOPT*(+0.000904296*oDP3) + oDP3*(-0.0286061+0.00372593*oDP3)))+-136.292*(0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) +oN1*(-0.361811+-0.34512*oN1)))) + (0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) + oN1*(-0.361811+-0.34512*oN1)))*(34.1411+55.7764*(0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) +oN1*(-0.361811+-0.34512*oN1)))))) It contains several common bracketed sub expressions that could be simplified. Is there any code to simplify this expression and compute it ? Any suggestions? aprx
-
VB6 says the following expression is too complex to be computed (provided by a genetic program): (0.187385 +(0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) + oN1*(-0.361811+-0.34512*oN1)))*(-0.647353+(0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) + oN1*(-0.361811+-0.34512*oN1)))*(-5.2078)) +(0.0531293 + oDP3*(0.260794+oDP3*(-0.0914714+0.00960239*oDP3)) +oOPT*(+oOPT*(+0.000904296*oDP3) +oDP3*(-0.0286061+0.00372593*oDP3)))*(-5.25864+(0.0531293 +oDP3*(0.260794+oDP3*(-0.0914714+0.00960239*oDP3)) +oOPT*(+oOPT*(+0.000904296*oDP3) + oDP3*(-0.0286061+0.00372593*oDP3)))*(37.8453+-71.5963*(0.0531293 + oDP3*(0.260794+oDP3*(-0.0914714+0.00960239*oDP3)) +oOPT*(+oOPT*(+0.000904296*oDP3) + oDP3*(-0.0286061+0.00372593*oDP3)))+-136.292*(0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) +oN1*(-0.361811+-0.34512*oN1)))) + (0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) + oN1*(-0.361811+-0.34512*oN1)))*(34.1411+55.7764*(0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) +oN1*(-0.361811+-0.34512*oN1)))))) It contains several common bracketed sub expressions that could be simplified. Is there any code to simplify this expression and compute it ? Any suggestions? aprx
:omg: And you needed VB6 to tell you this? :-D How are you getting this expression into your VB6 app? Are you cutting and pasting it directly into your code or are you sending the expression to something like VBScript to be evaluated? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
:omg: And you needed VB6 to tell you this? :-D How are you getting this expression into your VB6 app? Are you cutting and pasting it directly into your code or are you sending the expression to something like VBScript to be evaluated? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Hi! I got this expression from a genetic package, then copied/pasted it in my VB written application. It usually works but this time the expression is too large. aprx
aprx wrote: then copied/pasted it in my VB written application. Ewww... Your going to have to simplify it by hand, before you paste it in. I suppose you could add expression evaluation support to your app, but that would be a massive undertaking almost as bad as rewriting the genetic package into your VB6 app directly. There are libraries out there that could probably do this, but you'll have to watch out for their capabilities because these libraries will also have limits on how complex the expression can be. Yahoo search results for "vb6 expression evaluation[^] RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome