Let's consider the function f(x)= tan(x)- x and its root in the interval (Pi/2,3*Pi/2)

Firstly, we zoom the intersection point of the function with g(x)= tan(x) and h(x)= x ( or the function f(x) and the Ox axis):

plot([tan(x),x], x= 4.3..4.55, gridlines=true);

Now, we use the Newton-Raphson method to reach the root, like this:

Hi,

I've been working with Maple lately for my thesis, mainly running numeric solutions for my model.

I have a question regarding the loop command.

Using Fsolve I want to solve non-linear equations for several variables given some parameters. What I want to do is to plot the solved variables for changes in one of the parametrs.

for example, suppose I want to show, on 2 separate graphs, the oprimal (solved) variables of x and z, against changes in the parameter y for these two equations:

If I have a function of R. I want to find out if there is an R value for which the function is positive.

And if possible, what that R value is. I graphed the function for a whole bunch of ranges of R values, but there's only so much I can do with graphing.

This is somewhat similar to command in MATLAB "isreal(p)" which returns true if p is a real number and false if p is imaginary, but instead I want to know if the function is positive for ANY values of R.

A string with a lead ball of mass m is slowly pulled upward through a small hole. Consider the work done on the system during this process. Find the change in energy and the frequency of this pendulum during this "adiabatic process", assuming the amplitude of the pendulum to be small.

Sorry I don't have a picture.

(Imagine the situation of the wire holding the chandalier in your home being slowly pulled up through a small hole through the roof while it is slowly oscillating in one dimension, or in a single plane.)

If I have a polynomial in terms of x, is it possible to extract the coefficient of x^2 easily (without copying and pasting)?

The coefficients of the polynomial are large and ugly and not worth typing out.

If there's no command for getting the coefficient, perhaps I could map my polynomial (which is, say, P=ax^3 + bx^2 + cx+d) to a vector space where x^3 = (1, 0, 0) = v1, x^2 = (0, 1, 0 ) = v2, x = (0,0,1) = v3 and P = av1 + bv2 + cv3 + d. And then the coefficient of b would be the dot product of P with v2. But I don't know how to do this either!

August 29 2008
si37 12
Hi

I am quite new to Maple and to these forums so please be gentle with explanations! I have a series of procedures which i would like to save as a package so that when i open a new worksheet i can type with (...) and all the little programs will be loaded. How do i do this?

When I open my file I get this message....What does it mean??? Why it appears?

I don't know if it's clear, but what I want is write a formula ...And I'd like it to treat it as Text not math (I don't want Maple to execute it, of course appears an error message if so)

I looked over the FAQ's and I was not doing anything wrong according to them but I have tried graphing all of the following and got blank graphs as a result every time. I am using Maple 12 on Mac OSX Leopard 10.5.4.
plot3d((2*x^2+y^2)*e^(1-x^2-y^2), x = -1 .. 1, y = -1 .. 1, axes = normal, scaling = constrained, numpoints = 10000)
implicitplot3d((2*x^2+y^2)*e^(1-x^2-y^2), x = -10 .. 10, y = -10 .. 10, z = -10 .. 10, axes = normal, scaling = constrained)
implicitplot3d((z = 2*x^2+y^2)*e^(1-x^2-y^2), x = -10 .. 10, y = -10 .. 10, z = -10 .. 10, axes = normal, scaling = constrained)

I need to be able to enter number line plots into MapleTA questions and answers; I have found no built-in functions to do so, and as such have created my own crude Maple function for drawing them piece by piece. However, this function is a bit longer and uglier than I would like to see replicated in every single question that uses it, so I was hoping to have questions share this function between them, hopefully in the form of a module or library, eventually with a variety of such functions, which I can maintain in one central location.

I have a worksheet saved, but if I try to continue where I left off, Maple has forgotten what all the variables mean and what their values were.

It's not like I have to retype everything - the commands are still there - but I have to press enter about a hundred times to reenforce what the meanings of all the variables were.

Is there a way to save it in such a way that you don't lose such information?

**
**

**This is what I ve to solve...It's simple!And it works, but if I write:**

**
**>fsolve({2*x + y = 1, x - y = 2}, {x, y});

>y;

it writes y and to the value that solve the sistem!Did you understand?How can I do it?

>fsolve({2*x + y = 1, x - y = 2}, {x, y});

I must say I am pretty dissapointed by the fact that TA4 still has a lot of very basic, obvious bugs and suboptimalities which I would have thought were clearly apparent in TA 3 and could surely have been corrected. For example:

(1) $a=0; $b=$a; sets $b = -0

(2) $c=frac(-2,-1) sets $c = --2

Hi,

I have the following (simplified here) formula:

G = ∫∫ g dp (n * dr)

The last part "(n*dr) is actually a dotproduct. How do I put this in Maple? Usually you use something like "G:=Int(Int(g dp (n), p=0..1), r=0..1) but than I don't have a dotproduct between "n" and "dr".

Tim