Matlab function ppval delivers strange results -


The matlab function MKPP / Pipal allows the creation of a piece-piece polynomial function y (t) = t For the quoted = 0.7 correct result y (0.7) = 0.7, if the range is set to [0], if the range is expanded then the [-11] result should be the same. MATLAB version: 8.3.0.532 (R2014a)

MATLAB license number: demo operating system: Mac OS X version: 10.9.5 Make: Matlab value 1.7

MATLAB Version: 13 F 34

Java version: Java 1.7.0_11-B21 with the Oracle Corporation the value of Java HotSpot (TM) 64-bit server VM mixed mode

 % In the section [0 1] y = pawvail (mkpp ([0 1], [1]), 0.7)% y (0.7) = 0.7% in section [1 -1]% result should be equal y = ppval ( Mkpp ([- 1 1], [1]), 0.7)% y (0.7) = 1.7 how can ???    

mkpp from the document, mkpp ( [AB], [CN ... C1C]] Polynomial CN * (xa) represents ^ n + ... + c1 * (xa) + c; in other words, the second In argument, coefficient of coefficient in a polynomial is coefficient rather than multiparty in X.

So, in your case, your fragmented polynomials actually explain x - (- 1) = x + 1, giving you 1.7 results.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -