Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Dear Fellow Maplers,

I am seeing some puzzling inconsistencies in Maple's numerical integration routines, and am reaching out to the Maple community to see if someone out there can help shed some light on what the source of problem might be. 

To illustrate the problem I have constructed a minimal anomalous example.  Consider the following function of two variables:

      g := (1-x) * ln(sqrt(x^2 + y^2 + 1) +1 );

I have a matrix (M) and it has both 0 and 1 as entries. I want to have a sequence/list of all indices associated with the entries equal to one (the others are irrelevant to me). I can use a nested for loop with an if statement, but I find that the easy way out and not very pretty. Is there is more sophisticated way, hopefully faster way of achieving this (using sequences, attributes, select/remove)?

Example:

M:=Matrix([[1,1,0],[0,0,1],[1,0,1]]);

how can i call python code in maple like external call for C++/Java/C#...

i have a text parser written in python and want to use it

can someone help me?

hi i am seeking help for a little problem The question is a part of my coursework but it doesnt make sense to me i dont know how to use maple to construct a model can you please help thanks. On board sailing ships or warships, a lookout stood watch in a crows nest high on the main mast. b) Construct a mathematical model to show how far a lookout can see. Clearly indicate any assumptions you make and define any parameters you use in your formula and in the construction of your model. c...

How do I convert K1*cos(w*t+theta1) + K2*sin(w*t+theta2) to a single K3*sin(w*t+theta3). Maple keeps simplifying to the cos + sin form but that is not user friendly for the signal viewed on the oscilloscope. The conversion is easy to do with a calculator but I want to automate the process in Maple with parameters so I do not have to copy and paste expressions or type them.

 

Thanks for your help,

 

Warren Klope

Can any one help me??

I would like to use permutations choosing only 3 letters of the alphabet with "A" in the permutation.

eg) (a,a,a) (a,a,b).................................(z,z,a) etc

Can any one help me, I would appreciate any help

I'm trying to make an infinite square well of width a, and i want to plot individual solutions along with the walls of the well at x=a and x=-a, does anyone know how to modify my code to show the solution and the vertical lines at x=a and x=-a, id like to also show that the wavefunction is zero at the walls, but due to the equation it continues past them, is there some way i can either modify the equation to stop the plot at x=a and -a (preferable) or blank out the graph after the walls?

Hi

I entered this code :

> printlevel := 2:

> for i to 3 do for j to 3 do i*j end do end do;

but it does not show the result

what should I do?

thx

Hi,

Is there some way i can label the x axis with numbers and an 'a'? I want to make an infinite square well of width 'a' so i'd like to keep the central zero and put an 'a' and '-a' on the x axis on either side of the origin.

So far i have this:

restart;

a:=1;

for n from 1 by 2 to 3

Hello, I have tried to solve a system of ODE about the gyroscope for a week. I have entered the following commands : >eq1:=(l^2+r^2/2)*(sin(theta(t))^2*diff(diff(psi(t),t),t)+2*diff(psi(t),t)*diff(theta(t),t)*cos(theta(t)))-r^2*(cos(theta(t))*diff(psi(t),t)+omega(t))*diff(theta(t),t)=0;>eq2:=(l^2+r^2/2)*(diff(diff(theta(t),t),t)-(diff(psi(t),t))^2*sin(theta(t))*cos(theta(t)))+r^2*(diff(psi(t),t)*cos(theta(t))+omega(t))*diff(psi(t),t)*sin(theta(t))=g*l*sin(theta(t)); >eq3:=diff(diff(psi(t...

I am an engineering student working with maple. I'm currently working on a large worksheet with lots of sections. I would like to be able to prevent maple from expanding (sub)sections when calculating commands within them when I re-execute the whole sheet and I would not like to comment them out. Is this possible?

I have searched this forum before, but to no avail, who can help me.

Thank you in Advance!

I want to know for what combinations of parameters (x,y) the following holds: Prob(X(x) + Y(y) < z) = alpha. X and Y are random variables (I want to look at different distributions), z and alpha are constants. I tried the following (simplified with X=Y):

 

with(Statistics):

how to solve

-x^8*a^4+48*z^4+48*x^7*a+8*z*x^6*a-1 = 0


for a

i tried

 

solve(-x^8*a^4+48*z^4+48*x^7*a+8*z*x^6*a-1 = 0, a)

 

and got

 

HI

Can anyone help me.

I would like to use the combin package using Maple 12. The question is how can I generate the letters of the alphbet (26 letters) choosing only 3 combinations which must include the letter "A" 

any help would be appreciated

Hi!

Problem: How can I prevent Maple from checking against the simplification table?

Eg.

I enter

f := 5 y z x + 3 x^2;

and 5zyx + 3x^2 is returned.

Then I enter

g := 3 x^2 + 5 x y z;

and again 5zyx + 3 x^2 is returned, but not wanted, because I wanted to have a different (visual) representation of the polynomial.

How can I prevent this? Or how can I delete the first representation from the simplification...

First 1756 1757 1758 1759 1760 1761 1762 Last Page 1758 of 2259