POV-Ray : Newsgroups : povray.pov4.discussion.general : Complex Numbers : Re: Complex Numbers Server Time
30 Oct 2025 22:58:21 EDT (-0400)
  Re: Complex Numbers  
From: ingo
Date: 29 Oct 2025 15:30:00
Message: <web.69026ae2793e4bec17bac71e8ffb8ce3@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "Given the code base at https://github.com/POV-Ray/povray, what would be
> required to fully implement robust  code to handle complex numbers - complete
> with addition, subtraction, division, multiplication, and exponentiation - using
> both complex and real numbers in any combination?"

#declare complexnumber = cmp<re, im>;

it's kind of vector hence the vector notation and fits with the colour vectors
rgb<1,1,1>. All the re and im <x, y> extraction code should be available in
POV-Ray, it c++ after al ...(can't read it, always get lost)

ingo


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.