Legendre Transformation of a one variable function

Version 1.0.0.0 (1007 Bytes) by Miguel D. B.
Given a function F and a vector x, returns two vectors of numbers xx=F'(x) and yy=F(x)-x*xx
1.5K Downloads
Updated 31 Jul 2006

No License

[xx,yy]=legendretrans01(F,x,h,varargin)
Given a function F and a vector x, the corresponding points of the legendre
transformation are numerically approximated and stored in the vectors xx and yy, where
xx=F'(x) and yy=F(x)-xx*x
If F is not defined for vectors, a loop is used to evaluate it at each point on x

F'(x) is approximated by centered finite differences

Cite As

Miguel D. B. (2026). Legendre Transformation of a one variable function (https://www.mathworks.com/matlabcentral/fileexchange/11822-legendre-transformation-of-a-one-variable-function), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R11
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0