Scott03

784 Reputation

10 Badges

19 years, 257 days

MaplePrimes Activity


These are answers submitted by Scott03

The first problem is that the ExeclTools[Export] function is looking for an rtable as the first field not a list of numbers.  So if you just take the first plot output you should be able to do something like the following:

> results:=convert(op([1,1],data),Matrix);
> with(ExcelTools);
> Export(results, "C:\\Users\\Suresh\\Documents\\Box Models\\test1.txt");

One possible problem on combining all the columns into one matrix is that there is no guarentee that all the x values for each of the plots are the same.

 

Scott

If H85 is one of the plots, you can get the data from that plot by entering something like

op([1, 1], H85);

 

Scott

First you would create a system of equations for your system:

sysEq := diff(Vp(t), t) = -Ip(t)/Cp, diff(Vs(t), t) = (Ip(t)-im(t))/Cs, diff(Ip(t), t) = (Vp(t)-Vs(t))/Lp, diff(im(t), t) = Vs(t)/Lm;

Then you need to add your initial conditions

init := Vp(0) = 0, Vs(0) = 0, Ip(0) = 1, im(0) = 1;

I have subed in A=1 just to allow dsolve (the next step) to be able to solve.  Now to get a solution, try

sol:=dsolve({sysEq,init}):

Now to get the solution for Ip(t), just run the following

eval(Ip(t),sol);

Of course, if you know what Cp, Cs, Lp and Lm is, the solutions will look a lot smaller.

 

-Scott

If you create a proc of the part of code from the definition of r and ending with the plot statement, you can use the suggestion quite easily.

Just look at the attached file as an example.

View 185_SliderPlotUpdate.mw on MapleNet or Download 185_SliderPlotUpdate.mw
View file details

 

Scott

Is this what you are looking for?

> eq := 2.5665*x+3.79094*x^2+3.52723*x^3+2.1137*x^4+.76839*x^5+0.911e-1*x^6-0.76e-1*x^7 = x*(a0+a1*x+a2*x+a3*x^3)^(13/9)/(c0+c1*x+c2*x^2+c3*x^3+c4*x^4):

> solve(eval(eq, x = 1.14));

{a0 = a0, a1 = a1, a2 = a2, a3 = a3, c0 = -1.140000000*c1-1.299600000*c2-1.481544000*c3-1.688960160*c4+0.6285328768e-1*(a0+1.140000000*a1+1.140000000*a2+1.481544000*a3)^(13/9), c1 = c1, c2 = c2, c3 = c3, c4 = c4};

Since you only have 1 equation with 8 unknowns, it shouldn't be surprising you will not get a unique solution.  But you should be able to choose a number for a0,a1,a2,a3, c1, c2, c3, and c4 to get the corresponding c0 for that set.

 

-Scott
 

Try enter the following:

> x0 := 0; y0 := 0;
> plots:-implicitplot((x-x0)^2/1.75^2+(y-y0)^2/1.35^2 = 1, x = -5 .. 5, y = -5 .. 5, numpoints = 500);
 

 Scott
Maplesoft

Have you contacted Maplesoft Technical Support yet?

This comes up when a user sets thier system clock to the future then returns it to the present ( or if you have set your system clock to some point in the past).

Maplesoft Technical Support should be able to help you with this.

 

Scott

Hi Phil,

 

Could you give some information as to the version of Maple you are using?  I tried this using Maple 12.02 on a Windows XP and couldn't make any errors come up.

 

Thanks,

Scott
Application Developer
Maplesoft

If you don't mind having to add the help pages yourself, you can follow the steps found in the following help page in Maple 12

'worksheet,reference,addhelp'

 

All you need to do is create a help page in either .mw or .mws format (you can use the help page of 'help' as a template to do this) and just fill the topic and choose the help database to add this help to.

 

Scott
Application Developer
Maplesoft

When you press the !!!, Maple will execute everything that was executed before.  If you had gone to the next line without executing the Math, then it will not try to execute again until you press enter on the line.  You can go to the next line without executing what is on it by clicking the down arrow if you have lines after the current line or by pressing Ctrl+Shift+J (also done by going to Insert > Paragraph > After cursor) which will add a line after the cursor.

To fix the case where some math was accidentally executed, I have seen removing the Document Block containing the Math to work.  In you case the easiest solution is to add a line after the current one, highlight the text and Math Input and drag it to the new line you just created (either before or after this line).  Once you have moved everything, you can delete the old line and make sure not to click enter on that line.

For you other question about needing to redefine variables each time, I would suggest just making sure that you click the !!! each time you open the worksheet.  You can set code to be executed automatically each time you or anyone opens the worksheet, but I find it may lead to unexpected results if you forget to assign a certain line as autoexecutable.

 

Scott

When you copy and paste the animation, I believe it gets copied as a WMF image or jpg image which doesn't animate (it is a static plot image).  If you want the animation to keep animating when you take it into wordpad, I would right click on the animation and export the animation as a gif file (which in this case is an animated gif).  That gif file can then be imported into you document.  I am not sure if wordpad can handle animated gifs but if it could, you would still have the animation.

 

Scott

Could you let us know what problems you are getting?  When I tried your code, the animation came out fine.  Please note that animations show up as the very first plot in the animation until you click on the plot and then click the play button from the toolbar at the top.

 

Scott

A quick bit of code to get the sequence you had in your example would be the following:

[seq(seq([i, j], i = 1 .. j-1), j = 2 .. 4)];

 

If you want to place this inside of a Maple table structure, you could call

Test := table([seq(seq([i, j], i = 1 .. j-1), j = 2 .. 4)]);

which would allow you to call

Test[2]

                    [1,3]

 

Another option is to us an array which would be something like the following:

Test2 := Array([seq(seq([i, j], i = 1 .. j-1), j = 2 .. 4)]);

Test2[2]

                 [1,3]

 

Scott

To get rid of the quotes you will need to run another parse over the result.  The following line will fix it

map(parse AA);

 

As for your other question you have asked a few times on how do people find out on these commands, you could check out both the User Manual and Introductory Programming Guide.  Both of these are available as pdfs on the Maplesoft.com website.  Personally I jsut go to the webpages and try to find examples that are solve a similar problem or could be changed to do what I want.

 

Scott

The first suggestion would be to contact Technical Support.  They may be able to help you faster if this is urgent.  Also, for this sort of question, it would be very important to know the operating system that you are trying to install on and possibly which installer you are using (especially if this is a Linux installation).

 

Scott

First 10 11 12 13 14 15 16 Last Page 12 of 30