Ask Your Question

debojit2178's profile - activity

2021-04-18 22:11:02 +0200 received badge  Nice Question (source)
2021-04-18 13:19:47 +0200 received badge  Self-Learner (source)
2021-04-18 13:19:47 +0200 received badge  Teacher (source)
2021-04-18 12:29:46 +0200 commented answer xmin and xmax doesn't work within parametric plot.

Ok, that does the job. Thanks. But why it doesn't work with the parametric plot?

2021-04-18 04:59:12 +0200 edited question xmin and xmax doesn't work within parametric plot.

xmin and xmax doesn't work in parametric plot. Restricting the range with xmin and xmax doesn't work with parametric plo

2021-04-18 04:58:43 +0200 asked a question xmin and xmax doesn't work within parametric plot.

xmin and xmax doesn't work in parametric plot. Restricting the range with xmin and xmax doesn't work with parametric plo

2021-04-18 04:15:33 +0200 answered a question Formatting plot title

Restricting the y range using ymin or ymax does the trick while using text in 2d plots. Here's the code, p1 = plot(fres

2021-04-17 13:00:00 +0200 received badge  Organizer (source)
2021-04-17 12:59:34 +0200 asked a question Formatting plot title

Formatting title for plot. I am not able to find formatting options for title for plot. Here's the code, p1 = plot(fres

2021-02-26 10:40:02 +0200 commented answer TypeError in parametric_plot3d with real or imag

It gave me the desired result, but I don't really understand why this one works and the others don't.

2021-02-26 10:37:17 +0200 received badge  Scholar (source)
2021-02-24 17:10:26 +0200 received badge  Nice Question (source)
2021-02-24 05:01:51 +0200 commented question TypeError in parametric_plot3d with real or imag

@FrédéricC's I've tried the method you've mentioned. It gives the same type of error.

2021-02-23 08:06:05 +0200 asked a question TypeError in parametric_plot3d with real or imag

The code to plot a surface using parametric_plot_3d:

var("u,v")
parametric_plot3d([sqrt(u + I*v).real(), sqrt(u + I*v).imag(),v],(u,-1,1), (v,-1,1))

The full traceback of the error is quite long, so I give only the first few lines and last few lines:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-...-....> in <module>
----> 1 parametric_plot3d([sqrt(u + I*v).real(), sqrt(u + I*v).imag(),v],(u,-Integer(1),Integer(1)), (v,-Integer(1),Integer(1)))

.../sage/misc/decorators.py in wrapper(*args, **kwds)
    649                     kwds[new_name] = kwds[old_name]
    650                     del kwds[old_name]
--> 651             return func(*args, **kwds)
    652
    653         return wrapper

...

.../sage/rings/number_field/number_field_element.pyx in sage.rings.number_field.number_field_element.NumberFieldElement.__float__ (build/cythonized/sage/rings/number_field/number_field_element.cpp:19236)()
   1908             if c.imag == 0:
   1909                 return c.real
-> 1910             raise TypeError('unable to coerce to a real number')
   1911
   1912     def _complex_double_(self, CDF):

TypeError: unable to coerce to a real number

Edit: I am also getting similar errors using the log function, arctan function, etc.

2021-02-23 07:57:39 +0200 asked a question Getting TypeError for the following code:

............................................

2021-02-18 11:51:51 +0200 received badge  Supporter (source)
2020-08-14 00:05:48 +0200 received badge  Student (source)
2020-08-10 18:01:01 +0200 commented question not able to execute ./sage

There is a script file called python3 in SageMath/local/bin which is supposed to be executed as per the sage file. That python3 script has only one command i.e. ./python3.7, which is a file in the same directory. But for some reason, it doesn't run. I tried executing the python3 file it works fine but when I run bash sage or ./sage it gives the error mentioned above.

2020-08-10 12:11:58 +0200 received badge  Editor (source)
2020-08-09 22:36:39 +0200 asked a question not able to execute ./sage

I've downloaded the precompiled binary for sagemath 9.1(sage-9.1-Ubuntu_18.04-x86_64.tar.bz2), I'm on ubuntu 20.04. After extracting the file when I run ./sage in the terminal it says bash: ./sage: Permission denied. I made the file executable by changing the permission but then it says ./sage: no Sage installation found in $SAGE_ROOT = /home/my_pc/Downloads/SageMath. Can anyone help me with this?

Edit: After some tweaks, I found that in the file named relocate-once.py there was a problem in the declaration for the python env after I changed it to pyhton3 it started Rewriting paths for your new installation directory then it gave an error /home/my_pc/Downloads/SageMath/local/bin/python3: line 1: ./python3.7: No such file or directory. I checked it the file exist but for some reason it doesn't execute it. That's where I'm stuck now.