Items tagged with parameter parameter Tagged Items Feed

Hi everyone,

In MapleSim, I know that after running a model simulation, one can save the data via 'export data in excel or csv' format...

But is it possible to automate this process via a script? For example, if I wanted to see what the model data looks like by varying one parametere between 10 to 50?

Example:

for i = 1:50

   variable_in_model = i;

   run MapleSim model;

   save MapleSim model data;

Hey there, this is my first post here, so hello to everyone.

 

I have (so far) one question. I have a circle equation like

x2+y2-6y+6=0

I know, that on a paper, I can convert it to the "normal" circle equation, from which I can read the middle point and radius of the circle. And now my question is, how to convert in in maple? I am using the 11th version.

 

I have tried solving this equation and (x-a)

How can I plot standing waves with extra parameters. That is how can I plot something like 2A*sin(kx)*cos(wt) and vary the parameters to see what would happen if different types of waves traveling in different directions collided.

How to do subj? Straightforward way doesn't compile:

restart;

myint:= proc(u::float)::float;
return int(exp(x^6), x=0.0..u);
end proc:


createcomp:=proc (expr::evaln, exprfunc::evaln);
exprfunc:=(v::float)->unapply(evaln(expr),a)(v);
return Compiler:-Compile(exprfunc,optimize);
end proc:
global_expr:=myint(a)+a^a;
s:=createcomp(global_expr, global_exprfunc);


"Error, (in Print) cannot translate value of lexically...

How to calculate the integral
restart; int(cos(a*x)*cos(x)^(a-2), x = 0 .. (1/2)*Pi) assuming a>1
with Maple? Mathematica 8.01 produces a very doubtful answer
In[1]:=Assuming[a > 1, Integrate[Cos[a*x]*Cos[x]^(a - 2), {x, 0, Pi}]]
Out[1]=((-1)^a* a* HypergeometricPFQ[{1, 1 - a, 1 + a}, {3/2, a}, 1/2]* Sin[a *[Pi]])/(-1 + a)

Hi, I have 2 sets of data:

P := array([1.23, 1.15, 1.10, 1.20, 1.35, 1.25, 1.28, .99, 1.22, 1.25, 1.30, 1.05]);
Q := array([892, 1012, 1060, 987, 680, 739, 809, 1275, 946, 874, 720, 1096]);
p=P(t), q=Q(t) i.e. both p & q are a function of parameter t  t=1..12
 
2 functions: 
x=ln(p)
y=ln(q)
I'm trying to display x against y , ie x=ln(p) on the horizontal axis, y=ln(q) on the vertical

How do I allow an infinite amount of parameters (...rest parameters don't seem to exist in Maple) such as the ones in the piecewise procedure (except for the optional parameter)?

My question is related to this discussion on "querying events"

http://www.mapleprimes.com/questions/125273-Dsolve-Events-How-To-Control-For-A-Sign-Change#comment125426

I thought I might start a new thread.

The following loop is an illustration of the sort of thing I'd like to do with dsolve and events: I loop over a parameter of the "event" and extract information on the solution at different values of the parameter. Here is the code (successfully tested on Maple 15 / Standard / Windows)...

Hi, this may be a stupid question, but I have trouble getting it right...

I want to create a matrix from a function that uses some of the arguments of the fuction as indices, but want to carry on the other arguments, here is an example of what I have:

MyFunction:=(a,b,c,k,l)->a+b+c+k+l;

MyMatrix:=Matrix(3,3,(k,l)->MyFunction(a,b,c,k,l)); # this is working but not what I want

MyMatrix now contains a,b,c as variables but not as function parameters ...

I have a strange error when i try to plot an ODE with "numeric,method=gear,parameters=[...]" as options activated. After this implementation I give the parameter a value: ODE(parameters=[123]); -> works. But when I type "odeplot(ODE, [x(t),y(t)],10..20,numpoints=100);" for example, i get the errormessage:

" Error, (in dsolve/numeric/gear) Array index out of range"

But when i remove the option "method=gear", so that the ODE is solved with default runge-kutta...

I'm developing an application that I'd like to use elements of an array as parameters in MapleSim components - is there a way to use Maple arrays/vectors in MapleSim?

 

Also is there a way to open a file and read its contents (data) as the starting point (parameter set) for a MapleSim simulation?

Hi.

I have a procedure that takes multiple parameters, in which I want to fix all but one, and then define a single variable function that maps x to this remaining unspecified parameter, so I can give it to the plot() routine. I would like to define a number of such single variable functions for different values of the parameters and plot them all on the same axes.

Ideally, I would like to find a way to make the following, instead of returning 14, return 21,...

Dyson_Mclean_V3.mw

Dyson_Mclean_V5.mw

Hi All,

I have a question that I see has been seldom discussed except certain posts by Mr. Lopez. This concerns the estimation of optimum parameters of the solution of a system of differential equations to fit experimental data. I referred to the Maple document provided by Mr. Lopez on the Maplesoft website.

Hi,

I have this problem when I use assume and assign a value to an assumed parameter.

Example:

restart:assume(beta>0):

g:=int(Sum(5*sin(n*beta*x),n=1..5),x) ;

beta:=1;

g;

Normaly beta:=1 is replaced into g. The result obtained is function of beta and beta:=1 is not replaced.

Why beta:=1 is not replaced in g ?

Thanks for suggestion

My goal is to find a way to code sliders that set parameters for a plot so that it is not necessary to re-code all of the existing sliders when a new one controlling the same plot is added.

The closest I've come is the following.   Say I've defined a couple of functions

f:= (A,x) ->  sin(A*x);

g := (B,x) -> cos(B*x);

and

plot0 := plot([f(A,x),g(B,x)],x=a..b,color[blue,red]);  

And two sliders with code for action

1 2 3 4 5 Page 3 of 5