gkokovidis

2370 Reputation

13 Badges

20 years, 292 days
Draeger Medical Systems, Inc.

 

 

Regards,
Georgios Kokovidis
Dräger Medical

MaplePrimes Activity


These are answers submitted by gkokovidis

Take a look at the following link 

www.mapleprimes.com/forum/use-chebyshev-approximation-for-curve-fitting

and see if it answers your question.

If you execute the code given by Robert Israel, you will need an extra closing parentheses at the end of the statement that begins with p:=subs....  It should look like this:

 >p:= subs(%[2],add(c[i]*x^i, i=0..3));

Regards,
Georgios Kokovidis
Dräger Medical

It works just fine with Maple 11.  The problem you are having is that there is a library associated with the files, and you are not reading it.  

On my WinXP machine, I unzipped the files into  C:\temp\Maple\Precalc

When you look at the directory, you will see all the .mws files and two other files called maple.ind and maple.lib

When I open the first worksheet, after the restart statement, there is a path statement.  For the directory that I used above, I modified the libname line to look like this:

libname:="C:\\temp\\Maple\\Precalc\\", libname:

Now everything works as advertised.

 Another option is to add the library path name into your Maple.ini file.  The method above is easier if all you want to do is execute the worksheets. 

Regards,
Georgios Kokovidis
Dräger Medical

Later Edit.  I got it wrong the first time.

The function you are looking for is called "map".  Take a look at the help pages, and see if this will do it for you.

>?map

>F:=map(x->f(x),X);

 

Regards,
Georgios Kokovidis
Dräger Medical

Take a look at the help pages.

>?dsolve/series

There are plenty of examples. 

The web page below from U Texas has some examples as well, with overlaying plots to compare a series solution with a general solution.  The series solution will depent on the number of terms, that are set using the "Order" option.

www.ma.utexas.edu/wiki/index.php/MathSoftware/Maple

 

Regards,
Georgios Kokovidis
Dräger Medical

Try the following lines of code and take a look at the output.  Then see if you can adapt it to your example.

>restart:

>solve( 2*y - (x - 1)^2 = 2, y );

>assign(f,%);

>f;

>restart:

>f:=solve( 2*y - (x - 1)^2 = 2, y );

>f;

 

Regards,
Georgios Kokovidis
Dräger Medical

The example that is used in the help file has an output that can not be further simplified.  Your particular example can be further simplified and Maple does just that.  Take a look a modified version of the example in the help file to convince yourself that the "isolate" function is doing what is advertised.

> isolate(2*x*sin(x)=14,sin(x));

Here you would expect it to return 14/(2*x) but you get 7/x.

>isolate(2*x*sin(x)=15,sin(x));

Here you get  15/(2*x).

This does not answer your question directly.  I just want to illustrate that the command "isolate" is doing the right thing.  What you are looking for is a delay in the simplification of the output.  I have seen it here, but I can't remember off the top of my head how to do it.  Maybe someone else can refresh my memory.

 

Regards,
Georgios Kokovidis
Dräger Medical

You can export a worksheet as HTML with the associated animations as images stored as "gif' files, which will reside in a subdirectory under the main directory that you export the file to.   Then you can send the html file with the folder attached that has the "gif" images in it.

 Later edit:  Robert's method above is much simpler.  Just right click on the image, and export as "gif".

Regards,
Georgios Kokovidis
Dräger Medical

ArrayTools and Statistics are new packages built into Maple 10 and Maple 11.  You can not download these.  You need to upgrade your version of Maple.  For Maple 9, you can visit the Maplesoft web site and browse some of the applications that are avialable.  These you can download and run.  Some are for newer versions of Maple, so they might not work with Version 9, but there are quite a few that will.

You will need to register yourself to have access to these applications and to download.

www.maplesoft.com/applications/index.aspx

 

Regards,
Georgios Kokovidis
Dräger Medical

The error message has to do with the Greek character "Psi".  I changed it to "Phi", because they almost look similar, to test the code.  The error message went away.  Psi is known internally by Maple as the Digamma and Polygamma function.  That's why you were getting a complaint about a function.

 

With all that said, the problem is still not solvable by , given the range of your solution ranges for your variables.  You can try changing the ranges to see if you get an answer.

 

Regards,
Georgios Kokovidis
Dräger Medical

See examples below.  Run the lines to see what happens.

 

>restart:with(plots): 

>plot([Pi/2,y,y=-10..10]);

>plot([2,y,y=-10..10],color=blue);

>p1:=plot([Pi/2,y,y=-10..10]):


>p2:=plot([2,y,y=-10..10],color=blue):


>display(p1,p2);
 

Regards,
Georgios Kokovidis
Dräger Medical

You can implement type checking, and if the limit at a value approaches infinity, you can ignore it in your plot.

>p:=x->tan(x);

>q:=D(p);

>r:=limit(q(x),x=Pi/2);

>type(r,infinity);

 

Don't forget that you are only checking the above at one particular value.  tan(x) has an infinite number of asymptotes, in intervals of Pi.  x = -1/2*Pi, x = 1/2*Pi, x = 3/2*Pi...

 

Regards,
Georgios Kokovidis
Dräger Medical

When I see these types of problems and execute them using the Classic Interface, and I get the correct response, I assume the problem has to do with the Standard Interface.  Even when I do use the Standard Interface, I have it set up so that the default input method is 'Maple Input" and not 2-D math.

 

Regards,
Georgios Kokovidis
Dräger Medical

>restart:

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

This yields the familiar formula from the text.

You can also save your worksheet and upload it so that we can have a look.  I am using the Classic Interface.  Maybe this has to do with the Standard Interface and 2-D math. 


Regards,
Georgios Kokovidis
Dräger Medical

I don't know if this will "verify" that an equation exists, but it is the function that is used to trigger error messages, similar to what you get when you try to take the tangent of Pi/2.  Look at the help pages for "NumericEvent" and see if you can integrate it into you procedure.  

>? NumericEvent

The above command is used many times in the "tan" function call.  To view the code that the tan function uses, type the following:

>showstat(tan);

You can use showstat to display the Maple code for most of the functions that Maple uses internally.  Hope this helps.

 

Regards,
Georgios Kokovidis
Dräger Medical

Attached file.  I removed some of your comments from the original, because they were wrapping to the next line and causing error messages.  Otherwise, your original code is intact.  Once you have access to Maple again, you might want to look into the code generation tools.  It might save you some time.

Download 221_8295_1204611281.txt
View file details
 

 

Regards,
Georgios Kokovidis
Dräger Medical

First 47 48 49 50 51 52 53 Last Page 49 of 75