MaplePrimes Questions

Below I want to explore a function behaviour using a slider to determine the value of 'a' so the function is shown in a plot, but I can't figure out how to use Explore to bind the value of 'a'.

If I bind bind the value using "a := 5", then plot works, but when binding through Explore it does not work.  I can also write the function in the plot like "a * x", but that is not as general as using a function.

How to explore function like that.

Hi,

I have this program which when I run gives me five unique matrices as I want it. I however, when I run it again the enries of the matrices changes and I get 5 identical matrices, how can I prevent this from happening?

Vic

I am trying to solve an optimization problem but I am getting an error message which does not make sense.

 

I have a procedure file called f. The decsiion vector is x[1..4]. and returns the objective function value Ls.

I then specify the constraints as a set and ask it to optimize

constraints:={x[1]+x[2]+x[3]+x[4]=65,x[1]<=20,x[2]<=15,x[3]<=20,x[4]<=15};

sol := NLPSolve( f,constraints, assume=nonnegative,minimize);

Error, (in Optimization:-NLPSolve) constraints must be specified as a set or list of procedures

 

This error makes no sense to me. Can anyone help?


 Hello,every one,i want to solve system of equations but i recieve an error ,how can i find the coeffecients c1,c2,c3,c4?thank.

``

restart

``

``

A := 45*x*c4+72*c3 = 0:

 

B := 56*c2*c4+28*c3^2 = 0:

C := M^2*(-x^5*c4-x^4*c3-x^3*c2-x^2*c1+c1+c2+c3+c4+1)^n*c4+42*beta*c1*c4+42*beta*c2*c3 = 0:

E := M^2*(-x^5*c4-x^4*c3-x^3*c2-x^2*c1+c1+c2+c3+c4+1)^n*c3+30*beta*c1*c3+15*beta*c2 = 0:

F := M^2*(-x^5*c4-x^4*c3-x^3*c2-x^2*c1+c1+c2+c3+c4+1)^n*c2+20*beta*c1*c2-20*beta*c1*c4-20*beta*c2*c4-20*beta*c3*c4-20*beta*c4^2-20*beta*c4-20*c4 = 0:

G := M^2*(-x^5*c4-x^4*c3-x^3*c2-x^2*c1+c1+c2+c3+c4+1)^n*c1+6*beta*c1^2-12*beta*c1*c3-12*beta*c2*c3-12*beta*c3^2-12*beta*c3*c4-12*beta*c3-12*c3 = 0:

``

beta*c1+beta*c2^2+beta*c2*c3+beta*c2*c4+beta*c2+c2 = 0:

M^2*(-x^5*c4-x^4*c3-x^3*c2-x^2*c1+c1+c2+c3+c4+1)^n = 0:

with(SolveTools):

``

PolynomialSystem({{45*c4*x+72*c3 = 0}, {30*beta*c1*c3+15*beta*c2 = 0}, {42*beta*c1*c4+42*beta*c2*c3 = 0}, {20*beta*c1*c2-20*beta*c1*c4-20*beta*c2*c4-20*beta*c3*c4-20*beta*c4^2-20*beta*c4-20*c4 = 0}, {6*beta*c1^2-12*beta*c1*c3-12*beta*c2*c3-12*beta*c3^2-12*beta*c3*c4-12*beta*c3-12*c3 = 0}}, {c1, c2, c3, c4}, {beta = 2, x = 1/5})

Error, invalid input: too many and/or wrong type of arguments passed to SolveTools:-PolynomialSystem; first unused argument is {beta = 2, x = 1/5}

 

NULL

``

``

``

``

``

``

``

``

``

``

``

``

``

``

``

``

 

Download Numerical.mw

Hi,

Here is my question.


restart

convert(diff(lambda(t-t1), t), diff)

eval(diff(lambda(t2), t2), {t2 = t-t1})

(1)

subs(lamda(t-t1) = sin(t-t1), %)

