20.10.2013 Views

European Research in Mathematics Education I - Fakultät für ...

European Research in Mathematics Education I - Fakultät für ...

European Research in Mathematics Education I - Fakultät für ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>European</strong> <strong>Research</strong> <strong>in</strong> <strong>Mathematics</strong> <strong>Education</strong> I: Group 2 273<br />

Let us test the function TetrTest(M) with matrix M(regular case) and s<strong>in</strong>gular matrix<br />

given directly (l<strong>in</strong>es #3 - #6):<br />

#3: TetrTest(M), <br />

#4: «Tetrahedron is def<strong>in</strong>ed»<br />

#5: TetrTest([[1,0,0,0], [0,1,0,0], [0,0,1,0], [1,1,1,0]]) , <br />

#6: «Tetrahedron isn’t def<strong>in</strong>ed»<br />

The auxiliary function System(i) returns the system obta<strong>in</strong>ed from the orig<strong>in</strong>al<br />

system avoid<strong>in</strong>g i th equation. The function TetrVertices returns the vector of vertices of<br />

the tetrahedron def<strong>in</strong>ed by the four planes (given by matrix M) <strong>in</strong> the form [[x=x 1,y=y 1,<br />

z=z 1],..,[x=x 4,y=y 4,z=z 4]].<br />

#7: System(i):=vector((element(M,mod(i+k,4)+1).[x,y,z,1]=0,k,0,2)<br />

#8: TetrVertices(M):=vector(solve(system((i),[x,y,z],i,1,4)<br />

Let us test the function TetrVertices(M):<br />

#9: TetrVertices(M), <br />

#10: [[x=1,y=0,z=0], [x=0,y=1,z=0], [x=0,y=0,z=1], [x=0,y=0,z=0]]<br />

Remark that the way <strong>in</strong> which the vertices are represented <strong>in</strong> l<strong>in</strong>e #10 not always<br />

suitable (for example if we want to use them <strong>in</strong> further calculations with Derive).<br />

The function TetrVert below returns the set of vertices of the tetrahedron <strong>in</strong> the<br />

form of the vector of vectors: [[x 1,y 1,z 1],..,[x 4,y 4,z 4]]. Functions Drop(i,j) and RP(i) are<br />

auxiliary. Function Drop(i,j) as a function of j returns the sequence of <strong>in</strong>tegers <strong>in</strong> which<br />

the number i is dropped. Function RP(i) returns the vector of the right parts of the<br />

system of equations given by the matrix M <strong>in</strong> which i-th element is dropped.<br />

#11: Drop(i,j):=if(j

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!