<jupyter_start><jupyter_text>Ricci Tensor and Scalar Curvature calculations using Symbolic module<jupyter_code>import sympy
from sympy import cos, sin, sinh
from einsteinpy.symbolic import MetricTensor, RicciTensor, RicciScalar

sympy.init_printing()<jupyter_output><empty_output><jupyter_text>Defining the Anti-de Sitter spacetime Metric<jupyter_code>syms = sympy.symbols("t chi theta phi")
t, ch, th, ph = syms
m = sympy.diag(-1, cos(t) ** 2, cos(t) ** 2 * sinh(ch) ** 2, cos(t) ** 2 * sinh(ch) ** 2 * sin(th) ** 2).tolist()
metric = MetricTensor(m, syms)<jupyter_output><empty_output><jupyter_text>Calculating the Ricci Tensor(with both indices covariant)<jupyter_code>Ric = RicciTensor.from_metric(metric)
Ric.tensor()<jupyter_output><empty_output><jupyter_text>Calculating the Ricci Scalar(Scalar Curvature) from the Ricci Tensor<jupyter_code>R = RicciScalar.from_riccitensor(Ric)
R.expr<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12039045553145336, 'fraction_numerical': 0.007592190889370932, 'mean_word_length': 8.323232323232324, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '319066', 'license': 'MIT', 'n_tokens_mistral': 363, 'n_tokens_neox': 338, 'n_words': 72, 'path': 'docs/source/examples/Ricci Tensor and Scalar Curvature symbolic calculation.ipynb', 'repo_name': 'DumbMachine/einsteinpy', 'size': '922'}