POV-Ray : Newsgroups : povray.binaries.images : Let's twist again [52K jpeg] Server Time
19 Aug 2024 18:26:30 EDT (-0400)
  Let's twist again [52K jpeg] (Message 11 to 14 of 14)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Peter Popov
Subject: Re: Let's twist again [52K jpeg]
Date: 29 Nov 2000 01:18:43
Message: <3q792t00c3t48p90li629144gpmpnbspd1@4ax.com>
On Tue, 28 Nov 2000 23:54:45 -0000, "Alf Peake"
<alf### [at] peake42freeservecouk> wrote:

>I don't know how to do a smooth colour change with s_sweeps, I don't
>see any way to apply a pigment to each vector.

In this particular case you might get away with a radial pigment, I
think.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: David Fontaine
Subject: Re: Let's twist again [52K jpeg]
Date: 29 Nov 2000 23:38:15
Message: <3A25D92A.62B0638@faricy.net>
Tor Olav Kristensen wrote:

> > Thanks Tor. Glass takes too long though :-\
> > BTW, wish I had a maths brain like yours.
>
> :)
>
> It seems like you too know some math.

Speaking of which, I just figured out that to use complex bases and
exponents you can convert the rectangular vector (a+bi) to circular
(ai^b) and then you only have one term and it becomes (somewhat) doable!
Mind you that I have never had this sort of material in school, I
conjecture it playing with my TI-89. :) So now I know that n^i =
cos(ln(n))+i*sin(ln(n)), but I have no idea why. :)

--
David Fontaine  <dav### [at] faricynet>  ICQ 55354965
My raytracing gallery:  http://davidf.faricy.net/


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: Let's twist again [52K jpeg]
Date: 30 Dec 2000 21:32:25
Message: <3A4E9ACB.6632CA36@online.no>
Sorry David

- I didn't see your reply before now.


David Fontaine wrote:
> 
> ...
> Speaking of which, I just figured out that to use complex bases and
> exponents you can convert the rectangular vector (a+bi) to circular
> (ai^b) 

Hmmm... I think it would be more correct to write it like this:

a + b*i  =  radius*e^(angle*i)

(The latter is called polar form)


> and then you only have one term and it becomes (somewhat) doable!

What becomes doable ?


> Mind you that I have never had this sort of material in school, I
> conjecture it playing with my TI-89. :) So now I know that n^i =
> cos(ln(n))+i*sin(ln(n)), but I have no idea why. :)

Does this mean that also the TI calculators are 
capable of doing symbolic calculations now ?


Below is my try at an explanation of why you get 
these results.

If you know Euler's formula:

e^(theta*i) = cos(theta) + i*sin(theta)


And that n can be written as e^ln(n)
and also that (a^b)^c = a^(b*c)

then you'll see that

n^i = (e^ln(n))^i = e^(ln(n)*i) = cos(ln(n)) + i*sin(ln(n))


Euler's formula shows one interesting relation
between these 3 constants: 1, e and i

-e^(pi*i) = 1

(try to feed it to your TI-89 or to a HP-48)


If you want to know more about complex numbers, 
then here's a link to a page about the basics:

http://www.math.fsc.qut.edu.au/~gustafso/mab112/week4/

Look at the bottom of the page for info about the 
exponential notation of complex numbers.


Also note the 9. property of the exponential form 
of a complex number:

That e^(theta*i) is periodic of period 2*pi.


The 10. properties are also noteworthy and often used:

sin(theta) = (e^(theta*i) - e^(-theta*i))/2/i

cos(theta) = (e^(theta*i) + e^(-theta*i))/2



Best regards,

Tor Olav
-- 
mailto:tor### [at] hotmailcom
http://www.crosswinds.net/~tok/tokrays.html


Post a reply to this message

From: David Fontaine
Subject: Re: Let's twist again [52K jpeg]
Date: 30 Dec 2000 23:08:07
Message: <3A4EAF50.2EC0B5D8@faricy.net>
Poor IB math program, just when it thought it was catching up to me... :)

--
David Fontaine  <dav### [at] faricynet>  ICQ 55354965
My raytracing gallery:  http://davidf.faricy.net/


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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