Home > Back-end >  How to evaluate a floating-point number, you can just be known N floating point Numbers, as far as p
How to evaluate a floating-point number, you can just be known N floating point Numbers, as far as p

Time:09-26

Such as: 2345.2
Known number is 1.2, 3.5, 0.12...
What method can work out the equation? 2345.2 can be known number average allocation, distribution, distribution of every known and how much?
Note: the number of distribution must be plastic,
Great god to genuflect is begged!!!!!!!!!!!!!!!!!!!!!!!!!!

CodePudding user response:

Didn't quite understand, how to average distribution?
If are allocated an average of 2345.2 to 1.2, 3.5, 0.12, that is 2345.2/(1.2 + 3.5 + 0.12), the result is an integer,

CodePudding user response:

X=1.2
Y=3.5
Z=0.12
T=2345.2
Integer: m, n, s
X * * s * n + m + y z=T

CodePudding user response:

Also, not a fixed number of datum, it is possible that 2, may be 5,,
If this is no solution?? Or must use exhaustive method one by one to try? The algorithm can quickly calculate the??

CodePudding user response:

reference u014097253 reply: 3/f
and known number is not a fixed number, it is possible that 2, may be 5,,
If this is no solution?? Or must use exhaustive method one by one to try? The algorithm can quickly calculate the??


To set up the scope, value types, otherwise cannot be enumerated list (data) mostly,
One, six variables, five known, can be calculated by formula,
Two, six variables, four known, unknown, through the formula to calculate the other unknown,
Three, six variables, three known, two unknowns, through the formula to calculate the third question,
Known two, four, six variables, enumerating three unknowns, through the formula to calculate the fourth unknown, so meaningless,
  • Related