
You can generate MATLAB functions, Simulink function blocks, and Simscape equations directly from symbolic expressions. You can share your symbolic work with other MATLAB users as live scripts or convert them to HTML or PDF for publication. Your computations can be performed either analytically or using variable-precision arithmetic, with the results displayed in mathematical typeset. You can perform dimensional computations and conversions using SI and US unit systems. Symbolic Math Toolbox lets you analytically perform differentiation, integration, simplification, transforms, and equation solving. The toolbox provides functions in common mathematical areas such as calculus, linear algebra, algebraic and ordinary differential equations, equation simplification, and equation manipulation. You can create, run, and share symbolic math code using the MATLAB Live Editor. Symbolic Math Toolbox provides functions for solving, plotting, and manipulating symbolic math equations. The tradeoff will then be between number of terms and complexity in the range reduction.Название: Matlab Symbolic Math Toolbox User’s Guide The Symbolic Math Toolbox uses symbolic objects to represent symbolic variables. Internally, a symbolic object is a data structure that stores a string representation of the symbol. But you may choose a larger interval, just accepting a few more terms in the series. The Symbolic Math Toolbox defines a new MATLAB data type called. For example, if you do range reduction to +/-pi/4, the series will converge much faster yet. In fact, there are some simple tricks to further reduce the domain of interest. You just need to take a few more terms for the larger domain. For example, if you look at the series for sin(x). You will first need to decide if you can get satisfactory convergence over that interval, with a reasonable number of terms.


That suggests you can do this: Xhat = mod(x,2*pi) - pi Ĭan you do better? Well, yes. You can pretty easily deal with that, since you would have this identity: sin(x - pi) = -sin(x) Developed by MathWorks, MATLAB allows matrix manipulations, plotting of functions and. The Taylor series for the sine function will converge better if Xhat lives in the range [-pi,pi), instead of [0,2*pi). MATLAB (matrix laboratory) is a numerical computing environment and fourth-generation programming language. Where does Xhat live, as compared to x? What do you know about sin(Xhat), as compared to sin(x)? If you are not sure, try some values! Play around.

What does this do for you? Xhat = mod(x,2*pi) But that would be wild overkill for basic homework.) (Note: you might decide to read how I coded trig functions in my HPF toolbox.
