## i can't find our where my error is......

Hi,

Sorry to ask such a stupid question but I can't find out where my error is. Probably it's so huge it blinds me!

The double loop and the matrix product F^+ . F should give the same result, no? (it seems that F^+ . F has its rows reordered ?)

 > restart:
 > N   := 3: P   := 2: niv := [seq(Z[i], i=1..N)]; f   := Matrix(N^P, P, (i,j) -> `if`(j=P, niv[(i mod 3)+1], niv[iquo(i-1,3)+1]));  (1)
 > ds := subs(niv =~ [\$0..N-1], f); (2)
 > vs := [ seq(V__||i, i=1..P)]: es := unapply( sort( [ seq( mul(vs ^~ [entries(ds[i,..], nolist)]), i=1..N^P) ] ), vs); (3)
 > ff := convert([ seq(es(entries(ffd[i,..], nolist)), i=1..N^P) ], Matrix); UnityRoots := [solve(z^3=1, z)]: F := simplify(subs(niv =~ UnityRoots, ff)) /~ sqrt(N^P): (4)

Scalar products of pairs of comumn vectors

F must be an orthogonal array

 > for i1 from 1 to N^P do   for i2 from 1 to N^P do     printf("%a ", simplify(add(F[..,i1] . F[.., i2])))   end do:   printf("\n"): end do: printf("\n");
 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1

or more simply:

 > simplify(F^+ . F) (5)
 >

## How to put a symbol (like greek) before a variable...

Can I do something like it?  ## op command does not work!!!...

Dear Users!
Hope everyone is fine here. I have some questions about the following code:

Sol := {u[1, 1, 1, 1] = 0.2754389666e-1, u[1, 1, 1, 2] = 0.1305849194e-1, u[1, 1, 1, 3] = 0.2886163307e-2, u[1, 1, 1, 4] = -0.7346547512e-3, u[1, 1, 2, 1] = 0.4659732849e-1, u[1, 1, 2, 2] = 0.1466736306e-1, u[1, 1, 2, 3] = 0.2615590961e-3, u[1, 1, 2, 4] = -0.2999417306e-2, u[1, 2, 1, 1] = 0.4659732850e-1, u[1, 2, 1, 2] = 0.1466736306e-1, u[1, 2, 1, 3] = 0.2615590934e-3, u[1, 2, 1, 4] = -0.2999417305e-2, u[1, 2, 2, 1] = 0.7816751150e-1, u[1, 2, 2, 2] = 0.1319905841e-1, u[1, 2, 2, 3] = -0.3594991974e-2, u[1, 2, 2, 4] = -0.6810219469e-2, u[2, 1, 1, 1] = 0.4277449264e-1, u[2, 1, 1, 2] = -0.7962732407e-2, u[2, 1, 1, 3] = -0.1373208839e-1, u[2, 1, 1, 4] = -0.2756504221e-2, u[2, 1, 2, 1] = 0.7104313232e-1, u[2, 1, 2, 2] = -0.2934293200e-1, u[2, 1, 2, 3] = -0.1500623941e-1, u[2, 1, 2, 4] = -0.3113543133e-2, u[2, 2, 1, 1] = 0.7104313230e-1, u[2, 2, 1, 2] = -0.2934293199e-1, u[2, 2, 1, 3] = -0.1500623942e-1, u[2, 2, 1, 4] = -0.3113543128e-2, u[2, 2, 2, 1] = .1180017068, u[2, 2, 2, 2] = -0.7162229544e-1, u[2, 2, 2, 3] = -0.8898045960e-2, u[2, 2, 2, 4] = -0.9223166732e-2};
My aim is to write all the entries in Sol like the following way

u[1, 1, 1, 1] := 0.2754389666e-1;

u[1, 1, 1, 2] := 0.1305849194e-1;

u[1, 1, 1, 3] := 0.2886163307e-2;

and so on. For this I used the following logic (op command)

for i from 1 by 1 while i <= 32 do

lhs(op(i, Sol)) := rhs(op(i, Sol))

end do;

Special request

## How to plot selected point from a set of points...

Dear Users!

Hoped everyone fine here. I have three main questions regarding the maple code given bellow:

restart; with(LinearAlgebra); with(plots);

alpha := 1; beta := 1; theta := 1/2;

UU := sinh(x)*sinh(y)*sinh(z)*exp(-1.*t);

NN := 3; L := 0; R := 1; T := 1; N := NN; Mx := NN; My := NN; Mz := NN; `&Delta;x` := (R-L)/Mx; `&Delta;y` := (R-L)/My; `&Delta;z` := (R-L)/Mz; `&Delta;t` := (R-L)/N;

