Ask Your Question

thetha's profile - activity

2020-11-04 07:37:19 -0600 received badge  Notable Question (source)
2020-10-18 21:48:18 -0600 received badge  Popular Question (source)
2020-09-11 11:04:07 -0600 received badge  Notable Question (source)
2020-08-18 09:40:08 -0600 received badge  Popular Question (source)
2020-08-07 14:51:07 -0600 received badge  Popular Question (source)
2020-07-28 08:31:01 -0600 received badge  Popular Question (source)
2020-06-18 12:09:50 -0600 received badge  Popular Question (source)
2020-06-02 10:59:50 -0600 received badge  Notable Question (source)
2020-04-27 17:04:57 -0600 received badge  Popular Question (source)
2019-12-18 01:45:00 -0600 received badge  Famous Question (source)
2019-12-05 05:31:30 -0600 received badge  Notable Question (source)
2019-07-30 02:11:52 -0600 received badge  Notable Question (source)
2019-07-13 08:08:30 -0600 received badge  Notable Question (source)
2019-04-25 05:07:23 -0600 received badge  Organizer (source)
2019-04-25 04:06:52 -0600 asked a question plotting multiple functions from a for loop

This solution: is not working any more

The error is:

Error in lines 3-3
Traceback (most recent call last):
  File "/cocalc/lib/python2.7/site-packages/smc_sagews/", line 1188, in execute
    flags=compile_flags) in namespace, locals
  File "", line 1, in <module>
  File "/ext/sage/sage-8.7_1804/local/lib/python2.7/site-packages/sage/misc/", line 492, in wrapper
    return func(*args, **options)
  File "/ext/sage/sage-8.7_1804/local/lib/python2.7/site-packages/sage/plot/", line 1956, in plot
    G = _plot(funcs, (xmin, xmax), **kwds)
  File "/ext/sage/sage-8.7_1804/local/lib/python2.7/site-packages/sage/plot/", line 2224, in _plot
    legend_label=legend_label_entry, legend_color=legend_color_entry, **options_temp)
  File "/ext/sage/sage-8.7_1804/local/lib/python2.7/site-packages/sage/misc/", line 492, in wrapper
    return func(*args, **options)
  File "/ext/sage/sage-8.7_1804/local/lib/python2.7/site-packages/sage/plot/", line 1941, in plot
    G = funcs.plot(*args, **original_opts)
TypeError: plot() takes exactly 1 argument (17 given)
2019-04-06 17:10:33 -0600 asked a question Point -> Vector to a point

Hello everyone,

If i have point in 3D


How to create a vector from the origin to the point. I know i could define the vector. But I would rather have a point, for plotting reasons

And i would like to plot the Point and the Vector, with automatic labeling of the coordinates.

I have managed to do this like:

from sage.plot.plot3d.shapes2 import frame3d

t = var('t')
p = vector([4,3,2])
q = vector([0,0,0])
vec=parametric_plot3d(p*t+q, (t,0,1))

T_A = text3d('A',eps)
#T_B = text3d('B',B)

Is there any better, way to do it?

Here is the file:

2019-04-06 12:52:46 -0600 asked a question Line,Plane, Points 3D, Intersection,

Is there a tutorial on -analytical geometry(vectors) : plane line 2D circle in 3D, plot chains of vectors, basicaly the everything what this thing can do: well allmost everything in vector geometry for python or sagemath.

Maybe someone saw a book or tutorial on this

I can not find anything on this.

I have managed to plot points

from sage.plot.plot3d.shapes2 import frame3d 
T = text3d('A',eps)

I didnt manage to label, point A(4,3,2), to to do it? I would rather not put the coordinates as a string. Is there something like in c++ "The point is %d"

Is there a better way to plot? I need the frame, since the plot 3d is not accepting, text, or maybe i am wrong?

Would there by a natural way to plot x,y,z axes?

Here is the Code

2019-03-29 02:22:45 -0600 received badge  Popular Question (source)
2019-03-09 02:50:25 -0600 asked a question Save to GDrive

Is it possible to sync, save to gdrive?

2019-02-13 08:20:11 -0600 asked a question exponential equation solve problem

The Solution is:

[4^(x + 2) == 4/5*3^(2*x - 1)]

Should the solve alg. solve for x?

