Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!ucbvax!unisoft!mtxinu!taniwha!paul From: paul@taniwha.UUCP (Paul Campbell) Newsgroups: comp.graphics Subject: Another Graphics Gems bug .... Message-ID: <643@taniwha.UUCP> Date: 11 Sep 90 20:00:23 GMT Organization: Taniwha Systems Design, Oakland CA Lines: 31 I typed in the matrix inversion code from Graphics Gems today (page 766) and spend a while banging my head against a wall trying to find out why it didn't work. Turns out there is a tiny typo - it calculates: -1 1 A = -------------- adjoint A det adjoint A instead of: -1 1 A = ----- adjoint A det A To fix it change the line on page 766: det = det4x4(out); to: det = det4x4(in); Paul -- Paul Campbell UUCP: ..!mtxinu!taniwha!paul AppleLink: CAMPBELL.P What most people don't realize is that those plastic cover slips that your 3 inch floppies come in are actually condoms for protecting your computer from harmfull computer viruses - practice safe computing ..... :-)