kappa := 1; kappa := 2/x^2; kappa := 1/x^2; kappa[X] := x^2+y^2+z^2+1; kappa[Y] := x^2+y^2+z^2+1; kappa[Z] := x^2+y^2+z^2+1; kappa := 0; NL := 3;

ics := [seq(seq(seq([u[i, j, k, 0] = eval(UU, [x = i*`&Delta;x`, y = j*`&Delta;y`, z = k*`&Delta;z`, t = 0]), u[i, j, k, -1] = eval(u[i, j, k, 1]-2*`&Delta;t`*(eval(diff(UU, t), t = 0)), [x = i*`&Delta;x`, y = j*`&Delta;y`, z = k*`&Delta;z`, t = 0])][], i = 0 .. Mx), j = 0 .. My), k = 0 .. Mz)];

bcs := [seq(seq(seq([u[0, j, k, n] = eval(UU, [x = 0, y = j*`&Delta;y`, z = k*`&Delta;z`, t = n*`&Delta;t`]), u[Mx, j, k, n] = eval(UU, [x = L, y = j*`&Delta;y`, z = k*`&Delta;z`, t = n*`&Delta;t`])][], j = 0 .. My), k = 0 .. Mz), n = 1 .. N), seq(seq(seq([u[i, 0, k, n] = eval(UU, [x = i*`&Delta;x`, y = 0, z = k*`&Delta;z`, t = n*`&Delta;t`]), u[i, My, k, n] = eval(UU, [x = i*`&Delta;x`, y = L, z = k*`&Delta;z`, t = n*`&Delta;t`])][], i = 1 .. Mx-1), k = 0 .. Mz), n = 1 .. N), seq(seq(seq([u[i, j, 0, n] = eval(UU, [x = i*`&Delta;x`, y = j*`&Delta;y`, z = 0, t = n*`&Delta;t`]), u[i, j, Mz, n] = eval(UU, [x = i*`&Delta;x`, y = j*`&Delta;y`, z = L, t = n*`&Delta;t`])][], i = 1 .. Mx-1), j = 1 .. My-1), n = 1 .. N)];
Sol := {u[1, 1, 1, 1] = 0.2366497936e-1, u[1, 1, 1, 2] = 0.7589975856e-2, u[1, 1, 1, 3] = 0.6029906475e-3, u[1, 1, 2, 1] = 0.3778786317e-1, u[1, 1, 2, 2] = 0.7126415819e-2, u[1, 1, 2, 3] = -0.1197885714e-2, u[1, 2, 1, 1] = 0.3778786315e-1, u[1, 2, 1, 2] = 0.7126415820e-2, u[1, 2, 1, 3] = -0.1197885718e-2, u[1, 2, 2, 1] = 0.6038763054e-1, u[1, 2, 2, 2] = 0.4264591907e-2, u[1, 2, 2, 3] = -0.3509477851e-2, u[2, 1, 1, 1] = 0.3171958616e-1, u[2, 1, 1, 2] = -0.1327161715e-1, u[2, 1, 1, 3] = -0.4628647419e-2, u[2, 1, 2, 1] = 0.4979852397e-1, u[2, 1, 2, 2] = -0.3060811899e-1, u[2, 1, 2, 3] = -0.344914876e-4, u[2, 2, 1, 1] = 0.4979852397e-1, u[2, 2, 1, 2] = -0.3060811898e-1, u[2, 2, 1, 3] = -0.3449150010e-4, u[2, 2, 2, 1] = 0.7882396741e-1, u[2, 2, 2, 2] = -0.6192340018e-1, u[2, 2, 2, 3] = 0.1156615222e-1}

Using set of points given in ics, bcs and Sol

1. I want to contruct a vector at any time level (by fixing fourth suffix like u[i,j,k,n]) for i = 0..Mx,j=0..My,k=0..Mz and then find its L2 and L[infinity] norms.

2. Next I want contruct a vector by fixing two suffixes like u[i,j,k,n]) for i = 0..Mx,j=0..My and plot a surface in 3D

3. Finally I want to construct a vector by fixing three suffixes like u[i,j,k,n]) for i = 0..Mx, and plot a curve in 2D.

I'm waiting for your positive respone. I shall be very thankfull to you in advance.

Special request to:
@acer @Carl Love @Kitonum @Preben Alsholm

## How to define an absolute color scale in matrixplo...

Hi,

I need to plot some correlation matrices C1, C2, ... and I use matrixplot for this.
I would like to use the same absolute scale (-1..+1) for all of them.
For instance is I decide to uses colorscheme=["blue", "white", "red"] I would like blue to correspond to value -1, white to value 0 and red to value 1.
Unfortunately colorscheme set to blue the cell with the mininum value (not necessarily -1) and to red the maximum one (not necessarily +1).
Here is an example

