# Is there a function in SageMath that gives the actual size of a variable not of a pointer to the variable? I used "getsizeof" function but the size it showed is very small comparing to the long of the equation is.

I used "get sizeof" function in order to provide me with the size of equations that are stored in the memory, but the size it provided is not reasonable comparing to the length of the equations.

Please provide an actual code illustrating the question.

.

I am looking for alternative command of "getsizeof" as it is not measuring the actual size of my functions P. it gives all functions have same size 56 bytes which it can't be as there length are different

FWIW, the same thng happens on Python.