473,467 Members | 2,224 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

e to the i pi

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <complex.h>
/*
double complex z1, z2, z3;
bool flag;
z1 = .4 + .7I;
z2 = cpow(z1, 2.0);
z3 = z1 * z1;
flag = false;
flag = true;
if (flag)
{
printf("%lf %lf\n", creal(z1), cimag(z1));
printf("%lf %lf\n", creal(z2), cimag(z2));
printf("%lf %lf\n", creal(z3), cimag(z3));
printf("%d\n", N);
}
*/

int main(int argc, char *argv[])
{
double complex z1, z2, z3, z4, z5;
z1=5 +7I;
z2=cpow(z1, 1I);
printf("%lf %lf\n", creal(z1), cimag(z1));
printf("%lf %lf\n", creal(z2), cimag(z2));
z5= 0 + I*(3.14159);

z3=2.54 + 0*I;
z4=cpow(z5,z3);
printf("%lf %lf\n", creal(z4), cimag(z4));

system("PAUSE");
return 0;
}
Why doesn't e^(i *pi) equal what most folks think it does? LS
Feb 4 '07
123 4167
In article <eq***********@pc-news.cogsci.ed.ac.uk>,
Richard Tobin <ri*****@cogsci.ed.ac.ukwrote:
>In article <eL******************************@bt.com>,
Malcolm McLean <re*******@btinternet.comwrote:
>>Can't say this bit about e^(i*x) = cos x + i * sin x is too convincing
though.

Consider the polynomial expansion e^x = 1 + x + x^2/2! + x^3/3! + ...
I think you mean "power series expansion". It's only a polynomial if
it's finite.
dave
(knowing the power series expansions for sin and cos would also be helpful)

--
Dave Vandervies dj******@csclub.uwaterloo.ca
>What would you give if somebody used a silly unit (hogsheads) and gave
a good justification for it? --Joe Zeff and Garrett Wollman
More thought. in the scary devil monastery
Feb 7 '07 #101
"Lane Straatman" <in*****@invalid.netwrites:
"Richard Tobin" <ri*****@cogsci.ed.ac.ukwrote in message
news:eq***********@pc-news.cogsci.ed.ac.uk...
>In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.orgwrote:
>>>Apparently i^i (where i is the imaginary square root of -1 and "^"
denotes exponentiation) is a real number. I'm sure there's a simple
mathematical proof of this, but I'm too lazy to track it down or
reconstruct it.

It's exp(-pi/2). Someone else showed the proof, but you can just type
"i^i" into Google to see the numerical value.
http://www.billfordx.net/screendumps/cstuff_7.htm

Clearly, this latest version is off. Heathfield says I have two specifiers
for one datum. Is it not a datum with a real and a complex part, both of
which need attention in the conversion specifiers?
[...]

This is in reference to your attempt to print a single complex value
using a printf format that expects two floating-point arguments. I
have tried at least twice to explain this to you. I will not waste my
time doing so again.

In fact, I will not waste my time responding to anything you post, or
offering you any sort of help after this. I just read your article in
comp.std.c,
<http://groups.google.com/group/comp.std.c/msg/d91bae8783a38bde>, in
which you replied to a polite, informative, and only mildly critical
article by ku****@wizard.net with:

| You have the manners of ferrets. F*** yourselves collectively and shove the
| standard up your ***. LS

[edited for content]

