Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unpacking doesn't work for defining a function

I want to define a fonction of n parmeters who gives $a R/(a+b)p_x$.

If I construct the tuple of variable :

vard = var('a, b, p_x,p_y, R')

I was expecting that

Dx(*vard) = a R/(a+b)p_x

would be understud by Sagemath since *vard unpacks the tuple. But obviously it's not the case. Where am I wrong ?