MaplePrimes Questions

Hi i am having difficulty converting a text file consisting of words into ascii code. using maple and vice versa.
I dont know how to.

My notepad text is  "(testing)" and i wanted maple to show me "testing"  in ascii code but i just dnt knw how to get it to do it.

Can someone please help me i would be very gratefull

Thank u

 

Hello.  I'm quite new to Maple and I've run into a problem.

My assignment is to create a program that takes input as plaintext, converts it into a matrix X using an alphabet, then encrypts it by multiplying the matrix X by a key matrix M.  Only problem is, I can't even get Maple to recognize a proper if statement.  The if statement is never triggered.

with(Maplets[Elements]):
with(StringTools):
with(LinearAlgebra):

block := 3;

maplet := Maplet(

 

I have a Bivariate Distribution that has a PDF equal to 

 

(1/2)*exp(-RootOf(erf(_Z)*b*exp(exp((-x+a)/b))+b*exp(exp((-x+a)/b))-2*exp((-x+a)/b))^2-RootOf(erf(_Z)*sqrt(Pi)*d+sqrt(Pi)*d-sqrt(2)*exp(-(1/2)*(-y+c)^2/d^2))^2)/Pi

 

(1/2)*exp(-RootOf(erf(_Z)*b*exp(exp((-x+a)/b))+b*exp(exp((-x+a)/b))-2*exp((-x+a)/b))^2-RootOf(erf(_Z)*sqrt(Pi)*d+sqrt(Pi)*d-sqrt(2)*exp(-(1/2)*(-y+c)^2/d^2))^2)/Pi

 

Hi everyone,

I am trying to write a proc for the binomial method for option prices.  I have the following code:

treeStockPrices := proc (s0, X, r, sigma, T, N)

local dt, u, d, a, b, p, L, i, j, k, m;

<p>How do I force values to be shown in scientific notation in a spreadsheet? The Format:Numeric Formatting ... menu selection seems to have no effect in this case. I also can find no option (ie hfloat) or interface parameter (ie Digits) that can be run within a function that will "massage" numbers to be scientific notation.</p>
<p>My application is ... I have a table of values and am doing a calculation ...</p>
<p><maple></p>
<p>DT := table():</p>
Hello, How can I combine a 2d contour plot with a 3d plot? i.e. the contour plot would appear at some z-level in the same box containing the 3d plot. Thank you

Dear all:

   suppossed i have a function as following :

f(x):=2*sin(x)*(sin(x)+I3*sin(3*x)+I5*sin(5*x))

where  x is belong to (0,Pi/2), I3,I5 is defined to I3^2+I5^2 < .232.

i have ploted some curves of f(x) . As to different I3 and I5, the curve of f(x) have different point of intersection with y=1 function, may one point or two  point or three where 0<x<Pi/2.

How come this doesn't work:

> A := {Matrix(2, 2, {(1, 1) = 1, (1, 2) = 1, (2, 1) = 1, (2, 2) = 1}), Matrix(2, 2, {(1, 1) = 0, (1, 2) = 0, (2, 1) = 0, (2, 2) = 0})};

> evalb(`in`(Matrix(2, 2, {(1, 1) = 0, (1, 2) = 0, (2, 1) = 0, (2, 2) = 0}), A));

Maple answers here false. Is the in-command only for numbers and not for matrices? How can I solve this problem?

Thanks!!

I'm working on a project in my Linear Algebra class dealing with Encrypting and Decrypting text. I have been trying for hours to find the right commands to do this the way my professor wants. Here's the question:

(a) Encrypt the following (choosing your own 3x3 key matrix):

"This class is starting to get boring" (Not including the quotation marks. There are 36 characters in this phrase.)

Use blocks of size 3 (ie a 3x12 matrix with all the characters) and the alphabet:

The LinearAlgebra`MatrixManipulation` package is now obsolete with the new version of Mathematica.

Say you had an existing script with commands:

 

TakeRows, TakeColumns, AppendColumns, ZeroMatrix, AppendRows (which are also obsolete)

 

What do you change these commands to?

if anyone could please help me out with this code i would really appreciate it

> cuberootkj := proc (m, n)

local e, tol, x0, x1, x2, maxsteps, counter;

tol := 1/200000;

e := 1;  x1 := m;  x0 := n;

while tol < e do

x2 := (2/3)*x1+(1/3)*x0/x1^2;

e := x2-surd(x0, 3)

end do;

print("root"); x1

end proc;

 

i get this error message: Error, (in cuberootkj) cannot determine if this expression is true or false: 0 < 9399973/5400000-5^(1/3)

Hello,

I want to try to find the Laurent series centered about z=1 for the function f(z)=1/[(z+1)(z+2)] in the annular region |z|>3.  When I use the laurent() function, Maple returns the laurent series that is valid for 0<|z|<2.  Is there some way to restrict the domain of the function to make Maple return a Laurent series for a different domain?

Thanks

I need to solve equation: log[2*sqrt(2+sqrt(3))](y)=log[2+sqrt(3)](y-1) I know (i did it with my hands) that y=8+4*sqrt(3) is a solution of this eqution. But i can not find this solution using Maple. How i can obtain it? P/s/ I solved with maple numerically. It is not enough for me. I need solution namely in form 8+4*sqrt(3). Because it is explicit solution. I am looking forward for answer. Thanks.
hi

I'm looking at Fourier coefficients:

Dn:= (2/L)* int(f*sin(n*Pi*x/L), x=0..L); where L = Pi

and the series

u:= Sum (Dn * sin(n*Pi*x/L)*cos(n*Pi*t/L), n=1..infinity);

When I try to sum the series:

u:= sum (Dn * sin(n*Pi*x/L)*cos(n*Pi*t/L), n=1..10);

I get the error

Error, (in NumericRange) summand is singular in the interval of summation

Now I can see the 0 / 0 thing, but the first term should be 1 and the other terms zero. The first term is 1 if you take limit as n->1

So I have to explicitly state that:

D1:= (2/L)* int(f*sin(Pi*x/L), x=0..L);

Hi!

First 2137 2138 2139 2140 2141 2142 2143 Last Page 2139 of 2428