Deutsch English Français Italiano |
<vqgo2i$tiv$3@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> Newsgroups: sci.math Subject: Re: New way of dealing with complex numbers Date: Fri, 7 Mar 2025 22:28:34 -0800 Organization: A noiseless patient Spider Lines: 63 Message-ID: <vqgo2i$tiv$3@dont-email.me> References: <kRgli3QEdimCvJ9569p9c9pq7Kc@jntp> <vqemhv$2gck$1@news.muc.de> <h8RR2Nzw97n_q0rv1uxcQeGImmk@jntp> <vqfm6n$3ndao$2@dont-email.me> <5dK3FFsdZf8l39AFCHb0bffliXU@jntp> <vqgncu$tiv$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 08 Mar 2025 07:28:35 +0100 (CET) Injection-Info: dont-email.me; posting-host="e72e54bf1123d47ca4084a40faedb0d1"; logging-data="30303"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lnPV7GTkq6Vd26C9uZ0atGUllcqdXlnE=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:/Io/zlrc+x+kN8eVwsIbE3ifxMc= Content-Language: en-US In-Reply-To: <vqgncu$tiv$2@dont-email.me> Bytes: 2700 On 3/7/2025 10:17 PM, Chris M. Thomasson wrote: > On 3/7/2025 3:34 PM, Richard Hachel wrote: >> [...] > > Try to start small. Create a Mandelbrot using traditional complex > numbers first. Then... Create another plot using your new version. Fwiw, > perhaps, my code can help you here. Can you run it on your end? Thanks: > > https://fractallife247.com/ > > If so, be sure to click around... :^) > > Does it work for you? ;^o My vector math for this experiment: ___________________ // Vector Math //__________________________________________ function ct_vec2_add(v0, v1) { return [v0[0] + v1[0], v0[1] + v1[1]]; } function ct_vec2_sub(v0, v1) { return [v0[0] - v1[0], v0[1] - v1[1]]; } function ct_vec2_mul(v0, v1) { return [v0[0] * v1[0], v0[1] * v1[1]]; } function ct_vec2_mul_float(v0, v1) { return [v0[0] * v1, v0[1] * v1]; } function ct_vec2_length(v0) { return Math.sqrt(v0[0] * v0[0] + v0[1] * v0[1]); } function ct_vec2_normal(v0) { var length = ct_vec2_length(v0); if (length == 0) return [0, 0]; return [v0[0] / length, v0[1] / length]; } function ct_vec2_copy(v0, v1) { v0[0] = v1[0]; v0[1] = v1[1]; } function ct_vec2_complex_mul(v0, v1) { var x = v0[0] * v1[0] - v0[1] * v1[1]; var y = v0[0] * v1[1] + v0[1] * v1[0]; return [x, y]; } function ct_vec2_complex_abs(v0) { return ct_vec2_length(v0); } ___________________ Notice the *_complex_* aspects?