Click here to Skip to main content
15,907,000 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUsing .Net components in a MFC application Pin
Jaran Nilsen1-May-04 7:33
Jaran Nilsen1-May-04 7:33 
Generalpow(-1, 0.3333333333) doesn't return -1 Pin
Roman Nurik1-May-04 6:58
Roman Nurik1-May-04 6:58 
GeneralRe: pow(-1, 0.3333333333) doesn't return -1 Pin
Michael Dunn1-May-04 10:13
sitebuilderMichael Dunn1-May-04 10:13 
GeneralRe: pow(-1, 0.3333333333) doesn't return -1 Pin
Roman Nurik1-May-04 14:01
Roman Nurik1-May-04 14:01 
Generaland it shouldn't Pin
Tim Smith1-May-04 14:17
Tim Smith1-May-04 14:17 
GeneralRe: and it shouldn't Pin
Roman Nurik1-May-04 14:38
Roman Nurik1-May-04 14:38 
GeneralRe: and it shouldn't Pin
Tim Smith1-May-04 15:51
Tim Smith1-May-04 15:51 
GeneralRe: and it shouldn't Pin
Barvus1-May-04 19:49
Barvus1-May-04 19:49 
>Is "the" cube root of -1, -1?

>No.

>It is one of at least two cube roots.

By that logic, pow(1, 1/3) should return undefined too, since -1/2 + j * sqrt(3)/2 and -1/2 - j * sqrt(3)/2 are also solutions. (It doesn't. It returns 1, as you would expect.)

For what it's worth, the calculator in Windows XP returns "Invalid input for function" when you try to do (-1)^(1/3). I think that's what most calculators that don't handle complex numbers do.
GeneralRe: and it shouldn't Pin
Tim Smith2-May-04 4:50
Tim Smith2-May-04 4:50 
GeneralRe: and it shouldn't Pin
Barvus2-May-04 5:35
Barvus2-May-04 5:35 
GeneralRe: and it shouldn't Pin
f641-May-04 19:10
f641-May-04 19:10 
GeneralRe: pow(-1, 0.3333333333) doesn't return -1 Pin
Eguru1-May-04 20:46
Eguru1-May-04 20:46 
GeneralRe: pow(-1, 0.3333333333) doesn't return -1 Pin
Roman Nurik2-May-04 4:08
Roman Nurik2-May-04 4:08 
GeneralRe: pow(-1, 0.3333333333) doesn't return -1 Pin
f642-May-04 6:59
f642-May-04 6:59 
GeneralRe: pow(-1, 0.3333333333) doesn't return -1 Pin
Roman Nurik2-May-04 7:04
Roman Nurik2-May-04 7:04 
GeneralNo static linking Pin
jonsson_841-May-04 6:57
jonsson_841-May-04 6:57 
GeneralRe: No static linking Pin
peterchen1-May-04 7:23
peterchen1-May-04 7:23 
GeneralRe: No static linking Pin
PJ Arends1-May-04 14:16
professionalPJ Arends1-May-04 14:16 
QuestionReversal of VkKeyScan? Pin
Abin1-May-04 5:31
Abin1-May-04 5:31 
AnswerRe: Reversal of VkKeyScan? Pin
User 66581-May-04 7:22
User 66581-May-04 7:22 
AnswerRe: Reversal of VkKeyScan? Pin
Mike Dimmick2-May-04 0:14
Mike Dimmick2-May-04 0:14 
Questionhow to trap events and post it to a desired window Pin
shammyrly1-May-04 4:57
shammyrly1-May-04 4:57 
AnswerRe: how to trap events and post it to a desired window Pin
Abin1-May-04 5:36
Abin1-May-04 5:36 
QuestionHow do I load a 16x16 icon? Pin
Barvus1-May-04 4:38
Barvus1-May-04 4:38 
AnswerRe: How do I load a 16x16 icon? Pin
Barvus1-May-04 4:59
Barvus1-May-04 4:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.