Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Roots and powers playing nicely together...
#17
(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.

And back to the roots:

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

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

End

[Image: Potenz-Klammern-return2022-09-30.jpg]
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  I advanced my AI to a black jack playing robot. Pete 1 583 04-17-2024, 12:46 AM
Last Post: PhilOfPerth
  Pascal's Triangle and nth roots. Pete 2 866 09-26-2022, 04:15 PM
Last Post: Pete
  Newton had a fun way to approximate general roots... Pete 35 6,267 09-22-2022, 12:38 AM
Last Post: Kernelpanic
  String math: Whole # powers easy, decimal powers!!! Pete 0 509 09-12-2022, 08:58 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 3 Guest(s)