Ask Your Question

roberto's profile - activity

2017-07-21 23:45:30 +0200 commented question How to plot a complicated function in Sage Math

My bad I thought it was abs(x) instead of floor(x)

2017-07-02 00:51:28 +0200 commented question How to plot a complicated function in Sage Math

So do you want to plot a function which is 1 for x>=0 and +Infinity for x<0?

2017-04-17 15:47:01 +0200 received badge  Supporter (source)
2017-04-14 10:06:12 +0200 received badge  Teacher (source)
2017-04-14 05:07:09 +0200 answered a question Launch Sage Notebook directly from linux menu

I found the solutions above way too slow. I have all my sagemath notebooks on a sagemathNB folder in Documents. In my ~/bin I created a script called sage_nb

cd ~/Documents/sagemathNB
$SAGE ROOT/sage -n jupyter

Remember to chmod +x sage_nb Then I create a SageMath.desktop file in my desktop

[Desktop Entry]
Name=Jupyter notebook with Sage
Name[en]=Jupyter notebook with Sage
Comment=Scientific Computing using Jupyter notebook and Sage
Comment[en]=Scientific Computing using Jupyter notebook and Sage
Icon=$SAGE ROOT/src/ext/notebook-ipython/logo.svg

Finally you can copy to sudo cp SageMath.desktop /usr/share/applications/

2017-04-01 14:05:37 +0200 received badge  Scholar (source)
2017-04-01 02:23:12 +0200 asked a question weird behavior of set and uniq

Hi all, I have a list of coefficients (which are variables) and I want to remove duplicates. In my original file (from May 2015) I could use set and or unique now both of them give me the same error

TypeError: <class 'sage.manifolds.coord_func_symb.CoordFunctionSymbRing_with_category.element_class'> is not hashable

Whenever I try to use the same commands with another list I don't have any error. I'm still scratching my head. here is the notebook. I don't have enough karma to publish a link

2016-04-23 13:39:09 +0200 commented question Assume that n is positive integer

It is pretty weird. If you type


The command



[ n is integer,n > 0,]



returns false. But if you assume the other way around




returns true. I guess it's a sort of bug

2016-04-23 13:39:08 +0200 commented answer Fast show()? (for cached plots for @interact)

Do you know if things are changed right now? I can't load the module Image.

2015-05-24 00:39:21 +0200 answered a question what is the command for unzipping a folder in sagemathCloud

Open a terminal and use linux commands:

2015-05-24 00:37:51 +0200 answered a question Matrix/Tensor derivative for Stress Tensor

Have you tried SageManifolds?

I do tensor calculus with it and I think it's good. Then as Juanlu001 already told you try to use diff and post your code.

2015-05-17 14:31:48 +0200 commented answer Solving a symbolic inequality

In the first case your solution is fine:



solve(18bcd - 4b^3d + b^2c^2 - 4c^3 - 27d^2==0,d)

But I would like to know if there is a way to have a solution without "trying to understand" where the sign change. I think is the main point to use a math software. Furthermore it'll be pretty annoying if there is anything like that implemented already as with Mathematica is a one line command

Reduce[{b^2 c^2-4 c^3-4 b^3 d+18 b c d-27 d^2>0,c<0},d]