Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can declare symbolic variable with specific type?

I know syntax to declare symbolic variable is

var('x')

What I want is associating type to this variable, say like var('x', type=float)

Can declare symbolic variable with specific type?

I know syntax to declare symbolic variable is

var('x')

What I want is associating type to this variable, say like var('x', type=float). Can we do it in Sagemath