Hello everyone,
there seems to be a bug in substitute:
var('k1 k2 k3')
f = (k1+k2)^2
f.substitute(k1+k2==k3)
gives k3^2 as expected.
var('k1 k2 k3')
f = (k1+k2)*2
f.substitute(k1+k2==k3)
gives 2*k1 + 2*k2. The same happens for +2 instead of *2.
Is there an alternative to do a substitution?
T
Hi everyone,
I just checked out one of first page in the "Constructions" page:
http://www.sagemath.org.nyud.net/doc/constructions/calculus.html
Just after the first example "Differentiation"
sage: var('x k w')
(x, k, w)
sage: f = x^3 * e^(k*x) * sin(w*x); f
x^3*e^(k*x)*sin(w*x)
sage: f.diff(x)
Hi,
I want to find the solution of a system of coupled differential
equations.
Therfore I need the eigenvalues and vectors of a matrix D and their
complex conjugates.
short example:
sage: D=matrix([[0,1],[-1,0]])
sage: EV=D.eigenvectors_left();EV
[(-1*I, [(1, 1*I)], 1), (1*I, [(1, -1*I)], 1)]
s
Hey,
is there an easy way to highlight the code somehow in the cell (maybe
with an add-on)?
This would be fantastic!
Greets,
Stefan
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email
Hi,
take a look at this...
http://www.scipy.org/Numpy_Example_List#head-12c005e9fff429abb657745defd2923dab55c62d
import numpy as np
a=np.array([[1,2],[3,4]])
b=np.array([[1,2],[5,6]])
a=np.append(a,[b[1]],axis=0)
a
Greets!
Stefan
On Nov 1, 3:28 pm, MaxTheMouse wrote:
> I should add the ref
Hi,
yesterday I installed the notebook 0.4 and since that I could not do
"Restart worksheet" in the "Action..." menu of the notebook. It just
remains in the "Restart worksheet" position.
This was with 4.1.2, but after installing 4.2, this hasn't changed.
Can anyone confirm?
Or do I have to do som
Oct 22, 10:37 am, Burcin Erocal wrote:
> Hi Stefan,
>
> On Wed, 21 Oct 2009 19:49:58 -0700 (PDT)
>
>
>
> Ichnich wrote:
>
> > Hi,
>
> > something does not work anymore in my notebook (with version 4.1.2
> > ubuntu 64bit):
>
> > var('a,b,c,I
Hi,
something does not work anymore in my notebook (with version 4.1.2
ubuntu 64bit):
var('a,b,c,I')
model(I)=a*I+b
model_exp = exp(I)**a*(b)
sol1_l={b: 5.0, a: 1.1}
model_sol1_l(I)=model_exp.subs(sol1_l)
The notebook hangs-up. It's critical on the parameter a, if you change
it to 1.0 it's o.