Python Forum
Use a button in Tkinter to run a Python function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use a button in Tkinter to run a Python function
#5
Finding the nth root of a value x is the same as raising x to the power 1/n.

Let r be the square root of x. Then, we have

r^2 = x

We want to express r in terms of x^m. Our equation becomes

(x^m)^2 = x

Knowing that we can multiply the powers gives

x^2m = x

Finally, comparing powers gives

2m = 1 => m = 1/2

So, in general, if r is the nth root of x, so that

r^n = x,

we find that m = 1/n by going through the same process.
Reply


Messages In This Thread
RE: Use a button in Tkinter to run a Python function - by ndc85430 - Jun-28-2020, 05:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to open a popup window in tkinter with entry,label and button lunacy90 1 1,019 Sep-01-2023, 12:07 AM
Last Post: lunacy90
  Tkinter button images not showing up lunacy90 7 1,821 Aug-31-2023, 06:39 PM
Last Post: deanhystad
Bug tkinter.TclError: bad window path name "!button" V1ber 2 929 Aug-14-2023, 02:46 PM
Last Post: V1ber
  Closing Threads and the chrome window it spawned from Tkinter close button law 0 1,786 Jan-08-2022, 12:13 PM
Last Post: law
  tkinter auto press button kucingkembar 2 3,358 Dec-24-2021, 01:23 PM
Last Post: kucingkembar
  Partial using Tkinter function chesschaser 10 7,040 Jul-03-2020, 03:57 PM
Last Post: chesschaser
  Problem using a button with tkinter SmukasPlays 6 3,457 Jul-02-2020, 08:06 PM
Last Post: SmukasPlays
  Function assigned at a button in tkinter riccardoob 9 4,335 Oct-06-2019, 11:14 AM
Last Post: riccardoob
  tkinter button executes button before being clicked SheeppOSU 1 3,872 Apr-01-2019, 10:51 PM
Last Post: Yoriz
  Function for clicking a button within a browser NikonNorm 6 4,590 Jun-06-2018, 04:08 PM
Last Post: Grok_It

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020