From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: what to do, for the mathematically-disabled people (only half-joking) Date: Fri, 8 Jan 2021 16:05:03 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 8 Jan 2021 16:05:03 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="1be6050112913260b18da381e9bb5df1"; logging-data="10826"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19pNANEfWgXgl/1LIfMuQxLjufabz64Fpo=" User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a git.gnome.org/pan2) Cancel-Lock: sha1:Ggb5jU/by5eiw7zZED7+wcbWk44= Xref: reader02.eternal-september.org comp.lang.ada:61065 List-Id: On Thu, 07 Jan 2021 13:46:06 -0800, Mehdi Saada wrote: > What would you advise, for a mathematically impaired person such as > myself, who gets a headache trying to implement a simple vector fusion > algorithm ? > And however I try, a few days, changes nothing to the outcome, shit > doesn't get done, and I'm left furious at myself. And I know it well, at > my age, when I, am the problem. > Are those algorithm books useful, can they really hammer the logic > muscles in my brain ? > Basically, I cannot see in my head the (simple, I stress that out) > program playing out. > > Thanks, > Mehdi Sometimes, I find mocking it up in a spreadsheet helps! Sounds dumb, but... Say, I can think of a testcase and I know what the output should look like, start with a column of figures and more columns of (transformed by equation) figures, and ideally a column computing an error function. Why is the error column 0 here, but not there? ... aaah... For example I've designed pipelined versions of algorithms that way, before implementing in FPGA, and LUT-based quadratic interpolators to approximate reciprocal and square root, to get within 1 LSB error at single precision (multiplication/addition are cheap in FPGA, division/ sqrt not so much) Also mocked up James Watt's link motion, a 5th order approximation to straight line using only rotary motion. YMMV. -- Brian