| Re: BASIC with built-in matrix functions? |
|
 |
|
 |
|
 |
|
 |
Group: alt.lang.basic · Group Profile
Author: Tom LakeTom Lake Date: Aug 20, 2007 18:57
> On Aug 20, 4:45 pm, "Tom Lake" twcny.rr.com> wrote:
>>> For what kind of applications do people use matrix
>>> operations in Basic? Graphics? Engineering? Math
>>> homeworks? Signal processing?
>>
>> With the ANSI Standard BASIC syntax, you use matrices for
>> various effects using matrix math.
>>
>> Example:
>> DRAW polygon(4) with Rotate(pi/4) * Shift(1,2)
>>
>> Transformation Effects:
>>
>> SHIFT(a,b) Move by a horizontally and by b vertically
>>
>> SCALE(a,b) Change scale, multiplying horizontal coordinates by a,
>> and vertical coordinates by b; if a = b, then you may specify SCALE(a)
>>
>> ROTATE(t) Rotate around origin counterclockwise by an angle t
>>
>> SHEAR(t) Lean vertical lines forward (clockwise) by an angle t
>
> None of your examples used the MAT or other matrix
> command in an application written in Basic! A better
> example might be something like MAT PLOT.
They use implied MAT commands. Scale uses matrix multiplication by a
scalar,
Shift uses matrix addition, etc. Without the MAT commands, these parameters
wouldn't function.
Tom Lake
|