Ask Your Question

Revision history [back]

Is there a SageMath version of Mathematica's '//' shorthand?

If I had some expression x^2 + x^3 - 31 and I want to apply a previously defined function f to it, is there a quicker way of doing f(x^2 + x^3 - 31)?

I'm thinking along the lines of Mathematica's x^2 + x^3 - 31 // f, where // applies the function to the expression that precedes it.