MaplePrimes Questions

hello everyone, this is my first time visit mapleprimes, i just started to use maplets programming, so there are a lot of things i still don't know about this maplet, if i ask some stupid questions please be patient with me.

so i've been trying to write a maplet that will calculate some simple functions such as addition, multiplication, division,...,it's kind of like a calculator. 

i've been trying all day, and no luck so far. help please. 

Ok, I am not a very experienced user, but I am mystified by this.  The essence of the problem is that when entering a range of values in an integration, I get a different answer if the range is given as 0..1 to if it is given as 0.0..1 or 0..1.0. Here is the program


### dgig
dgig := proc(psi, chi, lambda, t)
    (psi/chi)^(lambda/2)*t^(lambda - 1)*exp(-(psi*t+chi/t)/2)/\
    (2*BesselK(lambda,sqrt(chi*psi))):
end: ## End of dgig

if i want to create a table which contain buttons label from 0-9 so when i calculate n! i can use the number buttons on the table? please help. 

Suppose I have a file of text that I would like to read into a Maple (16) worksheet as a string. (I have in mind encrypting the string using the RSA encryption scheme.)

If I paste the text directly into the worksheet and surround it by ",  I have no problem, but if I try to read, for example, a file some_text.txt using a command like

     read("C:\\Users\\MyName\\Desktop\\some_text.txt");

I've created a matrix in which each row has two values. I'm using Add(i,i=[matrixName][row element number])/2 to find the mean of each row, which I'd like to transfer to a corresponding element number in an array or a vector, but so far I can only get it to work on single rows or (if I use only Add(i,i=[matrixName]/2), understandably, the mean of the whole matrix. Is there a way to do it wholesale?

Hi! I need help with my project I dont know where to even start!

Question:

Consider a simple polymer , which consist of long chains of simple molecules attached to each other, e.g:

....-CH2-CH2-CH2-...

If the interaction energy between consecutive sections ca be ignored or is low enough, the chain can be bend around at varios places to form varios configurations. One can start by  fixing the first section...

i found this program in mapleprimes 

Hello! I am trying to graph the following: 

dx/dt = -10*x + 10*y 
dy/dt = r*x - y - x*z 
dz/dt = -(8/3)*z + x*y 

where x, y, and z are all functions of time (t). Solve the equations subject to the constraint that r = 25 and the initial conditions that at t = 0, x = -1, y = -1, and z = 1. 


This is my code:
DE*plot3d({d*x(t)/dt = -10*x(t...

Hi everyone 

Is there a method in maple to plot a rectangular matrix.

Amr


Hi,

I am trying to proof that the right hand side is equal to the left hand side. When i do step by step, it clearly shows that my "c" and "d" are exactly the same thing. But when i use "evalb" and "verify", it comes out with "false". May I kwow what went wrong please?

Thanks.

See my code:

----------------

restart;

with(plots); with(PolynomialTools); with(LinearAlgebra);

f := (x, y) -> ((2*x^2+y^2*(x^2*(-2+sqrt(1/x^4+4/(x^2*y^2)+4/y^4+4))-1))/(4*x^2-2*y^2+4))^(1/2) ;

g := diff(f(x, y), x);

plot([g(.1, y), g(1, y), g(3, y)], t = 0 .. 10);

-----------------

Here is error message:

Warning, unable to evaluate the functions to numeric values in the region; see the plotting...

Hi,

I have a simulation file consisting of a number of modelica custom componets and maple custom components. I initially generated Random Data with mean 1 and standard deviation 0.5. Constructed all the blocks and combined with a multibody system, it worked fine. However, when I generated Random data with zero mean, then I have this error/problem "Simulation Problem: maximum number of event iterations reached (100) at 1.85000".

I used a couple of pre() function with clock=sample(0,0.01...

Hi.

I can explain my question on the simplified example:

 

sol1 := dsolve({diff(x(t), t) = x(t), x(0) = 0.0}, numeric); 

func := q -> op(2, op(2, sol1(q))); 

dsolve({diff(z(t), t) = func(t) * z(t), z(0) = 0.1});

 

But i take a throw. It is clear, because, I try to call op(2, sol1(t)). Which way I whould use to solve my problem?

Hi, I have a 4x4 matrix

How can I arrange it diagonally and make it into 3 repleating matrix? I'll get a 12x12 matrix, with the middle representation having negative values?

For example,

A:=Matrix([[2,2,8,5],[6,3,4,9],[5,5,7,4],[2,1,3,2]]);

I am trying to get something like B:=DiagonalMatrix(A,-A,A);

May I know what is the correct way of doing it please? Thanks.

First 1738 1739 1740 1741 1742 1743 1744 Last Page 1740 of 2434