Why do I get wrong results with power of 2?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to power a scalar with a matrix-values, which seems to be 2. As a result I get -2,53.
For example: my scalar = 1.61803 one of the matrixvalues = 2 result = -2.53
But if the matrix value = 3 the result is correct with 4.24
The matrix values were beeing created by following formula:
x = log10(factor)/log10(1.61)
Whats wrong with the 2? Maybe it's a problem of floating point numbers?
kind regards Reinhard
0 Kommentare
Antworten (1)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!