Re: GUI user input to function

2017-12-29 Thread Nico Vogeli
Am Donnerstag, 28. Dezember 2017 14:00:14 UTC+1 schrieb Chris Angelico: > On Thu, Dec 28, 2017 at 11:06 PM, Nico Vogeli wrote: > > Am Donnerstag, 28. Dezember 2017 12:59:24 UTC+1 schrieb Chris Angelico: > >> On Thu, Dec 28, 2017 at 8:38 PM, Nico Vogeli

Re: GUI user input to function

2017-12-28 Thread Chris Angelico
On Thu, Dec 28, 2017 at 11:06 PM, Nico Vogeli wrote: > Am Donnerstag, 28. Dezember 2017 12:59:24 UTC+1 schrieb Chris Angelico: >> On Thu, Dec 28, 2017 at 8:38 PM, Nico Vogeli wrote: >> > Withs test, this return a correct value for the two x functions:

Re: GUI user input to function

2017-12-28 Thread Nico Vogeli
Am Donnerstag, 28. Dezember 2017 12:59:24 UTC+1 schrieb Chris Angelico: > On Thu, Dec 28, 2017 at 8:38 PM, Nico Vogeli wrote: > > Withs test, this return a correct value for the two x functions: > > > > from sympy import symbols > > > > x = symbols('x') > > f1 =

Re: GUI user input to function

2017-12-28 Thread Chris Angelico
On Thu, Dec 28, 2017 at 8:38 PM, Nico Vogeli wrote: > Withs test, this return a correct value for the two x functions: > > from sympy import symbols > > x = symbols('x') > f1 = eval(input('function 1 ')) > f2 = eval(input('function 2 ')) > What are you typing as input? It's

GUI user input to function

2017-12-28 Thread Nico Vogeli
Hello again I think my question got lost in all the others raised, so here I am again :P So, I tried my best, was looking into the eval and exec function, but still no succsess.. Maybe it helps when I provide the code I want to implement: def newton_verfahren(self): if