This document discusses using SymPy, a Python symbolic mathematics library, to verify that the partial derivatives of the function f(x,y) = x*y^2*ln(x^2) are the same regardless of derivative order. It provides code to calculate all combinations of partial derivatives with respect to x and y using nested for loops over the variables, and check if they are equal to 2x + y. It also notes that log(x) is equivalent to ln(x) in SymPy.
1 of 2
Download to read offline
More Related Content
Py9 3
1. 1
‡øÁ¢ÖÐÑë´óŒW”µŒWϵ
? sympy Ì×¼þµÄ log(x) µÈͬ ln(x)
SymPy ÔÚ΢·e·ÖÉϵđªÓà : Á•î} 3
? ׫Œ‘³Ìʽòž×Cº¯”µ x ?? ln(??) Œ¦ x ƒÉ´Î΢·ÖÅcŒ¦ y
Ò»´Î΢·Ö£¬²»¹Ü΢·Öí˜ÐòÈçºÎ¶¼¿ÉµÃµ½Ò»˜ÓµÄ½Y¹û,
Ó¡³öÒÔϵÄÝ”³ö˜Óʽ: