MaplePrimes Questions

Hi.

I am calculating an integral but I cannot get the result.
Can you help me.
I provide the file.

Tank you

Regards

integral_doubt.mw
 

restart

Rm := 2.5*10^(-3)

0.25e-2

(1)

Lm := 10^(-3)

1/1000

(2)

Ms := 10.7*10^5

0.11e7

(3)

ICMr := `assuming`([Ms*(int((z(t)-Z)*((Rm^2+r(t)^2+(z(t)-Z)^2)*(int(sqrt(1-4*r(t)*Rm*sin(phi)^2/((Rm+r(t))^2+(z(t)-Z)^2)), phi = 0 .. (1/2)*Pi))/((Rm-r(t))^2+(z(t)-Z)^2)-(int(1/sqrt(1-4*r(t)*Rm*sin(phi)^2/((Rm+r(t))^2+(z(t)-Z)^2)), phi = 0 .. (1/2)*Pi)))/(sqrt((Rm+r(t))^2+(z(t)-Z)^2)*r(t)), Z = -Lm .. 0))/(2*Pi)], [0 <= r(t), r(t) <= 2.5*10^(-3)])

 

(12)

``

subs([r(t) = 0.24e-2, z(t) = 0.1e-2], ICMr)

 

(13)
 

 

   

 


 

Download integral_doubt.mw

 I'm thinking about a question about counting the total number of Eulerian trails of following graphs . 

The Seven Bridges in Gonisburg lost one bridge due to war. 

G-e7

We looked up on Wikipedia to  add some details..

For the existence of Eulerian trails it is necessary that zero or two vertices have an odd degree; this means the Königsberg graph is not Eulerian. If there are no vertices of odd degree, all Eulerian trails are circuits. If there are exactly two vertices of odd degree, all Eulerian trails start at one of them and end at the other. A graph that has an Eulerian trail but not an Eulerian circuit is called semi-Eulerian.

It's easy to know that G-e7 is semi-Eulerian. So I want find all Eulerian trails. A simple attempt, found the following one in graph (Pink label).

I feel a little tricky dealing with this through Maple. The first reason is that the Maple graph theory package does not support parallel edges. Unfortunately, eand e6 are parallel edges of G-e7.

To take a step back, what if there are no parallel edges? For considering G-e7-e6.

There are some built-in commands related like FindEulerianPath , but can only find a Euler circuits.

 

 

 

 

Dear friends, please I would like to ask for your help with the following problem: 

I have to compute some linear programming calculations. I thought it would be a good idea to perform them employing a parallel code. However, much to my surprise, the parallel code is slower than the single-threaded one. I enclose a worksheet sketching both codes with an example. Would you please tell me what it could be wrong with my code? 

Many thanks for your help.EXAMPLES.mws 

In this figure, y axis scale is -1, -0.5,0,0.5,1.

i need that scale -1, -0.1, -0.2 -0.3......1

how to change?

 

Any could you please help me to write program using for loop of 

U(0, h, m)=0 for h=1 .. 10, m=0..10.?

Hi!

If I have a list of numbers e.g, data:=[0,12,0,7,5,3,7,10,0,0,9,3,2,5,0,6]

How do I get Maple to count the values bigger or equal to seven? [ans=5]

 

nnnnnnnnnnnn.mwHi everyone

I am a student. I have a problem with making matrix in maple. please help me.

this is the cod that I wrote.

 

I uploded my cod and the picture of matrix that I want to create.

thanks

 

Hi,

I am trying to solve a differentiation but I think I am stuck since the solution is not what it should be.

So, I got the equation below

eq4 := `S__2 ` = sin(alpha - phi)*sin(-beta + alpha)*H^2*M/(2*sin(-beta - delta - phi + alpha)*sin(beta)*sin(alpha)) - S__1

And according to the paper I read, to get the maximum value of alpha for maximum value of S_2, I need to make differentiation to first derivative where dS_2/d(alpha) = 0

Then I should substitute back value of alpha to equation above and the paper shows that i should get equation below.

`S__2 ` = 1/2*M*K__a*H^2 - `S__2 `

where K_a is

