MaplePrimes Questions

I am working on solving a set of equations for a number of parameters, and everything looks great except that I am getting a "1." in front of the solution for a couple of variables. What does this mean? In the example below, in the solution for both d__1 and d__2, there is a "1." (3 of them in fact).

 

s1Mean := -1/(2*(-rho^2+1))*(-2*d__1/c__1)-2*rho*d__2/((2*(-rho^2+1))*c__1^.5*c__2^.5) = -2*(-(-X*beta+y)*kappa/(2*sigma)+xi__2*Z__2*gamma__1/(2*tau__2)-xi__1*Z__1/(2*tau__1))

s2Mean := -1/(2*(-rho^2+1))*(-2*d__2/c__2)-2*rho*d__1/((2*(-rho^2+1))*c__1^.5*c__2^.5) = -2*(-(-X*beta+y)*gamma__2/(2*sigma)-xi__2*Z__2/(2*tau__2))

 

meanSol := solve({s1Mean, s2Mean}, {d__1, d__2})

with maple 2015

how can type log[2](3) into

Can you help me?

Thank you very much.

log.mw

 

 Any one can help me to solve the differential equations using maple to get the velocities u ,v and pressure p for the problem mentioned below

I tried the example in BodePlot help.

restart;
with(DynamicSystems):
sys := TransferFunction( 1/(s-10) ):
BodePlot(sys);


That works OK. But, if I invoke Syrup, the example no longer works.

restart;
with(Syrup);
with(DynamicSystems):
ckt := [V, Rsrc(50), C1(15e-9), L1(15e-6), C2(22e-9), L2(15e-6), C3(22e-9), L3(15e-6), C4(15e-9), 1, Rload(50)];

TF := subs(other, V=1, v[Rload]);
sys := TransferFunction(TF);

BodePlot(sys);
I get a message "not a valid plot structure".  OK, try the example, again.

sys := TransferFunction( 1/(s-10) ):
BodePlot(sys);
I also get the "not a valid plot structure" message.

What am I doing wrong?

I have asked this before but am still confused. I have a half-dozen procedures I want to save. Don't want them in a module/package. I am using windows 10.

I just can't get the syntax correct on this.

Obviously after saving restart and load to test.

libname;
       "C:\Program Files\Maple 2018\lib", 

         "C:\Users\Ronan\maple\toolbox\CodeBuilder\lib", 

         "C:\Users\Ronan\maple\toolbox\OEIS\lib", 

         "C:\Users\Ronan\maple\toolbox\personal\lib", 

         "C:\Users\Ronan\maple\toolbox\UTF8\lib"
libdir := "C:/Users/Ronan/maple/toolbox/personal/lib";
     libdir := "C:/Users/Ronan/maple/toolbox/personal/lib"
NULL;

LibraryTools:-Save(Pedal, cat(kernelopts(homedir), "/maple/toolbox/personal/lib/Pedal.mpl"));
Error, (in LibraryTools:-Save) could not open `C:\Users\Ronan/maple/toolbox/personal/lib/Pedal.mpl\Pedal.m` for writing

 

Please tell me where I go wrong

And I have not even tried lamda in nanometers

Since theata is small I repalce sin(theta) by theta because, with units, sin did not compute

Anyone know a good reference (book/website) explaing Maple units?

Many thanks


TelescopeUnits.mw

Hi

I hope everyone is fine.

Here is a nice question :

I have an inequality ( please see maple code) if I assume a special condition (on |f(u,s)| used in the code )

how can I get an upper bound of the function |x(t)| and is the upper bound converges to zero when t goes to infinity.

Maybe this is can be done using maple because by hand up to know I can't find an upper bound which converges to zero as t goes to infinity.

Maybe, there is  a good, nice and appropriate answer using maple.

Below, please find the upper_bound.mw code.

Many thinks

 

Upper_bound.mw


 

``

restart; assume*(0 < gamma); assume*(0 < M)

(0 < gamma)*assume

 

(0 < M)*assume

(1)

abs(x(t)) <= exp(-gamma*t)*abs(x(0))+int(abs(x(s))*(int(exp(-gamma*(t-u))*abs(f(u, s)), u = s .. t)), s = 0 .. t);

