Scott03

784 Reputation

10 Badges

19 years, 234 days

MaplePrimes Activity


These are answers submitted by Scott03

If you are using the pointplot function with the axis option and specify the mode as log.  One example is the following:

plots:-pointplot([[0, 1], [1, 110], [3, 50], [4, 3000]], color = [red, green, black, blue], axes = boxed, axis[2] = [mode = log]);

Scott

One other option to get this to show up in both cases is to add the option for axes=frame.  So your comands will look like this:

Ex1:  plot(1/(3+exp(x)), x = 0 .. 10, labels = ["x", "y"], axes=frame);

Ex2:  plot(1/(3+exp(-x)), x = 0 .. 10, labels = ["x", "y"], axes=frame);

-Scott

I am not sure waht you mean by "too much space" but you should be able to save these profiles by using the FileTools[Text][WriteString] command.  Taking the example form the PrintProfiles page, the following will work:

>a := proc(x)
    if (x > 1) then
        return 1;
    else
        return 0;
    end if;
end proc:
> with(CodeTools[Profiling]):
> Profile(a):
> a(1):
> FileName := "C:\\Test\\MyProfile.txt":
FileTools:-Text:-WriteString(FileName, PrintProfiles(a, output = string)):
FileTools:-Text:-Close(FileName):
 

-Scott

If you want to apply the derivative function onto each term of the Vector you could try something like

   map(diff,r(t),t);

In Maple 13 you can also simplify this down to

diff~(r(t),t);

 

Is this what you are looking for?

-Scott

If you want to add two vectors of the same size, try using LinearAlgebra[VectorAdd].

-Scott

One possible solution for this problems that will work for any version of Maple are either of the following:

M := Vector([2,2,2,2,2,2,2]);

N:=100;

map2(`+`,N,M);

 

If you have Maple13 you can do this easier by entering

N+~M;

 

Scott

To help you we would need to know information like Operating System and if you have a permanent copy of Maple 11 or just a timed one (that may have expired by now).  Also, have you contacted Maplesoft Technical Support with more information on what you are experiencing?

-Scott

The reason for this sort of name is because MapleSim uses Modelica behind the scenes for definition of the components.  In Modelica this `R1.R` means that there is a component with the name R1 that has a property named R.  We have written some code that strips out some of the name that isn't necessary. You can write your own routine that will strip out certain names if you know it will only be working on certain components.  For example, stiping the property name and leaving the component name only works for components with only one parameter (like resistors, inductors, capacitors and inertias) but doesn't work so well for components that have multiple properties (like sources, diodes, and MOSFETs).

We are looking at ways to improve this for future templates.

 

Scott

Could you try looking at this post (http://www.mapleprimes.com/forum/modeliser-vol-fusee-a-eau).  I believe that post solved the problem that you are trying to solve.  Please let us know if you have any problems.

Scott

Where did you purchase Maple 12 from?

If you purchased Maple 12 from Maplesoft, you should have recieved an email with the purchase code in that email.  If you cannot find that email, I would suggest that you contact Maplesoft Customer Service.

Scott

Have you contact Maplesoft Techncial Support on this issue?

They will likely also need to know what version of Java you are using.  You can find the version of Java by runing "java -version" in a terminal window.  You can also find the version of Java by going to this website (http://www.javatester.org/version.html).

Scott

Have you tried to contact Maplesoft Technical Support (support@maplesoft.com)?  They should be able to help you solve this problem.

Scott

If you are still having problems, there is a application on Maple's Application center (http://www.maplesoft.com/applications/view.aspx?SID=5026) that will show you a step by step method of solving the area between two curves.

Scott

If you use the plots[display] command to set those plots to a parameter you should be able to do this.  For example the following does this.

with(plots):
P1 := plot(x^2, x = -4 .. 4, colour = blue):
P2 := plot(2*x^2, x = -4 .. 4, colour = green):
MyBackground := display([P1, P2]):
animate(plot, [A*x^2, x = -4 .. 4], A = -3 .. 3, background = MyBackground);
 

Scott

Ratch,

In the subsystem section there are two heading, there is a "User" section and a "Library" section.  The "User" section are user subsystems that have been created for the file, while the "Library" section contains blocks from a Library palette.  The "User" section does allow you to delete a subsystem that is no longer needed but the "Library" section will not allow you to delete a listing.  If you save the file, close MapleSim down an reload it, the "Library" section will automatically remove any block that isn't in use anymore.  If the component is no longer used at this level of the model but is used in one of the subsystems (even if it is a subsystem that only shows up in subsystem that is only in the "User" section) the block will still show up.

If you find that the listing is getting to cluttered, you are able to colapse the section.

Does this answer your question?

-Scott

 

First 8 9 10 11 12 13 14 Last Page 10 of 30