eval(diff(lambda(t2), t2), {t2 = t-t1})

(2)

``

I am trying to substitute value of lambda(t-t1) further but it is not taking the value.

Thanks in advance.

Regards

Sunit

Download question2.mw

#Hello people in Mapleprimes,

#After

restart;interface(typesetting=extended);

diff(f(x),x);

#shows f'(x).

#But,

diff(f(t1),t1);

#shows just df(t1)/dt1, not f'(t).

#Can't I show f'(t1) not df(t1)/dt1?

#Is this a way peculiar to Maple?

#I hope someone could give me some hints.

 

#Best wishes.

#taro

 

 

 

 

Hello,

I would like to know how one would add a superscript in maple? For example, I need to label an axis with unit cm^-1 but it shows 1/cm (like a fraction) when executed. How could I avoid this so the graph label would output cm^-1? Thank you for your help in advance!

Gambia Man

Please how do I type accents in code edit region of maple 2015.1 (for instance putting "Hat over" on alpha)?

Thank you.

hello every one.please help me with solving this equations.i can not solve this and i need it.thanks


eq1 := (cos(beta2)-1)*w11-sin(beta2)*w12+(cos(alpha2)-1)*z11-sin(alpha2)*z12-cos(delta2) = 0; eq2 := (cos(beta2)-1)*w12+sin(beta2)*w11+(cos(alpha2)-1)*z12+sin(alpha2)*z11-2*sin(delta2) = 0; eq3 := (cos(beta3)-1)*w11-sin(beta3)*w12+(cos(alpha3)-1)*z11-sin(alpha3)*z12-3*cos(delta3) = 0; eq4 := (cos(beta3)-1)*w12+sin(beta3)*w11+(cos(alpha3)-1)*z12+sin(alpha3)*z11-4*sin(delta3) = 0; eq5 := (cos(beta4)-1)*w11-sin(beta4)*w12+(cos(alpha4)-1)*z11-sin(alpha4)*z12-5*cos(delta4) = 0; eq6 := (cos(beta4)-1)*w12+sin(beta4)*w11+(cos(alpha4)-1)*z12+sin(alpha4)*z11-6*sin(delta4) = 0; eq7 := (cos(beta5)-1)*w11-sin(beta5)*w12+(cos(alpha5)-1)*z11-sin(alpha5)*z12-7*cos(delta5) = 0; eq8 := (cos(beta5)-1)*w12+sin(beta5)*w11+(cos(alpha5)-1)*z12+sin(alpha5)*z11-8*sin(delta5) = 0; alpha2 := -20; alpha3 := -45; alpha4 := -75; alpha5 := -90; delta2 := 15.5; delta3 := -15.9829; delta4 := -13.6018; delta5 := -16.7388; P21 = .5217; P31 = 1.3421; P41 = 2.3116; P51 = 3.1780;

Hi,

   If I have a fraction like this w^2/(w^4+2*w^2+1) , how can I make it presented in Maple as  '1/(w^2+1/w^2+2)' (Both numerator and denominator divided by w^2) ?

Thanks in advance!

When using units, then e.g. "2 m" is show as expected below, but "1 m" shown as only "m".  Even through correct, it is a non-standard way to write physical values.

How to get the physical values in a format of "{numerical} {unit}" even when the numerical part is 1?

In a simple example below I try to write an equation with an unknown value present among other values that have unit, but I get an error since the unknown value d does not have a unit yet.

How to write such expressions, e.g. for use in solve later?

 

 

Dear MapleSoft,

 

Would it be possible you once design a MapleSim webinar for users with more emphasis on Modelica (language, examples, etc.), on how to build more complex custom components, not just a simple DC motor? I think this would be very useful and could extend / enhance the use of MapleSime even more.

 

Tx in advance,

best regards

 

Andras

you write:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

First 1098 1099 1100 1101 1102 1103 1104 Last Page 1100 of 2428