/macosx-10.10/tcl-105/tcl_ext/tclx/tclx/tests/ |
H A D | math.test | 2 # math.test 4 # Tests for the random, min, and commands. 15 # $Id: math.test,v 1.2 2002/04/02 02:29:43 hobbs Exp $ 26 Test math-1.1.$i {random tests} { 32 Test math-1.2 {random tests} { 36 Test math-1.3 {random tests} { 42 Test math-1.4 {random tests} { 46 Test math-2.1 {max tests} { 50 Test math-2.2 {max tests} { 54 Test math [all...] |
/macosx-10.10/llvmCore-3425.0.34/utils/lit/lit/ |
H A D | Util.py | 95 import itertools, math 102 power = int(math.ceil(math.log(maxValue, 10))) 105 N = int(math.ceil(maxValue / barH)) 113 bin = min(int(N * v/maxValue), N-1) 124 pDigits = int(math.ceil(math.log(maxValue, 10))) 128 cDigits = int(math.ceil(math.log(len(items), 10)))
|
/macosx-10.10/WebCore-7600.1.25/platform/audio/ |
H A D | Distance.cpp | 36 #include <math.h> 52 distance = std::min(distance, m_maxDistance);
|
H A D | HRTFElevation.cpp | 42 #include <math.h> 254 int actualElevation = std::min(elevation, maxElevation);
|
/macosx-10.10/pyobjc-45/2.5/pyobjc/pyobjc-framework-Quartz/Examples/TLayer/ |
H A D | ShadowOffsetView.py | 5 import math 37 radius = math.sqrt(offset.width * offset.width + offset.height * offset.height) 61 r = min(w / 2, h / 2) 67 CGContextAddArc(context, 0, 0, r, 0, math.pi, True) 73 CGContextAddArc(context, 0, 0, r, 0, 2*math.pi, True) 77 CGContextAddArc(context, 0, -2, r, 0, 2*math.pi, True)
|
/macosx-10.10/pyobjc-45/2.6/pyobjc/pyobjc-framework-Quartz/Examples/TLayer/ |
H A D | ShadowOffsetView.py | 5 import math 37 radius = math.sqrt(offset.width * offset.width + offset.height * offset.height) 61 r = min(w / 2, h / 2) 67 CGContextAddArc(context, 0, 0, r, 0, math.pi, True) 73 CGContextAddArc(context, 0, 0, r, 0, 2*math.pi, True) 77 CGContextAddArc(context, 0, -2, r, 0, 2*math.pi, True)
|
/macosx-10.10/pyobjc-45/pyobjc/pyobjc-framework-Quartz-2.5.1/Examples/TLayer/ |
H A D | ShadowOffsetView.py | 5 import math 37 radius = math.sqrt(offset.width * offset.width + offset.height * offset.height) 61 r = min(w / 2, h / 2) 67 CGContextAddArc(context, 0, 0, r, 0, math.pi, True) 73 CGContextAddArc(context, 0, 0, r, 0, 2*math.pi, True) 77 CGContextAddArc(context, 0, -2, r, 0, 2*math.pi, True)
|
/macosx-10.10/vim-55/runtime/syntax/ |
H A D | lua.vim | 140 syn keyword luaFunc mod frexp ldexp sqrt min max log 195 syn match luaFunc /math\.abs/ 196 syn match luaFunc /math\.acos/ 197 syn match luaFunc /math\.asin/ 198 syn match luaFunc /math\.atan/ 199 syn match luaFunc /math\.atan2/ 200 syn match luaFunc /math\.ceil/ 201 syn match luaFunc /math\.sin/ 202 syn match luaFunc /math\.cos/ 203 syn match luaFunc /math\ [all...] |
H A D | hb.vim | 30 syn match HBhtmlTagS contained "<\s*\(hb\s*\.\s*\(sec\|min\|hour\|day\|mon\|year\|input\|html\|time\|getcookie\|streql\|url-enc\)\|wall\s*\.\s*\(show\|info\|id\|new\|rm\|count\)\|auth\s*\.\s*\(chk\|add\|find\|user\)\|math\s*\.\s*exp\)\s*\([^.A-Za-z0-9]\|$\)" contains=HBhtmlTagSk transparent
|
H A D | plaintex.vim | 70 " Keep this after plaintexMath, as we don���t want math mode started at a \$. 92 \ '\\\%(aleph\|alpha\|beta\|chi\|[dD]elta\|ell\|epsilon\|eta\|[gG]amma\|[ij]math\|iota\|kappa\|[lL]ambda\|[mn]u\|[oO]mega\|[pP][hs]\=i\|rho\|[sS]igma\|tau\|[tT]heta\|[uU]psilon\|var\%(epsilon\|ph\=i\|rho\|sigma\|theta\)\|[xX]i\|zeta\)\>' 96 \ '\\\%(arc\%(cos\|sin\|tan\)\|arg\|\%(cos\|sin\|tan\)h\=\|coth\=\|csc\|de[gt]\|dim\|exp\|gcd\|hom\|inf\|ker\|lo\=g\|lim\%(inf\|sup\)\=\|ln\|max\|min\|Pr\|sec\|sup\)\>'
|
/macosx-10.10/WebCore-7600.1.25/platform/graphics/ |
H A D | FloatRect.cpp | 33 #include <math.h> 82 float r = std::min(maxX(), other.maxX()); 83 float b = std::min(maxY(), other.maxY()); 111 float minX = std::min(x(), other.x()); 112 float minY = std::min(y(), other.y()); 134 float minX = std::min(x(), p.x()); 135 float minY = std::min(y(), p.y()); 152 float left = std::min(p0.x(), p1.x()); 153 float top = std::min(p0.y(), p1.y()); 161 // Helpers for 3- and 4-way max and min [all...] |
/macosx-10.10/rsync-45/rsync/lib/ |
H A D | snprintf.c | 100 #ifdef TEST_SNPRINTF /* need math library headers for testing */ 109 # include <math.h> 199 char *value, int flags, int min, int max); 201 long value, int base, int min, int max, int flags); 203 LDOUBLE fvalue, int min, int max, int flags); 212 int min; local 223 currlen = flags = cflags = min = 0; 268 min = 10*min + char_to_int (ch); 271 min 469 fmtstr(char *buffer, size_t *currlen, size_t maxlen, char *value, int flags, int min, int max) argument 507 fmtint(char *buffer, size_t *currlen, size_t maxlen, long value, int base, int min, int max, int flags) argument 658 fmtfp(char *buffer, size_t *currlen, size_t maxlen, LDOUBLE fvalue, int min, int max, int flags) argument [all...] |
/macosx-10.10/tcl-105/tcl_ext/tcllib/tcllib/modules/simulation/ |
H A D | random.tcl | 60 # min Minimum value 67 proc ::simulation::random::prng_Uniform {min max} { 73 set range [expr {$max-$min}] 74 proc $name {} [string map [list MIN $min RANGE $range] {return [expr {MIN+RANGE*rand()}]}] 84 # min Minimum value 91 proc ::simulation::random::prng_Exponential {min mean} { 97 set b [expr {$mean-$min}] 98 proc $name {} [string map [list MIN $min B $b] {return [expr {MIN-B*log(rand())}]}] 197 # min Minimum value for the distribution 203 proc ::simulation::random::prng_Pareto {min stee [all...] |
/macosx-10.10/xnu-2782.1.97/tools/tests/jitter/ |
H A D | timer_jitter.c | 30 #include <math.h> 80 printf("Usage: jitter [-w] [-s <random seed>] [-n <min sleep, ns>] [-m <max sleep, ns>] <realtime | timeshare | fixed> <num iterations> <traceworthy jitter, ns>\n"); 191 print_stats_us(const char *label, double avg, double max, double min, double stddev) argument 194 printf("Min %s: %.1lfus\n", label, min / 1000.0 * (((double)g_mti.numer) / ((double)g_mti.denom))); 201 print_stats_fract(const char *label, double avg, double max, double min, double stddev) argument 204 printf("Min %s jitter: %.1lf%%\n", label, min * 100); 230 double avg, stddev, max, min; local 397 compute_stats(jitter_arr, iterations, &avg, &max, &min, &stddev); 401 print_stats_us("jitter", avg, max, min, stddev); 411 compute_stats(wakeup_second_jitter_arr, iterations, &avg, &max, &min, [all...] |
/macosx-10.10/cxxfilt-11/cxxfilt/libiberty/ |
H A D | floatformat.c | 28 #include <math.h> 254 #ifndef min macro 255 #define min(a, b) ((a) < (b) ? (a) : (b)) 279 hi_bit = min (lo_bit + len, FLOATFORMAT_CHAR_BIT); 291 hi_bit = min (len, FLOATFORMAT_CHAR_BIT); 329 mant_bits = min (mant_bits_left, 32); 389 mant_bits = min (mant_bits_left, 32); 444 hi_bit = min (lo_bit + len, FLOATFORMAT_CHAR_BIT); 456 hi_bit = min (len, FLOATFORMAT_CHAR_BIT);
|
/macosx-10.10/tcl-105/tcl_ext/tkimg/tkimg/compat/libtiff/libtiff/ |
H A D | tif_color.c | 40 #include <math.h> 179 #define CLAMP(f,min,max) ((f)<(min)?(min):(f)>(max)?(max):(f))
|
/macosx-10.10/system_cmds-643.1.1/iosim.tproj/ |
H A D | iosim.c | 12 #include <math.h> 72 void validate_option(int value, int min, int max, char *option, char *units); 326 void validate_option(int value, int min, int max, char *option, char *units) argument 328 if (value < min || value > max) { 329 printf("Illegal option value %d for %s (Min value: %d %s, Max value: %d %s).\n", value, option, min, units, max, units);
|
/macosx-10.10/tcl-105/tcl_ext/snack/snack/generic/ |
H A D | shape.c | 9 #include <math.h> 17 short min; member in struct:__anon12917 302 /* compute min/max for each point */ 315 if (first || (mn < q[c].min)) 316 q[c].min = mn; 327 SetShortSample(shp, 2*i+1, c, q[c].min); 329 Snack_SetSample(shp, 2*c+1, i, q[c].min); */
|
/macosx-10.10/WebCore-7600.1.25/rendering/ |
H A D | RenderFileUploadControl.cpp | 38 #include <math.h> 238 m_maxPreferredLogicalWidth = std::min(m_maxPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(style().maxWidth().value())); 239 m_minPreferredLogicalWidth = std::min(m_minPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(style().maxWidth().value()));
|
/macosx-10.10/BerkeleyDB-21/db/examples_java/src/db/ |
H A D | TpcbExample.java | 15 import java.math.BigDecimal; 310 int min, max, num; 312 max = min = BEGID; 316 min += branches; 322 min += accounts; 325 max = min + num - 1; 327 return (random_int(min, max));
|
/macosx-10.10/libxslt-13/libxslt/libexslt/ |
H A D | math.c | 20 #include <math.h> 33 * Implements the EXSLT - Math min() function: 34 * number math:min (node-set) 75 "math:min: invalid number of arguments\n"); 103 * number math:max (node-set) 171 * node-set math:highest (node-set) 251 * node-set math:lowest (node-set) 259 double min, cu local [all...] |
/macosx-10.10/ntp-92/include/ |
H A D | ntp.h | 7 #include <math.h> 110 #define NTP_MINPOLL 3 /* log2 min poll interval (8 s) */ 111 #define NTP_MINDPOLL 6 /* log2 default min poll (64 s) */ 115 #define NTP_MINPKT 1 /* log2 min interburst interval (2 s) */ 127 #define NTP_MINCLOCK 3 /* min survivors */ 130 #define MINDISPERSE .001 /* min distance */ 264 u_char minpoll; /* min poll interval */ 555 #define LEN_PKT_NOMAC (12 * sizeof(u_int32)) /* min header length */ 676 * min, min3 and max. Makes it easier to transliterate the spec without 679 #define min( macro [all...] |
/macosx-10.10/xnu-2782.1.97/tools/tests/zero-to-n/ |
H A D | zero-to-n.c | 30 #include <math.h> 377 * Given an array of uint64_t values, compute average, max, min, and standard deviation 420 uint64_t max, min; local 605 compute_stats(worst_latencies_ns, g_iterations, &avg, &max, &min, &stddev); 608 printf("Min:\t\t%.2f us\n", ((float)min) / 1000.0); 614 compute_stats(worst_latencies_from_first_ns, g_iterations, &avg, &max, &min, &stddev); 617 printf("Min:\t\t%.2f us\n", ((float)min) / 1000.0);
|
/macosx-10.10/emacs-93/emacs/lisp/calc/ |
H A D | calc-lang.el | 38 (setq math-expr-opers (or (get lang 'math-oper-table) math-standard-opers) 39 math-expr-function-mapping (get lang 'math-function-table) 40 math-expr-special-function-mapping (get lang 'math-special-function-table) 41 math-expr-variable-mapping (get lang 'math-variable-table) 42 calc-language-input-filter (get lang 'math [all...] |
/macosx-10.10/pyobjc-45/2.5/pyobjc/pyobjc-framework-Cocoa/Examples/AppKit/FieldGraph/ |
H A D | CGraphView.py | 4 from math import pi, sin, cos 85 self.graphRadius = (min(frame[sze][x], frame[sze][y]) / 2) - self.graphMargin
|