Click here to Skip to main content
15,899,013 members
Home / Discussions / C#
   

C#

 
AnswerRe: Problem with saving file. Pin
N a v a n e e t h19-Jul-09 20:15
N a v a n e e t h19-Jul-09 20:15 
AnswerRe: Problem with saving file. Pin
PIEBALDconsult19-Jul-09 20:55
mvePIEBALDconsult19-Jul-09 20:55 
Questionleft pane Pin
Satish Pai19-Jul-09 18:53
Satish Pai19-Jul-09 18:53 
AnswerRe: left pane Pin
Mycroft Holmes19-Jul-09 20:17
professionalMycroft Holmes19-Jul-09 20:17 
GeneralRe: left pane Pin
Satish Pai19-Jul-09 21:03
Satish Pai19-Jul-09 21:03 
GeneralRe: left pane Pin
Ashfield19-Jul-09 21:40
Ashfield19-Jul-09 21:40 
GeneralRe: left pane Pin
OriginalGriff19-Jul-09 21:50
mveOriginalGriff19-Jul-09 21:50 
QuestionWizard Pin
john563219-Jul-09 18:42
john563219-Jul-09 18:42 
AnswerRe: Wizard Pin
N a v a n e e t h19-Jul-09 20:10
N a v a n e e t h19-Jul-09 20:10 
GeneralRe: Wizard Pin
john563219-Jul-09 23:21
john563219-Jul-09 23:21 
QuestionCubic roots of negative numbers, Math.Pow() Pin
Brandon Walton19-Jul-09 17:22
Brandon Walton19-Jul-09 17:22 
AnswerRe: Cubic roots of negative numbers, Math.Pow() Pin
PIEBALDconsult19-Jul-09 17:28
mvePIEBALDconsult19-Jul-09 17:28 
GeneralRe: Cubic roots of negative numbers, Math.Pow() Pin
Brandon Walton19-Jul-09 17:42
Brandon Walton19-Jul-09 17:42 
GeneralRe: Cubic roots of negative numbers, Math.Pow() Pin
PIEBALDconsult19-Jul-09 17:53
mvePIEBALDconsult19-Jul-09 17:53 
GeneralRe: Cubic roots of negative numbers, Math.Pow() Pin
Brandon Walton19-Jul-09 18:36
Brandon Walton19-Jul-09 18:36 
AnswerRe: Cubic roots of negative numbers, Math.Pow() Pin
harold aptroot19-Jul-09 17:53
harold aptroot19-Jul-09 17:53 
GeneralRe: Cubic roots of negative numbers, Math.Pow() Pin
Brandon Walton19-Jul-09 18:22
Brandon Walton19-Jul-09 18:22 
GeneralRe: Cubic roots of negative numbers, Math.Pow() Pin
harold aptroot19-Jul-09 18:43
harold aptroot19-Jul-09 18:43 
GeneralRe: Cubic roots of negative numbers, Math.Pow() Pin
Brandon Walton19-Jul-09 19:09
Brandon Walton19-Jul-09 19:09 
GeneralRe: Cubic roots of negative numbers, Math.Pow() Pin
PIEBALDconsult19-Jul-09 18:53
mvePIEBALDconsult19-Jul-09 18:53 
GeneralRe: Cubic roots of negative numbers, Math.Pow() Pin
harold aptroot19-Jul-09 18:59
harold aptroot19-Jul-09 18:59 
GeneralRe: Cubic roots of negative numbers, Math.Pow() Pin
PIEBALDconsult19-Jul-09 20:48
mvePIEBALDconsult19-Jul-09 20:48 
AnswerRe: Cubic roots of negative numbers, Math.Pow() Pin
Luc Pattyn20-Jul-09 1:05
sitebuilderLuc Pattyn20-Jul-09 1:05 
to summarize what others have said:

1. read the doc, it lists special cases including yours:
x < 0 but not NegativeInfinity; y is not an integer, NegativeInfinity, or PositiveInfinity ==> NaN

2. realize Math.Pow is using exp(y*ln(x)) so x better be positive
(you don't have to know that, but it justifies some of the documented special cases)

3. realize (double)1/3 can't be stored exactly in binary (not really relevant here)

4. make your own cubicroot method, which performs sign(x)*Math.Pow(abs(x),y)

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

QuestionHow many times each unique String appears in the collection. Pin
dsrao19-Jul-09 17:14
dsrao19-Jul-09 17:14 
AnswerRe: How many times each unique String appears in the collection. Pin
PIEBALDconsult19-Jul-09 17:16
mvePIEBALDconsult19-Jul-09 17:16 

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.