{"title":"An algorithm for piecewise linear approximations","authors":"J. Pleasant","doi":"10.1145/503838.503851","DOIUrl":null,"url":null,"abstract":"An algorithm is described for approximating a function F(x) on a finite interval [a,b] whose second derivative is of constant sign on (a,b) by a continuous piecewise linear function, with any desired accuracy. Given a positive number ε, the algorithm finds a continuous piecewise linear functionL(x) = m<inf>i</inf> x + b<inf>i</inf>, x<inf>i-l</inf> ≤ × ≤ x<inf>i</inf>,i = 1,2 ...,nwhere a = x<inf>o</inf> < x<inf>l</inf> < ... < x<inf>n</inf> = b, such thatmax {|L(x) - F(x)|: x<inf>i-l</inf> ≤ x ≤ x<inf>i</inf>} ≈ = εfor i = 1,2,...,n-l, and|L(x) - F(x)| ≤ εfor x<inf>n-l</inf> ≤ × ≤ x<inf>n</inf>. In contrast to a method described by Phillips (1968), the derivative of F(x) is not used in the calculation of L(x). A computer implementation of the algorithm is discussed and an example of its use is provided.","PeriodicalId":431590,"journal":{"name":"ACM-SE 18","volume":"26 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1980-03-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM-SE 18","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/503838.503851","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1
Abstract
An algorithm is described for approximating a function F(x) on a finite interval [a,b] whose second derivative is of constant sign on (a,b) by a continuous piecewise linear function, with any desired accuracy. Given a positive number ε, the algorithm finds a continuous piecewise linear functionL(x) = mi x + bi, xi-l ≤ × ≤ xi,i = 1,2 ...,nwhere a = xo < xl < ... < xn = b, such thatmax {|L(x) - F(x)|: xi-l ≤ x ≤ xi} ≈ = εfor i = 1,2,...,n-l, and|L(x) - F(x)| ≤ εfor xn-l ≤ × ≤ xn. In contrast to a method described by Phillips (1968), the derivative of F(x) is not used in the calculation of L(x). A computer implementation of the algorithm is discussed and an example of its use is provided.