restart:
with(plots):
with(Statistics):
randomize():
N := 10:
P := 3:
A := Sample(Uniform(0, 1), [N, P]):
C := CorrelationMatrix(A):
matrixplot(
C,

heights=histogram,
axes=frame,
​​​​​​​  gap=0.25,
​​​​​​​  color=((x,y)->(C[x,y]+1)/2),
​​​​​​​  orientation=[0, 0, 0],
​​​​​​​  lightmodel=none,
​​​​​​​  tickmarks=[[seq(i+1/2=A||i, i=1..P)], [seq(i+1/2=A||i, i=1..P)], default],
​​​​​​​  labels=[("")\$3]​​​​​​​
​​​​​​​  );

​​​​​​​I also tried to use color=((x,y) -> (C[x, y]+1)/2) instead of colorscheme but here again matrixplot uses a local scale defined by the reange of the correlation matrix to plot.

I fixed this by using something like seq(seq(PLOT(POLYGONS(...), i=1..P), j=1..P) instead of matrixplot, but I think it is a shame to do so.

So my question: is it possible to force matrixplot not to use a scale defined by the matrix to plot, but a "user" scale?

PS: I'm using Maple 2015

## Problem in finding the solution of linear algebrai...

Dear Users!

Hope you would be fine with everything. I want to find the solution of linear algebric equations but fsolve command not working please see and fix this problem. I shall be very thankful.

C := 3.19153824321146142351956847947*tau-19.1492294592687685411174108768*tau+111.703838512401149823184896781*tau+3.19153824321146142351956847947*tau-44.6815354049604599292739587124*tau+622.349957426234977586315853494*tau;
C := 51.0646118913833827763130956714*tau-612.775342696600593315757148056*tau+51.0646118913833827763130956714*tau-1429.80913295873471773676667880*tau;
C := -1.06073680388443795908856507616+3.19153824321146142351956847947*tau+53.1609155734306093706448370717*tau+1672.89412862088744108725223170*tau+3.19153824321146142351956847947*tau+27.6286096277389179824882892361*tau+1026.57792701153122226218722129*tau;
C := -1.08847004231036963538035920033+3.19153824321146142351956847947*tau+62.6399144226357196540662623767*tau+2040.52109049201342887896297462*tau+3.19153824321146142351956847947*tau+37.1076084769440282659097145411*tau+1242.54090729537544551915515930*tau;
C := -1.05523181556926815105314303389+3.19153824321146142351956847947*tau+72.7671212023804312453829273862*tau+2472.93216226733267613216245895*tau+3.19153824321146142351956847947*tau+47.2348152566887398572263795506*tau+1512.91667059477930731128800348*tau;
C := -.922876006485286011069063957991+3.19153824321146142351956847947*tau+82.9822841707707093164204255644*tau+2971.36790137532483139495115633*tau+3.19153824321146142351956847947*tau+57.4499782250790179282638777288*tau+1847.90980220852701343747673000*tau;

fsolve({seq(`\$`(C[l1], l1 = 0 .. 5))});

Special request to:
@acer @Carl Love @Kitonum @Preben Alsholm

## How to "stack" the procedures generated by dsolve ...

Hi,

I solve numerically an ode for different values of its parameters ( dsolve(..., numeric, parameters=[...] ) and I would like to "stack" the different solutions in a container (the container (list, vector, table) is of no matter).

Here is a notional example where I try to construct a sequence where the first element should be the solution when the parameter is equal to 1 and second one when the parameter is equal to 2.
It happens that some "premature evaluation" seems to occur which makes the two elements identical.

Please do not pay attention to the obvious simplicity of the problem: the true one is more complicated but can be illustrated by the on below.

 > restart:
 > f := dsolve({diff(x(t),t)=A*t, x(0)=0}, numeric, parameters=[A]); (1)
 > k := 1: for a in [1, 2] do   f(parameters=[a]):   printf(" f(1) = %a\n", f(1)):   g||k := unapply(f(t), t):   for kk from 1 to k do     printf("g%d(1) = %a\n", kk, g||kk(1)):   end do:   k := k+1:   print(): end do:
 f(1) = [t = 1., x(t) = .500000000000001] g1(1) = [t = 1., x(t) = .500000000000001] f(1) = [t = 1., x(t) = .999999999999999] g1(1) = [t = 1., x(t) = .999999999999999] g2(1) = [t = 1., x(t) = .999999999999999] (2)
 > # how must I correct this in order to prevent the # "over writting" of g1 when g2 is instanciated # and get # #  f(1) = [t = 1., x(t) = .999999999999999] # g1(1) = [t = 1., x(t) = 0.5] # g1(2) = [t = 1., x(t) = .999999999999999] #
 >

## Similar algebraic equations...

Dear Users!
Hope you all are fine with everything. How we can identify the same equations from a number of equations using maple command, like
Eq1:=5.09295817894067*`&tau;u`[1, 1]-30.5577490736439*`&tau;u`[2, 1]+178.253536262923*`&tau;u`[3, 1]-30.5577490736439*`&tau;u`[1, 2]+183.346494441862*`&tau;u`[2, 2]-1069.52121757753*`&tau;u`[3, 2]+178.253536262923*`&tau;u`[1, 3]-1069.52121757753*`&tau;u`[2, 3]+6238.87376920228*`&tau;u`[3, 3];
Eq2:=5.09295817894067*`&tau;u`[1, 1]+10.1859163578814*`&tau;u`[2, 1]+15.2788745368241*`&tau;u`[3, 1]-30.5577490736439*`&tau;u`[1, 2]-61.1154981472883*`&tau;u`[2, 2]-91.6732472209439*`&tau;u`[3, 2]+178.253536262923*`&tau;u`[1, 3]+356.507072525849*`&tau;u`[2, 3]+534.760608788841*`&tau;u`[3, 3]-3/7;
Eq3:=5.09295817894067*`&tau;u`[1, 1]-30.5577490736439*`&tau;u`[2, 1]+178.253536262923*`&tau;u`[3, 1]+10.1859163578814*`&tau;u`[1, 2]-61.1154981472883*`&tau;u`[2, 2]+356.507072525849*`&tau;u`[3, 2]+15.2788745368241*`&tau;u`[1, 3]-91.6732472209439*`&tau;u`[2, 3]+534.760608788841*`&tau;u`[3, 3]-9/7;
Eq4:=5.09295817894067*`&tau;u`[1, 1]+10.1859163578814*`&tau;u`[2, 1]+15.2788745368241*`&tau;u`[3, 1]+10.1859163578814*`&tau;u`[1, 2]+20.3718327157631*`&tau;u`[2, 2]+30.5577490736484*`&tau;u`[3, 2]+15.2788745368241*`&tau;u`[1, 3]+30.5577490736484*`&tau;u`[2, 3]+45.8366236104784*`&tau;u`[3, 3]-12/7;
Eq5:=5.09295817894067*`&tau;u`[1, 1]-30.5577490736439*`&tau;u`[2, 1]+178.253536262923*`&tau;u`[3, 1]+50.9295817894067*`&tau;u`[1, 2]-305.577490736439*`&tau;u`[2, 2]+1782.53536262923*`&tau;u`[3, 2]+504.202859715131*`&tau;u`[1, 3]-3025.21715829077*`&tau;u`[2, 3]+17647.1000900295*`&tau;u`[3, 3]-18/7;
Eq6:=5.09295817894067*`&tau;u`[1, 1]+10.1859163578814*`&tau;u`[2, 1]+15.2788745368241*`&tau;u`[3, 1]+50.9295817894067*`&tau;u`[1, 2]+101.859163578814*`&tau;u`[2, 2]+152.788745368241*`&tau;u`[3, 2]+504.202859715131*`&tau;u`[1, 3]+1008.40571943027*`&tau;u`[2, 3]+1512.60857914560*`&tau;u`[3, 3]-3;
Eq7:=5.09295817894067*`&tau;u`[1, 1]+10.1859163578814*`&tau;u`[2, 1]+15.2788745368241*`&tau;u`[3, 1]-30.5577490736439*`&tau;u`[1, 2]-61.1154981472883*`&tau;u`[2, 2]-91.6732472209439*`&tau;u`[3, 2]+178.253536262923*`&tau;u`[1, 3]+356.507072525849*`&tau;u`[2, 3]+534.760608788841*`&tau;u`[3, 3]-3/7;
Eq8:=5.09295817894067*`&tau;u`[1, 1]+10.1859163578814*`&tau;u`[2, 1]+15.2788745368241*`&tau;u`[3, 1]+10.1859163578814*`&tau;u`[1, 2]+20.3718327157631*`&tau;u`[2, 2]+30.5577490736484*`&tau;u`[3, 2]+15.2788745368241*`&tau;u`[1, 3]+30.5577490736484*`&tau;u`[2, 3]+45.8366236104784*`&tau;u`[3, 3]-12/7;
Eq9:=41.7622570673196*`&tau;u`[3, 1]+41.7622570673196*`&tau;u`[1, 3]+15.2788745368220*`&tau;u`[1, 1]+83.5245141346398*`&tau;u`[2, 3]+30.5577490736443*`&tau;u`[2, 1]+113.063671572516*`&tau;u`[3, 3]+83.5245141346398*`&tau;u`[3, 2]+30.5577490736443*`&tau;u`[1, 2]+61.1154981472892*`&tau;u`[2, 2];
In above equations Eq2 and Eq7; Eq4 and Eq8 are same. If I have set of 100 equation how I can identify similar equations?
@acer @Kitonum @Preben Alsholm

## Why does the tilde operator sometimes fail?...

Hi,

While trying to convert into integers a sample S drawn from a binomial distribution,  I've observed that  round~(S) didn't do the job while map(round, S) did it.

First question: why the first syntax and the second one are not equivalent on this case?

I investigated a little bit further by applying round~ on a row vector T of Hfloats (thus T and S are "identical")

Second question: While  round~(S) doesn't work but round~(T) does?

 > restart
 > S := Statistics:-Sample(Binomial(10, 0.5), 2); round~(S);      # Why round~(S) doesn't return integers map(round, S);  # but map(round, S) does? lprint(S)   Vector[row](2, {1 = HFloat(6.), 2 = HFloat(7.)}, datatype = float, storage = rectangular, order = Fortran_order, shape = [])
 > # Evaluation of round~(T) on a vector of Hfloats T := Vector[row](2, [HFloat(6.), HFloat(3.)]); lprint(S); round~(T);   # round~(T) returns integers, Vector[row](2, {1 = HFloat(6.), 2 = HFloat(7.)}, datatype = float, storage = rectangular, order = Fortran_order, shape = []) (1)
 >

## Statistics fails to reject invalid parameter value...

Maple doesn't completely check the condition on the number of trials "n" for Binomial and NegativeBinomial distributions (package Statistics).
The attribute "Conditions" explicitely says that n must be a strictly positive integer but no strictly positive real valuereturna an error (ok, it would be stupid to set n to a non integer value !!!).

I think it is a default that ought to be corrected in future releases (this default still exists in Maple 2018)

 > restart
 > kernelopts(version) (1)
 > with(Statistics):

BINOMIAL DISTRIBUTION

 > X := RandomVariable(Binomial(n, p)): L := [attributes(X)]: A := exports(L) (2)
 > L:-Conditions (3)
 > # Maple should return an error for N is not of type posint # # It seems that Sample uses floor(N) N := 10.49; type(N::posint); P := 1/2: X := RandomVariable(Binomial(N, P)): Mean(X), N*P; ProbabilityFunction(X, k); S := Sample(X, 10^6): Mean(S); # A non consistent result (only non negative values of k should be accepted) eval(ProbabilityFunction(X, k), k=evalf(Pi));      (4)

NEGATIVE BINOMIAL DISTRIBUTION

 > X := RandomVariable(NegativeBinomial(n, p)): L := [attributes(X)]: A := exports(L): L:-Conditions (5)
 > N := 10.49: P := 1/2: X := RandomVariable(NegativeBinomial(N, P)): Mean(X)

## Is it possible to instantiate all the attributes o...

Hi,

When creating a user random variable, I would like to instanciate some of its attributes, for instance ParentName.
But it seems that it's not always possible.

​​​​​​​Is it a Maple's limitation or am I not doing the things correctly ?
​​​​​​​
Example:

 > restart:
 > with(Statistics):
 > U := RandomVariable(Uniform(0, 1)):
 > interface(warnlevel=0):
 > A := attributes(U) (1)
 > AllAttributes := with(A); (2)
 > A:-ParentName (3)
 > # Define a user random variable v := Distribution(PDF = (z -> piecewise(0 <= t and t < 1, 1, 0))): V := RandomVariable(v): A := attributes(V); AllAttributes := with(A); A:-Conditions;   (4)
 > # its definition can be augmented by adding some recognized attributes... # even if the result returned by Mean is strange v := Distribution(PDF = (z -> piecewise(0 <= t and t < 1, 1, 0)), 'Mean'=1/Pi, 'Median'=exp(-1)): V := RandomVariable(v): A := attributes(V); AllAttributes := with(A); [Median, Mean](V)   (5)
 > # but not all the recognized attributes seem to be able to be instanciated: v := Distribution(PDF = (z -> piecewise(a <= t and t < b, 1/(b-a), 0)), 'Parameters'=[a, b]); v := Distribution(PDF = (z -> piecewise(a <= t and t < b, 1/(b-a), 0)), 'ParentNames'=MyDistribution);
 >

## Oceanography WE20 Historical Perspective

by: Maple 2015

WE20 Oceanography Historical Perspective

Maple is a trademark of Waterloo Maple Inc.

Adapted from Introductory Oceanography 10th ed. by Harold V. Thurman and Alan P. Trujillo

1.  How did the view of the ocean by early Mediterranean cultures influence the naming of planet Earth?

Early cultures envisioned the world as composed of large landmasses surrounded by marginal bodies of water.

2.  What is the difference between an ocean and a sea?  Which ones are the seven seas?

A sea is

•  Smaller and shallower than an ocean (this is why the Arctic Ocean might be more appropriately considered a sea)

•  Composed of salt water (many "seas" such as the Caspian Sea in Asia, are actually large fresh water lakes)

•  Somewhat enclosed by land (but some seas, such as the Sargasso Sea in the Atlantic Ocean, are defined by strong ocean currents rather than land.

The seven seas:  the North Pacifiic, the South Pacific, the North Atlantic, the South Atlantic, the Indian, the Arctic, and the Southern or Antarctic.

3.  Describe the development of navigation techniques that have enabled sailors to navigate the open ocean far from land.

Initially, navigators in the Northern Hemisphere measured the angle between the horizon and the North Star (Polaris), which is directly above the North Pole.  Latitude could be determined by noting the angular difference between the horizon and the North Star.  In the Southern Hemisphere, the angle between the horizon and the Southern Cross was used because the Southern Cross is directly overhead at the South Pole.

There was no method of determining longitude until one based on time was developed at the end of the 18th century.  Pendulum-driven clocks in use in the early 1700s would not work for long on a rocking ship at sea.  In 1728 a cabinetmaker in Lincolnshire, England, named John Harrison, began working on a new type of time peace.  The "chronometer" was driven by a helical balance spring that remained horizontal and independent of ship motion.

As Earth turns on its rotational axis it moves through 2 radian every 24 hours (one complete rotation).  Earth, therefore, rotates through radian of longitude per hour.  As a result, a navigator need only know the time at the prime or Greenwich at the exact same time the sun is at its highest point (local noon) at the ship's location.

Suppose a ship sets sail west across the Atlantic Ocean from Europe, checking its longitude each day when the sun is at its highest point (solar noon) at the ship's location.  On one day the chronometer reads 16:18 hours.  What is the location of the ship?

The ship is 4 hours and 18 minutes behind (west of) Greenwich time.  To determine the longitude we must convert time into longitude. radian of longitude per hour radian of longitude per minute radian of longitude per second  degree west of the Greenwich meridian.

In Maple:

 > >  (1)

4.  Construct a time line that includes the major events of human history that have resulted in greater understanding of our planet in general and the oceans in particular.    5.  Using a diagram, illustrate the method used by Eratosthenes to calculate the circumference of Earth.

Eratoshenes (276–192 BCE) had heard that at noon on the longest day of the year the Sun shone directly into the waters of a deep,vertical well in Syene (Aswan), which was 800 kilometers (500 miles) to the south.  At the same time in Alexandria, he noticed a vertical pole cast a slight shadow when the Sun was at its apex in the sky over Alexandria.  He accurately measured the shadow the pole cast, which was 7.2 degree.

Convert 7.2 ° to radian >  (2)
 >  (3) >  (4)

The equatorial circumference of Earth is about 24,901 miles (40,075 km). However, from pole-to-pole — the meridional circumference — Earth is only 24,860 miles (40,008 km) around. This shape, caused by the flattening at the poles, is called an oblate spheroid.  Since Eratoshenes was calculating the meridional circumference, his calculation was only 8 km different from the accepted modern measurement.

The following calculations are for the diagram.      >  (5)
 >  (6) >  (7)
 >  (8)
 > > > > > > > >  6.  While the Arabs dominated the Mediterranean region during the Middle Ages, what were the most significant ocean-related events taking place in Europe?

Between 831 and 1071, the Emirate of Sicily was one of the major centers of Islamic culture in the Mediterranean. After its conquest by the Christian Normans, the island developed its own distinct culture with the fusion of Latin and Byzantine influences. Palermo remained a leading artistic and commercial center of the Mediterranean well into the Middle Ages.

Europe was reviving, however, as more organized and centralized states began to form in the later Middle Ages after the Renaissance of the 12th century. Motivated by religion and dreams of conquest, the kings of Europe launched a number of Crusades to try to roll back Muslim power and retake the holy land. The Crusades were unsuccessful in this goal, but they were far more effective in weakening the already tottering Byzantine Empire that began to lose increasing amounts of territory to the Seljuk Turks and later to the Ottoman Turks. They also rearranged the balance of power in the Muslim world as Egypt once again emerged as a major power in the eastern Mediterranean.

7.  Describe the important events in oceanography that occurred during the Age of Discovery in Europe.

One of the most famous voyages during the Age of Discovery began in 1768 when the HMS Endeavour left Portsmouth, England, under the command of Captain James Cook. Over 10 years Cook led three world-encircling expeditions and mapped many countries, including Australia, New Zealand and the Hawaiian Islands. He was an expert seaman, navigator and scientist who made keen observations wherever he went. He was also one of the first ship captains to recognize that a lack of Vitamin C in sailors’ diets (due mostly to a lack of fresh fruit) caused scurvy, a serious disease that killed many sailors in those times. Cook always sailed with lots of pickled cabbage, which he insisted that the sailors eat. Scurvy was never a problem on his ships because the cabbage contained lots of Vitamin C.

8.  List some of the major achievements of Captain James Cook.

.com

Three important voyages commanded by Captain Cook:

1771–1768  Endeavor observes the transit of Venus in Tahiti; charts New Zealand; charts the eastern coastline of Australia and continues on to New Guinea and Java.

1772–1776 Resolution crosses the Anartic circle for the first time in history.  On returning to England Cook writes about preventing scurvy on long voyages.

1776–1779 Resolution and Discovery visit New Zealand, Tonga, Tahiti, and Christmas Island; Hawaiian islands discovered; expedition crosses the Pacific eastwards to make landfall off the coast of Oregon.  Cook sails into the Bering Straits but foiled by ice he returns to Hawaii where he is killed by natives on 14 Feb 1779.

9.  Describe, in general, the voyages of  HMS Challenger and HMS Beagle.

The Beagle sailed from Plymouth Sound on 27 December 1831 under the command of Captain Robert FitzRoy. While the expedition was originally planned to last two years, it lasted almost five—the Beagle did not return until 2 October 1836. Darwin spent most of this time exploring on land (three years and three months on land; 18 months at sea). The book he wrote is a vivid travel memoir as well as a detailed scientific field journal covering biology, geology, and anthropology that demonstrates Darwin's keen powers of observation, written at a time when Western Europeans were exploring and charting the whole world.

Darwin's notes made during the voyage include comments hinting at his changing views on the inflexibility of species. On his return to England, he wrote the book based on these notes, at a time when he was first developing his theories of evolution through common descent and natural selection. The book includes some suggestions of his ideas, particularly in the second edition of 1845 (Thurman and Trujillo, p. 23).

On December 21, 1872 the HMS. Challenger sailed from Portsmouth, England, for an epic voyage which would last almost three and a half years. It  was the first expedition organized and funded for a specific scientific purpose: to examine the deep-sea floor and answer questions about the ocean environment.  Although the mission was scientific, another purpose was to collect information that could be used in the laying of communication cables along the sea floor.

The expedition covered 69,000 miles (about 130,000 km) and gathered data on currents, water chemistry, temperature, bottom deposits and marine life at 362 oceanographic stations. More than 4700 new species of marine animals were discovered during the course of the voyage, many of which were found on the seafloor – an environment that scientists originally believed to be too inhospitable to support life (https://paleonerdish.wordpress.com/2013/07/01/the-challenger-expedition-and-the-beginning-of-oceanography/).

10.  Describe the voyages of the Fram and how it helped prove there was no continent beneath the Arctic ice pack.

The Fram was the first ship specially built (in Norway) for polar research. She was used on three important expeditions: with Fridtjof Nansen on a drift over the Arctic Ocean 1893-96, with Otto Sverdrup to the arctic archipelago west of Greenland - now the Nunavut region of Canada - 1898-1902, and with Roald Amundsen to Antarctica for his South Pole expedition 1910-12. The Fram is now housed and exhibited in the Fram Museum at Bygdøynes, Oslo

11.  Why did Benjamin Franklin want to know about the surface current pattern in the North Atlantic Ocean?

As Deputy Postmaster General of the American colonies, Franklin promoted using the Gulf Stream to speed up delivery of mail from America to Europe, as well as to improve other commercial shipping (https://divediscover.whoi.edu/history-of-oceanography/benjamin-franklin-discovering-the-gulf-stream/).

12.  What was Alexander Agassiz's major contribution to an increased knowledge of the oceans?

Agassiz is widely acknowledged as the driving force that brought oceanography recognition as a science.  His training as a mining engineer led him to develop ingenious oceanographic sampling devices—the prototypes for many devices in use on research vessels today—that improved the quantitative value of biological sampling (Thurman and Trujillo, p. 27).

13.  What important oceanographic inventions and data came out of Word Wars I and II?

The need to detect submarines led the navies of the world to greatly expand their studies of the sea. This led to the founding of oceanography departments at state universities, including Oregon State, Texas A&M University, University of Miami, and University of Rhode Island,

and the founding of national ocean laboratories such as the various Institutes of Oceanographic Science (https://earthweb.ess.washington.edu/booker/ESS514/stewart/ stewart_ocean_book.pdf).

14.  List features of the oceans that can be studied remotely by use of satellites.

• phytoplankton concentrations

• heat storage and aerosol formation and other ocean influences on climate processes

• cycles of carbon, sulfur, and nitrogen concentrations

• Bathymetry/Seafloor (Bathymetry is the measurement of depth of water in oceans seas, or lakes)

• Topography

• Costal Process

• Marine Geophysics

• Ocean Acoustics

• Ocean Chemistry

• Ocean Circulation

• Ocean Heat Budget

• Ocean Optics

• Ocean Pressure

• Ocean Temperature

• Ocean Waves

• Ocean Winds

• Salinity/Density

• Sea ice

• Sea Surface Topography

15.  Discuss what problems the human body can experience as a result of diving underwater.

Nitrogen narcosis (also referred to as inert gas narcosis, raptures of the deep, and the Martini effect) :  While scuba diving does sometimes involve breathing air that’s mixed with nitrogen, this condition is caused when the diver goes deeper into the water, where the partial pressure of nitrogen increases and more nitrogen ends up getting absorbed into the bloodstream. The higher the nitrogen concentration in the bloodstream, the slower the nervous system will be, and the more likely the diver will experience intoxicating effects that can seriously impair their judgment underwater—possibly enough to lead them into dangerous situations (https://www.leisurepro.com/blog/scuba-guides/dealing-nitrogen-narcosis-2/).

Barotrauma: Trauma caused by rapid or extreme changes in air pressure, especially affecting enclosed cavities within the body such as the middle ear (otic barotrauma), the sinuses (sinus barotrauma), and the lungs (pulmonary barotrauma) (https://www.medicinenet.com/script/main/art.asp?articlekey=31722).

Decompression illness is caused by intravascular or extravascular bubbles that are formed as a result of reduction in environmental pressure (decompression). The term covers both arterial gas embolism, in which alveolar gas or venous gas emboli (via cardiac shunts or via pulmonary vessels) are introduced into the arterial circulation, and decompression sickness, which is caused by in-situ bubble formation from dissolved inert gas. Both syndromes can occur in divers, compressed air workers, aviators, and astronauts, but arterial gas embolism also arises from iatrogenic causes unrelated to decompression. Risk of decompression illness is affected by immersion, exercise, and heat or cold. Manifestations range from itching and minor pain to neurological symptoms, cardiac collapse, and death. First-aid treatment is 100% oxygen and definitive treatment is recompression to increased pressure, breathing 100% oxygen. Adjunctive treatment, including fluid administration and prophylaxis against venous thromboembolism in paralysed patients, is also recommended. Treatment is, in most cases, effective although residual deficits can remain in serious cases, even after several recompressions (https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(10)61085-9/fulltext).

## Showing numbers in y-axis...

Hello,

How to show the y-axis numbers in the second plot ?   y is in [0,3].

I try the following but it shows a negative axis.

display(P, L, axis = [tickmarks = [5, subticks = 3], thickness = 2]);  this is not correct

The file is attached.

Thanks

## Unwanted execution ...

Dear Users!

I have made a code using loops. But when I exceute it I go unwanted expression please see the files and try to fix it. I shall be very thankful.

Help.mw

Special request to:

## Multiplication of entries of a matrix with a matri...

Dear Users!

Hope everyone should fine here. I want to know how to multiple the entries of a matrix with a matrix like If A is matrix as:

A:= Matrix(2, 2, {(1, 1) = 0, (1, 2) = 0, (2, 1) = 0, (2, 2) = 2})
I want nonzero entries should multiply with m*m identity matrix and zero entries multiply with null matrix of order m*m. for m=2 the desired results i calculated manually as:

Matrix(4, 4, {(1, 1) = 0, (1, 2) = 0, (1, 3) = 0, (1, 4) = 0, (2, 1) = 0, (2, 2) = 0, (2, 3) = 0, (2, 4) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = 2, (3, 4) = 0, (4, 1) = 0, (4, 2) = 0, (4, 3) = 0, (4, 4) = 2});

I want to know the general way. Thanks in advance

﻿