| Download
All published worksheets from http://sagenb.org
Project: sagenb.org published worksheets
Views: 168756Image: ubuntu2004
-1
File: /usr/local/sage2/local/lib/python2.6/site-packages/sage/functions/other.py
Type: <class ‘sage.functions.other.Function_real_part’>
Definition: real(*args, coerce=True, hold=False, dont_call_method_on_arg=False)
Docstring:
EXAMPLES:
sage: z = 1+2*I sage: real(z) 1 sage: real(5/3) 5/3 sage: a = 2.5 sage: real(a) 2.50000000000000 sage: type(real(a)) <type 'sage.rings.real_mpfr.RealLiteral'> sage: real(1.0r) 1.0TESTS:
sage: loads(dumps(real_part)) real_partCheck if #6401 is fixed:
sage: latex(x.real()) \Re \left( x \right) sage: f(x) = function('f',x) sage: latex( f(x).real()) \Re \left( f\left(x\right) \right)
No object 'numpy' currently defined.
3.00000000000000 + 4.00000000000000*I
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_45.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("eCx5ID0gdmFyKCd4LHknKQpDID0gQ29tcGxleEZpZWxkKCk7IEMKcDE9Y29tcGxleF9wbG90KHgsICgtNSw1KSwgKC01LDUpKQpwMj1wbG90M2QoYWJzKHNpbihDKHgsIHkpKSwgKHgsLTUsNSksICh5LC01LDUpLCBmaWxsPWZhbHNlKQ=="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))' + '\n', '', 'single')
File "", line 1, in <module>
File "/tmp/tmp3L6yKR/___code___.py", line 7
^
SyntaxError: invalid syntax
File: /usr/local/sage2/local/lib/python2.6/site-packages/sage/functions/other.py
Type: <class ‘sage.functions.other.Function_imag_part’>
Definition: imag(*args, coerce=True, hold=False, dont_call_method_on_arg=False)
Docstring:
TESTS:
sage: z = 1+2*I sage: imaginary(z) 2 sage: imag(z) 2 sage: loads(dumps(imag_part)) imag_partCheck if #6401 is fixed:
sage: latex(x.imag()) \Im \left( x \right) sage: f(x) = function('f',x) sage: latex( f(x).imag()) \Im \left( f\left(x\right) \right)
cos(real_part(x) - imag_part(y))*sinh(real_part(y) + imag_part(x))
real_part(y) + imag_part(x)
sin(4)*cosh(3)
cos(4)*sinh(3)