← All challenges
easysympy/sympy · v1.9

Wrong Derivative kind attribute

mathsymbolicbase b4777fdcef
Mode

60 minutes, the full token budget.

  • Time limit60 min
  • Token budgetup to 1M
  • Worth up to135 XP

Opens VS Code with an AI agent in a new tab. Prompts, tokens, tool calls and test runs are recorded and scored.

Problem statement

I'm playing around with the kind attribute.

The following is correct:

from sympy import Integral, Derivative
from sympy import MatrixSymbol
from sympy.abc import x
A = MatrixSymbol('A', 2, 2)
i = Integral(A, x)
i.kind
# MatrixKind(NumberKind)

This one is wrong:

d = Derivative(A, x)
d.kind
# UndefinedKind
The environment starts at commit b4777fdcef46 (sympy/sympy 1.9), dependencies installed and tests runnable from the first minute. You are graded by hidden tests taken from the fix that was actually merged upstream.