2019-02-13 04:33:40 -0600 asked a question 2D Points, best paractive to store Points
sage: from sage.plot.point import Point
sage: P = Point([1,2],[2,3],{'alpha':.5})
sage: P
Point set defined by 2 point(s)
sage: P.options()['alpha']
sage: P.xdata
[1, 2]

Why is this not working:

sage: P = Point([1,2],[2,3])

Why do I need this alpha Parameter?

2019-01-28 09:18:48 -0600 answered a question run geogebra in the sagemath cloud

Well its working now ! :D Awesome just download the portable version, unzip it! Thats All

2019-01-23 13:01:42 -0600 commented answer SageMath export to latex Document

SageMath is much better then jupyter, my opinion.

2019-01-21 08:34:40 -0600 commented answer SageMath export to latex Document

That the workflow i am trying to avoid. I am working a math tutor. I and I use cocal its the online version of sagemath. It very easy to use for students. Sagemath i mean. Latex not so much

2019-01-21 07:55:12 -0600 asked a question Import Functions defined in files

How to load a file with - functions? Is there any documentation on this?

What happens if there are some variables also defined in this file.

2019-01-21 07:44:40 -0600 asked a question Difference between def and lambda Function declaration

Here is an example. Is There any difference?

2019-01-21 07:40:20 -0600 asked a question Acces other cells from within other cells

Is it possible? For example, i have a function in 1 cell. Is it possible to access it from other cell?

2019-01-21 07:21:20 -0600 asked a question SageMath export to latex Document

Is there a way automatically create a latex document from within the sagemath notebook. It is possible to push one line to latex output, but its very anoying to callect its by hand and copy and paste it into latex document. In my opiniton its much fast to write in sagemath.

2019-01-16 05:04:38 -0600 marked best answer Compute all Elements of a subgroup GL_3(R)

Hi there, i have two matrices A and B, they both out Gl_3(R). I have find all Elements in the Subgroup created by these two. is there a way to do it in sage?

M3 = MatrixSpace(QQ, 3) # Rational numbers print("Identity matrix:") show(M3.identity_matrix()) A = M3.matrix([[1, 0, 0], [0, -1, 0], [0, 0, -1]]) B = M3.matrix([[0, 1, 0], [0, 0, 1], [1, 0, 0]])

There should be 36 Elements in this group B is cyclic B^3=I and A creates 2 possible Element by negating elements. so the Left inverses create 6 Elements and the Right creates also 6, total is 36.

2019-01-16 04:58:56 -0600 received badge  Famous Question (source)
2019-01-16 04:58:55 -0600 received badge  Popular Question (source)
2019-01-16 04:58:53 -0600 received badge  Popular Question (source)
2019-01-16 04:58:41 -0600 received badge  Popular Question (source)
2019-01-16 04:58:37 -0600 received badge  Popular Question (source)
2019-01-15 04:19:12 -0600 asked a question CoCal load and commit to github

Is it possible open git project and directly push to gitgub from within the project?

2019-01-11 04:12:07 -0600 asked a question Plot of linear programming restrictions 2d, 3d

Is there a way automatical plot the restiriction and the solution. I know how to plot them by hand. Is there an automatical graphical solution included?

2018-12-04 09:28:23 -0600 asked a question numerical_approx()

from sympy.solvers import solve

from sympy import Symbol

x = Symbol('x')


How its possible to use numerical_approx() on this this solutions is not working,



also not

2018-11-28 14:15:19 -0600 asked a question Haskel or Dr.Racket

Is it possible to set up Haskel or Dr. Racket in the cocalc/sagemath.

2018-11-16 13:44:33 -0600 asked a question COCALC c++ clang Errors

Whatever this means:

/WEEK1$ g++  hello.cpp
/WEEK1$ clang hello.cpp
/tmp/hello-e918fc.o: In function `main':
hello.cpp:(.text+0xa): undefined reference to `std::cout'
hello.cpp:(.text+0x24): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
/tmp/hello-e918fc.o: In function `__cxx_global_var_init':
hello.cpp:(.text.startup+0x13): undefined reference to `std::ios_base::Init::Init()'
hello.cpp:(.text.startup+0x19): undefined reference to `std::ios_base::Init::~Init()'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
~/WEEK1$ g++  hello.cpp -o hello
~/WEEK1$ ./hello
Hello World~/WEEK '

g++ complier works clang compiler not