`K__a`= [(sin(beta+phi))/((sin(beta))/(sqrt(sin(beta+delta))+(sqrt(sin(phi+delta)*(sin(phi-varepsilon)))/(sin(beta-varepsilon))))]

 

I know its really hard but hope someone can give some idea how to do it.

 

Thank you very much.

 

Kind regards

Faiz Farhan

 

Hi. Can someone solve for w as a general function of k, without RootOf

w^3+3w^3*(1-w)+6w^3*(1-w)^2=k, k constant

i tried

allvalues(solve(w^3+3*w^3*(1-w)+6*w^3*(1-w)^2-k,w))

and also with option explicit (edit)

 

 

Dear all, 

Would you allow me to ask a question?

What would be a way to re-write the 'eq2' in the following worksheet as 'eq_given'? The check, 'is...'. shows that two expressions are the same. 


 

restart;eq1:= (-k*I + 2*I + m)*sqrt(3) - 3*I*m - 3*k;

(-I*k+2*I+m)*3^(1/2)-(3*I)*m-3*k

(1)

eq2:=eq1 / 2;

(1/2)*(-I*k+2*I+m)*3^(1/2)-((3/2)*I)*m-(3/2)*k

(2)

eq_given:= (-sqrt(3)*I/2 - 3/2)*(k + I*m) + sqrt(3)*I;

(-((1/2)*I)*3^(1/2)-3/2)*(k+I*m)+I*3^(1/2)

(3)

is(eq_given - eq2 = 0);

true

(4)

 


Thank you, 

Download Q20200817.mw

Hi,

I am working on a project and really need help from you guys how to rearrange/factorize an equation. So I got a form of expression as shown below, where

W__1 + W__2 = -sin(-beta + alpha)*((H^2 - h^2)*gamma + h^2*psi)/(2*sin(beta)*sin(alpha))

 

How can I rearrange it into a similar form of

W__1 + W__2 = -H^2*sin(-beta + alpha)*((1 - h^2/H^2)*gamma + h^2*psi/H^2)/(2*sin(beta)*sin(alpha))

 

where I just bring out value of H^2? I realize it's very simple to do by hand but I just need to learn how to handle Maple for my work.

Really hope anyone can help me. Thank you very much for your time and assistance.

 

Kind regards

Faiz Farhan

 

 

I have some difficulties with exporting a 3d plot from Maple in a pdf format without loosing the whole settings. As a simple example consider the following.

plot3d(sin(x)*10^y, x = -4 .. 4, y = -2 .. 2, view = [-4 .. 4, -2 .. 2, 0 .. 2], labelfont = ["TimesNewRoman", 26], labels = [x, Typesetting:-Typeset(log[10](y)), typeset()])

I tried two approaches, each has a drawback.

1- Right clicking on the figure, choosing `Export`, then `PDF`. Unfortunately, Maple changes the font size of labels!

2- Right clicking on the figure, choosing `Export`, then `Encapsulated Postcript`. Then I open the resulted `eps` file in GSview. Convert it to pdf. The result is a large-size pdf file which is heavy to render. Even when it gets rendered, scrolling up and down (for example in Adobe reader) is not good, because it seems the picture is going to get rendered again!

So how should one export a 3d plot from Maple in a pdf format, But not loosing the settings of the plot such as the font size of the labels and also not ending up with a heavy file?

Try to convert the old worksheet to the modern linear algebra package ( student )? 


 

restart:

with(LinearAlgebra):

 

v1:=(3/4-lambda)*x1+3*x2+2*x3=0:

v2:=3/4*x1-lambda*x2=0:

v3:=1/3*x2-lambda*x3=0:

stelsel:={v1,v2,v3}:

 

 

        We bepalen nu de bijbehorende determinant, en onderzoeken voor welke waarden van    deze

        determinant  0  is:

 

C:=Matrix([[3/4-lambda,3,2],[3/4,-lambda,0],[0,1/3,-lambda]]);

Matrix(3, 3, {(1, 1) = 3/4-lambda, (1, 2) = 3, (1, 3) = 2, (2, 1) = 3/4, (2, 2) = -lambda, (2, 3) = 0, (3, 1) = 0, (3, 2) = 1/3, (3, 3) = -lambda})

(1)

solve(det(C)=0);

Error, (in Engine:-Dispatch) badly formed input to solve: not fully algebraic

 

 

 

  

   Nu onderzoeken we, wat de bijbehorende oplossingen zijn:

 

     Voor   :   λ "= - 1/(4)"

 

lambda:=-1/4:

solve(stelsel);

{x1 = x1, x2 = -3*x1, x3 = 4*x1}

(2)

 

===========================================================
Maple v 4

 

 


 

Download uitw_03_m_recent.mw

 

 

Hi,

I have a random variable that follows Uniform(1,4). Now I have a function which is of the following type:

g := a*alpha+b*t/alpha+exp(alpha)

where,

A := RandomVariable(Uniform(c, d));
                 RandomVariable(Uniform(c, d))
f := proc (alpha) options operator, arrow; PDF(A, alpha) end proc;
alpha -> PDF(A, alpha)
#Defining expectation fuction
E := proc (alpha) options operator, arrow; int(alpha*f(alpha), alpha = c .. d) end proc;
alpha -> int(alpha f(alpha), alpha = c .. d)
#g is a function of random variable &alpha;, where a and b are parameter

 

now I want to find the expectation of g and the first derivative of expectation of g,

E(g)

diff(E(g), t)

 

I understand the way I have defined E(alpha) is improper. But please understand my intent and help! here is the maple file also doubt_1.mw

How I can remove RootOf from the solution?

thanks.

root.mw

First 391 392 393 394 395 396 397 Last Page 393 of 2308