MaplePrimes Questions

Hi everyone,

I have a great problem with the evaluation of following definite integral

> restart;

> int((t-x)^2)/(1+2t+(1/2)t^2-ln(t^2+2t+2)t-ln(t^2+2t+2)+arctan(1+t)t^2+2arctan(1+t)t+ln(2)t+ln(2)-(pi/4)t^2-(pi/2)t)^2,t=0..x)

I have tried different classical commands but Maple doesn't give an answer. Probably, it's just a silly fault.

Does anyone knows how to solve it?

Thanks.

Is it possible to make scatter-histogram plots in Maple13 like these

http://stackoverflow.com/questions/6508769/matplotlib-scatter-hist-with-stepfilled-histtype-in-histogram ?

I achieved the scatter-plot, but what about the additional histograms?

Hi,

 

I'm using Java OpenMaple interface to call Maple functions from Java on Ubuntu Linux. I'm following the examples provided on Maple website. My Java code:

 

import com.maplesoft.openmaple.*;

import com.maplesoft.externalcall.MapleException;

class test {

    public static void main( String args[] ) throws Exception {

        String[] a = {"java"};

        Engine  t = new Engine( a, new EngineCallBacksDefault(), null, null );

        try {

            t.evaluate( "factor(-8*((16*I)*g**4*(-4*mc**2+u)**(-2)*(4*mb**2-u)**(-2)*u**(-1)*(12*mb**2-u)*(-4*s*mb**2+16*mb**4-4*u*mb**2+t*u-4*t*mb**2)*s*(4*s*mb**2+4*mc**2*s+16*mc**2*mb**2-s**2-4*t*mc**2+t**2-4*t*mb**2)*(12*mc**2-u)+(16*I)*(4*s*mb**2+4*mc**2*s+u**2-4*mc**2*u+16*mc**2*mb**2-4*u*mb**2-s**2)*(12*mc**2-t)*g**4*(t-4*mb**2)**(-2)*(4*mc**2-t)**(-2)*(-t+12*mb**2)*(-4*s*mb**2+16*mb**4-4*u*mb**2+t*u-4*t*mb**2)*s*t**(-1))**2);" );

        }

        catch ( MapleException e ) {

            System.out.println(e);

        }

    }

}

 

Maple throws exception:

com.maplesoft.externalcall.MapleException: Error, (in evala/Factors) input must be polynomials over the integers

The input polynoial is valid (when coping and pasting `factor(...)` directly into Maple interface, all works). When trying to factor simple polynomials like "x**2 - I*x" all goes fine too. Tried both Maple 17 and 18 (Linux).

PS. There is no problem when running this code on OS X (I tried Maple 16, 17, 18),  but I need to be able to run Maple with Java on my Linux cluster.

 

Hello everyone,

How can unknown values in boundary conditions of system ODEs be determine by using shooting technique. See the work sheet here Sht.mw

Thanks.

How  we can decide whether a polynomial f is a linear combination of some polynomials g1,...,gm?

For example if f=x^2+y^2 and g1=y+x^2 , g2=y^2-y then f=g1+g2.

I have a set of equations icsi and a set of variables v. How do i assign each solution to the variable before solving the next equation?

I tried- for i from 1 to 3 do solvedi := solve(icsi, vi);assign(solvedi); end. This didn't work for me.

Which Maple versions will run on Windows 10? Windows 10 is offered free to users of Windows 7 and 8.1. Several (including old) Maple versions run on Windows 7.

Hi,

I tried document blocks, copied my codes in an area then created a block however in collapse mode all of my codes are seen in a line in series! How can i hide my codes and only show output?

Hi everyone. Can enuone help with small parameter method?

restart;

eq := diff(x(t), `$`(t, 2))-epsilon(alpha*x(t)^4-beta)*(diff(x(t), t))-x(t)+x(t)^3;

subs(x(t) = 1+epsilon*x[1](t)+epsilon^2*x[2](t), eq);

pls help with this...

Let M be the matrix [[]] means that a matrix without any array. If we call RowDimension(M) then it output is 1 and we know that it is zero. What I have to do? It is hilarious that the RowDimension([[1]])=RowDimension([[]])!!!

Hello;

 

I wish to express a tensorial equation or expression a simplified vector form.

 

In the worksheet attached, I was trying to express Maxwell Equations in the familiar vector form from the tensorial form, using the F[mu,nu] tensor.

 

But I cannot achieve the familiar tensor form. If someone can give a hand, it would help me a lot.

 

HowtoExpressCompactForm.mw

 

 

Does anyone know how to achieve the state transition of a prismatic joint between active and passive in MapleSim? Recently, I want to realize such a state transition of a prismatic joint. Specifically, during a simulation, the joint can either be motion-actuated or passive according to some conditions. Actually, I tried to use SimMecahnics, but I failed. Hope anyone can give me some constructive suggestions. Many thanks!

I know that the "Rank(M)" command of Maple computes the rank of matrix M and I know that the "RowDimension(M)" gives the number of rows of M. Is there any command to gives the number of nonzero rows or columns of M?

For example, Let M be the following matrix. I want [2,3] as the output  where the first component ( second component. resp) is the number of nonzero rows (nonzero columns. resp) of M.

                              [1  5  6]

                       M=   [0  0  0]

                              [2  3  5]

I am beginner in maple. And my field is Differential geometry. I am trying this calculation through maple.

I have these vector fields e1=z2D_x,e2=z2D_y,e3=z2D_z

Now I have to calculate 2g(e1e3,e1) using maple. where The Riemannian connection  of the metric tensor g is given by Koszul's formula

2g(XY,Z)=Xg(Y,Z)+Yg(Z,X)Zg(X,Y)g(X,[Y,Z])g(Y,[X,Z])+g(Z,[X,Y])

By calculated manually I got 2g(e1e3,e1)=2g(−(2/z) e1,e1)

So help me in simplifying tedious calculations using maple. I will try to learn.

hi  for example to calculate the following

residue((Psi(-z)+Eulergamma)^2*h(z), z = 2)

gives

3*h(2)+(D(h))(2)

but it possible to write 

as( Psi(2)+Eulergamma(z))*h(2)+(D(h))(2)

so that 

and Psi(z)+Eulergamma== harmonicNumber(z-1)

the result must be

harmonicNumber(2)*h(2)+(D(h))(2)

it is possible that Maple gives explit form of the values function avoid to calculate automatic.

thanks

First 1268 1269 1270 1271 1272 1273 1274 Last Page 1270 of 2434