Ask Your Question

tolga's profile - activity

2024-12-06 17:37:29 +0100 commented question Can we symbolically derive geodesic equation for a given metric using its Christoffel symbols?

The page https://sagemanifolds.obspm.fr/examples.html has some examples on geodesics.

2024-11-30 06:14:12 +0100 commented question 3d-Plot not possible, when starting sage from wsl terminal

Do you see any errors? Please try the following simple code: var('x,y') p=plot3d(x^2 + y^2, (-2,2), (-2,2)) p.show()

2024-11-25 07:22:12 +0100 commented answer How to split a function into separate components (according to their variables)?

Also, check the following: def dependentpart(f, val): terms = f.operands() mypart = sum(item for item in terms

2024-11-25 07:17:25 +0100 commented answer How to split a function into separate components (according to their variables)?

The following is a way to get the parts for a given variable: def dependentpart(f, val): terms = f.operands() m

2024-11-24 18:08:56 +0100 received badge  Famous Question (source)
2024-11-24 18:08:39 +0100 received badge  Notable Question (source)
2024-11-24 18:08:17 +0100 received badge  Popular Question (source)
2024-11-24 12:25:12 +0100 received badge  Notable Question (source)
2024-11-24 08:19:13 +0100 commented answer How to split a function into separate components (according to their variables)?

Is there a way to find, for example, f_x1=10*x1+5*x1^2 for the following f? f = 10*x1 + 20*x2 + 10*y1 + 10*y2 + 5*x1^2

2024-10-24 16:05:07 +0100 commented question Unable to locate package Sagemath

I'm not sure if the repo version of SageMath is the latest. In order to have the latest version easily, I recommend you

2024-09-04 21:56:52 +0100 received badge  Nice Answer (source)
2024-09-03 06:52:55 +0100 edited answer Solving this differential equation

The following code solves your equation numerically (with 4th order Runge-Kutta method) for y(0)=0.5 and plots the solut

2024-09-03 06:47:15 +0100 answered a question Solving this differential equation

The following code solves your equation numerically (with 4th order Runge-Kutta method) for y(0)=0.5 and plots the solut

2024-08-26 19:48:54 +0100 commented question How do I speed up the symbolic calculation of Riemann tensor?

If all of the elements of your metric are nonzero and strictly depend on each coordinate, then the Riemann tensor calcul

2024-08-17 08:32:59 +0100 commented question How do I speed up the symbolic calculation of Riemann tensor?

Try to give the metric in a closed form as much as you can: For example, use a function f(t,x) instead of $t^3+xt+x^2$.

2024-08-17 08:32:20 +0100 commented question How do I speed up the symbolic calculation of Riemann tensor?

Try to give the metric in a closed form as much as you can: Use functions like f(t,x) instead of $t^3+xt+x^2$.

2024-08-17 08:31:59 +0100 commented question How do I speed up the symbolic calculation of Riemann tensor?

Try to give the metric in a closed form as much as you can: Use functions like f(t,x) instead of $t^3+x*t+x^2$.

2024-08-06 06:41:39 +0100 commented question Odd warnings with cython

I could not reproduce the warnings as I didn't compile the code but maybe you can try with a SageMath installation on it

2024-08-04 21:05:16 +0100 commented question Odd warnings with cython

Dear Eric, is it possible for you to add a minimal code that would allow us to reproduce the warnings?

2024-08-04 20:56:30 +0100 commented question Odd warnings with cython

Dear Eric, is it possible for you to add a minimal code that would allow us to reproduce the error?

2024-08-02 15:59:35 +0100 received badge  Notable Question (source)
2024-08-02 15:23:32 +0100 commented question simplifying/factoring symbolic fractions to fractional powers

canonicalize_radical() seems to produce better results.

2024-08-01 07:43:16 +0100 commented question The sum function doesn't work in my Jupyter notebook. I get the following error message. Any help appreciated.

Does the error persist when you run only the following code in a new Jupyter session? (with no other prior code parts, j

2024-07-29 07:32:36 +0100 commented question How do I plot 3d plots side by side?

As far as I'm concerned, graphics_array is implemented only for 2D plots. Using the reply of @niles at https://ask.sagem

2024-07-28 06:10:42 +0100 commented question Dedekind eta function in sage

Not a SageMath way but you can try some Python libraries (and you can use them directly in SageMath): https://mpmath.org

2024-07-26 20:00:23 +0100 commented answer Anything similar to MatrixForm

Please try this: v=vector([1,2,3]) show(v.column())

2024-07-26 19:32:37 +0100 commented question Anything similar to MatrixForm

Does "show" suit your needs?: m=matrix([[1,2,3],[4,5,6]]) show(m)

2024-07-24 22:08:01 +0100 commented question How to calculate rotation and spin coefficients of tetrads in SageMath?

Dear @AKGSage, if you are still interested, our very recent package (with our special thanks to @eric_g) https://pypi.or

2024-07-24 19:36:04 +0100 received badge  Good Answer (source)
2024-07-24 19:36:04 +0100 received badge  Enlightened (source)
2024-07-24 08:14:52 +0100 received badge  Nice Answer (source)
2024-07-23 22:33:02 +0100 received badge  Notable Question (source)
2024-07-23 22:29:40 +0100 commented question Which version of sage does the sage cell server use?

version() command produces 'SageMath version 10.2, Release Date: 2023-12-03'

2024-07-19 19:00:55 +0100 commented question An Exercicse from A=B

Did you try to use any simplification methods in your code? Like this one: var('n') (factorial(n+1)/factorial(n)).simpl

2024-07-15 20:02:25 +0100 received badge  Nice Answer (source)
2024-07-15 20:02:25 +0100 received badge  Good Answer (source)
2024-07-14 22:26:59 +0100 commented question Sagemath 9.5 vs Sagemath 10.3

I recommend installing using WSL but with conda/mamba as instructed on the website of SageMath. Then you will have the l

2024-07-14 22:26:33 +0100 commented question Sagemath 9.5 vs Sagemath 10.3

I recommend installing using WSL but with conda/mamba as instructed on the website of SageMath.

2024-07-12 06:20:25 +0100 commented question Comparing two symbolic expressions without sympy

I do not know if this helps in your case but you can check if the difference of the left hand side and the right hand si

2024-07-12 06:18:40 +0100 commented question Comparing two symbolic expressions without sympy

I do not know if this helps in your case but you can check if the difference of the left hand side and the right hand si

2024-07-02 05:54:41 +0100 commented answer How to calculate rotation and spin coefficients of tetrads in SageMath?

Eric, this is great! I have missed that notebook. I will contribute soon.

2024-07-01 20:54:37 +0100 commented question How to calculate rotation and spin coefficients of tetrads in SageMath?

I think it is not implemented in SageMath yet. However, you can use https://www.wolframcloud.com/ with the free basic pl

2024-06-10 08:07:56 +0100 commented question Define an arithmetic function

Do you need something like the following? def f_k(k): return 2^gcd(4,k) * 3^gcd(2,k) print(f_k(720))

2024-05-29 07:05:03 +0100 received badge  Civic Duty (source)
2024-05-27 08:01:54 +0100 answered a question Problems installing on Windows 7

The best way to operate SageMath on Windows is WSL but I am not sure if Win7 has that feature. So, please try with the f

2024-05-19 07:37:02 +0100 commented answer Matrix function

You can use Python modules in Sagemath. What about the following solution? import numpy as np A = matrix(QQ, 3, [2, -1

2024-05-17 11:22:04 +0100 answered a question Matrix function

Mapping the function to the matrix can be useful: A = matrix([[0.1,0.2],[0.3,0.4]]) matsin(x)=sin(x) matlog(x)=log(x) p

2024-05-15 10:22:45 +0100 commented question Incorrect plot

If you change the limits, you can see the roots: show(plot(pow(x,3) - 2*pow(x, 2) - 5 * x + 6, -5, 5))

2024-05-06 11:01:40 +0100 commented question Easy way to round polynomial coefficients?

e493 means 10^493. Use show(SubstituteNumericalApprox(digits=3)(y)) to see it better.

2024-05-06 09:26:04 +0100 commented question Easy way to round polynomial coefficients?

from sage.symbolic.expression_conversions import ExpressionTreeWalker class SubstituteNumericalApprox(ExpressionTre