Ask Your Question

Kamel's profile - activity

2020-12-09 04:03:22 +0200 received badge  Famous Question (source)
2020-12-09 04:03:22 +0200 received badge  Notable Question (source)
2019-05-25 16:05:47 +0200 received badge  Popular Question (source)
2017-11-07 18:37:45 +0200 commented answer how to use variables in a matrix ?

ok, thanks.

2017-11-07 18:37:14 +0200 answered a question how to use variables in a matrix ?

ok, thanks.

2017-11-07 13:48:14 +0200 received badge  Student (source)
2017-11-07 13:34:57 +0200 asked a question how to use variables in a matrix ?

Hello,

this code below doesn't do what I expect.

var('x'); M(x) = matrix(2, 2, [x,x,x,x]); M(3)

Can someone tell me what to do please ?

2014-06-29 21:45:42 +0200 received badge  Popular Question (source)
2014-06-29 21:45:42 +0200 received badge  Notable Question (source)
2013-10-15 17:12:51 +0200 received badge  Supporter (source)
2013-10-09 10:14:34 +0200 answered a question Difference Between Constants and Variables

I am not sur it answers the question :

def dependance(f):
    dep = []
    for var in variables:
        if diff(f, var) != 0:
            dep.append(var)
    return dep

variables = var('x y z')
constants = var('A B C')

f = A*x + z^2/B + C
print dependance(f)

It returns [x, z].

2013-10-08 12:52:51 +0200 asked a question simplify integrate

Hi,

I would like to calculate this double integral with Sage

var('x y') ; var('a b')
f(x, y) = 1/(x^2 + y^2 + 1)^(3/2)
assume(b > 0) ; assume(a > 0)
val(a, b) = integrate(integrate(f(x,y),y,0,b), x, 0, a) ; val(a, b)

I think the result is atan(a*b/sqrt(a^2+b^2+1)) but instead Sage says b*integrate(sqrt(b^2 + x^2 + 1)/(x^4 + (b^2 + 2)*x^2 + b^2 + 1), x, 0, a)

How could I simplify it ?

Thanks.