## How to sequentially print two matrix?...

When I print 2 matrix it always try to multiply them. How to force just to show?

## How Do I Print Text Followed by Math Without Comma...

I have checked many Maple pages and I found nowhere the answer to this question.

EQ:= s^2-4*s+1=3;

I need to print the following statement:

The Equation Is: EQ

I need the equation to appear where EQ is.

Thank you guys!

I appreciate it.

## How to print the final value?...

>mylist:=462;

mylist:=462

>kekuncirahsia:=proc(n) local c,d,r,sum; c:=n; while (c>9) do sum:=0; d:=c; while (d>9) do r:=irem(d,10); sum:=sum+r; d:=iquo(d,10);od; c:=sum+d;print(c);od;end;

>kekuncirahsia(mylist);

12

3

Hi, anyone know how i need to write my command to get this >> kekuncirahsiafinal:=3

I just want it to print the last digit..

Thank you~=]]

## How to plot by for loop...

I want to plot a function given different value combinations of parameters. I used the following code and it doesn't work. Could anybody please help?

## Having trouble with print...

Hi, I'm having trouble with print doing strange things:

a:=1235
1235

b:=751
751

p:=1601
1601

print(The solution `to` a^x = b (`mod ` p) is x = 1323)

1601 The solution to (1235^x) = 751 mod is x = 1323

Why has the 1601 gone to the beginning, and how do I make it go to the correct place?

Also is it possible to remove the brackets from around 1235^x?

And is it possible to make the brackets (that I have put in) go around the `mod` p?

EDIT:

If I do: print(The solution `to` a^x = b (`mod ` ,p) is x = 1323)

I get:  The solution to (1235^x) = 751 (mod, 1601) is x = 1323

So is there a way to just remove the comma on the output?

Thanks.

## Strange behavior of whattype...

with(Student[LinearAlgebra]);
example1 := Matrix([[1, 2, 3], [4, 5, 6], [6, 7, 8]]);
whattype(example1);

testproc := proc (A) print(whattype(A)) end proc;

testproc(example1);

The whattype() calls output:

Matrix
proc() ... end proc

I don't understand why what is a Matrix type outside the procedure seems to change into this unrelated type? This is really bizarre. I feel like it may be something outside my code? Thank you.

## Repetition with for...

Hi all

I have this repetition with for:

for i from 1 to 10000 do x[i]:=sqrt(i); print(i); end do:

I want to know at the same time when the repetition is working, the value of i where the calculation is. Not at the last time of the calculation of all the repititions.

Example: when i=1, I want to see 1, when i=600, I want to see 600 at the same time of execution the repetition and not the last of the repetition

Thank you

## Font size for printing worksheets from Maple 18...

Hi,

I am working on a Windows machine. In older Maple versions, decreasing the font size for the screen display (via zoom factor) also decreased the font size for the printout. But now the printout comes with a pretty large font size and does not change when using the zoom factor. It practically makes no sense anymore to print. How can I decrease the fonts for the printout to my liking?

Thanks.

heide

## How to print indexed names? ...

I have double indexed functiions f[j,k] of one variable and double indexed coefficients a[j,k].

I want my print do look like a[1,1]f11+a[1,2]f12 that is, the values of a[j,k] should appear beside the functions' names, like

7f11+2f12-3f21 etc.

Thank yopu for any help

## The output only "print" not results...

Hi,

why the output for this program just only "print BChange" not a matrix?

Der:=proc(A,n)

local i,j,k,t,S1,S2,l,C,sols,eqns,BChange;

C:=matrix(n,n); BChange:=matrix(n,n); eqns:={};

for i to n-1 do

for j from i+1 to n do

for l to n do

S1:=sum(A[i,j,k]*C[k,l],k=1..n);

S2:=sum(A[k,j,l]*C[i,k]+A[i,k,l]*C[j,k],k=1..n);

eqns:=union(eqns,{S1=S2})

end do

end do

end do;

sols:=[solve(eqns)];

t:=nops(sols);

for i to t do

for j to n do

for k to n do

BChange[j,k]:=subs(sols[i],C[j,k])

end do;

end do;

end do;

print (BChange)

end proc:

> A1 := array(sparse, 1 .. 2, 1 .. 2, 1 .. 2, [(1, 1, 2) = 1]):
> Der(A1, 2);
print BChange

thanks

witribm

## print across screen instead of down...

this module looks at the numbers in the list and reports "true" if they are nonnegint (whole numbers).  is there a way to make the printout go across the page instead of down?

-3
false
-2.5
false
0
true
1
true
3
-
2
false
Pi
false
(1/2)
5
false

les

## Problem with printing out values ...

To begin with my code is:

with(Statistics);

N:=RandomVariable(Normal(5,2))

for i from 1 by 1 to 100 do

OS[i]:=Sample(N,50)

end do

for i from 1 by 1 to 100 do

print(i)

from j from 1 by 1 to 1000 do

BS[i,j]:=Bootstrap('Mean',OS[i],replications=1)

end do

end do

My goal is to produce as an output in the software's screen the values of 1000 bootstrap means for each of 100 original samples in order to export the results to Excel. Based on my basic knowledge of programming I thought that I can do that through the use of the vectors. Unfortunately though when I trigger the operation the software seems to be evaluating (with the homonymous indication in the bottom left corner of the screen) it for an indefinite period of time, obliging me to stop it at some point. However, let me point out that when I do the same process for i and j 4 and 10 for example then I have results, therefore presumably my code is correct. I know that I can do the same operation in Excel and I have already created a respective macro, however I wanted to use Maple in order to take advantage of its fast operation of calculations, which is pointless in case that I have to wait more time for the results than I have already waited to be eventually produced.

Any thought and idea would be appreciated, thank you very much in advance!

## wrong format when copy to notepad from maple...

for i from 0 to 3 do print("rawData[", i, "] = new double[] { ", hello(i+1), ",", data[i+1], "};") end do

wrong format after copy to notepad from the maple 15

do not know why it insert a empty line, and make "};" in another line

and there is unexpected "

wrong format example:

"rawData[", 0, "] = new double[] { ", 73.25, ",", 0.1510425143,

"};"
"rawData[", 1, "] = new double[] { ", 73.15, ",", 0.3974080269,

"};"
"rawData[", 2, "] = new double[] { ", 72.85, ",", 0.4661517269,

"};"
"rawData[", 3, "] = new double[] { ", 73.25, ",", 0.3974080269,

"};"

expected format:
rawData[0] = new double[] { 25.0, 20.0 };
rawData[1] = new double[] { 27.0, 34.0 };

## Is there a way to print a polynomial up to a certa...

Let's say I have something like

p1:=((a+b+c)*t + (a^2 + b^2)*t^3)*(c^3a^b + a*b)*t^2 + (1/(b^2 + a^3)) + b + 1/c^7)*t^7 = 0;

or something complicated like that.

Would it be possible to print the polynomail up to say order 3?

I want to be able to print

collect(expand(p1),t) up to order 3 and see the resulting coefficients