RosettaCodeData/Task/Named-parameters/Objective-C/named-parameters-2.m

11 lines
213 B
Mathematica
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
@implementation Demo
- (double) hypotenuseOfX: (double)x andY: (double)y {
return hypot(x,y);
}
- (double) hypotenuseOfX: (double)x andY: (double)y andZ: (double)z {
return hypot(hypot(x, y), z);
}
@end