MaplePrimes Questions

I need to install FGb package into Maple, the instruction is here:http://www-polsys.lip6.fr/~jcf/FGb/FGb/darwin_i386/index.html

But after I tried so many times, I am still unable to install the package(the instruction is a little bit unclear).  Basically, I downloaded the file FGb-1.61.macosx.tar.gz  in my home directory and unzip it. I created .mapleinit and put these commands inside:

libname:= “Macintosh HD/Users/jinhuilitar xvfz/tmp/FGb-1.61.macosx.tar.gz”/FGblib, libname:

mv <12627>/*.so <Macintosh HD/Users/jinhuili/tar xvfz/tmp/FGb-1.61.macosx.tar.gz>

 mv <12627>/FGblib <Macintosh HD/Users/jinhuili/tar xvfz/tmp/FGb-1.61.macosx.tar.gz>

 

I put .mapleinit in the home directory as well. But after I did all of these followed the instructions, I opened Maple and type with(FGb), it says FGb does not exist. I am so desperate, I have tried two days to solve this simple problem, please help.

I am trying to evaluate the following equation analytically but it gives back unevaluated then I tried fsolve which giving me the answer but I need phi greater than  zero. How can I avoid negative values. Also Is there any ways to solve it analytically. 

Please see the attachment

 

Download ANALYTIC.mw

 

Dear all,

 

I'd like to make a logplot with the option axes = boxed . 

let's say:

plot(x^3, x = 0 .. 2, axes = boxed)

But I need the tickmarks and numbers on both y-axes.

Could you tell me how to do this?

See the below. The two answers should be identical, but they are not.

Input:


Output:


 

Is it possible to edit 3D work space directly in maplesim? How?

Can we add a static (fixed) cylinder around a piston (translating cylinder) in the 3D workspace?

Can we draw in maple drawing and add it to maplesim 3D space?

Thanks for these basic yet unclear to for the past many months.

Ramakrishnan V

I have an excel macro file (enable macro or save as macro and run) in which the colour of cells keep changing by a macro named macro2.

Can we achieve it in maple or maple sim?

Any one please suggest a way for me to try out.

COLOR1.xlsx

Thanks.

Ramakrishnan V

Hi, 

Can we tell maple to give output in a form which contain any specific term or expression. For example- Can I tell maple to give output which contain (x^2+2*x+3) expression in the output. I used various combinations in collect command but it doesn't work. It is shown in enclosed maple worksheet.

I have some questions about output produced by maple. I have attached a maple worksheet in which I asked the questions in comments. Please help mein in this problem because it become very tedious to type each expression by hand in desired form. If maple produce it by some means it would be great help.

desired_form_in_output.mw

Thanks and Regards,

Nilesh

 

 

Hi,

I have two objective function which I want to prove concave with respect to four independent variables jointly (simultaneously).

`TP1 is the first objective function which is defined  in sol1 equation. TP2 is the second objective function which is defined  in sol3 equation. I want to maximize both function. There are four decision variables (independent variables) in both the objective function expression- T,E,W,p. Ten  parameters used in both the equations are- alpha, beta, c, h, m, o, s, u, a, b.

1) My first question is - How can I prove both the function as a concave function with respect to four decision variables jointly. Can I specify some range of parameters in which both these function would behave like a concave function. The feasible range of these parameters are-

`[alpha>0, 0<= beta<1, c>0, h>0, 0<= m<=1, o>0, s>0, u>0, a>0] [ b>0 for objective function TP1 and b>1 for objective function TP2].

Some other restriction on parameters and variables are-  p>c  ,  T<=m , T>=0, E>=0, W>=0, W>=E.

2) My second question is if I simplify my first question and specify some specific values of parameters as I done for both objective function, then I got two new objective function in sol2 and sol4 equation. Now can I prove these two objective function (sol2 & sol4) as concave with respect to four decision variables T,E,W,p jointly. I want to prove concavity for these two objective function because if it is proved concave then The first order optimality solution would give me the global optimal solution. 

Maple worksheet is enclosed.

concavity_proof_question.mw

Thanks and Regards,

Nilesh

I dragged into model space prismatic FixedFrame and RigidBody components and prismatic joint along y axis. I also set mass m = 1 kg. The manual says set K_S = K_S and K_K_d in inspector parameter setting. It did not work out. So i set values 12 and 0.1 for K_S and K_d. I sreated subsystem sub of rigidBody and followed the following instructions,

Quote" PrismaticJoint.PlacethePrismaticjointandRigidBodyinasubsystemcalledsub.Thisallowsthe EquationTemplatetogenerateequationsspecificallyfortheselectedsubsystem.
3. ClickTemplates( )intheMainToolbarandselecttheEquationstemplate. 4. IntheAttachmentfield,provideaworksheetnameandclickCreateAttachment.Your MapleSimmodelopensinaMapleworksheet,withtheSubsystemSelectionwindow.

ClickLoadSelectedSubsystem.Thesubcomponentparameterandvariablesload automaticallyintheParameterandVariableManipulationareas"

After this i wanted to modify the equations. I could not. The same equation is reassigned.

Parameter and variable rows - are as shown in manual, but a blank row not available for user's use. But how do i get the variable x(t) there and rename it?

Thanks for an example of this chapter with an application of its use., if available with anyone?

Ramakrishnan V

I have a plain text file, with hundreds of lines. I read using the command

ImportMatrix(file_to_read, source=csv):

The files has mixed fields which are integers and strings. The problem happens when a string happeneds to be "0". Maple interprets this when reading as the integer zero and not as the string zero! So that when I print this field later on using printf("%s",field) I get an error. (since I know this field is string, the format for output is fixed in the code). 

I made a very small example to illustrate. One line with 4 fields. The 4ht field is string.

This specific field is always a string with alphanumeric content in the file. It has " " around it. But sometimes the content of the string happens to be the string "0".  Maple gets confused and reads "0" as integer 0.

Is there a way to tell Maple not to read this string as an integer using ImportMatrix?

Here is MWE to show the problem


restart;
currentdirName :="C:\\bug";
currentdir(currentdirName);
file_to_read := cat(currentdirName,"\\maple_input.txt");
data:=ImportMatrix(file_to_read, source=csv):

print(data);
whattype(data[1,1]);
whattype(data[1,4]);

printf("%d,%d,%d,%s",data[1,1],data[1,2],data[1,3],data[1,4]):

 

The input file maple_input.txt has this one line in it:

1,2,3,"0"

As you can see, the 4ht field is a string.  But Maple reads it as integer:

 

This is using Maple 2017.1 on windows. Also Attached the text file.

1,2,3,"0"

Download maple_input.txt

 

Dear Community,

Entering a long line in 1D mode breaks at the right window bounday. How could I prevent this? I would like the entered line stay just as one, single, long line extending over the window boundary and I would like to use the bottom window scroll bar to view it. BTW it also does not appear, so how could I invoke it? I use Maple2016. I have neither found any information about this in the help, nor in the documentation.

Also is there a possibility to split the IDE screen vertically, as e.g. in Visual Studio? Looking at long programs this feature is very useful.

tx in advance,

best regards

Andras

Moments ago, when I consulted the help pages, there popped up an Update window followed by a download of some 100MB+, and then nothing more seemed to happen. What was that about?, I wonder. Was it automatic updating of the help pages, or what?

Is there a command to find out what is new in 2017.1 that just got installed on my PC?

kernelopts(version);
  Maple 2017.1, X86 64 WINDOWS, Jun 19 2017, Build ID 1238644

I searched and googled and could not find such a command.

It used to be that when I clicked on the little icon in the help window which tells Maple to display all examples in 1D, then I did not see any 2D or any document style (i.e. italic) notation in the examples.

Now in Maple 2017 I see many examples in help show up in 2D/italic. It is worst, on same page, some code displays in Maple language and some code displays in 2D notation.

I do not like 2D. I want to only see examples written in the plain good old fashioned Maple language (which Maplesoft seems to be trying very hard to kill as it seems to be trying to force document style/2D on users by any means).

Here is an example. ?diff shows this

The above has 2D as input and above it has Maple code as input. One can't even copy the input to the open worksheet. If I copy it, this what happens:

value(??);

Here is another example, from page titled

 

Scrolling down I see this

I want all the input code above in examples and documentation to be in plain 1D Maple language notation. Not italic and not 2D and not anything fancy.  I do not like to even look at italic code above.

But clicking on the icon has no effect.

Is there a way to force everything to show using Maple notation for input? 

Maple help and documenation is a big mess if you ask me.

 

 

In some cases, maple is able to return a series expansion when line A is called but fails to do so when line B is called, and in the help page for asympt it defines them to be identical procedures:

A: asympt(f,z)

B:

this has generally occured when ever the function f is of the form:

where g(z) has an asymptotic expansion and when asympt(f,z) is called, maple provides this expansion divided by the exponential function, however line B as prescribed above returns an error. 

 

So, my question is, which line in showstat(asympt) is responsible for catching the error which line B as above encounters?

First 961 962 963 964 965 966 967 Last Page 963 of 2429