|
Newton's Prism-Home of Prism Research
Newton Solutions
This page contains answers to various math and physics problems that were
solved on a Newton device using nsScribe
and MathLib in Newton Works.
Document date: 22 July 98
Math Section
1. Problem: Gunther had just been travelling around Europe with two
of his buddies and they had left-over money from three countries. They
all exchanged their monies at the local bank. Gunther got 1619.70 EEC units,
Pierre got 8659.81 EEC units, and Mario got 2643.57 EEC units. They all
started with the following monies.
Gunther: 20.50 Francs, 12.23 Lira, 200 Marks
Pierre: 34.50 Francs, 80.20 Lira, 10 Marks
Mario: 12.20 Francs, 23.45 Lira, 210 Marks
What were the current exchange rates for the three countries?
Newton Solution: This is a 3-equations, 3-unknowns problem which can
be solved with matrices. MathLib has three different ways to solve Ax =
B. The simplest way is with Gauss-Jordan elimination unless A happens to
be singular. The Newton Solution is as follows:
local m,A,B; // declare local variables
A := [[20.5,12.23,200],
[34.5,80.20,10],
[12.20,23.45,210]]; // original monies
B := [1619.70,8659.81,2643.57]; // EEC money
m := GetLibrary('math); // get library
m:GaussJordan(A,B); // solve Ax=B, place x in B
m:RoundDec(B,2) // round to two decimal places
= [14.55,101.67,0.39]
14.55 EEC units per Franc,
101.69 EEC units per Lira,
0.39 EEC units per Mark.
(Any N-equation problem can be solved in this manner.)
Physics Section
1. Problem: Cosmic background radiation is the light emitted from the
Universe as a Planck black-body. The background noise from the sky was
measured by an interferometer at an altitude of 40 km:
(after Weiss 1980.)
| f(1/cm) |
flux |
| 2.38 |
8.79 |
| 3.40 |
12.13 |
| 4.41 |
14.81 |
| 5.42 |
16.05 |
| 6.44 |
16.09 |
| 7.45 |
13.89 |
| 8.46 |
12.42 |
| 9.48 |
8.63 |
| 11.50 |
5.52 |
| 13.53 |
4.92 |
| 15.20 |
1.87 |
| 20.03 |
0.70 |
Find the temperature of the Universe.
Newton Solution: Planck's black-body radiation formula is of the form
flux = B f3 / (exp(f*c2/T)-1)
where f = 1/wavelength
Minimize the difference between measured and calculated.
local m,data,answer,flux,f,c2;
m := GetLibrary('math);
data :=
[
[2.38, 3.40, 4.41, 5.42, 6.44, 7.45, 8.46,9.48,11.50,13.53,15.20,20.03],
[8.79,12.13,14.81,16.05,16.09,13.89,12.42,8.63,
5.52, 4.92, 1.87, 0.70]
];
c2 := 1.4388; // cm K
flux := func(f,T,a)
a*Pow(f,3)/Expm1(f*c2/T);
RSSD := func(T,a)
begin
local err,y:=0;
foreach i,val in data[0] do
begin
err := data[1][i]-call
flux with (val,T,a);
y := y + err*err;
end;
sqrt(y)
end;
TUni := func(a)
m:Infimum(NIL,RSSD,[[0.1,6],a],0);
f := func(a)
call RSSD with (call TUni with (a),a);
call TUni with (m:Infimum(nil,f,[[0.1,6]],0));
= 2.78750068219096
Cosmic black-body temperature of the Universe is 2.79 K
And using Works Calculations:

|