Example of symbolic expression, MATLAB in Mathematics

Example of Symbolic Expression

When there is more than one variable, the MATLAB selects which to solve for. In the illustration below, the equation ax2 + bx = 0 is solved. There are three variables. Since it can be seen from the result, that is given in terms of a and b, the equation was solved for x. The MATLAB has rules built in that to identify how to select which variable to solve for. For illustration, x will always be the first preference if it is in the expression or equation.

>> solve('a*x^2 +  b*x')

ans =

        0

 -b/a

Though, it is possible to identify which variable to solve for:

>> solve('a*x^2 +  b*x','b')

ans =

-a*x

Posted Date: 10/22/2012 6:47:27 AM | Location : United States







Related Discussions:- Example of symbolic expression, Assignment Help, Ask Question on Example of symbolic expression, Get Answer, Expert's Help, Example of symbolic expression Discussions

Write discussion on Example of symbolic expression
Your posts are moderated
Related Questions
This project requires you to use the ideas of Chapter 25 regarding maximization of a function. Here we assume that evolution has acted to generate highly efficient foragers. By hig

Labels and Prompts: The script loads all the numbers from file into a row vector. It then splits the vector; it stores the initial element that is the experiment number in a v

Three-Dimensional Plots: The MATLAB has many functions which will display three-dimensional plots. Most of these functions have similar name as corresponding two-dimensional p

Differentiation: The derivative of a function y = f(x) can be written as follows or f  '(x) and is defined as the rate of change of the dependent variable y with respe

Recursive Functions: The Recursion occurs whenever something is defined in terms of itself. In the programming, a recursive function is a function which calls itself. The Recu

The variance is generally defined in terms of the arithmetic mean as: At times, though, the denominator is defined as n instead of n - 1. The default definition used by t

Illustration of Standard Deviation The less spread out the numbers are, therefore smaller the standard deviation will be, as it is a way of determining the spread of the data.

User-defined functions: Therefore, although many functions compute and return values, some do not. A few functions rather merely accomplish a task. Regardless of what type of

Illustration of Advanced file input and output: For illustration, to refer to the third number in the first element of the cell array: >> subjdata{1}(3) ans =

Types of User-defined Functions: We know how to write a user-defined function, stored in an M-file, which computes and returns one value. This is merely one type of the functi