ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 19 Apr 2021 12:00:41 +0200Differential operatorhttps://ask.sagemath.org/question/56728/differential-operator/Assuming:
f(x) = 3*x
g(x) = 4*x
m = matrix([[f],[g]])
Is it possible to define L as:
L M
[d/dx] * m = [3]
[4]
?zannasMon, 19 Apr 2021 12:00:41 +0200https://ask.sagemath.org/question/56728/Evaluation of logical compound expressionshttps://ask.sagemath.org/question/52483/evaluation-of-logical-compound-expressions/ sage: foo=sin(x) > 0 ; foo
sin(x) > 0
sage: bar=cos(x)>0 ; bar
cos(x) > 0
I do not understand this :
sage: foo and bar
sin(x) > 0
sage: foo or bar
cos(x) > 0
As long as `x` has no value, these expressions can't be evaluated or simplified. Could some kind soul enlighten my confused mind ?Emmanuel CharpentierWed, 15 Jul 2020 23:38:13 +0200https://ask.sagemath.org/question/52483/Evaluation of logical expressionshttps://ask.sagemath.org/question/52482/evaluation-of-logical-expressions/ sage: foo=sin(x) > 0 ; foo
sin(x) > 0
sage: bar=cos(x)>0 ; bar
cos(x) > 0
I do not understand this :
sage: foo and bar
sin(x) > 0
sage: foo or bar
cos(x) > 0
As long as `x` has no value, these expressions can't be evaluated or simplified. Could some kind soul enlighten my confused mind ?Emmanuel CharpentierWed, 15 Jul 2020 23:29:30 +0200https://ask.sagemath.org/question/52482/How to create a loop with two variables?https://ask.sagemath.org/question/25383/how-to-create-a-loop-with-two-variables/I have defined the following functions:
def I(x):
return 1
def Moebius(x):
return sum(moebius(i) * I(x*i^(-1)) for i in range(1,x+1))
The output is of course Mertens function. How do I turn `Moebius(x)` into an operator, so that I can define `Moebius^2(x)` as the Moebius transform of the output?
Kevin SmithSat, 03 Jan 2015 12:55:13 +0100https://ask.sagemath.org/question/25383/I am a total newbie (and don't apologize for it!) What does the operator "lambda" do? What does it mean?https://ask.sagemath.org/question/25264/i-am-a-total-newbie-and-dont-apologize-for-it-what-does-the-operator-lambda-do-what-does-it-mean/ I am a total newbie (and don't apologize for it!) What does the operator "lambda" do? What does it mean?cltho2Sun, 14 Dec 2014 05:04:11 +0100https://ask.sagemath.org/question/25264/