Ask Your Question

Captcha's profile - activity

2019-03-15 02:19:27 -0500 asked a question How to get rid of the Error Message for calling a text file in SageMath

I want to input a matrix from a text file and run it in SageMath. The name of the file is Matrix.It is located in the D-drive and it contains a square matrix of order 4.

I changed the the name of the file from Matrix.txt to Matrix.sage. I then wrote load('Matrix.sage');

But I got an error message which read

Traceback (click to the left of this block for traceback) ... IOError: did not find file 'Matrix.sage' to load or attach

Is it possible for Sage-Math to take input a matrix which is stored in a Text File? Can someone kindly comment?

Note:I want to input the matrix from the text file and find its determinant in SageMath.

2019-03-14 05:26:56 -0500 asked a question How to input in SageMath from a Output of a C-Program

I am using Sagemath. I have the following query:

I want to find the determinant of a given matrix A. I know it is possible to input the matrix A as A=matrix([[1,3],[3,4]]) and then calculate its determinant as A.determinant()

But I want to calculate determinant of a matrix in the following way:

The matrix A is generated by a C-Program.So I have a C-Program which is Matrix.c and its corresponding output file Matrix.exe. I want to use the matrix A generated from the Program in Sagemath and find its determinant.

Is it possible to input in Sagemath from a output file of a C Program?

I need some help.

2018-08-29 06:40:14 -0500 received badge  Editor (source)
2018-08-29 06:37:14 -0500 asked a question How to find non-trivial solution of the system in SageMath??

I want to solve a matrix equation in SageMath.

I have this matrix

$M=$ \begin{bmatrix}









I have found that det(M)=0 so there exists a non-trivial solution to $MX=0$

I want to solve the equation $MX=0$ but when I solve it in Sagemath I only get the solution $X=0$

How to find non-trivial solution of the system in SageMath??

Please help.

2018-03-18 14:12:08 -0500 received badge  Student (source)
2018-03-18 14:07:06 -0500 asked a question How to draw figures of Polygons in SageMath

I want to draw a picture of a polygon in SageMath which will be unfilled i.e I want to draw figures of triangle,square,pentagon,hexagon and so on and then draw a figure with say 100 sides.

I checked the web.

I only found plots of 3d figures ,I want 2d figures .

Is it possible to draw such a figure in SageMath.

Please help me

2018-02-27 10:17:14 -0500 asked a question How to write the given program in sage

I am new to sage. I have learned the basics of sage programming from various online notes.

I am interested to apply sage in linear algebra and graph theory.

My problem is I want to draw a graph as follows:

Vertices : Subspaces of a vector space of dimension $n$.

Edges: $V_1V_2\iff V_1 \subset V_2$ or $V_2\subset V_1$.

Please don't give me the solution.

Please help me how to write it step by step or give some resources from where I can find this.