Jump to content

Talk:Test functions for optimization

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Pasimi (talk | contribs) at 23:33, 9 December 2017 (Townsend constraints). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
WikiProject iconMathematics Start‑class Low‑priority
WikiProject iconThis article is within the scope of WikiProject Mathematics, a collaborative effort to improve the coverage of mathematics on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
StartThis article has been rated as Start-class on Wikipedia's content assessment scale.
LowThis article has been rated as Low-priority on the project's priority scale.

Townsend constraints

The reference says to constrain inside the curve defined by:

t = chebfun('t',[0,2*pi]);
x = 2*sin(t); y = 2*cos(t)-(1/2)*cos(2*t)-(1/4)*cos(3*t)-(1/8)*cos(4*t);

If you plug in t = 1, you get a point at (1.68, 1.62). Wikipedia's version says:

t = Atan2(y/x)

If you plug in x = 1.68, y = 1.62, you get t = 0.766, which does not match the original t. So I think this is incorrect. — Omegatron (talk) 05:00, 7 September 2017 (UTC)[reply]