There's more than one way to do things PerlMonks

### Re^4: Reverse engineering a formula...

by devnul (Monk)
 on Jun 13, 2006 at 10:34 UTC ( #554994=note: print w/replies, xml ) Need Help??

in reply to Re^3: Reverse engineering a formula...
in thread Reverse engineering a formula...

Not every number necessarily needs to be part of the formula (obviously its 2 or more numbers in some combination of addition and/or subtraction). Those two numbers could simply not be part of the formula.

- Devnul

Replies are listed 'Best First'.
Re^5: Reverse engineering a formula...
by Skeeve (Vicar) on Jun 13, 2006 at 10:41 UTC
As I said before: Not enough information...

It seems as if your formular is something like this (untested code of course):
my @sign=( .... ); # Some combination of -1, 0 1 my @sum= map { \$sign[\$i] * \$VAR1[\$i] } (0..\$#VAR1); print eval join ' + ', @sum;
Now you "only" need to get the correct combination of -1, 0 and 1 for @sign, which is a "simple" combinational task but will be very lengthy...

s\$\$([},&%#}/&/]+}%&{})*;#\$&&s&&\$^X.(\$'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`\$''`"e

Create A New User
Node Status?
node history
Node Type: note [id://554994]
help
Chatterbox?
 marto waves [Marshall]: marto howdy! [marto]: Hey there [Marshall]: hope we get a good answer to Script stopped working... this OP is making serious efforts to solve problem on his own. [Marshall]: I've become frustrated lately with some OP's.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2018-03-18 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
When I think of a mole I think of:

Results (230 votes). Check out past polls.

Notices?