• Keine Ergebnisse gefunden

Points, Vectors, and MaztriceswithLinearAlgebra

N/A
N/A
Protected

Academic year: 2022

Aktie "Points, Vectors, and MaztriceswithLinearAlgebra"

Copied!
4
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

O O O O

(1)

(2) O

O O O

Points, Vectors, and Maztrices

with LinearAlgebra ;with plots ;

&x,Add,Adjoint,BackwardSubstitute,BandMatrix,Basis,BezoutMatrix,BidiagonalForm, BilinearForm,CharacteristicMatrix,CharacteristicPolynomial,Column,

ColumnDimension,ColumnOperation,ColumnSpace,CompanionMatrix, ConditionNumber,ConstantMatrix,ConstantVector,Copy,CreatePermutation, CrossProduct,DeleteColumn,DeleteRow,Determinant,Diagonal,DiagonalMatrix, Dimension,Dimensions,DotProduct,EigenConditionNumbers,Eigenvalues,Eigenvectors, Equal,ForwardSubstitute,FrobeniusForm,GaussianElimination,GenerateEquations, GenerateMatrix,Generic,GetResultDataType,GetResultShape,GivensRotationMatrix, GramSchmidt,HankelMatrix,HermiteForm,HermitianTranspose,HessenbergForm, HilbertMatrix,HouseholderMatrix,IdentityMatrix,IntersectionBasis,IsDefinite, IsOrthogonal,IsSimilar,IsUnitary,JordanBlockMatrix,JordanForm,LA_Main,

LUDecomposition,LeastSquares,LinearSolve,Map,Map2,MatrixAdd,MatrixExponential, MatrixFunction,MatrixInverse,MatrixMatrixMultiply,MatrixNorm,MatrixPower,

MatrixScalarMultiply,MatrixVectorMultiply,MinimalPolynomial,Minor,Modular, Multiply,NoUserValue,Norm,Normalize,NullSpace,OuterProductMatrix,Permanent, Pivot,PopovForm,QRDecomposition,RandomMatrix,RandomVector,Rank,

RationalCanonicalForm,ReducedRowEchelonForm,Row,RowDimension,RowOperation, RowSpace,ScalarMatrix,ScalarMultiply,ScalarVector,SchurForm,SingularValues, SmithForm,StronglyConnectedBlocks,SubMatrix,SubVector,SumBasis,SylvesterMatrix, ToeplitzMatrix,Trace,Transpose,TridiagonalForm,UnitVector,VandermondeMatrix, VectorAdd,VectorAngle,VectorMatrixMultiply,VectorNorm,VectorScalarMultiply, ZeroMatrix,ZeroVector,Zip

animate,animate3d,animatecurve,arrow,changecoords,complexplot,complexplot3d, conformal,conformal3d,contourplot,contourplot3d,coordplot,coordplot3d,densityplot, display,fieldplot,fieldplot3d,gradplot,gradplot3d,graphplot3d,implicitplot,

implicitplot3d,inequal,interactive,interactiveparams,intersectplot,listcontplot,

listcontplot3d,listdensityplot,listplot,listplot3d,loglogplot,logplot,matrixplot,multiple, odeplot,pareto,plotcompare,pointplot,pointplot3d,polarplot,polygonplot,polygonplot3d, polyhedra_supported,polyhedraplot,rootlocus,semilogplot,setcolors,setoptions,

setoptions3d,spacecurve,sparsematrixplot,surfdata,textplot,textplot3d,tubeplot

Let us inspect (column) vectors.

p d 0, 1 ; rd 1, 2 ;

p:= 0 1

r:= 1 2

(2)

(6)

(9) O

O O O

O O O O O O O O

(13) OO

OO

(10) O

O O O

(11)

(14) OO

OO

(3)

(12) (8) (4)

O O O O O O O O

O O O O O O O O

O O O O

(7)

O O O O

O O O O O O O O

(5) p 1 ;

0 r 2 ;

2 l d p Cλ$ r;

l:=

λ

1C2 λ

Now, we want to compute the shortest distance from point q := <2,1> to the line.

qd 2, 1 ;

q:= 2 1 lineplot d plot l 1 ,l 2 ,λ=K2 ..2 ;

lineplot:=PLOT ...

fdλ/pCλ$r;

f:=λ/pCλ r s d seq l 1 ,l 2 ,λ=K2 ..2 ;

s:= K2,K3 , K1,K1 , 0, 1 , 1, 3 , 2, 5

tdseq f x

10 1 ,f x

10 2 ,x=K20 ..20 : pointline d pointplot s ;

pointline:=PLOT ...

Qplot d pointplot q ;

Qplot:=PLOT ...

a1 d arrow 0, 0 ,p, width= 0.075, relative=false , head_length= 0.4, relative=false , color=green ;

a1:=PLOT ...

a2 d arrow p, 0.3$ r, width= 0.075, relative=false , head_length= 0.4, relative=false , color=blue ;

a2:=PLOT ...

HitPoint dsubs λ= DotProduct qKp,r DotProduct r,r ,l ;

HitPoint:=

2 5 9 5

display a1,a2,lineplot,pointline,Qplot,pointplot q,HitPoint ,connect=true,thickness

= 1,linestyle=dash ,view= K2.5 ..2.5,K2 ..2 ;

(3)

O O O O

(15) OO

OO

O O O O

O O O O

K2 K1 0 1 2

K2 K1 1 2

myDotProduct d proc u,v,k local j,res,lu,lv;

resd 0;

for j from 1 to k do res d res Cu j $v j ; end do;

#return res;

lu d convert u,'list' ; lvdconvert v,'list' ; return

>

i= 1k lu i $lv i ;

end proc:

DotProduct qKp,r DotProduct r,r ;

2 5 myDotProduct qKp,r, 2

myDotProduct r,r, 2 ;

(4)

(16) O

O O O

2 5

Referenzen

ÄHNLICHE DOKUMENTE

Inductive Definitions and Fixed Points 6.1 Inductively defined sets and predicates 6.2 Fixed point theory for inductive definitions 6.3 Specifying and verifying transition

exit point (on border of state machine diagram or composite state).. Entry and exit

Theorem: A language L over X is regular if and only if L can be generated by a finite number of iterated applications of the operations union, product and Kleene-closure ∗ starting

However, CTL responses to a nonreplicating adenovirus-based vaccine vector were similar in Il1rl1 −/− and wild-type (WT) mice (Fig. Given IL-33 can act as an alarmin,

However, we have a lot of (gauge) redundancy, and not every asymptotic Killing vector generates an interesting sym- metry near the boundary; instead, some of the asymptotic

Les installations de traite sur le marché, si elles sont installées, utilisées et entretenues correctement, sont compatibles avec l’obtention d’un lait de qualité.. Le lait

The DGB and its member trade unions call on the European institutions and the German government to take up the reflections on a framework directive on information, consultation

Die ganze Wucht zeigte sich erneut in der Diskussion um die Richtlinie zum Urheberrecht im Digitalen Binnenmarkt, die nach einer stetig anschwel- lenden Debatte in