Ask Your Question

gucheuta's profile - activity

2021-07-16 22:13:12 +0200 received badge  Famous Question (source)
2021-07-05 14:49:15 +0200 received badge  Popular Question (source)
2019-03-28 20:10:15 +0200 received badge  Notable Question (source)
2018-11-03 21:20:04 +0200 received badge  Popular Question (source)
2016-11-30 22:10:09 +0200 commented answer Error with metric

It is strange. I got the same error after following the installation instructions, too. In fact, g = M.lorentz_metric('g') (or g = M.metric('g') ) did not work even in SageMathCloud...

P.S. I installed SageMath-7.4.app and SageManigolds on MacOSX.

2016-11-30 16:24:43 +0200 received badge  Student (source)
2016-11-30 09:23:31 +0200 asked a question Error with metric

Hi,

I am learning Sage Math and Sage Manifolds. As in the reference manual, I just used the command:

M = Manifold(4, 'M')

g = M.lorentz_metric('g')

Running the second line gave me the following message:

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

File "/private/var/folders/hw/dshmtl910nb4nk8_pc8f7ldr0000gn/T/tmptEzTup/___code___.py", line 2, in <module> exec compile(u"g = M.lorentz_metric('g')" + '\n', '', 'single') File "", line 1, in <module>

File "sage/structure/category_object.pyx", line 834, in sage.structure.category_object.CategoryObject.__getattr__ (/Applications/SageMath-7.4.app/Contents/Resources/sage/src/build/cythonized/sage/structure/category_object.c:7515) File "sage/structure/category_object.pyx", line 849, in sage.structure.category_object.CategoryObject.getattr_from_category (/Applications/SageMath-7.4.app/Contents/Resources/sage/src/build/cythonized/sage/structure/category_object.c:7679) File "sage/structure/misc.pyx", line 295, in sage.structure.misc.getattr_from_other_class (/Applications/SageMath-7.4.app/Contents/Resources/sage/src/build/cythonized/sage/structure/misc.c:1697) AttributeError: 'DifferentiableManifold_with_category' object has no attribute 'lorentz_metric'

I appreciate it if somebody would give me some advice. Thanks.

2016-11-30 09:03:39 +0200 commented answer Error on %display latex

I chose the first option :) It did work, thank a lot.

2016-11-30 09:03:32 +0200 received badge  Scholar (source)
2016-11-29 10:31:37 +0200 asked a question Error on %display latex

Hi,

I just started using Sage Math and ran %display latex. Then I got Syntax Error: I have looked for a solution but found nothing clear. Could anyone know how to deal with it? Thanks.