It's not inconceivable that that article was a forgery. If so, please
say so. (I don't believe it was.)

Until and unless your behavior improves dramatically, I judge you to
be a troll (deliberate or not, I don't care which), and I will ignore
you. I leave it to others to make their own judgements.

Yes, this is off-topic. I decided to post it anyway as an attempt to
improve this newsgroup's signal-to-noise ratio.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Feb 7 '07 #102

"Dave Vandervies" <dj******@caffeine.csclub.uwaterloo.cawrote in message
In article <eq***********@pc-news.cogsci.eds..ac.uk>,
Richard Tobin <ri*****@cogsci.ed.ac.ukwrote:
>>In article <eL******************************@bt.com>,
Malcolm McLean <re*******@btinternet.comwrote:
>>>Can't say this bit about e^(i*x) = cos x + i * sin x is too convincing
though.

Consider the polynomial expansion e^x = 1 + x + x^2/2! + x^3/3! + ...

I think you mean "power series expansion". It's only a polynomial if
it's finite.
dave
(knowing the power series expansions for sin and cos would also be
helpful)
You've got to know them? Why isn't something as simple as opposite /
hypotenuse self evident ?
Feb 7 '07 #103

"Lane Straatman" <in*****@invalid.netwrote in message
>The bigger question is why Malcolm doesn't use a free development
system like MinGW. Combined with the Platform SDK, you can do nearly
everything with it, that you'd do with MSVC++.
I've had a very good experience this last week with Devcpp. Up and
running immediately. I'll post the above link in an ng with MS in the
name and see what comes. LS
I bought Visual Studio when I was still a games programmer. It is handy to
have the same compiler you use at work.
Now I've started a PhD in computer modelling of peptides, and I use a Linux
system for scientific work. However I kept the Visual Studio for doing
little hobby programs, like BASICdraw. I do want people to run my stuff, but
the virus problem means that it is hard to distribute executables. I might
be better off on Linux - sometimes it is better to be a little fish in a
little pond than a little fish in a big one.

So I did actually have a choice, for the first time in many years. I just
assumed that everything would work the same on the new Windows. Now I am not
sure that redm,ond won't remotely delete a dual boot.

http://www.personal.leeds.ac.uk/~bgy1mm

Feb 7 '07 #104
"Malcolm McLean" <re*******@btinternet.comwrites:
"Dave Vandervies" <dj******@caffeine.csclub.uwaterloo.cawrote in message
>In article <eq***********@pc-news.cogsci.eds..ac.uk>,
Richard Tobin <ri*****@cogsci.ed.ac.ukwrote:
>>>In article <eL******************************@bt.com>,
Malcolm McLean <re*******@btinternet.comwrote:

Can't say this bit about e^(i*x) = cos x + i * sin x is too convincing
though.

Consider the polynomial expansion e^x = 1 + x + x^2/2! + x^3/3! + ...

I think you mean "power series expansion". It's only a polynomial if
it's finite.
dave
(knowing the power series expansions for sin and cos would also be
helpful)
You've got to know them? Why isn't something as simple as opposite /
hypotenuse self evident ?
Because when the lengths of the sides of your right triangle and/or
the angles of its vertices are complex numbers, geometric intuition
breaks down. (At least mine does; if you're able to visualize such
things, I'm impressed.)

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Feb 7 '07 #105
Lane Straatman wrote:
>
.... snip ...
>
It looks slick as all get out. Looks don't count for much though.
I can't find a run button or pull-down and don't want to have to
step outside the IDE to run the executable:
On Windoze, ALT-tab can bring you to the terminal window (dosbox),
on which you compile and run the application just edited. Easier
and quicker than fooling with a brain-dead IDE. You can apply the
same technique, unaltered, to Linux etc.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>

"A man who is right every time is not likely to do very much."
-- Francis Crick, co-discover of DNA
"There is nothing more amazing than stupidity in action."
-- Thomas Matthews
Feb 7 '07 #106
On Feb 7, 11:06 am, "Lane Straatman" <inva...@invalid.netwrote:
"Walter Roberson" <rober...@ibd.nrc-cnrc.gc.cawrote in message

news:eq**********@canopus.cc.umanitoba.ca...In article <g7KdnYYqcflFYlTYnZ2dnUVZ_sOkn...@comcast.com>,
Lane Straatman <inva...@invalid.netwrote:
>How many decimal places can we squeeze from a long double? LS
C99 defines minimums for that, but not maximums -- an implementation
could in theory have a long double that was a kilobyte long (or more.)

Right, what is the minimum maximum? LS

The required minimums for long doubles are exactly the same as for
doubles. The minimums for both DBL_DIG and LDBL_DIG are both 10.

In practice, it's often considerably larger. For example, IEEE
doubles will get you 15 decimal digits, 80-bit Intel/x86 style
extended reals (assuming your compiler supports them) will get you 18
digits. Other implementations of extended reals exists - the double-
double format mentioned by Walter Robinson is fairly common in
software implementations, and gets you about 31 decimal digits, the
128 bit extended real on zSeries has a 112 bit mantissa and nets about
33 decimal digits. There is not really a standard for IEEE extended
doubles, but the standard does specify some minimums, which is
approximately what the 80-bit x86 format implements.

Feb 8 '07 #107

"Keith Thompson" <ks***@mib.orgwrote in message
>You've got to know them? Why isn't something as simple as opposite /
hypotenuse self evident ?

Because when the lengths of the sides of your right triangle and/or
the angles of its vertices are complex numbers, geometric intuition
breaks down. (At least mine does; if you're able to visualize such
things, I'm impressed.)
Say we've got three points in three dimensions. Put a line between a, b, and
c. It is just a normal angle. Three points always lie in a plane.
So if our vertices are complex, that makes 4 dimensions, x, xi, y, yi for
each point. But we still have three points.
Do they still lie in a plane, or is the angle between them complex?
Feb 8 '07 #108
"Malcolm McLean" <re*******@btinternet.comwrites:
"Keith Thompson" <ks***@mib.orgwrote in message
>>You've got to know them? Why isn't something as simple as opposite /
hypotenuse self evident ?

Because when the lengths of the sides of your right triangle and/or
the angles of its vertices are complex numbers, geometric intuition
breaks down. (At least mine does; if you're able to visualize such
things, I'm impressed.)
Say we've got three points in three dimensions. Put a line between a, b, and
c. It is just a normal angle. Three points always lie in a plane.
So if our vertices are complex, that makes 4 dimensions, x, xi, y, yi for
each point. But we still have three points.
Do they still lie in a plane, or is the angle between them complex?
I think that when you're dealing with trig functions applied to
complex numbers, you're no longer dealing with triangles. A triangle
in any number of dimensions lies in a plane. I'm not sure there's a
geometric interpretation for a triangle with complex sides and/or
angles.

Something like (sin x)^2 + (cos x)^2 = 1 makes sense geometically.
e^(i*x) = cos x + i * sin x, as far as I know, doesn't -- but it does
make sense algebraically. There are infinite series for each of the
exp(), sin(), and cos() functions, derived using their properties for
real numbers. Applying the same series to complex numbers gives you
mathematically useful results -- including cool whacko stuff like
e^(i*pi) + 1 = 0.

I imagine that quaternions would yield some interesting results -- but
standard C doesn't support them, so that's off-topic.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Feb 8 '07 #109
In article <ln************@nuthaus.mib.orgKeith Thompson <ks***@mib.orgwrites:
"Malcolm McLean" <re*******@btinternet.comwrites:
"Keith Thompson" <ks***@mib.orgwrote in message
>You've got to know them? Why isn't something as simple as opposite /
hypotenuse self evident ?

Because when the lengths of the sides of your right triangle and/or
the angles of its vertices are complex numbers, geometric intuition
breaks down. (At least mine does; if you're able to visualize such
things, I'm impressed.)
Say we've got three points in three dimensions. Put a line between a, b,
and c. It is just a normal angle. Three points always lie in a plane.
So if our vertices are complex, that makes 4 dimensions, x, xi, y, yi for
each point. But we still have three points.
Do they still lie in a plane, or is the angle between them complex?

I think that when you're dealing with trig functions applied to
complex numbers, you're no longer dealing with triangles.
Indeed. cos(i.ln(10)) = 5.2.
Something like (sin x)^2 + (cos x)^2 = 1 makes sense geometically.
e^(i*x) = cos x + i * sin x, as far as I know, doesn't -- but it does
make sense algebraically.
Also geometrically. Take the complex plane with real and imaginary
axis. Draw a circle with radius 1 around the origin. exp(i * x)
circles around this circle when x increases.
I imagine that quaternions would yield some interesting results
Not really.
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Feb 8 '07 #110
In article <JD********@cwi.nl>, Dik T. Winter <Di********@cwi.nlwrote:
Something like (sin x)^2 + (cos x)^2 = 1 makes sense geometically.
e^(i*x) = cos x + i * sin x, as far as I know, doesn't -- but it does
make sense algebraically.
>Also geometrically. Take the complex plane with real and imaginary
axis. Draw a circle with radius 1 around the origin. exp(i * x)
circles around this circle when x increases.
It certainly *corresponds* to something geometrical - cos x and sin x
are the coordinates of exp(ix), but to *make sense* geometrically
you'd need an intuition as to why exp(ix) should be a circle for real x.

-- Richard

--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
Feb 8 '07 #111
Dave Vandervies wrote:
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.orgwrote:

[Snip everything C-related]
>Apparently i^i (where i is the imaginary square root of -1 and "^"
denotes exponentiation) is a real number. I'm sure there's a simple
mathematical proof of this, but I'm too lazy to track it down or
reconstruct it.

Note that e^(i*pi/2) = i (this follows from the theorem that says
e^(i*x)=cos x + i*sin x). This tells us that ln(i) = i*pi/2.

So:
i = e^(ln i)
i^i = (e^(ln i))^i
= e^(ln i * i)
Try this one:

e^(i*5*pi/2) = i =>
i^i = (e^(5*i*pi/2))^i = e^(i*5*i*pi/2) = e^(-5*pi/2)

Yevgen
Feb 8 '07 #112
In article <eq**********@pc-news.cogsci.ed.ac.ukri*****@cogsci.ed.ac.uk (Richard Tobin) writes:
In article <JD********@cwi.nl>, Dik T. Winter <Di********@cwi.nlwrote:
Something like (sin x)^2 + (cos x)^2 = 1 makes sense geometically.
e^(i*x) = cos x + i * sin x, as far as I know, doesn't -- but it does
make sense algebraically.
Also geometrically. Take the complex plane with real and imaginary
axis. Draw a circle with radius 1 around the origin. exp(i * x)
circles around this circle when x increases.

It certainly *corresponds* to something geometrical - cos x and sin x
are the coordinates of exp(ix), but to *make sense* geometrically
you'd need an intuition as to why exp(ix) should be a circle for real x.
In mathematics it is easy to be lead astray by intuition.
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Feb 8 '07 #113
In article <ADGyh.5401$384.1094@trnddc05Yevgen Muntyan <mu****************@tamu.eduwrites:
Dave Vandervies wrote:
....
Note that e^(i*pi/2) = i (this follows from the theorem that says
e^(i*x)=cos x + i*sin x). This tells us that ln(i) = i*pi/2.
This is the main branch of ln.
e^(i*5*pi/2) = i =>
i^i = (e^(5*i*pi/2))^i = e^(i*5*i*pi/2) = e^(-5*pi/2)
In the complex numbers it is not necessarily true that (a^b)^c = a^(b*c):
-i = i^3 = ((-1)^(1/2))^3 = (-1)^(3/2) = ((-1)^3)^(1/2) = (-1)^(1/2) = i ?
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Feb 8 '07 #114
Dik T. Winter wrote:
In article <ADGyh.5401$384.1094@trnddc05Yevgen Muntyan <mu****************@tamu.eduwrites:
Dave Vandervies wrote:
...
Note that e^(i*pi/2) = i (this follows from the theorem that says
e^(i*x)=cos x + i*sin x). This tells us that ln(i) = i*pi/2.

This is the main branch of ln.
Yep. Note how I didn't use ln() in my "proof".
e^(i*5*pi/2) = i =>
i^i = (e^(5*i*pi/2))^i = e^(i*5*i*pi/2) = e^(-5*pi/2)
And note how I did *exactly* same thing as in the original proof.
While "ln" (with small "l") is well-defined, something^something
isn't. You got to tell what it means (like man page does).
Anyway, point really was: "see how off-topic stuff everybody likes can
be so easily wrong?" ;)
(I hope nobody will get a bright idea to cross-post to nonsense.math
or something).

Yevgen
Feb 8 '07 #115
Dik T. Winter wrote:
In article <ADGyh.5401$384.1094@trnddc05Yevgen Muntyan <mu****************@tamu.eduwrites:
Dave Vandervies wrote:
...
Note that e^(i*pi/2) = i (this follows from the theorem that says
e^(i*x)=cos x + i*sin x). This tells us that ln(i) = i*pi/2.

This is the main branch of ln.
e^(i*5*pi/2) = i =>
i^i = (e^(5*i*pi/2))^i = e^(i*5*i*pi/2) = e^(-5*pi/2)

In the complex numbers it is not necessarily true that (a^b)^c = a^(b*c):
-i = i^3 = ((-1)^(1/2))^3 = (-1)^(3/2) = ((-1)^3)^(1/2) = (-1)^(1/2) = i ?
That's not specific to the complex numbers, is it? ((-1)^2)^(1/2) !=
(-1)^(2*(1/2)).

Feb 8 '07 #116
On Thu, 8 Feb 2007, Richard Tobin wrote:
In article <JD********@cwi.nl>, Dik T. Winter <Di********@cwi.nlwrote:
>>Something like (sin x)^2 + (cos x)^2 = 1 makes sense geometically.
e^(i*x) = cos x + i * sin x, as far as I know, doesn't -- but it does
make sense algebraically.
>Also geometrically. Take the complex plane with real and imaginary
axis. Draw a circle with radius 1 around the origin. exp(i * x)
circles around this circle when x increases.

It certainly *corresponds* to something geometrical - cos x and sin x
are the coordinates of exp(ix), but to *make sense* geometrically
you'd need an intuition as to why exp(ix) should be a circle for real x.

-- Richard
Do matrices look geometric enough for you?

[ 1 0] [ 0 1]
Define I = [ ] and J = [ ]. It can be proven that
[ 0 1] [-1 0]

aI + bJ is isomorphic to the complex number a + bi. It can
further be proven that

[ 0 x] [ cos x sin x]
exp [ ] = [ ]
[-x 0] [-sin x cos x]

which corresponds to exp (ix) = cos x + i sin x.

Tak-Shing
Feb 8 '07 #117
On 8 Feb 2007 08:06:24 -0800, "Harald van D?k" <tr*****@gmail.com>
wrote:
>Dik T. Winter wrote:
>In article <ADGyh.5401$384.1094@trnddc05Yevgen Muntyan <mu****************@tamu.eduwrites:
> Dave Vandervies wrote:
...
> Note that e^(i*pi/2) = i (this follows from the theorem that says
e^(i*x)=cos x + i*sin x). This tells us that ln(i) = i*pi/2.
don't know if it is right:
i=0+i*1=cos(pi/2)+i*sin(pi/2)=e^(i*pi/2) it seems ok

i^i=(e^(i*pi/2))^i=e^(-pi/2)=0,20787957635076190854695561
i have seen that number in this thread...

|#include <stdio.h>
|#include <complex.h>
|int main(void)
|{
| const long double complex z1 = cpowl(I, I);
| printf("%Lf %Lf\n", creall(z1), cimagl(z1));
| return 0;
|}

|and its output:

|0.207880 0.000000

>This is the main branch of ln.
> e^(i*5*pi/2) = i =>
are you sure of that?
if the answer is yes i^i has more than 1 result
> i^i = (e^(5*i*pi/2))^i = e^(i*5*i*pi/2) = e^(-5*pi/2)

In the complex numbers it is not necessarily true that (a^b)^c = a^(b*c):
-i = i^3 = ((-1)^(1/2))^3 = (-1)^(3/2) = ((-1)^3)^(1/2) = (-1)^(1/2) = i ?

That's not specific to the complex numbers, is it? ((-1)^2)^(1/2) !=
(-1)^(2*(1/2)).
Feb 9 '07 #118
On Fri, 09 Feb 2007 08:46:05 +0100, "¬a\\/b" <al@f.gwrote:
>On 8 Feb 2007 08:06:24 -0800, "Harald van D?k" <tr*****@gmail.com>
wrote:
>>Dik T. Winter wrote:
>>In article <ADGyh.5401$384.1094@trnddc05Yevgen Muntyan <mu****************@tamu.eduwrites:
Dave Vandervies wrote:
...
Note that e^(i*pi/2) = i (this follows from the theorem that says
e^(i*x)=cos x + i*sin x). This tells us that ln(i) = i*pi/2.
my book says if a, beR
a+i*b=r(cos(t)+i*sin(t))=r*e^(i*t) (r,t)eRx[0,2*pi)

if i have a+i*b than find
r=sqrt(a^2+b^2)
if r=0 than a+i*b=0*e^0
else resolve
cos(t)=a/r sin(t)=b/r te[0, 2*pi)
(note 1=a^2/r^2+b^2/r^2=cos(t)^2+sin(t)^2)
and write a+i*b=r*e^(i*t)

if i have r*e^(i*t)=r(cos(t)+i*sin(t))=
r*cos(t)+i*r*sin(t)=a+i*b
>don't know if it is right:
i=0+i*1=cos(pi/2)+i*sin(pi/2)=e^(i*pi/2) it seems ok
i^i=(e^(i*pi/2))^i=e^(-pi/2)=0,20787957635076190854695561
it seems right
"e^(i*5*pi/2) = i" seems to me wrong because
not(5*pi/2e[0,2pi))
Feb 9 '07 #119
On Fri, 09 Feb 2007 10:48:56 +0100, "¬a\\/b" <al@f.gwrote:
>On Fri, 09 Feb 2007 08:46:05 +0100, "¬a\\/b" <al@f.gwrote:
>>On 8 Feb 2007 08:06:24 -0800, "Harald van D?k" <tr*****@gmail.com>
wrote:
>>>Dik T. Winter wrote:
In article <ADGyh.5401$384.1094@trnddc05Yevgen Muntyan <mu****************@tamu.eduwrites:
Dave Vandervies wrote:
...
Note that e^(i*pi/2) = i (this follows from the theorem that says
e^(i*x)=cos x + i*sin x). This tells us that ln(i) = i*pi/2.

my book says if a, beR
my book don't say really this but seems right in this way
>a+i*b=r(cos(t)+i*sin(t))=r*e^(i*t) (r,t)eRx[0,2*pi)
a+i*b=r(cos(t)+i*sin(t))=r*e^(i*t) (r,t)eR^(+)x(-pi,+pi]
>if i have a+i*b than find
r=sqrt(a^2+b^2)
if r=0 than a+i*b=0*e^0
else resolve
cos(t)=a/r sin(t)=b/r te[0, 2*pi)
cos(t)=a/r sin(t)=b/r for te(-pi,+pi]
>(note 1=a^2/r^2+b^2/r^2=cos(t)^2+sin(t)^2)
and write a+i*b=r*e^(i*t)

if i have r*e^(i*t)=r(cos(t)+i*sin(t))=
r*cos(t)+i*r*sin(t)=a+i*b
>>don't know if it is right:
i=0+i*1=cos(pi/2)+i*sin(pi/2)=e^(i*pi/2) it seems ok
i^i=(e^(i*pi/2))^i=e^(-pi/2)=0,20787957635076190854695561
>it seems right
"e^(i*5*pi/2) = i" seems to me wrong because
not(5*pi/2e[0,2pi))
not(5*pi/2e(-pi,pi])
Feb 9 '07 #120

"Malcolm McLean" <re*******@btinternet.comwrote in message
news:H9*********************@bt.com...
>
"Dave Vandervies" <dj******@caffeine.csclub.uwaterloo.cawrote in message
In article <eq***********@pc-news.cogsci.eds..ac.uk>,
Richard Tobin <ri*****@cogsci.ed.ac.ukwrote:
>In article <eL******************************@bt.com>,
Malcolm McLean <re*******@btinternet.comwrote:

Can't say this bit about e^(i*x) = cos x + i * sin x is too convincing
though.

Consider the polynomial expansion e^x = 1 + x + x^2/2! + x^3/3! + ...
I think you mean "power series expansion". It's only a polynomial if
it's finite.
dave
(knowing the power series expansions for sin and cos would also be
helpful)
You've got to know them? Why isn't something as simple as opposite /
hypotenuse self evident ?

For the same reason that the formulas for the roots of quadratic equations
are not self evident. In general, to mathematicians, things only get
interesting when we leave the tangible and touchable behind, and move to a
higher level of abstraction. Trying to relate these back to physical models
in these cases is often unproductive. What you are asking is almost the same
as asking what specific numbers are "x" and "y" in an formula such as
y=x+4...
Feb 10 '07 #121
In article <bo******************************@eclipse.net.uk"D avid Wade" <g8***@yahoo.comwrites:
"Malcolm McLean" <re*******@btinternet.comwrote in message
news:H9*********************@bt.com...
"Dave Vandervies" <dj******@caffeine.csclub.uwaterloo.cawrote in message
....
(knowing the power series expansions for sin and cos would also be
helpful)
>
You've got to know them? Why isn't something as simple as opposite /
hypotenuse self evident ?

For the same reason that the formulas for the roots of quadratic equations
are not self evident.
No. It is much more basic. How would you define a trangle with one right
angle and two complex angles? The question being: "what *is* a complex
angle?"
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Feb 11 '07 #122
"Dik T. Winter" <Di********@cwi.nlwrote in message
No. It is much more basic. How would you define a trangle with one right
angle and two complex angles? The question being: "what *is* a complex
angle?"
Let's imagine a triangle with complex instead of real coordinates.

So instead of x1, y1, x2, y2, x3, y3 we have xr1, xi1, yr1, yi1, xr2, xi2,
yr2, yi2, xr3, xi3, yr3, yi3.

You agree that the sine of such a triangle could be complex, if only we can
decide which is the right angle, because we are dividing one complex number
by another.

To reduce thr strain on our brain, lets declare point one to be at the
origin.

Now we have

0, 0, 0, 0, xr2, xi2, yr2, yi2, xr3, xi3, yr3, yi3.

To reduce the strain further, we can say that point two always alies along
the real x axis.

0, 0, 0, 0, xr2, 0, 0, 0, xr3, xi3, yr3, yi3.

Once we've done that we can rotate about the x axis until one of the other
points goes to zero. Let's choose to lose yi3.

Now we've got

0, 0, 0, 0, xr2, 0, 0, 0, xr3, xi3, yr3, 0.

Now things are really looking up. We've only got one imaginary component
complicating things.

However can can play another trick. Three points in four dimensions are
exactly the same as four points in three dimensions.

So now we;ve got

0, xr2, xr3 - xreal
0, 0, xi3 - x imaginary
0, 0, yr3 - y real
0, 0, 0 - y imaginary.

very nicely, we've got a point at the origin. And four points can be defined
by two lengths, two angles, and one torsion angle - assuming we ignore
translation and rotation. However when we look at our zeroes, we can knock
out the x column, and the two middle values are in a straight line. So we
are actually left with a regular triangle, and we can see if it is
right-angled. Unfortunately we actually have three such "triangles", because
we've introduced more possible connections. Only one of them has no BC edge
and thus isn't a triangle.


Feb 11 '07 #123
In article <KM*********************@bt.com"Malcolm McLean" <re*******@btinternet.comwrites:
"Dik T. Winter" <Di********@cwi.nlwrote in message
No. It is much more basic. How would you define a trangle with one right
angle and two complex angles? The question being: "what *is* a complex
angle?"
Let's imagine a triangle with complex instead of real coordinates.
I ask what a complex angle is. Or more basic: I want to compute the
sine of 2.i. You would be a lot more convincing if you could construct
a triangle with angles pi/2, 2.i and ( pi/2 - 2.i). In that case we may
use the definition of quotients of sides. We will not, of course, because
the modulus of such a quotient will alway be less than or equal to 1, but
sin(2.i) = 3.626860408 .i.
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Feb 12 '07 #124

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.