121616949-math.294

# 121616949-math.294 - allvalues solve(sin(x)=cos(x-1,x The...

This preview shows page 1. Sign up to view the full content.

280 Appendix A Introduction to Maple map(g,[-3,-2,-1,0,1,2,3]); map(g,{-3,-2,-1,0,1,2,3}); Using the ‘map’ operation and a function (not an expression) you can evaluate a func- tion on a list of values. The list can be en- closed in square brackets or in set braces— but notice the difference! The set braces produce a set as a result, meaning that re- peated values are shown only once, and the order does not necessarily correspond to the order of the input values. In general, the square bracket form is more useful. A.2.4 Solving Equations Maple will solve a limited class of equations exactly and a broader class approximately. solve(x^2-x-10=10,x); solve(x^2-x-20,x); solutions:=solve(g(x),x); solve(x^5+4*x^3-3*x^2+10,x); solve(tan(x)=x+1,x); allvalues(%); solve(tan(x)=x,x);
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: allvalues(%); solve(sin(x)=cos(x)-1,x); The solve command will give exact answers if possible, including complex answers. If Maple can’t solve an equation it may print nothing, or it may display the equation in a standard form, preceded by ‘RootOf’. You can ask Maple to attempt to evaluate roots displayed as a RootOf using allvalues . Maple will attempt to ﬁnd all solutions for an equation or a RootOf, but often will not succeed. Do not rely on the solve command alone when looking for solutions to equations—at the very least, you should graph your func-tions so that you know where roots appear to be. Note that if you give an expression instead of an equation Maple assumes that you mean ‘= 0’....
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern