2022-03-07 14:32:39 +0200 | received badge | ● Popular Question (source) |
2016-06-01 17:38:26 +0200 | asked a question | iteration problem def valores(f,p,a,b,xi,n): @interact def Exp(n = selector(range(0, 11),nrows=1, label="Botão"),f = input_box(default=x*e^x-1), a = input_box(default=0.5), b = input_box(default=1), xi = input_box(default=0.8),p = input_box(default=e^(-x))): My problem here is that when i choose another values for n i would like to get this k values : k 0 1 2 and not as im getting : k 2 2 2 |
2016-06-01 17:31:10 +0200 | received badge | ● Scholar (source) |
2016-06-01 17:18:03 +0200 | commented answer | fixed point iteration issue and on other values for n too if i choose n = 0 shows only this (k xk fi ErAbs ErRel ErMet) |
2016-06-01 17:15:01 +0200 | commented answer | fixed point iteration issue that was actually a error but still getting a error when i chose n = 1 on the button it shows this error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_127.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -- coding: utf-8 --\n" + _support_.preparse_worksheet_cell(base64.b64decode("X2ludGVyYWN0Xy51cGRh\ dGUoJzMnLCAnbicsIDEsIF9pbnRlcmFjdF8uc3RhbmRhcmRfYjY0ZGVjb2RlKCdNUT09Jyks\ IGdsb2JhbHMoKSkKX2ludGVyYWN0Xy5yZWNvbXB1dGUoJzMnKQ=="),globals())+"\n")\ ; execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single') File "", line 1, in <module> File "/tmp/tmp50pxgy/___code___.py", line 4, in <module> exec compile(u"_interact_.recompute('3')" + '\n', '', 'single') File "", line 1, in <module> |
2016-06-01 17:12:14 +0200 | received badge | ● Student (source) |
2016-06-01 17:08:48 +0200 | received badge | ● Editor (source) |
2016-06-01 17:06:26 +0200 | asked a question | fixed point iteration issue Im having a problem with this code wonder if someone could help me, its a code for fixed point iteration: Error showed: |