Ask Your Question

VL's profile - activity

2022-06-09 01:21:55 +0100 received badge  Popular Question (source)
2021-06-02 14:27:43 +0100 received badge  Famous Question (source)
2021-06-02 14:27:43 +0100 received badge  Notable Question (source)
2021-06-02 14:27:43 +0100 received badge  Popular Question (source)
2017-01-11 11:48:23 +0100 commented answer TypeError: 'sage.rings.integer.Integer' object is not callable

Thank you very much for all your help.

2017-01-10 14:10:33 +0100 commented answer TypeError: 'sage.rings.integer.Integer' object is not callable

Thank you very much for your help and clarifications. One question, why did you set e^(ckt/d)-1>0 ?

2017-01-09 17:03:56 +0100 commented answer TypeError: 'sage.rings.integer.Integer' object is not callable

Thank you very much for your input on this.

2017-01-09 16:01:09 +0100 received badge  Editor (source)
2017-01-09 15:27:29 +0100 asked a question TypeError: 'sage.rings.integer.Integer' object is not callable

Hi there.

I am new to SAGE and I am getting this error when doing an integration. I am not sure if I am doing correctly the power 2 of the sech function.

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_6.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -- coding: utf-8 --\n" + _support_.preparse_worksheet_cell(base64.b64decode("dmFyKCdjLEgsayxkLHgsdCcpCmY9KGMqSCooc2VjaF4yKGsvZCooeC1jKnQpKSkpLyhkK0gqKHNlY2heMihrL2QqKHgtYyp0KSkpKQpmLmludGVncmFsKHQp"),globals())+"\n"); execfile(os.path.abspath("___code___.py")) File "", line 1, in <module>

File "/tmp/tmpC99A8h/___code___.py", line 4, in <module> f=(cH(sech_sage_const_2 (k/d(x-ct))))/(d+H(sech_sage_const_2 (k/d(x-c*t)))) TypeError: 'sage.rings.integer.Integer' object is not callable

Any corrections and/or suggestions will be welcome. Thanks in advance.

2017-01-09 13:15:54 +0100 asked a question TypeError: 'sage.rings.integer.Integer' object is not callable

Hi there.

I am new to SAGE and I am getting this error when doing an integration. I am not sure if I am doing correctly the power 2 of the sech function.

I defined f function and my code is:

var('c,H,k,d,x,t')

f=(c * H * (sech^2(k / d * (x - c * t))))/(d + H * (sech^2(k / d*(x - c * t))))

f.integral(t)

The error is:

Traceback (most recent call last):

File "<stdin>", line 1, in <module>

File "_sage_input_7.py", line 10, in <module>

exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + support_.preparse_worksheet_cell(base64.b64decode("dmFyKCdjLEgsayxkLHgsdCcpCmY9KGMgKiBIICogKHNlY2heMihrIC8gZCAqICh4IC0gYyAqIHQpKSkpLyhkICsgSCAqIChzZWNoXjIoayAvIGQqKHggLSBjICogdCkpKSkKZi5pbnRlZ3JhbCh0KQ=="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))

File "", line 1, in <module>

File "/tmp/tmpGxgMcP/___code___.py", line 4, in <module>

f=(c * H * (sech**_sage_const_2 (k / d * (x - c * t))))/(d + H * (sech**_sage_const_2 (k / d*(x - c * t))))

TypeError: 'sage.rings.integer.Integer' object is not callable

Any corrections and/or suggestions will be welcome. Thanks in advance.

P.S. - Hope the edit improved the reading of the topic, but could not find how to display colors as you did in TypeError, etc.


UPDATE:

So after correcting the sech above to sech(x)^2, I calculate the integral of f between the limits 0 and t, and changed the second line of the code above to:

limit(f=(c * H * (sech(k / d * (x - c * t))^2))/(d + H * (sech(k / d*(x - c * t))^2)),t=t)

Now I get the following errors:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_18.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("dmFyKCdjLEgsayxkLHgsdCcpCmxpbWl0KGY9KGMgKiBIICogKHNlY2goayAvIGQgKiAoeCAtIGMgKiB0KSleMikpLyhkICsgSCAqIChzZWNoKGsgLyBkKih4IC0gYyAqIHQpKV4yKSksdD10KQpmLmludGVncmFsKHQp"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>

  File "/tmp/tmpJsB9eB/___code___.py", line 4, in <module>
    limit(f=(c * H * (sech(k / d * (x - c * t))**_sage_const_2 ))/(d + H * (sech(k / d*(x - c * t))**_sage_const_2 )),t=t)
TypeError: limit() takes at least 1 argument (0 given)

Any idea what is wrong here?

The syntax of limit seems correct but how to specify both limits of 0 and t for the integral?

Thanks in advance.