It seems you typed "deff" not "diff". Jason moorepants.info +01 530-601-9791
On Thu, Feb 20, 2025 at 3:25 AM 'nils Frank' via sympy < [email protected]> wrote: > Hallo, > Hat jemand eine Idee wie man die folgende Matrix definieren muss damit man > Sie nach t ableiten kann? > > *Ich habe Folgenden Code geschrieben und es funktioniert nicht mit " > .diff(t) "* > > > > > > > > > > *import sympy as spa = sp.Symbol("a")t = sp.Symbol("t")l = > sp.Symbol("l")phi = Function('phi')(t)from sympy import > *init_printing(use_unicode=True)* > > > *r_0p = Matrix([l*sin(phi), a*cos(2*phi)+3*t**2, 0])r_0p* > > ich möchte nun r_0p nach t ableiten > der Daten Typ der Matrix wird als *"sympy.matrices.dense.MutableDenseMatrix" > * > > wenn versuche ich, wie folgt, die Matrix nach t abzuleiten > > *(r_0p_deff = r_0p.deff(t)* > *r_0p_deff* > > Kommt der Fehler > *AttributeError: 'MutableDenseMatrix' object has no attribute 'deff' * > > > > Bei dem Folgenden Code funktioniert es, auch wenn ich hier die Bedeutung > der inneren Klammern bei der Ausgabe nicht verstehe. > > > > *a = Matrix([x*y,z,4*y])a* > > > *type(a)* > > *= sympy.matrices.dense.MutableDenseMatrix* > > > > *# leitet die Matrix aba_diff = a.diff(r)a_diff* > > hat jemand eine Idee?? > > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/sympy/39e25bce-8538-44a1-8f15-9b2e6286e25an%40googlegroups.com > <https://groups.google.com/d/msgid/sympy/39e25bce-8538-44a1-8f15-9b2e6286e25an%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/sympy/CAP7f1Ai1w0yCUJ7hvVyAzdQ0sXC_BfUqsQwZF2HGjOE2%2BKh0aA%40mail.gmail.com.
