Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Nice! - smarter than wikipedia :() Commented 20 hours ago
  • @cls ;-) The initial version of my answer used subsn() as in OP in \xintNewFloatExpr but I have realized since this is inefficient because the value of "h" in terms of "x" will be recalculated at each occurrence of "h" in a power "h^2", "h^3", etc... The new version uses \xintdeffloatfunc for a two-variable function as auxiliary. Commented 20 hours ago
  • update: the problem with subsn() is also there if one uses it inside \xintdeffloatfunc it is not only with \xintNewFloatExpr. Looks like an intrinsic limitation of xint regarding to this subsn() thing ! Used directly it makes the substitution but inside a function it does not know to compute only once the substituted value... probably an issue to raise with xint maintainer. Commented 20 hours ago
  • 1
    Just one very important correction: The \mathrm{d}t should not be part of the exponent. Commented 17 hours ago
  • 1
    @jps oops thanks a lot! Never could complete my calculus education... Commented 17 hours ago