Ask Your Question

Shouvik's profile - activity

2019-08-23 12:16:49 +0100 asked a question How to find the norm of a quaternion?

EDITī¸ ED: (never start with the code, always put the wanted question also in the posted question, not only in the title.)

N.<a1,a2,a3,a4,b1,b2,b3,b4,a,b> = QQ[]
H.<i,j,k> = QuaternionAlgebra(Frac(N),-1,-1)
p = a1 + a2 * i + a3 * j + a4 * k
q = b1 + b2 * i + b3 * j + b4 * k
r=(1-a-2*b)*(1-p*q+a*p)
r.norm()
2019-05-29 19:17:28 +0100 asked a question How to perform modulus in polynomial rings..

The following code i wrote in cocalc.com in sage sheet

x = PolynomialRing(RationalField(), 'x').gen()
a = PolynomialRing(RationalField(), 'a').gen()
b = PolynomialRing(RationalField(), 'b').gen()
f =a* x/(x+1)
g = b*x**3/(x+1)
g1 = f%g
print g1

It is giving error. My main objective is to find quotient and remainder.Thanks in advance.

2018-07-28 13:26:42 +0100 received badge  Editor (source)
2018-07-28 13:16:51 +0100 asked a question How to use dill python module in sage 8.1?

How to use dill python module in sage 8.1? OPERATING SYSTEM-WINDOWS 7 VIRTUAL BOX-ORACLE VM VIRTUALBOX

2018-05-16 19:10:35 +0100 asked a question is it possible to coerce a tensor field module and FiniteRankFreeModule?

M = Manifold(3, 'M') U = M.open_subset('U')
V = M.open_subset('V') M.declare_union(U,V); c_xyz.<x,y,z> = U.chart() c_uvw.<u,v,w> = V.chart() eU = c_xyz.frame() eV = c_uvw.frame() T= M.tensor_field_module((1,1)) N = FiniteRankFreeModule(ZZ, 2, name='N') T.coerce(N) It is giving error

2018-05-03 00:32:59 +0100 received badge  Student (source)
2018-05-02 16:02:11 +0100 asked a question Error regarding declaring tensor field in Sage

This is my code regarding declaration of tensor field for 3 dimensional differentiable manifold M = Manifold(3, 'M') U = M.open_subset('U')
V = M.open_subset('V') M.declare_union(U,V); c_xyz.<x,y,z> = U.chart() c_uvw.<u,v,w> = V.chart() eU = c_xyz.frame() eV = c_uvw.frame() t= M.tensor_field(1,1, name='t') t[eU,:]== [1,1] It is showing error as I cannot properly declare t.Any help is appreciated

2017-07-15 18:48:12 +0100 commented answer Problem regarding user input in Sage manifolds

thank you,its working

2017-07-15 18:47:42 +0100 received badge  Scholar (source)
2017-07-15 17:09:41 +0100 commented question Problem regarding user input in Sage manifolds

My operating system is windows and i am executing sage software 7.6 using sage manifold appliance (virtual box) My problem is t I am unable to take raw_input from user(just like python) for vector field on a 5 dimensional manifold. The code snippet is as follows M = Manifold(5, 'M') X.<a,b,c,d,e> = M.chart() v = M.vector_field(name='v') eU = X.frame() v[eU,:]=raw_input("enter a value") print v[0]

2017-07-15 13:28:59 +0100 asked a question Problem regarding user input in Sage manifolds

I am unable to take input from user in case of sage manifold,i am working in differentiable manifold.Especially,I am having problem to take input from user in case of vector fields(differentiable manifold) Any help is appreciated