SymPy Function Modification for Integer Division

Employer not named by the sourceRemote

Full Stack

Apply on the company’s site

Frontier is not the employer and does not collect applications.

About this role

PHP, Python, Software Architecture, Mathematics, Software Development, Programming, Scripting, Computer Science, Technical Documentation, Software Engineering · Modify Division Behavior in a Specific SymPy Function

I’m looking for an experienced Python/SymPy developer who can modify the mathematical calculation behavior inside one specific function.

I need division within this function to return only the whole number before the decimal point. For example:

10 / 3 → 3 7 / 2 → 3 9 / 4 → 2 10 / 5 → 2

Important requirements:

This behavior must apply only inside the specific function I provide, not globally to Python or SymPy. I cannot use floor(), modular arithmetic (%), or similar workarounds. I need the solution to use linear arithmetic so that the resulting expressions remain compatible with Eq() and my SymPy summation calculations. Using floor, modulo, or other non-linear operations currently produces expressions that cause problems when I use Eq() inside my summations.

I’m looking for someone who understands SymPy internals, symbolic mathematics, and Python’s calculation system and can implement this cleanly without affecting other calculations.

Please explain how you would approach making this change locally within the specific function.

This is an example of the script (it has similar functionality to my main script which is comp