Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #1256

Re: three by three and two by two rode the six hundred

Path csiph.com!usenet.pasdenom.info!news.albasani.net!nuzba.szn.dk!pnx.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Don Lancaster <don@tinaja.com>
Newsgroups comp.lang.postscript
Subject Re: three by three and two by two rode the six hundred
Date Sun, 10 Feb 2013 12:00:56 -0700
Lines 47
Message-ID <anq93dF8hlqU1@mid.individual.net> (permalink)
References <f4c62c70-c7fc-479c-8b1e-cfbe8be59e96@googlegroups.com> <23a94eff-39bd-47f8-8150-5986f63bf270@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net QFj3zWf45oPlJdFjhHpRaQScGFkh0lHuQmGk/u0n19baP0V+8iw86RXsNZ8wCBYzKm
Cancel-Lock sha1:+gAEd351Hw6oMVExvIGmqEk8FGU=
User-Agent Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
In-Reply-To <23a94eff-39bd-47f8-8150-5986f63bf270@googlegroups.com>
Xref csiph.com comp.lang.postscript:1256

Show key headers only | View raw


On 2/9/2013 1:41 PM, luser- -droog wrote:
> On Saturday, February 9, 2013 1:27:42 PM UTC-6, luser- -droog wrote:
>> Here are two versions of a function to compute 2x2 or 3x3 determinants.
>>
>
> A little less ugly. mat.ps available at http://code.google.com/p/xpost/downloads/detail?name=mat.ps
>
>
> (mat.ps)run
>
> /elem { % M i j
>      3 1 roll get exch get % M_i_j
> } def
>
> /det {
>      dup length 1 index 0 get length ne { /det cvx /typecheck signalerror } if
>      1 dict begin /M exch def
>          M length 2 eq {
>              M 0 0 elem
>              M 1 1 elem mul
>              M 0 1 elem
>              M 1 0 elem mul sub
>          }{
>              M length 3 eq {
>                  M aload pop cross dot
>              }{ /det cvx /rangecheck signalerror } ifelse
>          } ifelse
>      end
> } def
>


Gauss Jordan reduction is vastly better than determinents for most 
equation solving.

< http://www.tinaja.com/glib/gaussjor.pdf >



-- 
Many thanks,

Don Lancaster                          voice phone: (928)428-4073
Synergetics   3860 West First Street   Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml   email: don@tinaja.com

Please visit my GURU's LAIR web site at http://www.tinaja.com

Back to comp.lang.postscript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

three by three and two by two rode the six hundred luser- -droog <mijoryx@yahoo.com> - 2013-02-09 11:27 -0800
  Re: three by three and two by two rode the six hundred luser- -droog <mijoryx@yahoo.com> - 2013-02-09 12:41 -0800
    Re: three by three and two by two rode the six hundred John Reiser <jreiserfl@comcast.net> - 2013-02-10 10:48 -0800
    Re: three by three and two by two rode the six hundred Don Lancaster <don@tinaja.com> - 2013-02-10 12:00 -0700

csiph-web