X input test
Author: q | 2025-04-24
X Input Tester. Contribute to garythegoof/X-Input-Test development by creating an account on GitHub.
X-Input-Test/ at master garythegoof/X-Input-Test
Of x = 2.000000 Click me to see the solution 19. Harmonic Series and Their Sum Write a program in C to display the n terms of a harmonic series and their sum. 1 + 1/2 + 1/3 + 1/4 + 1/5 ... 1/n terms Test Data : Input the number of terms : 5 Expected Output : 1/1 + 1/2 + 1/3 + 1/4 + 1/5 + Sum of Series upto 5 terms : 2.283334 Click me to see the solution 20. Pyramid Pattern with Odd Asterisks Write a C program to display the pattern as a pyramid using asterisks, with each row containing an odd number of asterisks. * *** *****Click me to see the solution 21. Sum of Series [9 + 99 + 999 + …] Write a program in C to display the sum of the series [ 9 + 99 + 999 + 9999 ...]. Test Data : Input the number or terms :5 Expected Output : 9 99 999 9999 99999 The sum of the saries = 111105 Click me to see the solution 22. Floyd's Triangle Write a program in C to print Floyd's Triangle. 1 01101 0101 10101Click me to see the solution 23. Sum of Series [ 1+x+x^2/2!+x^3/3!+....].Write a program in C to find the sum of the series[ 1+x+x^2/2!+x^3/3!+....]. Test Data : Input the value of x :2 Input number of terms : 5 Expected Output :The sum is : 7.000000 Click me to see the solution24. Alternate Sum Series [x - x³ + x⁵ - …] (Variant)Write a program in C to find the sum of the series [ x - x^3 + x^5 + ......]. Test Data : Input the value of x :2 Input number of terms : 5Expected Output :The values of the series: 2 -8 32 -128 512 The sum = 410 Click me to see the solution25. Square Natural Numbers and Their SumWrite a C program that displays the n terms of square natural numbers and their sum. 1 4 9 16 ... n Terms Test Data : Input the number of terms : 5 Expected Output : The square natural upto 5 terms are :1 4 9 16 25 The Sum of Square Natural Number upto 5 terms = 55 Click me to see the solution26. Sum of Series 1 + 11 + 111 + …Write a program in C to find the sum of the series 1 +11 + 111 + 1111 + .. n terms. Test Data : Input the number of terms : 5 Expected Output :1 + 11 + 111 + 1111 + 11111 The Sum is : 12345 Click me to see the solution27. Perfect Number CheckWrite a C program to check whether a given number is a 'Perfect' number or not. Test Data : Input the number : 56 Expected Output : The positive divisor : 1 2 4 7 8 14 28 The sum of the divisor is : 64 So, the number is not perfect. Login for Software/Firmware Downloads Digital Timer Part Number(s) 9032-UC [110V RFD-200 S3]9082-UC [220V RFD-200 S3] Download Links The RFD-200 S3 is a portable relay test set that delivers performance verification testing of electromechanical, electronic, and microprocessor-based protective relays in their operating installations. The RFD-200 S3 is a rugged test set suitable for testing a variety of protection relays operated in both indoor and outdoor environments. The unit’s ergonomic design and intuitive control panel layout make it ideal for first-time users who have little or no training. A built-in Timer displays contact time in both cycles and millisecondsAC current source with 3 outputs (10A, 40A, 100A)Set of NO/NC dry contacts that change state when a test is initiatedAC voltage source for testing relays up to 250 VacDC Voltage source (0 - 300 Vdc)Volt meter input (0 - 600 V input range)Three power supplies (24 Vdc, 48 Vdc, 124 Vdc)Built-in power resistors RFD-200 S3 Technical Specifications TYPEPortable relay test setINPUT POWER 100 – 120 Vac or 200 – 240 Vac (factory pre-set), 50/60 HzPHYSICAL SPECIFICATIONS 17”W x 12.5”H x 12”D, (42.7 cm x 32.0 cm x 30.5 cm); Weight: 35 lbs (15.9 kg)AMPERE METER INPUT RANGES Internal input range: 0 – 250 A; Accuracy: 2% of reading ± 10 mA, External AC input range: 0 – 6A; Accuracy: 1% of reading ± 10mA External DC input range: 0 – 6A; Accuracy: 0.5% of reading ±1 count Measurement Method: True RMS for ACVOLT METER INPUT RANGE 0 – 600.0V; AC accuracy: 1% ofX-Input-Test/ at master garythegoof/X-Input-Test - GitHub
:Reversed string is: emocleW Click me to see the solution 58. Find String Length Without Library Function Write a C program to find the length of a string without using the library function. Test Data : Input a string : welcome Expected Output :The string contains 7 number of characters. So, the length of the string welcome is : 7 Click me to see the solution 59. Armstrong Number Check for n Digits Write a C program to check the Armstrong number of n digits. Test Data : Input an integer : 1634 Expected Output : 1634 is an Armstrong number Click me to see the solution 60. Count Characters Until End of File Write a C program that takes user input and counts the number of characters until the end of the file. Test Data : Input characters : w3resource Expected Output :Input characters: On Linux systems and OS X EOF is CTRL+D. For Windows EOF is CTRL+Z.Number of Characters: 10 Click me to see the solution 61. Count Uppercase, Lowercase, and Other Characters Write a C program that takes input from the user and counts the number of uppercase and lowercase letters, as well as the number of other characters. Test Data : Input characters : w3resource Expected Output :Input characters: On Linux systems and OS X EOF is CTRL+D. For Windows EOF is CTRL+Z.Uppercase letters: 0Lowercase letters: 9Other characters: 1 Click me to see the solution C Programming Code Editor:More to Come !Do not submit any solution of the above exercises at here, if you want to contribute go to the appropriate exercise page.. X Input Tester. Contribute to garythegoof/X-Input-Test development by creating an account on GitHub. xinput - utility to configure and test X input devices. SYNOPSIS xinput [OPTIONS] [DEVICE] DESCRIPTION xinput is a utility to list available input devices, query information about a device and change input device settings. OPTIONS -version Test if the X Input extension is available and return the version number of the program and theX-Input-Test/docs/README.md at master garythegoof/X-Input-Test
A graph represents an output for that input [latex]x[/latex] value. If we can draw any vertical line that intersects a graph more than once, then the graph does not define a function because that [latex]x[/latex] value has more than one output. A function has only one output value for each input value.How To: Given a graph, use the vertical line test to determine if the graph represents a function.Inspect the graph to see if any vertical line drawn would intersect the curve more than once.If there is any such line, the graph does not represent a function.If no vertical line can intersect the curve more than once, the graph does represent a function.Example: Applying the Vertical Line TestWhich of the graphs represent(s) a function [latex]y=f\left(x\right)?[/latex]Try ItDoes the graph below represent a function?The Horizontal Line TestOnce we have determined that a graph defines a function, an easy way to determine if it is a one-to-one function is to use the horizontal line test. Draw horizontal lines through the graph. A horizontal line includes all points with a particular [latex]y[/latex] value. The [latex]x[/latex] value of a point where a vertical line intersects a function represents the input for that output [latex]y[/latex] value. If we can draw any horizontal line that intersects a graph more than once, then the graph does not represent a function because that [latex]y[/latex] value has more than one input.How To: Given a graph of a function, use the horizontal line test to determine if the graph represents a Pakozlib port to javascript, very fast!Why pako is cool:Results are binary equal to well known zlib (now contains ported zlib v1.2.8).Almost as fast in modern JS engines as C implementation (see benchmarks).Works in browsers, you can browserify any separate component.This project was done to understand how fast JS can be and is it necessary todevelop native C modules for CPU-intensive tasks. Enjoy the result!Benchmarks:node v12.16.3 (zlib 1.2.9), 1mb input sample:deflate-imaya x 4.75 ops/sec ±4.93% (15 runs sampled)deflate-pako x 10.38 ops/sec ±0.37% (29 runs sampled)deflate-zlib x 17.74 ops/sec ±0.77% (46 runs sampled)gzip-pako x 8.86 ops/sec ±1.41% (29 runs sampled)inflate-imaya x 107 ops/sec ±0.69% (77 runs sampled)inflate-pako x 131 ops/sec ±1.74% (82 runs sampled)inflate-zlib x 258 ops/sec ±0.66% (88 runs sampled)ungzip-pako x 115 ops/sec ±1.92% (80 runs sampled)node v14.15.0 (google's zlib), 1mb output sample:deflate-imaya x 4.93 ops/sec ±3.09% (16 runs sampled)deflate-pako x 10.22 ops/sec ±0.33% (29 runs sampled)deflate-zlib x 18.48 ops/sec ±0.24% (48 runs sampled)gzip-pako x 10.16 ops/sec ±0.25% (28 runs sampled)inflate-imaya x 110 ops/sec ±0.41% (77 runs sampled)inflate-pako x 134 ops/sec ±0.66% (83 runs sampled)inflate-zlib x 402 ops/sec ±0.74% (87 runs sampled)ungzip-pako x 113 ops/sec ±0.62% (80 runs sampled)zlib's test is partially affected by marshalling (that make sense for inflate only).You can change deflate level to 0 in benchmark source, to investigate details.For deflate level 6 results can be considered as correct.Install:Examples / APIFull docs - pako = require('pako');// Deflate//const input = new Uint8Array();//... fill input data hereconst output = pako.deflate(input);// Inflate (simple wrapper can throw exception on broken stream)//const compressed = new Uint8Array();//... fill data to uncompress heretry { const result = pako.inflate(compressed); // ... continue processing} catch (err) { console.log(err);}//// Alternate interface for chunking & without exceptions//const deflator = new pako.Deflate();deflator.push(chunk1, false);deflator.push(chunk2); // second param is false by default....deflator.push(chunk_last, true); // `true` says this chunk is lastif (deflator.err) { console.log(deflator.msg);}const output = deflator.result;const inflator = new pako.Inflate();inflator.push(chunk1);inflator.push(chunk2);...inflator.push(chunk_last); // no second param because end is auto-detectedif (inflator.err) { console.log(inflator.msg);}const output = inflator.result;Sometime you can wish to work with strings. For example, to sendstringified objects to server. Pako's deflate detects input data type, andautomatically recode strings to utf-8 prior to compress. Inflate has specialoption, to say compressed data has utf-8 encoding and should be recoded tojavascript's utf-16.const pako = require('pako');const test = { my: 'super', puper: [456, 567], awesome: 'pako' };const compressed = pako.deflate(JSON.stringify(test));const restored = JSON.parse(pako.inflate(compressed, { to: 'string' }));NotesPako does not contain some specific zlib functions:deflate - methods deflateCopy, deflateBound, deflateParams,deflatePending, deflatePrime, deflateTune.inflate - methods inflateCopy, inflateMark,inflatePrime, inflateGetDictionary, inflateSync, inflateSyncPoint, inflateUndermine.High level inflate/deflate wrappers (classes) may not support some flushmodes.pako for enterpriseAvailable as part of the Tidelift SubscriptionThe maintainers of pako and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the opengarythegoof/X-Input-Test: X Input Tester - GitHub
THE CASING (Internal) x 0.70 = CASING BURSTPRESSURE SAFETY FACTOR MAWP CSG. 3). Low Test Pressure - Pump #1Level 1 (PT-1) 4). High Test Pressure - Pump #1Level 2 (PT-2) 5). Low Test Pressure - Pump #2Level 1 (PT-1) 6). High Test Pressure - Pump #2Level 2 (PT-2) Pre-Kill Circulating Pressure (PKCPpsi) ↔PUMP #1 RATE PRESSURE RATE PRESSURE ↔PUMP #2 RATE PRESSURE RATE PRESSURE Coiled Tubing"Wait and Weight"Well Kill Worksheet 16770 Imperial Valley Dr. Suite 290 Phone: +1-713-849-7400 Fax: +1-713-849-7474 [email protected] www.wellcontrol.com Well Kill Information SCITP SIWP KICK VOLUME KICK TYPE KMW ICP1 ICP2 FCP CTLT CTLW CTLS ANNULARVOLUME TOTAL KILLVOLUME BARRELS CT PRESSURE BARRELS CT PRESSURE START 0 ICP1 CTLs ICP2 CTLs ICP2 Total Vol. to Bit FCP BOTTOMS-UP | | | | Total Kill Volume SCITP - Shut-in Coiled Tubing Pressure PMW - Present Mud Weight KMW - Kill Mud Weight PKCP - Pre-Kill Circulation Pressure CTLT - Coiled Tubing Length Total CTLS - Coiled Tubing Length Surface CTLW - Coiled Tubing Length Well ICP1 - Initial Circulating Pressure ICP2 - Initial Circulating Pressure (kill fluid at guide arch) FCP - Final Circulating Pressure (kill fluid at bottom of coiled tubing string/well) Calculations Worksheet 1). Kill Weight Mud Requirements ÷ 0.052 ÷ + = SICTP TVD TO BIT PMW KMW 2). Initial Circulating Pressure "First" (ICP1) Guide Arch to Bit + = SICTP PKCP ICP1 3). Final Circulating Pressure (FCP) = KMW at the Bit x ÷ = PKCP psi KMW ppg PMW ppg FCP psi 4). Initial Circulating Pressure "Second" (ICP) = When Kill Fluid is at Guide Arch ( - ) ÷ x + = FCP PKCP CTLT CTLS ICP1 ICP2 Coiled Tubing Volumes 5). Volume from Pump to Guide Wellhead * = / = Cap. BBLS/FT CTLS FT Vol. CTLS BBLS BBLS/STKS STKS 6). Volume from Wellhead to Bit * = / = Cap. BBLS/FT CTLW FT Vol. CTLW BBLS BBLS/STKS STKS 7). Volume Surface to End of CT + = / = Vol. to Wellhead Vol. Wellhead to BIT TOTAL Vol. to Bit BBLS/STKS STKS Annular Volumes A). Volume between CT and Tubing Input #1 B). Volume between CT and Casing Input #2 * = * = LENGTH CT in TBG Cap. BBLS/FT VOLUME CT vs TBG LENGTH CT in CSG Cap. BBLS/FT VOLUME CT vs CSG C). Volume between CT and Open Hole Input #3 D). Volume between BHA and Hole InputGitHub - garythegoof/X-Input-Test: X Input Tester
Me to see the solution 8. Odd Natural Numbers and Their Sum Write a C program to display the n terms of odd natural numbers and their sum. Test Data Input number of terms : 10 Expected Output : The odd numbers are :1 3 5 7 9 11 13 15 17 19 The Sum of odd Natural Number upto 10 terms : 100 Click me to see the solution 9. Right Angle Triangle Pattern with Asterisks Write a program in C to display a pattern like a right angle triangle using an asterisk. The pattern like : **********Click me to see the solution 10. Right Angle Triangle Pattern with Numbers Write a C program to display a pattern like a right angle triangle with a number. The pattern like : 1121231234Click me to see the solution 11. Right Angle Triangle with Repeated Number per Row Write a program in C to make such a pattern like a right angle triangle with a number which will repeat a number in a row. The pattern like : 1 22 333 4444Click me to see the solution 12. Right Angle Triangle with Sequentially Increasing Numbers Write a program in C to make such a pattern like a right angle triangle with the number increased by 1. The pattern like : 1 2 3 4 5 6 7 8 9 10Click me to see the solution13. Pyramid Pattern with Increasing Numbers Write a program in C to make a pyramid pattern with numbers increased by 1. 1 2 3 4 5 6 7 8 9 10 Click me to see the solution 14. Pyramid Pattern with Asterisks Write a C program to make such a pattern as a pyramid with an asterisk. * * * * * * * * * *Click me to see the solution 15. Factorial Calculation Write a C program to calculate the factorial of a given number. Test Data : Input the number : 5 Expected Output : The Factorial of 5 is: 120 Click me to see the solution 16. Sum of Even Natural Numbers Write a C program to display the sum of n terms of even natural numbers. Test Data : Input number of terms : 5 Expected Output : The even numbers are :2 4 6 8 10 The Sum of even Natural Number upto 5 terms : 30 Click me to see the solution 17. Pyramid Pattern with Repeated Numbers Write a C program to make such a pattern like a pyramid with a number which will repeat the number in the same row. 1 2 2 3 3 34 4 4 4Click me to see the solution 18. Sum of Series [1 - X²/2! + X⁴/4! - …] Write a program in C to find the sum of the series [ 1-X^2/2!+X^4/4!- .........]. Test Data : Input the Value of x :2 Input the number of terms : 5 Expected Output : the sum = -0.415873 Number of terms = 5 value. X Input Tester. Contribute to garythegoof/X-Input-Test development by creating an account on GitHub.Actions garythegoof/X-Input-Test - GitHub
Of an end-off shift rather than an end-around shift of the input vectors. CODE EXAMPLE 22 will compute the product between the vector [ 1, 2, 3 ] and the circulant matrix defined by the initial column vector [ 4, 5, 6 ]: CODE EXAMPLE 22 Convolution Used to Compute the Product of a Vector and Circulant Matrix my_system% cat con_ex22.f PROGRAM TEST C INTEGER LWORK, NX, NY, NZ PARAMETER (NX = 3) PARAMETER (NY = NX) PARAMETER (NZ = NY) PARAMETER (LWORK = 4*NZ+32) C REAL X(NX), Y(NY), Z(NZ), WORK(LWORK) C DATA X / 1, 2, 3 /, Y / 4, 5, 6 /, WORK / LWORK*0 / C PRINT 1000, 'X' PRINT 1010, X PRINT 1000, 'Y' PRINT 1010, Y CALL SCNVCOR ('V', 'T', NX, X, 1, 1, $NY, 0, 1, Y, 1, 1, 1, NZ, 1, Z, 1, 1, 1, $WORK, LWORK) PRINT 1020, 'Z' PRINT 1010, Z C 1000 FORMAT (1X, 'Input vector ', A1) 1010 FORMAT (1X, 300F5.0) 1020 FORMAT (1X, 'Output vector ', A1) C END my_system% f95 -dalign con_ex22.f -xlic_lib=sunperf my_system% a.out Input vector X 1. 2. 3. Input vector Y 4. 5. 6. Output vector Z 31. 31. 28. The difference between this example and the previous example is that the length of the output vector is the same as the length of the input vectors, so there are no implied zeros on the end of the input vectors. With no implied zeros to shift into, the effect of an end-off shiftComments
Of x = 2.000000 Click me to see the solution 19. Harmonic Series and Their Sum Write a program in C to display the n terms of a harmonic series and their sum. 1 + 1/2 + 1/3 + 1/4 + 1/5 ... 1/n terms Test Data : Input the number of terms : 5 Expected Output : 1/1 + 1/2 + 1/3 + 1/4 + 1/5 + Sum of Series upto 5 terms : 2.283334 Click me to see the solution 20. Pyramid Pattern with Odd Asterisks Write a C program to display the pattern as a pyramid using asterisks, with each row containing an odd number of asterisks. * *** *****Click me to see the solution 21. Sum of Series [9 + 99 + 999 + …] Write a program in C to display the sum of the series [ 9 + 99 + 999 + 9999 ...]. Test Data : Input the number or terms :5 Expected Output : 9 99 999 9999 99999 The sum of the saries = 111105 Click me to see the solution 22. Floyd's Triangle Write a program in C to print Floyd's Triangle. 1 01101 0101 10101Click me to see the solution 23. Sum of Series [ 1+x+x^2/2!+x^3/3!+....].Write a program in C to find the sum of the series[ 1+x+x^2/2!+x^3/3!+....]. Test Data : Input the value of x :2 Input number of terms : 5 Expected Output :The sum is : 7.000000 Click me to see the solution24. Alternate Sum Series [x - x³ + x⁵ - …] (Variant)Write a program in C to find the sum of the series [ x - x^3 + x^5 + ......]. Test Data : Input the value of x :2 Input number of terms : 5Expected Output :The values of the series: 2 -8 32 -128 512 The sum = 410 Click me to see the solution25. Square Natural Numbers and Their SumWrite a C program that displays the n terms of square natural numbers and their sum. 1 4 9 16 ... n Terms Test Data : Input the number of terms : 5 Expected Output : The square natural upto 5 terms are :1 4 9 16 25 The Sum of Square Natural Number upto 5 terms = 55 Click me to see the solution26. Sum of Series 1 + 11 + 111 + …Write a program in C to find the sum of the series 1 +11 + 111 + 1111 + .. n terms. Test Data : Input the number of terms : 5 Expected Output :1 + 11 + 111 + 1111 + 11111 The Sum is : 12345 Click me to see the solution27. Perfect Number CheckWrite a C program to check whether a given number is a 'Perfect' number or not. Test Data : Input the number : 56 Expected Output : The positive divisor : 1 2 4 7 8 14 28 The sum of the divisor is : 64 So, the number is not perfect.
2025-04-21Login for Software/Firmware Downloads Digital Timer Part Number(s) 9032-UC [110V RFD-200 S3]9082-UC [220V RFD-200 S3] Download Links The RFD-200 S3 is a portable relay test set that delivers performance verification testing of electromechanical, electronic, and microprocessor-based protective relays in their operating installations. The RFD-200 S3 is a rugged test set suitable for testing a variety of protection relays operated in both indoor and outdoor environments. The unit’s ergonomic design and intuitive control panel layout make it ideal for first-time users who have little or no training. A built-in Timer displays contact time in both cycles and millisecondsAC current source with 3 outputs (10A, 40A, 100A)Set of NO/NC dry contacts that change state when a test is initiatedAC voltage source for testing relays up to 250 VacDC Voltage source (0 - 300 Vdc)Volt meter input (0 - 600 V input range)Three power supplies (24 Vdc, 48 Vdc, 124 Vdc)Built-in power resistors RFD-200 S3 Technical Specifications TYPEPortable relay test setINPUT POWER 100 – 120 Vac or 200 – 240 Vac (factory pre-set), 50/60 HzPHYSICAL SPECIFICATIONS 17”W x 12.5”H x 12”D, (42.7 cm x 32.0 cm x 30.5 cm); Weight: 35 lbs (15.9 kg)AMPERE METER INPUT RANGES Internal input range: 0 – 250 A; Accuracy: 2% of reading ± 10 mA, External AC input range: 0 – 6A; Accuracy: 1% of reading ± 10mA External DC input range: 0 – 6A; Accuracy: 0.5% of reading ±1 count Measurement Method: True RMS for ACVOLT METER INPUT RANGE 0 – 600.0V; AC accuracy: 1% of
2025-04-12:Reversed string is: emocleW Click me to see the solution 58. Find String Length Without Library Function Write a C program to find the length of a string without using the library function. Test Data : Input a string : welcome Expected Output :The string contains 7 number of characters. So, the length of the string welcome is : 7 Click me to see the solution 59. Armstrong Number Check for n Digits Write a C program to check the Armstrong number of n digits. Test Data : Input an integer : 1634 Expected Output : 1634 is an Armstrong number Click me to see the solution 60. Count Characters Until End of File Write a C program that takes user input and counts the number of characters until the end of the file. Test Data : Input characters : w3resource Expected Output :Input characters: On Linux systems and OS X EOF is CTRL+D. For Windows EOF is CTRL+Z.Number of Characters: 10 Click me to see the solution 61. Count Uppercase, Lowercase, and Other Characters Write a C program that takes input from the user and counts the number of uppercase and lowercase letters, as well as the number of other characters. Test Data : Input characters : w3resource Expected Output :Input characters: On Linux systems and OS X EOF is CTRL+D. For Windows EOF is CTRL+Z.Uppercase letters: 0Lowercase letters: 9Other characters: 1 Click me to see the solution C Programming Code Editor:More to Come !Do not submit any solution of the above exercises at here, if you want to contribute go to the appropriate exercise page.
2025-04-17A graph represents an output for that input [latex]x[/latex] value. If we can draw any vertical line that intersects a graph more than once, then the graph does not define a function because that [latex]x[/latex] value has more than one output. A function has only one output value for each input value.How To: Given a graph, use the vertical line test to determine if the graph represents a function.Inspect the graph to see if any vertical line drawn would intersect the curve more than once.If there is any such line, the graph does not represent a function.If no vertical line can intersect the curve more than once, the graph does represent a function.Example: Applying the Vertical Line TestWhich of the graphs represent(s) a function [latex]y=f\left(x\right)?[/latex]Try ItDoes the graph below represent a function?The Horizontal Line TestOnce we have determined that a graph defines a function, an easy way to determine if it is a one-to-one function is to use the horizontal line test. Draw horizontal lines through the graph. A horizontal line includes all points with a particular [latex]y[/latex] value. The [latex]x[/latex] value of a point where a vertical line intersects a function represents the input for that output [latex]y[/latex] value. If we can draw any horizontal line that intersects a graph more than once, then the graph does not represent a function because that [latex]y[/latex] value has more than one input.How To: Given a graph of a function, use the horizontal line test to determine if the graph represents a
2025-04-08Pakozlib port to javascript, very fast!Why pako is cool:Results are binary equal to well known zlib (now contains ported zlib v1.2.8).Almost as fast in modern JS engines as C implementation (see benchmarks).Works in browsers, you can browserify any separate component.This project was done to understand how fast JS can be and is it necessary todevelop native C modules for CPU-intensive tasks. Enjoy the result!Benchmarks:node v12.16.3 (zlib 1.2.9), 1mb input sample:deflate-imaya x 4.75 ops/sec ±4.93% (15 runs sampled)deflate-pako x 10.38 ops/sec ±0.37% (29 runs sampled)deflate-zlib x 17.74 ops/sec ±0.77% (46 runs sampled)gzip-pako x 8.86 ops/sec ±1.41% (29 runs sampled)inflate-imaya x 107 ops/sec ±0.69% (77 runs sampled)inflate-pako x 131 ops/sec ±1.74% (82 runs sampled)inflate-zlib x 258 ops/sec ±0.66% (88 runs sampled)ungzip-pako x 115 ops/sec ±1.92% (80 runs sampled)node v14.15.0 (google's zlib), 1mb output sample:deflate-imaya x 4.93 ops/sec ±3.09% (16 runs sampled)deflate-pako x 10.22 ops/sec ±0.33% (29 runs sampled)deflate-zlib x 18.48 ops/sec ±0.24% (48 runs sampled)gzip-pako x 10.16 ops/sec ±0.25% (28 runs sampled)inflate-imaya x 110 ops/sec ±0.41% (77 runs sampled)inflate-pako x 134 ops/sec ±0.66% (83 runs sampled)inflate-zlib x 402 ops/sec ±0.74% (87 runs sampled)ungzip-pako x 113 ops/sec ±0.62% (80 runs sampled)zlib's test is partially affected by marshalling (that make sense for inflate only).You can change deflate level to 0 in benchmark source, to investigate details.For deflate level 6 results can be considered as correct.Install:Examples / APIFull docs - pako = require('pako');// Deflate//const input = new Uint8Array();//... fill input data hereconst output = pako.deflate(input);// Inflate (simple wrapper can throw exception on broken stream)//const compressed = new Uint8Array();//... fill data to uncompress heretry { const result = pako.inflate(compressed); // ... continue processing} catch (err) { console.log(err);}//// Alternate interface for chunking & without exceptions//const deflator = new pako.Deflate();deflator.push(chunk1, false);deflator.push(chunk2); // second param is false by default....deflator.push(chunk_last, true); // `true` says this chunk is lastif (deflator.err) { console.log(deflator.msg);}const output = deflator.result;const inflator = new pako.Inflate();inflator.push(chunk1);inflator.push(chunk2);...inflator.push(chunk_last); // no second param because end is auto-detectedif (inflator.err) { console.log(inflator.msg);}const output = inflator.result;Sometime you can wish to work with strings. For example, to sendstringified objects to server. Pako's deflate detects input data type, andautomatically recode strings to utf-8 prior to compress. Inflate has specialoption, to say compressed data has utf-8 encoding and should be recoded tojavascript's utf-16.const pako = require('pako');const test = { my: 'super', puper: [456, 567], awesome: 'pako' };const compressed = pako.deflate(JSON.stringify(test));const restored = JSON.parse(pako.inflate(compressed, { to: 'string' }));NotesPako does not contain some specific zlib functions:deflate - methods deflateCopy, deflateBound, deflateParams,deflatePending, deflatePrime, deflateTune.inflate - methods inflateCopy, inflateMark,inflatePrime, inflateGetDictionary, inflateSync, inflateSyncPoint, inflateUndermine.High level inflate/deflate wrappers (classes) may not support some flushmodes.pako for enterpriseAvailable as part of the Tidelift SubscriptionThe maintainers of pako and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open
2025-04-03THE CASING (Internal) x 0.70 = CASING BURSTPRESSURE SAFETY FACTOR MAWP CSG. 3). Low Test Pressure - Pump #1Level 1 (PT-1) 4). High Test Pressure - Pump #1Level 2 (PT-2) 5). Low Test Pressure - Pump #2Level 1 (PT-1) 6). High Test Pressure - Pump #2Level 2 (PT-2) Pre-Kill Circulating Pressure (PKCPpsi) ↔PUMP #1 RATE PRESSURE RATE PRESSURE ↔PUMP #2 RATE PRESSURE RATE PRESSURE Coiled Tubing"Wait and Weight"Well Kill Worksheet 16770 Imperial Valley Dr. Suite 290 Phone: +1-713-849-7400 Fax: +1-713-849-7474 [email protected] www.wellcontrol.com Well Kill Information SCITP SIWP KICK VOLUME KICK TYPE KMW ICP1 ICP2 FCP CTLT CTLW CTLS ANNULARVOLUME TOTAL KILLVOLUME BARRELS CT PRESSURE BARRELS CT PRESSURE START 0 ICP1 CTLs ICP2 CTLs ICP2 Total Vol. to Bit FCP BOTTOMS-UP | | | | Total Kill Volume SCITP - Shut-in Coiled Tubing Pressure PMW - Present Mud Weight KMW - Kill Mud Weight PKCP - Pre-Kill Circulation Pressure CTLT - Coiled Tubing Length Total CTLS - Coiled Tubing Length Surface CTLW - Coiled Tubing Length Well ICP1 - Initial Circulating Pressure ICP2 - Initial Circulating Pressure (kill fluid at guide arch) FCP - Final Circulating Pressure (kill fluid at bottom of coiled tubing string/well) Calculations Worksheet 1). Kill Weight Mud Requirements ÷ 0.052 ÷ + = SICTP TVD TO BIT PMW KMW 2). Initial Circulating Pressure "First" (ICP1) Guide Arch to Bit + = SICTP PKCP ICP1 3). Final Circulating Pressure (FCP) = KMW at the Bit x ÷ = PKCP psi KMW ppg PMW ppg FCP psi 4). Initial Circulating Pressure "Second" (ICP) = When Kill Fluid is at Guide Arch ( - ) ÷ x + = FCP PKCP CTLT CTLS ICP1 ICP2 Coiled Tubing Volumes 5). Volume from Pump to Guide Wellhead * = / = Cap. BBLS/FT CTLS FT Vol. CTLS BBLS BBLS/STKS STKS 6). Volume from Wellhead to Bit * = / = Cap. BBLS/FT CTLW FT Vol. CTLW BBLS BBLS/STKS STKS 7). Volume Surface to End of CT + = / = Vol. to Wellhead Vol. Wellhead to BIT TOTAL Vol. to Bit BBLS/STKS STKS Annular Volumes A). Volume between CT and Tubing Input #1 B). Volume between CT and Casing Input #2 * = * = LENGTH CT in TBG Cap. BBLS/FT VOLUME CT vs TBG LENGTH CT in CSG Cap. BBLS/FT VOLUME CT vs CSG C). Volume between CT and Open Hole Input #3 D). Volume between BHA and Hole Input
2025-04-03