Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Roots and powers playing nicely together...
#14
(09-30-2022, 04:51 AM)PhilOfPerth Wrote: Excuse me if I'm wrong, but should that be x^(1/100) ?  I think powers are resolved before / without parenthesis.

Why should not that be right? I do not understand. I see no violation of a mathematical law.
Code: (Select All)
'Beispiel x ^ (a/b) - 30. Sept. 2022

Option _Explicit

Dim As Double a, b, x, potenz

Input "Basis x: ", x
Input "a      : ", a
Input "b      : ", b
Print

potenz = x ^ (a / b)
Print Using "Potenzwert = : #####.####"; potenz

End

[Image: Potenz-mit-Klammern2022-09-30.jpg]
Reply


Messages In This Thread
RE: Roots and powers playing nicely together... - by Kernelpanic - 09-30-2022, 04:05 PM



Users browsing this thread: 14 Guest(s)