?? compound.c
字號:
#ifndef lintstatic char sccsid[] = "@(#)compound.c 1.1 92/07/30 SMI";#endif/* * Copyright (c) 1988 by Sun Microsystems, Inc. *//* compound(r,n) * * Returns (1+r)**n; undefined for r <= -1. */#include <math.h>double compound(r,n)double r,n;{ double w; if(n==0.0) return 1.0; if(r!=r) return r+r; w = fabs(r); if(r<-1.0||fabs(r)<=0.5) return exp(n*log1p(r)); else return pow(1.0+r,n); }
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -