MaplePrimes Questions

Hello,

Problem description

1) Define a function in terms of variables and parameters,

2) FInd the optimal solution

3) Plot the optimal solution in terms of a single parameter

 

Solution

What I have done is very basic since I haven't use Maple for many years. Here is an example

1) f(x;a,b,c):= ax^2+bx+c; (I don't knpw how to tell Maple that {a,b,c} is a set of parameters)

2) solve(f(x)=0,x); (I could use something like solve(f(x)=0,x,'parametric','real') but I am not interested in so detailed solution)

3) Here is my main problem. I want to save the first solution of x in optx(a;b,c) and the second in opttx(a;b,c) but I don't know how to do it (again, here a is my variable and b,c my parameters)

4) I also don't know hot to plot optx(a) as a increases, whereas the values of {b,c}={e.g., 2,3}

 

I would appreciate any resources/guidance 

hello,my friends.I got a problem in using maple.

I want project a cuboid on a plane, and integrate function on that area.

for example, a cuboid which have a spatial diagonal between (0,0,0) and (1,2,1).
Then it was projected to a plane defined by three points (-1,0,0), (0,-1,0) and (0,0,-1).
Finally, a function x^2+y^2 was integrated on that projected area.

I found the cuboid can be defined with plottools:-cuboid and projected with plottools:-project in maple.
but how to integration next?
I can't find any commands in maple can do the integration with that irregular area.

I need some help.Thank you very much in advance.

Hi!

Do you know why the sequence of output is difference than the handing output?

restart;
a := 1.4;
b := 0.3;
x[0] := 1;
y[0] := 1;
<x[n + 1], y[n + 1]> = <b*y[n] - x[n]^2 + a, x[n]>;

 

f := (n, m) -> (-n^2 + b*m + a, n);
 

g := (k, n, m) -> (f@@k)(n, m);


seq([g(a, x[0], y[0])], a = 0 .. 3);
        [1, 1], [0.3, 1], [0.61, 1.3], [-0.2701, -1.99]

[g(0, x[0], y[0])], [g(1, x[0], y[0])], [g(2, x[0], y[0])], [g(3, x[0], y[0])];
        [1, 1], [0.7, 1], [1.21, 0.7], [0.1459, 1.21]

 

to_minimize.mwto_minimize.mw

I have a function fn2 that I want to minimize. I'm not sure about the range of A. So I first want to check out if the function is convex or concave. Also need to find the optimum value of T w.r.t A for the fn2. But I'm not able to understand the solution, please help.

Hello,

I am having some trouble with the "Seq" command of the "Threads" package. This is a parallel implementation of the usual "seq" command.

I namely defined a (very long) procedure "f" which defines a (very complicated) function $f: R^2 -> R$, taking as arguments an $x$ and a $y$ and returning $f(x,y)$. I want to plot its graph in 3D, which I try to do by making a 3D data structure consisting of points making up the $x$ range, $y$ range, and the evaluations $f(x,y)$. I then want to plot it with the "SurfacePlot" command from the "Statistics" package.

If I define my data structure as

 data := [seq([seq([i/10, j/10, f(i/10, j/10)], i = 1 .. 10)], j = 1 .. 10)]

the SurfacePlot(data) works. However, it is very slow because it runs in serial and the function evaluation "f(x,y)" takes a long time to compute.

I therefore wanted to compute the data in parallel. For this, I use

 data := [Seq([Seq([i/10, j/10, f(i/10, j/10)], i = 1 .. 10)], j = 1 .. 10)]

Sometimes this works, but often it does not and I get the following error after a number of datapoints have been computed (i.e. after evaluations of f have been made).

Error, (in simplify/float) invalid arguments for Float constructor

This is the first time I use parallel computing, so I am not familiar with potential problems that could trigger errors and don't understand very well how parallel computing works. Does "Seq" only compute the different data points [x,y,f(x,y)] in parallel, or does it compute stuff within the procedure "f" also in parallel when evaluating "f(x,y)" at some fixed arguments "(x,y)"? Because another procedure is defined within "f" and it is called multiple times within one "f" call, so in that case it could be a problem with lexical scope. Any suggestion to help me understand and correct my error would be greatly appreciated.

A few days ago my Windows 10 (32 bit) operating system did an update of my Excel 2016. Since that moment I get following message:

