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
Logical Vectors: The relational operators can also be used with the vectors and matrices. For illustration, let's say that there is a vector, and we want to compare each eleme

Illustrations of Variable number of output arguments: In the illustrations shown here, the user should actually know the type of the argument in order to establish how many va

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

Referring to and Modifying the Matrix Elements: To refer to matrix elements, the row and then the column indices are given in parentheses (always the row index initially and t

Pie chart - plot functions: The MATLAB also has a function pie which will generate a pie chart. Calling the function with the form pie (vec) draws a pie chart, by using the pe

Three-dimensional pie and bar: For the bar3 function, x & y vectors are passed and the function displays three-dimensional bars as shown in figure: Figure: Three-dimen

Plot Functions: Faraway, we have plotted to generate two-dimensional plots and bar to generate bar charts. We have seen how to clear the Figure Window by using clf, and how to

sprintf function: The sprintf function works precisely like the fprintf function, but rather than printing it generates a string. Here are some illustrations in which the outp

Give the formula for a rational function that has a hole at x=7 & vertical asmptote at x=-3/2

Changing Dimensions: In addition to transpose operator, the MATLAB has some built-in functions which change the dimensions or configuration of matrices, involving fliplr, resh