abs(x(t)) <= exp(-gamma*t)*abs(x(0))+int(abs(x(s))*(int(exp(-gamma*(t-u))*abs(f(u, s)), u = s .. t)), s = 0 .. t)

(2)

assume*(int(abs(f(u, s)), u = 0 .. infinity) < M)

(int(abs(f(u, s)), u = 0 .. infinity) < M)*assume

(3)

``

 

(I*Can*get*an*upper*bound*of*abs(x(t))*when*I)*assume; int(abs(f(u, s)), u = 0 .. infinity) < M


 

Download Upper_bound.mw

I am curious how one can fine the whattype of operation in expression when two variables are actually doing difference or division operation

like

whattype(a-b);
whattype(a/b);

is there any better method to find out actually for all five operations exactly.

1. a-b;  should tell the operation is difference(substraction(`-`))
2. a+b; should tell the operation is addition(`+`)
3. a*b;  should tell the operation is multiplication(`*`)
4. a/b;  should tell the operation is division(`/`)
5. a^b;  should tell the operation is power(`^`)

I understood that maple is reading a-b as a+(-b) and same a/b as a*(1/b). but, for programing it is very much comfortable to know exactly the operation. Especially when solving partial differentiation it is easy if I know exactly.

would be very grateful if I can get this thing solved. Any suggestions and coments are welcomed and thanks in advance
 

Hi,

      I need to compute something involved with the pseudo differential operators.

https://en.wikipedia.org/wiki/Pseudo-differential_operator

Specifically, I need to calculate the inverse of a pseudo differential operator, the multiplication of two pseudo differential operators, and the n-th root of a pseudo differential operator. 

I don't know whether Maple could handle these. 

Thanks.

Respected sir,

I have attached a file that contain integration . Sir I am unable to solve please give me some hint.

PLease note followings 

1. I want to get final expression , want to get the value of constant from boundary condition.

2.I want to get the final expression (.......+c1)

3.I will put boundary condition to determine the value of c1

Dear all;

I need a help to get a simple code about the null hypothesis test.

A drug is administrad to a population X of size 50 while a  placebo is given to a population Y of size 25.

Observed results of good bad and no effects are given in the following vectors for both population.

X=[ 20,11,19];

Y=[4,4,17];

test the null hypothesis H0: population independent of treatment versus the one tailed alternative that they are dependent by computing the theoretical contingency table with entries T[i,j] where i=1,2

for the two rows and j=1,2,3 for the three columns. At what p-value can we reject H0.

Many thanks

There is a simulation of a T handle in space done in matlab https://rotations.berkeley.edu/a-tumbling-t-handle-in-space/

Would like to see someone do this in Maple. More specifically how the Matlab code would look like translated to Maple

restart;
sign(-v1+a);
sign(-V1+a);

my respective outputs are

1
-1

I cannot understand what is the difference between using lowercase and uppercase variable. Could Someone Explain me please.

I have to Two Lists with Equal size. Each element in one List is an variable and Each element in second List is an Value of the variable corresponds to First List.

Now when Ever I call a variable I need the script to read its value and Compute.

For Example:

List1 := [v1,v2,v3,v4];
List2 := [a*b/c, a/c,a*b-2,d];

computation := v1*diff(expression,x)+v3*diff(expression,y)+ v3*v4;

but I need the script to read it as

requiredComputation :=(a*b/c)*diff(expression,x)+(a*b-2)*diff(expression,y)+ a*b-2*d;

I used to do this kind of computation in matlab using containers and map. Is there any thing similar??

I was trying some calculations for a solar installation.

4.9kW system. 3.5 h sun/day.  $0.27/kWh

restart:
with(Units:-Standard):
                     "maple init loaded..."
4.9*Unit(kW)*3.5*Unit(h/day)

714.583333333333*Unit('W')

but I want it to output 17.15 kWh/day

I looked up previous questions, and got this rather convoluted solution:

restart: 
Units[AddSystem]( NewSI, Units[GetSystem](SI), kWh/day );
 Units[UseSystem]( NewSI ); 
combine( 4.9*Unit(kW)*3.5*Unit(h/day), units ); 


17.15*Unit('kWh'/'d')

First 641 642 643 644 645 646 647 Last Page 643 of 2308