However the addin toolbar is still present and WMIMPLEX.xla file is also still present. Removing and reinstalling the addin did not help. So I am wondering what other solutions could be done.

Aside of this I would like to ask some help for the correct syntax in Thermodynamics package calculating water vapor pressure. For one or another reason I do not succeed to find the correct syntax to obtain the water vapor pressure at 24°C.

Thank you in advance for any help

Hi,

I want to add a  degree symbol (°) in my  plot Triangle 2 ( for example 100°  )

Ideas ?

Thanks

QuestionTypeset.mw

Dear Useres!

Hope everyone is fine here! I want to compare the coeficient of exp(k*eta[3]+m*eta[1]+n*eta[2]) for k=0,1,2,3,...,N,n=0,1,2,3,...,N and m=0,1,2,3,...,N for N=10 in the following attached file. But I got some error, please have a look and try to fix it as early as possible. Please take care and thanks

Compare_coeff.mw

How do I set 'symbolicname' in GetEquations()?

There is an error "invalid input" when I do like below.

with(MapleSim);

A := MapleSim:-LinkModel('filename' = "C:/Users/---.msim");
A:-GetEquations('symbolicname = []');
 

This is a just a general type question. Often reading questions posted to do with modules and packages I see "foo" used. I have put together some simple packages for routines I find useful. I am week in general programming knowledge. I would like to know is "foo" something special or a generic name used for testing? Is is an acronym? ...

hello how do i use bracekt for several lines, like in this picture I need to write this in maple.

i already know how to setup matrices for nX1 or 1Xn (as in vector) or multiples such as

nXn (square matrice) or nXm (a none square matrice)

I also know that we have this premade "sketch"

but I need for several line and some times I need on the right side and some time I need on the left side.

but rarely on both sides (and if I need on both side I will just use a matrice)

can you help me

thx

regards OrbitA

Hello, i stumbled across a function that does not want to plot regularly.

The translation: The tension U(t) (in volts) measured across a resistance in a electric circuit is given by U(t)=cos(2t)*U*e^t/10.

a. Plot the graph of y=U(t)
b.Calculate the limit t->infinity and acquire the horizontal asymtote of the graph of y=U(t). 
c. Calculate the intersecting points of the graph of U with horizontal asymptote (dont ask me how, while how can a function intersect with its own asymptotes??). 

So the question actually is how to graph this function?
Maybe then i can make up from that how the function intersects with its own asymptotes.

Thank you!

Greetings,

The Function.  


"U(t):=U*(e)^(-(t)/(10))*cos(2* t);smartplot(U(t));"

proc (t) options operator, arrow, function_assign; U*exp(-(1/10)*t)*cos(2*t) end proc

 

 

``

Download Question_for_maple_primes_4.mw

Copying and Pasting of parameters (entered data) or text in text boxes does not work on my MapleSim 2021.1 Windows10 installation.

I tired the usual keys and context menus. Cutting works.

Thats what I get back when I paste text here after cutting

<math xmlns='http://www.w3.org/1998/Math/MathML'></math>

Copy&Paste of components works.  

Is this a known issue?

Hi,

This is my first post here and I am really hoping someone can help me. I just started using Maple and I am using Maple 2021.

I generated numbers using a SEQUENCE and the sequence is called y. I am trying to extract the element (y[n]) and the index (n) of that element based on the CONDITION that y[n] has to lie in between 0 and 1 exclusive (so the element of the sequence or y[n] has to be such that 0 < y[n] < 1). How can I achieve this using select commad and also using a LOOP. Are there any other methods that can be used to achive this result. Any or all help would be really appreciated.

 

Thank you all.

I have piecewise functon:

k := piecewise(t < t1, kmax, t1 <= t, -kmax, 2*t1 + sqrt(2)*t1 <= t, kmax, 3*t1 + 2*sqrt(2)*t1 <= t, -kmax, 4*t1 + 2*sqrt(2)*t1 <= t, 0)

Everything is a constant except time t. 

I need to Integrate it 4 times. 

sol := int(k, [t = 0 .. t, t = 0 .. t, t = 0 .. t, t = 0 .. t])

I only get result for the first two conditions from the piecewise functon (t < t1, kmax, t1 <= t, -kmax)

I need the result for complete piecewise functon. Also converting to Heaviside doesn't work. I am a complete math moron. Ty

First 254 255 256 257 258 259 260 Last Page 256 of 2308