Question:Error with function using Units

Question:Error with function using Units

Maple 18

Please see the attached worksheet for the error at the end, any idea what happens?

Besides, anyone know how to make plot array with each element has a plot and scatterplot in it?  I made my plot by making table first and then type the cmd individually.

Raw Data

Table 1: Compactability Curve

Table 2: Compressibility Curve

 (1)

 (2)

por1(x);

 (3)

 (4)

Target Weight of Tablet, :

 (5)

Tablet True Density:

 (6)

Width of tablet

 (7)

Length of tablet, l:

 (8)

Cup Depth, h:

 (9)

Cup Volume

 (10)

Die cross sectional area, :

 (11)

Equation to solve tablet thickness using tablet dimension and porocity:

Tablet bulk density:

 (12)

Tablet volume:

 (13)

Tablet bulk Density:

 (14)

 (15)

Function for thickness:

 (16)

 (17)

Tablet tensile strength:

 (18)

Break force of tablet (N)

 (19)

 (20)

 (21)

 (22)

 (23)

 (24)

Encounter problem while chaning variable

BF:=

 (25)

 (26)

but por1 works fine on its own with units

 (27)

plot(evalf(por1(xx)), xx = 10 .. 200);

I also used a lot for for loop in this worksheet, can anyone suggest another way of doing it? And I think I initiated many Array(1..3) that is of no use.  But if I do not initiate and do the following

A[1]:=a :

A[2]:=b:

A[3]:=c:

A;

output: A

Only if I initiate A:=Array(1..3) and then define the element I can see the complete A array at the end.

﻿