URL
stringlengths
15
1.68k
text_list
sequencelengths
1
199
image_list
sequencelengths
1
199
metadata
stringlengths
1.19k
3.08k
https://findthefactors.com/2018/09/13/1213-and-level-3/
[ "# 1213 and Level 3\n\nThis puzzle would be a lot tougher to solve if I didn’t put the clues in the order that I did. Just start at the top of the puzzle and work your way down the puzzle clue by clue until you get to the bottom of the puzzle and have the entire thing solved.", null, "Print the puzzles or type the solution in this excel file: 12 factors 1211-1220\n\nNow I’ll share a few facts about the number 1213:\n\n• 1213 is a prime number.\n• Prime factorization: 1213 is prime.\n• The exponent of prime number 1213 is 1. Adding 1 to that exponent we get (1 + 1) = 2. Therefore 1213 has exactly 2 factors.\n• Factors of 1213: 1, 1213\n• Factor pairs: 1213 = 1 × 1213\n• 1213 has no square factors that allow its square root to be simplified. √1213 ≈ 34.82815\n\nHow do we know that 1213 is a prime number? If 1213 were not a prime number, then it would be divisible by at least one prime number less than or equal to √1213 ≈ 34.8. Since 1213 cannot be divided evenly by 2, 3, 5, 7, 11, 13, 17, 19, 23, 29 or 31, we know that 1213 is a prime number.", null, "1213 is the sum of these nine consecutive prime numbers:\n109 + 113 + 127 + 131 + 137 + 139 + 149 + 151 + 157 = 1213\n\n27² + 22² = 1213\n1213 is the hypotenuse of a Pythagorean triple:\n245-1188-1213 calculated from 27² – 22², 2(27)(22), 27² + 22²\n\nHere’s another way we know that 1213 is a prime number: Since its last two digits divided by 4 leave a remainder of 1, and 27² + 22² = 1213 with 27 and 22 having no common prime factors, 1213 will be prime unless it is divisible by a prime number Pythagorean triple hypotenuse less than or equal to √1213 ≈ 34.8. Since 1213 is not divisible by 5, 13, 17, or 29, we know that 1213 is a prime number.\n\nThis site uses Akismet to reduce spam. Learn how your comment data is processed." ]
[ null, "https://i0.wp.com/findthefactors.com/wp-content/uploads/2018/10/1213-Puzzle.jpg", null, "https://i0.wp.com/findthefactors.com/wp-content/uploads/2018/10/1213-Factor-Pairs.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.90970564,"math_prob":0.99696374,"size":1652,"snap":"2023-14-2023-23","text_gpt3_token_len":538,"char_repetition_ratio":0.17354369,"word_repetition_ratio":0.08529412,"special_character_ratio":0.40133172,"punctuation_ratio":0.11859838,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9971676,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,3,null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-06-08T01:12:54Z\",\"WARC-Record-ID\":\"<urn:uuid:00e02d11-70e7-42d1-a6bd-8d90d236c516>\",\"Content-Length\":\"86645\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8ce2b34d-edd4-413b-adf1-120d46313c7f>\",\"WARC-Concurrent-To\":\"<urn:uuid:9ce52d44-f482-4074-85cb-c586d2d7ca31>\",\"WARC-IP-Address\":\"192.0.78.222\",\"WARC-Target-URI\":\"https://findthefactors.com/2018/09/13/1213-and-level-3/\",\"WARC-Payload-Digest\":\"sha1:CO3RUYSCIBP7RBKY6J2EKJUVAQ5P7NEF\",\"WARC-Block-Digest\":\"sha1:YQHG7PUKW77HUKU4N2BW3IVK3BVYGNM7\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224654031.92_warc_CC-MAIN-20230608003500-20230608033500-00372.warc.gz\"}"}
http://www.mathspadilla.com/macsII/Unit4-LinearProgramming/systems_of_linear_inequations_with_two_unknowns.html
[ "# Systems of linear inequations with two unknowns\n\nA system of linear inequation with two unknowns is a set of linear inequations. The set of solutions is formed by the solutions that verify all the inequations. It is also called feasible region.", null, "Examples:\n\n1)", null, "2)", null, "", null, "Exercise: solve the following systems:", null, "solutions:\n\na)", null, "b)", null, "" ]
[ null, "http://www.mathspadilla.com/macsII/Unit4-LinearProgramming/program_lineal1.png", null, "http://www.mathspadilla.com/macsII/Unit4-LinearProgramming/program_lineal6.png", null, "http://www.mathspadilla.com/macsII/Unit4-LinearProgramming/eXe_LaTeX_math_2.gif", null, "http://www.mathspadilla.com/macsII/Unit4-LinearProgramming/program_lineal2.png", null, "http://www.mathspadilla.com/macsII/Unit4-LinearProgramming/eXe_LaTeX_math_6.1.gif", null, "http://www.mathspadilla.com/macsII/Unit4-LinearProgramming/program_lineal12.png", null, "http://www.mathspadilla.com/macsII/Unit4-LinearProgramming/program_lineal13.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.92039996,"math_prob":0.9959158,"size":420,"snap":"2022-27-2022-33","text_gpt3_token_len":94,"char_repetition_ratio":0.15384616,"word_repetition_ratio":0.0,"special_character_ratio":0.1904762,"punctuation_ratio":0.10810811,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9961904,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"im_url_duplicate_count":[null,1,null,1,null,1,null,1,null,1,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-06T13:53:27Z\",\"WARC-Record-ID\":\"<urn:uuid:c5a2d35e-e9ff-40c7-852c-a184feb73a06>\",\"Content-Length\":\"4054\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8919d3a6-b3b7-4b63-a1e5-9be81a21ca6a>\",\"WARC-Concurrent-To\":\"<urn:uuid:9fa94c0b-61bb-4f07-bf4b-ae9d7adb380d>\",\"WARC-IP-Address\":\"31.214.178.24\",\"WARC-Target-URI\":\"http://www.mathspadilla.com/macsII/Unit4-LinearProgramming/systems_of_linear_inequations_with_two_unknowns.html\",\"WARC-Payload-Digest\":\"sha1:EQ2RPTAZVM5TNWCCLCPGIFQUM7Q6A2NT\",\"WARC-Block-Digest\":\"sha1:TBPFGJEQFPWJSFTID7TNJUJSJKACCGEY\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656104672585.89_warc_CC-MAIN-20220706121103-20220706151103-00637.warc.gz\"}"}
https://www.colorhexa.com/02bf8e
[ "# #02bf8e Color Information\n\nIn a RGB color space, hex #02bf8e is composed of 0.8% red, 74.9% green and 55.7% blue. Whereas in a CMYK color space, it is composed of 99% cyan, 0% magenta, 25.7% yellow and 25.1% black. It has a hue angle of 164.4 degrees, a saturation of 97.9% and a lightness of 37.8%. #02bf8e color hex could be obtained by blending #04ffff with #007f1d. Closest websafe color is: #00cc99.\n\n• R 1\n• G 75\n• B 56\nRGB color chart\n• C 99\n• M 0\n• Y 26\n• K 25\nCMYK color chart\n\n#02bf8e color description : Strong cyan - lime green.\n\n# #02bf8e Color Conversion\n\nThe hexadecimal color #02bf8e has RGB values of R:2, G:191, B:142 and CMYK values of C:0.99, M:0, Y:0.26, K:0.25. Its decimal value is 180110.\n\nHex triplet RGB Decimal 02bf8e `#02bf8e` 2, 191, 142 `rgb(2,191,142)` 0.8, 74.9, 55.7 `rgb(0.8%,74.9%,55.7%)` 99, 0, 26, 25 164.4°, 97.9, 37.8 `hsl(164.4,97.9%,37.8%)` 164.4°, 99, 74.9 00cc99 `#00cc99`\nCIE-LAB 68.914, -52.027, 13.542 23.536, 39.225, 31.92 0.249, 0.414, 39.225 68.914, 53.761, 165.411 68.914, -58.057, 27.34 62.63, -42.522, 13.623 00000010, 10111111, 10001110\n\n# Color Schemes with #02bf8e\n\n• #02bf8e\n``#02bf8e` `rgb(2,191,142)``\n• #bf0233\n``#bf0233` `rgb(191,2,51)``\nComplementary Color\n• #02bf30\n``#02bf30` `rgb(2,191,48)``\n• #02bf8e\n``#02bf8e` `rgb(2,191,142)``\n• #0292bf\n``#0292bf` `rgb(2,146,191)``\nAnalogous Color\n• #bf3002\n``#bf3002` `rgb(191,48,2)``\n• #02bf8e\n``#02bf8e` `rgb(2,191,142)``\n• #bf0292\n``#bf0292` `rgb(191,2,146)``\nSplit Complementary Color\n• #bf8e02\n``#bf8e02` `rgb(191,142,2)``\n• #02bf8e\n``#02bf8e` `rgb(2,191,142)``\n• #8e02bf\n``#8e02bf` `rgb(142,2,191)``\n• #33bf02\n``#33bf02` `rgb(51,191,2)``\n• #02bf8e\n``#02bf8e` `rgb(2,191,142)``\n• #8e02bf\n``#8e02bf` `rgb(142,2,191)``\n• #bf0233\n``#bf0233` `rgb(191,2,51)``\n• #017356\n``#017356` `rgb(1,115,86)``\n• #018d68\n``#018d68` `rgb(1,141,104)``\n• #02a67b\n``#02a67b` `rgb(2,166,123)``\n• #02bf8e\n``#02bf8e` `rgb(2,191,142)``\n• #02d8a1\n``#02d8a1` `rgb(2,216,161)``\n• #03f1b4\n``#03f1b4` `rgb(3,241,180)``\n• #11fdbf\n``#11fdbf` `rgb(17,253,191)``\nMonochromatic Color\n\n# Alternatives to #02bf8e\n\nBelow, you can see some colors close to #02bf8e. Having a set of related colors can be useful if you need an inspirational alternative to your original color choice.\n\n• #02bf5f\n``#02bf5f` `rgb(2,191,95)``\n• #02bf6f\n``#02bf6f` `rgb(2,191,111)``\n• #02bf7e\n``#02bf7e` `rgb(2,191,126)``\n• #02bf8e\n``#02bf8e` `rgb(2,191,142)``\n• #02bf9e\n``#02bf9e` `rgb(2,191,158)``\n• #02bfae\n``#02bfae` `rgb(2,191,174)``\n• #02bfbd\n``#02bfbd` `rgb(2,191,189)``\nSimilar Colors\n\n# #02bf8e Preview\n\nThis text has a font color of #02bf8e.\n\n``<span style=\"color:#02bf8e;\">Text here</span>``\n#02bf8e background color\n\nThis paragraph has a background color of #02bf8e.\n\n``<p style=\"background-color:#02bf8e;\">Content here</p>``\n#02bf8e border color\n\nThis element has a border color of #02bf8e.\n\n``<div style=\"border:1px solid #02bf8e;\">Content here</div>``\nCSS codes\n``.text {color:#02bf8e;}``\n``.background {background-color:#02bf8e;}``\n``.border {border:1px solid #02bf8e;}``\n\n# Shades and Tints of #02bf8e\n\nA shade is achieved by adding black to any pure hue, while a tint is created by mixing white to any pure color. In this example, #00100c is the darkest color, while #fcfffe is the lightest one.\n\n• #00100c\n``#00100c` `rgb(0,16,12)``\n• #00241b\n``#00241b` `rgb(0,36,27)``\n• #013729\n``#013729` `rgb(1,55,41)``\n• #014b37\n``#014b37` `rgb(1,75,55)``\n• #015e46\n``#015e46` `rgb(1,94,70)``\n• #017154\n``#017154` `rgb(1,113,84)``\n• #018563\n``#018563` `rgb(1,133,99)``\n• #029871\n``#029871` `rgb(2,152,113)``\n• #02ac80\n``#02ac80` `rgb(2,172,128)``\n• #02bf8e\n``#02bf8e` `rgb(2,191,142)``\n• #02d29c\n``#02d29c` `rgb(2,210,156)``\n• #02e6ab\n``#02e6ab` `rgb(2,230,171)``\n• #03f9b9\n``#03f9b9` `rgb(3,249,185)``\n• #13fdc0\n``#13fdc0` `rgb(19,253,192)``\n• #26fdc5\n``#26fdc5` `rgb(38,253,197)``\n• #3afdca\n``#3afdca` `rgb(58,253,202)``\n• #4dfdd0\n``#4dfdd0` `rgb(77,253,208)``\n• #61fdd5\n``#61fdd5` `rgb(97,253,213)``\n• #74feda\n``#74feda` `rgb(116,254,218)``\n• #87fedf\n``#87fedf` `rgb(135,254,223)``\n• #9bfee4\n``#9bfee4` `rgb(155,254,228)``\n• #aefee9\n``#aefee9` `rgb(174,254,233)``\n• #c2feef\n``#c2feef` `rgb(194,254,239)``\n• #d5fff4\n``#d5fff4` `rgb(213,255,244)``\n• #e8fff9\n``#e8fff9` `rgb(232,255,249)``\n• #fcfffe\n``#fcfffe` `rgb(252,255,254)``\nTint Color Variation\n\n# Tones of #02bf8e\n\nA tone is produced by adding gray to any pure hue. In this case, #5b6663 is the less saturated color, while #02bf8e is the most saturated one.\n\n• #5b6663\n``#5b6663` `rgb(91,102,99)``\n• #546d67\n``#546d67` `rgb(84,109,103)``\n• #4c756a\n``#4c756a` `rgb(76,117,106)``\n• #457c6e\n``#457c6e` `rgb(69,124,110)``\n• #3d8471\n``#3d8471` `rgb(61,132,113)``\n• #368b75\n``#368b75` `rgb(54,139,117)``\n• #2f9279\n``#2f9279` `rgb(47,146,121)``\n• #279a7c\n``#279a7c` `rgb(39,154,124)``\n• #20a180\n``#20a180` `rgb(32,161,128)``\n• #18a983\n``#18a983` `rgb(24,169,131)``\n• #11b087\n``#11b087` `rgb(17,176,135)``\n• #09b88a\n``#09b88a` `rgb(9,184,138)``\n• #02bf8e\n``#02bf8e` `rgb(2,191,142)``\nTone Color Variation\n\n# Color Blindness Simulator\n\nBelow, you can see how #02bf8e is perceived by people affected by a color vision deficiency. This can be useful if you need to ensure your color combinations are accessible to color-blind users.\n\nMonochromacy\n• Achromatopsia 0.005% of the population\n• Atypical Achromatopsia 0.001% of the population\nDichromacy\n• Protanopia 1% of men\n• Deuteranopia 1% of men\n• Tritanopia 0.001% of the population\nTrichromacy\n• Protanomaly 1% of men, 0.01% of women\n• Deuteranomaly 6% of men, 0.4% of women\n• Tritanomaly 0.01% of the population" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.52199996,"math_prob":0.7245757,"size":3701,"snap":"2019-51-2020-05","text_gpt3_token_len":1648,"char_repetition_ratio":0.12740059,"word_repetition_ratio":0.011049724,"special_character_ratio":0.54552823,"punctuation_ratio":0.236404,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98381245,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-12-13T08:17:11Z\",\"WARC-Record-ID\":\"<urn:uuid:68ff9de2-3ecd-434f-b85f-f9b825f5f328>\",\"Content-Length\":\"36271\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b99cf887-88f1-401e-a469-057679429ec0>\",\"WARC-Concurrent-To\":\"<urn:uuid:b5839b4b-c32a-46cf-8ead-95d0614d3754>\",\"WARC-IP-Address\":\"178.32.117.56\",\"WARC-Target-URI\":\"https://www.colorhexa.com/02bf8e\",\"WARC-Payload-Digest\":\"sha1:IH6WSIYGPPWDKINJ3BXS4ZWS37GGRF7H\",\"WARC-Block-Digest\":\"sha1:LJ4FOFSUXMZR45K5DLCWRBXKCUEMAWN3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-51/CC-MAIN-2019-51_segments_1575540551267.14_warc_CC-MAIN-20191213071155-20191213095155-00109.warc.gz\"}"}
https://swi-prolog.discourse.group/t/checking-for-membership-in-list-without-instantiating-anonymous-variables/1542
[ "", null, "# Checking for membership in list without instantiating anonymous variables\n\nHi!\nBelow i want to check if `p(a)` and `p(b)` are members of the list. But after the fist call to `member/2`,` L` is instantiated to `p(a)` so the second call to `member/2` fails. Is there a way to avoid this? Ie checking for membership without changing the list that involves anonymous variables?\n\n``````myList([p(_)]).\n\nmain:-\nmyList(L),\nmember(p(a), L),\nmember(p(b), L).\n``````\n\nCheers/JCR\n\nThis works, but I know Jan will most likely show something that is better that I am not aware. It uses copy_term/2\n\n``````other :-\nmyList(L),\ncopy_term(L,L1),\nmember(p(a), L),\nmember(p(b), L1).\n``````\n``````?- main.\nfalse.\n\n?- other.\ntrue.\n``````\n1 Like\n\nDouble negation?\n\n``````main:-\nmyList(L),\n\\+ \\+ member(p(a), L),\n\\+ \\+ member(p(b), L).``````\n1 Like\n\nTo this day I know that is important to know but have no clue as how or the reasoning behind it. Care to explain.\n\n1 Like\n\nNegation never binds variables in the negated goal. Thus, by using double negation you can verify that a goal succeeds without binding any of its variables.\n\n4 Likes\n\nThanks @EricGT.\n\nI should have explained more clearly in my original post that i don’t know how many times `member/2` will be called and what the first argument of the compound `p` will be. So what i have is something like\n\n``````myList([p(_)]).\n\nmain:-\nmyList(L),\nmember(p(a), L),\nmember(p(b), L),\n...,\nmember(p(n), L).\n``````\n\nWhere there is an unknown number of such `member/2` predicates each with `p(unknownAtom)`.\n\nCheers/JC\n\n1 Like\n\nThanks! This solved my problem.\n\nThe predicate forall/2 is implemented as `\\+ ( Cond, \\+ Action)` , i.e., There is no instantiation of Cond for which Action is false. . The use of double negation implies that forall/2 does not change any variable bindings . It proves a relation. The forall/2 control structure can be used for its side-effects." ]
[ null, "https://aws1.discourse-cdn.com/free1/uploads/swiprolog/original/1X/73ebf150a3746e8f54f93423fb28d18c434847c9.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8279352,"math_prob":0.9182764,"size":366,"snap":"2019-51-2020-05","text_gpt3_token_len":102,"char_repetition_ratio":0.12707183,"word_repetition_ratio":0.0,"special_character_ratio":0.28142077,"punctuation_ratio":0.14942528,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95015085,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-12-12T19:48:29Z\",\"WARC-Record-ID\":\"<urn:uuid:c4b1ff6c-06c9-471e-85ac-3b97e6fc0b63>\",\"Content-Length\":\"23828\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1e596919-e6e9-45d5-9e3f-75e62033da68>\",\"WARC-Concurrent-To\":\"<urn:uuid:e34e9c3c-1f21-40f2-ac50-0e55bb00af6f>\",\"WARC-IP-Address\":\"66.220.12.139\",\"WARC-Target-URI\":\"https://swi-prolog.discourse.group/t/checking-for-membership-in-list-without-instantiating-anonymous-variables/1542\",\"WARC-Payload-Digest\":\"sha1:I56KTCLTBDVLVMZLGMLZRHGXG2QZQU5I\",\"WARC-Block-Digest\":\"sha1:SXQOUGIQBCGLQPBRGKWQL6INPNQ4V2GV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-51/CC-MAIN-2019-51_segments_1575540545146.75_warc_CC-MAIN-20191212181310-20191212205310-00219.warc.gz\"}"}
https://dlmf.nist.gov/search/search?q=cylinder%20functions
[ "# cylinder functions\n\n(0.013 seconds)\n\n## 1—10 of 83 matching pages\n\n##### 1: 12.1 Special Notation\nUnless otherwise noted, primes indicate derivatives with respect to the variable, and fractional powers take their principal values. The main functions treated in this chapter are the parabolic cylinder functions (PCFs), also known as Weber parabolic cylinder functions: $U\\left(a,z\\right)$, $V\\left(a,z\\right)$, $\\overline{U}\\left(a,z\\right)$, and $W\\left(a,z\\right)$. …An older notation, due to Whittaker (1902), for $U\\left(a,z\\right)$ is $D_{\\nu}\\left(z\\right)$. …\n##### 3: 10.29 Recurrence Relations and Derivatives\nWith $\\mathscr{Z}_{\\nu}\\left(z\\right)$ defined as in §10.25(ii),\n$\\mathscr{Z}_{\\nu-1}\\left(z\\right)-\\mathscr{Z}_{\\nu+1}\\left(z\\right)=(2\\nu/z)% \\mathscr{Z}_{\\nu}\\left(z\\right),$\n$\\mathscr{Z}_{\\nu-1}\\left(z\\right)+\\mathscr{Z}_{\\nu+1}\\left(z\\right)=2\\mathscr{% Z}_{\\nu}'\\left(z\\right).$\n$\\mathscr{Z}_{\\nu}'\\left(z\\right)=\\mathscr{Z}_{\\nu-1}\\left(z\\right)-(\\nu/z)% \\mathscr{Z}_{\\nu}\\left(z\\right),$\n$\\mathscr{Z}_{\\nu}'\\left(z\\right)=\\mathscr{Z}_{\\nu+1}\\left(z\\right)+(\\nu/z)% \\mathscr{Z}_{\\nu}\\left(z\\right).$\n##### 4: 10.36 Other Differential Equations\nThe quantity $\\lambda^{2}$ in (10.13.1)–(10.13.6) and (10.13.8) can be replaced by $-\\lambda^{2}$ if at the same time the symbol $\\mathscr{C}$ in the given solutions is replaced by $\\mathscr{Z}$. …\n10.36.1 $z^{2}(z^{2}+\\nu^{2})w^{\\prime\\prime}+z(z^{2}+3\\nu^{2})w^{\\prime}-\\left((z^{2}+% \\nu^{2})^{2}+z^{2}-\\nu^{2}\\right)w=0,$ $w=\\mathscr{Z}_{\\nu}'\\left(z\\right)$,\n10.36.2 ${z^{2}w^{\\prime\\prime}+z(1\\pm 2z)w^{\\prime}+(\\pm z-\\nu^{2})w=0},$ $w=e^{\\mp z}\\mathscr{Z}_{\\nu}\\left(z\\right)$.\n##### 5: 12.16 Mathematical Applications\n###### §12.16 Mathematical Applications\nFor examples see §§13.20(iii), 13.20(iv), 14.15(v), and 14.26. …\n##### 6: 10.13 Other Differential Equations\n###### §10.13 Other Differential Equations\n10.13.1 $w^{\\prime\\prime}+\\left(\\lambda^{2}-\\frac{\\nu^{2}-\\tfrac{1}{4}}{z^{2}}\\right)w=0,$ $w=z^{\\frac{1}{2}}\\mathscr{C}_{\\nu}\\left(\\lambda z\\right)$,\nIn (10.13.9)–(10.13.11) $\\mathscr{C}_{\\nu}\\left(z\\right)$, $\\mathscr{D}_{\\mu}(z)$ are any cylinder functions of orders $\\nu,\\mu$, respectively, and $\\vartheta=z(\\!\\ifrac{\\mathrm{d}}{\\mathrm{d}z})$.\n10.13.9 ${z^{2}w^{\\prime\\prime\\prime}+3zw^{\\prime\\prime}+(4z^{2}+1-4\\nu^{2})w^{\\prime}+% 4zw=0},$ $w=\\mathscr{C}_{\\nu}\\left(z\\right)\\mathscr{D}_{\\nu}(z)$,\n10.13.10 ${z^{3}w^{\\prime\\prime\\prime}+z(4z^{2}+1-4\\nu^{2})w^{\\prime}+(4\\nu^{2}-1)w=0},$ $w=z\\mathscr{C}_{\\nu}\\left(z\\right)\\mathscr{D}_{\\nu}(z)$,\n##### 7: 10.6 Recurrence Relations and Derivatives\nWith $\\mathscr{C}_{\\nu}\\left(z\\right)$ defined as in §10.2(ii),\n$\\mathscr{C}_{\\nu-1}\\left(z\\right)+\\mathscr{C}_{\\nu+1}\\left(z\\right)=(2\\nu/z)% \\mathscr{C}_{\\nu}\\left(z\\right),$\n$\\mathscr{C}_{\\nu-1}\\left(z\\right)-\\mathscr{C}_{\\nu+1}\\left(z\\right)=2\\mathscr{% C}_{\\nu}'\\left(z\\right).$\n$\\mathscr{C}_{\\nu}'\\left(z\\right)=\\mathscr{C}_{\\nu-1}\\left(z\\right)-(\\nu/z)% \\mathscr{C}_{\\nu}\\left(z\\right),$\n$\\mathscr{C}_{\\nu}'\\left(z\\right)=-\\mathscr{C}_{\\nu+1}\\left(z\\right)+(\\nu/z)% \\mathscr{C}_{\\nu}\\left(z\\right).$" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6758551,"math_prob":1.0000076,"size":1149,"snap":"2020-24-2020-29","text_gpt3_token_len":371,"char_repetition_ratio":0.139738,"word_repetition_ratio":0.0,"special_character_ratio":0.39251524,"punctuation_ratio":0.2605364,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000077,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-07-15T01:41:44Z\",\"WARC-Record-ID\":\"<urn:uuid:cfd0304a-9158-4b83-a483-b92e3964fa4a>\",\"Content-Length\":\"60415\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:59e20c03-4b37-482a-be06-420ebbc6986c>\",\"WARC-Concurrent-To\":\"<urn:uuid:2a6cce21-d494-4b1c-9019-ea0b2c32164f>\",\"WARC-IP-Address\":\"129.6.24.27\",\"WARC-Target-URI\":\"https://dlmf.nist.gov/search/search?q=cylinder%20functions\",\"WARC-Payload-Digest\":\"sha1:X7EXBJ54GRWBK3N7XO4HQBP5HXTKD6D6\",\"WARC-Block-Digest\":\"sha1:7BRH3DKM2N2TJMPSKTJLDA4FJWDVT63M\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593657154789.95_warc_CC-MAIN-20200715003838-20200715033838-00480.warc.gz\"}"}
https://scholarworks.umass.edu/physics_faculty_pubs/1121/
[ "## Physics Department Faculty Publication Series\n\n2003\n\n#### Abstract\n\nIn a recent Letter (see also ) the authors presented numerical evidence supporting an idea of a direct transition between the superfluid (SF) and Mott insulating (MI) phases in the disordered Bosonic system, and even studied non-trivial properties of the multicritical line where SF, MI and the Bose Glass (BG) phases meet. The results were obtained from Monte Carlo simulations of the (2+1)-dimensional classical loop-current model with the lattice action S = 1 2K ÞE ~ J=0 XrƒÑ \u0014~ J2(r, ƒÑ) . 2(ƒÊ + v(r)) ~ JƒÑ (r, ƒÑ)\u0015 . (1) where r, ƒÑ are spatial and imaginary time coordinates, and ~ J(r, ƒÑ) are integer current vectors with zero divergence. The spatial disorder potential v(r) is uniformly distributed on the interval (.\u0001,\u0001)." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.85620475,"math_prob":0.9052351,"size":1105,"snap":"2020-24-2020-29","text_gpt3_token_len":304,"char_repetition_ratio":0.08446866,"word_repetition_ratio":0.0,"special_character_ratio":0.24886878,"punctuation_ratio":0.12,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9539341,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-05-28T16:02:41Z\",\"WARC-Record-ID\":\"<urn:uuid:01b6754d-3e4e-43f2-bc53-35acfbf93b1f>\",\"Content-Length\":\"33865\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:9871fb46-5a7d-477c-8305-c30b26646e22>\",\"WARC-Concurrent-To\":\"<urn:uuid:bde3b43a-e8a9-47df-a483-0e487db4ccb2>\",\"WARC-IP-Address\":\"13.57.92.51\",\"WARC-Target-URI\":\"https://scholarworks.umass.edu/physics_faculty_pubs/1121/\",\"WARC-Payload-Digest\":\"sha1:ELERQDOO4ZXDTTECLAU4L6RTEDS6WNEF\",\"WARC-Block-Digest\":\"sha1:7F5BS7SWTLCJP737QIAPGVZGABZHTWEZ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-24/CC-MAIN-2020-24_segments_1590347399820.9_warc_CC-MAIN-20200528135528-20200528165528-00242.warc.gz\"}"}
https://dwarffortresswiki.org/index.php/40d:Peat
[ "# 40d:Peat\n\n `░` `░` `░` `░` `░` `░` `░` `.` `=` `=` `=` `░` `░` `░` `.` `.` `=` `=` `=` `░` `░` `.` `.` `.` `.` `=` `=` `░` `.` `.` `.` `.` `.` `.` `=`" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7934366,"math_prob":0.7271297,"size":335,"snap":"2021-31-2021-39","text_gpt3_token_len":103,"char_repetition_ratio":0.054380666,"word_repetition_ratio":0.0,"special_character_ratio":0.2716418,"punctuation_ratio":0.1641791,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000082,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-07-27T21:36:58Z\",\"WARC-Record-ID\":\"<urn:uuid:8dc3910d-0d42-4108-a570-aec5e38477b1>\",\"Content-Length\":\"36612\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:dbd61d80-f00c-45ee-aad2-8865457fca35>\",\"WARC-Concurrent-To\":\"<urn:uuid:8e81a1dd-ca6b-44fc-b856-3118d1cd1a4f>\",\"WARC-IP-Address\":\"38.143.66.236\",\"WARC-Target-URI\":\"https://dwarffortresswiki.org/index.php/40d:Peat\",\"WARC-Payload-Digest\":\"sha1:CX45M5HQLSEZPYC7WHVUEVU2Y2XGGP4G\",\"WARC-Block-Digest\":\"sha1:2SIOXEE7XFRSXLJZSYAMCUQYQOLR2LGE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-31/CC-MAIN-2021-31_segments_1627046153491.18_warc_CC-MAIN-20210727202227-20210727232227-00278.warc.gz\"}"}
https://help.scilab.org/docs/5.4.1/ja_JP/m2sci_find.html
[ "Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange\nChange language to: English - Français - Português - Русский\n\nSee the recommended documentation of this function\n\nScilab help >> Matlab to Scilab Conversion Tips > Matlab-Scilab equivalents > F > find (Matlab function)\n\n# find (Matlab function)\n\nFind indices and values of nonzero elements\n\n### Matlab/Scilab equivalent\n\n Matlab Scilab `find` `find`\n\n### Particular cases\n\nMatlab function can work with complex values what is not possible in Scilab, however, using abs it is very easy to have the same results.\n\nNote that Scilab function can only return two output values and Matlab one can return a third value that can be computed according to the first two output matrices as explained in Matlab help.\n\nFor example, in [i,j,v]=find(X), v is equal to: X(i+(j-1))*size(X,1).\n\nAnother great difference between Scilab and Matlab is that Matlab returns column vectors of indices when X is a column vector or a matrix but Scilab always returns row vectors. For this kind of input, use matrix to get the same output value...what is done mtlb_find()" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.80236745,"math_prob":0.7489526,"size":1859,"snap":"2020-24-2020-29","text_gpt3_token_len":482,"char_repetition_ratio":0.37196764,"word_repetition_ratio":0.0,"special_character_ratio":0.23614846,"punctuation_ratio":0.074074075,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.999707,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-07-05T13:29:54Z\",\"WARC-Record-ID\":\"<urn:uuid:2f9bb161-eee8-4851-a56c-e2e9b510c16a>\",\"Content-Length\":\"23461\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:63b2d8db-c26f-4e86-ad37-6c85b6fe827f>\",\"WARC-Concurrent-To\":\"<urn:uuid:09a5b3c7-0bb4-4db5-8c22-57d60993c011>\",\"WARC-IP-Address\":\"176.9.3.186\",\"WARC-Target-URI\":\"https://help.scilab.org/docs/5.4.1/ja_JP/m2sci_find.html\",\"WARC-Payload-Digest\":\"sha1:VE7BE6LIHXVKIPSUNBTIV2LJONDEGES4\",\"WARC-Block-Digest\":\"sha1:54YDARV75ZR52HVWQE2AIDRZTSNEDHRR\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593655887360.60_warc_CC-MAIN-20200705121829-20200705151829-00495.warc.gz\"}"}
http://blog.carriesegal.com/index.php/2010/06/
[ "# Monthly Archives: June 2010\n\n## Schrodinger’s kit: Tools that are in two places at once – physics-math – 28 June 2010 – New Scientist\n\nFiled under Articles\n\nFiled under Side Projects\n\n## Mirrors, concave and convex.\n\nIn class today we were going over how mirrors and lens work. It reminded me of this very neat toy I saw, a Parabolic Mirror Wok,  that projects a real image on the items in side up outward.", null, "I wonder what would happen if you had a little screen in the bottom projecting an image?\n\nFiled under Side Projects\n\n## Quama, Laser TV and Liquid Helium\n\nSo I downloaded this new tool to let me blog remotely more easily. Hopefully it will be very helpful! To test it out here is a list of recent articles which have caught my eye.\n\nLaser Phosphor Display (LPD) television – it’s all done with mirrors\n\n(PhysOrg.com) — Californian company Prysm has unveiled a high definition television with a “laser phosphor display” based on their patented method of using lasers reflected off a bank of mirrors to excite pixels on the television screen in a similar way to cathode ray tubes.\nThis is the first time I’ve heard of a TV using lasers. The video link in the article is very cool\n\nThis is a neat video on Liquid Helium. We were studying Temperature in class, the book mentioned superfluids and this is a neat video I found on superfluids.\n\nAnd to see how Quama handles images, here is a recent photo of me from the webcam in my Airie.", null, "Oh Yeah, I’ve also figured out I can learn Chemistry through MIT Opencourseware. So I’ve been working through 5.111 Principles of Chemical Science As taught in: Fall 2008. There is a full video lecture series and the professor teaching it is awesome! I’m very happy to be learning from her.\n\nI would like to see if my LaTeX editor can pick up things. Lets give it a try…\n\n[math]!(a+b)^2[/math]\n\nIf it works I’ve got to track down my lost post on how to write LaTeX again.\n\nFiled under Side Projects\n\n## Quantum Cascade Surface-Emitting Photonic Crystal Laser\n\nWe combine photonic and electronic band structure engineering to create a surface-emitting quantum cascade microcavity laser. A high-index contrast two-dimensional photonic crystal is used to form a micro-resonator that simultaneously provides feedback for laser action and diffracts light vertically from the surface of the semiconductor surface. A top metallic contact allows electrical current injection and provides vertical optical confinement through\na bound surface plasmon wave. The miniaturization and tailorable emission properties of this design are potentially important for sensing applications, while electrical pumping can allow new studies of photonic crystal and surface plasmon structures in nonlinear and near-field optics.\n\nhttp://iqse.harvard.edu/research/docs/science_2003-302-1374.pdf\n\nFiled under Articles\n\n## Entangled photons available on tap – physics-math – 02 June 2010 – New Scientist\n\nFiled under Side Projects\n\n## Bursting bubbles beget tiny copies of themselves – physics-math – 09 June 2010 – New Scientist\n\nFiled under Side Projects\n\n## Bursting bubbles beget tiny copies of themselves – physics-math – 09 June 2010 – New Scientist\n\nFiled under Uncategorized\n\n## Fluids – Chapter Notes\n\nThe Density (rho) is mass per unit volume, the unit is kg/m3.\n[math]displaystyle rho = frac{m}{V}[/math]\nrho equals m over V\n[math] m = rho V[/math]\nm equals rho V\n\nSpecific Gravity is ratio of the density of the substance to the density of water at 4C.\nPressure is force per unit area, when the force is magnitude acting perpendicular to the surface area A.\n[math]displaystyle P = frac {F}{A}[/Math]\nPressure is a scalar with the unit name Pascal, which is N/m2.\nPressure due to liquid is , remember the funny looking p is “rho” aka DENSITY.\nAs the pressure increases, density increases as well though so for cases with gas, pressure is\n[math] displaystyle frac{dP}{dy} = -rho g[/math].\nAnother way to express is equation is\n[math] displaystyle P_2 – P_1 = -int_{y_1}^{y_2} rho g dy [/Math]\nIf you can ignore variations in density this can be expressed as:\n[math] P_2 – P_1 = – rho g(y_2 – y_1) [/math]\nFor an open contain of liquid, you simply add the pressure from the atmosphere\n[Math] P = P_0 + rho gh[/math]\nPressure head: Sometimes the h in Rho g h is called the pressure head.\nAtmospheric Pressure is 101.3 kPa for 14.7lb/in2. sometimes we use bars, which are 10,000 N/m2.\nPressure gauges register gauge pressure. This does not include the atmospheric pressure, so we need to add it in, by adding the pressure of the atmosphere to the gauge.\n\nPascal’s Principle states “If an external pressure is applied to a confined fluid, the pressure at every point within the fluid increases by that amount”\n[Math] P_{out} = P_{in}[/math]\n[math] displaystyle frac{F_{out}}{A_{out}} = frac{F_{In}}{A_{In}}[/math]\n[math] displaystyle frac{F_{out}}{F_{in}} = frac{A_{out}}{A_{In}}[/math]\nThis ratio gives mechanical advantage, Fout/Fin.\nThe buoyant force occur’s because pressure on the bottom surface of a submerged object is greater than the downward pressure on the top of the object. It is equal to the weight of fluid displaced by the object.\n[math]F_b = m’g = rho Vg[/math] where m’g is the weight of the body of fluid equal to the volume of the original submerged object. When an objects float Fb=mg in general. When an object is partially submerged.\n[math] displaystyle frac{V_{displaced}}{V_0} = frac {rho_0}{rho_{final}}[/math]\n\nTools\nHydrometer – measured specific gravity of a liquid\n\nFluid Dynamics (Hydrodynamics)\nStreamline (laminar flow)\nTurbulent flow\nMass flow rate equals change in mass over change in time.\n[math]rho_1A_1v_1 = rho_2A_2v_2[/math] This is the equation of continuity. It reads “initial Density times Area times Velocity equals final Density times Area times Velocity”.\nIf density is constant, The equation of continuity can be written as\n[math]A_1v_1 = A_2v_2[/math]\nBernoulli’s Principle “Where the velocity of a fluid is high, the pressure is low, and where the velocity is low, the pressure is high” Bernoulli’s Equation:\n[math] displaystyle P_1 + frac{1}{2}rho v_1^2 + rho gy_1 = P_2 + frac{1}{2} rho v_2^2+ rho gy_2[/math]\nor in other words\n[math] displaystyle P + frac{1}{2}rho v^2 + rho gy[/math] is constant\nand for both, y is the height of the center of the tube above a fixed reference level.\nLiquid leaves a spigot with the same speed a freely falling object would attain if dropped from the same height.\n[math] v_1 = sqrt{2g(y_2 – y_1)}[/math]\n\nAnd if you want to use Bernoulli’s principle in the case where there is no significant change in height:\n[math]displaystyle P_1 + frac{1}{2} rho v_1^2 = P_2 + frac{1}{2} rho v_2^2 [/math]\n\nFiled under PHY 126\n\n## How to use LaTeX\n\nGreek letters\npi for lowercase\nPi for uppercase\nNo command for \\$Alpha\\$ – just use A\n[Math]pi[/Math]\n[Math]pi[/Math]\n[Math]A[/Math]\n\nFractions\nfrac{numerator}{denominator}\n[Math]displaystyle frac{F}{a}[/Math]\n\nSuperscript\nx^2\n[Math]x^2[/math]\n\nSubscript\nx_2\n[Math]x_2[/Math]\n\nUsing Curly Braces to make groups\nx_{F_2}\nx_{min}\n[Math]x_{F_2}[/Math]\n[Math]x_{min}[/Math]\n\nSuper and Sub\nx_F^3\n[Math]x_F^3[/math]\n\nLimits and Integrals\ndisplaystyle lim_{x to infty} 3x\ndisplaystyle int_0^2 x dx\n[Math]displaystyle lim_{x to infty} 3x [/Math]\n\n[Math] displaystyle int_0^2 x dx [/Math]" ]
[ null, "http://blog.carriesegal.com/wp-content/uploads/2010/06/mirage.jpg", null, "http://blog.carriesegal.com/wp-content/uploads/2010/06/Photo-on-2010-06-26-at-17.46.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.80952036,"math_prob":0.93040234,"size":7320,"snap":"2022-27-2022-33","text_gpt3_token_len":1959,"char_repetition_ratio":0.12028431,"word_repetition_ratio":0.057971016,"special_character_ratio":0.25437158,"punctuation_ratio":0.06486881,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9968577,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,2,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-18T22:51:54Z\",\"WARC-Record-ID\":\"<urn:uuid:dc34b780-324d-461f-89f8-cba85f3cd1b6>\",\"Content-Length\":\"45093\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1eff94f8-df83-4643-80b2-22bc8614966d>\",\"WARC-Concurrent-To\":\"<urn:uuid:57bca877-d616-4c62-92bc-47c37668454d>\",\"WARC-IP-Address\":\"66.33.223.31\",\"WARC-Target-URI\":\"http://blog.carriesegal.com/index.php/2010/06/\",\"WARC-Payload-Digest\":\"sha1:LQSHHO7ZACFNSW5CGJE2MZV24JRYPEUP\",\"WARC-Block-Digest\":\"sha1:KIDVCSHZFXLSDHGC5YVLOCSFR6X7WAID\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882573533.87_warc_CC-MAIN-20220818215509-20220819005509-00155.warc.gz\"}"}
https://www.lacasadeitigli.it/82936/1592921212.html
[ "•", null, "## C6X Series Jaw Crusher\n\nC6X Jaw Crusher is new equipment used for crushing hard or abrasiveness stones. It is possess of detachable frame without welding structure, double wedge adjusting device, elastic limit damping device and integrated motor seat, which will make C6X Series Jaw Crusher popular in the market.\n\n•", null, "## HPT Hydraulic Cone Crusher\n\nHPT Series High-Efficiency Hydraulic Cone Crusher combines crushing stroke with crushing chamber perfectly, which makes capacity improved and efficiency increased. Besides, hydraulic lubrication control system helps bearing of hydraulic cone crusher get double protection.\n\n•", null, "## VSI6X Series Vertical Crusher\n\nBased on more than 30 years of experiences, VSI6X Series Vertical Shaft Impact Crusher carrying many patents amazes the market greatly. This machine is possess of four openings impeller, special sealing structure and sealed cartridge bearing structure, which makes production convenient and efficient.\n\n# Calculating depreciation of mining equipment\n\n•", null, "#### Calculating Depreciation Of Mining Equipment\n\nmining equipment depreciation lives. Calculating depreciation of mining equipment lives is used, the BEA depreciation profiles are for an entire cohort of assets of afor production-type equipment . Get Price. Depreciation Bonus information clearinghouse.\n\n•", null, "#### Calculating Depreciation Of Mining Equipment\n\ncalculating depreciation of mining equipment taxtreatmentof etsallowances European Commission. Dec 31, 2010 Calculated welfare losses due to differences in national taxation . .. set, an asset type that is typically allowed a linear depreciation of its value benchmark is a firm's investment in new equipment that reduces future f a mine, an\n\n•", null, "#### calculating depreciation of mining equipment\n\ncalculating depreciation of mining equipment taxtreatmentof etsallowances European Commission. Calculated welfare losses due to differences in national taxation . .. set, an asset type that is typically allowed a linear depreciation of its value benchmark is a firm's investment in new equipment that reduces future f a mine, an oil or gas well\n\n•", null, "#### Calculating Depreciation Of Mining Equipment\n\nCalculating Depreciation Of Mining Equipment. Depreciation of ore gold mining machine depreciation rates for gold mining equipmentepreciation rates for gold mining equipmentold price touches 6 month low as currency war talk heats up, depreciation rates for gold mining equipment,fiat currency depreciation increases golds allure as a hedge, frik is editor and writer for mining frik has\n\n•", null, "#### How to Calculate Depreciation on Equipment Bizfluent\n\nSep 26, 2017· Depreciation is an accounting term that refers to the allocation of cost over the period in which an asset is used. In a business, the cost of equipment is generally allocated as depreciation expense over a period of time known as the useful life of the equipment.\n\n•", null, "#### 3. CALCULATION OF MACHINE RATES\n\nCommonly included in fixed costs are equipment depreciation, interest on investment, taxes, and storage, and insurance. 3.2.2 Operating Costs. Operating costs vary directly with the rate of work (Figure 3.1). These costs include the costs of fuel, lubricants, tires, equipment maintenance and repairs. Figure 3.1 Equipment Cost Model. 3.2.3 Labor\n\n•", null, "#### Straight Line Depreciation Calculator\n\nInputsStraight-Line Depreciation FormulaStraight-Line Depreciation ExampleMicrosoft® Excel® Functions equivalent: SlnAsset Cost1. the original value of your asset or the depreciable cost; the necessary amount expended to get an asset ready for its intended useSalvage Value1. the value of the asset at the end of its useful life; also known as residual value or scrap valueUseful Life1. the expected time that the asset will be productive for its expected purposeSee more on calculatorsoup\n•", null, "#### Units of Production Depreciation: How to Calculate & Formula\n\nJul 02, 2019· To calculate units of production depreciation expense, you will apply an average cost per unit rate to the total units the machinery or equipment produces each year. This rate will be the ratio of the total cost of the asset less its salvage value to the estimated number of units it is expected to produce during its useful life.\n\n•", null, "#### 4 Ways to Calculate Depreciation on Fixed Assets wikiHow\n\nMar 29, 2019· How to Calculate Depreciation on Fixed Assets. Depreciation is the method of calculating the cost of an asset over its lifespan. Calculating the depreciation of a fixed asset is simple once you know the formula. === Using Straight Line.\n\n• Views: 1.9M\n•", null, "#### Depreciation Calculator\n\nDepreciationMethods of DepreciationPartial Year DepreciationSalvage ValueConceptually, depreciation is the reduction in value of an asset over time, due to elements such as wear and tear. For instance, a widget-making machine is said to \\\"depreciate\\\" when it produces less widgets one year compared to the year before it, or a car is said to \\\"depreciate\\\" in value after a fender bender or the discovery of a faulty transmission.For accounting in particular, depreciation concerns allocating the cost of an asset over a period of time, usually its useful life. When a comp.\n•", null, "#### Calculating Depreciation Of Mining Equipment\n\nCalculating Depreciation Of Mining Equipment. Depreciation of ore gold mining machine depreciation rates for gold mining equipmentepreciation rates for gold mining equipmentold price touches 6 month low as currency war talk heats up, depreciation rates for gold mining equipment,fiat currency depreciation increases golds allure as a hedge, frik is editor and writer for mining frik has\n\n•", null, "#### calculating depreciation of mining equipment\n\ncalculating depreciation of mining equipment taxtreatmentof etsallowancesEuropean Commission. Dec 31 2010 Calculated welfare losses due to differences in national taxation . .. set an asset type that is typically allowed a linear depreciation of its value benchmark is a firm s investment in new equipment that reduces future f a mine an.\n\n•", null, "#### Calculating Depreciation Of Mining Equipment\n\nSoftware for calculating rates of mining equipment.2014 mttr, mtbr, failure rate, availability and reliability.This is the time-line of a particular equipment where u is operating time uptime in hrs, d is repair time downtime in hrs.Calculating the depreciation of a fixed asset is\n\n•", null, "#### Calculating Depreciation Of Mining Equipment\n\nCalculating depreciation of mining equipment youtube jun 15, 2015 calculating depreciation of mining equipment machine for grinding barite equipment for gold mining crusher belt conveyor conveyor belts for more details get price. click to chat; Mine Mill Equipment Costs Estimators Guide .\n\n•", null, "#### calculating depreciation of mining equipment\n\ncalculating depreciation of mining equipment calculating depreciation of mining equipment taxtreatmentof etsallowances European Commission Dec 31, 2010 Calculated welfare losses due to differences in national taxation set, an asset type that is typically allowed a linear depreciation of its value benchmark is a firm's investment in new\n\n•", null, "#### Depreciation Cost of Construction Equipment\n\nThe equipment life used in calculating depreciation should correspond to the equipment’s expected economic or useful life. Among many depreciation methods, the straight-line method,double-declining balance method,and sum-of-years’-digits method are the most commonly used in the construction equipment industry.\n\n•", null, "#### Depreciation Calculation Methods\n\nMay 22, 2020· How to Calculate Depreciation . Depreciation is calculated by taking the useful life of the asset (available in tables, based on the type of asset, though you may need an accountant for this), less the salvage value of the asset at the end of its useful life (also determined by a table), divided by the cost of the asset (including all costs for acquiring the asset like transportation, set-up\n\n•", null, "#### Units of Production Depreciation: How to Calculate & Formula\n\nJul 02, 2019· To calculate units of production depreciation expense, you will apply an average cost per unit rate to the total units the machinery or equipment produces each year. This rate will be the ratio of the total cost of the asset less its salvage value to the estimated number of units it is expected to produce during its useful life.\n\n•", null, "#### What Is Depreciation Types, Formula & Calculation\n\nAccumulated depreciation is the total depreciation of the fixed asset accumulated up to a specified time. Example: On April 1, 2012, company X purchased an equipment for Rs. 100,000.This is expected to have 5 useful life years.\n\n•", null, "#### MACRS Asset Life table\n\nThe MACRS Asset Life table is derived from Revenue Procedure 87-56 1987-2 CB 674. The table specifies asset lives for property subject to depreciation under the general depreciation system provided in section 168(a) of the IRC or the alternative depreciation system provided in section 168(g).\n\n•", null, "#### 4 Ways to Depreciate Equipment wikiHow\n\nMar 05, 2020· Calculate annual depreciation using the double declining balance depreciation method. First, calculate the straight-line depreciation rate using the cost, salvage value and useful life of the asset. In the first year, apply the double depreciation rate to the cost of the asset to calculate the depreciation expense.\n\n• Views: 161K\n•", null, "#### Depreciation Rate (Formula, Examples) How to Calculate?\n\nThus depreciation rate during the useful life of vehicles would be 20% per year. Example #2. A company purchases 40 units of storage tanks worth \\$1,00,000/- per unit. Tanks have a useful life of 10 years and a scrap value of \\$11000/-. The company uses a Double declining method of depreciation for calculating the depreciation expense for the tanks.\n\n•", null, "#### How to Calculate Depreciation? FreshBooks\n\nFor example, the annual depreciation on an equipment with a useful life of 20 years, a salvage value of \\$2000 and a cost of \\$100,000 is \\$4,900 ((\\$100,000-\\$2,000)/20). The asset must be placed in service (set up and used) in the first year that depreciation is calculated, for accounting and tax purposes.\n\n•", null, "#### Straight Line Depreciation Formula & Guide to Calculate\n\nOther Methods of Depreciation. In addition to straight line depreciation, there are also other methods of calculating depreciation Depreciation Methods The most common types of depreciation methods include straight-line, double declining balance, units of production, and sum of years digits. There are various formulas for calculating depreciation of an asset.\n\n•", null, "#### Calculating Depreciation Of Mining Equipment\n\nSoftware for calculating rates of mining equipment.2014 mttr, mtbr, failure rate, availability and reliability.This is the time-line of a particular equipment where u is operating time uptime in hrs, d is repair time downtime in hrs.Calculating the depreciation of a fixed asset is simple once you know the formula.Using.\n\n•", null, "#### calculating depreciation of mining equipment\n\ncalculating depreciation of mining equipment calculating depreciation of mining equipment taxtreatmentof etsallowances European Commission Dec 31, 2010 Calculated welfare losses due to differences in national taxation set, an asset type that is typically allowed a linear depreciation of its value benchmark is a firm's investment in new\n\n•", null, "#### Calculating Depreciation Of Mining Equipment\n\nCalculating depreciation of mining equipment youtube jun 15, 2015 calculating depreciation of mining equipment machine for grinding barite equipment for gold mining crusher belt conveyor conveyor belts for more details get price. click to chat; Mine Mill Equipment Costs Estimators Guide .\n\n•", null, "#### Calculating Depreciation Of Mining Equipment\n\nCalculating Depreciation Of Mining Equipment. Depreciation of ore gold mining machine depreciation rates for gold mining equipmentepreciation rates for gold mining equipmentold price touches 6 month low as currency war talk heats up, depreciation rates for gold mining equipment,fiat currency depreciation increases golds allure as a hedge, frik is editor and writer for mining\n\n•", null, "#### How to Calculate Depreciation? FreshBooks\n\nFor example, the annual depreciation on an equipment with a useful life of 20 years, a salvage value of \\$2000 and a cost of \\$100,000 is \\$4,900 ((\\$100,000-\\$2,000)/20). The asset must be placed in service (set up and used) in the first year that depreciation is calculated, for accounting and tax purposes.\n\n•", null, "#### Depreciation Calculation Methods\n\nMay 22, 2020· How to Calculate Depreciation . Depreciation is calculated by taking the useful life of the asset (available in tables, based on the type of asset, though you may need an accountant for this), less the salvage value of the asset at the end of its useful life (also determined by a table), divided by the cost of the asset (including all costs for acquiring the\n\n•", null, "#### A Guide to Depreciation for Small Businesses (2020) The\n\nAug 18, 2020· Unlike double declining depreciation, sum-of-the-years depreciation does consider salvage value when calculating depreciation, so your first year depreciation calculation would be: (10 ÷ 55) x\n\n•", null, "#### 4 Ways to Depreciate Equipment wikiHow\n\nMar 05, 2020· Calculate annual depreciation using the double declining balance depreciation method. First, calculate the straight-line depreciation rate using the cost, salvage value and useful life of the asset. In the first year, apply the double depreciation rate to the cost of the asset to calculate the depreciation expense.\n\n• Views: 161K\n•", null, "#### Straight Line Depreciation Formula & Guide to Calculate\n\nOther Methods of Depreciation. In addition to straight line depreciation, there are also other methods of calculating depreciation Depreciation Methods The most common types of depreciation methods include straight-line, double declining balance, units of production, and sum of years digits. There are various formulas for calculating depreciation of an asset.\n\n•", null, "#### Salvage Value Learn How to Calculate an Asset's Salvage\n\nSalvage value is the estimated amount that an asset is worth at the end of its useful life. Salvage value is also known as scrap value or residual value, and is used in calculating depreciation expense. The value depends on how long the company expects to use the asset and how hard the asset is used. For example, if a\n\n•", null, "#### How to calculate depreciation on computer hardware: A\n\nMar 29, 2017· Consider this example: Company A buys a new piece of equipment, the Widget, for \\$100,000. The Widget has a useful life of 10 years. Without depreciation, Company A would show \\$100,000 in expenses\n\n•", null, "#### Depreciation For Mining Operations BMT Insider\n\nNov 20, 2019· The millions of dollars saved through depreciation can be used to invest in new mining equipment, to pay for outstanding business costs or even to expand operations. To find out more about depreciation for commercial property, Request a Quote or contact our expert staff on 1300 728 726.\n\n•", null, "#### Accumulated Depreciation (Definition, Formula) How to\n\nThe equipment is not expected to have any salvage value at the end of its useful life. The equipment is to be depreciated on a straight-line method. Determine the accumulated depreciation at the end of 1 st year and 3 rd year. Below is data for calculation of the accumulated depreciation at the end of 1 st year and 3 rd year.\n\n•", null, "#### Calculating Depreciation Of Mining Equipment\n\nDepreciation On Coal Handling Equipment. Calculating depreciation of mining equipmentccounting treatment of the depletion and depreciation the units ofproduction method is used to calculate depreciation 2 discuss the accounting treatment of the depletion and depreciation on the mine and mining equipmentet priceepreciation rates machinery." ]
[ null, "https://www.lacasadeitigli.it/themes/mininger/col_b1.png", null, "https://www.lacasadeitigli.it/themes/mininger/col_b3.png", null, "https://www.lacasadeitigli.it/themes/mininger/col_b2.png", null, "https://www.lacasadeitigli.it/gallery/95.jpg", null, "https://www.lacasadeitigli.it/gallery/16.jpg", null, "https://www.lacasadeitigli.it/gallery/165.jpg", null, "https://www.lacasadeitigli.it/gallery/171.jpg", null, "https://www.lacasadeitigli.it/gallery/62.jpg", null, "https://www.lacasadeitigli.it/gallery/100.jpg", null, "https://www.lacasadeitigli.it/gallery/37.jpg", null, "https://www.lacasadeitigli.it/gallery/25.jpg", null, "https://www.lacasadeitigli.it/gallery/16.jpg", null, "https://www.lacasadeitigli.it/gallery/110.jpg", null, "https://www.lacasadeitigli.it/gallery/69.jpg", null, "https://www.lacasadeitigli.it/gallery/46.jpg", null, "https://www.lacasadeitigli.it/gallery/50.jpg", null, "https://www.lacasadeitigli.it/gallery/92.jpg", null, "https://www.lacasadeitigli.it/gallery/68.jpg", null, "https://www.lacasadeitigli.it/gallery/142.jpg", null, "https://www.lacasadeitigli.it/gallery/208.jpg", null, "https://www.lacasadeitigli.it/gallery/45.jpg", null, "https://www.lacasadeitigli.it/gallery/208.jpg", null, "https://www.lacasadeitigli.it/gallery/124.jpg", null, "https://www.lacasadeitigli.it/gallery/161.jpg", null, "https://www.lacasadeitigli.it/gallery/139.jpg", null, "https://www.lacasadeitigli.it/gallery/14.jpg", null, "https://www.lacasadeitigli.it/gallery/153.jpg", null, "https://www.lacasadeitigli.it/gallery/218.jpg", null, "https://www.lacasadeitigli.it/gallery/139.jpg", null, "https://www.lacasadeitigli.it/gallery/185.jpg", null, "https://www.lacasadeitigli.it/gallery/13.jpg", null, "https://www.lacasadeitigli.it/gallery/120.jpg", null, "https://www.lacasadeitigli.it/gallery/168.jpg", null, "https://www.lacasadeitigli.it/gallery/210.jpg", null, "https://www.lacasadeitigli.it/gallery/146.jpg", null, "https://www.lacasadeitigli.it/gallery/87.jpg", null, "https://www.lacasadeitigli.it/gallery/213.jpg", null, "https://www.lacasadeitigli.it/gallery/42.jpg", null, "https://www.lacasadeitigli.it/gallery/71.jpg", null, "https://www.lacasadeitigli.it/gallery/141.jpg", null, "https://www.lacasadeitigli.it/gallery/140.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.88501334,"math_prob":0.94884294,"size":15583,"snap":"2020-34-2020-40","text_gpt3_token_len":3171,"char_repetition_ratio":0.2509789,"word_repetition_ratio":0.51829785,"special_character_ratio":0.19360842,"punctuation_ratio":0.09736842,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98457617,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82],"im_url_duplicate_count":[null,2,null,2,null,2,null,2,null,4,null,1,null,1,null,1,null,1,null,1,null,1,null,4,null,1,null,1,null,1,null,1,null,1,null,1,null,2,null,2,null,1,null,2,null,1,null,2,null,3,null,1,null,1,null,1,null,3,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-21T03:10:13Z\",\"WARC-Record-ID\":\"<urn:uuid:693f3733-caea-4c26-9f5f-f212d9c69231>\",\"Content-Length\":\"26152\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:315f58cb-9203-4168-8e10-815bed2ebb2c>\",\"WARC-Concurrent-To\":\"<urn:uuid:6c949d33-28b4-46ba-bda1-4fffd69888e0>\",\"WARC-IP-Address\":\"104.24.126.81\",\"WARC-Target-URI\":\"https://www.lacasadeitigli.it/82936/1592921212.html\",\"WARC-Payload-Digest\":\"sha1:LN5M2UC7VJIC5OX7HFEW5DFH2YG2VZI6\",\"WARC-Block-Digest\":\"sha1:JNLCHLZ3EAHXGXLEW6CDCIO6H33CA75Y\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400198887.3_warc_CC-MAIN-20200921014923-20200921044923-00015.warc.gz\"}"}
https://cs.stackexchange.com/questions/12943/what-is-a-good-algorithm-for-generating-random-dfas/12949
[ "# What is a good algorithm for generating random DFAs?\n\nI am generating random DFAs to test a DFA reduction algorithm on them.\n\nThe algorithm that I'm using right now is as follows: for each state $q$, for each symbol in the alphabet $c$, add $\\delta (q, c)$ to some random state. Each state has the same probability of becoming a final state.\n\nIs this a good method of generating unbiased DFAs? Also, this algorithm doesn't generate a trim DFA (a DFA with no obsolete states) so I'm wondering if there is a better way of generating random DFAs that can somehow ensure that it is trim?\n\n• There's no natural distribution of random DFAs, so it's up to you. What do you want to accomplish? – Yuval Filmus Jun 28 '13 at 5:29\n• I am generating random DFAs to test a DFA reduction algorithm on them. – Duncan Jun 28 '13 at 5:32\n• Perhaps you want to start from a small set of minimal DFAs and blow them up? That way you know that the minimization actually arrives at the right result. – adrianN Jun 28 '13 at 9:30\n• wondering, are you testing a nonoptimal reduction algorithm or is it finding the unique minimal optimum DFA? – vzn Jun 28 '13 at 17:25\n• If you're generating data structures for testing, unbiased isn't important. What's important is to have a good chance of triggering interesting behaviors. To take an analogy, when you test a geometric algorithm, you need to ensure that some of your tests will have three points aligned and other things that would never occur in a random distribution. – Gilles 'SO- stop being evil' Jun 29 '13 at 8:43\n\nCheck out and the discussion in Section 4, Random Automata Generation. The paper benchmarks different DFA minimization algorithms. A uniform random generator is used that produces canonical string representations of complete DFAs with $n$ states and $k$ symbols. They also discuss other methods.\n\n• What does \"canonical string representations\" mean? – Duncan Jun 29 '13 at 3:01\n• @drowse The canonical order is defined over the set of states by traversing the automaton in a breadth-first way choosing at each node the outgoing using the (total) order of $\\Sigma$. Check out the references in the paper. – Juho Jun 29 '13 at 16:54\n\nYou should look at Cyril Nicaud's homepage. In particular, the following references are relevant to your question:\n\nF. Bassino, J. David and C. Nicaud, Enumeration and random generation of possibly incomplete deterministic automata, Pure Mathematics and Applications 19 (2-3) (2009) 1-16.\n\nF. Bassino and C. Nicaud. Enumeration and Random Generation of Accessible Automata. Theor. Comp. Sc.. 381 (2007) 86-104.\n\nThere are algorithms to randomly generate DFAs up to a permutation http://paranthoen.thomas.free.fr/PAPERS/RandDFAToAppearInTCS.ps.gz.\n\nBut, it is also mentionned in the above paper that almost all DFAs are already minimal. Non minimal DFAs are like prime numbers ... there are just few of them. And if you use this algorithm to test minimization algorithm it will be like if you were testing an algorithm on prime number with a simple random number generator. In order to have more non minimal DFAs, you may alter the algorithm by adding a sink state, and redirect an important percentage of the transitions to this sink state.\n\nBut from my point of view, if you want to test the speediness of your implementation, check it against what you want to use it for: with random word sets or random REGEX, create a NFA or a DFA, and then minimize the resulting DFA.\n\none natural strategy is to regard the DFA as a graph and then there are many \"natural\" and highly studied random distributions of graphs, the simplest is probably Erdos-Renyi. in that case you treat all states of the DFA as nodes of the graph and some fixed percent of all possible edges (DFA transitions) are chosen. more sophisticated distributions that are studied much in the more recent era are small world graphs. for the strategy you mention in your question you are apparently choosing the special case $p=1/n$ where $n$ is the number of nodes in the graph. however your strategy, nor Erdos-Renyi, does not guarantee that all the states in the DFA are connected [a natural constraint to add].\n\n• – Gilles 'SO- stop being evil' Aug 18 '13 at 8:17\n• re the edit, another way to see DFAs is as a set of triples defining edges $(v_1,b,v_2)$ where $v_1$ is vertex 1, $v_2$ vertex 2, and $b$ is the transition symbol and any subset of these can be chosen to determine a DFA. – vzn Sep 15 '13 at 17:08" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9292792,"math_prob":0.94680345,"size":527,"snap":"2019-43-2019-47","text_gpt3_token_len":120,"char_repetition_ratio":0.13001911,"word_repetition_ratio":0.0,"special_character_ratio":0.22770399,"punctuation_ratio":0.093457945,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96931064,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-18T16:46:18Z\",\"WARC-Record-ID\":\"<urn:uuid:b1c7e943-4840-424e-ab7b-afc226c8c6a0>\",\"Content-Length\":\"166283\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:76bf39dc-d968-4fa8-b569-ce3876afafe7>\",\"WARC-Concurrent-To\":\"<urn:uuid:8bd7d780-76a7-409a-9269-3034da38b219>\",\"WARC-IP-Address\":\"151.101.193.69\",\"WARC-Target-URI\":\"https://cs.stackexchange.com/questions/12943/what-is-a-good-algorithm-for-generating-random-dfas/12949\",\"WARC-Payload-Digest\":\"sha1:V3B5YYBARKXUY67SB6ZFAKRLMVZEKICA\",\"WARC-Block-Digest\":\"sha1:RMNBU6TBLA6JDEFWJ3HXO7Q45UPIHMAY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496669809.82_warc_CC-MAIN-20191118154801-20191118182801-00372.warc.gz\"}"}
https://www.osapublishing.org/ol/fulltext.cfm?uri=ol-42-2-290&id=357170
[ "## Abstract\n\nA distributed optical fiber dynamic strain sensor with high spatial and frequency resolution is demonstrated. The sensor, which uses the $ϕ$-OTDR interrogation technique, exhibited a higher sensitivity thanks to an improved optical arrangement and a new signal processing procedure. The proposed sensing system is capable of fully quantifying multiple dynamic perturbations along a 5 km long sensing fiber with a frequency and spatial resolution of 5 Hz and 50 cm, respectively. The strain resolution of the sensor was measured to be 40 nε.\n\nPublished by The Optical Society under the terms of the Creative Commons Attribution 4.0 License. Further distribution of this work must maintain attribution to the author(s) and the published article's title, journal citation, and DOI.\n\nThe concept of using an optical fiber to map dynamic perturbations along the sensing fiber was first proposed by Taylor and Lee and later demonstrated by their team in 2005 . The proposed sensor was only capable of detecting the dynamic perturbations along the sensing fiber by monitoring the changes in the pattern of the backscattered coherent Rayleigh noise. The volume of research since then has proliferated and has focused on developing distributed optical fiber dynamic strain sensors that are capable of fully quantifying the characteristics of perturbations, such as frequency and amplitude along the sensing fiber. The first distributed optical fiber sensor capable of full characterization of dynamic strains was demonstrated by Song and Hotate . The proposed sensor used Brillouin optical correlation domain analysis (BOCDA) to interrogate 20 m long sensing fiber. Despite its high spatial resolution, the bandwidth of the sensor was limited to 200 Hz mainly due to the slow sensing procedure intrinsic to the BOCDA sensing technique. In addition, the relatively low strain sensitivity of the sensor made it unsuitable for mapping acoustic fields.\n\nInitially, distributed optical fiber dynamic strain sensors had limited dynamic and/or frequency range mainly due to their slow interrogation techniques. In 2013, Masoudi et al. demonstrated a long-range and high-bandwidth distributed dynamic strain sensor capable of measuring dynamic vibrations . The proposed sensing technique was based on phase optical time-domain reflectometry ($ϕ$-OTDR), a technique which determines the induced strain using the phase of the Rayleigh backscattered light. A detailed review of the past and present measurement techniques capable of fully quantifying the dynamic perturbations and a comparison between their key parameters can be found in .\n\nOne of the drawbacks of the current sensing systems for mapping acoustic fields has been their relatively high noise floor [4,6]. The main source of noise in these systems is the amplified spontaneous emission (ASE) noise from the two erbium-doped fiber amplifiers (EDFAs) used to amplify the probe pulse and the backscattered light. The ASE noise include ASE-ASE beat noise, signal-ASE beat noise, and ASE-shot beat noise where the noise level in each case depends on the bandwidth of the ASE spectrum. In the previous publications [4,6] two matched fiber Bragg grating (FBG) filters were used to reduce the ASE. The first was placed after the power amplifier used to amplify the probe pulse. The second was placed after the pre-amplifier to amplify the weak backscattered Rayleigh signal. By reducing the linewidth of these two FBGs the ASE noise can be reduced. The practical limit is, however, governed by the stability of the reflection wavelength of the FBGs. For the two FBGs to remain matched the linewidth of both should be larger than the anticipated wavelength drift arising from changes in the temperature of their environment.\n\nIn this Letter, a novel optical arrangement is introduced which uses a single narrow FBG to perform both functions, i.e., to reduce the ASE noise from both the power amplifier and pre-amplifier. Unlike the sensing systems with two FBGs, the bandwidth of the FBG used in the new arrangement can be very narrow thereby enhancing the rejection of ASE-generated noise. This new experimental arrangement is combined with an improved signal processing procedure that is less susceptible to noise. Much enhanced results, including a fourfold improvement in spatial resolution, a twofold improvement in strain resolution, and an eighteenfold improvement in frequency discrimination, are demonstrated.\n\nThis Letter begins with a brief description of the underlying sensing principles of the sensor followed by a detailed description of the new signal processing procedure and the experimental setup. Next, the experimental results are presented followed by an analysis of the results and conclusion.\n\nThe strain distribution along the sensing fiber is mapped by examining the changes in the phase of the backscattered Rayleigh light . For any given section of the fiber, the phase difference between the backscattered light from the two ends of that section, $Δφ$, is a function of the length of that section, $ℓ$. For any unperturbed section of the sensing fiber, the length and, consequently, the phase difference remain unchanged. Any perturbation that induces a strain $ε$ on the fiber will change the phase difference. The changes in the phase difference as a function of length is given by \n\n$Δφ(ℓ)=ϵℓ[β−12βn2[(1−μ)p12−μp11]],$\nwhere $β$ is the propagation constant of light in the fiber, $n$ is the refractive index of the fiber, $μ$ is the Poisson’s ratio, and $p11$ and $p12$ are strain-optic coefficients. Replacing the values of refractive index ($n=1.456$), Poisson’s ratio ($μ=0.17$), and strain-optic coefficients ($p11=0.121$, $p12=0.27$) in Eq. (1) gives\n$Δφ(ℓ)=ϵℓβ×0.78.$\n\nEquation (2) illustrates that 22% of the phase change is due to the strain-induced refractive index change in the fiber. Therefore, to accurately calculate the strain rate, $Δφ$ should be divided by 0.78. In order to measure the phase difference between the two end points of each section, an imbalanced Mach–Zehnder interferometer (MZI) is used. A symmetrical $3×3$ coupler is employed as the interferometer output coupler to avoid the signal fading problem . It can be shown that the intensity of the light at the three output arms of the MZI is given by \n\n$I1=I0[M+N cos(Δφ(ℓ))],I2=I0[M+N cos(Δφ(ℓ)+2π3)],I3=I0[M+N cos(Δφ(ℓ)−2π3)],$\nwhere $I0$ is the intensity of the input signal and $M$ and $N$ are constant. Hitherto, a differentiate and cross-multiplying (DXM) demodulator was used to extract the phase information from the outputs of the three detectors [4,6]. The main drawback of the DXM demodulator is the use of a differentiator in the demodulation process, which is inherently sensitive to noise. In order to avoid the differentiator, a new signal processing procedure is devised to retrieve the phase information using an arc-tangent function and for phase variation beyond $±π/2$, the new procedure used a fringe-counting algorithm. To retrieve the phase information, the DC components of the three terms in Eq. (3) need to be eliminated first. The DC term can be calculated as follows:\n$S=I1+I2+I33=I0M.$\n\nSubtracting Eq. (4) from the three terms in Eq. (3) gives\n\n$I˙1=I0N cos(Δφ(ℓ)),I˙2=I0N cos(Δφ(ℓ)+2π3),I˙3=I0N cos(Δφ(ℓ)−2π3).$\n\nFinally, using trigonometric identities, the phase information can be recovered as follows:\n\n$Δφ=arctan(I˙2−I˙3I˙1).$\n\nA fringe-counting algorithm is implemented by looking at the transition of $Δφ$ from $+π/2$ to $−π/2$ and vice versa.\n\nThe experimental setup is shown in Fig. 1. A 1550 nm distributed feedback laser diode was modulated with an electro-optic modulator to generate a 5 ns pulse with a repetition rate of 50 μs. The pulse was then amplified by an erbium-doped fiber amplifier (EDFA1) to raise the peak power to 4 W. The amplified pulse was passed through an acousto-optic modulator (AOM1) ($insertion loss=3 dB$; $extinction ratio=50 dB$) followed by an FBG filter ($λB=1550.52 nm$; $Δλ=0.2 nm$; $reflectivity=99.9%$) to remove the ASE from the EDFA1 via circulator C1. The probe pulse with peak power of 2 W was then launched into the sensing fiber via circulator C2. The sensing fiber consisted of a 4.9 m and a 2.4 m long single-mode fiber wrapped around two piezoelectric ceramics (PZTs) (PZT1: a 155 mm diameter ring PZT; PZT2: 115 mm diameter ring PZT) separated by a 100 m unstrained–unheated fiber. A 4.5 km and a 100 m long unstrained–unheated fiber were used to separate the PZTs from the front end and far end of the sensing fiber, respectively. The backscattered Rayleigh signal was collected by the circulator C2 and amplified by the second optical amplifier (EDFA2). The ASE from the second optical amplifier was filter by the same FBG used to filter the ASE of the first optical amplifier via circulator C3. For use in environments with temperature variations greater than (10°C), the FBG should be temperature stabilized.", null, "Fig. 1. Experimental setup. DFB, distributed feedback; PC, polarization controller; EOM, electro-optic modulator; EDFA, erbium-doped fiber amplifier; AOM, acousto-optic modulator; C, circulator; FBG, fiber Bragg grating; PD, photodetector; DAQ, data acquisition system.\n\nThe experimental procedure went through two phases during each interrogation cycle: the pulse-formation phase and the signal-detection phase. The control signals to the two AOMs were adjusted accordingly to direct or block the light during each phase. During the pulse-formation phase, AOM1 was switched on to allow the probe pulse to reach the sensing fiber. During this period, AOM2 remained switched off to block the ASE of EDFA1 from saturating the detectors. If AOM2 does not block the light, the entire ASE spectrum from EDFA1 less 0.2 nm (i.e., FBG bandwidth) passes through the FBG and falls on the detectors. During the signal-detection phase, AOM1 was switched off to isolate the pulse-formation arm of the sensor and AOM2 was turned on to allow the amplified backscattered light through to the MZI after it had been filtered by the FBG to remove ASE generated by EDFA2.\n\nAfter passing through AOM2, the filtered backscattered signal was fed into the thermally insulated MZI with path imbalance of 1 m using a 50/50 coupler. Three photoreceivers (40 V/mA transimpedance; 125 MHz bandwidth) were used to detect the light from the $3×3$ coupler at the output of the MZI. The photoreceivers were sampled using a 250 MHz oscilloscope at a sampling rate of 625 MSa/s.\n\nThe 3D diagram of Fig. 2 illustrates the frequency components present in a 300 m section of the sensing fiber between 4500 and 4800 m. The plot represents the post-processed data obtained from the setup while the large and small PZTs were modulated with 1500 and 2000 Hz sinusoidal signals, respectively. The amplitude of the voltage applied to the large PZT was $7 VPP$ and that of the smaller PZT was set to $10 VPP$.", null, "Fig. 2. Frequency components present along a 300 m stretch of the sensing fiber between 4500 and 4800 m.\n\nThe phase shift and strain level of the larger PZT as a function of the PZT voltage is shown in the diagram of Fig. 3. This diagram demonstrates the PZT response to 1 kHz sinusoidal signals with voltages varying from $1 VPP$ to $8 VPP$. The data points on this figure represent the peak of the strain measured by the sensor.", null, "Fig. 3. PZT input voltage versus sensor output for 1 kHz sinusoidal signal.\n\nFigure 4 represents the frequency response of the larger PZT measured by both the distributed sensor (red data points) and MZI (solid line). The solid line is obtained by characterizing the large PZT using cw light and a conventional MZI. The data was collected by applying a fixed voltage ($7 VPP$) to the PZT while changing the frequency from 100 Hz to 3 kHz.", null, "Fig. 4. Frequency response of the large PZT measured by the distributed sensor (red data points) and MZI (solid line).\n\nTo assess the spatial and frequency resolution of the sensor, the 3D diagram illustrating the output of the sensor is presented by two 2D diagrams in Fig. 5. Figure 5(a) shows the spatial distribution of strain along the sensing fiber at a fixed frequency while Fig. 5(b) shows the frequency spectrum of the dynamic fluctuations at a single point on the sensing fiber. The trace representing the spatial distribution of strain in Fig. 5(a) was obtained by averaging the data acquired from 10 separate measurements. The frequency and amplitude of the input voltage to PZT2 was kept constant at 1 kHz and $8 VPP$, respectively, for the duration of the 10 measurements. To measure the frequency resolution, the frequency of the input signal to PZT1 was changed in 1 Hz steps from 1500 to 1505 Hz while monitoring the frequency spectrum of a fixed point on the sensing fiber. Figure 5(b) shows the data acquired for input frequencies of 1500 and 1505 Hz.", null, "Fig. 5. 2D representation of the 3D diagram depicting the output of the sensor. (a) Spatial distribution of strain along the sensing fiber at 1 kHz. (b) Frequency spectrum of the dynamic fluctuations at 4578 m for 1500 Hz signal (blue trace) and 1505 Hz signal (red trace).\n\nThe two peaks in Fig. 2 correspond to the strains applied by the two PZTs at 4578 and 4681 m. The 3D plot demonstrates that the sensor can accurately measure the location, frequency, and amplitude of dynamic perturbations along the fiber.\n\nFigure 3 shows a linear relationship between the amplitude of the input voltage to the PZT and the measured phase shift for 1 kHz sinusoidal signal. Equation (2) was used to calculate the strain level shown on the right vertical axis of this diagram:\n\n$ϵ=Δφ0.78ℓβ=Δφ0.78ℓ·λ2πn,$\nwhere $λ=1550 nm$, $n=1.456$, and $ℓ$ is determined by the path imbalanced of the MZI and is equal to $ℓ=ΔL/2=0.5 m$. Similar experiments at other frequencies (i.e., 500, 1500, and 2000 Hz) exhibit the same linear characteristic. The minimum detectable strain at 1 kHz was measured to be 40 nε, which shows a factor of 2 improvement from the previous work. Figure 4 shows a good correlation between the data collected with the sensor and the frequency response measured by the MZI. The experimental result also shows that the system can detect frequencies as high as 5 kHz. Based on the observation from Figs. 3 and 4, it can be concluded that the modified sensing arrangement is capable of quantifying the frequency, amplitude, and location of dynamic perturbations anywhere along the sensing fiber with an accuracy of 40 nε. The strain sensitivity of the sensor can be further improved through averaging in expense of a more limited frequency range.\n\nThe other advantage of the modified optical arrangement is that it facilitates the development of a wavelength-division multiplexing sensing system that offers improved frequency and/or sensing range. Such a system can be realized by using a multi-wavelength source and only one FBG for each wavelength in the link between circulator C1 and C3.\n\nThe analysis of Fig. 5(a) demonstrates 10/90% spatial resolution of 50 cm, a factor of 4 improvement on what was achieved previously. Furthermore, Fig. 5(b) shows that two frequencies as close as 5 Hz can be clearly distinguished from one another. A 5 Hz frequency resolution indicates a factor of 18 improvement from the previous results. The improvement in the frequency resolution was achieved by increasing the acquisition time from 10 to 200 ms.\n\nIn summary, the modified experimental setup demonstrated a factor of 4 improvement in gauge length and a factor of 2 improvement in minimum detectable strain. The higher sensitivity was achieved by (1) using a single narrow-bandwidth FBG to filter the ASE from both EDFAs and, (2) eliminating the differentiator from the phase demodulator, which made it inherently less sensitive to noise. The new signal processing procedure was not only less sensitive to noise but also simpler to implement. As a result, the signal processing run time of the new demodulator was 10 times as fast as the DXM demodulation algorithm. The frequency resolution and sensing range of the new setup were measured to be 5 Hz and 5 km, respectively, which indicates a factor of 18 improvement in the frequency resolution and a factor of 5 improvement in the sensing range.\n\nAll data supporting this study are openly available from the University of Southampton repository in Dataset 1, Ref. .\n\n## Funding\n\nEngineering and Physical Sciences Research Council (EPSRC) (EP/N00437X/1).\n\n1. H. F. Taylor and C. E. Lee, “Apparatus and method for fiber optic intrusion sensing,” U.S. patent 5,194,847 (March 16, 1993).\n\n2. J. C. Juarez, E. W. Maier, K. N. Choi, and H. F. Taylor, J. Lightwave Technol. 23, 2081 (2005). [CrossRef]\n\n3. K. Y. Song and K. Hotate, IEEE Photon. Technol. Lett. 19, 1928 (2007). [CrossRef]\n\n4. A. Masoudi, M. Belal, and T. P. Newson, Meas. Sci. Technol. 24, 085204 (2013). [CrossRef]\n\n5. A. Masoudi and T. P. Newson, Rev. Sci. Instrum. 87, 011501 (2016). [CrossRef]\n\n6. C. Wang, C. Wang, Y. Shang, X. Liu, and G. Peng, Opt. Commun. 346, 172 (2015). [CrossRef]\n\n7. K. De Souza and T. P. Newson, Opt. Express 12, 2656 (2004). [CrossRef]\n\n8. G. B. Hocker, Appl. Opt. 18, 1445 (1979). [CrossRef]\n\n### References\n\n• View by:\n\n1. H. F. Taylor and C. E. Lee, “Apparatus and method for fiber optic intrusion sensing,” U.S. patent5,194,847 (March16, 1993).\n2. J. C. Juarez, E. W. Maier, K. N. Choi, and H. F. Taylor, J. Lightwave Technol. 23, 2081 (2005).\n[Crossref]\n3. K. Y. Song and K. Hotate, IEEE Photon. Technol. Lett. 19, 1928 (2007).\n[Crossref]\n4. A. Masoudi, M. Belal, and T. P. Newson, Meas. Sci. Technol. 24, 085204 (2013).\n[Crossref]\n5. A. Masoudi and T. P. Newson, Rev. Sci. Instrum. 87, 011501 (2016).\n[Crossref]\n6. C. Wang, C. Wang, Y. Shang, X. Liu, and G. Peng, Opt. Commun. 346, 172 (2015).\n[Crossref]\n7. K. De Souza and T. P. Newson, Opt. Express 12, 2656 (2004).\n[Crossref]\n8. G. B. Hocker, Appl. Opt. 18, 1445 (1979).\n[Crossref]\n9. http://doi.org/10.5258/SOTON/401728 .\n\n#### 2016 (1)\n\nA. Masoudi and T. P. Newson, Rev. Sci. Instrum. 87, 011501 (2016).\n[Crossref]\n\n#### 2015 (1)\n\nC. Wang, C. Wang, Y. Shang, X. Liu, and G. Peng, Opt. Commun. 346, 172 (2015).\n[Crossref]\n\n#### 2013 (1)\n\nA. Masoudi, M. Belal, and T. P. Newson, Meas. Sci. Technol. 24, 085204 (2013).\n[Crossref]\n\n#### 2007 (1)\n\nK. Y. Song and K. Hotate, IEEE Photon. Technol. Lett. 19, 1928 (2007).\n[Crossref]\n\n#### Belal, M.\n\nA. Masoudi, M. Belal, and T. P. Newson, Meas. Sci. Technol. 24, 085204 (2013).\n[Crossref]\n\n#### Hotate, K.\n\nK. Y. Song and K. Hotate, IEEE Photon. Technol. Lett. 19, 1928 (2007).\n[Crossref]\n\n#### Lee, C. E.\n\nH. F. Taylor and C. E. Lee, “Apparatus and method for fiber optic intrusion sensing,” U.S. patent5,194,847 (March16, 1993).\n\n#### Liu, X.\n\nC. Wang, C. Wang, Y. Shang, X. Liu, and G. Peng, Opt. Commun. 346, 172 (2015).\n[Crossref]\n\n#### Masoudi, A.\n\nA. Masoudi and T. P. Newson, Rev. Sci. Instrum. 87, 011501 (2016).\n[Crossref]\n\nA. Masoudi, M. Belal, and T. P. Newson, Meas. Sci. Technol. 24, 085204 (2013).\n[Crossref]\n\n#### Newson, T. P.\n\nA. Masoudi and T. P. Newson, Rev. Sci. Instrum. 87, 011501 (2016).\n[Crossref]\n\nA. Masoudi, M. Belal, and T. P. Newson, Meas. Sci. Technol. 24, 085204 (2013).\n[Crossref]\n\n#### Peng, G.\n\nC. Wang, C. Wang, Y. Shang, X. Liu, and G. Peng, Opt. Commun. 346, 172 (2015).\n[Crossref]\n\n#### Shang, Y.\n\nC. Wang, C. Wang, Y. Shang, X. Liu, and G. Peng, Opt. Commun. 346, 172 (2015).\n[Crossref]\n\n#### Song, K. Y.\n\nK. Y. Song and K. Hotate, IEEE Photon. Technol. Lett. 19, 1928 (2007).\n[Crossref]\n\n#### Taylor, H. F.\n\nH. F. Taylor and C. E. Lee, “Apparatus and method for fiber optic intrusion sensing,” U.S. patent5,194,847 (March16, 1993).\n\n#### Wang, C.\n\nC. Wang, C. Wang, Y. Shang, X. Liu, and G. Peng, Opt. Commun. 346, 172 (2015).\n[Crossref]\n\nC. Wang, C. Wang, Y. Shang, X. Liu, and G. Peng, Opt. Commun. 346, 172 (2015).\n[Crossref]\n\n#### IEEE Photon. Technol. Lett. (1)\n\nK. Y. Song and K. Hotate, IEEE Photon. Technol. Lett. 19, 1928 (2007).\n[Crossref]\n\n#### Meas. Sci. Technol. (1)\n\nA. Masoudi, M. Belal, and T. P. Newson, Meas. Sci. Technol. 24, 085204 (2013).\n[Crossref]\n\n#### Opt. Commun. (1)\n\nC. Wang, C. Wang, Y. Shang, X. Liu, and G. Peng, Opt. Commun. 346, 172 (2015).\n[Crossref]\n\n#### Rev. Sci. Instrum. (1)\n\nA. Masoudi and T. P. Newson, Rev. Sci. Instrum. 87, 011501 (2016).\n[Crossref]\n\n#### Other (2)\n\nH. F. Taylor and C. E. Lee, “Apparatus and method for fiber optic intrusion sensing,” U.S. patent5,194,847 (March16, 1993).\n\nhttp://doi.org/10.5258/SOTON/401728 .\n\n### Supplementary Material (1)\n\nNameDescription\nDataset 1       Datasets for all the figures.\n\n### Cited By\n\nOptica participates in Crossref's Cited-By Linking service. Citing articles from Optica Publishing Group journals and other participating publishers are listed here.\n\n### Figures (5)\n\nFig. 1. Experimental setup. DFB, distributed feedback; PC, polarization controller; EOM, electro-optic modulator; EDFA, erbium-doped fiber amplifier; AOM, acousto-optic modulator; C, circulator; FBG, fiber Bragg grating; PD, photodetector; DAQ, data acquisition system.\nFig. 2. Frequency components present along a 300 m stretch of the sensing fiber between 4500 and 4800 m.\nFig. 3. PZT input voltage versus sensor output for 1 kHz sinusoidal signal.\nFig. 4. Frequency response of the large PZT measured by the distributed sensor (red data points) and MZI (solid line).\nFig. 5. 2D representation of the 3D diagram depicting the output of the sensor. (a) Spatial distribution of strain along the sensing fiber at 1 kHz. (b) Frequency spectrum of the dynamic fluctuations at 4578 m for 1500 Hz signal (blue trace) and 1505 Hz signal (red trace).\n\n### Equations (7)\n\n$Δ φ ( ℓ ) = ϵ ℓ [ β − 1 2 β n 2 [ ( 1 − μ ) p 12 − μ p 11 ] ] ,$\n$Δ φ ( ℓ ) = ϵ ℓ β × 0.78 .$\n$I 1 = I 0 [ M + N cos ( Δ φ ( ℓ ) ) ] , I 2 = I 0 [ M + N cos ( Δ φ ( ℓ ) + 2 π 3 ) ] , I 3 = I 0 [ M + N cos ( Δ φ ( ℓ ) − 2 π 3 ) ] ,$\n$S = I 1 + I 2 + I 3 3 = I 0 M .$\n$I ˙ 1 = I 0 N cos ( Δ φ ( ℓ ) ) , I ˙ 2 = I 0 N cos ( Δ φ ( ℓ ) + 2 π 3 ) , I ˙ 3 = I 0 N cos ( Δ φ ( ℓ ) − 2 π 3 ) .$\n$Δ φ = arctan ( I ˙ 2 − I ˙ 3 I ˙ 1 ) .$\n$ϵ = Δ φ 0.78 ℓ β = Δ φ 0.78 ℓ · λ 2 π n ,$" ]
[ null, "https://www.osapublishing.org/images/ajax-loader-big.gif", null, "https://www.osapublishing.org/images/ajax-loader-big.gif", null, "https://www.osapublishing.org/images/ajax-loader-big.gif", null, "https://www.osapublishing.org/images/ajax-loader-big.gif", null, "https://www.osapublishing.org/images/ajax-loader-big.gif", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9282054,"math_prob":0.90719765,"size":15006,"snap":"2021-43-2021-49","text_gpt3_token_len":3381,"char_repetition_ratio":0.14984669,"word_repetition_ratio":0.015052889,"special_character_ratio":0.21824603,"punctuation_ratio":0.10953563,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9747051,"pos_list":[0,1,2,3,4,5,6,7,8,9,10],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-18T04:27:47Z\",\"WARC-Record-ID\":\"<urn:uuid:4828d1b0-3764-46e0-873c-235123c73c29>\",\"Content-Length\":\"160457\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7f32a8b5-9c9f-40fe-8780-d6ad05ea4535>\",\"WARC-Concurrent-To\":\"<urn:uuid:4c844b24-a1cc-45db-9960-776080641e73>\",\"WARC-IP-Address\":\"38.95.177.60\",\"WARC-Target-URI\":\"https://www.osapublishing.org/ol/fulltext.cfm?uri=ol-42-2-290&id=357170\",\"WARC-Payload-Digest\":\"sha1:GEZMR3O7ZUAAP7XXD34CY7NFKJW6JEWD\",\"WARC-Block-Digest\":\"sha1:277YSOP5XSQOPWHNKP4ODLIWNG5FDJIZ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323585196.73_warc_CC-MAIN-20211018031901-20211018061901-00218.warc.gz\"}"}
http://qiancy.com/2016/11/
[ "# 终结工具 – Synergy", null, "## 1. SNE概要", null, "### 1.1 高维数据的相似度概率分布\n\nSNE将数据点之间高维的欧氏距离转换为表示相似度的条件概率,即用条件概率$$p(j|i)$$表示点$$x_j$$到点$$x_i$$的相似度,这个含义可以理解为:若以$$x_i$$为中心的高斯分布来选取邻居,则$$x_i$$选择$$x_j$$作为自己邻居的概率是$$p(j|i)$$。若数据点相距较近,则$$p(j|i)$$较大,相反若数据点相距非常远,$$p(j|i)$$则可以接近无穷小。条件概率$$p(j|i)$$定义如下:" ]
[ null, "http://qiancy.com/wp-content/uploads/2016/11/14793612077732.jpg", null, "http://qiancy.com/wp-content/uploads/2016/11/14720411795869.jpg", null ]
{"ft_lang_label":"__label__zh","ft_lang_prob":0.9614572,"math_prob":1.0000085,"size":648,"snap":"2020-34-2020-40","text_gpt3_token_len":594,"char_repetition_ratio":0.10869565,"word_repetition_ratio":0.0,"special_character_ratio":0.18827161,"punctuation_ratio":0.026666667,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9999956,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,2,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-08-10T15:07:35Z\",\"WARC-Record-ID\":\"<urn:uuid:1306f55c-6594-4466-aa69-c73f27825fce>\",\"Content-Length\":\"27244\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c18ab974-b349-4274-a664-396c8046dcf1>\",\"WARC-Concurrent-To\":\"<urn:uuid:aaef52c9-c214-4cb0-9225-d635071e1067>\",\"WARC-IP-Address\":\"139.129.6.49\",\"WARC-Target-URI\":\"http://qiancy.com/2016/11/\",\"WARC-Payload-Digest\":\"sha1:YSP3YCOXD4DAMOP42V76NZSVMTMYIHLD\",\"WARC-Block-Digest\":\"sha1:V4SFO4KTPDK5DZMD2HWC2P7QVS3L26MJ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-34/CC-MAIN-2020-34_segments_1596439736057.87_warc_CC-MAIN-20200810145103-20200810175103-00163.warc.gz\"}"}
https://www.oscarsports.com/issue-001-confucius-lotto-forecast-award-52-single-inject-reference/
[ "Best seller\n\n# Issue 001 Confucius Lotto Forecast Award: 5+2 Single Inject Reference\n\nLottery retrospective: Sports Lottery Lotto No. 22150 issued the prize number: 06 07 26 29 30+03 12, the size ratio ratio of the front area is 3: 2,012 to 2: 1: 2, and the quality combination ratio is 2: 3.The ratio ratio of the strange coupling is 2: 3, the ratio ratio of the rear area is 1: 1,012 to 2: 0: 0, and the mass -to -match ratio is 1: 1, and the strange coupling ratio is 1: 1.\n\nAnalysis of Protocol Number of Phase 2023001 Phase 2023001:", null, "First place: The prize number 06 was opened in the previous period. After the first 10 times opened the number 06, the prize number was issued in the next issue: 06-02-15-01-07-07-02-05-04,Among them, the number ratio ratio is 5: 5, the size ratio is 0: 10,012 to 3: 4: 3, and the mass -to -quality ratio is 6: 4., Pay attention to the number of numbers in this issue, select one yard 08.\n\nSecond place: The prize number 07 was opened in the previous period. After the first 10 times opened the number 07, the prize number was issued in the next issue: 12-11-14-10-15-09-12-05-06,Among them, the size ratio ratio of the number is 0: 10,012 to 5: 1: 4, and the mass -ratio is 2: 8, and the strange coupling ratio is 4: 6.In this issue, the second place is optimistic about the 0 number, and the gallbladder is concerned 15.\n\nThird place: The prize number 26 in the previous period, after the number 26 of the first 10 times, the prize number of the next issue: 30-27-13-28-23-11-26-22-16-16,Among them, the number 012 is 2: 5: 3, the qualitative ratio is 3: 7, and the puppet ratio is 4: 6, and the size ratio is 6: 4., The third place in this issue pays attention to the odd number, selects one yard 27.\n\nFourth place: The prize number 29 was opened in the previous period, and the number 29 was opened in the first 10 times.Among them, the size ratio ratio of the number is 10: 0,012 to 5: 3: 2, and the mass -to -line ratio is 1: 9, and the strange coupling ratio is 3: 7.In this issue, the fourth reference of the odd number number, selected gallbladder 31.\n\nFifth place: 30 prize number 30 in the previous period, after the number 30 in the first 10 times, the prize number of the next period: 32-28-20-33-31-32-30-19-27, andAmong them, the number 012 is 3: 3: 4, the qualitative ratio is 2: 8, and the coupling ratio is 4: 6, and the size ratio is 10: 0., The fifth place in this issue, the bile code is optimistic about 33.", null, "Sixth place: The prize number 03 was opened in the previous period, and after the first 10 times opened the number 03, the next issue of the prize number: 09-09-04-03-06-07-01-07,Among them, the number combined ratio is 5: 5, the strange coupling ratio is 6: 4, and the size ratio is 4: 6,012 to 4: 5: 1. The sixth place in this issue is optimistic about the quality digits, and the bile code follows 01.\n\nSeventh place: The prize number 12 was opened in the previous period, and the number 12 was opened in the first 10 times.Among them, the number 012 is 3: 5: 2, the qualitative ratio is 4: 6, and the puppet ratio is 5: 5, and the size ratio is 7: 3. The seventh -digit digital number in this issue. The gallbladder code is optimistic about 03.", null, "Confucius Lotto No. 2023001 Number Recommendation:\n\nThe front area kill number: 01 03 09 10 19 22 29 34\n\nReference in the front area: 06 08 13 14 15 16 17 21 24 26 27 30 33 35\n\nFive yards reference in the back area: 01 03 09 10 11\n\n5+2 Single Note Reference: 08 15 27 31 33+01 03\n\n[Sweep the code download app, and more than 10 million experts are here!]", null, "We will be happy to hear your thoughts", null, "Enable registration in settings - general" ]
[ null, "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MDUiIGhlaWdodD0iMjE3IiB2aWV3Qm94PSIwIDAgNjA1IDIxNyI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgc3R5bGU9ImZpbGw6I2NmZDRkYjtmaWxsLW9wYWNpdHk6IDAuMTsiLz48L3N2Zz4=", null, "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3MDQiIGhlaWdodD0iNDAxIiB2aWV3Qm94PSIwIDAgNzA0IDQwMSI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgc3R5bGU9ImZpbGw6I2NmZDRkYjtmaWxsLW9wYWNpdHk6IDAuMTsiLz48L3N2Zz4=", null, "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1ODMiIGhlaWdodD0iNTY0IiB2aWV3Qm94PSIwIDAgNTgzIDU2NCI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgc3R5bGU9ImZpbGw6I2NmZDRkYjtmaWxsLW9wYWNpdHk6IDAuMTsiLz48L3N2Zz4=", null, "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxODgiIGhlaWdodD0iMTg4IiB2aWV3Qm94PSIwIDAgMTg4IDE4OCI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgc3R5bGU9ImZpbGw6I2NmZDRkYjtmaWxsLW9wYWNpdHk6IDAuMTsiLz48L3N2Zz4=", null, "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjAiIGhlaWdodD0iNTAiIHZpZXdCb3g9IjAgMCAxNjAgNTAiPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHN0eWxlPSJmaWxsOiNjZmQ0ZGI7ZmlsbC1vcGFjaXR5OiAwLjE7Ii8+PC9zdmc+", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9213183,"math_prob":0.99051553,"size":3544,"snap":"2023-40-2023-50","text_gpt3_token_len":1120,"char_repetition_ratio":0.22881356,"word_repetition_ratio":0.1891892,"special_character_ratio":0.3535553,"punctuation_ratio":0.17253122,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97164863,"pos_list":[0,1,2,3,4,5,6,7,8,9,10],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-01T10:50:38Z\",\"WARC-Record-ID\":\"<urn:uuid:00001fa5-9022-4183-ae56-1a7de0a7c679>\",\"Content-Length\":\"148640\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7d639256-5686-43f9-b464-bf2c5970c523>\",\"WARC-Concurrent-To\":\"<urn:uuid:daaac7a6-dbe7-4061-9da0-1eb2d0537a19>\",\"WARC-IP-Address\":\"172.111.38.73\",\"WARC-Target-URI\":\"https://www.oscarsports.com/issue-001-confucius-lotto-forecast-award-52-single-inject-reference/\",\"WARC-Payload-Digest\":\"sha1:47ATCL7BT2DGU37O2TYSGZTRETKWHHWH\",\"WARC-Block-Digest\":\"sha1:ZF5YKEGVOSRHCEKWEGPRLF3FDA6ISGXE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100286.10_warc_CC-MAIN-20231201084429-20231201114429-00610.warc.gz\"}"}
https://sciencekick.blogspot.com/2010/11/wrong-wrong-wrong.html
[ "## Wednesday, November 3, 2010\n\n### Wrong, Wrong, Wrong!\n\nA certain incident has been nibbling away at my consciousness for ages like a kind of psychic termite. It happened in my freshman physics class when the teacher was introducing Newton's law of gravitation. In order to protect the reputation of said teacher, I shall refer to him here as Professor X.\n\nProfessor X presented the equation for finding the force exerted on an object by the earth's gravity. It's a classic, lovely little equation...\nMe = the mass of the earth, about 1.3 x 1025 lbs or 5.97 x 1024 kilograms. (Do we remember our metric conversions and our scientific notation?)\nm = the mass, in kilograms, of some object.\nr = how far that object is from the center of the earth.\nG = the universal gravitation constant, a sort of cosmic fudge factor, equal to\n6.673 x 10-11 N•m2/kg2\n(the \"N\" stands for \"Newtons\", the unit of measure for force; read as \"Newton meters squared per kilograms squared\").\n\nA student asked a question: \"So, if r = 0, the force is infinite?\"\n\nKnowing that we had been taught in our math classes that anytime you divide a number by 0 the answer is , Professor X said, \"Yes, if r is 0, Fg is infinitely large.\"\n\nThere are a few reasons why the professor might have responded to the student's question with such an incredibly wrong answer:\n1) The student who asked the question was kind of annoying and may have been asking a smart-alecky question which, naturally, demanded a smart-alecky answer;\n2) The professor may have simply been joking, oblivious to the fact that some people in the class might have taken him seriously; or, what I think is the most likely answer,\n3) The professor wanted to get beyond gravitation and move on to the next subject without introducing additional, complicated material which would have blown the minds of unprepared freshman physics students.\nPhysicists are sometimes taken to task by other scientists for playing fast and loose with mathematics;  assumptions and leaps of logic that -- even as they are proven true beyond a reasonable doubt by experiment after experiment -- leave mathematicians flabbergasted by their audacity and seem a lot like cheating. It happens often enough that, sometimes, physicists get caught with their panties down and major flaws are found in their reasoning and their lovely little equations. The Fg equation works. Mostly. For the purposes of an undergraduate physics student, at least, it works just fine. But then you start to look at the assumptions being made and you realize the equation comes with some strings attached.\n\nThe big assumption being made in regard to the gravity equation and the earth is that you are dealing with a point mass, a planet-sized spherical mass of uniform density where all its gravity is coming from a single point in the center, which is kind of a funny idea when you think about it. If you're talking about objects near or above the surface of the earth, you can get decent approximations of Fg from the equation. But when you start to dig down, things get complicated.\n\nEvery part of the earth, from the crust to the core, has mass. Start boring a hole toward the center of the earth and eventually, you'll find yourself with a mass of earth-stuff above you that's large enough to exert a significant gravitational force. (How far down do you have to go? That's a future post.) The gravity you felt would be the sum of countless sources of gravitational attraction acting on you.\n\nThe total force of gravity acting on you deep below the earth's surface would be the total Fg from below you and minus the total Fg from above you (from the sides, it would mostly cancel out... more on that later). This is because of something called the superposition of forces. The total force of gravity you would experience would still be drawing you toward the center of the earth, but Fg (from beneath you) would be less than if you were on the surface.\n\nSince you experience the sum of all the gravitational forces acting on you, two equal forces attracting you from opposite directions cancel each other out. Thanks to the principle of superposition, we know that if you were at the center of the earth, for all the mass in any direction exerting a gravitational force on you, there is an equal mass on the other side of you canceling it out. Newton's formula isn't wrong, it just needs to be applied in a slightly different way. Fg at the center of the earth, where r = 0, isn't ∞ like Professor X said, it's actually the sum total of all the \"gravities\" acting on you which add up to 0.\n\nBut it's not as if we could actually test this. It's about 6367 km (3956 miles) to the center of the earth and there's a helluva lot of stuff to dig through to get there, not to mention the fact that the middle of our planet is crazy hot (estimated at around 4000° C /7230° F). As any geophysicist will tell you, gravity gets complicated when you go underground.\n\nPicture yourself standing pretty much anywhere on the earth's surface. We can describe the force of gravity that keeps you from flying off into space with a vector, an arrow pointing downward that represents both the direction of the force and how strong it is.", null, "A force like the force due to gravity, is often represented in diagrams by a simple arrow which indicates the direction in which the force acts.\n\nWhen you're underground, the force of gravity you experience as a result of being surrounded by earth can be described by a three-dimensional vector field that represents the total gravitational attraction from all the sources of mass that surround you. Vector fields are something a freshman physics student would probably only know about if they had taken a multivariable calculus class (which would be one or two semesters in the future for most students). There is no such thing as a quick lesson on vector fields... re-read this paragraph and you'll realize I really haven't told you anything about them except that they exist, so I suppose Professor X can be forgiven for not wanting to bring nasty old vector fields into our pleasant discussion of gravity law. I guess I can let him off the hook... for this at least.\n\nSources\n• Geodynamics: Applications of Continuum Physics to Geological Problems by Donald L. Turcotte & Gerald Schubert. ©1982, John Wiley & Sons, Inc.\n• Geophysical Methods in Geology, 2nd Ed. by P.V. Sharma. ©1986, Elsevier Science Publishing Co., Inc." ]
[ null, "https://2.bp.blogspot.com/_CnSUJiRChqA/TNFsmZISx-I/AAAAAAAAAJE/C6ALl4-1F3s/s400/xavier_costume2.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9683348,"math_prob":0.8994379,"size":6917,"snap":"2022-40-2023-06","text_gpt3_token_len":1482,"char_repetition_ratio":0.11688124,"word_repetition_ratio":0.23738627,"special_character_ratio":0.21555588,"punctuation_ratio":0.10007413,"nsfw_num_words":1,"has_unicode_error":false,"math_prob_llama3":0.9671886,"pos_list":[0,1,2],"im_url_duplicate_count":[null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-09-28T10:48:57Z\",\"WARC-Record-ID\":\"<urn:uuid:f57c908b-1e8e-411d-8663-0fa275b411fe>\",\"Content-Length\":\"68772\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f1cf1855-c346-44ba-869d-931a5a7369e7>\",\"WARC-Concurrent-To\":\"<urn:uuid:c49b2b6b-cf94-451d-8238-54c85902e524>\",\"WARC-IP-Address\":\"172.253.62.132\",\"WARC-Target-URI\":\"https://sciencekick.blogspot.com/2010/11/wrong-wrong-wrong.html\",\"WARC-Payload-Digest\":\"sha1:VGRN7SCBYW2DWD3NLVG6ZYXDZ4ZE6RMW\",\"WARC-Block-Digest\":\"sha1:M6WUI6D4GJNFCAGKCOZR355A7DQYBNBC\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030335190.45_warc_CC-MAIN-20220928082743-20220928112743-00205.warc.gz\"}"}
https://aspirantszone.com/reasoning-questions-based-on-data-sufficiency/
[ "# Reasoning: Data Sufficiency Set 29\n\n1. In each of the questions below consists of a question and two statements numbered a and b given below it. You have to decide whether the data provided in the statements are sufficient to answer the question. Read both the statements and give answer:\n\nSix friends Manish, Nitin, Ojasvee, Priyank, Queen and Risabh went to office in different days from Monday to Saturday of the same week but not necessarily in the same order. Who among the following went to office on Wednesday?\nSTATEMENTS:\na)Only one person went to office after Nitin. Two days gap between when Manish and Queen went to office.\nb)Priyank went to office after Nitin. Ojasvee went to office before the day Queen went to office. At least one day gap between the days when Manish and Risabh went to office.\n\nIf the data in statement a alone are sufficient to answer the question, while the data in statement b alone are not sufficient to answer the question\nIf the data in statement b alone are sufficient to answer the question, while the data in statement a alone are not sufficient to answer the question\nIf the data either in statement a alone or in statement b alone are sufficient to answer the question\nIf the data given in both statements a and b together are not sufficient to answer the question\nIf the data in both statements a and b together are necessary to answer the question.\nOption E\n\n2. Seven friends i.e. Akash, Bani, Ceom, Diksha, Elvish, Farah, and Garima are sitting in a row facing north but not necessarily in the same order. Who among the following sits 2nd to the right of Farah?\nSTATEMENTS:\na) Akash sits one of the extreme ends of the row. Three persons sit between Akash and Garima.\nb) Diksha sits immediate left of Garima. Two persons sit between Ceom and Farah. Elvish doesn’t sit at any of the extreme end.\nIf the data in statement a alone are sufficient to answer the question, while the data in statement b alone are not sufficient to answer the question\nIf the data in statement b alone are sufficient to answer the question, while the data in statement a alone are not sufficient to answer the question\nIf the data either in statement a alone or in statement b alone are sufficient to answer the question\nIf the data given in both statements a and b together are not sufficient to answer the question\nIf the data in both statements a and b together are necessary to answer the question.\nOption D\n\n3. Five persons Farooq, Garima, Heena , Kamini and Lokesh like different mobiles viz.Apple , Samsung , Lenovo , Redmi and Asus but not\nnecessarily in the same order. Find who among the following likes lenovo?\nSTATEMENTS:\na) Among Garima, Heena and Kamini no one like Samsung. Garima neither like Asus nor Redmi\nb) Heena is neither like Asus nor Lenovo. Kamini does not like lenovo.\nIf the data in statement a alone are sufficient to answer the question, while the data in statement b alone are not sufficient to answer the question\nIf the data in statement b alone are sufficient to answer the question, while the data in statement a alone are not sufficient to answer the question\nIf the data either in statement a alone or in statement b alone are sufficient to answer the question\nIf the data given in both statements a and b together are not sufficient to answer the question\nIf the data in both statements a and b together are necessary to answer the question.\nOption D\n\n4. In a certain code language How the word “Love” is coded?\nSTATEMENTS:\na) “money love fun common” is coded as “sd fr gr da” and “ransom jump love fun” is coded as “cg nb fr gr”\nb) “must ransom burden common” is coded as “tj pl da cg” and “wan fun house” is coded as “qs sw gr”\nIf the data in statement a alone are sufficient to answer the question, while the data in statement b alone are not sufficient to answer the question\nIf the data in statement b alone are sufficient to answer the question, while the data in statement a alone are not sufficient to answer the question\nIf the data either in statement a alone or in statement b alone are sufficient to answer the question\nIf the data given in both statements a and b together are not sufficient to answer the question\nIf the data in both statements a and b together are necessary to answer the question.\nOption E\n\n5. Six persons Priyal, Queen, Risabh, Srikant, Tanu, and Unnati are sitting in row according to their age in descending order from left to right but not necessarily in the same order. Find who among the following is 2nd youngest?\nSTATEMENTS:\na) At least two people are older than Tanu. Queen is older than Unnati but younger than Priyal.\nb) Srikant is older than Priyal but younger than Risabh. Priyal is younger than Tanu.\nIf the data in statement a alone are sufficient to answer the question, while the data in statement b alone are not sufficient to answer the question\nIf the data in statement b alone are sufficient to answer the question, while the data in statement a alone are not sufficient to answer the question\nIf the data either in statement a alone or in statement b alone are sufficient to answer the question\nIf the data given in both statements a and b together are not sufficient to answer the question\nIf the data in both statements a and b together are necessary to answer the question.\nOption E\n\n6. Each of the questions below consists of a question and two statements numbered a and b given below it. You have to decide whether the data provided in the statement are sufficient to answer the question. Read both the statements and give answer:\n\nWho sits immediate left of Manika, if all persons sit in a row are facing north?\na) Akansha sits third to the right of Nitin. There is only three persons sit between Nitin and Manika.\nb) Kamini sits second to the left of Manika. Not more than eight persons sit in a row.\n\nIf the data in statement a alone are sufficient to answer the question, while the data in statement b alone are not sufficient to answer the question.\nIf the data in statement b alone are sufficient to answer the question, while the data in statement a alone are not sufficient to answer the question.\nIf the data either in statement a alone or in statement b alone are sufficient to answer the question.\nIf the data even in both statements a and b together are not sufficient to answer the question.\nIf the data in both statement a and b together are necessary to answer the question.\nOption E\n\n7. Who amongst Priyank, Queen, Risabh, Srikant, Tanu and Unnati is the shortest person?\na)Risabh is taller than Srikant but shorter than only 2 persons. Queen is shorter than Priyank.\nb) Tanu is not as tall as Unnati who is not the tallest.\nIf the data in statement a alone are sufficient to answer the question, while the data in statement b alone are not sufficient to answer the question.\nIf the data in statement b alone are sufficient to answer the question, while the data in statement a alone are not sufficient to answer the question.\nIf the data either in statement a alone or in statement b alone are sufficient to answer the question.\nIf the data even in both statements a and b together are not sufficient to answer the question.\nIf the data in both statement a and b together are necessary to answer the question.\nOption D\n\n8. How is Av related to Bv?\na)Av has only two children. Cv is sister of Ev. Dv is father in law of Bv.\nb) Ev is husband of Bv. Av is married to Dv.\nIf the data in statement a alone are sufficient to answer the question, while the data in statement b alone are not sufficient to answer the question.\nIf the data in statement b alone are sufficient to answer the question, while the data in statement a alone are not sufficient to answer the question.\nIf the data either in statement a alone or in statement b alone are sufficient to answer the question.\nIf the data even in both statements a and b together are not sufficient to answer the question.\nIf the data in both statement a and b together are necessary to answer the question.\nOption E\n\n9. What is the code of ‘tommorrow’ in a certain code language?\na) ‘tommorrow burden summon’ is coded as ‘zq xr mz’ and ‘pistol tommorrow not’ is coded as ‘mz yq hn’\nb) ‘tommorrow fun sunk’ is coded as ‘xr mz zq’ and ‘ever sunk tommorrow’ is coded as ‘zq mz am’\nIf the data in statement a alone are sufficient to answer the question, while the data in statement b alone are not sufficient to answer the question.\nIf the data in statement b alone are sufficient to answer the question, while the data in statement a alone are not sufficient to answer the question.\nIf the data either in statement a alone or in statement b alone are sufficient to answer the question.\nIf the data even in both statements a and b together are not sufficient to answer the question.\nIf the data in both statement a and b together are necessary to answer the question.\nOption A\n\n10. Six students- Jc, Kc, Lc, Mc, Nc sitting in a row. Among them how many persons are facing to the north?\na)There are only two persons sit between Jc and Kc. Mc sits fourth to the left of Jc.\nb) Oc sits immediate left of Nc but not an immediate neighbour of Jc.\nIf the data in statement a alone are sufficient to answer the question, while the data in statement b alone are not sufficient to answer the question.\nIf the data in statement b alone are sufficient to answer the question, while the data in statement a alone are not sufficient to answer the question.\nIf the data either in statement a alone or in statement b alone are sufficient to answer the question.\nIf the data even in both statements a and b together are not sufficient to answer the question.\nIf the data in both statement a and b together are necessary to answer the question.\nOption D" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9194589,"math_prob":0.6651542,"size":9652,"snap":"2020-34-2020-40","text_gpt3_token_len":2113,"char_repetition_ratio":0.3553068,"word_repetition_ratio":0.63431543,"special_character_ratio":0.20171985,"punctuation_ratio":0.074384496,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9801454,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-01T08:37:54Z\",\"WARC-Record-ID\":\"<urn:uuid:58e50008-49c4-4e69-86e2-6d663f2eb804>\",\"Content-Length\":\"130399\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:dfa75b99-6d0e-44a1-907a-f0e14d1f7e7f>\",\"WARC-Concurrent-To\":\"<urn:uuid:aa5cab35-7050-410e-aa15-cbf6e1d00dc4>\",\"WARC-IP-Address\":\"104.31.91.195\",\"WARC-Target-URI\":\"https://aspirantszone.com/reasoning-questions-based-on-data-sufficiency/\",\"WARC-Payload-Digest\":\"sha1:TURJVZS7XXK4XPQSGLG2UUFPOIZB7WE3\",\"WARC-Block-Digest\":\"sha1:T4NA3TX5GLCXBL62GJTPELR7DGD732EB\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600402124756.81_warc_CC-MAIN-20201001062039-20201001092039-00174.warc.gz\"}"}
https://mathtuition88.com/2013/05/09/h2-maths-tuition-foot-of-perpendicular-from-point-to-line-part-ii/
[ "## H2 Maths Tuition: Foot of Perpendicular (from point to plane) (Part II)\n\nThis is a continuation from H2 Maths Tuition: Foot of Perpendicular (from point to line) (Part I).\n\n## Foot of Perpendicular (from point to plane)\n\nFrom point (B) to Plane (", null, "$p$)", null, "## Equation (I):\n\nWhere does F lie?\n\nF lies on the plane", null, "$p$.", null, "$\\overrightarrow{\\mathit{OF}}\\cdot \\mathbf{n}=d$\n\n## Equation (II):\n\nPerpendicular", null, "$\\overrightarrow{\\mathit{BF}}=k\\mathbf{n}$", null, "$\\overrightarrow{\\mathit{OF}}-\\overrightarrow{\\mathit{OB}}=k\\mathbf{n}$", null, "$\\overrightarrow{\\mathit{OF}}=k\\mathbf{n}+\\overrightarrow{OB}$\n\n## Final Step\n\nSubstitute Equation (II) into Equation (I) and solve for k.\n\n## Example\n\n[VJC 2010 P1Q8i]\n\nThe planes", null, "$\\Pi _{1}$ and", null, "$\\Pi _{2}$ have equations", null, "$\\mathbf{r\\cdot(i+j-k)}=6$ and", null, "$\\mathbf{r\\cdot(2i-4j+k)}=-12$ respectively. The point", null, "$A$  has position vector", null, "$\\mathbf{{9i-7j+5k}}$ .\n\n(i) Find the position vector of the foot of perpendicular from", null, "$A$ to", null, "$\\Pi _{2}$ .\n\n## Solution\n\nLet the foot of perpendicular be F.\n\n### Equation (I)", null, "$\\overrightarrow{\\mathit{OF}}\\cdot \\left(\\begin{matrix}2\\\\-4\\\\1\\end{matrix}\\right)=-12$\n\n### Equation (II)", null, "$\\overrightarrow{\\mathit{OF}}=k\\left(\\begin{matrix}2\\\\-4\\\\1\\end{matrix}\\right)+\\left(\\begin{matrix}9\\\\-7\\\\5\\end{matrix}\\right)=\\left(\\begin{matrix}2k+9\\\\-4k-7\\\\k+5\\end{matrix}\\right)$\n\nSubst. (II) into (I)", null, "$2(2k+9)-4(-4k-7)+(k+5)=-12$\n\nSolve for k,", null, "$k=-3$ .", null, "$\\overrightarrow{\\mathit{OF}}=\\left(\\begin{matrix}3\\\\5\\\\2\\end{matrix}\\right)$\n\n## H2 Maths Tuition\n\nIf you are looking for Maths Tuition, contact Mr Wu at:\n\nSMS: 98348087\n\nEmail: [email protected]", null, "" ]
[ null, "https://s0.wp.com/latex.php", null, "https://mathtuition88.files.wordpress.com/2013/05/vectorfoot-img2.png", null, "https://s0.wp.com/latex.php", null, "https://s0.wp.com/latex.php", null, "https://s0.wp.com/latex.php", null, "https://s0.wp.com/latex.php", null, "https://s0.wp.com/latex.php", null, "https://s0.wp.com/latex.php", null, "https://s0.wp.com/latex.php", null, "https://s0.wp.com/latex.php", null, "https://s0.wp.com/latex.php", null, "https://s0.wp.com/latex.php", null, "https://s0.wp.com/latex.php", null, "https://s0.wp.com/latex.php", null, "https://s0.wp.com/latex.php", null, "https://s0.wp.com/latex.php", null, "https://s0.wp.com/latex.php", null, "https://s0.wp.com/latex.php", null, "https://s0.wp.com/latex.php", null, "https://s0.wp.com/latex.php", null, "https://0.gravatar.com/avatar/f7133b9d7f511c9c866589ec1c51e0d4", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8229459,"math_prob":0.9998777,"size":801,"snap":"2019-43-2019-47","text_gpt3_token_len":215,"char_repetition_ratio":0.17565872,"word_repetition_ratio":0.029850746,"special_character_ratio":0.25842696,"punctuation_ratio":0.13071896,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000015,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"im_url_duplicate_count":[null,null,null,8,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-17T21:20:06Z\",\"WARC-Record-ID\":\"<urn:uuid:57ee5609-d66c-49ba-ad28-4091dfd8f057>\",\"Content-Length\":\"98227\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ab58e009-83fe-4cdc-a8db-191191933036>\",\"WARC-Concurrent-To\":\"<urn:uuid:53febb11-f426-4832-b0d3-1f399eadb070>\",\"WARC-IP-Address\":\"192.0.78.25\",\"WARC-Target-URI\":\"https://mathtuition88.com/2013/05/09/h2-maths-tuition-foot-of-perpendicular-from-point-to-line-part-ii/\",\"WARC-Payload-Digest\":\"sha1:6WDEG6IRKUPSSSW3JTTWJH4U7VGO7QWG\",\"WARC-Block-Digest\":\"sha1:7NMAASEXXE4GG6JIPKCE5TDXCMCB4RHS\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496669276.41_warc_CC-MAIN-20191117192728-20191117220728-00159.warc.gz\"}"}
https://mmp.susu.ru/article/en/341
[ "Volume 8, no. 2Pages 127 - 132\n\n# Computational Experiment for One Mathematical Model of Ion-acoustic Waves\n\nA.A. Zamyshlyaeva, A.S. Muravyev\nIn the article the mathematical model of ion-acoustic waves in a plasma in an external magnetic field is studied. This model can be reduced to a Cauchy problem for a Sobolev type equation of the fourth order with polynomially (A,p)-bounded operator pencil. Therefore abstract results on solvability of the Cauchy problem for such equation can be used. In the article a theorem on the unique solvability of the Cauchy - Dirichlet problem is mentioned. Based on the theoretical results there was developed an algorithm for the numerical solution of the problem, using a modified Galerkin method. The algorithm is implemented in Maple. The article includes description of this algorithm. It is illustrated by model examples showing the work of the developed program.\nFull text\nKeywords\nmathematical model; ion-acoustic waves; Galerkin method.\nReferences\n1. Zamyshlyaeva A.A. Lineynye uravneniya sobolevskogo tipa vysokogo poryadka [Linear Sobolev Type Equations of High Order]. Chelyabinsk, Publ. Center of the South Ural State University, 2012.\n2. Sveshnikov A.G., Al'shin A.B., Korpusov M.O., Pletner Yu.D. Lineynye i nelineynye uravneniya sobolevskogo tipa [Linear and Non-Linear Equations of Sobolev Type]. Moscow, FIZMATLIT, 2007.\n3. Zamyshlyaeva A.A. [Stochastic Mathematical Model of Ion-Acoustic Waves in a Plasma]. Estestvennye i tekhnicheskie nauki [Natural and Technical Sciences], 2013, no. 4, pp. 284-292. (in Russian)\n4. Zamyshlyaeva A.A. [A Mathematical Model of Ion-Acoustic Waves in a Plasma in a Magnetic Field]. Materialy mezhdunarodnoy konferentsii 'Voronezhskaya zimnyaya matematicheskaya shkola S.G. Kreyna - 2014', 2014, pp. 142-144. (in Russian)" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.79277885,"math_prob":0.7548533,"size":1811,"snap":"2023-14-2023-23","text_gpt3_token_len":510,"char_repetition_ratio":0.10293304,"word_repetition_ratio":0.022988506,"special_character_ratio":0.2252899,"punctuation_ratio":0.1871345,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9891712,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-06-04T07:04:18Z\",\"WARC-Record-ID\":\"<urn:uuid:de3e4384-5805-4a5c-a2fe-9e0278e20d4f>\",\"Content-Length\":\"4198\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:bfce13fc-644d-479c-8763-4f233d4ccb49>\",\"WARC-Concurrent-To\":\"<urn:uuid:c38f9941-f18f-4ea1-be4e-d822a23a3025>\",\"WARC-IP-Address\":\"37.75.250.13\",\"WARC-Target-URI\":\"https://mmp.susu.ru/article/en/341\",\"WARC-Payload-Digest\":\"sha1:VQULHRNC2ENODHCDSL2AC67QN7ETLGLK\",\"WARC-Block-Digest\":\"sha1:IX3CDNSPFCQE4GV3EYX5CQ5ZOG24GT63\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224649518.12_warc_CC-MAIN-20230604061300-20230604091300-00595.warc.gz\"}"}
https://www.codea.io/talk/discussion/3350/algorithm-for-coloring-a-line-based-on-its-length
[ "#### Howdy, Stranger!\n\nIt looks like you're new here. If you want to get involved, click one of these buttons!\n\n# Algorithm for coloring a line based on its length\n\nedited August 2013 Posts: 38\n\nI'm having trouble figuring out the math involved in changing a line's stroke color based on its variable length. The goal is that when the line gets shorter it will be gradually drawn red and when it gets longer it gradually draws blue. And there is a middle ground where in between shorter and longer it is just white. For example:\n\n``````-- line test\nsupportedOrientations(LANDSCAPE_ANY)\n\nfunction setup()\nparameter.integer( \"length\", 100, 600, 350 )\nparameter.watch( \"i\" )\n\nRED_MIN = 200\nRED_MAX = 100\nBLUE_MIN = 500\nBLUE_MAX = 600\nend\n\nfunction draw()\n\nif length <= RED_MIN then\n-- i = 255 - (255 * a value between 0 and 1, where 0 is f(length=RED_MIN) and 1 is f(length=RED_MAX)\nc = color(255, i, i, 255)\nelseif length >= BLUE_MIN then\n-- i = 255 - (255 * a value between 0 and 1, where 0 is f(length=BLUE_MIN) and 1 is f(length=BLUE_MAX)\nc = color(i, i, 255, 255)\nelse\nc = color(255,255,255,255)\nend\n\nbackground(40, 40, 50)\n\nstrokeWidth(5)\nstroke(c)\nline(70, HEIGHT/2, 70+length, HEIGHT/2)\nend\n\n``````\n\nThanks again guys!\n\nTagged:\n\n• Posts: 2,161\n``````function interp(l,m,n)\nreturn math.max(0,math.min(1,(l-m)/(n-m))\nend\n``````\n\ncall as `interp(length,RED_MIN,RED_MAX)` and you get out a number between 0 and 1 so that if `length` is in between then it is the correct proportion, but it is \"clamped\" to the end points in that it never goes below 0 or above 1.\n\n• Posts: 3,297\n\nCheck this:\n\n``````-- line test\nsupportedOrientations(LANDSCAPE_ANY)\n\nfunction setup()\nparameter.integer( \"length\", 100, 600, 350 )\nparameter.watch( \"i\" )\n\nRED_MIN = 200\nRED_MAX = 100\nBLUE_MIN = 500\nBLUE_MAX = 600\nend\n\nfunction draw()\nbackground(40, 40, 50)\nstrokeWidth(5)\nlocal r,g,b,i\nif length < RED_MAX then\nr,g,b = 255,0,0\nelseif length < RED_MIN then\ni = 255*(length-RED_MAX)/(RED_MIN-RED_MAX)\nr,g,b = 255,i,i\nelseif length < BLUE_MIN then\nr,g,b = 255,255,255\nelseif length < BLUE_MAX then\ni = 255*(length-BLUE_MAX)/(BLUE_MIN-BLUE_MAX)\nr,g,b = i,i,255\nelse\nr,g,b = 0,0,255\nend\nc = color(r,g,b,255)\nstroke(c)\nline(70, HEIGHT/2, 70+length, HEIGHT/2)\nend\n``````\n• Posts: 38\n\nExcellent solutions guys! Exactly what I was hoping for from this forum! Thanks so much!" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8522905,"math_prob":0.9967725,"size":1455,"snap":"2020-34-2020-40","text_gpt3_token_len":424,"char_repetition_ratio":0.10475534,"word_repetition_ratio":0.104417674,"special_character_ratio":0.31890035,"punctuation_ratio":0.12416107,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99668056,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-08-15T04:42:18Z\",\"WARC-Record-ID\":\"<urn:uuid:1b3006ac-cc2c-4b8e-9993-eaff57488386>\",\"Content-Length\":\"27092\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2e2bd3bf-6346-400e-821c-f638bdfe8942>\",\"WARC-Concurrent-To\":\"<urn:uuid:eae00d2a-22f2-448b-bb74-2241e220a765>\",\"WARC-IP-Address\":\"192.184.94.102\",\"WARC-Target-URI\":\"https://www.codea.io/talk/discussion/3350/algorithm-for-coloring-a-line-based-on-its-length\",\"WARC-Payload-Digest\":\"sha1:5I6OG3BCG2YTFJMTIIH3QEOWELPUHIP7\",\"WARC-Block-Digest\":\"sha1:VBUGFSMV5VI7RTP7RXRANMOMSAFSNSR3\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-34/CC-MAIN-2020-34_segments_1596439740679.96_warc_CC-MAIN-20200815035250-20200815065250-00494.warc.gz\"}"}
https://homework.cpm.org/category/CCI_CT/textbook/pc3/chapter/5/lesson/5.2.5/problem/5-124
[ "", null, "", null, "### Home > PC3 > Chapter 5 > Lesson 5.2.5 > Problem5-124\n\n5-124.\n\nSylvie needs to solve $\\cos(x)=−0.3$ on a math test. She knows that $\\cos^{−1}(x)$ is the inverse function for cosine, so she applies this function to both sides of the equation. This gives her $x=\\cos^{-1}(−0.3)\\approx1.875$. But when her test is returned, she learns she earned only partial credit on the problem.\n\n1. Why did Sylvie only get partial credit?\n\nThere are multiple solutions." ]
[ null, "https://homework.cpm.org/dist/7d633b3a30200de4995665c02bdda1b8.png", null, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAABDCAYAAABqbvfzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo5QzA0RUVFMzVFNDExMUU1QkFCNEYxREYyQTk4OEM5NCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo5QzA0RUVFNDVFNDExMUU1QkFCNEYxREYyQTk4OEM5NCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjlDMDRFRUUxNUU0MTExRTVCQUI0RjFERjJBOTg4Qzk0IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjlDMDRFRUUyNUU0MTExRTVCQUI0RjFERjJBOTg4Qzk0Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+RSTQtAAAG9JJREFUeNrsXQmYXEW1Pj09PVtmJjsBDGFXiCKKIBJ2REEQQdaARBBiFFRAnrIoyhqCgLwnEfEpPMAgggsGJG7w2MMuiuwkJDGQINmTycxklu62/r5/0ZWaur3M9GQCc/7vO1/fvrfuvXXr1q3/nFOnqhLZbFYUCoVCoVC8u1GlRaBQKBQKhRK6QqFQKBQKJXSFQqFQKBRK6AqFQqFQKJTQFQqFQqFQQlcoFAqFQqGErlAoFAqFonKoLveE2jM+uTHk+zNGjjZyj5EXqJhgQH3KyClGOo1MNbK2vzOSTWakbmWTjHp+69y2QqFQKBQW85+avvES+kaCKUaOMHK8kcWS9zQkjYzj9l1Gnuj3nCSykuxIaa1VKBQKxbvLQt9I0Gjk30YehtPA2d9tZJGRPYxs0++EnjCaRFe1NC4emSN2hUKhUCiU0MtDjZE3jRwXODaRhP5hI7f1ZyayVRmpWdMoqbb63LZCoVAoFAOFd2tQHHzcWxppChwbxt89+zsTWWOV161okkQ6oTVJoVAoFErovQA8C6OMjA0csy74nSXfn155GA6vXlcj9cuHqnWuUCgUCiX0XqDByOiIUnNu9ThCh/W+T79Z54bEa1c1SnVbjdnW/nOFQqFQKKGXi/cbeR+3Px44PtrZPrw/M1K/vDlSKxQKhUKhUEIvG/tK1IcO7CE9KXVn/v7ZyAFGNqm4dY6hautqpGZNg7rbFQqFQqGE3sv8gtDXOeTt9pMPN/Ixh9CNCS2HVJzQq7JSu3qIJDtTaqErFAqFQgm9FwBZY/z520ZWS9Sfvrdz/AjHeke6RyWaOa6iwJBzuNsTyuYKhUKhUELvFdAn/rREQ9NeN/KkkaN4bAQJ/x7+hy/8RhL+DpVk86p0taRadOy5QqFQKJTQe4NtSNog8aESzdf+RyOfolX+ZSMPSDRbHIBhbXcaaTcyuVKZQP95am2dVHelctsKhUKhUAxGQoeP+hoj1xu5yciFZZwLUv6NRIuwWMKeLdGscRdLFN3+O8lHuY800mbkdiOnSn7CmT4Sukj9imZJZHShOoVCoVAMXkLH/bBc2ywj5xg5wcjnSjgP4803owU+kvsQ8PaskYeMnGbkCu6vd44D15LMT6yIRmLUiZq19WqdKxQKhWJQE/q2Eo0hR7/3GCMLJFoGddciefymkR/zfyN/U7TO20niNhjOTizTwN9/GPmrkfMcsu+ddV6VkVR7nVS31mn/uUKhUCgGNaGDyP9l5F6J3OMdRr5n5FwjH4w55wwjrxj5G/+787dfQwsd/eZf5b46z1IHLqUicVLfzHOR6vYaqepOas1RKBQKxaAldIwXR7/3XIn6wVskcp+D4NEHfomRXbxzDpJorPkPnX2WsDHm/FEeQ/Db13j9as9CF6bDuPSLJLygS4xFns1Z4lYy1encdK+JjA5XUygUCsXgJfQvGblDIrc7VkI71sh2Rg418gKtdFjrdknUCUYmSdTX3u1c533O9uP8vZrKAYLfugKEDpwvkZv/nFIzjGj2mtUNuRnhILWrhkhVV1LXPlcoFArFRocNtR76YUbeMrKElvqJJGlMDvNFWta3GDmGFjf2wa89xchSI0NoqeM6n3KuO4q//5Ro7fPvS34WOZ/Q0ZeO6PoLmPblYpke8crmhtRr1198pSohmaT2nysUCoVi8BH6hySa8AWBaacbSUvUdw7vAJjyK0a+bmSakVVGWiVykSPgDUPVOmlZg/zv4q+d3rXOuQ/c9kdKNFY9ROjAd5nmBiN7SX4IXBCIZI/c7vlkiYS62xUKxYbH/KemayEoCqI/Xe4YKnYKyXO8kZslmhBmUyM/kshNjpXTrpNoARUExX2e5yVI7BCYwwh8m0kLf0vnHm7g22u00LMFCH0l8zSBaRUKhUKhUAvdA4aLoX97FxL19iTVZ0nMcHnDHf5Vh4hB1KOYbpGRtRJN07o/rfKmInm8yMhEEjWC69p4D1x/SMw5mF3uKp77dyN3azVQKBQKhRJ6HqMlH8X+iJHlsn4wW7kAIY+k9b41lYQPkPDx20zLf3zM+bDkEdmO/vUXjbxqZB6tfATGITjvVxK53v+uVUGhUCgUg4rQs15AWCL9jtf+TUrkMM86vyGgfzr3E9sn3WrObzWJFprtZ5z9uOHmRnYzcqCR/WJIHX3wB1GEOYGSgWC4xySKuMc1fm9kHyMLtTooFAqFYtAQet2yJvJxQjLVGelsbn9nnDb25Qg+QzLPRPSbSaZzc59Ho72iKPFkR7VUmbSZmgJGfO787DtR5bx+xlEefk/ixopqCKA7TOJd7Ql6EPaW/JKrrUyPceyH0HpXKBQKheK9T+gjX9jCsZWz0l3XJV2N7dLZtC43RrtueWN+nXCQfqpb2ke1SMfwVknXduUixhsXDZfGN0fkyD+TSsdb6WZ/d32ndAxtM+SfkM7GDllnrgXNAJO7MPocUfD/TxkvmcRZ5nqnSmkBf5b8ETX/oERD2u7UaqFQKBSK9zyh+y736vaUVLfVSMPbCE5ff4hXDu01UruqIWfNg5xxvHZ1Q2TVGx5PdhbOAqZaradXAOfAI9A+eo20jVljlIeGnMcAln7HsFbpauh8KV3XNaW7oeN2c+1rEunEeEPuXQVvkIAHAHnOol/+DpN+lsnYmWb/v8p1Xkjk1u/QaqVQKBSKjZ7QexB8jsCzBQZ0g+SjrVRrtG4KplB1jPBid3jnfCA3c1tLvQxZNCJH9u+wqSF2XCpd0w3Sv79t9JqPdA5vHZdOdVfB2x6arjVrlIzkulR2yOLmNnMcD5HoGtIxdN3IlrebFozOXb+HghKPL0i0UMxtWq0UCoVC8a4jdAJ907tLNIkMItPB2JgZDtHjz5DofHLEvdFv3SSFJ3gBE6+QaJz569ZDUN2Rst6CKl5naBb6QXcyR+5GMplU98PrRrQuXjt2ec6yr0onc3ey+WhcOFIaI8XgIJuPbFUmaxSOj1V1VafM9bHe+vz1lICsYf2wEgL3va7aolAoFIp3JaFjKVPMwY7JWjaPSYOo8usoLuCixpKoW5R4Lyzmgrnb/8fIn5z1yJO8TjThDAztZHQskU7OHvLvofvVL2/sXrPlMml934qc6z/VWifD5mwqtSuHIP0hhsBnradBGOKnsnCyT+gFACVG54RVKBQKxYCgLzPFYeKY+yUKJNu8QLodSbhYLrXZNXYlmgimVMCC/rREE8P8oKTrJLJ7GgI/VjJVMmzupjLipbHSvHCUjP77VjkyN6RdY6z1qYHz7FaXVhGFQqFQvJcJHdO3wqrdrYxzMIf6LVIZtzQmhil16taLDUE3od8ervjm18fkoutpgcOz8BGtBgqFQqEYrIR+JS30cnGERCupVQJYaAV99sVmo8MSrWfkTHlD4jkijyzwkfQuKBQKhUIxKAkds7JNjDn2N4lWTcPCK/MKWNcIT0/HHEcA3F8kWp0NU7c+GZMO1zi1xDz/l0TLtrr4tqy/trpCoVAoFO9a9CYoDv3YqcB+zNp2vOTHYWNd8wckmnvdBf7vIdHCLCE8Z+RgT+k4wciNJHEXmLK1toByYDGc1vgU/se88F/T169QKBSKwWyhfzSwL03L3J1U5d8S9XPPpcyhzCepJ0pUMtDZfatEAXg+xkq03Gop0eUnG9mV25dIFKGvUCgUCsWgtdBDEe1wky8I7P+NkT95+0DkiB6vr0D+s5JfBqYY4FU4z8i1Ro7ZCN8FFIzNJD+Gvz2QppZeiqxXnp0SnqEuxXJexzSFUMf0uG9cXEKC10tKgWV3nGtUM72ftkviZ9SrYV46me+4Z+qKKSMAK/8hRgLL8S6SwvMcWDQzvascJkuopwm+szYqyA2SH3kRum89v6EE33NrjKLdwLy0Ffh2G4qUg32uVon3YtWxXrWXUEd8FCqftTH765n3cuqEC7zXUczvGyW8W5TzFrwvFmda1k/5wn0wEqelQJ7qWX/XlHC9Jr6z9hLrr0LRKws9tPhJS4FKutaTFjbUcSQcIhO48vcP7F9sZHWJhA58zshvpW/D9SoNNFAIMkRXQ27yHInWkL+ADa2LqTyGCXv+6ciz9GLs7aWfxLT3s4GIAxq8x5n2oALpQCB38X7PeXlw5bNM/2mmfdY59jz/38HjPr7BfFwVk4ejeXxG4NhHeN2XJJr/AOWJlfWOK/IO7D0v8fbv4z0Xnvlv3vNAfsf07+exh6ic+cR5Ae9jPVbYvijwbhDvMZv32jMmz0fy/FsK1P+TmZ9rCjz7VF7nm72ou7vElAfK6RGWq0/4tzL9PwJ1Au/04zH3QnDrLyRaCvkVvtvZRd7tRL7/13gOzv2l9OwGRPndXCBfuO8nipSFfbffKpBmBtNMLXKtk5gOsUTDlKYU/WmhZ2MIvbNCefqQ00BmaG3tE9Nozab2HCLoNY5G7Fp3owNp0T0wpgzFoFLYjB6Mnfn/VeYRDc6lEi0aM9GxEDZhwybcZxeoBfHbYMVT2ABZLX8bCqam/WlMPr4i+eF7Q4rkGaMbtuS76QqUWcJpxOud/HY69cfm91iS6IWedY38xgUsDuXxVd7+/VlvhrNsXmR5oSG+nedMi7EyJ/P4ZCoSqx2PyFjHE5Ry6ppb31c639P2tIirPCX4VxKtBgjMo/W1PZ/9Uzy2wrnODvRWYA6HCQEr3JbDigIWHIJGtyWxX0GPgA+U89Ysq3JRRyXGWrJZx1BA3vYyciiVsLWO8rgd03YG6vBRVODvcu6D7+MevosMFTYowntQcPw7Xt6+4xDnElrmyOsJLG8onU85dXIrJ1+2TXHzdQzzNTNG0Z1MRWwyvYAhq34sy+Ub/BbfiCnT8/jemjYy40PxHrTQQ+iqoFtoNK2PI9kQ7BtDtLDkf+6QiA806D8q4X7PsdFMDED5X83GaIFEa7uPpxxPUsAwv9O9cgZ+xgZ/R/4iNuA2ktN0yc++57pZz2BjEfIQuKMFisUjWCI7xcmDK+PZ+LrXQgO8k5Nmd8fC/j6f3ffQxE3qkw4QKkj8Jv7+kff6MJXDHzLNZVSQfNgpi4VKneuheJjPY8t5MvfPoQJkn/dwrx52eN/Dt0jYq1incc4H+X6XkbAv9JTmDsfrcEGJ5eBiJz4b0OwoE6FvN84zVgz2/UKp2I1ltAOf78tU9A/y6rDN77leHd6dym09CXGYo1TdSDKczfLYieV3GdOc79WhfRwyv5RpbZ14gG3M9Z4HzObrvJh81Xn58pXJcY6XZq8i3w6I+rSYNJ93PAgdou52xQAQ+kBgKt1icV6GIbRKFhS5DhqDtwcg/2igPsftMyVa/jXDjxgW5ZU8dnbAbbmazzWPv3B7TqIS00wLxMeOtH58wHrbtBf5X+TkwZW5bMh90niNx+fTMsJ8BLMc5aAv+CS9Bkv4PHNYlktIpo+wrp8ZOHcij83l/0nOsTbut+X8hkN+9nlej7G0xCGkE7l9Cb0IHSyTu0ggQqKPc69+m5ZoOTiGHoV5zO+kfqzLackHvM7n9g2S78I4WnpOKLXUq8OoEyfxnYEcd2G63aiItbKePM93i/7w7xm5m+lOdK5tn/XPVBiX8ZyX6alq4/UPCTwL7v8vL1+TuB+KcqhLwN77Nf6eUEKZTQ54C1EPz1JaUgw0oW/oRUlg2V5cJE2t89HH4T5q300DUPZoHBpp3TweOD6dpPftwHtKxlhLL3M7zl39TU8Bgqvwq45VWA7K6a6B5VoT2P9bx5rsSx3awfG2LA0cn0Kiv9Xb30yLKMuyWUhLb8uY+6Sc56ktMW9Qlmx/+gOB4w+R3DeR9fvdq0g8C3jfH5dxT6Q71lEGXqVC8MF+qstx5fG04wWqLaH+LCVxAkMdi1eoWL0WOOde/m7r7NveO+biLXrAzohRxEL5Wu7UK1/p2oyKwTpes4WK+ogSPJH+PBoHSnwMgULRL4Qeck03SnhseiXRzgbxMDZSxQjIRr+jEX8wcBxW0jkFnqm/Yee1XynhaG7sn0Fr3Y+E7o7xSNh+8IXesQdo2XzMs0pgOW1HC/8fZea/EjETbzl5b+jDdWwjG+dpQUAUgsf+GmhA4SlBlwC6CeBih2v1iAq+5yaSWafk+9r9et1CIqnzvrMsLbZVtCi/U+I94fL9AOsBvAD3U2Hqr9EdWQlH2u/rELVfx0PR+weQjLO08oHhzjUk5juxdci2aU1F6sPdVJifCRwL5etAyceCvOwd+yy/ZVjyCGJDtwCi8A8t0Hb+kt/w1x3FxSrcwEyJjw1SKCpiZbkNUKjRapJ8UE9fAGviSoeQYXku4wf+ai8UljQVgNmelfgTiSJJB7rsu6T8/stNaNW6VuC32OgsCxAXgv4w8c+1THc3G3jr3kMU9GllNN7AFWwwk16D9b2YhlJilCrrceiLhZ4sUDcLwbpGf+80pCdy/3SpzOp5SckPLQzFBXQ7+xMBJe0JiVzXeEfnUvF4usg9j3eIK81fBGIhIvxyqVwAq1uXMT/FWueZP8P8WgLzyxJW7OZMm6FX5EQqP4gHedF7t+uKKJZJpwxD9WFXfjdZJ13I6j/Cy9dYenf8fPllfadThw5mHZoRk2d8n2OoKEyi9wWWOUZ9wN3/fxLFZWj/uaLfCT2k9Q7nR+AT+v5s4NNO5QSp3sCPI4TFrNCVBAgGQTBnOhbs1AEue7dhKddDcDLFByL7vyw9o5mHsnFBfy2Gtu1GBeyjtDhmUukpB3EL8/y0DEJ3yyJbobIsFWioD2KjbUdVII5hCZ9tl148R2/ec7H3D+/Xj0jGu7Px372AEjhC8gFwv+bvoxL1Ce9A6/3+CtdlfP+PxRybwW/Px3HSc8hZG7/9s5xyK/ZuE166uHNQhhO8c690lA6LYwKeDHjIEIB7tqeYjGd5tku+L38W0+9PBXtujBJyNQkdVvr/UuGCAYKA1/kyMF5DxSAk9BcC+6C9fs2z8rDvssBHBFxVwPqp7qdnRV6OYkOOhV2WD3DZ9+WDfZtKSZKNACwjuPxulsi1HipTuG2voyJzjuOt+G82pMky84358Z+UvFswUaB+FPKgDFRZHk6yhJvddjesIrmfxkb9mQrlLdGH57CW4mkkzY+TBBbFXOMztEThfXrEsW7RdQOX/cR+IPRuWq7dfKcZEtmdjlLhA11hiB9AVx2i4D9EMjy1l+82UeQcxGu8QuPCkm1XgXwlWc7IF0ZOTAmktYGHs0jCwJtMj2NHSj641QW6l+5gvUM3GQJz0RXWQkLfSqlJsaEI/a8kR/+jQXAV+o7gEkRf4BdjyBxE9KCEg6T6E8v4cR0vPYOjBgJtzsddI4XXhk94FsgvJN//Xw5gZaCf7mj+XyDR+OjeAIQxu49lYPu+OyTvUrWKRZzClw4oA+scS7FURcK6SuGh2JPfQkbyoyKg/F1c5L2Ugg5aZPUSjhOwM9+JxA/Vs+WNbo6LJBri9ouYdLYb4SXvuawCcBjLaWUF6/JKWqpryzgHwai3OSQICxf90RjG+ZyTrt3xMoUwxClnW286vPplFVeLmwsQ+h+db+JNtmeH0ZvldtHVOJb8K3z+JOuntcqhPP1Qes7SZ2daRJ5ukXyA73S2Ux9QalL0Br2xkBBA9ZeYY0fzY/lpDJkDP6FLKjUAz3ujQ2YDjVX8qEfHNFZoQOACnik9I2t7a9kulfUnl7mOjXBvrldXgTKw0elLnEbYTuoyJuacTZ3ycz0WwLiYc6ZQibya/3eSfDQxJtV5lMdhrf+A+xE1vW8FnnEFSQllHJo2eRRJqU16Dvfzgbw9zXNs95Gr6CHP+3H7C95zXeeU38H94G0q1zho8Ej0CSo2/ph7G/W+eUybMc6rD1lHWdk65t7betcOKQhW6XhM8rP8uXBHDZxHb8iD/D2f+6Gc7FqgDOyshlYpvVYpSbGhCd0O8elNANzj1EIH0ipevJGU/Rx6K+okP3TMfS/Q2g8gma8ONKC9xfW0gEAMN/XhOi1lpE1Lz0AsDEeyE7Xc5+x/mL8TAoQKIjuJ2+5qfU84SpAfXTyWFu2+TkNvXaVv0Br7jSP4/6pDin3FUsfiDAUens73PUcKj2e3jf43aFmGukg+T6JEEOTtged6vsBztffxOftSJ9P0PgBwU3/CMyDWkZxPCNSHL3h1QBzP0XHSc6w3vAC7sx17rEi+YO3b2QWP8IwU6+GZS0+DW9b4P9/zBMV5by6nV+g6Cfe3KxQlo7f91a+wgt9awCoKWfbHSt9dmO8VrGUjdj01fFikGGJUS9I6hA3Kd6Uy0dYWi9lgurOR9QYns4FLBOoUvAovelb1+ZJ3PW5FTwkaW7g1f+aR80zWL/R7wmWJvkaMrf86FYGF9LZYPMWG9Bg2pldTYRlH5RPW3WtsNF1X6eUSng4XZT+Lv2OkbxMPZfme9yPBQIGzUd/HOXkBcZQy2uFJWuoXBAh1IrevlfA0txNIdgfwHSxwjkHhCc15kKLy9Eg/fw/38N1/gs/2WYcwf05FBvVkRyp9GP+Ncd8Y5vaW5GeNBG6gVwZu9XtZHkizN89JUZl9roR8WSt9Ar/FQ6lkH+5Y578LnIeI/RlUsnBea8z1URf+UKaCrFBUlNCFHzg+kMvYKMW5YGHJ3yzR0JvVXgPUHEhf7rKmdpUjH0PLuEbcilH93c8PMkFUMmaz+hLFAtbk2bJ+P7V1B5Y6ZrsupkxDQ4CaS3hmt6xPLZBuCQndXmszkqePZ+ideMuziibz3EMCxPQyFZ63A+ckaeH5i6y8SOsObtmjqBRkJD9TnY+H+Qyb0AK8xiub5hiLtNqpey4xoovqFF7ncIcMrKcDBHaHsy/pvOOQJY5vDv26OzvvAwqDndp2ZsxzQcnBzHbbsq5d6NxnP8m7631MjyF06wIfVoa3z9az2oCVPo1K7aFU6OxznMO6jzI8V9aPTH+ZyqXr3XiLRHozy+hG716/ooLgoqlIvv7A+ngg68WmrE9xAYb30usxjnVyRoF7rIkp16GiY9EVG4jQhZYSgt8QbIbpRnciQWXo9kODfZ/0nOjEupum8eNIO/mZ1wt33Q9oSaWdRnCJlD4U6kESjjseGNd4dgO8g8tpBdg5vrtpOaCBn+OlvZ3l83AZStc0elSKWZFX0QouZLV08nqjC3gNkpJ3f2Jq3qmyflBQgiSGYw9IeEz0clpoIL6DmS8ohugT/rX07IKwjeJRJDpEem9BpegR75x2PkMhFze8J6eTIBd75DGNhNEZ4/24hPfw83gTlbOJJJkEy+D2wPtZRpJHw7405tuBBXi8971cwW8t7n2jfqPvfU/nPFiIr0p+oZQQad8Xc715VC7WluF5g7W8jazvIreAgnUWyTLlKaCnsqxQJ7Zk+T7EfS0xyuIEltFeJMc3SMx/jsnXdgXydSYV03rWtWl8f3HBhVA4v0KPwhpHMYIy9XiRMprH72ZlActeoehpcWWz5Q3/3WrX0wZ7kUmiKjjC62w25NdrtVIoFJXG/KemayEo+tVCH3x0noiN/XlaCg87UigUCoVi47HQFQqFQqFQbHzQgAuFQqFQKJTQFQqFQqFQKKErFAqFQqGoCP4jwADQNvw20jA5ogAAAABJRU5ErkJggg==", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9361875,"math_prob":0.9973829,"size":321,"snap":"2022-05-2022-21","text_gpt3_token_len":84,"char_repetition_ratio":0.119873814,"word_repetition_ratio":0.0,"special_character_ratio":0.26168224,"punctuation_ratio":0.13636364,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98161674,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-27T12:38:29Z\",\"WARC-Record-ID\":\"<urn:uuid:118ddc97-112a-4d9a-9502-9e437c30ad09>\",\"Content-Length\":\"34483\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7b4ae018-5343-4235-8c89-93e9fe8aeb6b>\",\"WARC-Concurrent-To\":\"<urn:uuid:a6127cf0-d072-4c6f-868e-3dd073d4342e>\",\"WARC-IP-Address\":\"104.26.6.16\",\"WARC-Target-URI\":\"https://homework.cpm.org/category/CCI_CT/textbook/pc3/chapter/5/lesson/5.2.5/problem/5-124\",\"WARC-Payload-Digest\":\"sha1:BZJU6AFUJVBKMK4FPYJQ46RJQHTMUMYE\",\"WARC-Block-Digest\":\"sha1:QXPG2WK75QTKIQDGPDTVR3WHBEERPFQB\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662647086.91_warc_CC-MAIN-20220527112418-20220527142418-00043.warc.gz\"}"}
https://calcpercentage.com/what-is-449-percent-of-90
[ "# PercentageCalculator, What is 449% of 90?\n\n## What is 449 percent of 90? 449% of 90 is equal to 404.1\n\n%\n\n### How to Calculate 449 Percent of 90?\n\n• F\n\nFormula\n\n(449 ÷ 100) x 90 = 404.1\n\n• 1\n\nConvert percent to decimal\n\n449% to decimal is 449 ÷ 100 = 4.49\n\n• 2\n\nMultiply the decimal number with the second number\n\n4.49 x 90 = 404.1\n\n#### Example\n\nFor example, John needs 449 percent of the shares to be in power. The number of shares is 90. How many shares does John need to buy? What is 449 percent of 90? 449 percent to decimal is equal 449 / 100 = 4.49 4.49 x 90 = 404.1 so John need to buy 404.1 shares" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.89326805,"math_prob":0.99619347,"size":424,"snap":"2022-27-2022-33","text_gpt3_token_len":142,"char_repetition_ratio":0.15714286,"word_repetition_ratio":0.023255814,"special_character_ratio":0.4268868,"punctuation_ratio":0.1262136,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99951386,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-06-28T14:48:17Z\",\"WARC-Record-ID\":\"<urn:uuid:762e3dba-957b-4ec0-b52a-be7d5767a639>\",\"Content-Length\":\"11927\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:fe909998-5247-4026-8970-d079ee483290>\",\"WARC-Concurrent-To\":\"<urn:uuid:e0db7e92-2a98-43a4-a61d-ecfc10ce7f36>\",\"WARC-IP-Address\":\"76.76.21.9\",\"WARC-Target-URI\":\"https://calcpercentage.com/what-is-449-percent-of-90\",\"WARC-Payload-Digest\":\"sha1:UXZKP4F3XFCCSZBICV6PZQGHJY3PHCEE\",\"WARC-Block-Digest\":\"sha1:GCD76CVAG2YMU3XFOI7UJ5HK6TOQW2HK\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656103556871.29_warc_CC-MAIN-20220628142305-20220628172305-00058.warc.gz\"}"}
http://euler.stephan-brumme.com/279/
[ "<< problem 278 - Linear Combinations of Semiprimes", null, "Ant and seeds - problem 280 >>\n\n# Problem 279: Triangles with integral sides and an integral angle\n\nHow many triangles are there with integral sides, at least one integral angle (measured in degrees), and a perimeter that does not exceed 10^8 ?\n\n# My Algorithm\n\nNiven's theorem (see en.wikipedia.org/wiki/Niven's_theorem) states that for rational angles sin(alpha) the only rational values are \\{ 0, +1/2, -1/2, +1, -1 \\}.\nSince sin(90 + alpha) = cos(alpha) this theorem can be applied to cos(alpha), too.\n\nThus only 3 angles can be part of a valid triangle:\n(1) cos( 60) = +1/2\n(2) cos( 90) = 0\n(3) cos(120) = -1/2\n\nEach triangle satisfies (see en.wikipedia.org/wiki/Law_of_cosines):\n(4) c^2 = a^2 + b^2 - 2ab cos(gamma)\n\nIf gamma = 60 then (4) can be simplified to\n(5) c^2 = a^2 + b^2 - ab\n\nIf gamma = 90 then (4) can be simplified to\n(6) c^2 = a^2 + b^2\n\nIf gamma = 120 then (4) can be simplified to\n(7) c^2 = a^2 + b^2 + ab.\n\nThese equations have their own Wikipedia pages, too: en.wikipedia.org/wiki/Eisenstein_triple and en.wikipedia.org/wiki/Pythagorean_triple .\nBut more interesting is en.wikipedia.org/wiki/Integer_triangle which gives away nice formulas to generate all such triangles.\nThe formulas need two variables m and n where 0 < n < m.\n\nThe case cos(60) boils down to:\na = m^2 - mn + n^2\nb = 2mn - n^2\nc = m^2 - n^2\n\nI solved cos(90) in problem 75 (see en.wikipedia.org/wiki/Pythagorean_triple):\na = m^2 - n^2\nb = 2mn\nc = m^2 + n^2\n\nAnd finally cos(120):\na = m^2 + mn + n^2\nb = 2mn + n^2\nc = m^2 - n^2\n\nThe triples (a,b,c) are not necessarily basic triples - but their greatest common divisor is always either 1 or 3.\nNow I have all the tools to generate all basic triples. Those basic triples and all their multiples are solutions.\nThere are 10^8 / perimeter multiples of each basic triples which satisfy the condition that the perimeter must not exceed 10^8.\n\nThe functions search60(), search90() and search120() implement each set of equations for 60, 90 and 120.\n\n## Note\n\nFortunately I didn't find a triangle with angles 60 + 90 + 30 and integer sides.\nIf there were any, I would have needed to avoid double-counting (as they would be counted as 60 and 90 separately).\n\nSince today is my lucky day, I added a few OpenMP pragmas which reduce the execution time from 4 to less than 1 second on my computer (enable #define PARALLEL).\n\n# Interactive test\n\nYou can submit your own input to my program and it will be instantly processed at my server:\n\nInput data (separated by spaces or newlines):\n\nThis is equivalent to\necho 100 | ./279\n\nOutput:\n\nNote: the original problem's input 100000000 cannot be entered\nbecause just copying results is a soft skill reserved for idiots.\n\n(this interactive test is still under development, computations will be aborted after one second)\n\n# My code\n\n… was written in C++11 and can be compiled with G++, Clang++, Visual C++. You can download it, too. Or just jump to my GitHub repository.\n\n #include <iostream>\n#include <cmath>\n\n#define PARALLEL\nconst auto numCores = 8; // 4 = four cores, 8 = eight cores, etc.\n\n// ---------- code copied from my toolbox ----------\n\n// find greatest common divisor\ntemplate <typename T>\nT gcd(T a, T b)\n{\nwhile (a != 0)\n{\nT c = a;\na = b % a;\nb = c;\n}\nreturn b;\n}\n\n// ---------- problem-specific code ----------\n\n// 90 degrees (based on code from problem 75)\nunsigned int search90(unsigned int limit)\n{\nunsigned int result = 0;\n\nunsigned int last = sqrt(limit / 2);\n#ifdef PARALLEL\n#pragma omp parallel for num_threads(numCores) reduction(+:result) schedule(dynamic)\n#endif\nfor (unsigned int m = 2; m < last; m++)\nfor (unsigned int n = (m & 1) + 1; n < m; n += 2) // m + n must be odd\n{\n// only valid m and n\nif (gcd(m, n) != 1)\ncontinue;\n\n// compute basic triplet\nauto a = m*m - n*n;\nauto b = 2*m*n;\nauto c = m*m + n*n;\n\n// too large ?\nauto sum = a + b + c;\nif (sum > limit)\nbreak;\n\n// all its multiples are valid, too\nauto numMultiples = limit / sum;\nresult += numMultiples;\n}\n\nreturn result;\n}\n\n// 60 degrees\nunsigned int search60(unsigned int limit)\n{\nunsigned int last = sqrt(limit*3/2);\nunsigned int result = 0;\n#ifdef PARALLEL\n#pragma omp parallel for num_threads(numCores) reduction(+:result) schedule(dynamic)\n#endif\nfor (unsigned int m = 2; m < last; m++)\nfor (unsigned int n = 1; 2*n <= m; n++)\n{\n// only valid m and n\nif (gcd(m, n) != 1)\ncontinue;\n\n// compute next triplet\nauto a = m*m - m*n + n*n;\nauto b = 2*m*n - n*n;\nauto c = m*m - n*n;\n\nauto sum = a + b + c;\n// divide by their greatest common divisor to get the basic triplet\n// gcd(a,b,c) is either 1 or 3\nif (a % 3 == 0 && b % 3 == 0 && c % 3 == 0)\nsum /= 3;\nif (sum > 3*limit)\nbreak;\n\nif (sum <= limit)\n{\n// all its multiples are valid, too\nauto numMultiples = limit / sum;\nresult += numMultiples;\n}\n}\n\nreturn result;\n}\n\n// 120 degrees\nunsigned int search120(unsigned int limit)\n{\nunsigned int result = 0;\n\nunsigned int last = sqrt(limit*3/2);\n#ifdef PARALLEL\n#pragma omp parallel for num_threads(numCores) reduction(+:result) schedule(dynamic)\n#endif\nfor (unsigned int m = 2; m < last; m++)\nfor (unsigned int n = 1; 2*n <= m; n++)\n{\n// only valid m and n\nif (gcd(m, n) != 1)\ncontinue;\n\n// compute next triplet\nauto a = m*m + m*n + n*n;\nauto b = 2*m*n + n*n;\nauto c = m*m - n*n;\n\n// skip mirrored triangles\nif (b > c)\nbreak;\n// note: a is always the longest side\n\nauto sum = a + b + c;\n// divide by their greatest common divisor to get the basic triplet\n// gcd(a,b,c) is either 1 or 3\nif (a % 3 == 0 && b % 3 == 0 && c % 3 == 0)\nsum /= 3;\nif (sum > 3*limit)\nbreak;\n\n// all its multiples are valid, too\nauto numMultiples = limit / sum;\nresult += numMultiples;\n}\n\nreturn result;\n}\n\nint main()\n{\nunsigned int limit = 100000000;\nstd::cin >> limit;\n\nauto num60 = search60 (limit);\nauto num90 = search90 (limit);\nauto num120 = search120(limit);\n\nauto result = num60 + num90 + num120;\nstd::cout << result << std::endl;\nreturn 0;\n}\n\n\nThis solution contains 25 empty lines, 22 comments and 12 preprocessor commands.\n\n# Benchmark\n\nThe correct solution to the original Project Euler problem was found in 3.9 seconds.\nThe code can be accelerated with OpenMP but the timings refer to the single-threaded version on an Intel® Core™ i7-2600K CPU @ 3.40GHz.\n(compiled for x86_64 / Linux, GCC flags: -O3 -march=native -fno-exceptions -fno-rtti -std=gnu++11 -DORIGINAL)\n\nSee here for a comparison of all solutions.\n\nNote: interactive tests run on a weaker (=slower) computer. Some interactive tests are compiled without -DORIGINAL.\n\n# Changelog\n\nDecember 27, 2017 submitted solution\n\n# Difficulty\n\nProject Euler ranks this problem at 60% (out of 100%).\n\n# Heatmap\n\nPlease click on a problem's number to open my solution to that problem:\n\n green solutions solve the original Project Euler problem and have a perfect score of 100% at Hackerrank, too yellow solutions score less than 100% at Hackerrank (but still solve the original problem easily) gray problems are already solved but I haven't published my solution yet blue solutions are relevant for Project Euler only: there wasn't a Hackerrank version of it (at the time I solved it) or it differed too much orange problems are solved but exceed the time limit of one minute or the memory limit of 256 MByte red problems are not solved yet but I wrote a simulation to approximate the result or verified at least the given example - usually I sketched a few ideas, too black problems are solved but access to the solution is blocked for a few days until the next problem is published [new] the flashing problem is the one I solved most recently\n\nI stopped working on Project Euler problems around the time they released 617.\n 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100\n 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200\n 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300\n 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400\n 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500\n 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600\n 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708\nThe 310 solved problems (that's level 12) had an average difficulty of 32.6% at Project Euler and\nI scored 13526 points (out of 15700 possible points, top rank was 17 out of ≈60000 in August 2017) at Hackerrank's Project Euler+.\n\nMy username at Project Euler is stephanbrumme while it's stbrumme at Hackerrank.\n\nLook at my progress and performance pages to get more details.\n\n << problem 278 - Linear Combinations of Semiprimes", null, "Ant and seeds - problem 280 >>\nmore about me can be found on my homepage, especially in my coding blog.\nsome names mentioned on this site may be trademarks of their respective owners.\nthanks to the KaTeX team for their great typesetting library !" ]
[ null, "https://projecteuler.net/profile/stephanbrumme.png", null, "https://projecteuler.net/profile/stephanbrumme.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6785877,"math_prob":0.9711925,"size":12437,"snap":"2020-34-2020-40","text_gpt3_token_len":3929,"char_repetition_ratio":0.09233492,"word_repetition_ratio":0.15391229,"special_character_ratio":0.5036584,"punctuation_ratio":0.07813765,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9728593,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-08-14T07:38:29Z\",\"WARC-Record-ID\":\"<urn:uuid:21937c7d-4cd0-4f3e-baed-718b50278369>\",\"Content-Length\":\"98500\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f765c85a-a127-4689-9a65-f5d17644e3bb>\",\"WARC-Concurrent-To\":\"<urn:uuid:7213f0b7-3a3a-4a5c-b9b8-6b61e0577733>\",\"WARC-IP-Address\":\"217.160.0.76\",\"WARC-Target-URI\":\"http://euler.stephan-brumme.com/279/\",\"WARC-Payload-Digest\":\"sha1:XFTJHKNIO5GYXRJUS3MA3BZHZIRVTJEL\",\"WARC-Block-Digest\":\"sha1:MPEG5S4JJEPPHQE2FPFBTTPFCQKVPRGI\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-34/CC-MAIN-2020-34_segments_1596439739182.35_warc_CC-MAIN-20200814070558-20200814100558-00069.warc.gz\"}"}
https://codeforces.com/topic/22406/diff/en3/en4
[ "Counting Divisors of a Number in $O(N^{\\frac{1}{3}})$  [tutorial]\nDifference between en3 and en4, changed 168 character(s)\n\n**Topic** : Counting Divisors of a Number↵\n\n**Pre Requisites** : Basic Maths , $O(\\sqrt[]N)$ Factorisation , Primality testing↵\n\n**Motivation Problem** :↵\n\nThere are $T$ test cases. Each test case contains a number $N$. For each test case , output the number of factors of $N$.↵\n\n$1 <= T <= 10$↵\n\n$1 <= N <= 10^{18}$↵\n\n_Note_ : $1$ and $N$ are also treated as factors of the number $N$.↵\n\n**Solution** :↵\n\n**Naive Solution** &mdash; _$O(\\sqrt[]N)$ Factorisation_↵\n\nThe most naive solution here is to do the $O(\\sqrt[]N)$ factorisation. But as we can see, it will surely receive the Time Limit Exceeded verdict. You may try to compute the prime numbers till required range and loop over them , but that too exceeds the usual limit of $10^8$ operations. Some optimisations and heuristics may allow you to squeeze through your solution, but usually at the cost of a few TLE's.↵\n\nSupposing you fit in the above description and cannot think of anything better than the naive solution, I would like to present to you a very simple algorithm which helps you count the number of divisors in $O(N^{\\frac{1}{3}})$, which would be useful for this kind of questions.\n**This algorithm only gives us the count of factors, and not the factors itself.**\n\nFirstly, let's do a quick recap of how we obtain the $O(\\sqrt[]N)$ algorithm for any number $N$ :↵\n\nWe write $N$ as product of two numbers $P$ and $Q$.↵\n\n$P*Q = N , where \\hspace{1mm} P <= Q$↵\n\n$Maximum \\hspace{1mm} value \\hspace{1mm} of \\hspace{1mm} P = \\sqrt[]{N}$↵\n\nLooping over all values of $P$ gives us the count of factors of $N$.↵\n\nBefore you move forward to the next section, it would be useful if you try to come up with an algorithm that finds the\ncount of factors in $O(N^{\\frac{1}{3}})$. As a hint, the way of thinking is same as that of getting to the $O(\\sqrt[]N)$ algorithm.↵\n<br/><br/>↵\n\nCounting factors in $\\mathbf{O(N^{\\frac{1}{3}})}$ Factorisation\n-------------------------------------------↵\n\nLet's start off with some maths to reduce our $O(\\sqrt[]N)$ factorisation to $O(N^{\\frac{1}{3}})$\nfor counting factors :↵\n\nWe write $N$ as product of three numbers $P$, $Q$ and $R$.↵\n\n$P*Q*R = N , where \\hspace{1mm} P <= Q <= R$↵\n\n$Maximum \\hspace{1mm} value \\hspace{1mm} of \\hspace{1mm} P = N^{\\frac{1}{3}}$↵\n\nWe can loop over all prime numbers in range $[2,N^{\\frac{1}{3}}]$ and try to reduce $N$ to it's prime factorisation, which would help us count the number of factors of $N$.↵\n\nTo know how to calculate divisors using prime factorisation, [click here](http://mathschallenge.net/library/number/number_of_divisors).↵\n\nWe will split our number $N$ into two numbers $X$ and $Y$ such that $X*Y=N$. Further, $X$ contains only prime factors in range $[2,N^{\\frac{1}{3}}]$ and $Y$ deals with higher prime factors ($> N^{\\frac{1}{3}}$). Thus, gcd($X$ , $Y$) = 1. Let the count of divisors of a number $N$ be denoted by the function $F(N)$. It is easy to prove that this function is multiplicative in nature, i.e., $F(m*n) = F(m)*F(n)$, if gcd($M$,$N$) = 1. So, if we can find $F(X)$ and $F(Y)$, we can also find $F(X*Y)$ or $F(N)$ which is the required quantity.↵\n\nFor finding $F(X)$, we use the naive trial division to prime factorise $X$ and calculate the number of factors. Once this is done, we have $Y=N/X$ remaining to be factorised. This may look tough, but we can see that there are only three cases which will cover all possibilities of $Y$ :↵\n\n1. **$\\mathbf{Y}$ is a prime number** : $F(Y)$ = $2$.↵\n2. **$\\mathbf{Y}$ is square of a prime number** : $F(Y)$ = $3$.↵\n3. **$\\mathbf{Y}$ is product of two distinct prime numbers** : $F(Y)$ = $4$.↵\n\nWe have only these three cases since there can be at max two prime factors of $Y$. If it would have had more than two prime factors, one of them would surely have been $<= N^{\\frac{1}{3}}$, and hence it would be included in $X$ and not in $Y$.↵\n\nSo once we are done with finding $F(X)$ and $F(Y)$, we are also done with finding $F(X*Y)$ or $F(N)$.↵\n\n**Pseudo Code** :↵\n\n~~~~~↵\nN = input()↵\nprimes = array containing primes till 10^6↵\nans = 1↵\nfor all p in primes :↵\nif p*p*p > N:↵\nbreak↵\ncount = 1↵\nwhile N divisible by p:↵\nN = N/p↵\ncount = count + 1↵\nans = ans * count↵\nif N is prime:↵\nans = ans * 2↵\nelse if N is square of a prime:↵\nans = ans * 3↵\nelse if N != 1:↵\nans = ans * 4↵\n~~~~~↵\n\nChecking for primality can be done quickly using Miller Rabin. Thus, the time complexity is $O(N^{\\frac{1}{3}})$ for every test case and hence we can solve our problem efficiently.↵\n\nAt this point, you may think that in a similar way, we can reduce this to $O(N^{\\frac{1}{4}})$ by handling some cases. I have not thought much on it, but the number of cases to be handled are high since after trial division $N$ could be factorised into one, two or three primes. This is easy enough to code in contest environment, which is our prime objective.↵\n\nThis trick is not quite commonly known and people tend to make bugs in handling the three cases. A problem in regionals which uses this trick directly :↵\n\n[Problem F | Codeforces Gym](http://codeforces.com/gym/100753)↵\n\nYou can try also this technique on problems requiring $\\sqrt[]{N}$ factorisation for practice purposes.↵\n\nHope you found this useful! Please suggest more problems to be added as well as any edits, if required.↵\n\n**Happy Coding!**\n\n#### History\n\nRevisions", null, "Rev. Lang. By When Δ Comment\nen5", null, "himanshujaju 2015-12-26 17:09:26 20\nen4", null, "himanshujaju 2015-12-26 17:01:34 168\nen3", null, "himanshujaju 2015-12-26 15:12:53 25 title\nen2", null, "himanshujaju 2015-12-26 15:08:47 60 first iteration (published)\nen1", null, "himanshujaju 2015-12-26 15:05:51 5527 Initial revision (saved to drafts)" ]
[ null, "https://sta.codeforces.com/s/63915/images/icons/control.png", null, "https://sta.codeforces.com/s/63915/images/flags-16/en.png", null, "https://sta.codeforces.com/s/63915/images/flags-16/en.png", null, "https://sta.codeforces.com/s/63915/images/flags-16/en.png", null, "https://sta.codeforces.com/s/63915/images/flags-16/en.png", null, "https://sta.codeforces.com/s/63915/images/flags-16/en.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.87707716,"math_prob":0.993127,"size":10756,"snap":"2020-10-2020-16","text_gpt3_token_len":3608,"char_repetition_ratio":0.12872024,"word_repetition_ratio":0.9905263,"special_character_ratio":0.31907773,"punctuation_ratio":0.10504396,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9999697,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12],"im_url_duplicate_count":[null,null,null,5,null,5,null,5,null,5,null,5,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-04-05T13:50:35Z\",\"WARC-Record-ID\":\"<urn:uuid:eeae9ff6-6384-4e4e-88a1-6f2fef5ea7df>\",\"Content-Length\":\"85475\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:136619ff-523d-4a5f-94cc-b79b2f43c15b>\",\"WARC-Concurrent-To\":\"<urn:uuid:ddbedb64-7b64-4702-a4ae-23dfef884b2e>\",\"WARC-IP-Address\":\"81.27.240.126\",\"WARC-Target-URI\":\"https://codeforces.com/topic/22406/diff/en3/en4\",\"WARC-Payload-Digest\":\"sha1:QMJSXL7Y2ODZ2D344ENRRIKBGXJTUV54\",\"WARC-Block-Digest\":\"sha1:343LEHPXOGMAX2XAQ7IVIYBX3LAHQQ2E\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-16/CC-MAIN-2020-16_segments_1585371604800.52_warc_CC-MAIN-20200405115129-20200405145629-00360.warc.gz\"}"}
https://jupyter.brynmawr.edu/services/public/dblank/CS110%20Intro%20to%20Computing/2015-Spring/Lectures/Visualization2.ipynb
[ "# 1. Visualizations, Part 2¶\n\nIn this notebook, we continue to look at methods of displaying information visually. See Part 1\n\n## 1.1 Preliminaries¶\n\nTo explore these ideas, we need to introduce a new construct in Processing: the array.\n\n### 1.1.1 Arrays¶\n\nArrays are contiguous blocks of memory used to store similar things. Effectively this allows you to have variables that you can reference by a number.\n\nYou can define a variable to hold an unspecified number of integers with:\n\nint [] values = new int[] { 1, 2, 3 };\n\n\nYou can also assign the variable with an array of values at the same time. We use the new keyword to create the array that holds the elements 1, 2, and 3:\n\nint [] values = new int[] { 1, 2, 3 };\n\n\nTo refer to the first and second items, we use:\n\nvalues\nvalues[i]\n\n\nLet's see the array in use.\n\n## 1.2 Albers Conic Map Projection¶\n\nIn the last lecture, we used a SVG image of the united states.\n\nIn [ ]:\n%download http://upload.wikimedia.org/wikipedia/commons/archive/3/32/20091105194402%21Blank_US_Map.svg\n\n\nAnd a meta-command to rename the file:\n\nIn [ ]:\n! mv 20091105194402%21Blank_US_Map.svg usa-wikipedia.svg\n\n\nIn this example, we want to use the states as before, but also be able to plot longitude and latitude on the map.\n\nSince the map was just a picture (and not drawn) I wasn't sure what coordinate system it was in.\n\nAfter a bit of trial and error, I found that the Albers conic projection was a good fit.\n\nIn this example, I plot some longitude and latitude points, and kept adjusting the xoffset, xscale, yoffset, and yscale until the points lined up pretty well. Normally, we would know these values, but the wikipedia map did not provide those.\n\nIf you click, it will plot those points, and some cites.\n\nNotice that the albers function returns an array containing the x and the y values:\n\nIn :\nPShape usa;\nPShape michigan;\nPShape ohio;\n\nvoid setup() {\nsize(959, 593);\nbackground(255);\nmichigan = usa.getChild(\"MI\");\nohio = usa.getChild(\"OH\");\n}\n\nvoid draw() {\n// Draw the full map\nshape(usa, 0, 0);\nnoLoop();\n}\n\nfloat[] albers(lat, lng) {\nlat0 = 23.0 * (PI/180); // Latitude_Of_Origin\nlng0 = -96.0 * (PI/180); // Central_Meridian\nphi1 = 30.0 * (PI/180); // Standard_Parallel_1\nphi2 = 50.0 * (PI/180); // Standard_Parallel_2\n\nn = 0.5 * (sin(phi1) + sin(phi2));\nc = cos(phi1);\nC = c * c + 2 * n * sin(phi1);\np0 = sqrt(C - 2 * n * sin(lat0)) / n;\ntheta = n * (lng * PI/180 - lng0);\np = sqrt(C - 2 * n * sin(lat * PI/180)) / n;\nx = p * sin(theta);\ny = p0 - p * cos(theta);\nreturn new float { x, y };\n}\n\nvoid plot(lat, lon, c) {\n// Values to scale the lat, lon to fit on the USA map:\nxoffset = 485;\nxscale = 1245;\nyoffset = 630;\nyscale = 1250;\n\nfloat xy = albers(lat, lon);\nfill(c);\nellipse(xoffset + xy * xscale, yoffset - xy * yscale, 10, 10);\n}\n\nvoid mousePressed() {\nfor (lat = 30; lat <= 50; lat += 5) {\nfor (lon = 70; lon <= 130; lon += 5) {\nplot(lat, -lon, color(255));\n}\n}\n// Some Cites:\nplot(39.790942, -86.147685, color(255, 0, 128));\nplot(47.042418, -122.893077, color(255, 128, 0));\nplot(30.4518, -84.27277, color(255, 0, 0));\nplot(44.323535, -69.765261, color(255, 0, 255));\nplot(33.448457, -112.073844, color(255, 255, 0));\n}\n\nSketch #82:\n\nYou can use this to overlay data, such as population density, locations of events, etc. You might want to use the 4th element of color(), the alpha value, to make the colors transparent.\n\n## 1.3 Genomics¶\n\nHere is a diagram style that is used a lot in genomic and biological data:\n\nhttp://circos.ca/intro/genomic_data/", null, "How could we make such a chart?\n\nFirst, let's make some tests using different curves.\n\nI found that the bezier, with control points at the center looks pretty good:\n\nIn :\nnoFill();\nstroke(255, 0, 0);\nbezier(10, 10, 50, 50, 50, 50, 90, 10);\n\nSketch #92:\n\nFor this example, we'll reuse the rotateAround functions from the last assignment. This is used to find the starting and stopping points around a center.\n\nThen, we draw a bezier curve between them:\n\nIn :\nint rotateAroundX(int x1, int y1, int length, int angle) {\nreturn x1 + length * cos(angle);\n}\n\nint rotateAroundY(int x1, int y1, int length, int angle) {\nreturn y1 - length * sin(angle);\n}\n\nvoid setup() {\nsize(300, 300);\nbackground();\n}\n\nvoid draw() {\n// Center:\ncx = width/2;\ncy = height/2;\n\n// Random degree, converted to radians:\np1 = random(360) * PI/180;\n// Random degree, converted to radians:\np2 = random(360) * PI/180;\n\n// Find where p1 would be:\nx1 = rotateAroundX(cx, cy, width/2, p1);\ny1 = rotateAroundY(cx, cy, width/2, p1);\n\n// Find where p2 would be:\nx2 = rotateAroundX(cx, cy, width/2, p2);\ny2 = rotateAroundY(cx, cy, width/2, p2);\n\n// Connect p1 to p2:\nnoFill();\nstroke(random(255), random(255), random(255));\nbezier(x1, y1, cx, cy, cx, cy, x2, y2);\n}\n\nSketch #103:\n\nWhat could you use this to represent?\n\n## 1.4 Relationships¶\n\nIn this example, we construct three arrays:\n\n• name - to hold the name of a person\n• from - to hold the index of the to-person\n• to - to hold the index of the from-person\n\nThe idea is we are representing information about a relationship. For example, it might represent a tweet (from one person, sent to (or mentioning) another).\n\nIn :\nint rotateAroundX(int x1, int y1, int length, int angle) {\nreturn x1 + length * cos(angle);\n}\n\nint rotateAroundY(int x1, int y1, int length, int angle) {\nreturn y1 - length * sin(angle);\n}\n\nvoid setup() {\nsize(300, 300);\nbackground();\n}\n\nvoid draw() {\n// Center:\ncx = width/2;\ncy = height/2;\n\nint[] from = new int[] {0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };\nint[] to = new int[] {1, 3, 3, 6, 3, 1, 2, 1, 2, 3 };\nstring[] name = new string[] {\"Helen\",\n\"Mary\",\n\"Teyvonia\",\n\"Glenda\",\n\"Bertrude\",\n\"Elvie\",\n\"Sarah\",\n\"Mary\",\n\"Trisha\",\n\"Karen\" };\n\n// First, let's draw the names around the circle:\nfor (int i = 0; i < 10; i++) {\np1 = from[i] * 36 * PI/180;\np2 = to[i] * 36 * PI/180;\n\nx1 = rotateAroundX(cx, cy, width/2, p1);\ny1 = rotateAroundY(cx, cy, width/2, p1);\nfill(0);\ntext(name[i], x1, y1);\n}\n// Next, we connect up the people:\nfor (int i = 0; i < 10; i++) {\np1 = from[i] * 36 * PI/180;\np2 = to[i] * 36 * PI/180;\n\n// Find where p1 would be:\nx1 = rotateAroundX(cx, cy, width/2, p1);\ny1 = rotateAroundY(cx, cy, width/2, p1);\n\n// Find where p2 would be:\nx2 = rotateAroundX(cx, cy, width/2, p2);\ny2 = rotateAroundY(cx, cy, width/2, p2);\n\n// Connect p1 to p2:\nnoFill();\nstrokeWeight(random(5));\nstroke(random(255), random(255), random(255));\nbezier(x1, y1, cx, cy, cx, cy, x2, y2);\n}\nnoLoop();\n}\n\nSketch #1:" ]
[ null, "http://circos.ca/intro/genomic_data/img/circos-conde-nast-large.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7170263,"math_prob":0.99396944,"size":6481,"snap":"2023-40-2023-50","text_gpt3_token_len":2063,"char_repetition_ratio":0.10745715,"word_repetition_ratio":0.23503521,"special_character_ratio":0.38034254,"punctuation_ratio":0.23444976,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9958497,"pos_list":[0,1,2],"im_url_duplicate_count":[null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-08T09:51:07Z\",\"WARC-Record-ID\":\"<urn:uuid:f04fe62f-08fd-4df1-af25-7533afdb459b>\",\"Content-Length\":\"331906\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:4b1b1c8e-d07e-403a-a2b2-a23fd5835f07>\",\"WARC-Concurrent-To\":\"<urn:uuid:eb910c00-f89b-4faf-8bce-d8f6d27d65cf>\",\"WARC-IP-Address\":\"165.106.90.202\",\"WARC-Target-URI\":\"https://jupyter.brynmawr.edu/services/public/dblank/CS110%20Intro%20to%20Computing/2015-Spring/Lectures/Visualization2.ipynb\",\"WARC-Payload-Digest\":\"sha1:76D367OBIIE6DDOTTRWXC4TVDTBMJV7W\",\"WARC-Block-Digest\":\"sha1:EWCW7FJHFLO7KSNY6HQADJSUN4YTTAP7\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100739.50_warc_CC-MAIN-20231208081124-20231208111124-00676.warc.gz\"}"}
https://spiderlabweb.com/python-program-display-print-prime-numbers-between-range-interval/
[ "# Python Program to Display or Print Prime Numbers Between a Range or an Interval\n\nIn this program, we will learn how to display or print the Prime Numbers between a given range using the Python programming language.\n\nI have already discussed how to check whether a number is prime or not in previous posts. So, check it out for better understanding.\n\nI will be discussing different programs\n\n• Between an Interval.\n• In Range 1 to N\n\n### Python Programming Code to Display or Print Prime Numbers Between a Range or an Interval\n\nIn both the programs below, I have used the different approaches in the inner for loop.\n\nIn one, I have traversed until half of the number (i/2). And in other, I have traversed till the square root of the number (sqrt(i)).\n\n### Between an Interval\n\nIn this program, user is asked to give the start and end of the range or interval.\n\nAnd then I apply the for loop in that range and check every number in between the range including the ends also whether they are a prime number or not.\n\n### Code:-\n\n```start = int(input(\"Enter starting number of the interval : \"))\nend = int(input(\"Enter ending number of the interval : \"))\n\nprint(\"Prime Numbers Between \", start, \" and \", end, \" : \")\nfor i in range(start, end+1):\nisPrime = True\n\nif(i <= 1):\nisPrime = False\nelse:\nfor j in range(2, int(i/2)):\nif(i % j == 0):\nisPrime = False\nbreak\n\nif (isPrime):\nprint(i, end=\" \")\n\nprint()```\nEnter starting number of the interval : 5\nEnter ending number of the interval : 60\nPrime Numbers Between 5 and 60 :\n5 7 11 13 17 19 23 29 31 37 41 43 47 53 59\n\n### In Range 1 to N\n\nIn this program, I have asked for only the end of the range.\n\nAnd then with the help of for loop, numbers are checked.\n\n### Code:-\n\n```import math\n\nend = int(input(\"Enter the end of the range : \"))\n\nprint(\"Prime Numbers Between 1\", \" and \", end, \" : \")\n\nfor i in range(2, end+1):\nisPrime = True\n\nfor j in range(2, int(math.sqrt(i)+1)):\nif(i % j == 0):\nisPrime = False\nbreak\n\nif (isPrime):\nprint(i, end=\" \")\n\nprint()```\n\n### Output:-\n\nEnter the end of the range : 25\nPrime Numbers Between 1 and 25 :\n2 3 5 7 11 13 17 19 23\n\n#### Best Books for learning Python with Data Structure, Algorithms, Machine learning and Data Science.\n\nThe following two tabs change content below.", null, "#### Amit Rawat\n\nFounder and Developer at SpiderLabWeb\nI love to work on new projects and also work on my ideas. My main field of interest is Web Development.", null, "" ]
[ null, "https://secure.gravatar.com/avatar/e0c5242b46deda0e13fcdd7a594be755", null, "https://secure.gravatar.com/avatar/e0c5242b46deda0e13fcdd7a594be755", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7788193,"math_prob":0.9732417,"size":2407,"snap":"2021-43-2021-49","text_gpt3_token_len":631,"char_repetition_ratio":0.147732,"word_repetition_ratio":0.18322296,"special_character_ratio":0.2978812,"punctuation_ratio":0.12127236,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9905188,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-16T12:20:53Z\",\"WARC-Record-ID\":\"<urn:uuid:94910a7c-41fb-4fb3-8079-295ad0a34484>\",\"Content-Length\":\"116407\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:4778653b-74cb-4e39-8516-041f4748dc06>\",\"WARC-Concurrent-To\":\"<urn:uuid:6c862cd1-b703-4a7a-bab2-588073647bc7>\",\"WARC-IP-Address\":\"185.61.152.63\",\"WARC-Target-URI\":\"https://spiderlabweb.com/python-program-display-print-prime-numbers-between-range-interval/\",\"WARC-Payload-Digest\":\"sha1:O4TMJ7UMCS5ULTMNZ76HJGC72B6E4DAR\",\"WARC-Block-Digest\":\"sha1:E6KYFX6OENBWVQRT7SGPVNFOF632TGKO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323584567.81_warc_CC-MAIN-20211016105157-20211016135157-00351.warc.gz\"}"}
https://vivian.worldvista.org/dox/Routine_FBAAUTL4_source.html
[ "Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping\nRoutine: FBAAUTL4\n\n# FBAAUTL4.m\n\nGo to the documentation of this file.\n```FBAAUTL4 ;AISC/CMR,dmk,WCIOFO/SAB-UTILITY ROUTINE ; 8/21/12 3:39pm\n```\n``` ;;3.5;FEE BASIS;**4,32,77,81,144**;JAN 30, 1995;Build 8\n```\n``` ;;Per VHA Directive 10-93-142, this routine should not be modified.\n```\n``` ;\n```\n```CPT(X,Y,FBSRVDT) ;return external format of CPT code\n```\n``` ;INPUT X = ien of CPT\n```\n``` ;optional Y I Y return description, I 'Y return external format of CPT\n```\n``` ;optional FBSRVDT - date of service\n```\n``` ;OUTPUT external format of CPT code or description of CPT code\n```\n``` I '\\$G(X) Q \"\"\n```\n``` N Z\n```\n``` S Z=\\$\\$CPT^ICPTCOD(X,\\$S(\\$G(FBSRVDT)>0:+\\$G(FBSRVDT),1:\"\"),1)\n```\n``` Q \\$S('\\$G(Y):\\$P(Z,U,2),1:\\$P(Z,U,3))\n```\n``` ;\n```\n```MOD(X,Y,FBSRVDT) ;return external format of modifier\n```\n``` ;INPUT X = ien of modifier\n```\n``` ;optional Y I Y return description, I 'Y return external format of mod\n```\n``` ;optional FBSRVDT - date of service\n```\n``` ;OUTPUT external format of modifier or description of CPT code\n```\n``` I '\\$G(X) Q \"\"\n```\n``` N Z\n```\n``` S Z=\\$\\$MOD^ICPTMOD(X,\"I\",\\$S(\\$G(FBSRVDT)>0:+\\$G(FBSRVDT),1:\"\"),1)\n```\n``` Q \\$S('\\$G(Y):\\$P(Z,U,2),1:\\$P(Z,U,3))\n```\n``` ;\n```\n```CPTDATA(W,X,Y,Z) ;get internal value of CPT\n```\n``` ; input\n```\n``` ; W = IEN of PATIENT in file 162\n```\n``` ; X = IEN of VENDOR multiple in file 162\n```\n``` ; Y = IEN of INITIAL TREATMENT DATE multiple in file 162\n```\n``` ; Z = IEN of SERVICE PROVIDED multiple in file 162\n```\n``` ; returns\n```\n``` ; value of SERVICE PROVIDED (internal)\n```\n``` ;\n```\n``` I '\\$G(W)!('\\$G(X))!('\\$G(Y))!('\\$G(Z)) Q \"\"\n```\n``` Q \\$P(\\$G(^FBAAC(W,1,X,1,Y,1,Z,0)),U)\n```\n``` ;\n```\n```MODDATA(W,X,Y,Z) ;get internal values of CPT Modifier\n```\n``` ; input\n```\n``` ; W = IEN of PATIENT in file 162\n```\n``` ; X = IEN of VENDOR multiple in file 162\n```\n``` ; Y = IEN of INITIAL TREATMENT DATE multiple in file 162\n```\n``` ; Z = IEN of SERVICE PROVIDED multiple in file 162\n```\n``` ; output\n```\n``` ; FBMODA( array of CPT MODIFIERs\n```\n``` ; FBMODA(#)=CPT MODIFIER (internal value)\n```\n``` ; where # is the IEN for an entry in the CPT MODIFIER multiple\n```\n``` K FBMODA\n```\n``` I '\\$G(W)!('\\$G(X))!('\\$G(Y))!('\\$G(Z)) Q\n```\n``` N FBI,FBMOD\n```\n``` S FBI=0 F S FBI=\\$O(^FBAAC(W,1,X,1,Y,1,Z,\"M\",FBI)) Q:'FBI D\n```\n``` . S FBMOD=\\$P(\\$G(^FBAAC(W,1,X,1,Y,1,Z,\"M\",FBI,0)),U)\n```\n``` . Q:FBMOD=\"\"\n```\n``` . S FBMODA(FBI)=FBMOD\n```\n``` Q\n```\n``` ;\n```\n```APS(FBJ,FBK,FBL,FBM) ; amount paid symbol\n```\n``` ; input\n```\n``` ; FBJ = IEN of PATIENT in file 162\n```\n``` ; FBK = IEN of VENDOR multiple in file 162\n```\n``` ; FBL = IEN of INITIAL TREATMENT DATE multiple in file 162\n```\n``` ; FBM = IEN of SERVICE PROVIDED multiple in file 162\n```\n``` ; returns symbol\n```\n``` ; where value is M (Mill Bill emergency care - 38 U.S.C. 1725)\n```\n``` ; R (RBRVS fee schedule amount)\n```\n``` ; F (VA fee schedule amount)\n```\n``` ; C (contracted service amount)\n```\n``` ; U (usual & customary - claimed)\n```\n``` ; null if no amount paid\n```\n``` N FBAP,FBRET,FBY0,FBY2\n```\n``` S FBRET=\"\"\n```\n``` S FBY0=\\$G(^FBAAC(FBJ,1,FBK,1,FBL,1,FBM,0))\n```\n``` S FBY2=\\$G(^FBAAC(FBJ,1,FBK,1,FBL,1,FBM,2))\n```\n``` S FBAP=\\$P(FBY0,U,3)\n```\n``` I FBAP>0 D\n```\n``` . ; FB*3.5*144 Changed order of evaluation, setting Mill-Bill first as\n```\n``` . ; this coding takes precedence.\n```\n``` . ; Mill Bill payments\n```\n``` . I \"^39^52^\"[(U_\\$P(\\$G(^FBAA(161.82,+\\$P(FBY0,U,18),0)),U,3)_U) S FBRET=\"M\" Q\n```\n``` . ; use fee schedule info for payment (if any)\n```\n``` . I +FBAP=+\\$P(FBY2,U,12) S FBRET=\\$P(FBY2,U,13) Q:FBRET]\"\"\n```\n``` . ; if no fee schedule info then calc 75th percentile and check\n```\n``` . I \\$P(FBY2,U,12)=\"\" D Q:FBRET]\"\"\n```\n``` . . S FBCPT=\\$\\$CPT(\\$P(FBY0,U))\n```\n``` . . S FBMODL=\\$\\$MODL(\"^FBAAC(\"_FBJ_\",1,\"_FBK_\",1,\"_FBL_\",1,\"_FBM_\",\"\"M\"\")\",\"E\")\n```\n``` . . S FBDOS=\\$P(\\$G(^FBAAC(FBJ,1,FBK,1,FBL,0)),U)\n```\n``` . . I +FBAP=+\\$\\$PRCTL^FBAAFSF(FBCPT,FBMODL,FBDOS) S FBRET=\"F\"\n```\n``` . ; since not paid by a fee schedule, check prompt pay type\n```\n``` . I \\$P(FBY2,U,2) S FBRET=\"C\" Q\n```\n``` . ; all other payments considered u&c\n```\n``` . S FBRET=\"U\"\n```\n``` Q FBRET\n```\n``` ;\n```\n```CHKBI(X,Y) ;called to determine if batch number or invoice number\n```\n``` ;already exists\n```\n``` ;X= next batch/invoice number\n```\n``` ;Y=1 if Batch\n```\n``` ;Y undefined if invoice number passed\n```\n``` ;returns a truth if X is ok for next batch/invoice #\n```\n``` ;\n```\n``` I 'X Q \"\"\n```\n``` I \\$G(Y) Q \\$S(\\$D(^FBAA(161.7,\"B\",X)):\"\",1:1)\n```\n``` I '\\$G(Y) Q \\$S(\\$D(^FBAA(162.1,\"B\",X)):\"\",\\$D(^FBAAI(\"B\",X)):\"\",\\$D(^FBAAC(\"C\",X)):\"\",1:1)\n```\n``` ;\n```\n```MODL(FBAN,FBFLAG) ;return sorted list given array of modifiers\n```\n``` ; Input\n```\n``` ; FBAN - closed root of array containing modifiers\n```\n``` ; the data must be in nodes descendent from this root.\n```\n``` ; The subscripts of the nodes below FBAN must be\n```\n``` ; positive numbers. The CPT MODIFIER internal value\n```\n``` ; must be the first piece in these nodes or in the\n```\n``` ; 0-node descendent from these nodes.\n```\n``` ; i.e.\n```\n``` ; ARRAY(number)=CPT MODIFIER (internal value)\n```\n``` ; OR\n```\n``` ; ARRAY(number,0)=CPT MODIFIER (internal value)\n```\n``` ; FBFLAG - (optional) flag, E or I, default I\n```\n``` ; I to return internal values of modifiers\n```\n``` ; E to return external values of modifiers\n```\n``` ; Returns string of sorted modifiers (e.g. \"1,3,7\")\n```\n``` ;\n```\n``` N FBI,FBRET,FBSORT,FBX,FBZERO\n```\n``` S FBRET=\"\"\n```\n``` S FBFLAG=\\$G(FBFLAG,\"I\")\n```\n``` ;\n```\n``` ; if any descendent data then determine if it is 0-node descendent\n```\n``` S FBZERO=0 I \\$O(@FBAN@(0)),\\$D(@FBAN@(\\$O(@FBAN@(0)),0))#2 S FBZERO=1\n```\n``` ;\n```\n``` ; loop thru input array and place modifiers in a sort array\n```\n``` S FBI=0 F S FBI=\\$O(@FBAN@(FBI)) Q:'FBI D\n```\n``` . ; get the cpt modifier\n```\n``` . I FBZERO S FBX=\\$P(@FBAN@(FBI,0),U)\n```\n``` . E S FBX=\\$P(@FBAN@(FBI),U)\n```\n``` . I FBFLAG=\"E\" D\n```\n``` . . ; convert to external value\n```\n``` . . S FBX=\\$\\$MOD^ICPTMOD(FBX,\"I\")\n```\n``` . . I FBX>0 S FBX=\\$P(FBX,U,2)\n```\n``` . . E S FBX=\"\"\n```\n``` . I FBX]\"\" S FBSORT(FBX)=\"\"\n```\n``` ;\n```\n``` ; loop thru sorted array and add the modifiers to return value\n```\n``` S FBX=\"\" F S FBX=\\$O(FBSORT(FBX)) Q:FBX=\"\" S FBRET=FBRET_\",\"_FBX\n```\n``` ;\n```\n``` ; strip leading comma (if any)\n```\n``` I \\$E(FBRET)=\",\" S FBRET=\\$E(FBRET,2,999)\n```\n``` ;\n```\n``` ; return value\n```\n``` Q FBRET\n```\n``` ;\n```\n```REPMOD(FBJ,FBK,FBL,FBM) ; Replace CPT Modifier(s) in payment\n```\n``` ; input\n```\n``` ; FBJ = IEN of PATIENT in file 162\n```\n``` ; FBK = IEN of VENDOR multiple in file 162\n```\n``` ; FBL = IEN of INITIAL TREATMENT DATE multiple in file 162\n```\n``` ; FBM = IEN of SERVICE PROVIDED multiple in file 162\n```\n``` ; FBMODA( array of modifiers\n```\n``` ; where FBMODA(number)=CPT Modifier (internal)\n```\n``` ;\n```\n``` N FBI,FBIENS,FBFDA\n```\n``` S FBIENS=FBM_\",\"_FBL_\",\"_FBK_\",\"_FBJ_\",\"\n```\n``` ;\n```\n``` ; delete any existing CPT MODIFIER entries from global\n```\n``` I \\$O(^FBAAC(FBJ,1,FBK,1,FBL,1,FBM,\"M\",0)) D\n```\n``` . K FBFDA S FBI=0\n```\n``` . F S FBI=\\$O(^FBAAC(FBJ,1,FBK,1,FBL,1,FBM,\"M\",FBI)) Q:'FBI D\n```\n``` . . S FBFDA(162.06,FBI_\",\"_FBIENS,.01)=\"@\"\n```\n``` . D FILE^DIE(\"\",\"FBFDA\") D MSG^DIALOG()\n```\n``` ;\n```\n``` ; create CPT MODIFIER entries from data in array FBMODA\n```\n``` I \\$O(FBMODA(0)) D\n```\n``` . K FBFDA S FBI=0 F S FBI=\\$O(FBMODA(FBI)) Q:'FBI D\n```\n``` . . S FBFDA(162.06,\"+\"_FBI_\",\"_FBIENS,.01)=FBMODA(FBI)\n```\n``` . D UPDATE^DIE(\"\",\"FBFDA\") D MSG^DIALOG()\n```\n``` ;\n```\n``` Q\n```\n``` ;\n```\n``` ;FBAAUTL4\n```" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.5061884,"math_prob":0.99065423,"size":13465,"snap":"2021-31-2021-39","text_gpt3_token_len":5280,"char_repetition_ratio":0.12963375,"word_repetition_ratio":0.43776825,"special_character_ratio":0.38277015,"punctuation_ratio":0.22439452,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99628294,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-26T09:51:03Z\",\"WARC-Record-ID\":\"<urn:uuid:92c77368-ee50-41e5-a213-a652c4967270>\",\"Content-Length\":\"70149\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:af712a9c-848a-4e6e-b7d5-a1bacd43a664>\",\"WARC-Concurrent-To\":\"<urn:uuid:bab8c7cc-15af-4602-9dfb-b43caa543546>\",\"WARC-IP-Address\":\"156.96.113.49\",\"WARC-Target-URI\":\"https://vivian.worldvista.org/dox/Routine_FBAAUTL4_source.html\",\"WARC-Payload-Digest\":\"sha1:5HEUIQOPJNZM3NXASGKZC3ONRTZ47PEU\",\"WARC-Block-Digest\":\"sha1:FTGVL7D45NFP2SHMQVYJRHQK36WENKJP\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780057857.27_warc_CC-MAIN-20210926083818-20210926113818-00018.warc.gz\"}"}
https://distill.pub/2017/momentum/?utm_campaign=Data%20Machina&utm_medium=email&utm_source=Revue%20newsletter
[ "# Why Momentum Really Works\n\nHereŌĆÖs a popular story about momentum [1, 2, 3]: gradient descent is a man walking down a hill. He follows the steepest path downwards; his progress is slow, but steady. Momentum is a heavy ball rolling down the same hill. The added inertia acts both as a smoother and an accelerator, dampening oscillations and causing us to barrel through narrow valleys, small humps and local minima.\n\nThis standard story isnŌĆÖt wrong, but it fails to explain many important behaviors of momentum. In fact, momentum can be understood far more precisely if we study it on the right model.\n\nOne nice model is the convex quadratic. This model is rich enough to reproduce momentumŌĆÖs local dynamics in real problems, and yet simple enough to be understood in closed form. This balance gives us powerful traction for understanding this algorithm.\n\nWe begin with gradient descent. The algorithm has many virtues, but speed is not one of them. It is simpleŌĆēŌĆöŌĆēwhen optimizing a smooth function $f$, we make a small step in the gradient $w^{k+1} = w^k-\\alpha\\nabla f(w^k).$ For a step-size small enough, gradient descent makes a monotonic improvement at every iteration. It always converges, albeit to a local minimum. And under a few weak curvature conditions it can even get there at an exponential rate.\n\nBut the exponential decrease, though appealing in theory, can often be infuriatingly small. Things often begin quite wellŌĆēŌĆöŌĆēwith an impressive, almost immediate decrease in the loss. But as the iterations progress, things start to slow down. You start to get a nagging feeling youŌĆÖre not making as much progress as you should be. What has gone wrong?\n\nThe problem could be the optimizerŌĆÖs old nemesis, pathological curvature. Pathological curvature is, simply put, regions of $f$ which arenŌĆÖt scaled properly. The landscapes are often described as valleys, trenches, canals and ravines. The iterates either jump between valleys, or approach the optimum in small, timid steps. Progress along certain directions grind to a halt. In these unfortunate regions, gradient descent fumbles.\n\nMomentum proposes the following tweak to gradient descent. We give gradient descent a short-term memory: \\begin{aligned} z^{k+1}&=\\beta z^{k}+\\nabla f(w^{k})\\\\[0.4em] w^{k+1}&=w^{k}-\\alpha z^{k+1} \\end{aligned} The change is innocent, and costs almost nothing. When $\\beta = 0$ , we recover gradient descent. But for $\\beta = 0.99$ (sometimes $0.999$, if things are really bad), this appears to be the boost we need. Our iterations regain that speed and boldness it lost, speeding to the optimum with a renewed energy.\n\nOptimizers call this minor miracle ŌĆ£accelerationŌĆØ.\n\nThe new algorithm may seem at first glance like a cheap hack. A simple trick to get around gradient descentŌĆÖs more aberrant behaviorŌĆēŌĆöŌĆēa smoother for oscillations between steep canyons. But the truth, if anything, is the other way round. It is gradient descent which is the hack. First, momentum gives up to a quadratic speedup on many functions. 1 This is no small matterŌĆēŌĆöŌĆēthis is similar to the speedup you get from the Fast Fourier Transform, Quicksort, and GroverŌĆÖs Algorithm. When the universe gives you quadratic speedups, you should start to pay attention.\n\nBut thereŌĆÖs more. A lower bound, courtesy of Nesterov , states that momentum is, in a certain very narrow and technical sense, optimal. Now, this doesnŌĆÖt mean it is the best algorithm for all functions in all circumstances. But it does satisfy some curiously beautiful mathematical properties which scratch a very human itch for perfection and closure. But more on that later. LetŌĆÖs say this for nowŌĆēŌĆöŌĆēmomentum is an algorithm for the book.\n\nWe begin by studying gradient descent on the simplest model possible which isnŌĆÖt trivialŌĆēŌĆöŌĆēthe convex quadratic, $f(w) = \\tfrac{1}{2}w^TAw - b^Tw, \\qquad w \\in \\mathbf{R}^n.$ Assume $A$ is symmetric and invertible, then the optimal solution $w^{\\star}$ occurs at $w^{\\star} = A^{-1}b.$ Simple as this model may be, it is rich enough to approximate many functions (think of $A$ as your favorite model of curvatureŌĆēŌĆöŌĆēthe Hessian, Fisher Information Matrix , etc) and captures all the key features of pathological curvature. And more importantly, we can write an exact closed formula for gradient descent on this function.\n\nThis is how it goes. Since $\\nabla f(w)=Aw - b$, the iterates are $w^{k+1}=w^{k}- \\alpha (Aw^{k} - b).$ HereŌĆÖs the trick. There is a very natural space to view gradient descent where all the dimensions act independentlyŌĆēŌĆöŌĆēthe eigenvectors of $A$.\n\nEvery symmetric matrix $A$ has an eigenvalue decomposition $A=Q\\ \\text{diag}(\\lambda_{1},\\ldots,\\lambda_{n})\\ Q^{T},\\qquad Q = [q_1,\\ldots,q_n],$ and, as per convention, we will assume that the $\\lambda_i$ŌĆÖs are sorted, from smallest $\\lambda_1$ to biggest $\\lambda_n$. If we perform a change of basis, $x^{k} = Q^T(w^{k} - w^\\star)$, the iterations break apart, becoming: \\begin{aligned} x_{i}^{k+1} & =x_{i}^{k}-\\alpha \\lambda_ix_{i}^{k} \\\\[0.4em] &= (1-\\alpha\\lambda_i)x^k_i=(1-\\alpha \\lambda_i)^{k+1}x^0_i \\end{aligned} Moving back to our original space $w$, we can see that $w^k - w^\\star = Qx^k=\\sum_i^n x^0_i(1-\\alpha\\lambda_i)^k q_i$ and there we have itŌĆēŌĆöŌĆēgradient descent in closed form.\n\n### Decomposing the Error\n\nThe above equation admits a simple interpretation. Each element of $x^0$ is the component of the error in the initial guess in the $Q$-basis. There are $n$ such errors, and each of these errors follows its own, solitary path to the minimum, decreasing exponentially with a compounding rate of $1-\\alpha\\lambda_i$. The closer that number is to $1$, the slower it converges.\n\nFor most step-sizes, the eigenvectors with largest eigenvalues converge the fastest. This triggers an explosion of progress in the first few iterations, before things slow down as the smaller eigenvectorsŌĆÖ struggles are revealed. By writing the contributions of each eigenspaceŌĆÖs error to the loss $f(w^{k})-f(w^{\\star})=\\sum(1-\\alpha\\lambda_{i})^{2k}\\lambda_{i}[x_{i}^{0}]^2$ we can visualize the contributions of each error component to the loss.\n\n### Choosing A Step-size\n\nThe above analysis gives us immediate guidance as to how to set a step-size $\\alpha$. In order to converge, each $|1-\\alpha \\lambda_i|$ must be strictly less than 1. All workable step-sizes, therefore, fall in the interval $0<\\alpha\\lambda_i<2.$ The overall convergence rate is determined by the slowest error component, which must be either $\\lambda_1$ or $\\lambda_n$: \\begin{aligned}\\text{rate}(\\alpha) & ~=~ \\max_{i}\\left|1-\\alpha\\lambda_{i}\\right|\\\\[0.9em] & ~=~ \\max\\left\\{|1-\\alpha\\lambda_{1}|,~ |1-\\alpha\\lambda_{n}|\\right\\} \\end{aligned}\n\nThis overall rate is minimized when the rates for $\\lambda_1$ and $\\lambda_n$ are the sameŌĆēŌĆöŌĆēthis mirrors our informal observation in the previous section that the optimal step-size causes the first and last eigenvectors to converge at the same rate. If we work this through we get: \\begin{aligned} \\text{optimal }\\alpha ~=~{\\mathop{\\text{argmin}}\\limits_\\alpha} ~\\text{rate}(\\alpha) & ~=~\\frac{2}{\\lambda_{1}+\\lambda_{n}}\\\\[1.4em] \\text{optimal rate} ~=~{\\min_\\alpha} ~\\text{rate}(\\alpha) & ~=~\\frac{\\lambda_{n}/\\lambda_{1}-1}{\\lambda_{n}/\\lambda_{1}+1} \\end{aligned}\n\nNotice the ratio $\\lambda_n/\\lambda_1$ determines the convergence rate of the problem. In fact, this ratio appears often enough that we give it a name, and a symbolŌĆēŌĆöŌĆēthe condition number. $\\text{condition number} := \\kappa :=\\frac{\\lambda_n}{\\lambda_1}$ The condition number means many things. It is a measure of how close to singular a matrix is. It is a measure of how robust $A^{-1}b$ is to perturbations in $b$. And, in this context, the condition number gives us a measure of how poorly gradient descent will perform. A ratio of $\\kappa = 1$ is ideal, giving convergence in one step (of course, the function is trivial). Unfortunately the larger the ratio, the slower gradient descent will be. The condition number is therefore a direct measure of pathological curvature.\n\n## Example: Polynomial Regression\n\nThe above analysis reveals an insight: all errors are not made equal. Indeed, there are different kinds of errors, $n$ to be exact, one for each of the eigenvectors of $A$. And gradient descent is better at correcting some kinds of errors than others. But what do the eigenvectors of $A$ mean? Surprisingly, in many applications they admit a very concrete interpretation.\n\nLets see how this plays out in polynomial regression. Given 1D data, $\\xi_i$, our problem is to fit the model $\\text{model}(\\xi)=w_{1}p_{1}(\\xi)+\\cdots+w_{n}p_{n}(\\xi)\\qquad p_{i}=\\xi\\mapsto\\xi^{i-1}$ to our observations, $d_i$. This model, though nonlinear in the input $\\xi$, is linear in the weights, and therefore we can write the model as a linear combination of monomials, like:\n\nBecause of the linearity, we can fit this model to our data $\\xi_i$ using linear regression on the model mismatch $\\text{minimize}_w \\qquad\\tfrac{1}{2}\\sum_i (\\text{model}(\\xi_{i})-d_{i})^{2} ~~=~~ \\tfrac{1}{2}\\|Zw - d\\|^2$ where $Z=\\left(\\begin{array}{ccccc} 1 & \\xi_{1} & \\xi_{1}^{2} & \\ldots & \\xi_{1}^{n-1}\\\\ 1 & \\xi_{2} & \\xi_{2}^{2} & \\ldots & \\xi_{2}^{n-1}\\\\ \\vdots & \\vdots & \\vdots & \\ddots & \\vdots\\\\ 1 & \\xi_{m} & \\xi_{m}^{2} & \\ldots & \\xi_{m}^{n-1} \\end{array}\\right).$\n\nThe path of convergence, as we know, is elucidated when we view the iterates in the space of $Q$ (the eigenvectors of $Z^T Z$). So letŌĆÖs recast our regression problem in the basis of $Q$. First, we do a change of basis, by rotating $w$ into $Qw$, and counter-rotating our feature maps $p$ into eigenspace, $\\bar{p}$. We can now conceptualize the same regression as one over a different polynomial basis, with the model $\\text{model}(\\xi)~=~x_{1}\\bar{p}_{1}(\\xi)~+~\\cdots~+~x_{n}\\bar{p}_{n}(\\xi)\\qquad \\bar{p}_{i}=\\sum q_{ij}p_j.$ This model is identical to the old one. But these new features $\\bar{p}$ (which I call ŌĆ£eigenfeaturesŌĆØ) and weights have the pleasing property that each coordinate acts independently of the others. Now our optimization problem breaks down, really, into $n$ small 1D optimization problems. And each coordinate can be optimized greedily and independently, one at a time in any order, to produce the final, global, optimum. The eigenfeatures are also much more informative:\n\nThe observations in the above diagram can be justified mathematically. From a statistical point of view, we would like a model which is, in some sense, robust to noise. Our model cannot possibly be meaningful if the slightest perturbation to the observations changes the entire model dramatically. And the eigenfeatures, the principal components of the data, give us exactly the decomposition we need to sort the features by its sensitivity to perturbations in $d_i$ŌĆÖs. The most robust components appear in the front (with the largest eigenvalues), and the most sensitive components in the back (with the smallest eigenvalues).\n\nThis measure of robustness, by a rather convenient coincidence, is also a measure of how easily an eigenspace converges. And thus, the ŌĆ£pathological directionsŌĆØŌĆēŌĆöŌĆēthe eigenspaces which converge the slowestŌĆēŌĆöŌĆēare also those which are most sensitive to noise! So starting at a simple initial point like $0$ (by a gross abuse of language, letŌĆÖs think of this as a prior), we track the iterates till a desired level of complexity is reached. LetŌĆÖs see how this plays out in gradient descent.\n\nThis effect is harnessed with the heuristic of early stopping : by stopping the optimization early, you can often get better generalizing results. Indeed, the effect of early stopping is very similar to that of more conventional methods of regularization, such as Tikhonov Regression. Both methods try to suppress the components of the smallest eigenvalues directly, though they employ different methods of spectral decay.2 But early stopping has a distinct advantage. Once the step-size is chosen, there are no regularization parameters to fiddle with. Indeed, in the course of a single optimization, we have the entire family of models, from underfitted to overfitted, at our disposal. This gift, it seems, doesnŌĆÖt come at a price. A beautiful free lunch indeed.\n\n## The Dynamics of Momentum\n\nLetŌĆÖs turn our attention back to momentum. Recall that the momentum update is \\begin{aligned} z^{k+1}&=\\beta z^{k}+\\nabla f(w^{k})\\\\[0.4em] w^{k+1}&=w^{k}-\\alpha z^{k+1}. \\end{aligned} Since $\\nabla f(w^k) = Aw^k - b$, the update on the quadratic is \\begin{aligned} z^{k+1}&=\\beta z^{k}+ (Aw^{k}-b)\\\\[0.4em] w^{k+1}&=w^{k}-\\alpha z^{k+1}. \\end{aligned} Following , we go through the same motions, with the change of basis $x^{k} = Q(w^{k} - w^\\star)$ and $y^{k} = Qz^{k}$, to yield the update rule \\begin{aligned} y_{i}^{k+1}&=\\beta y_{i}^{k}+\\lambda_{i}x_{i}^{k}\\\\[0.4em] x_{i}^{k+1}&=x_{i}^{k}-\\alpha y_{i}^{k+1}. \\end{aligned} in which each component acts independently of the other components (though $x^k_i$ and $y^k_i$ are coupled). This lets us rewrite our iterates as 3 $\\left(\\!\\!\\begin{array}{c} y_{i}^{k}\\\\ x_{i}^{k} \\end{array}\\!\\!\\right)=R^k\\left(\\!\\!\\begin{array}{c} y_{i}^{0}\\\\ x_{i}^{0} \\end{array}\\!\\!\\right) \\qquad R = \\left(\\!\\!\\begin{array}{cc} \\beta & \\lambda_{i}\\\\ -\\alpha\\beta & 1-\\alpha\\lambda_{i} \\end{array}\\!\\!\\right).$ There are many ways of taking a matrix to the $k^{th}$ power. But for the $2 \\times 2$ case there is an elegant and little known formula in terms of the eigenvalues of $R$, $\\sigma_1$ and $\\sigma_2$. $\\color{#AAA}{\\color{black}{R^{k}}=\\begin{cases} \\color{black}{\\sigma_{1}^{k}}R_{1}-\\color{black}{\\sigma_{2}^{k}}R_{2} & \\sigma_{1}\\neq\\sigma_{2}\\\\ \\sigma_{1}^{k}(kR/\\sigma_1-(k-1)I) & \\sigma_{1}=\\sigma_{2} \\end{cases},\\qquad R_{j}=\\frac{R-\\sigma_{j}I}{\\sigma_{1}-\\sigma_{2}}}$ This formula is rather complicated, but the takeaway here is that it plays the exact same role the individual convergence rates, $1-\\alpha\\lambda_i$ do in gradient descent. But instead of one geometric series, we have two coupled series, which may have real or complex values. The convergence rate is therefore the slowest of the two rates, $\\max\\{|\\sigma_{1}|,|\\sigma_{2}|\\}$ 4. By plotting this out, we see there are distinct regions of the parameter space which reveal a rich taxonomy of convergence behavior :\n\nFor what values of $\\alpha$ and $\\beta$ does momentum converge? Since we need both $\\sigma_1$ and $\\sigma_2$ to converge, our convergence criterion is now $\\max\\{|\\sigma_{1}|,|\\sigma_{2}|\\} < 1$. The range of available step-sizes work out 5 to be $0<\\alpha\\lambda_{i}<2+2\\beta \\qquad \\text{for} \\qquad 0 \\leq \\beta < 1$ We recover the previous result for gradient descent when $\\beta = 0$. But notice an immediate boon we get. Momentum allows us to crank up the step-size up by a factor of 2 before diverging.\n\n### The Critical Damping Coefficient\n\nThe true magic happens, however, when we find the sweet spot of $\\alpha$ and $\\beta$. Let us try to first optimize over $\\beta$.\n\nMomentum admits an interesting physical interpretation when $\\alpha$ is small: it is a discretization of a damped harmonic oscillator. Consider a physical simulation operating in discrete time (like a video game).\n\nWe can break this equation apart to see how each component affects the dynamics of the system. Here we plot, for $150$ iterates, the particleŌĆÖs velocity (the horizontal axis) against its position (the vertical axis), in a phase diagram.\n\nThis system is best imagined as a weight suspended on a spring. We pull the weight down by one unit, and we study the path it follows as it returns to equilibrium. In the analogy, the spring is the source of our external force $\\lambda_ix^k_i$, and equilibrium is the state when both the position $x^k_i$ and the speed $y^k_i$ are 0. The choice of $\\beta$ crucially affects the rate of return to equilibrium.\n\nThe critical value of $\\beta = (1 - \\sqrt{\\alpha \\lambda_i})^2$ gives us a convergence rate (in eigenspace $i$) of $1 - \\sqrt{\\alpha\\lambda_i}.$ A square root improvement over gradient descent, $1-\\alpha\\lambda_i$! Alas, this only applies to the error in the $i^{th}$ eigenspace, with $\\alpha$ fixed.\n\n### Optimal parameters\n\nTo get a global convergence rate, we must optimize over both $\\alpha$ and $\\beta$. This is a more complicated affair,6 but they work out to be $\\alpha = \\left(\\frac{2}{\\sqrt{\\lambda_{1}}+\\sqrt{\\lambda_{n}}}\\right)^{2} \\quad \\beta = \\left(\\frac{\\sqrt{\\lambda_{n}}-\\sqrt{\\lambda_{1}}}{\\sqrt{\\lambda_{n}}+\\sqrt{\\lambda_{1}}}\\right)^{2}$ Plug this into the convergence rate, and you get\n\nWith barely a modicum of extra effort, we have essentially square rooted the condition number! These gains, in principle, require explicit knowledge of $\\lambda_1$ and $\\lambda_n$. But the formulas reveal a simple guideline. When the problemŌĆÖs conditioning is poor, the optimal $\\alpha$ is approximately twice that of gradient descent, and the momentum term is close to $1$. So set $\\beta$ as close to $1$ as you can, and then find the highest $\\alpha$ which still converges. Being at the knifeŌĆÖs edge of divergence, like in gradient descent, is a good place to be.\n\nWhile the loss function of gradient descent had a graceful, monotonic curve, optimization with momentum displays clear oscillations. These ripples are not restricted to quadratics, and occur in all kinds of functions in practice. They are not cause for alarm, but are an indication that extra tuning of the hyperparameters is required.\n\n## Example: The Colorization Problem\n\nLetŌĆÖs look at how momentum accelerates convergence with a concrete example. On a grid of pixels let $G$ be the graph with vertices as pixels, $E$ be the set of edges connecting each pixel to its four neighboring pixels, and $D$ be a small set of a few distinguished vertices. Consider the problem of minimizing\n\nThe optimal solution to this problem is a vector of all $1$ŌĆÖs 7. An inspection of the gradient iteration reveals why we take a long time to get there. The gradient step, for each component, is some form of weighted average of the current value and its neighbors: $w_{i}^{k+1}=w_{i}^{k}-\\alpha\\sum_{j\\in N}(w_{i}^{k}-w_{j}^{k})-\\begin{cases} \\alpha(w_{i}^{k}-1) & i\\in D\\\\ 0 & i\\notin D \\end{cases}$ This kind of local averaging is effective at smoothing out local variations in the pixels, but poor at taking advantage of global structure. The updates are akin to a drop of ink, diffusing through water. Movement towards equilibrium is made only through local corrections and so, left undisturbed, its march towards the solution is slow and laborious. Fortunately, momentum speeds things up significantly.\n\nIn vectorized form, the colorization problem is\n\nThe Laplacian matrix, $L_G$ 8, which dominates the behavior of the optimization problem, is a valuable bridge between linear algebra and graph theory. This is a rich field of study, but one fact is pertinent to our discussion here. The conditioning of $L_G$, here defined as the ratio of the second eigenvector to the last (the first eigenvalue is always 0, with eigenvector equal to the matrix of all 1ŌĆ▓s), is directly connected to the connectivity of the graph.\n\nThese observations carry through to the colorization problem, and the intuition behind it should be clear. Well connected graphs allow rapid diffusion of information through the edges, while graphs with poor connectivity do not. And this principle, taken to the extreme, furnishes a class of functions so hard to optimize they reveal the limits of first order optimization.\n\n## The Limits of Descent\n\nLetŌĆÖs take a step back. We have, with a clever trick, improved the convergence of gradient descent by a quadratic factor with the introduction of a single auxiliary sequence. But is this the best we can do? Could we improve convergence even more with two sequences? Could one perhaps choose the $\\alpha$ŌĆÖs and $\\beta$ŌĆÖs intelligently and adaptively? It is tempting to ride this wave of optimism - to the cube root and beyond!\n\nUnfortunately, while improvements to the momentum algorithm do exist, they all run into a certain, critical, almost inescapable lower bound.\n\nTo understand the limits of what we can do, we must first formally define the algorithmic space in which we are searching. HereŌĆÖs one possible definition. The observation we will make is that both gradient descent and momentum can be ŌĆ£unrolledŌĆØ. Indeed, since $\\begin{array}{lll} w^{1} & \\!= & \\!w^{0} ~-~ \\alpha\\nabla f(w^{0})\\\\[0.35em] w^{2} & \\!= & \\!w^{1} ~-~ \\alpha\\nabla f(w^{1})\\\\[0.35em] & \\!= & \\!w^{0} ~-~ \\alpha\\nabla f(w^{0}) ~-~ \\alpha\\nabla f(w^{1})\\\\[0.35em] & ~ \\!\\vdots \\\\ w^{k+1} & \\!= & \\!w^{0} ~-~ \\alpha\\nabla f(w^{0}) ~-~~~~ \\cdots\\cdots ~~~~-~ \\alpha\\nabla f(w^{k}) \\end{array}$ we can write gradient descent as $w^{k+1} ~~=~~ w^{0} ~-~ \\alpha\\sum_i^k\\nabla f(w^{i}).$ A similar trick can be done with momentum: $w^{k+1} ~~=~~ w^{0} ~+~ \\alpha\\sum_i^k\\frac{(1-\\beta^{k+1-i})}{1-\\beta}\\nabla f(w^i).$ In fact, all manner of first order algorithms, including the Conjugate Gradient algorithm, AdaMax, Averaged Gradient and more, can be written (though not quite so neatly) in this unrolled form. Therefore the class of algorithms for which $w^{k+1} ~~=~~ w^{0} ~+~ \\sum_{i}^{k}\\gamma_{i}^{k}\\nabla f(w^{i}) \\qquad \\text{ for some } \\gamma_{i}^{k}$ contains momentum, gradient descent and a whole bunch of other algorithms you might dream up. This is what is assumed in Assumption 2.1.4 of Nesterov. But letŌĆÖs push this even further, and expand this class to allow different step-sizes for different directions. $w^{k+1} ~~=~~ w^{0} ~+~ \\sum_{i}^{k}\\Gamma_{i}^{k}\\nabla f(w^{i}) \\quad \\text{ for some diagonal matrix } \\Gamma_{i}^{k} .$ This class of methods covers most of the popular algorithms for training neural networks, including ADAM and AdaGrad. We shall refer to this class of methods as ŌĆ£Linear First Order MethodsŌĆØ, and we will show a single function all these methods ultimately fail on.\n\n### The Resisting Oracle\n\nEarlier, when we talked about the colorizer problem, we observed that wiry graphs cause bad conditioning in our optimization problem. Taking this to its extreme, we can look at a graph consisting of a single pathŌĆēŌĆöŌĆēa function so badly conditioned that Nesterov called a variant of it ŌĆ£the worst function in the worldŌĆØ. The function follows the same structure as the colorizer problem, and we shall call this the Convex Rosenbrock,\n\nThe optimal solution of this problem is $w_{i}^{\\star}=\\left(\\frac{\\sqrt{\\kappa}-1}{\\sqrt{\\kappa}+1}\\right)^{i}$ and the condition number of the problem $f^n$ approaches $\\kappa$ as $n$ goes to infinity. Now observe the behavior of the momentum algorithm on this function, starting from $w^0 = 0$.\n\nThe observations made in the above diagram are true for any Linear First Order algorithm. Let us prove this. First observe that each component of the gradient depends only on the values directly before and after it: $\\nabla f(x)_{i}=2w_{i}-w_{i-1}-w_{i+1} +\\frac{4}{\\kappa-1} w_{i}, \\qquad i \\neq 1.$ Therefore the fact we start at 0 guarantees that that component must remain stoically there till an element either before or after it turns nonzero. And therefore, by induction, for any linear first order algorithm,\n\n$\\begin{array}{lllllllll} w^{0} & = & [~~0, & 0, & 0, & \\ldots & 0, & 0, & \\ldots & 0~]\\\\[0.35em] w^{1} & = & [~w_{1}^{1}, & 0, & 0, & \\ldots & 0, & 0, & \\ldots & 0~]\\\\[0.35em] w^{2} & = & [~w_{1}^{2}, & w_{2}^{2}, & 0, & \\ldots & 0, & 0, & \\ldots & 0~]\\\\[0.35em] & ~ \\vdots \\\\ w^{k} & = & [~w_{1}^{k}, & w_{2}^{k}, & w_{3}^{k}, & \\ldots & w_{k}^{k}, & 0, & \\ldots & 0~].\\\\ \\end{array}$\n\nThink of this restriction as a ŌĆ£speed of lightŌĆØ of information transfer. Error signals will take at least $k$ steps to move from $w_0$ to $w_k$. We can therefore sum up the errors which cannot have changed yet9: \\begin{aligned} \\|w^{k}-w^{\\star}\\|_{\\infty}&\\geq\\max_{i\\geq k+1}\\{|w_{i}^{\\star}|\\}\\\\[0.9em]&=\\left(\\frac{\\sqrt{\\kappa}-1}{\\sqrt{\\kappa}+1}\\right)^{k+1}\\\\[0.9em]&=\\left(\\frac{\\sqrt{\\kappa}-1}{\\sqrt{\\kappa}+1}\\right)^{k}\\|w^{0}-w^{\\star}\\|_{\\infty}. \\end{aligned} As $n$ gets large, the condition number of $f^n$ approaches $\\kappa$. And the gap therefore closes; the convergence rate that momentum promises matches the best any linear first order algorithm can do. And we arrive at the disappointing conclusion that on this problem, we cannot do better.\n\nLike many such lower bounds, this result must not be taken literally, but spiritually. It, perhaps, gives a sense of closure and finality to our investigation. But this is not the final word on first order optimization. This lower bound does not preclude the possibility, for example, of reformulating the problem to change the condition number itself! There is still much room for speedups, if you understand the right places to look.\n\nThere is a final point worth addressing. All the discussion above assumes access to the true gradientŌĆēŌĆöŌĆēa luxury seldom afforded in modern machine learning. Computing the exact gradient requires a full pass over all the data, the cost of which can be prohibitively expensive. Instead, randomized approximations of the gradient, like minibatch sampling, are often used as a plug-in replacement of $\\nabla f(w)$. We can write the approximation in two parts,\n\nIt is helpful to think of our approximate gradient as the injection of a special kind of noise into our iteration. And using the machinery developed in the previous sections, we can deal with this extra term directly. On a quadratic, the error term cleaves cleanly into a separate term, where 10\n\nThe error term, $\\epsilon^k$, with its dependence on the $w^k$, is a fairly hairy object. Following , we model this as independent 0-mean Gaussian noise. In this simplified model, the objective also breaks into two separable components, a sum of a deterministic error and a stochastic error 11, visualized here.\n\nNote that there are a set of unfortunate tradeoffs which seem to pit the two components of error against each other. Lowering the step-size, for example, decreases the stochastic error, but also slows down the rate of convergence. And increasing momentum, contrary to popular belief, causes the errors to compound. Despite these undesirable properties, stochastic gradient descent with momentum has still been shown to have competitive performance on neural networks. As has observed, the transient phase seems to matter more than the fine-tuning phase in machine learning. And in fact, it has been recently suggested that this noise is a good thingŌĆēŌĆöŌĆēit acts as a implicit regularizer, which, like early stopping, prevents overfitting in the fine-tuning phase of optimization.\n\n## Onwards and Downwards\n\nThe study of acceleration is seeing a small revival within the optimization community. If the ideas in this article excite you, you may wish to read , which fully explores the idea of momentum as the discretization of a certain differential equation. But other, less physical, interpretations exist. There is an algebraic interpretation of momentum in terms of approximating polynomials [3, 14]. Geometric interpretations are emerging [15, 16], connecting momentum to older methods, like the Ellipsoid method. And finally, there are interpretations relating momentum to duality , perhaps providing a clue as how to accelerate second order methods and Quasi Newton (for a first step, see ). But like the proverbial blind men feeling an elephant, momentum seems like something bigger than the sum of its parts. One day, hopefully soon, the many perspectives will converge into a satisfying whole.\n\n### Acknowledgments\n\nI am deeply indebted to the editorial contributions of Shan Carter and Chris Olah, without which this article would be greatly impoverished. Shan Carter provided complete redesigns of many of my original interactive widgets, a visual coherence for all the figures, and valuable optimizations to the pageŌĆÖs performance. Chris Olah provided impeccable editorial feedback at all levels of detail and abstraction - from the structure of the content, to the alignment of equations.\n\nI am also grateful to Michael Nielsen for providing the title of this article, which really tied the article together. Marcos Ginestra provided editorial input for the earliest drafts of this article, and spiritual encouragement when I needed it the most. And my gratitude extends to my reviewers, Matt Hoffman and Anonymous Reviewer B for their astute observations and criticism. I would like to thank Reviewer B, in particular, for pointing out two non-trivial errors in the original manuscript (discussion here). The contour plotting library for the hero visualization is the joint work of Ben Frederickson, Jeff Heer and Mike Bostock.\n\nMany thanks to the numerous pull requests and issues filed on github. Thanks in particular, to Osemwaro Pedro for spotting an off by one error in one of the equations. And also to Dan Schmidt who did an editing pass over the whole project, correcting numerous typographical and grammatical errors.\n\n### Footnotes\n\n1. It is possible, however, to construct very specific counterexamples where momentum does not converge, even on convex functions. See for a counterexample.\n2. In Tikhonov Regression we add a quadratic penalty to the regression, minimizing $\\text{minimize}\\qquad\\tfrac{1}{2}\\|Zw-d\\|^{2}+\\frac{\\eta}{2}\\|w\\|^{2}=\\tfrac{1}{2}w^{T}(Z^{T}Z+\\eta I)w-(Zd)^{T}w$ Recall that $Z^{T}Z=Q\\ \\text{diag}(\\Lambda_{1},\\ldots,\\Lambda_{n})\\ Q^T$. The solution to Tikhonov Regression is therefore $(Z^{T}Z+\\eta I)^{-1}(Zd)=Q\\ \\text{diag}\\left(\\frac{1}{\\lambda_{1}+\\eta},\\cdots,\\frac{1}{\\lambda_{n}+\\eta}\\right)Q^T(Zd)$ We can think of regularization as a function which decays the largest eigenvalues, as follows: $\\text{Tikhonov Regularized } \\lambda_i = \\frac{1}{\\lambda_{i}+\\eta}=\\frac{1}{\\lambda_{i}}\\left(1-\\left(1+\\lambda_{i}/\\eta\\right)^{-1}\\right).$ Gradient descent can be seen as employing a similar decay, but with the decay rate $\\text{ Gradient Descent Regularized } \\lambda_i = \\frac{1}{\\lambda_i} \\left( 1-\\left(1-\\alpha\\lambda_{i}\\right)^{k} \\right)$ instead. Note that this decay is dependent on the step-size.\n3. This is true as we can write updates in matrix form as $\\left(\\!\\!\\begin{array}{cc} 1 & 0\\\\ \\alpha & 1 \\end{array}\\!\\!\\right)\\Bigg(\\!\\!\\begin{array}{c} y_{i}^{k+1}\\\\ x_{i}^{k+1} \\end{array}\\!\\!\\Bigg)=\\left(\\!\\!\\begin{array}{cc} \\beta & \\lambda_{i}\\\\ 0 & 1 \\end{array}\\!\\!\\right)\\left(\\!\\!\\begin{array}{c} y_{i}^{k}\\\\ x_{i}^{k} \\end{array}\\!\\!\\right)$ which implies, by inverting the matrix on the left, $\\Bigg(\\!\\!\\begin{array}{c} y_{i}^{k+1}\\\\ x_{i}^{k+1} \\end{array}\\!\\!\\Bigg)=\\left(\\!\\!\\begin{array}{cc} \\beta & \\lambda_{i}\\\\ -\\alpha\\beta & 1-\\alpha\\lambda_{i} \\end{array}\\!\\!\\right)\\left(\\!\\!\\begin{array}{c} y_{i}^{k}\\\\ x_{i}^{k} \\end{array}\\!\\!\\right)=R^{k+1}\\left(\\!\\!\\begin{array}{c} x_{i}^{0}\\\\ y_{i}^{0} \\end{array}\\!\\!\\right)$\n4. We can write out the convergence rates explicitly. The eigenvalues are \\begin{aligned} \\sigma_{1} & =\\frac{1}{2}\\left(1-\\alpha\\lambda+\\beta+\\sqrt{(-\\alpha\\lambda+\\beta+1)^{2}-4\\beta}\\right)\\\\[0.6em] \\sigma_{2} & =\\frac{1}{2}\\left(1-\\alpha\\lambda+\\beta-\\sqrt{(-\\alpha\\lambda+\\beta+1)^{2}-4\\beta}\\right) \\end{aligned} When the $(-\\alpha\\lambda+\\beta+1)^{2}-4\\beta<0$ is less than zero, then the roots are complex and the convergence rate is \\begin{aligned} |\\sigma_{1}|=|\\sigma_{2}| & =\\sqrt{(1-\\alpha\\lambda+\\beta)^{2}+|(-\\alpha\\lambda+\\beta+1)^{2}-4\\beta|}=2\\sqrt{\\beta} \\end{aligned} Which is, surprisingly, independent of the step-size or the eigenvalue $\\alpha\\lambda$. When the roots are real, the convergence rate is $\\max\\{|\\sigma_{1}|,|\\sigma_{2}|\\}=\\tfrac{1}{2}\\max\\left\\{ |1-\\alpha\\lambda_{i}+\\beta\\pm\\sqrt{(1-\\alpha\\lambda_{i}+\\beta)^{2}-4\\beta}|\\right\\}$\n5. This can be derived by reducing the inequalities for all 4 + 1 cases in the explicit form of the convergence rate above.\n6. We must optimize over $\\min_{\\alpha,\\beta}\\max\\left\\{ \\bigg\\| \\! \\left(\\begin{array}{cc} \\beta & \\lambda_{i}\\\\ -\\alpha\\beta & 1-\\alpha\\lambda_{i} \\end{array}\\right) \\! \\bigg\\|,\\ldots,\\bigg\\| \\! \\left(\\begin{array}{cc} \\beta & \\lambda_{n}\\\\ -\\alpha\\beta & 1-\\alpha\\lambda_{n} \\end{array}\\right)\\! \\bigg\\|\\right\\}.$ ( $\\|\\cdot \\|$ here denotes the magnitude of the maximum eigenvalue), and occurs when the roots of the characteristic polynomial are repeated for the matrices corresponding to the extremal eigenvalues.\n7. The above optimization problem is bounded from below by $0$, and vector of all $1$ŌĆÖs achieve this.\n8. This can be written explicitly as $[L_{G}]_{ij}=\\begin{cases} \\text{degree of vertex }i & i=j\\\\ -1 & i\\neq j,(i,j)\\text{ or }(j,i)\\in E\\\\ 0 & \\text{otherwise} \\end{cases}$\n9. We use the infinity norm to measure our error, similar results can be derived for the 1 and 2 norms.\n10. The momentum iterations are \\begin{aligned} z^{k+1}&=\\beta z^{k}+ A w^{k} + \\text{error}(w^k) \\\\[0.4em] w^{k+1}&=w^{k}-\\alpha z^{k+1}. \\end{aligned} which, after a change of variables, become $\\left(\\!\\!\\begin{array}{cc} 1 & 0\\\\ \\alpha & 1 \\end{array}\\!\\!\\right)\\Bigg(\\!\\!\\begin{array}{c} y_{i}^{k+1}\\\\ x_{i}^{k+1} \\end{array}\\!\\!\\Bigg)=\\left(\\!\\!\\begin{array}{cc} \\beta & \\lambda_{i}\\\\ 0 & 1 \\end{array}\\!\\!\\right)\\left(\\!\\!\\begin{array}{c} y_{i}^{k}\\\\ x_{i}^{k} \\end{array}\\!\\!\\right)+\\left(\\!\\!\\begin{array}{c} \\epsilon_{i}^{k}\\\\ 0 \\end{array}\\!\\!\\right)$ Inverting the $2 \\times 2$ matrix on the left, and applying the formula recursively yields the final solution.\n11. On the 1D function $f(x)=\\frac{\\lambda}{2}x^{2}$, the objective value is \\begin{aligned} \\mathbf{E}f(x^{k})&=\\frac{\\lambda}{2}\\mathbf{E}[(x^{k})^{2}]\\\\&=\\frac{\\lambda}{2}\\mathbf{E}\\left(e_{2}^{T}R^{k}\\left(\\begin{array}{c} y^{0}\\\\ x^{0} \\end{array}\\right)+\\epsilon^{k}e_{2}^{T}\\sum_{i=1}^{k}R^{k-i}\\left(\\begin{array}{c} 1\\\\ -\\alpha \\end{array}\\right)\\right)^{2}\\\\&=\\frac{\\lambda}{2}e_{2}^{T}R^{k}\\left(\\begin{array}{c} y^{0}\\\\ x^{0} \\end{array}\\right)+\\frac{\\lambda}{2}\\mathbf{E}\\left(\\epsilon^{k}e_{2}^{T}\\sum_{i=1}^{k}R^{k-i}\\left(\\begin{array}{c} 1\\\\ -\\alpha \\end{array}\\right)\\right)^{2}\\\\&=\\frac{\\lambda}{2}e_{2}^{T}R^{k}\\left(\\begin{array}{c} y^{0}\\\\ x^{0} \\end{array}\\right)+\\frac{\\lambda}{2}\\mathbf{E}[\\epsilon^{k}]\\,\\cdot\\,\\sum_{i=1}^{k}\\left(e_{2}^{T}R^{k-i}\\left(\\begin{array}{c} 1\\\\ -\\alpha \\end{array}\\right)\\right)^{2}\\\\&=\\frac{\\lambda}{2}e_{2}^{T}R^{k}\\left(\\begin{array}{c} y^{0}\\\\ x^{0} \\end{array}\\right)+\\frac{\\lambda\\mathbf{E}[\\epsilon^{k}}{2}\\cdot\\sum_{i=1}^{k}\\gamma_{i}^{2}, \\qquad \\gamma_i = e_{2}^{T}R^{k-i}\\left(\\begin{array}{c} 1\\\\ -\\alpha \\end{array}\\right) \\end{aligned} The third inequality uses the fact that $\\mathbf{E} \\epsilon^k = 0$ and the fourth uses the fact they are uncorrelated.\n\n### References\n\n1. On the importance of initialization and momentum in deep learning. ŌĆé[PDF]\nSutskever, I., Martens, J., Dahl, G.E. and Hinton, G.E., 2013. ICML (3), Vol 28, pp. 1139ŌĆö1147.\n2. Some methods of speeding up the convergence of iteration methods ŌĆé[PDF]\nPolyak, B.T., 1964. USSR Computational Mathematics and Mathematical Physics, Vol 4(5), pp. 1ŌĆö17. Elsevier. DOI: 10.1016/0041-5553(64)90137-5\nRutishauser, H., 1959. Refined iterative methods for computation of the solution and the eigenvalues of self-adjoint boundary value problems, pp. 24ŌĆö49. Springer. DOI: 10.1007/978-3-0348-7224-9_2\n4. Analysis and design of optimization algorithms via integral quadratic constraints ŌĆé[PDF]\nLessard, L., Recht, B. and Packard, A., 2016. SIAM Journal on Optimization, Vol 26(1), pp. 57ŌĆö95. SIAM.\n5. Introductory lectures on convex optimization: A basic course\nNesterov, Y., 2013. , Vol 87. Springer Science \\& Business Media. DOI: 10.1007/978-1-4419-8853-9\nAmari, S., 1998. Neural computation, Vol 10(2), pp. 251ŌĆö276. MIT Press. DOI: 10.1162/089976698300017746\n7. Deep Learning, NIPSŌĆ▓2015 Tutorial ŌĆé[PDF]\nHinton, G., Bengio, Y. and LeCun, Y., 2015.\nOŌĆÖDonoghue, B. and Candes, E., 2015. Foundations of computational mathematics, Vol 15(3), pp. 715ŌĆö732. Springer. DOI: 10.1007/s10208-013-9150-3\n9. The Nth Power of a 2x2 Matrix. ŌĆé[PDF]\nWilliams, K., 1992. Mathematics Magazine, Vol 65(5), pp. 336. MAA. DOI: 10.2307/2691246\n10. From Averaging to Acceleration, There is Only a Step-size. ŌĆé[PDF]\nFlammarion, N. and Bach, F.R., 2015. COLT, pp. 658ŌĆö695.\n11. On the momentum term in gradient descent learning algorithms ŌĆé[PDF]\nQian, N., 1999. Neural networks, Vol 12(1), pp. 145ŌĆö151. Elsevier. DOI: 10.1016/s0893-6080(98)00116-6\n12. Understanding deep learning requires rethinking generalization ŌĆé[PDF]\nZhang, C., Bengio, S., Hardt, M., Recht, B. and Vinyals, O., 2016. arXiv preprint arXiv:1611.03530.\n13. A differential equation for modeling NesterovŌĆÖs accelerated gradient method: Theory and insights ŌĆé[PDF]\nSu, W., Boyd, S. and Candes, E., 2014. Advances in Neural Information Processing Systems, pp. 2510ŌĆö2518.\n14. The Zen of Gradient Descent ŌĆé[HTML]\nHardt, M., 2013.\n15. A geometric alternative to NesterovŌĆÖs accelerated gradient descent ŌĆé[PDF]\nBubeck, S., Lee, Y.T. and Singh, M., 2015. arXiv preprint arXiv:1506.08187.\n16. An optimal first order method based on optimal quadratic averaging ŌĆé[PDF]\nDrusvyatskiy, D., Fazel, M. and Roy, S., 2016. arXiv preprint arXiv:1604.06543.\n17. Linear coupling: An ultimate unification of gradient and mirror descent ŌĆé[PDF]\nAllen-Zhu, Z. and Orecchia, L., 2014. arXiv preprint arXiv:1407.1537.\n18. Accelerating the cubic regularization of NewtonŌĆÖs method on convex problems ŌĆé[PDF]\nNesterov, Y., 2008. Mathematical Programming, Vol 112(1), pp. 159ŌĆö181. Springer. DOI: 10.1007/s10107-006-0089-x\n\nView all changes to this article since it was first published. If you see a mistake or want to suggest a change, please create an issue on GitHub.\n\n### Citations and Reuse\n\nDiagrams and text are licensed under Creative Commons Attribution CC-BY 2.0, unless noted otherwise, with the source available on GitHub. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: ŌĆ£Figure from ŌĆ”ŌĆØ.\n\nGoh, \"Why Momentum Really Works\", Distill, 2017. http://doi.org/10.23915/distill.00006\n@article{goh2017why,\n}" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.84139323,"math_prob":0.9979371,"size":35188,"snap":"2022-27-2022-33","text_gpt3_token_len":9759,"char_repetition_ratio":0.12738745,"word_repetition_ratio":0.1747937,"special_character_ratio":0.24033761,"punctuation_ratio":0.13688639,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99951935,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-20T05:55:25Z\",\"WARC-Record-ID\":\"<urn:uuid:410e02a6-22d5-409c-9c84-d7f39e041e78>\",\"Content-Length\":\"1049262\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b1837123-fa9a-4e86-80df-7646a6539f5a>\",\"WARC-Concurrent-To\":\"<urn:uuid:cc292608-f8b6-4ad5-b3dc-054966129dce>\",\"WARC-IP-Address\":\"151.101.65.195\",\"WARC-Target-URI\":\"https://distill.pub/2017/momentum/?utm_campaign=Data%20Machina&utm_medium=email&utm_source=Revue%20newsletter\",\"WARC-Payload-Digest\":\"sha1:APXKUKLEJHYRNW5DJP6IYXXX362XVZSM\",\"WARC-Block-Digest\":\"sha1:43E5ABXVULTLFQJPQEOJQHPDUIKSZP3B\",\"WARC-Truncated\":\"length\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882573908.30_warc_CC-MAIN-20220820043108-20220820073108-00447.warc.gz\"}"}
https://tipcalc.net/how-much-is-a-10-percent-tip-on-162.9
[ "# Tip Calculator\n\nHow much is a 10 percent tip on \\$162.9?\n\nTIP:\n\\$ 0\nTOTAL:\n\\$ 0\n\nTIP PER PERSON:\n\\$ 0\nTOTAL PER PERSON:\n\\$ 0\n\n## How much is a 10 percent tip on \\$162.9? How to calculate this tip?\n\nAre you looking for the answer to this question: How much is a 10 percent tip on \\$162.9? Here is the answer.\n\nLet's see how to calculate a 10 percent tip when the amount to be paid is 162.9. Tip is a percentage, and a percentage is a number or ratio expressed as a fraction of 100. This means that a 10 percent tip can also be expressed as follows: 10/100 = 0.1 . To get the tip value for a \\$162.9 bill, the amount of the bill must be multiplied by 0.1, so the calculation is as follows:\n\n1. TIP = 162.9*10% = 162.9*0.1 = 16.29\n\n2. TOTAL = 162.9+16.29 = 179.19\n\n3. Rounded to the nearest whole number: 179\n\nIf you want to know how to calculate the tip in your head in a few seconds, visit the Tip Calculator Home.\n\n## So what is a 10 percent tip on a \\$162.9? The answer is 16.29!\n\nOf course, it may happen that you do not pay the bill or the tip alone. A typical case is when you order a pizza with your friends and you want to split the amount of the order. For example, if you are three, you simply need to split the tip and the amount into three. In this example it means:\n\n1. Total amount rounded to the nearest whole number: 179\n\n2. Split into 3: 59.67\n\nSo in the example above, if the pizza order is to be split into 3, you’ll have to pay \\$59.67 . Of course, you can do these settings in Tip Calculator. You can split the tip and the total amount payable among the members of the company as you wish. So the TipCalc.net page basically serves as a Pizza Tip Calculator, as well.\n\n## Tip Calculator Examples (BILL: \\$162.9)\n\nHow much is a 5% tip on \\$162.9?\nHow much is a 10% tip on \\$162.9?\nHow much is a 15% tip on \\$162.9?\nHow much is a 20% tip on \\$162.9?\nHow much is a 25% tip on \\$162.9?\nHow much is a 30% tip on \\$162.9?" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9674502,"math_prob":0.99343973,"size":2607,"snap":"2022-27-2022-33","text_gpt3_token_len":856,"char_repetition_ratio":0.32308874,"word_repetition_ratio":0.24598931,"special_character_ratio":0.4050633,"punctuation_ratio":0.16332377,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99777305,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-16T16:40:24Z\",\"WARC-Record-ID\":\"<urn:uuid:72cd8c58-d1bd-431a-98b9-0df2ef524073>\",\"Content-Length\":\"10973\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:4c627ba3-3bef-4b8b-a86f-1d259e170428>\",\"WARC-Concurrent-To\":\"<urn:uuid:269b2ef9-f150-4ccb-b490-aab3357b71e0>\",\"WARC-IP-Address\":\"161.35.97.186\",\"WARC-Target-URI\":\"https://tipcalc.net/how-much-is-a-10-percent-tip-on-162.9\",\"WARC-Payload-Digest\":\"sha1:FBXHS3XLIY7LJMMLCDI2TFYYQQX7RSRB\",\"WARC-Block-Digest\":\"sha1:2UEXFZ4KV3LDZRVHBOOHETLNAQIYDPYK\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882572408.31_warc_CC-MAIN-20220816151008-20220816181008-00550.warc.gz\"}"}
https://spec.polkadot.network/chap-host-api
[ "# Appendix B: Host API\n\nDescription of the expected environment available for import by the Polkadot Runtime\n\n## B.1. Preliminaries​\n\nThe Polkadot Host API is a set of functions that the Polkadot Host exposes to Runtime to access external functions needed for various reasons, such as the Storage of the content, access and manipulation, memory allocation, and also efficiency. The encoding of each data type is specified or referenced in this section. If the encoding is not mentioned, then the default Wasm encoding is used, such as little-endian byte ordering for integers.\n\n###### Definition 214. Exposed Host API​\n\nBy $\\text{RE}_{{B}}$ we refer to the API exposed by the Polkadot Host, which interacts, manipulates, and responds based on the state storage whose state is set at the end of the execution of block ${B}$.\n\n###### Definition 215. Runtime Pointer​\n\nThe Runtime pointer type is an unsigned 32-bit integer representing a pointer to data in memory. This pointer is the primary way to exchange data of fixed/known size between the Runtime and Polkadot Host.\n\n###### Definition 216. Runtime Pointer Size​\n\nThe Runtime pointer-size type is an unsigned 64-bit integer representing two consecutive integers. The least significant is Runtime pointer (Definition 215). The most significant provides the size of the data in bytes. This representation is the primary way to exchange data of arbitrary/dynamic sizes between the Runtime and the Polkadot Host.\n\n###### Definition 217. Lexicographic ordering​\n\nLexicographic ordering refers to the ascending ordering of bytes or byte arrays, such as:\n\n${\\left[{0},{0},{2}\\right]}<{\\left[{0},{1},{1}\\right]}<{\\left[{1}\\right]}<{\\left[{1},{1},{0}\\right]}<{\\left[{2}\\right]}<{\\left[\\ldots\\right]}$\n\nThe functions are specified in each subsequent subsection for each category of those functions.\n\n## B.2. Storage​\n\nInterface for accessing the storage from within the runtime.\n\ndanger\n\nAs of now, the storage API should silently ignore any keys that start with the :child_storage:default: prefix. This applies to reading and writing. If the function expects a return value, then None (Definition 200) should be returned. See substrate issue #12461.\n\n###### Definition 218. State Version​\n\nThe state version, ${v}$, dictates how a Merkle root should be constructed. The data structure is a varying type of the following format:\n\n${v}={\\left\\lbrace\\begin{matrix}{0}&\\text{full values}\\\\{1}&\\text{node hashes}\\end{matrix}\\right.}$\n\nwhere ${0}$ indicates that the values of the keys should be inserted into the trie directly, and ${1}$ makes use of \"node hashes\" when calculating the Merkle proof (Definition 28).\n\n### B.2.1. ext_storage_set​\n\nSets the value under a given key into storage.\n\n(func $ext_storage_set_version_1 (param$key i64) (param $value i64)) Arguments • key: a pointer-size (Definition 216) containing the key. • value: a pointer-size (Definition 216) containing the value. ### B.2.2. ext_storage_get​ Retrieves the value associated with the given key from storage. #### B.2.2.1. Version 1 - Prototype​ (func$ext_storage_get_version_1 (param $key i64) (result i64)) Arguments ### B.2.3. ext_storage_read​ Gets the given key from storage, placing the value into a buffer and returning the number of bytes that the entry in storage has beyond the offset. #### B.2.3.1. Version 1 - Prototype​ (func$ext_storage_read_version_1 (param $key i64) (param$value_out i64) (param $offset i32) (result i64)) Arguments • key: a pointer-size (Definition 216) containing the key. • value_out: a pointer-size (Definition 216) containing the buffer to which the value will be written to. This function will never write more then the length of the buffer, even if the value’s length is bigger. • offset: an u32 integer (typed as i32 due to wasm types) containing the offset beyond the value should be read from. • result: a pointer-size (Definition 216) pointing to a SCALE encoded Option value (Definition 200) containing an unsigned 32-bit integer representing the number of bytes left at supplied offset. Returns None if the entry does not exist. ### B.2.4. ext_storage_clear​ Clears the storage of the given key and its value. Non-existent entries are silently ignored. #### B.2.4.1. Version 1 - Prototype​ (func$ext_storage_clear_version_1 (param $key_data i64)) Arguments • key: a pointer-size (Definition 216) containing the key. ### B.2.5. ext_storage_exists​ Checks whether the given key exists in storage. #### B.2.5.1. Version 1 - Prototype​ (func$ext_storage_exists_version_1 (param $key_data i64) (return i32)) Arguments • key: a pointer-size (Definition 216) containing the key. • return: an i32 integer value equal to 1 if the key exists or a value equal to 0 if otherwise. ### B.2.6. ext_storage_clear_prefix​ Clear the storage of each key/value pair where the key starts with the given prefix. #### B.2.6.1. Version 1 - Prototype​ (func$ext_storage_clear_prefix_version_1 (param $prefix i64)) Arguments • prefix: a pointer-size (Definition 216) containing the prefix. #### B.2.6.2. Version 2 - Prototype​ (func$ext_storage_clear_prefix_version_2 (param $prefix i64) (param$limit i64) (return i64))\n\nArguments\n\n• prefix: a pointer-size (Definition 216) containing the prefix.\n\n• limit: a pointer-size (Definition 216) to an Option type (Definition 200) containing an unsigned 32-bit integer indicating the limit on how many keys should be deleted. No limit is applied if this is None. Any keys created during the current block execution do not count toward the limit.\n\n• return: a pointer-size (Definition 216) to the following variant, ${k}$:\n\n${k}={\\left\\lbrace\\begin{matrix}{0}&\\rightarrow{c}\\\\{1}&\\rightarrow{c}\\end{matrix}\\right.}$\n\nwhere 0 indicates that all keys of the child storage have been removed, followed by the number of removed keys, ${c}$. The variant 1 indicates that there are remaining keys, followed by the number of removed keys.\n\n### B.2.7. ext_storage_append​\n\nAppend the SCALE encoded value to a SCALE encoded sequence (Definition 202) at the given key. This function assumes that the existing storage item is either empty or a SCALE-encoded sequence and that the value to append is also SCALE encoded and of the same type as the items in the existing sequence.\n\nTo improve performance, this function is allowed to skip decoding the entire SCALE encoded sequence and instead can just append the new item to the end of the existing data and increment the length prefix ${\\text{Enc}_{{\\text{SC}}}^{{\\text{Len}}}}$.\n\ncaution\n\nIf the storage item does not exist or is not SCALE encoded, the storage item will be set to the specified value, represented as a SCALE-encoded byte array.\n\n(func $ext_storage_append_version_1 (param$key i64) (param $value i64)) Arguments • key: a pointer-size (Definition 216) containing the key. • value: a pointer-size (Definition 216) containing the value to be appended. ### B.2.8. ext_storage_root​ Compute the storage root. #### B.2.8.1. Version 1 - Prototype​ (func$ext_storage_root_version_1 (return i64))\n\nArguments\n\n• return: a pointer-size (Definition 216) to a buffer containing the 256-bit Blake2 storage root.\n\n#### B.2.8.2. Version 2 - Prototype​\n\n(func $ext_storage_root_version_2 (param$version i32) (return i64))\n\nArguments\n\n• version: the state version (Definition 218).\n\n• return: a pointer-size (Definition 216) to the buffer containing the 256-bit Blake2 storage root.\n\n### B.2.9. ext_storage_changes_root​\n\ninfo\n\nThis function is not longer used and only exists for compatibility reasons.\n\n#### B.2.9.1. Version 1 - Prototype​\n\n(func $ext_storage_changes_root_version_1 (param$parent_hash i64) (return i64))\n\nArguments\n\n### B.2.10. ext_storage_next_key​\n\nGet the next key in storage after the given one in lexicographic order (Definition 217). The key provided to this function may or may not exist in storage.\n\n#### B.2.10.1. Version 1 - Prototype​\n\n(func $ext_storage_next_key_version_1 (param$key i64) (return i64))\n\nArguments\n\n• key: a pointer-size (Definition 216) to the key.\n\n• return: a pointer-size (Definition 216) to the SCALE encoded Option value (Definition 200) containing the next key in lexicographic order.\n\n### B.2.11. ext_storage_start_transaction​\n\nStart a new nested transaction. This allows to either commit or roll back all changes that are made after this call. For every transaction, there must be a matching call to either ext_storage_rollback_transaction (Section B.2.12.) or ext_storage_commit_transaction (Section B.2.13.). This is also effective for all values manipulated using the child storage API (Section B.3.). It’s legal to call this function multiple times in a row.\n\ncaution\n\nThis is a low-level API that is potentially dangerous as it can easily result in unbalanced transactions. Runtimes should use high-level storage abstractions.\n\nArguments\n\n• None.\n\n### B.2.13. ext_storage_commit_transaction​\n\nCommit the last transaction started by ext_storage_start_transaction (Section B.2.11.). Any changes made during that transaction are committed to the main state. It’s legal to call this function multiple times in a row.\n\ncaution\n\nPanics if ext_storage_start_transaction (Section B.2.11.) was not called.\n\nArguments\n\n### B.3.3. ext_default_child_storage_read​\n\nGets the given key from storage, placing the value into a buffer and returning the number of bytes that the entry in storage has beyond the offset.\n\nArguments\n\n### B.3.5. ext_default_child_storage_storage_kill​\n\nClears an entire child storage.\n\n#### B.3.5.1. Version 1 - Prototype​\n\n(func $ext_default_child_storage_storage_kill_version_1 (param$child_storage_key i64))\n\nArguments\n\n(func $ext_default_child_storage_storage_kill_version_2 (param$child_storage_key i64) (param $limit i64) (return i32)) Arguments • child_storage_key: a pointer-size (Definition 216) to the child storage key (Definition 219). • limit: a pointer-size (Definition 216) to an Option type (Definition 200) containing an unsigned 32-bit integer indicating the limit on how many keys should be deleted. No limit is applied if this is None. Any keys created during the current block execution do not count toward the limit. • return: a value equal to 1 if all the keys of the child storage have been deleted or a value equal to 0 if there are remaining keys. #### B.3.5.3. Version 3 - Prototype​ (func$ext_default_child_storage_storage_kill_version_3 (param $child_storage_key i64) (param$limit i64) (return i64))\n\nArguments\n\n• child_storage_key: a pointer-size (Definition 216) to the child storage key (Definition 219).\n\n• limit: a pointer-size (Definition 216) to an Option type (Definition 200) containing an unsigned 32-bit integer indicating the limit on how many keys should be deleted. No limit is applied if this is None. Any keys created during the current block execution do not count toward the limit.\n\n• return: a pointer-size (Definition 216) to the following variant, ${k}$:\n\n${k}={\\left\\lbrace\\begin{matrix}{0}&\\rightarrow{c}\\\\{1}&\\rightarrow{c}\\end{matrix}\\right.}$\n\nwhere 0 indicates that all keys of the child storage have been removed, followed by the number of removed keys, ${c}$. The variant 1 indicates that there are remaining keys, followed by the number of removed keys.\n\n### B.3.6. ext_default_child_storage_exists​\n\nChecks whether the given key exists in the child storage.\n\nArguments\n\n#### B.3.7.2. Version 2 - Prototype​\n\n(func $ext_default_child_storage_clear_prefix_version_2 (param$child_storage_key i64) (param $prefix i64) (param$limit i64) (return i64))\n\nArguments\n\n• child_storage_key: a pointer-size (Definition 216) to the child storage key (Definition 219).\n\n• prefix: a pointer-size (Definition 216) to the prefix.\n\n• limit: a pointer-size (Definition 216) to an Option type (Definition 200) containing an unsigned 32-bit integer indicating the limit on how many keys should be deleted. No limit is applied if this is None. Any keys created during the current block execution do not count towards the limit.\n\n• return: a pointer-size (Definition 216) to the following variant, ${k}$:\n\n${k}={\\left\\lbrace\\begin{matrix}{0}&\\rightarrow{c}\\\\{1}&\\rightarrow{c}\\end{matrix}\\right.}$\n\nwhere 0 indicates that all keys of the child storage have been removed, followed by the number of removed keys, ${c}$. The variant 1 indicates that there are remaining keys, followed by the number of removed keys.\n\n### B.3.8. ext_default_child_storage_root​\n\nCommits all existing operations and computes the resulting child storage root.\n\n#### B.3.8.1. Version 1 - Prototype​\n\n(func $ext_default_child_storage_root_version_1 (param$child_storage_key i64) (return i64))\n\nArguments\n\n(func $ext_default_child_storage_root_version_2 (param$child_storage_key i64) (param $version i32) (return i64)) Arguments ### B.3.9. ext_default_child_storage_next_key​ Gets the next key in storage after the given one in lexicographic order (Definition 217). The key provided to this function may or may not exist in storage. #### B.3.9.1. Version 1 - Prototype​ (func$ext_default_child_storage_next_key_version_1 (param $child_storage_key i64) (param$key i64) (return i64))\n\nArguments\n\n• child_storage_key: a pointer-size (Definition 216) to the child storage key (Definition 219).\n\n• key: a pointer-size (Definition 216) to the key.\n\n• return: a pointer-size (Definition 216) to the SCALE encoded as defined in Definition 200 containing the next key in lexicographic order. Returns if the entry cannot be found.\n\n## B.4. Crypto​\n\nInterfaces for working with crypto related types from within the runtime.\n\n###### Definition 220. Key Type Identifier​\n\nCryptographic keys are stored in separate key stores based on their intended use case. The separate key stores are identified by a 4-byte ASCII key type identifier. The following known types are available:\n\n###### Table 5. Table of known key type identifiers​\nIdDescription\naccoKey type for the controlling accounts\nbabeKey type for the Babe module\ngranKey type for the Grandpa module\nimonKey type for the ImOnline module\naudiKey type for the AuthorityDiscovery module\nparaKey type for the Parachain Validator Key\nasgnKey type for the Parachain Assignment Key\n###### Definition 221. ECDSA Verify Error​\n\nEcdsaVerifyError is a varying data type (Definition 198) that specifies the error type when using ECDSA recovery functionality. The following values are possible:\n\n###### Table 6. Table of error types in ECDSA recovery​\nIdDescription\n0Incorrect value of R or S\n1Incorrect value of V\n2Invalid signature\n\n### B.4.1. ext_crypto_ed25519_public_keys​\n\nReturns all ed25519 public keys for the given key identifier from the keystore.\n\n#### B.4.1.1. Version 1 - Prototype​\n\n(func $ext_crypto_ed25519_public_keys_version_1 (param$key_type_id i32) (return i64))\n\nArguments\n\n### B.4.2. ext_crypto_ed25519_generate​\n\nGenerates an ed25519 key for the given key type using an optional BIP-39 seed and stores it in the keystore.\n\ncaution\n\nPanics if the key cannot be generated, such as when an invalid key type or invalid seed was provided.\n\nArguments\n\n### B.4.8. ext_crypto_sr25519_sign​\n\nSigns the given message with the sr25519 key that corresponds to the given public key and key type in the keystore.\n\n#### B.4.8.1. Version 1 - Prototype​\n\n(func $ext_crypto_sr25519_sign_version_1 (param$key_type_id i32) (param $key i32) (param$msg i64) (return i64))\n\nArguments\n\n• key_type_id: a pointer (Definition 215) to the key identifier (Definition 220).\n\n• key: a pointer to the buffer containing the 256-bit public key.\n\n• msg: a pointer-size (Definition 216) to the message that is to be signed.\n\n• return: a pointer-size (Definition 216) to the SCALE encoded Option value (Definition 200) containing the 64-byte signature. This function returns None if the public key cannot be found in the key store.\n\n### B.4.9. ext_crypto_sr25519_verify​\n\nVerifies an sr25519 signature.\n\n#### B.4.9.1. Version 1 - Prototype​\n\n(func $ext_crypto_sr25519_verify_version_1 (param$sig i32) (param $msg i64) (param$key i32) (return i32))\n\nArguments\n\n• sig: a pointer (Definition 215) to the buffer containing the 64-byte signature.\n\n• msg: a pointer-size (Definition 216) to the message that is to be verified.\n\n• key: a pointer to the buffer containing the 256-bit public key.\n\n• return: a i32 integer value equal to 1 if the signature is valid or a value equal to 0 if otherwise.\n\n#### B.4.9.2. Version 2 - Prototype​\n\n(func $ext_crypto_sr25519_verify_version_2 (param$sig i32) (param $msg i64) (param$key i32) (return i32))\n\nArguments\n\n• sig: a pointer (Definition 215) to the buffer containing the 64-byte signature.\n\n• msg: a pointer-size (Definition 216) to the message that is to be verified.\n\n• key: a pointer to the buffer containing the 256-bit public key.\n\n• return: a i32 integer value equal to 1 if the signature is valid or a value equal to 0 if otherwise.\n\n### B.4.10. ext_crypto_sr25519_batch_verify​\n\nRegisters a sr25519 signature for batch verification. Batch verification is enabled by calling ext_crypto_start_batch_verify (Section B.4.20.). The result of the verification is returned by ext_crypto_finish_batch_verify (Section B.4.21.). If batch verification is not enabled, the signature is verified immediately.\n\n#### B.4.10.1. Version 1​\n\n(func $ext_crypto_sr25519_batch_verify_version_1 (param$sig i32) (param $msg i64) (param$key i32) (return i32))\n\nArguments\n\n• sig: a pointer (Definition 215) to the buffer containing the 64-byte signature.\n\n• msg: a pointer-size (Definition 216) to the message that is to be verified.\n\n• key: a pointer to the buffer containing the 256-bit public key.\n\n• return: an i32 integer value equal to 1 if the signature is valid or batched or a value equal 0 to if otherwise.\n\n### B.4.11. ext_crypto_ecdsa_public_keys​\n\nReturns all ecdsa public keys for the given key id from the keystore.\n\n#### B.4.11.1. Version 1 - Prototype​\n\n(func $ext_crypto_ecdsa_public_key_version_1 (param$key_type_id i64) (return i64))\n\nArguments\n\n### B.4.12. ext_crypto_ecdsa_generate​\n\nGenerates an ecdsa key for the given key type using an optional BIP-39 seed and stores it in the keystore.\n\ncaution\n\nPanics if the key cannot be generated, such as when an invalid key type or invalid seed was provided.\n\n(func $ext_crypto_ecdsa_generate_version_1 (param$key_type_id i32) (param $seed i64) (return i32)) Arguments • key_type_id: a pointer (Definition 215) to the key identifier (Definition 220). • seed: a pointer-size (Definition 216) to the SCALE encoded Option value (Definition 200) containing the BIP-39 seed which must be valid UTF8. • return: a pointer (Definition 215) to the buffer containing the 33-byte compressed public key. ### B.4.13. ext_crypto_ecdsa_sign​ Signs the hash of the given message with the ecdsa key that corresponds to the given public key and key type in the keystore. #### B.4.13.1. Version 1 - Prototype​ (func$ext_crypto_ecdsa_sign_version_1 (param $key_type_id i32) (param$key i32) (param $msg i64) (return i64)) Arguments • key_type_id: a pointer (Definition 215) to the key identifier (Definition 220). • key: a pointer to the buffer containing the 33-byte compressed public key. • msg: a pointer-size (Definition 216) to the message that is to be signed. • return: a pointer-size (Definition 216) to the SCALE encoded Option value (Definition 200) containing the signature. The signature is 65-bytes in size, where the first 512-bits represent the signature and the other 8 bits represent the recovery ID. This function returns if the public key cannot be found in the key store. ### B.4.14. ext_crypto_ecdsa_sign_prehashed​ Signs the prehashed message with the ecdsa key that corresponds to the given public key and key type in the keystore. #### B.4.14.1. Version 1 - Prototype​ (func$ext_crypto_ecdsa_sign_prehashed_version_1 (param $key_type_id i32) (param$key i32) (param $msg i64) (return i64)) Arguments • key_type_id: a pointer-size (Definition 215) to the key identifier (Definition 220). • key: a pointer to the buffer containing the 33-byte compressed public key. • msg: a pointer-size (Definition 216) to the message that is to be signed. • return: a pointer-size (Definition 216) to the SCALE encoded Option value (Definition 200) containing the signature. The signature is 65-bytes in size, where the first 512-bits represent the signature and the other 8 bits represent the recovery ID. This function returns if the public key cannot be found in the key store. ### B.4.15. ext_crypto_ecdsa_verify​ Verifies the hash of the given message against an ECDSA signature. #### B.4.15.1. Version 1 - Prototype​ This function allows the verification of non-standard, overflowing ECDSA signatures, an implementation specific mechanism of the Rust libsecp256k1 library, specifically the parse_overflowing function. (func$ext_crypto_ecdsa_verify_version_1 (param $sig i32) (param$msg i64) (param $key i32) (return i32)) Arguments • sig: a pointer (Definition 215) to the buffer containing the 65-byte signature. The signature is 65-bytes in size, where the first 512-bits represent the signature and the other 8 bits represent the recovery ID. • msg: a pointer-size (Definition 216) to the message that is to be verified. • key: a pointer to the buffer containing the 33-byte compressed public key. • return: a i32 integer value equal 1 to if the signature is valid or a value equal to 0 if otherwise. #### B.4.15.2. Version 2 - Prototype​ Does not allow the verification of non-standard, overflowing ECDSA signatures. (func$ext_crypto_ecdsa_verify_version_2 (param $sig i32) (param$msg i64) (param $key i32) (return i32)) Arguments • sig: a pointer (Definition 215) to the buffer containing the 65-byte signature. The signature is 65-bytes in size, where the first 512-bits represent the signature and the other 8 bits represent the recovery ID. • msg: a pointer-size (Definition 216) to the message that is to be verified. • key: a pointer to the buffer containing the 33-byte compressed public key. • return: a i32 integer value equal 1 to if the signature is valid or a value equal to 0 if otherwise. ### B.4.16. ext_crypto_ecdsa_verify_prehashed​ Verifies the prehashed message against a ECDSA signature. #### B.4.16.1. Version 1 - Prototype​ (func$ext_crypto_ecdsa_verify_prehashed_version_1 (param $sig i32) (param$msg i32) (param $key i32) (return i32)) Arguments • sig: a pointer (Definition 215) to the buffer containing the 65-byte signature. The signature is 65-bytes in size, where the first 512-bits represent the signature and the other 8 bits represent the recovery ID. • msg: a pointer to the 32-bit prehashed message to be verified. • key: a pointer to the 33-byte compressed public key. • return: a i32 integer value equal 1 to if the signature is valid or a value equal to 0 if otherwise. ### B.4.17. ext_crypto_ecdsa_batch_verify​ Registers a ECDSA signature for batch verification. Batch verification is enabled by calling ext_crypto_start_batch_verify (Section B.4.20.). The result of the verification is returned by ext_crypto_finish_batch_verify (Section B.4.21.). If batch verification is not enabled, the signature is verified immediately. #### B.4.17.1. Version 1​ (func$ext_crypto_ecdsa_batch_verify_version_1 (param $sig i32) (param$msg i64) (param $key i32) (return i32)) Arguments • sig: a pointer (Definition 215) to the buffer containing the 64-byte signature. • msg: a pointer-size (Definition 216) to the message that is to be verified. • key: a pointer to the buffer containing the 256-bit public key. • return: a i32 integer value equal to 1 if the signature is valid or batched or a value equal 0 to if otherwise. ### B.4.18. ext_crypto_secp256k1_ecdsa_recover​ Verify and recover a secp256k1 ECDSA signature. #### B.4.18.1. Version 1 - Prototype​ This function can handle non-standard, overflowing ECDSA signatures, an implemenation specific mechanism of the Rust libsecp256k1 library, specifically the parse_overflowing function. (func$ext_crypto_secp256k1_ecdsa_recover_version_1 (param $sig i32) (param$msg i32) (return i64))\n\nArguments\n\n• sig: a pointer (Definition 215) to the buffer containing the 65-byte signature in RSV format. V should be either 0/1 or 27/28.\n\n• msg: a pointer (Definition 215) to the buffer containing the 256-bit Blake2 hash of the message.\n\n• return: a pointer-size (Definition 216) to the SCALE encoded Result (Definition 201). On success it contains the 64-byte recovered public key or an error type (Definition 221) on failure.\n\n#### B.4.18.2. Version 2 - Prototype​\n\nDoes not handle non-standard, overflowing ECDSA signatures.\n\n(func $ext_crypto_secp256k1_ecdsa_recover_version_2 (param$sig i32) (param $msg i32) (return i64)) Arguments • sig: a pointer (Definition 215) to the buffer containing the 65-byte signature in RSV format. V should be either or . • msg: a pointer (Definition 215) to the buffer containing the 256-bit Blake2 hash of the message. • return: a pointer-size (Definition 216) to the SCALE encoded Result (Definition 201). On success it contains the 64-byte recovered public key or an error type (Definition 221) on failure. ### B.4.19. ext_crypto_secp256k1_ecdsa_recover_compressed​ Verify and recover a secp256k1 ECDSA signature. #### B.4.19.1. Version 1 - Prototype​ This function can handle non-standard, overflowing ECDSA signatures, an implemenation specific mechanism of the Rust libsecp256k1 library, specifically the parse_overflowing function. (func$ext_crypto_secp256k1_ecdsa_recover_compressed_version_1 (param $sig i32) (param$msg i32) (return i64))\n\nArguments\n\n• sig: a pointer (Definition 215) to the buffer containing the 65-byte signature in RSV format. V should be either 0/1 or 27/28.\n\n• msg: a pointer (Definition 215) to the buffer containing the 256-bit Blake2 hash of the message.\n\n• return: a pointer-size (Definition 216) to the SCALE encoded Result value (Definition 201). On success it contains the 33-byte recovered public key in compressed form on success or an error type (Definition 221) on failure.\n\n#### B.4.19.2. Version 2 - Prototype​\n\nDoes not handle non-standard, overflowing ECDSA signatures.\n\nArguments\n\n• None.\n\n### B.4.21. ext_crypto_finish_batch_verify​\n\nFinish verifying the batch of signatures since the last call to this function. Blocks until all the signatures are verified.\n\ncaution\n\nPanics if ext_crypto_start_batch_verify (Section B.4.20.) was not called.\n\n#### B.4.21.1. Version 1 - Prototype​\n\n(func $ext_crypto_finish_batch_verify_version_1 (return i32)) Arguments • return: an i32 integer value equal to 1 if all the signatures are valid or a value equal to 0 if one or more of the signatures are invalid. ## B.5. Hashing​ Interface that provides functions for hashing with different algorithms. ### B.5.1. ext_hashing_keccak_256​ Conducts a 256-bit Keccak hash. #### B.5.1.1. Version 1 - Prototype​ (func$ext_hashing_keccak_256_version_1 (param $data i64) (return i32)) Arguments • data: a pointer-size (Definition 216) to the data to be hashed. • return: a pointer (Definition 215) to the buffer containing the 256-bit hash result. ### B.5.2. ext_hashing_keccak_512​ Conducts a 512-bit Keccak hash. #### B.5.2.1. Version 1 - Prototype​ (func$ext_hashing_keccak_512_version_1 (param $data i64) (return i32)) Arguments • data: a pointer-size (Definition 216) to the data to be hashed. • return: a pointer (Definition 215) to the buffer containing the 512-bit hash result. ### B.5.3. ext_hashing_sha2_256​ Conducts a 256-bit Sha2 hash. #### B.5.3.1. Version 1 - Prototype​ (func$ext_hashing_sha2_256_version_1 (param $data i64) (return i32)) Arguments • data: a pointer-size (Definition 216) to the data to be hashed. • return: a pointer (Definition 215) to the buffer containing the 256-bit hash result. ### B.5.4. ext_hashing_blake2_128​ Conducts a 128-bit Blake2 hash. #### B.5.4.1. Version 1 - Prototype​ (func$ext_hashing_blake2_128_version_1 (param $data i64) (return i32)) Arguments • data: a pointer-size (Definition 216) to the data to be hashed. • return: a pointer (Definition 215) to the buffer containing the 128-bit hash result. ### B.5.5. ext_hashing_blake2_256​ Conducts a 256-bit Blake2 hash. #### B.5.5.1. Version 1 - Prototype​ (func$ext_hashing_blake2_256_version_1 (param $data i64) (return i32)) Arguments • data: a pointer-size (Definition 216) to the data to be hashed. • return: a pointer (Definition 215) to the buffer containing the 256-bit hash result. ### B.5.6. ext_hashing_twox_64​ Conducts a 64-bit xxHash hash. #### B.5.6.1. Version 1 - Prototype​ (func$ext_hashing_twox_64_version_1 (param $data i64) (return i32)) Arguments • data: a pointer-size (Definition 216) to the data to be hashed. • return: a pointer (Definition 215) to the buffer containing the 64-bit hash result. ### B.5.7. ext_hashing_twox_128​ Conducts a 128-bit xxHash hash. #### B.5.7.1. Version 1 - Prototype​ (func$ext_hashing_twox_128 (param $data i64) (return i32)) Arguments • data: a pointer-size (Definition 216) to the data to be hashed. • return: a pointer (Definition 215) to the buffer containing the 128-bit hash result. ### B.5.8. ext_hashing_twox_256​ Conducts a 256-bit xxHash hash. #### B.5.8.1. Version 1 - Prototype​ (func$ext_hashing_twox_256 (param $data i64) (return i32)) Arguments • data: a pointer-size (Definition 216) to the data to be hashed. • return: a pointer (Definition 215) to the buffer containing the 256-bit hash result. ## B.6. Offchain​ The Offchain Workers allow the execution of long-running and possibly non-deterministic tasks (e.g. web requests, encryption/decryption and signing of data, random number generation, CPU-intensive computations, enumeration/aggregation of on-chain data, etc.) which could otherwise require longer than the block execution time. Offchain Workers have their own execution environment. This separation of concerns is to make sure that the block production is not impacted by the long-running tasks. All data and results generated by Offchain workers are unique per node and nondeterministic. Information can be propagated to other nodes by submitting a transaction that should be included in the next block. As Offchain workers runs on their own execution environment they have access to their own separate storage. There are two different types of storage available which are defined in Definition 222 and Definition 223. ###### Definition 222. Persisted Storage​ Persistent storage is non-revertible and not fork-aware. It means that any value set by the offchain worker is persisted even if that block (at which the worker is called) is reverted as non-canonical (meaning that the block was surpassed by a longer chain). The value is available for the worker that is re-run at the new (different block with the same block number) and future blocks. This storage can be used by offchain workers to handle forks and coordinate offchain workers running on different forks. ###### Definition 223. Local Storage​ Local storage is revertible and fork-aware. It means that any value set by the offchain worker triggered at a certain block is reverted if that block is reverted as non-canonical. The value is NOT available for the worker that is re-run at the next or any future blocks. ###### Definition 224. HTTP Status Code​ An enumerated data type that holds a finite set of distinct variants that gets SCALE-encoded as described in (Definition 199) and returned by offchain http functions. The set of variants is defined as follows. IdNameDescription 0DeadlineReachedthe deadline for the started request was reached. 1IoErroran error has occurred during the request. 2Invalidthe specified request identifier is invalid. 3Finished(http_status)the request has finished with the given HTTP status code. where • http_status: a 16-bit unsigned integer type representing the HTTP status code to be returned. ###### Definition 225. HTTP Error​ HTTP error, ${E}$, is a varying data type (Definition 198) and specifies the error types of certain HTTP functions. Following values are possible: ${E}={\\left\\lbrace\\begin{matrix}{0}&\\text{The deadile was reached}\\\\{1}&\\text{There was an IO error while processing the request}\\\\{2}&\\text{The Id of the request is invalid}\\end{matrix}\\right.}$ ### B.6.1. ext_offchain_is_validator​ Check whether the local node is a potential validator. Even if this function returns 1, it does not mean that any keys are configured or that the validator is registered in the chain. #### B.6.1.1. Version 1 - Prototype​ (func$ext_offchain_is_validator_version_1 (return i32))\n\nArguments\n\n• return: a i32 integer which is equal to 1 if the local node is a potential validator or a integer equal to 0 if it is not.\n\n### B.6.2. ext_offchain_submit_transaction​\n\nGiven a SCALE encoded extrinsic, this function submits the extrinsic to the Host’s transaction pool, ready to be propagated to remote peers.\n\n#### B.6.2.1. Version 1 - Prototype​\n\n(func $ext_offchain_submit_transaction_version_1 (param$data i64) (return i64))\n\nArguments\n\n• data: a pointer-size (Definition 216) to the byte array storing the encoded extrinsic.\n\n• return: a pointer-size (Definition 216) to the SCALE encoded Result value (Definition 201). Neither on success or failure is there any additional data provided. The cause of a failure is implementation specific.\n\n### B.6.3. ext_offchain_network_state​\n\nReturns the SCALE encoded, opaque information about the local node’s network state.\n\n###### Definition 226. Opaque Network State​\n\nThe Opaque network state structure, ${S}$, is a SCALE encoded blob holding information about the the libp2p PeerId, ${P}_{{\\text{id}}}$, of the local node and a list of libp2p Multiaddresses, ${\\left({M}_{{0}},\\ldots{M}_{{n}}\\right)}$, the node knows it can be reached at:\n\n${S}={\\left({P}_{{\\text{id}}},{\\left({M}_{{0}},\\ldots{M}_{{n}}\\right)}\\right)}$\n\nwhere\n\n${P}_{{\\text{id}}}={\\left({b}_{{0}},\\ldots{b}_{{n}}\\right)}$\n${M}={\\left({b}_{{0}},\\ldots{b}_{{n}}\\right)}$\n\nThe information contained in this structure is naturally opaque to the caller of this function.\n\n(func $ext_offchain_network_state_version_1 (result i64)) Arguments • result: a pointer-size (Definition 216) to the SCALE encoded Result value (Definition 201). On success it contains the Opaque network state structure (Definition 226). On failure, an empty value is yielded where its cause is implementation specific. ### B.6.4. ext_offchain_timestamp​ Returns the current timestamp. #### B.6.4.1. Version 1 - Prototype​ (func$ext_offchain_timestamp_version_1 (result i64))\n\nArguments\n\n• result: an u64 integer (typed as i64 due to wasm types) indicating the current UNIX timestamp (Definition 191).\n\n### B.6.5. ext_offchain_sleep_until​\n\nPause the execution until the deadline is reached.\n\n#### B.6.5.1. Version 1 - Prototype​\n\n(func $ext_offchain_sleep_until_version_1 (param$deadline i64))\n\nArguments\n\n• deadline: an u64 integer (typed as i64 due to wasm types) specifying the UNIX timestamp (Definition 191).\n\n### B.6.6. ext_offchain_random_seed​\n\nGenerates a random seed. This is a truly random non deterministic seed generated by the host environment.\n\n(func $ext_offchain_random_seed_version_1 (result i32)) Arguments • result: a pointer (Definition 215) to the buffer containing the 256-bit seed. ### B.6.7. ext_offchain_local_storage_set​ Sets a value in the local storage. This storage is not part of the consensus, it’s only accessible by the offchain worker tasks running on the same machine and is persisted between runs. #### B.6.7.1. Version 1 - Prototype​ (func$ext_offchain_local_storage_set_version_1 (param $kind i32) (param$key i64) (param $value i64)) Arguments • kind: an i32 integer indicating the storage kind. A value equal to 1 is used for a persistent storage (Definition 222) and a value equal to 2 for local storage (Definition 223). • key: a pointer-size (Definition 216) to the key. • value: a pointer-size (Definition 216) to the value. ### B.6.8. ext_offchain_local_storage_clear​ Remove a value from the local storage. #### B.6.8.1. Version 1 - Prototype​ (func$ext_offchain_local_storage_clear_version_1 (param $kind i32) (param$key i64))\n\nArguments\n\n• kind: an i32 integer indicating the storage kind. A value equal to 1 is used for a persistent storage (Definition 222) and a value equal to 2 for local storage (Definition 223).\n\n• key: a pointer-size (Definition 216) to the key.\n\n### B.6.9. ext_offchain_local_storage_compare_and_set​\n\nSets a new value in the local storage if the condition matches the current value.\n\n(fund $ext_offchain_local_storage_compare_and_set_version_1 (param$kind i32) (param $key i64) (param$old_value i64) (param $new_value i64) (result i32)) Arguments • kind: an i32 integer indicating the storage kind. A value equal to 1 is used for a persistent storage (Definition 222) and a value equal to 2 for local storage (Definition 223). • key: a pointer-size (Definition 216) to the key. • old_value: a pointer-size (Definition 216) to the SCALE encoded Option value (Definition 200) containing the old key. • new_value: a pointer-size (Definition 216) to the new value. • result: an i32 integer equal to 1 if the new value has been set or a value equal to 0 if otherwise. ### B.6.10. ext_offchain_local_storage_get​ Gets a value from the local storage. #### B.6.10.1. Version 1 - Prototype​ (func$ext_offchain_local_storage_get_version_1 (param $kind i32) (param$key i64) (result i64))\n\nArguments\n\n• kind: an i32 integer indicating the storage kind. A value equal to 1 is used for a persistent storage (Definition 222) and a value equal to 2 for local storage (Definition 223).\n\n• key: a pointer-size (Definition 216) to the key.\n\n• result: a pointer-size (Definition 216) to the SCALE encoded Option value (Definition 200) containing the value or the corresponding key.\n\n### B.6.11. ext_offchain_http_request_start​\n\nInitiates a HTTP request given by the HTTP method and the URL. Returns the Id of a newly started request.\n\n#### B.6.11.1. Version 1 - Prototype​\n\n(func $ext_offchain_http_request_start_version_1 (param$method i64) (param $uri i64) (param$meta i64) (result i64))\n\nArguments\n\n• method: a pointer-size (Definition 216) to the HTTP method. Possible values are “GET” and “POST”.\n\n• uri: a pointer-size (Definition 216) to the URI.\n\n• meta: a future-reserved field containing additional, SCALE encoded parameters. Currently, an empty array should be passed.\n\n• result: a pointer-size (Definition 216) to the SCALE encoded Result value (Definition 201) containing the i16 ID of the newly started request. On failure no additionally data is provided. The cause of failure is implementation specific.\n\n### B.6.12. ext_offchain_http_request_add_header​\n\nAppend header to the request. Returns an error if the request identifier is invalid, http_response_wait has already been called on the specified request identifier, the deadline is reached or an I/O error has happened (e.g. the remote has closed the connection).\n\n#### B.6.12.1. Version 1 - Prototype​\n\n(func $ext_offchain_http_request_add_header_version_1 (param$request_id i32) (param $name i64) (param$value i64) (result i64))\n\nArguments\n\n• request_id: an i32 integer indicating the ID of the started request.\n\n• name: a pointer-size (Definition 216) to the HTTP header name.\n\n• value: a pointer-size (Definition 216) to the HTTP header value.\n\n• result: a pointer-size (Definition 216) to the SCALE encoded Result value (Definition 201). Neither on success or failure is there any additional data provided. The cause of failure is implementation specific.\n\n### B.6.13. ext_offchain_http_request_write_body​\n\nWrites a chunk of the request body. Returns a non-zero value in case the deadline is reached or the chunk could not be written.\n\n#### B.6.13.1. Version 1 - Prototype​\n\n(func $ext_offchain_http_request_write_body_version_1 (param$request_id i32) (param $chunk i64) (param$deadline i64) (result i64))\n\nArguments\n\n• request_id: an i32 integer indicating the ID of the started request.\n\n• chunk: a pointer-size (Definition 216) to the chunk of bytes. Writing an empty chunk finalizes the request.\n\n• deadline: a pointer-size (Definition 216) to the SCALE encoded Option value (Definition 200) containing the UNIX timestamp (Definition 191). Passing None blocks indefinitely.\n\n• result: a pointer-size (Definition 216) to the SCALE encoded Result value (Definition 201). On success, no additional data is provided. On error it contains the HTTP error type (Definition 225).\n\n### B.6.14. ext_offchain_http_response_wait​\n\nReturns an array of request statuses (the length is the same as IDs). Note that if deadline is not provided the method will block indefinitely, otherwise unready responses will produce DeadlineReached status.\n\n(func $ext_offchain_http_response_wait_version_1 (param$ids i64) (param $deadline i64) (result i64)) Arguments ### B.6.15. ext_offchain_http_response_headers​ Read all HTTP response headers. Returns an array of key/value pairs. Response headers must be read before the response body. #### B.6.15.1. Version 1 - Prototype​ (func$ext_offchain_http_response_headers_version_1 (param $request_id i32) (result i64)) Arguments • request_id: an i32 integer indicating the ID of the started request. • result: a pointer-size (Definition 216) to a SCALE encoded array of key/value pairs. ### B.6.16. ext_offchain_http_response_read_body​ Reads a chunk of body response to the given buffer. Returns the number of bytes written or an error in case a deadline is reached or the server closed the connection. If 0 is returned it means that the response has been fully consumed and the request_id is now invalid. This implies that response headers must be read before draining the body. #### B.6.16.1. Version 1 - Prototype​ (func$ext_offchain_http_response_read_body_version_1 (param $request_id i32) (param$buffer i64) (param $deadline i64) (result i64)) Arguments • request_id: an i32 integer indicating the ID of the started request. • buffer: a pointer-size (Definition 216) to the buffer where the body gets written to. • deadline: a pointer-size (Definition 216) to the SCALE encoded Option value (Definition 200) containing the UNIX timestamp (Definition 191). Passing None will block indefinitely. • result: a pointer-size (Definition 216) to the SCALE encoded Result value (Definition 201). On success it contains an i32 integer specifying the number of bytes written or a HTTP error type (Definition 225) on failure. ## B.7. Offchain Index​ Interface that provides functions to access the Offchain DB through offchain indexing. ### B.7.1. Offchain_index_set​ Write a key-value pair to the Offchain DB in a buffered fashion. #### B.7.1.1. Version 1 - Prototype​ (func$ext_offchain_index_set_version_1 (param $key i64) (param$value i64))\n\nArguments\n\n• key: a pointer-size (Definition 216) containing the key.\n\n• value: a pointer-size (Definition 216) containing the value.\n\n### B.7.2. Offchain_index_clear​\n\nRemove a key and its associated value from the Offchain DB.\n\n#### B.7.2.1. Version 1 - Prototype​\n\n(func $ext_offchain_index_clear_version_1 (param$key i64))\n\nArguments\n\n• key: a pointer-size (Definition 216) containing the key.\n\n## B.8. Trie​\n\nInterface that provides trie related functionality.\n\n### B.8.1. ext_trie_blake2_256_root​\n\nCompute a 256-bit Blake2 trie root formed from the iterated items.\n\n#### B.8.1.1. Version 1 - Prototype​\n\n(func $ext_trie_blake2_256_root_version_1 (param$data i64) (result i32))\n\nArguments\n\n• data: a pointer-size (Definition 216) to the iterated items from which the trie root gets formed. The items consist of a SCALE encoded array containing arbitrary key/value pairs (tuples).\n\n• result: a pointer (Definition 215) to the buffer containing the 256-bit trie root.\n\n(func $ext_trie_blake2_256_root_version_2 (param$data i64) (param $version i32) (result i32)) Arguments • data: a pointer-size (Definition 216) to the iterated items from which the trie root gets formed. The items consist of a SCALE encoded array containing arbitrary key/value pairs (tuples). • version: the state version (Definition 218). • result: a pointer (Definition 215) to the buffer containing the 256-bit trie root. ### B.8.2. ext_trie_blake2_256_ordered_root​ Compute a 256-bit Blake2 trie root formed from the enumerated items. #### B.8.2.1. Version 1 - Prototype​ (func$ext_trie_blake2_256_ordered_root_version_1 (param $data i64) (result i32)) Arguments • data: a pointer-size (Definition 216) to the enumerated items from which the trie root gets formed. The items consist of a SCALE encoded array containing only values, where the corresponding key of each value is the index of the item in the array, starting at 0. The keys are compact encoded integers (Definition 208). • result: a pointer (Definition 215) to the buffer containing the 256-bit trie root result. #### B.8.2.2. Version 2 - Prototype​ (func$ext_trie_blake2_256_ordered_root_version_2 (param $data i64) (param$version i32) (result i32))\n\nArguments\n\n• data: a pointer-size (Definition 216) to the enumerated items from which the trie root gets formed. The items consist of a SCALE encoded array containing only values, where the corresponding key of each value is the index of the item in the array, starting at 0. The keys are compact encoded integers (Definition 208).\n\n• version: the state version (Definition 218).\n\n• result: a pointer (Definition 215) to the buffer containing the 256-bit trie root result.\n\n### B.8.3. ext_trie_keccak_256_root​\n\nCompute a 256-bit Keccak trie root formed from the iterated items.\n\n#### B.8.3.1. Version 1 - Prototype​\n\n(func $ext_trie_keccak_256_root_version_1 (param$data i64) (result i32))\n\nArguments\n\n• data: a pointer-size (Definition 216) to the iterated items from which the trie root gets formed. The items consist of a SCALE encoded array containing arbitrary key/value pairs.\n\n• result: a pointer (Definition 215) to the buffer containing the 256-bit trie root.\n\n(func $ext_trie_keccak_256_root_version_2 (param$data i64) (param $version i32) (result i32)) Arguments • data: a pointer-size (Definition 216) to the iterated items from which the trie root gets formed. The items consist of a SCALE encoded array containing arbitrary key/value pairs. • version: the state version (Definition 218). • result: a pointer (Definition 215) to the buffer containing the 256-bit trie root. ### B.8.4. ext_trie_keccak_256_ordered_root​ Compute a 256-bit Keccak trie root formed from the enumerated items. #### B.8.4.1. Version 1 - Prototype​ (func$ext_trie_keccak_256_ordered_root_version_1 (param $data i64) (result i32)) Arguments • data: a pointer-size (Definition 216) to the enumerated items from which the trie root gets formed. The items consist of a SCALE encoded array containing only values, where the corresponding key of each value is the index of the item in the array, starting at 0. The keys are compact encoded integers (Definition 208). • result: a pointer (Definition 215) to the buffer containing the 256-bit trie root result. #### B.8.4.2. Version 2 - Prototype​ (func$ext_trie_keccak_256_ordered_root_version_2 (param $data i64) (param$version i32) (result i32))\n\nArguments\n\n• data: a pointer-size (Definition 216) to the enumerated items from which the trie root gets formed. The items consist of a SCALE encoded array containing only values, where the corresponding key of each value is the index of the item in the array, starting at 0. The keys are compact encoded integers (Definition 208).\n\n• version: the state version (Definition 218).\n\n• result: a pointer (Definition 215) to the buffer containing the 256-bit trie root result.\n\n### B.8.5. ext_trie_blake2_256_verify_proof​\n\nVerifies a key/value pair against a Blake2 256-bit merkle root.\n\n(func $ext_trie_blake2_256_verify_proof_version_1 (param$root i32) (param $proof i64) (param$key i64) (param $value i64) (result i32)) Arguments • root: a pointer to the 256-bit merkle root. • proof: a pointer-size (Definition 216) to an array containing the node proofs. • key: a pointer-size (Definition 216) to the key. • value: a pointer-size (Definition 216) to the value. • return: a value equal to 1 if the proof could be successfully verified or a value equal to 0 if otherwise. #### B.8.5.2. Version 2 - Prototype​ (func$ext_trie_blake2_256_verify_proof_version_2 (param $root i32) (param$proof i64) (param $key i64) (param$value i64) (param $version i32) (result i32)) Arguments • root: a pointer to the 256-bit merkle root. • proof: a pointer-size (Definition 216) to an array containing the node proofs. • key: a pointer-size (Definition 216) to the key. • value: a pointer-size (Definition 216) to the value. • version: the state version (Definition 218). • return: a value equal to 1 if the proof could be successfully verified or a value equal to 0 if otherwise. ### B.8.6. ext_trie_keccak_256_verify_proof​ Verifies a key/value pair against a Keccak 256-bit merkle root. #### B.8.6.1. Version 1 - Prototype​ (func$ext_trie_keccak_256_verify_proof_version_1 (param $root i32) (param$proof i64) (param $key i64) (param$value i64) (result i32))\n\nArguments\n\n• root: a pointer to the 256-bit merkle root.\n\n• proof: a pointer-size (Definition 216) to an array containing the node proofs.\n\n• key: a pointer-size (Definition 216) to the key.\n\n• value: a pointer-size (Definition 216) to the value.\n\n• return: a value equal to 1 if the proof could be successfully verified or a value equal to 0 if otherwise.\n\n#### B.8.6.2. Version 2 - Prototype​\n\n(func $ext_trie_keccak_256_verify_proof_version_2 (param$root i32) (param $proof i64) (param$key i64) (param $value i64) (param$version i32) (result i32))\n\nArguments\n\n• root: a pointer to the 256-bit merkle root.\n\n• proof: a pointer-size (Definition 216) to an array containing the node proofs.\n\n• key: a pointer-size (Definition 216) to the key.\n\n• value: a pointer-size (Definition 216) to the value.\n\n• version: the state version (Definition 218).\n\n• return: a value equal to 1 if the proof could be successfully verified or a value equal to 0 if otherwise.\n\n## B.9. Miscellaneous​\n\nInterface that provides miscellaneous functions for communicating between the runtime and the node.\n\n### B.9.1. ext_misc_print_num​\n\nPrint a number.\n\n#### B.9.1.1. Version 1 - Prototype​\n\n(func $ext_misc_print_num_version_1 (param$value i64))\n\nArguments\n\n• value: the number to be printed.\n\n### B.9.2. ext_misc_print_utf8​\n\nPrint a valid UTF8 encoded buffer.\n\n#### B.9.2.1. Version 1 - Prototype​\n\n(func $ext_misc_print_utf8_version_1 (param$data i64))\n\nArguments:\n\n### B.9.3. ext_misc_print_hex​\n\nPrint any buffer in hexadecimal representation.\n\n#### B.9.3.1. Version 1 - Prototype​\n\n(func $ext_misc_print_hex_version_1 (param$data i64))\n\nArguments:\n\n• data: a pointer-size (Definition 216) to the buffer to be printed.\n\n### B.9.4. ext_misc_runtime_version​\n\nExtract the Runtime version of the given Wasm blob by calling Core_version (Section C.4.1.). Returns the SCALE encoded runtime version or None (Definition 200) if the call fails. This function gets primarily used when upgrading Runtimes.\n\ncaution\n\nCalling this function is very expensive and should only be done very occasionally. For getting the runtime version, it requires instantiating the Wasm blob (Section 2.6.2.) and calling the Core_version function (Section C.4.1.) in this blob.\n\n#### B.9.4.1. Version 1 - Prototype​\n\n(func $ext_misc_runtime_version_version_1 (param$data i64) (result i64))\n\nArguments\n\n• data: a pointer-size (Definition 216) to the Wasm blob.\n\n• result: a pointer-size (Definition 216) to the SCALE encoded Option value (Definition 200) containing the Runtime version of the given Wasm blob which is encoded as a byte array.\n\n## B.10. Allocator​\n\nThe Polkadot Runtime does not include a memory allocator and relies on the Host API for all heap allocations. The beginning of this heap is marked by the __heap_base symbol exported by the Polkadot Runtime. No memory should be allocated below that address, to avoid clashes with the stack and data section. The same allocator made accessible by this Host API should be used for any other WASM memory allocations and deallocations outside the runtime e.g. when passing the SCALE-encoded parameters to Runtime API calls.\n\n### B.10.1. ext_allocator_malloc​\n\nAllocates the given number of bytes and returns the pointer to that memory location.\n\n#### B.10.1.1. Version 1 - Prototype​\n\n(func $ext_allocator_malloc_version_1 (param$size i32) (result i32))\n\nArguments\n\n• size: the size of the buffer to be allocated.\n\n• result: a pointer (Definition 215) to the allocated buffer.\n\n### B.10.2. ext_allocator_free​\n\nFree the given pointer.\n\n#### B.10.2.1. Version 1 - Prototype​\n\n(func $ext_allocator_free_version_1 (param$ptr i32))\n\nArguments\n\n• ptr: a pointer (Definition 215) to the memory buffer to be freed.\n\n## B.11. Logging​\n\nInterface that provides functions for logging from within the runtime.\n\n###### Definition 227. Log Level​\n\nThe Log Level, ${L}$, is a varying data type (Definition 198) and implies the emergency of the log. Possible log levels and the corresponding identifier is as follows:\n\n${L}={\\left\\lbrace\\begin{matrix}{0}&\\text{Error = 1}\\\\{1}&\\text{Warn = 2}\\\\{2}&\\text{Info = 3}\\\\{3}&\\text{Debug = 4}\\\\{4}&\\text{Trace = 5}\\end{matrix}\\right.}$\n\n### B.11.1. ext_logging_log​\n\nRequest to print a log message on the host. Note that this will be only displayed if the host is enabled to display log messages with given level and target.\n\n#### B.11.1.1. Version 1 - Prototype​\n\n(func $ext_logging_log_version_1 (param$level i32) (param $target i64) (param$message i64))\n\nArguments\n\n• level: the log level (Definition 227).\n\n• target: a pointer-size (Definition 216) to the string which contains the path, module or location from where the log was executed.\n\n• message: a pointer-size (Definition 216) to the UTF-8 encoded log message.\n\n### B.11.2. ext_logging_max_level​\n\nReturns the max logging level used by the host.\n\n(func $ext_logging_max_level_version_1 (result i32)) Arguments • None Returns • result: the max log level (Definition 227) used by the host. ## B.12. Abort Handler​ Interface for aborting the execution of the runtime. ### B.12.1. ext_panic_handler_abort_on_panic​ Aborts the execution of the runtime with a given message. Note that the message will be only displayed if the host is enabled to display those types of messages, which is implementation specific. #### B.12.1.1. Version 1 - Prototype​ (func$ext_panic_handler_abort_on_panic_version_1 (param \\$message i64))\n\nArguments\n\n• message: a pointer-size (Definition 216) to the UTF-8 encoded message." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6075522,"math_prob":0.87096107,"size":62213,"snap":"2023-40-2023-50","text_gpt3_token_len":15825,"char_repetition_ratio":0.2552846,"word_repetition_ratio":0.52895236,"special_character_ratio":0.27000788,"punctuation_ratio":0.14618029,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9583082,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-04T12:18:33Z\",\"WARC-Record-ID\":\"<urn:uuid:063fb128-6d6d-4dac-9437-6a09aec29361>\",\"Content-Length\":\"345051\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:0b118557-2ce1-4293-8eb6-97e50c91a2ee>\",\"WARC-Concurrent-To\":\"<urn:uuid:3a8b7f25-ad27-4646-b108-bfa52385035e>\",\"WARC-IP-Address\":\"172.67.70.100\",\"WARC-Target-URI\":\"https://spec.polkadot.network/chap-host-api\",\"WARC-Payload-Digest\":\"sha1:7LTGAX3OMASOGLB4JBBFYEAEAE2UPRND\",\"WARC-Block-Digest\":\"sha1:QKRPOIJLR2A6BXJKGOAZMQ5GRDASZRRT\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100529.8_warc_CC-MAIN-20231204115419-20231204145419-00748.warc.gz\"}"}
https://books.google.com.gi/books?qtid=4f7e78de&id=C0gAAAAAYAAJ&lr=&sa=N&start=90
[ "Books Books", null, "Every circumference of a. circle, whether the circle be large or small, is supposed to be divided into 360 equal parts called degrees. Each degree is divided into 60 equal parts called minutes, and each minute into 60 equal parts called seconds.", null, "Easy Lessons in Geography and History: Designed for the Use of the Younger ... - Page 39\nby Joseph Allen - 1832 - 116 pages", null, "## Elementary Geometry: With Applications in Mensuration\n\nCharles Davies - Geometry - 1850 - 236 pages\n...measurement of angles. For this purpose it is divided into 360 equal parts called degrees, each degree into 60 equal parts called minutes, and each minute into 60 equal parts called seconds. The degrees, minutes, and seconds are marked thus ° ' \" ; and 9° 18' 16\", are read, 9 degrees 18...", null, "## Elementary Geometry: With Applications in Mensuration\n\nCharles Davies - Geometry - 1850 - 218 pages\n...measurement of angles. For this purpose it is divided into 360 equal parts called degrees, each degree into 60 equal parts called minutes, and each minute into 60 equal parts called seconds. The degrees, minutes, and seconds are marked thus ° ' \" ; and 9° 18' 16\", are read, 9 degrees 18...", null, "## The University Arithmetic: Embracing the Science of Numbers, and Their ...\n\nCharles Davies - Arithmetic - 1850 - 412 pages\n...OF TIME. 40. Every circle is supposed to be divided into 360 equal parts called degrees, each degree into 60 equal parts called minutes, and each minute into .60 equal parts called seconds. For astronomical purposes, the circumference of the circle is also supposed to be divided into 12 equal...", null, "## Mensuration, Mechanical Powers, and Machinery: The Principles of Mensuration ...\n\nDaniel Adams - Measurement - 1850 - 144 pages\n...10. The circumference of every circle is divided into 360 equal parts, called Degrees ; each degree into 60 equal parts, called Minutes ; and each minute into 60 equal parts, called Seconds. 11. Degrees, minutes, and seconds, are marked respectively °, ', \" ; they are used in mensuration...", null, "## Arithmetic on the Productive System: Accompanied by a Key and ..., Volume 1\n\nRoswell Chamberlain Smith - Arithmetic - 1850 - 314 pages\n...through the centre of the earth. 15 CORRESPOND, [L. corrcspondeo.] To answer to; communicate with. parts, called minutes, and each minute into 60 equal parts, called seconds. 76. The circumference1 of the earth is a great circle of 360 de grees. On this circle every minute...", null, "## A Manual of Surveying for India, Detailing the Mode of Operations on the ...\n\nSir Henry Edward Landor Thuillier - Surveying - 1851 - 828 pages\n...circle is supposed to be divided off into 360 equal parts, called degrees, each degree is subdivided into 60 equal parts, called minutes, and each minute into 60 equal parts, called seconds. Degrees are expressed thus:0 minutes, thus/ seconds, thus:\" A Quadrant of a circle will therefore contain...", null, "## The Decimal System of Numbers: Illustrated and Practically Applied, by a ...\n\nDana Pond Colburn - Arithmetic - 1852 - 228 pages\n...whether the circle be large or small, is supposed to be divided into 360 equal parts called degrees. Each degree is divided into 60 equal parts called...and each minute into 60 equal parts called seconds. A degree is to be regarded simply as the 360th part of the circumference of the circle considered....", null, "## A complete treatise on practical land-surveying\n\nAnthony Nesbit - 1870 - 578 pages\n...circumference of every circle is supposed to be divided into 360 equal parts, called degrees; each degree into 60 equal parts, called minutes ; and each minute into 60 equal parts, called seconds. 40. The diameter of a circle is a right line drawn through the centre, A and terminating in the circumference...", null, "## Arithmetic and Its Applications ...\n\nDana Pond Colburn - 1871 - 392 pages\n...whether the circle be 1vge or small, is supposed to be divided into 360 equal pwrtsf called degrees. Each degree is divided into 60 equal parts, called...minutes, and each minute into 60 equal parts, called èeconds. (g.) A degree is to be regarded simply as the 860th part of the circumference of the circle...", null, "" ]
[ null, "https://books.google.com.gi/googlebooks/quote_l.gif", null, "https://books.google.com.gi/googlebooks/quote_r.gif", null, "https://books.google.com.gi/books/content", null, "https://books.google.com.gi/books/content", null, "https://books.google.com.gi/books/content", null, "https://books.google.com.gi/books/content", null, "https://books.google.com.gi/books/content", null, "https://books.google.com.gi/books/content", null, "https://books.google.com.gi/books/content", null, "https://books.google.com.gi/books/content", null, "https://books.google.com.gi/books/content", null, "https://books.google.com.gi/books/content", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.92034096,"math_prob":0.9822907,"size":3462,"snap":"2023-14-2023-23","text_gpt3_token_len":845,"char_repetition_ratio":0.23597455,"word_repetition_ratio":0.3979933,"special_character_ratio":0.28798383,"punctuation_ratio":0.22130014,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.986683,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-06-06T17:24:25Z\",\"WARC-Record-ID\":\"<urn:uuid:1cf395a0-f555-4110-9096-8d8e2f0666ef>\",\"Content-Length\":\"33464\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8351662f-2733-441b-9d9b-346445ee4c9f>\",\"WARC-Concurrent-To\":\"<urn:uuid:0b790d8d-9231-4726-9346-c858d8a0dfb0>\",\"WARC-IP-Address\":\"142.251.167.100\",\"WARC-Target-URI\":\"https://books.google.com.gi/books?qtid=4f7e78de&id=C0gAAAAAYAAJ&lr=&sa=N&start=90\",\"WARC-Payload-Digest\":\"sha1:2UZ33DT45SG3ISWZIXKVJLMRZGD73YBB\",\"WARC-Block-Digest\":\"sha1:SFW65NGVUFBRNKPHBOYGZ7ATRTNZFQMV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224652959.43_warc_CC-MAIN-20230606150510-20230606180510-00229.warc.gz\"}"}
https://classes.golem.ph.utexas.edu/category/2009/07/generalized_homotopy_theory.html
[ "## July 6, 2009\n\n### Generalized Homotopy Theory\n\n#### Posted by David Corfield", null, "Over at $n$Lab we’re itching for some discussion as to whether there can be something which is to homotopy as Nonabelian (unstable) cohomology is to cohomology. Can we free things up so we don’t just map spheres into spaces? At the entry homotopy (as an operation) you can read the suggestion of a ‘homotopy with co-coefficients in $B$’, rather than a sphere.\n\nI suppose Moore spaces as domain would be a start as suggested here for spaces of type $(A, 2)$ and suspensions.\n\nA couple of things to check out perhaps:\n\nI have the feeling they’ll be a huge amount out there to learn, e.g., about cofibrant co-grouplike objects.\n\nPosted at July 6, 2009 5:01 PM UTC\n\nTrackBack URL for this Entry:   https://golem.ph.utexas.edu/cgi-bin/MT-3.0/dxy-tb.fcgi/2009\n\n### Re: Generalized Homotopy Theory\n\nIn a 1996 discussion on the cat-list André Joyal writes\n\nPeter Hilton and Beno Eckmann…proved that any cogroup in the category of groups is free.\n\nI would like to say that the younger generation is not always aware that Eckmann and Hilton have fundamental contributions to category theory. They have provided basic examples of objects equipped with algebraic structures in categories. Consequently opening the road to further abstractions, like the concept of algebraic theory in the sense of Lawvere.\n\nAmong other things, Eckmann and Hilton were interested in identifying all cogroups in the homotopy category $hTop_*$ of pointed topological spaces. A basic example of such cogroup is the circle $S^1$. It explains why the functor $\\pi_1(-)=[S^1,-]: hTop_* \\to Sets$ has a natural group structure. If $G$ is a cogroup in $hTop_*$ then so is the smash product $X \\wedge G$ for any pointed topological space $X$. This is because $X \\wedge (-)$ preserves coproduct since it has a right adjoint (here we are supposing that Top is a convenient category of topological space). In particular, the spheres $S^{n+1} = S^n \\wedge S^1$ have a cogroup structure. Any wedge (topologists call the coproduct the wedge) of cogroups is obviously a cogroup. In particular, any wedge of spheres of dimension $n \\geq 1$ has a co-group structure.\n\nAll the known examples of cogroups in $hTop_*$ are obtained by taking a smash $X \\wedge S^1$. It was conjectured by Eckmann and Hilton that all cogroups in $hTop^*$ are of the form $X \\wedge S^1$. They observe that $\\pi_1(G)$ is a cogroup in $Groups$ when $G$ is a cogroup in $hTop_*$. This is because the functor $\\pi_1: hTop_* \\to Groups$ preserves coproducts by Van Kampen theorem. In support to their conjecture they proved that any cogroup in $Groups$ is free. It follows that all cogroups in $Groups$ are of the form $\\pi_1(X \\wedge S^1)$ where $X$ is a pointed set.\n\nPosted by: David Corfield on July 6, 2009 9:45 PM | Permalink | Reply to this\n\n### Re: Generalized Homotopy Theory\n\nAs an example of the sort of theory that is available for this, Baues in his book Algebraic Homotopy’ (section II.6, starting on page 115), develops the notion of homotopy groups in a cofibration category, using suspensions $\\pi_n^A(U) = [\\Sigma^n A,U].$ These have all the usual elementary properties with relative forms, long exact sequences etc. $A$ has to be a based object for it to work.\n\nThe development is quite detailed and lengthy.\n\nPosted by: Tim Porter on July 7, 2009 12:26 PM | Permalink | Reply to this\n\n### Re: Generalized Homotopy Theory\n\nSo these are abelian for $n \\gt 1$. Presumably stablization of homotopy groups with coefficients goes through.\n\nPosted by: David Corfield on July 7, 2009 2:22 PM | Permalink | Reply to this\n\n### Re: Generalized Homotopy Theory\n\nDavid you say: “Presumably stablization of homotopy groups with coefficients goes through.” I could not find a mention of stabilisation with in Baues’ book. (Perhaps he treats that in another text.)\n\nI do not quite see what you mean by “homotopy groups with coefficients”. Are the $A$ somehow the coefficient? (I suppose the duality could lead either to (co)$^2$efficients or worse efficients’ in that case … I know I should have resisted the obvious pun.)\n\nPosted by: Tim Porter on July 7, 2009 2:39 PM | Permalink | Reply to this\n\n### Re: Generalized Homotopy Theory\n\nUrs is using the phrase ‘homotopy of $X$ with co-coefficients in $B$’ at the speculative page homotopy (as an operation), and is also tempted by that bad pun.\n\nHatcher in section 4.H talks about ‘Homotopy Groups with Coefficients’, using Moore spaces as domain. Presumably in this case $[\\Sigma^n (M(k, G)), \\Sigma^n (X)]$ stabilizes as $n \\to \\infty$.\n\nPosted by: David Corfield on July 7, 2009 3:06 PM | Permalink | Reply to this\n\n### Re: Generalized Homotopy Theory\n\nthe notion of homotopy groups [with co-co-efficients] in a cofibration category, using suspensions\n\n$\\pi_n^A(U) = [\\Sigma^n A, U]$\n\nHey, that’s great. That’s pretty much what David was looking for!\n\nWe are gonna work this into [[homotopy]] to make it become more completely the abstract dual of [[cohomology]].\n\nWhile I am looking at the book:\n\n“cofibration category” is that [[cat of fib objects]] opposed or is it [[Waldhausen category]]?\n\nPosted by: Urs Schreiber on July 7, 2009 7:12 PM | Permalink | Reply to this\n\n### Re: Generalized Homotopy Theory\n\nFrom memory it’s a category of cofibrant objects, or the same with minor variations. More suited to $sSet$ than $Top$\n\nPosted by: David Roberts on July 8, 2009 5:27 AM | Permalink | Reply to this\n\n### Re: Generalized Homotopy Theory\n\nYes, it is categories of cofibrant objects (in the Baues definition in which the axioms are the duals of Ken Brown’s axioms with some slight additions). Many of the arguments used are really just the Dold-Puppe fibration / cofibration long exact sequences suitably abstracted.\n\n(I tried to post this yesterday but the system went AWOL!)\n\nPosted by: Tim Porter on July 8, 2009 10:52 AM | Permalink | Reply to this\n\n### Re: Generalized Homotopy Theory\n\nYes, these should be sorted out. It all looks almost trivially equivalent, but it seems one has to exercis a bit of care here and there for precisely relating these axiom systems.\n\nI see that Baues in his remark (1a.6) comments briefly and roughly on the slight variations in the axioms of\n\n-Brown cat of fibs / dually of cofibs\n\n- Anderson cat of cofibs\n\n- Heller and Shitanda who do something else\n\n- Waldhausen of cofibs.\n\nOne easy thing is how the factorization lemma assumed by Baues implies the existence of (co)path objects assumed by Brown (as in his remark on p. 422), while Brown of course proves the converse. So that bit is clear.\n\nI have yet to think about the other differences.\n\nIt would be good to eventually list the relations somewhere, it’s slightly annyong that with each author one needs to start with slightly new axioms.\n\nPosted by: Urs Schreiber on July 8, 2009 1:06 PM | Permalink | Reply to this\n\nPost a New Comment" ]
[ null, "https://golem.ph.utexas.edu/~distler/blog/images/MathML.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.91864425,"math_prob":0.86455,"size":855,"snap":"2022-40-2023-06","text_gpt3_token_len":222,"char_repetition_ratio":0.10810811,"word_repetition_ratio":0.0,"special_character_ratio":0.21169591,"punctuation_ratio":0.10119048,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97617346,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-02-04T02:50:27Z\",\"WARC-Record-ID\":\"<urn:uuid:778f99a9-4b87-4654-ab13-bdf60952ac0b>\",\"Content-Length\":\"36498\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:016010f0-49f7-4e43-9936-9de9caf65e2e>\",\"WARC-Concurrent-To\":\"<urn:uuid:1ec560d3-91c4-4009-92f2-2c50046e7900>\",\"WARC-IP-Address\":\"128.83.16.204\",\"WARC-Target-URI\":\"https://classes.golem.ph.utexas.edu/category/2009/07/generalized_homotopy_theory.html\",\"WARC-Payload-Digest\":\"sha1:UHSCR3JPNHHDWBHUH3INRGWWIBI4DHEM\",\"WARC-Block-Digest\":\"sha1:CRVJJNSYUHKGAZJ5MYJMAS5KATILQ7XF\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764500080.82_warc_CC-MAIN-20230204012622-20230204042622-00259.warc.gz\"}"}
https://profdoc.um.ac.ir/paper-abstract-1016553.html
[ "ROMAI Journal, Volume (4), No (2), Year (2008-6) , Pages (191-203)\n\n#### Title : ( A Numerical methods for obtaining the Generalized derivatives of non differentiable function )\n\nCitation: BibTeX | EndNote\n\n#### Abstract\n\nA numerical method to achieve generalized derivative for continuous functions which are nondi®erentiable, is introduced. At ¯rst, it is proved that the relation between a continuously di®erentiable function and its derivative can be shown with an in¯nite moment problem (IMP). Then, by approximating the IMP to a ¯nite moment problem (FMP), we obtain the relation between continuous and nondi®erentiable function and its generalized derivative. Thus, by solving the FMP with numerical method, the generalized derivative is achieved. Finally, e±ciency of our approach is con¯rmed by some numerical examples.\n\n#### Keywords\n\n, generalized derivative, non-di®erentiable functions, infinite moment problem, finite moment problem.\nبرای دانلود از شناسه و رمز عبور پرتال پویا استفاده کنید.", null, "@article{paperid:1016553,\ntitle = {A Numerical methods for obtaining the Generalized derivatives of non differentiable function},\njournal = {ROMAI Journal},\nyear = {2008},\nvolume = {4},\nnumber = {2},\nmonth = {June},\nissn = {1841-5512},\npages = {191--203},\nnumpages = {12},\nkeywords = {generalized derivative; non-di®erentiable functions; infinite moment problem;finite moment problem.},\n}" ]
[ null, "https://profdoc.um.ac.ir/images/ajax-loader.gif", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8561688,"math_prob":0.9242213,"size":1631,"snap":"2020-24-2020-29","text_gpt3_token_len":409,"char_repetition_ratio":0.15119852,"word_repetition_ratio":0.09777778,"special_character_ratio":0.23543838,"punctuation_ratio":0.16788322,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98821414,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-07-10T12:12:04Z\",\"WARC-Record-ID\":\"<urn:uuid:5d1c26bb-9bf4-4c5e-bb77-1801103bd78c>\",\"Content-Length\":\"25060\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:dea5a739-04a1-4e01-ad7e-e5b4bf6b32fd>\",\"WARC-Concurrent-To\":\"<urn:uuid:c0f13364-afe4-4729-8922-ef1f4559201b>\",\"WARC-IP-Address\":\"109.122.252.57\",\"WARC-Target-URI\":\"https://profdoc.um.ac.ir/paper-abstract-1016553.html\",\"WARC-Payload-Digest\":\"sha1:RUYP2GOK3XUUCSRWRGOZ35VEW52A2B7Y\",\"WARC-Block-Digest\":\"sha1:PGIF2PZUSNHNHM2BGWW5IC62DJ6R37I2\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593655908294.32_warc_CC-MAIN-20200710113143-20200710143143-00243.warc.gz\"}"}
https://flashgene.com/archives/161714.html
[ "## 一、基于ID3算法手动构建决策树,并通过Matplotlib进行可视化", null, "\\begin{aligned} & Gain(D, 年龄) = 0.083 \\\\ & Gain(D, 工作)=0.324 \\\\ & Gain(D, 房子)=0.420 \\\\ & Gain(D, 信用)=0.363 \\end{aligned}\n\n\\begin{aligned} & Gain(D_1, 年龄) = 0.251 \\\\ & Gain(D_1, 工作)=0.918 \\\\ & Gain(D_1, 信用)=0.474 \\end{aligned}", null, "{\"房子\": {\n\"1\": \"Y\",\n\"0\":{\"工作\": {\n\"1\": \"Y\",\n\"0\": \"N\"\n}}\n}}\n\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:创建训数据集\n\"\"\"\ndef establish_data():\ndata = [[0, 0, 0, 0, 'N'], # 样本数据集相关信息,前面几项代表属性特征,最后一项表示是否放款\n[0, 0, 0, 1, 'N'],\n[0, 1, 0, 1, 'Y'],\n[0, 1, 1, 0, 'Y'],\n[0, 0, 0, 0, 'N'],\n[1, 0, 0, 0, 'N'],\n[1, 0, 0, 1, 'N'],\n[1, 1, 1, 1, 'Y'],\n[1, 0, 1, 2, 'Y'],\n[1, 0, 1, 2, 'Y'],\n[2, 0, 1, 2, 'Y'],\n[2, 0, 1, 1, 'Y'],\n[2, 1, 0, 1, 'Y'],\n[2, 1, 0, 2, 'Y'],\n[2, 0, 0, 0, 'N']]\nlabels = [\"年纪\", \"工作\", \"房子\", \"信用\"]\nreturn np.array(data), labels\n\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:找出对应属性特征值的样本,比如找出所有年纪为青年的样本数据集\n\"\"\"\ndef handle_data(data, axis, value):\nresult_data = list()\nfor item in data:\nif item[axis] == value:\nreduced_data = item[: axis].tolist()\nreduced_data.extend(item[axis + 1:])\nresult_data.append(reduced_data)\nreturn result_data\n\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:创建决策树\n\"\"\"\ndef establish_decision_tree(data, labels, feat_labels):\ncat_list = [item[-1] for item in data]\nif (cat_list.count(cat_list) == len(cat_list)): return cat_list # 数据集中的类别只有一种\nbest_feature_index = calc_information_gain(data) # 通过信息增益优先选取最好的属性特征\nbest_label = labels[best_feature_index] # 属性特征对应的标签内容\n# feat_labels表示已选取的属性;新建一个决策树节点;将属性标签列表中删除已选取的属性\nfeat_labels.append(best_label); decision_tree = {best_label: dict()}; del(labels[best_feature_index])\nfeature_values = [item[best_feature_index] for item in data]\nunique_values = set(feature_values) # 获取最优属性对应值的set集合\nfor value in unique_values:\nsub_label = labels[:]\ndecision_tree[best_label][value] = establish_decision_tree(np.array(handle_data(data, best_feature_index, value)), sub_label, feat_labels)\nreturn decision_tree\n\nimport numpy as np\nimport pandas as pd\nnp.__version__\npd.__version__\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:创建训数据集\n\"\"\"\ndef establish_data():\ndata = [[0, 0, 0, 0, 'N'], # 样本数据集相关信息,前面几项代表属性特征,最后一项表示是否放款\n[0, 0, 0, 1, 'N'],\n[0, 1, 0, 1, 'Y'],\n[0, 1, 1, 0, 'Y'],\n[0, 0, 0, 0, 'N'],\n[1, 0, 0, 0, 'N'],\n[1, 0, 0, 1, 'N'],\n[1, 1, 1, 1, 'Y'],\n[1, 0, 1, 2, 'Y'],\n[1, 0, 1, 2, 'Y'],\n[2, 0, 1, 2, 'Y'],\n[2, 0, 1, 1, 'Y'],\n[2, 1, 0, 1, 'Y'],\n[2, 1, 0, 2, 'Y'],\n[2, 0, 0, 0, 'N']]\nlabels = [\"年纪\", \"工作\", \"房子\", \"信用\"]\nreturn np.array(data), labels\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:计算信息熵\n\"\"\"\ndef calc_information_entropy(data):\ndata_number, _ = data.shape\ninformation_entropy = 0\nfor item in pd.DataFrame(data).groupby(_ - 1):\nproportion = item.shape / data_number\ninformation_entropy += - proportion * np.log2(proportion)\nreturn information_entropy\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:找出对应属性特征值的样本,比如找出所有年纪为青年的样本数据集\n\"\"\"\ndef handle_data(data, axis, value):\nresult_data = list()\nfor item in data:\nif item[axis] == value:\nreduced_data = item[: axis].tolist()\nreduced_data.extend(item[axis + 1:])\nresult_data.append(reduced_data)\nreturn result_data\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:计算最大的信息增益,并输出其所对应的特征索引\n\"\"\"\ndef calc_information_gain(data):\nfeature_number = data.shape - 1 # 属性特征的数量\nbase_entropy = calc_information_entropy(data) # 计算总体数据集的信息熵\nmax_information_gain, best_feature = 0.0, -1 # 初始化最大信息增益和对应的特征索引\nfor index in range(feature_number):\nfeat_list = [item[index] for item in data]\nfeat_set = set(feat_list)\nnew_entropy = 0.0\nfor set_item in feat_set: # 计算属性特征划分后的信息增益\nsub_data = handle_data(data, index, set_item)\nproportion = len(sub_data) / float(data.shape) # 计算子集的比例\nnew_entropy += proportion * calc_information_entropy(np.array(sub_data))\ntemp_information_gain = base_entropy - new_entropy # 计算信息增益\nprint(\"第%d个属性特征所对应的的增益为%.3f\" % (index + 1, temp_information_gain)) # 输出每个特征的信息增益\nif (temp_information_gain > max_information_gain):\nmax_information_gain, best_feature = temp_information_gain, index # 更新信息增益,确定的最大的信息增益对应的索引\nreturn best_feature\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:创建决策树\n\"\"\"\ndef establish_decision_tree(data, labels, feat_labels):\ncat_list = [item[-1] for item in data]\nif (cat_list.count(cat_list) == len(cat_list)): return cat_list # 数据集中的类别只有一种\nbest_feature_index = calc_information_gain(data) # 通过信息增益优先选取最好的属性特征\nbest_label = labels[best_feature_index] # 属性特征对应的标签内容\n# feat_labels表示已选取的属性;新建一个决策树节点;将属性标签列表中删除已选取的属性\nfeat_labels.append(best_label); decision_tree = {best_label: dict()}; del(labels[best_feature_index])\nfeature_values = [item[best_feature_index] for item in data]\nunique_values = set(feature_values) # 获取最优属性对应值的set集合\nfor value in unique_values:\nsub_label = labels[:]\ndecision_tree[best_label][value] = establish_decision_tree(np.array(handle_data(data, best_feature_index, value)), sub_label, feat_labels)\nreturn decision_tree\nif __name__ == \"__main__\":\ndata, labels = establish_data()\nprint(establish_decision_tree(data, labels, list()))\n\n{'房子': {'1': 'Y', '0': {'工作': {'1': 'Y', '0': 'N'}}}}\n\nimport numpy as np\nimport pandas as pd\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:创建训数据集\n\"\"\"\ndef establish_data():\ndata = [[0, 0, 0, 0, 'N'], # 样本数据集相关信息,前面几项代表属性特征,最后一项表示是否放款\n[0, 0, 0, 1, 'N'],\n[0, 1, 0, 1, 'Y'],\n[0, 1, 1, 0, 'Y'],\n[0, 0, 0, 0, 'N'],\n[1, 0, 0, 0, 'N'],\n[1, 0, 0, 1, 'N'],\n[1, 1, 1, 1, 'Y'],\n[1, 0, 1, 2, 'Y'],\n[1, 0, 1, 2, 'Y'],\n[2, 0, 1, 2, 'Y'],\n[2, 0, 1, 1, 'Y'],\n[2, 1, 0, 1, 'Y'],\n[2, 1, 0, 2, 'Y'],\n[2, 0, 0, 0, 'N']]\nlabels = [\"年纪\", \"工作\", \"房子\", \"信用\"]\nreturn np.array(data), labels\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:计算信息熵\n\"\"\"\ndef calc_information_entropy(data):\ndata_number, _ = data.shape\ninformation_entropy = 0\nfor item in pd.DataFrame(data).groupby(_ - 1):\nproportion = item.shape / data_number\ninformation_entropy += - proportion * np.log2(proportion)\nreturn information_entropy\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:找出对应属性特征值的样本,比如找出所有年纪为青年的样本数据集\n\"\"\"\ndef handle_data(data, axis, value):\nresult_data = list()\nfor item in data:\nif item[axis] == value:\nreduced_data = item[: axis].tolist()\nreduced_data.extend(item[axis + 1:])\nresult_data.append(reduced_data)\nreturn result_data\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:计算最大的信息增益,并输出其所对应的特征索引\n\"\"\"\ndef calc_information_gain(data):\nfeature_number = data.shape - 1 # 属性特征的数量\nbase_entropy = calc_information_entropy(data) # 计算总体数据集的信息熵\nmax_information_gain, best_feature = 0.0, -1 # 初始化最大信息增益和对应的特征索引\nfor index in range(feature_number):\nfeat_list = [item[index] for item in data]\nfeat_set = set(feat_list)\nnew_entropy = 0.0\nfor set_item in feat_set: # 计算属性特征划分后的信息增益\nsub_data = handle_data(data, index, set_item)\nproportion = len(sub_data) / float(data.shape) # 计算子集的比例\nnew_entropy += proportion * calc_information_entropy(np.array(sub_data))\ntemp_information_gain = base_entropy - new_entropy # 计算信息增益\nprint(\"第%d个属性特征所对应的的增益为%.3f\" % (index + 1, temp_information_gain)) # 输出每个特征的信息增益\nif (temp_information_gain > max_information_gain):\nmax_information_gain, best_feature = temp_information_gain, index # 更新信息增益,确定的最大的信息增益对应的索引\nreturn best_feature\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:创建决策树\n\"\"\"\ndef establish_decision_tree(data, labels, feat_labels):\ncat_list = [item[-1] for item in data]\nif (cat_list.count(cat_list) == len(cat_list)): return cat_list # 数据集中的类别只有一种\nbest_feature_index = calc_information_gain(data) # 通过信息增益优先选取最好的属性特征\nbest_label = labels[best_feature_index] # 属性特征对应的标签内容\n# feat_labels表示已选取的属性;新建一个决策树节点;将属性标签列表中删除已选取的属性\nfeat_labels.append(best_label); decision_tree = {best_label: dict()}; del(labels[best_feature_index])\nfeature_values = [item[best_feature_index] for item in data]\nunique_values = set(feature_values) # 获取最优属性对应值的set集合\nfor value in unique_values:\nsub_label = labels[:]\ndecision_tree[best_label][value] = establish_decision_tree(np.array(handle_data(data, best_feature_index, value)), sub_label, feat_labels)\nreturn decision_tree\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:统计决策树当中的叶子节点数目,以及决策树的深度\n\"\"\"\ndef get_leaf_number_and_tree_depth(decision_tree):\nleaf_number, first_key, tree_depth = 0, next(iter(decision_tree)), 0; second_dict = decision_tree[first_key]\nfor key in second_dict.keys():\nif type(second_dict.get(key)).__name__ == \"dict\":\ntemp_number, temp_depth = get_leaf_number_and_tree_depth(second_dict[key])\nleaf_number, curr_depth = leaf_number + temp_number, 1 + temp_depth\nelse: leaf_number += 1; curr_depth = 1\nif curr_depth > tree_depth: tree_depth = curr_depth\nreturn leaf_number, tree_depth\nfrom matplotlib.font_manager import FontProperties\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:绘制节点\n\"\"\"\ndef plot_node(node_text, center_pt, parent_pt, node_type):\narrow_args = dict(arrowstyle = \"<-\")\nfont = FontProperties(fname=r\"c:\\windows\\fonts\\simsun.ttc\", size=14) # 设置字体\ncreate_plot.ax1.annotate(node_text, xy=parent_pt, xycoords='axes fraction',\nxytext=center_pt, textcoords='axes fraction',\nva=\"center\", ha=\"center\", bbox=node_type, arrowprops=arrow_args, FontProperties=font)\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:标注有向边的值\n\"\"\"\ndef tag_text(cntr_pt, parent_pt, node_text):\nx_mid = (parent_pt - cntr_pt) / 2.0 + cntr_pt\ny_mid = (parent_pt - cntr_pt) / 2.0 + cntr_pt\ncreate_plot.ax1.text(x_mid, y_mid, node_text, va=\"center\", ha=\"center\", rotation=30)\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:绘制决策树\n\"\"\"\ndef plot_tree(decision_tree, parent_pt, node_text):\ndecision_node = dict(boxstyle=\"sawtooth\", fc=\"0.8\")\nleaf_node = dict(boxstyle = \"round4\", fc = \"0.8\")\nleaf_number, tree_depth = get_leaf_number_and_tree_depth(decision_tree)\nfirst_key = next(iter(decision_tree))\ncntr_pt = (plot_tree.xOff + (1.0 + float(leaf_number)) / 2.0 / plot_tree.totalW, plot_tree.yOff)\ntag_text(cntr_pt, parent_pt, node_text); plot_node(first_key, cntr_pt, parent_pt, decision_node)\nsecond_dict = decision_tree[first_key]\nplot_tree.yOff = plot_tree.yOff - 1.0 / plot_tree.totalD\nfor key in second_dict.keys():\nif type(second_dict[key]).__name__ == 'dict': plot_tree(second_dict[key], cntr_pt, str(key))\nelse:\nplot_tree.xOff = plot_tree.xOff + 1.0 / plot_tree.totalW\nplot_node(second_dict[key], (plot_tree.xOff, plot_tree.yOff), cntr_pt, leaf_node)\ntag_text((plot_tree.xOff, plot_tree.yOff), cntr_pt, str(key))\nplot_tree.yOff = plot_tree.yOff + 1.0 / plot_tree.totalD\nfrom matplotlib import pyplot as plt\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:创建决策树\n\"\"\"\ndef create_plot(in_tree):\nfig = plt.figure(1, facecolor = \"white\")\nfig.clf()\naxprops = dict(xticks = [], yticks = [])\ncreate_plot.ax1 = plt.subplot(111, frameon = False, **axprops)\nleaf_number, tree_depth = get_leaf_number_and_tree_depth(in_tree)\nplot_tree.totalW, plot_tree.totalD = float(leaf_number), float(tree_depth)\nplot_tree.xOff = -0.5 / plot_tree.totalW; plot_tree.yOff = 1.0\nplot_tree(in_tree, (0.5,1.0), '')\nplt.show()\n\nif __name__ == \"__main__\":\ndata, labels = establish_data()\ndecision_tree = establish_decision_tree(data, labels, list())\nprint(decision_tree)\nprint(\"决策树的叶子节点数和深度:\", get_leaf_number_and_tree_depth(decision_tree))\ncreate_plot(decision_tree)", null, "get_leaf_number_and_tree_depth 主要用于统计决策树当中的叶子节点数目,以及决策树的深度。选取 key 对应的 value ,判断 value 是否为一个字典类型,否的话说明是一个叶子节点,是的话说明非叶子节点,不同情况做不同处理\nplot_node 方法用于绘制节点,这里设置了font类型是在windows下的,如果是linux则需要额外设置\ntag_text 用于标注有向边的属性值,在这里主要是用1和0来进行标注,1代表对属性的肯定,0表示否定\nplot_tree 遍历绘制决策树,在这里需要调用前面所定义的几个方法\n\n## 二、基于已经构建好的决策树进行分类预测\n\n\"\"\"\nAuthor: Taoye\n微信公众号: 玩世不恭的Coder\nExplain:通过决策树模型对测试数据进行分类\n\"\"\"\ndef classify(decision_tree, best_feature_labels, test_data):\nfirst_node = next(iter(decision_tree))\nsecond_dict = decision_tree[first_node]\nfeat_index = best_feature_labels.index(first_node)\nfor key in second_dict.keys():\nif int(test_data[feat_index]) == int(key):\nif type(second_dict[key]).__name__ == \"dict\": # 为字典说明还没到叶子节点\nresult_label = classify(second_dict[key], best_feature_labels, test_data)\nelse: result_label = second_dict[key]\nreturn result_label", null, "## 三、构建好的决策树模型应当如何保存和读取?\n\nimport pickle\nwith open(\"DecisionTreeModel.txt\", \"wb\") as f:\npickle.dump(decision_tree, f) # 保存决策树模型\nf = open(\"DecisionTreeModel.txt\", \"rb\")\ndecision_tree = pickle.load(f) # 加载决策树模型\n\n## 四、通过鸢尾花(Iris)数据集,使用Sklearn构建决策树", null, "criterion :属性选取的标准,默认采用的是 gini ,也可以自行选择 entropygini 是基尼值, entropy 是信息熵,这两个我们在上篇文章中已经讲到过了\nsplitter :特征划分节点的选择标准,默认是best,可以设置为random。默认的”best”适合样本量不大的时候,而如果样本数据量非常大,此时决策树构建推荐”random”。\nmax_depth :决策树最大深度,默认是None。 需要注意一点的是,该深度是不包含根节点的。 一般来说,数据少或者特征少的时候可以不管这个值。如果模型样本量多,特征也多的情况下,推荐限制这个最大深度,具体的取值取决于数据的分布。\nmax_features :划分时考虑的最大特征数,默认是None。一般来说,如果样本特征数不多,比如小于50,我们用默认的”None”就可以了,如果特征数非常多,我们可以灵活使用其他取值来控制划分时考虑的最大特征数,以控制决策树的生成时间。用到的时候查看下文档即可。\nmin_samples_split :内部节点再划分所需最小样本数,默认为2。意思就是说,比如我们某个属性对应样本数目小于 min_samples_split ,即使它满足优先选取条件,依然会被剔除掉。\nmin_samples_leaf :叶子节点最少样本数,默认是1。这个 值限制了叶子节点最少的样本数,如果某叶子节点数目小于样本数,则会和兄弟节点一起被剪枝。叶结点需要最少的样本数,也就是最后到叶结点,需要多少个样本才能算一个叶结点 。如果设置为1,哪怕这个类别只有1个样本,决策树也会构建出来。\nmax_leaf_nodes :最大叶子节点数,默认是None。通过限制最大叶子节点数,可以防止过拟合。如果加了限制,算法会建立在最大叶子节点数内最优的决策树。如果特征不多,可以不考虑这个值,但是如果特征分成多的话,可以加以限制,具体的值可以通过交叉验证得到。\nrandom_state :随机数种子,默认是None。如果没有设置随机数,随机出来的数与当前系统时间有关,每个时刻都是不同的。如果设置了随机数种子,那幺相同随机数种子,不同时刻产生的随机数也是相同的。", null, "import numpy as np\nimport matplotlib.pyplot as plt\nfrom sklearn.tree import DecisionTreeClassifier, plot_tree\nclass IrisDecisionTree:\n\"\"\"\nExplain:属性的初始化\nParameters:\nn_classes: 鸢尾花的类别数\nplot_colors: 不同类别花的颜色\nplot_step: meshgrid网格的步长\n\"\"\"\ndef __init__(self, n_classes, plot_colors, plot_step):\nself.n_classes = n_classes\nself.plot_colors = plot_colors\nself.plot_step = plot_step\n\n\"\"\"\n\"\"\"\ndef establish_data(self):\nreturn iris_info.data, iris_info.target, iris_info.feature_names, iris_info.target_names\n\n\"\"\"\nExplain:分类的可视化\n\"\"\"\ndef show_result(self, x_data, y_label, feature_names, target_names):\n# 选取两个属性来构建决策树,以方便可视化,其中列表内部元素代表属性对应的索引\nfor index, pair in enumerate([[0, 1], [0, 2], [0, 3], [1, 2], [1, 3], [2, 3]]):\nsub_x_data, sub_y_label = x_data[:, pair], y_label\nclf = DecisionTreeClassifier().fit(sub_x_data, sub_y_label) # 选取两个属性构建决策树\nplt.subplot(2, 3, index + 1)\nx_min, x_max = sub_x_data[:, 0].min() - 1, sub_x_data[:, 0].max() + 1 # 第一个属性\ny_min, y_max = sub_x_data[:, 1].min() - 1, sub_x_data[:, 1].max() + 1 # 第二个属性\nxx, yy = np.meshgrid(np.arange(x_min, x_max, self.plot_step), np.arange(y_min, y_max, self.plot_step))\nZ = clf.predict(np.c_[xx.ravel(), yy.ravel()]).reshape(xx.shape) # 预测meshgrid内部每个元素的分类\ncs = plt.contourf(xx, yy, Z, cmap = plt.cm.RdYlBu) # 绘制带有颜色的网格图\nplt.xlabel(feature_names[pair]); plt.ylabel(feature_names[pair]) # 标注坐标轴标签\nfor i, color in zip(range(self.n_classes), self.plot_colors):\nidx = np.where(sub_y_label == i)\nplt.scatter(sub_x_data[idx, 0], sub_x_data[idx, 1], c=color, label=target_names[i],\ncmap=plt.cm.RdYlBu, edgecolor='black', s=15) # 绘制数据样本集的散点图\n\nfrom matplotlib.font_manager import FontProperties\nfont = FontProperties(fname=r\"c:\\windows\\fonts\\simsun.ttc\", size=14) # 定义中文字体\nplt.suptitle(\"通过决策树对鸢尾花数据进行可视化\", fontproperties=font)\nplt.axis(\"tight\")\nplt.figure()\nclf = DecisionTreeClassifier().fit(x_data, y_label) # 针对鸢尾花数据集的多重属性来构建决策树\nplot_tree(clf, filled=True)\nplt.show()\n\nif __name__ == \"__main__\":\niris_decision_tree = IrisDecisionTree(3, \"ryb\", 0.02)\nx_data, y_label, feature_names, target_names = iris_decision_tree.establish_data()\niris_decision_tree.show_result(x_data, y_label, feature_names, target_names)", null, "graphviz 不能采用pip进行安装,采用anaconda安装的时候也会很慢,甚至多次尝试都可能安装失败,前几天帮同学安装就出现这种情况(windows下是这样的,linux环境下会很方便),所以这里我们采用直接通过 whl 文件来安装。", null, "pip install graphviz‑0.15‑py3‑none‑any.whl\n\n$sudo apt install graphviz # Ubuntu$ sudo apt install graphviz # Debian\n\n\"\"\"\nExplain:通过graphviz实现决策树的可视化\n\"\"\"\ndef show_result_by_graphviz(self, x_data, y_label):\nclf = DecisionTreeClassifier().fit(x_data, y_label)\niris_dot_data = tree.export_graphviz(clf, out_file=None,\nfeature_names=iris.feature_names,\nclass_names=iris.target_names,\nfilled=True, rounded=True,\nspecial_characters=True)\nimport graphviz\ngraph = graphviz.Source(iris_dot_data); graph.render(\"iris\")\n\n#### 参考资料:\n\n 《机器学习实战》:Peter Harrington 人民邮电出版社 《统计学习方法》:李航 第二版 清华大学出版社 《机器学习》:周志华 清华大学出版社\n\n Python Extension Packages: https://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud\n\n sklearn.tree.DecisionTreeClassifier: https://scikit-learn.org/stable/modules/generated/sklearn.tree.DecisionTreeClassifier.html\n\n Graphviz官网: https://graphviz.org/" ]
[ null, "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzQwMScgd2lkdGg9JzY0OScgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJyB2ZXJzaW9uPScxLjEnLz4=", null, "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzYyMicgd2lkdGg9JzgwNicgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJyB2ZXJzaW9uPScxLjEnLz4=", null, "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzU1Nicgd2lkdGg9JzYxMicgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJyB2ZXJzaW9uPScxLjEnLz4=", null, "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwNicgd2lkdGg9JzU0MicgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJyB2ZXJzaW9uPScxLjEnLz4=", null, "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzgzNScgd2lkdGg9Jzk1OCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJyB2ZXJzaW9uPScxLjEnLz4=", null, "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMzNycgd2lkdGg9Jzk0NCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJyB2ZXJzaW9uPScxLjEnLz4=", null, "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzQ0OCcgd2lkdGg9JzExMjEnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgdmVyc2lvbj0nMS4xJy8+", null, "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzExMicgd2lkdGg9JzM5OCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJyB2ZXJzaW9uPScxLjEnLz4=", null ]
{"ft_lang_label":"__label__zh","ft_lang_prob":0.50746655,"math_prob":0.97312,"size":21184,"snap":"2020-45-2020-50","text_gpt3_token_len":10794,"char_repetition_ratio":0.1401322,"word_repetition_ratio":0.4846154,"special_character_ratio":0.2735083,"punctuation_ratio":0.25108492,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9879364,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-12-05T08:16:38Z\",\"WARC-Record-ID\":\"<urn:uuid:111477a6-d2d7-4576-adb3-6d5464a3c460>\",\"Content-Length\":\"112908\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:232c7ad0-495f-4f14-b4c1-2ec22f5cb477>\",\"WARC-Concurrent-To\":\"<urn:uuid:3fbfaa18-bb67-4006-bb0c-2db903952302>\",\"WARC-IP-Address\":\"172.67.201.240\",\"WARC-Target-URI\":\"https://flashgene.com/archives/161714.html\",\"WARC-Payload-Digest\":\"sha1:IE6GBSVXGLC2GIJDWETDQ2OCSWJIA7LN\",\"WARC-Block-Digest\":\"sha1:H537BB5YGLMS5ECFWUJL57ODE4XOF7VE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141747323.98_warc_CC-MAIN-20201205074417-20201205104417-00436.warc.gz\"}"}
https://hungary.pure.elsevier.com/en/publications/thermodynamic-significance-of-boiling-point-correlations-for-alky
[ "# Thermodynamic significance of boiling point correlations for alkylbenzenes in gas chromatography. Extension of Trouton's rule\n\nKároly Héberger, Teresa Kowalska\n\nResearch output: Contribution to journalArticle\n\n21 Citations (Scopus)\n\n### Abstract\n\nA more exact thermodynamic interpretation of the empirical correlations between retention parameters of solutes (i.e. the relative retention times: τ (s)) and their boiling points (T(B)) was established using Trouton-Hildebrandt-Everett's rule (the extension of Trouton's rule). These empirical correlations are known for C6-C12 alkylbenzenes for low and medium polar stationary phases. A statistical analysis has been made to compare the description by the old and newly developed models. The exponential relation suggested earlier [Chromatographia, 44 (1997) 179-186] can be extended into a form consisting of two variables T(M), T(B):τ((i)corr.)=AT(M(i)) exp(BT(B(i)))where: τ((i)corr.)=(t(R(i))-t0)/t(R(st)), A=(t0Φ/t(R(st))) exp(-4.0), T(M(i))=T(B(i))((T(B(i))/T-1)), B=4.0/T, t0 is the column dead time, Φ is the phase ratio, t(R(st)) is the retention time of the standard compound, R is the gas constant, T is the column temperature, and subscript '(i)' refers to the ith alkylbenzene. High correlation coefficients and small residual error indicate the superiority of the developed equation. Moreover, the residua show normal behavior, whereas curvature can be seen in the residua for earlier models. Validity of the approach proposed was confirmed through a comparison of the numerical values obtained from our computation (fitted values) with those stemming from theory. Copyright (C) 1999 Elsevier Science B.V.\n\nOriginal language English 13-20 8 Journal of Chromatography A 845 1-2 https://doi.org/10.1016/S0021-9673(99)00289-7 Published - Jun 11 1999\n\n### Keywords\n\n• Alkylbenzenes\n• Boiling points\n• Quantitative structure-retention relationships\n• Thermodynamic parameters\n• Trouton's rule\n\n### ASJC Scopus subject areas\n\n• Analytical Chemistry\n• Biochemistry\n• Organic Chemistry" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8170621,"math_prob":0.7761512,"size":1854,"snap":"2020-10-2020-16","text_gpt3_token_len":471,"char_repetition_ratio":0.0945946,"word_repetition_ratio":0.0,"special_character_ratio":0.24649407,"punctuation_ratio":0.093939394,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9838796,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-04-08T05:59:55Z\",\"WARC-Record-ID\":\"<urn:uuid:002a7cd8-87e7-425b-b47e-93ac7da53289>\",\"Content-Length\":\"41996\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f7497808-0cc6-4f5f-8b78-7870c6021b27>\",\"WARC-Concurrent-To\":\"<urn:uuid:e3816415-0a6a-476c-923d-71347423eca9>\",\"WARC-IP-Address\":\"52.51.22.49\",\"WARC-Target-URI\":\"https://hungary.pure.elsevier.com/en/publications/thermodynamic-significance-of-boiling-point-correlations-for-alky\",\"WARC-Payload-Digest\":\"sha1:7BLWU6H6YB2LH2LOI2SEEQUQ26RYK55U\",\"WARC-Block-Digest\":\"sha1:LUK2HXWYL5NITWH7SWA2YTU23Z2MYKUB\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-16/CC-MAIN-2020-16_segments_1585371810617.95_warc_CC-MAIN-20200408041431-20200408071931-00233.warc.gz\"}"}
https://de.maplesoft.com/support/help/Maple/view.aspx?path=plottools%2Ftransform
[ "plottools - Maple Programming Help\n\nHome : Support : Online Help : Graphics : Packages : Plot Tools : plottools/transform\n\nplottools\n\n transform\n generate procedure to transform plots\n\n Calling Sequence transform(f)\n\nParameters\n\n f - procedure\n\nDescription\n\n • The transform command generates a procedure that can be used to change plot data structures by applying the procedure f to all the points in the plot structure.\n • The procedure f represents a mapping\n\n$f:{R}^{m}\\to {R}^{n}$\n\n where m and n can take values 2 or 3. The procedure must take as input m arguments and output a list of n components.\n • Examples of the use of this command include embedding 2-D plots into 3-D space, changing coordinate systems or transforming curves in the complex plane into the Riemann Sphere.\n • The result of a call to transform is a procedure that takes a 2-D or 3-D plot data structure as parameter. You can assign the procedure to a variable, and apply the procedure to various plots.  For more information about plot data structures, see plot/structure.\n • The transform command is usually used with [m, n] equal to [2, 2], [2, 3], or [3, 3].  It returns a transformation procedure in the case where m is 3 and n is 2.  However, this procedure works only on those 3-D plot objects that have 2-D counterparts.\n • Several commands in the plottools package can transform plots. For a list, see the plottools help page.  The plots[changecoords] and plots[display] commands can also be used to transform plots.\n • If the transform command is applied to a filled shape, such as an arrow or rectangle, the polygon that is generated might not resemble the result one would expect from a transformation of the entire shape. That is because the transform command works only on the points of the plot data structure, which are typically the vertices and not interior points.\n\nExamples\n\n > $\\mathrm{with}\\left(\\mathrm{plottools}\\right):$\n > $\\mathrm{with}\\left(\\mathrm{plots}\\right):$\n\nDraw contour plots onto axes of 3-D plots.\n\n > $p≔\\mathrm{plot3d}\\left(-\\frac{5x}{{x}^{2}+{y}^{2}+1},x=-3..3,y=-3..3,\\mathrm{style}=\\mathrm{contour},\\mathrm{contours}=8\\right):$\n > $q≔\\mathrm{contourplot}\\left(-\\frac{5x}{{x}^{2}+{y}^{2}+1},x=-3..3,y=-3..3,\\mathrm{filled}=\\mathrm{true}\\right):$\n > $f≔\\mathrm{transform}\\left(\\left(x,y\\right)→\\left[x,y,-3\\right]\\right):$\n > $\\mathrm{display}\\left(\\left\\{p,f\\left(q\\right)\\right\\},\\mathrm{orientation}=\\left[50,40\\right]\\right)$", null, "Change coordinate systems.\n\n > $p≔\\mathrm{plot3d}\\left(\\left[{1.3}^{x}\\mathrm{sin}\\left(y\\right),x,y\\right],x=-1..2\\mathrm{Pi},y=0..\\mathrm{Pi}\\right):$\n > $f≔\\mathrm{transform}\\left(\\left(r,\\mathrm{th},\\mathrm{ph}\\right)→\\left[r\\mathrm{sin}\\left(\\mathrm{ph}\\right)\\mathrm{cos}\\left(\\mathrm{th}\\right),r\\mathrm{sin}\\left(\\mathrm{ph}\\right)\\mathrm{sin}\\left(\\mathrm{th}\\right),r\\mathrm{cos}\\left(\\mathrm{ph}\\right)\\right]\\right):$\n > $\\mathrm{display}\\left(\\left\\{p,f\\left(p\\right)\\right\\},\\mathrm{orientation}=\\left[145,20\\right],\\mathrm{scaling}=\\mathrm{constrained}\\right)$", null, "" ]
[ null, "https://de.maplesoft.com/support/help/content/9054/plot166.png", null, "https://de.maplesoft.com/support/help/content/9054/plot185.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.77475977,"math_prob":0.9992706,"size":2423,"snap":"2019-35-2019-39","text_gpt3_token_len":676,"char_repetition_ratio":0.15254237,"word_repetition_ratio":0.0,"special_character_ratio":0.22657862,"punctuation_ratio":0.15238096,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99899286,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-20T12:32:00Z\",\"WARC-Record-ID\":\"<urn:uuid:c0989a7e-e121-4da8-b45a-f029105610a2>\",\"Content-Length\":\"189301\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a0023ace-6a3d-487f-9867-f8d935bf8730>\",\"WARC-Concurrent-To\":\"<urn:uuid:42eb186e-298e-4873-b458-bb5fbe08f931>\",\"WARC-IP-Address\":\"199.71.183.28\",\"WARC-Target-URI\":\"https://de.maplesoft.com/support/help/Maple/view.aspx?path=plottools%2Ftransform\",\"WARC-Payload-Digest\":\"sha1:U3JBFL7WGARAKZZDYLEPXJS7SLGPHEAZ\",\"WARC-Block-Digest\":\"sha1:HGMTVKB6PGCRIY4GKH43REO2A6VITOPZ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514574018.53_warc_CC-MAIN-20190920113425-20190920135425-00047.warc.gz\"}"}
https://cbsemathssolutions.in/area-of-circle-formula-with-examples-explained/
[ "# Area of circle formula with examples explained\n\nLearn and know what is the area of circle formula. All of us know what is a circle and the important terms related to circle i.e. diameter, radius, chord, perimeter, sector, and secant and so on. In this one more important term is area.", null, "Now we will learn how to find the area of circle. For this we have a formula. So now we will learn the area of circle formula. Don’t worry the formula is very simple and easy to remember. Just read and write the formula 4 or 5 times, automatically you can remember it.\n\n## Area of circle formula as follows:\n\nThe formula for finding the area of a circle is given by\n\nA = π r2\n\nπ We have a standard value i.e. 22/7 or 3.14 and “r” means radius of circle.\n\nNote:\n\nArea of circle formula can also be written in terms of diameter also. For this we need to replace “r” with d/2 in the above formula.\n\nSuppose if radius is 1 unit then the circle becomes unit circle.\n\n### Example Problems:\n\n♦ Calculate the area of a circle when radius is 49 cm.\n\nSolution:\n\nGiven\n\nWe know that,\n\nA = π r2\n\nA = 22/7 × 492\n\nA = 22/7 × 49 × 49\n\nA = 22 × 7 × 49\n\nA = 7546 cm2\n\n♦ If the diameter of a circle is given as 28 cm then find the area of a circle.\n\nSolution:\n\nGiven\n\nDiameter = 28 cm.\n\nRadius = diameter/2 = 28/2 = 14 cm.\n\nWe know that,\n\nA = π r2\n\nA = 22/7 × 142\n\nA = 22/7 × 14 × 14\n\nA = 22 × 2 × 14\n\nA = 616 cm2\n\n♦ The area of a circle is 1386 m2. Find the radius of the circle.\n\nSolution:\n\nGiven\n\nArea = 1386 m2\n\nWe know that,\n\nA = π r2\n\n1386   = 22/7  r2\n\n1386 × 7/22 = r2\n\n9702/22 = r2\n\n441 = r2\n\n212 = r2\n\n21 = r\n\nTherefore, radius of a circle is 21 m.\n\nI hope you understood area of circle formula and the example problems based on it.", null, "" ]
[ null, "https://cbsemathssolutions.in/wp-content/uploads/2019/05/Area-of-circle-formula-with-examples-explained.png", null, "https://secure.gravatar.com/avatar/", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.86830425,"math_prob":0.99736047,"size":1639,"snap":"2019-26-2019-30","text_gpt3_token_len":514,"char_repetition_ratio":0.17981651,"word_repetition_ratio":0.075418994,"special_character_ratio":0.35204393,"punctuation_ratio":0.11023622,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9999765,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,1,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-07-23T05:07:34Z\",\"WARC-Record-ID\":\"<urn:uuid:ff4b8ae4-02a0-44d3-8d03-367b287908e4>\",\"Content-Length\":\"87053\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a255cff4-4b69-4497-9aca-d2f28571c07b>\",\"WARC-Concurrent-To\":\"<urn:uuid:43da7102-0033-4773-97ea-50d14e95530c>\",\"WARC-IP-Address\":\"160.153.138.53\",\"WARC-Target-URI\":\"https://cbsemathssolutions.in/area-of-circle-formula-with-examples-explained/\",\"WARC-Payload-Digest\":\"sha1:DVH2J5AOJHIYLG3CRQ7ZA42N2NDB5I5C\",\"WARC-Block-Digest\":\"sha1:MYR2VJD2TXUK3Q6U3TIG7OPT62HJUQYX\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-30/CC-MAIN-2019-30_segments_1563195528869.90_warc_CC-MAIN-20190723043719-20190723065719-00152.warc.gz\"}"}
https://www.causeweb.org/cause/statistical-topic/categorical-methods
[ "# Categorical Methods\n\n• ### Statistics: Basic Concepts for Astronomers\n\nThis presentation was given by Aneta Siemiginowska at the 4th International X-ray Astronomy School (2005), held at the Harvard-Smithsonian Center for Astrophysics in Cambridge, MA.\n\n• ### Introduction to Correlated Binary Data\n\nThis presentation is a part of a series of lessons on the Analysis of Categorical Data.  This lecture overs the following: covariance patterns and generalized estimating equations (GEE).\n\n• ### Conditional Logistic Models for Matched Pairs\n\nThis presentation is a part of a series of lessons on the Analysis of Categorical Data.  This lecture overs the following: conditional logistic regression, conditional likelihood for matched pairs, the non-central hypergeometric, the conditional maximum likelihood estimator (CMLE), conditional confidence interval for odds ratios, and McNemar's statistic.\n\n• ### Models for Matched Pairs\n\nThis presentation is a part of a series of lessons on the Analysis of Categorical Data.  This lecture overs the following:  odds ratio, dependent proportion, marginal homogeneity, McNemar's Test, marginal homogeneity for greater than 2 levels, measures of agreement, and the kappa coefficient (weighted vs. unweighted).\n\n• ### Log-linear Models - Sparse Tables\n\nThis presentation is a part of a series of lessons on the Analysis of Categorical Data. This lecture covers the following: sparse tables, sampling zeros, structural zeros, and log-linear model (and limitations).\n\n• ### Log-linear Models for Multidimensional Contingency Tables\n\nThis presentation is a part of a series of lessons on the Analysis of Categorical Data. This lecture covers the following: partial/conditional tables, confounding, types of independence (mutual, joint, marginal, and conditional), identifiability constraints, partial odds ratios, hierarchical log-linear model, pairwise interaction log-linear model, conditional independence log-linear model, goodness of fit, and model building.\n\n• ### Introduction to Log-linear Models\n\nThis presentation is a part of a series of lessons on the Analysis of Categorical Data. This lecture covers the following: conditional independence, log-linear models for 2x2 tables, expected counts, logistic regression, odds ratio, parameters of interest for different designs and the MLEs, poisson log-linear model, double dichotomy, the multinomial, and the multinomial log-linear model.\n\n• ### Logit Models for Multinomial Responses Part II\n\nThis presentation is a part of a series of lessons on the Analysis of Categorical Data. This lecture covers the following: ordinal regression models, cumulative probabilities, non-proportional odds, score stat for proportionl odds, MLEs, the adjacent categories logit, and proportional odds model.\n\n• ### Logit Models for Multinomial Responses Part I\n\nThis presentation is a part of a series of lessons on the Analysis of Categorical Data. This lecture covers the following: generalized odds ratio, collapsed categories, polytomous (or multinomial) logistic regression, and maximum likelihood using the multinomial.\n\n• ### Conditional Logistic Regression\n\nThis presentation is a part of a series of lessons on the Analysis of Categorical Data. This lecture covers the following: unconditional likelihood, elimination of nuisance parameters, and Mantel-Haenzsel estimate." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8076332,"math_prob":0.831871,"size":3097,"snap":"2022-40-2023-06","text_gpt3_token_len":617,"char_repetition_ratio":0.13967022,"word_repetition_ratio":0.45813954,"special_character_ratio":0.18243462,"punctuation_ratio":0.15296367,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9973371,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-02-02T10:30:11Z\",\"WARC-Record-ID\":\"<urn:uuid:a85a5df8-933b-4fa1-ba09-470f793273ad>\",\"Content-Length\":\"60332\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:57743ae9-4551-465e-beed-0c85bd2f5f33>\",\"WARC-Concurrent-To\":\"<urn:uuid:285f902f-f6f0-4867-aaa5-544b8bea1f06>\",\"WARC-IP-Address\":\"128.118.15.93\",\"WARC-Target-URI\":\"https://www.causeweb.org/cause/statistical-topic/categorical-methods\",\"WARC-Payload-Digest\":\"sha1:DTHHMT3DRH6IZ6P3HZHCUZAA227CCPVK\",\"WARC-Block-Digest\":\"sha1:UXZII7IFV332SSED4O7EIAQTWKICSLRC\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764500017.27_warc_CC-MAIN-20230202101933-20230202131933-00358.warc.gz\"}"}
https://askworksheet.com/fun-multiplication-worksheets/
[ "", null, "# Fun Multiplication Worksheets\n\nPrintable math worksheets for fun multiplication 1. The twos fives and tens are easy.", null, "Multiplication Spin And Multiply 2 8 So Much Fun When You Can Make A Game Out Of Learni Multiplication Math Activities Elementary Common Core Math Fractions\n\n### 2 to 6.", null, "Fun multiplication worksheets. Multiplication tables and charts given here help children to solve these problems quickly. If you re looking for more practice on a particular set of multiplication facts you can find a variety of printable worksheets from k 5 learning. Worksheet number range online.\n\nFree holiday seasonal and themed multiplication worksheets to help teach the times tables. Giant collection of fun free printable multiplication worksheets in a typical school setting 3rd grade and 4th grade is the time to focus on multiplication drills and basic multiplication lessons. Practice row and column multiplication of simple and large digit numbers.\n\nUsing skip counting worksheets is a simple way to introduce the basic multiplication facts and to review them well. After all just because learning multiplication is difficult doesn t mean it can t also be fun. Up to ten.\n\n6 to 20. So they make a great first assignment. 3 to 15.\n\nThey use the same fact layouts as the spaceship math sheets above so try the first two sets of worksheets if you are looking for all of the multiplication facts or for practice without the easier problems or try the. 2 to 10. These do tend to get a little boring and tedious though so i d encourage you to mix it up with some of the games and interactive worksheets above.\n\nMultiplication worksheets worksheets multiplication mixed tables worksheets. Each subsequent number is a multiple of the original number. 8 to 30.\n\nFree printable multiplication worksheets provided here has numerous exercises to sharpen your child s multiplication skills. More printable multiplication facts worksheets. These multiplication worksheets present the facts in a spiral layout that provides fun a twist on memorizing the times tables.\n\nIndividual table worksheets. Some kids learn their multiplication skills a bit earlier and others a bit later but 3rd grade and 4th grade is the general time frame. 1 to 4.\n\nMultiplication worksheets for parents and teachers that you will want to print. 2 to 12. For additional multiplication help check out our age appropriate multiplication worksheets and find the activities that your child will find stimulating and engaging.\n\nMultiplication mastery is close at hand with these thorough and fun worksheets that cover multiplication facts whole numbers fractions decimals and word problems. 12 to 100.", null, "", null, "Multiplication Worksheets Coloring Rocks Times Tables Worksheets Maths Times Tables Math Worksheets", null, "Silly Turtle Multiplication Puzzle Multiplication Facts Worksheets Math Coloring Worksheets Math Coloring", null, "Math Worksheet Fun Printable K5 Worksheets Fun Math Worksheets Math Coloring Addition Coloring Worksheet", null, "Multiplication Coloring Pages Google Search Math Coloring Worksheets Fun Math Worksheets Math Coloring", null, "Autumn Fall Color By Multiplication Worksheets Multiplication Worksheets Math Coloring Worksheets Math Worksheets", null, "Free Worksheet From Worksheets For Math Com By Rock N Learn Free Addition Worksheets Free Subtraction Worksheets F Fun Math Worksheets Math Maze Fun Math", null, "Halloween Multiplication Worksheets Math Multiplication Worksheets Multiplication Worksheets Math Worksheets", null, "Fun Math Worksheets For 4th Grade In 2020 Math Coloring Worksheets Fun Math Worksheets Math Coloring", null, "Fun Easy Thanksgiving Coloring And Activities Pages For Kids Thanksgiving Math Worksheets Thanksgiving Math Thanksgiving Worksheets", null, "Fun Multiplication Worksheets To 10×10 Multiplication Worksheets Fun Math Worksheets Math Sheets", null, "Summer End Of The Year Multiplication Worksheets By Teaching Naturally Multiplication Worksheets Multiplication Learning Colors", null, "This Growing Bundle Of Multiplication Tables From 2 To 12 Is Designed To Help Students P Multiplication Facts Multiplication Worksheets Times Tables Worksheets", null, "Worksheetfun Free Printable Worksheets Multiplication Activities Multiplication Worksheets Fun Math Worksheets", null, "Multiplication Spin And Multiply Such A Fun Multiplication Math Game Found In The November No P 3rd Grade Math Math Multiplication Worksheets Multiplication", null, "Multiplication Coloring Printable Middle School Math Worksheets Fun Math Worksheets Middle School Math Worksheets Fun Math", null, "Multiplication Coloring Worksheets 4th Grade Mosaic Coloring Pages For In 2020 Math Coloring Groundhog Day Activities Fun Math", null, "Coloring Multiplication Worksheets Free Multiplication Coloring Excel Math Worksheets Pictures Addi Math Coloring Worksheets Fun Math Worksheets 3rd Grade Math", null, "Math Worksheets Printable Fun Multiplication To 10×10 2 Fun Math Worksheets 1st Grade Math Worksheets Math Coloring Worksheets", null, "Previous post English Worksheet For Class 2nd", null, "Next post Free Printable English Worksheets For 5th Grade" ]
[ null, "https://askworksheet.com/wp-content/uploads/2022/07/034d40fcdf0eeebe5909887375ea0327.png", null, "https://askworksheet.com/wp-content/uploads/2022/07/034d40fcdf0eeebe5909887375ea0327.png", null, "https://i.pinimg.com/originals/16/1a/81/161a81d648f8def98e414c716e4c63f7.png", null, "https://i.pinimg.com/originals/37/cf/f2/37cff24491cce638437d7e1bdde8e97d.png", null, "https://i.pinimg.com/originals/fa/80/a6/fa80a658aca60200ef01a8f3ba511308.png", null, "https://i.pinimg.com/originals/57/bf/57/57bf573b5f9f67fd995ebf1ce70ff798.gif", null, "https://i.pinimg.com/originals/64/0c/3c/640c3cddf82ef74552b778022574b4c1.png", null, "https://i.pinimg.com/originals/21/53/01/215301c7eeaa97b574f0d89888bbe153.jpg", null, "https://i.pinimg.com/originals/f0/17/60/f01760d7e8252ad8e39cd29add60f293.jpg", null, "https://i.pinimg.com/originals/07/fb/83/07fb83f52ea227638a1d02cfd97dfc24.jpg", null, "https://i.pinimg.com/originals/e4/fe/e0/e4fee0d3994b618026b2c26e84bc4235.jpg", null, "https://askworksheet.com/wp-content/uploads/2022/07/0cafc6223376c1bb9d7c7d0c74516eab-2.jpg", null, "https://i.pinimg.com/originals/fe/db/2b/fedb2bd162ac179583d00dd83d67b2ec.png", null, "https://i.pinimg.com/originals/40/c3/b0/40c3b0ad4adb299597b266212db2349f.gif", null, "https://i.pinimg.com/474x/df/e8/ef/dfe8ef07e4979c58ffab72bb30d4e3fb.jpg", null, "https://i.pinimg.com/originals/16/1a/81/161a81d648f8def98e414c716e4c63f7.png", null, "https://askworksheet.com/wp-content/uploads/2022/08/c00efdf75d93fc4b6b356cb5d72822a9.png", null, "https://i.pinimg.com/originals/6e/80/3e/6e803eed2c104251d5efd5f10f57f4e8.png", null, "https://i.pinimg.com/736x/0f/73/1c/0f731c3d3cbd1f6d88e8418b61114e35.jpg", null, "https://askworksheet.com/wp-content/uploads/2022/07/3646a396eca65fce23b4c3b8ce6f8ddc.jpg", null, "https://i.pinimg.com/originals/c3/24/10/c324105d70e5077108d7da1b83a118c4.jpg", null, "https://i.pinimg.com/originals/78/9d/c0/789dc02e00f8de8251a583d579df387b.gif", null, "https://askworksheet.com/wp-content/uploads/2022/07/0d96309ee0b27a67a60c2fedfca6ce4d-14-192x300.jpg", null, "https://askworksheet.com/wp-content/uploads/2022/07/8f57795e2a6017e28d0e20faa9e7f1c6-5-239x300.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.76094854,"math_prob":0.6829609,"size":4827,"snap":"2022-27-2022-33","text_gpt3_token_len":860,"char_repetition_ratio":0.34791625,"word_repetition_ratio":0.04390935,"special_character_ratio":0.16614875,"punctuation_ratio":0.044295304,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99736464,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"im_url_duplicate_count":[null,2,null,2,null,null,null,6,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,5,null,null,null,null,null,5,null,null,null,2,null,null,null,9,null,3,null,null,null,3,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-08T01:36:47Z\",\"WARC-Record-ID\":\"<urn:uuid:02fe79c9-c923-49b9-8ec1-e11c3b71718e>\",\"Content-Length\":\"105988\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:890eaacd-d126-406f-92ed-fefe2067a818>\",\"WARC-Concurrent-To\":\"<urn:uuid:102fb39a-dd8c-4e29-8e79-ea51edb1c351>\",\"WARC-IP-Address\":\"104.21.58.85\",\"WARC-Target-URI\":\"https://askworksheet.com/fun-multiplication-worksheets/\",\"WARC-Payload-Digest\":\"sha1:O43TRIU66YSGRI3UQRTEYMUXNYDIO6TX\",\"WARC-Block-Digest\":\"sha1:RGMYSMWHJEKMMCP4TYZREPELKDPGVEBI\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882570741.21_warc_CC-MAIN-20220808001418-20220808031418-00104.warc.gz\"}"}
https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpooling?changes=_3
[ "Class\n\n# MPSCNNPooling\n\nA pooling kernel.\n\n## Overview\n\nPooling is a form of non-linear sub-sampling. Pooling partitions the input image into a set of rectangles (overlapping or non-overlapping) and, for each such sub-region, outputs a value. The pooling operation is used in computer vision to reduce the dimensionality of intermediate representations.\n\nThe encode methods in the `MPSCNNKernel` class can be used to encode an `MPSCNNPooling` object to a `MTLCommandBuffer` object. The exact location of the pooling window for each output value is determined as follows:\n\n• The pooling window center for the first (top left) output pixel of the clip rectangle is at spatial coordinates `(offset.x, offset.y)` in the input image.\n\n• From this, the top left corner of the pooling window is at `(offset.x - floor(kernelWidth/2)`, `offset.y - floor(kernelHeight/2))` and extends `(kernelWidth, kernelHeight) `pixels to the right and down direction, which means that the last pixel to be included into the pooling window is at `(offset.x + floor((kernelWidth-1)/2)`, `offset.y + floor((kernelHeight-1)/2))`, so that for even kernel sizes the pooling window extends one pixel more into the left and up direction.\n\n• The following pooling windows can be then easily deduced from the first one by simple shifting the source coordinates according to the values of the strideInPixelsX and strideInPixelsY properties.\n\nFor example, the pooling window center `w(x,y)` for the output value at coordinate `(x,y)` of the destination clip rectangle (`(x,y)` computed with regard to clipping rectangle origin) is at `w(x,y) = (offset.x + strideInPixelsX * x , offset.y + strideInPixelsY * y)`.\n\nQuite often it is desirable to distribute the pooling windows as evenly as possible in the input image. As explained above, if the `offset` is zero, then the center of the first pooling window is at the top left corner of the input image, which means that the left and top stripes of the pooling window are read from outside the input image boundaries (when filter size is larger than unity). Also it may mean that some values from the bottom and right stripes are not included at all in the pooling, resulting in loss of valuable information.\n\nA scheme used in some common libraries is to shift the source `offset` according to the following formula:\n\n• `offset.xy += {(int)ceil(((L.xy - 1) % s.xy) / 2)}`, for odd `f.xy`\n\n• `offset.xy += {(int)floor(((L.xy - 1) % s.xy) / 2) + 1},` for even `f.xy`\n\nWhere `L` is the size of the input image (or more accurately the size corresponding to the scaled `clipRect` value in source coordinates, which commonly coincides with the source image itself), `s.xy` is `(``strideInPixelsX`, `strideInPixelsY``)` and `f.xy` is `(kernelWidth, kernelHeight)`.\n\nThis offset distributes the pooling window centers evenly in the effective source `clipRect`, when the output size is rounded up with regards to stride (`output size = ceil(input size / stride)`) and is commonly used in CNN libraries (for example TensorFlow uses this offset scheme in its maximum pooling implementation `tf.nn.max_pool` with `'S``AME``'` - padding, for `'VALID' `padding one can simply set `offset.xy += floor(f.xy/2)` to get the first pooling window inside the source image completely).\n\nFor an `MPSCNNPoolingMax` object, the way the input image borders are handled can become important: if there are negative values in the source image near the borders of the image and the pooling window crosses the borders, then using a `MPSImageEdgeMode.zero` edge modemay cause the maximum pooling operation to override the negative input data values with zeros coming from outside the source image borders, resulting in large boundary effects. A simple way to avoid this is to use a `MPSImageEdgeMode.clamp` edge mode, which for an `MPSCNNPoolingMax` object effectively causes all pooling windows to remain within the source image.\n\n## Relationships\n\n### Pooling Layers\n\n`class MPSCNNPoolingAverageGradient`\n\n`class MPSCNNPoolingL2Norm`\n\nAn L2-norm pooling filter.\n\n`class MPSCNNDilatedPoolingMax`\n\nA dilated max pooling filter.\n\n`class MPSCNNDilatedPoolingMaxGradient`\n\nA gradient dilated max pooling filter.\n\n`class MPSCNNPoolingL2NormGradient`\n\n`class MPSCNNPoolingMaxGradient`" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.82769656,"math_prob":0.92319185,"size":3740,"snap":"2020-10-2020-16","text_gpt3_token_len":851,"char_repetition_ratio":0.15604925,"word_repetition_ratio":0.015873017,"special_character_ratio":0.22272727,"punctuation_ratio":0.09388336,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9633788,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-04-07T01:42:04Z\",\"WARC-Record-ID\":\"<urn:uuid:7319d588-31f5-481c-9251-977efab78a16>\",\"Content-Length\":\"57674\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:82c1947a-247e-4696-bfd0-04cc809b32c3>\",\"WARC-Concurrent-To\":\"<urn:uuid:45c71004-4ae9-4944-9361-9aedc3a3d07c>\",\"WARC-IP-Address\":\"17.253.21.201\",\"WARC-Target-URI\":\"https://developer.apple.com/documentation/metalperformanceshaders/mpscnnpooling?changes=_3\",\"WARC-Payload-Digest\":\"sha1:FKGI643YW4FASASWP7RAUTDSWV4E2CQL\",\"WARC-Block-Digest\":\"sha1:CUDN7GW4GIPITWVPBNHJ2CAEXOBA4ICT\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-16/CC-MAIN-2020-16_segments_1585371662966.69_warc_CC-MAIN-20200406231617-20200407022117-00431.warc.gz\"}"}
https://tonybreyal.wordpress.com/2011/11/02/code-optimization-one-r-problem-ten-solutions-%E2%80%93-now-eleven-2/
[ "# Consistently Infrequent\n\n## November 2, 2011\n\n### Code Optimization: One R Problem, Ten Solutions – Now Eleven!\n\nFiled under: R — Tags: , , , , , , , , , , — BD @ 11:47 pm\n\nEarlier this year I came across a rather interesting page about optimisation in R from rwiki. The goal was to find the most efficient code to produce strings which follow the pattern below given a single integer input `n`:\n\n```# n = 4\n \"i001.002\" \"i001.003\" \"i001.004\" \"i002.003\" \"i002.004\" \"i003.004\"\n# n = 5\n \"i001.002\" \"i001.003\" \"i001.004\" \"i001.005\" \"i002.003\" \"i002.004\" \"i002.005\" \"i003.004\"\n \"i003.005\" \"i004.005\"\n# n = 6\n \"i001.002\" \"i001.003\" \"i001.004\" \"i001.005\" \"i001.006\" \"i002.003\" \"i002.004\" \"i002.005\"\n \"i002.006\" \"i003.004\" \"i003.005\" \"i003.006\" \"i004.005\" \"i004.006\" \"i005.006\"\n```\n\nFrom this we can see that the general pattern for `n` is:\n\n```# pseudo code\nFOR j = 1 to n-1\nFOR k = j+1 to n\nPRINT \"i\" + format(j, digits = 3) + \".\" + format(k, digits = 3)\nk = k + 1\nEND FOR\nj = j + 1\nEND FOR\n# this produces (n-1)*n/2 strings.\n```\n\nIt is rather heart warming to go though that rwiki page and see how we can sequentially optimise the algorithm in R to more efficiently produce the desired string sequence. I learned quite a lot from this page about R and how fun these types of challenges can be!\n\nLooking at the tenth solution, it achieves its speed by recognising that there are a total of n unique strings (e.g. “001”, “002”) to the pattern. These can be assigned to a character vector which we subsequently call by working out the sequence of indices we require and passing them to the character vector:\n\n```generateIndex10 <- function(n) {\ns <- sprintf(\"%03d\", seq_len(n));\npaste(\n\"i\",\nrep(s[1:(n-1)], (n-1):1),\n\".\",\nunlist(lapply(2:n, function(k) s[k:n]), use.names=FALSE),\nsep=\"\"\n)\n}\ngenerateIndex10(7)\n \"i001.002\" \"i001.003\" \"i001.004\" \"i001.005\" \"i001.006\" \"i001.007\" \"i002.003\" \"i002.004\"\n \"i002.005\" \"i002.006\" \"i002.007\" \"i003.004\" \"i003.005\" \"i003.006\" \"i003.007\" \"i004.005\"\n \"i004.006\" \"i004.007\" \"i005.006\" \"i005.007\" \"i006.007\"\n```\n\nPlaying around with the solution above, I noticed that a speed up would be possible if the following were implemented:\n\n1. `rep` on a string vector is slower than simply using `rep.int` to work out the indices first and then passing those into the character vector.\n2. Initialise the vectors to the correct size. This seems to produce a speed up though I’m not sure why it would in a vectorised solution. I could see the benefit if I were creating the vectors using an explicit R loop and concatenating the results but that is not the case here.\n3. The functions could be compiled into bytecodes using the new compiler package (NB given that tenth solution is from 2007, this option would not have been available back then).\n4. This problem could be set up to run in parallel. I didn’t do this because I’m still within running distance of being an R noob 😀\n\nGiven the first three points above, this is the solution I came up with:\n\n```generateIndex11 <- function(n) {\n# initialise vectors\nlen <- (n-1)*n/2\ns <- vector(mode = \"character\", length = n)\nind.1 <- vector(mode = \"integer\", length = len)\nind.2 <- vector(mode = \"integer\", length = len)\n\n# set up strings\ns <- sprintf(\"%03d\", seq_len(n))\n\n# calculate indices\nind.1 <- rep.int(1:(n-1), (n-1):1)\nind.2 <- unlist(lapply(2:n, \":\", n), use.names = FALSE)\n\n# paste strings together\nreturn(paste(\"i\", s[ind.1], \".\", s[ind.2], sep = \"\"))\n}\n```\n\nBut is it faster? We can benchmark it and see!\n\n```\nlibrary(compiler)\nlibrary(rbenchmark)\n\n# compile functions\ncompiled_generateIndex10 <- cmpfun(generateIndex10)\ncompiled_generateIndex11 <- cmpfun(generateIndex11)\n\n# set size\nn = 5000\n\n# run benchmark\nbenchmark(generateIndex10(n), compiled_generateIndex10(n), generateIndex11(n), compiled_generateIndex11(n),\ncolumns = c(\"test\", \"replications\", \"elapsed\", \"relative\"),\norder = \"relative\",\nreplications = 10)\n\n###--- TIMINGS ---###\ntest replications elapsed relative\n4 compiled_generateIndex11(n) 10 51.46 1.000000\n3 generateIndex11(n) 10 51.67 1.004081\n2 compiled_generateIndex10(n) 10 54.35 1.056160\n1 generateIndex10(n) 10 61.20 1.189273\n\n```\n\nSo it seems that there is a speed up between `generateIndex10` and `generateIndex11`.   If we call the benchmark for different values of n and plot using the ggplot2 pack we get the following:\n\n```\nlibrary(ggplot2)\nget_bm <- function(n) {\ngc()\ndf = benchmark(generateIndex10(n), compiled_generateIndex10(n), generateIndex11(n), compiled_generateIndex11(n),\ncolumns = c(\"test\", \"elapsed\"),\norder = \"elapsed\",\nreplications = 10)\ndf\\$n = n\nreturn(df)\n\n}\n\ndf.list <- lapply(seq(1000, 9000, by = 250), get_bm)\ndf <- do.call(\"rbind\", df.list)\nggplot(df, aes(x=n, y=elapsed, colour=test, shape=test)) + geom_point() + stat_smooth() + xlab(\"N\") + ylab(\"Time (seconds)\")\n```\n\nWhich produces the graph below. I don’t know what’s happening at the extreme values but I suspect that it has something to do with memory because on my 8GB machine, the RAM was mostly at 99% for the largest values of n. I also like how stable the compiled versions of the functions are:", null, "In conclusion, whilst the compiled eleventh solution is faster for larger values of `n`, for values below `1000` the tenth solution is sometimes faster.\n\nWriting this post, I noticed something and actually came up with an even faster twelfth  solution. When I get time in the next couple of days I’ll make a post about it and also submit it to rwiki.\n\nThanks for reading, this was my first proper R blog post, constructive comments are most welcome! Also, please kindly bare in mind that I am not an R expert but rather just trying to improve my knowledge of the language 🙂\n\n1.", null, "Very shortly this web page will be famous among all blogging and\nsite-building visitors, due to it’s fastidious articles\n\nComment by heart disease fish oil — May 11, 2013 @ 11:24 am\n\n2.", null, "Good article. I absolutely love this website.\n\nStick with it!\n\nComment by keygen for dark souls — June 21, 2013 @ 10:11 pm" ]
[ null, "http://rwiki.sciviews.org/lib/exe/fetch.php", null, "https://1.gravatar.com/avatar/10297879e08a48e0b92e3aa5e964d490", null, "https://0.gravatar.com/avatar/c1a3dcf4aa208e83d4be51b1a9c19135", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.81126845,"math_prob":0.93572146,"size":5735,"snap":"2023-14-2023-23","text_gpt3_token_len":1659,"char_repetition_ratio":0.15058453,"word_repetition_ratio":0.018847007,"special_character_ratio":0.35850042,"punctuation_ratio":0.15490533,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9857472,"pos_list":[0,1,2,3,4,5,6],"im_url_duplicate_count":[null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-05-30T06:42:31Z\",\"WARC-Record-ID\":\"<urn:uuid:80cb2825-be1d-47d7-b424-710508daf90e>\",\"Content-Length\":\"92350\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a3353904-9659-4130-a7df-5e6033ddb049>\",\"WARC-Concurrent-To\":\"<urn:uuid:ea8fa4a9-2572-49fc-9254-c769ab50307a>\",\"WARC-IP-Address\":\"192.0.78.12\",\"WARC-Target-URI\":\"https://tonybreyal.wordpress.com/2011/11/02/code-optimization-one-r-problem-ten-solutions-%E2%80%93-now-eleven-2/\",\"WARC-Payload-Digest\":\"sha1:WN5H2QLEGIRY2GUKTHSN3PJEO76HL2HO\",\"WARC-Block-Digest\":\"sha1:ZYE6XXXSO2HNZZEAPFUOYVJQOB2H6DTF\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224645417.33_warc_CC-MAIN-20230530063958-20230530093958-00387.warc.gz\"}"}
https://mathhelpboards.com/threads/square-root-in-q-root-2-means-its-in-z-root-2.1310/
[ "# [SOLVED]square root in Q(root 2) means its in Z[root 2]\n\n#### caffeinemachine\n\n##### Well-known member\nMHB Math Scholar\nLet $a,b \\in \\mathbb{Z}$, and if $a+b\\sqrt{2}$ has a square root in $\\mathbb{Q}(\\sqrt{2})$, then the square root is actually in $\\mathbb{Z}[\\sqrt{2}]$.\n\nOnly one approach comes to my mind. Let $r_1, r_2 \\in \\mathbb{Q}$ such that $a+b\\sqrt{2}=(r_1+r_2\\sqrt{2})^2$. This gives $a=r_1^2+2r_2^2, b=2r_1r_2$. I need to somehow show that $r_1, r_2$ are integers. I played with the above equations putting $r_i=p_i/q_i$ with $\\gcd (p_i,q_i)=1$. But I couldn't conclude anything.\n\n#### Opalg\n\n##### MHB Oldtimer\nStaff member\nLet $a,b \\in \\mathbb{Z}$, and if $a+b\\sqrt{2}$ has a square root in $\\mathbb{Q}(\\sqrt{2})$, then the square root is actually in $\\mathbb{Z}[\\sqrt{2}]$.\n\nOnly one approach comes to my mind. Let $r_1, r_2 \\in \\mathbb{Q}$ such that $a+b\\sqrt{2}=(r_1+r_2\\sqrt{2})^2$. This gives $a=r_1^2+2r_2^2, b=2r_1r_2$. I need to somehow show that $r_1, r_2$ are integers. I played with the above equations putting $r_i=p_i/q_i$ with $\\gcd (p_i,q_i)=1$. But I couldn't conclude anything.\nIf $a+b\\sqrt{2}$ has a square root in $\\mathbb{Q}(\\sqrt{2})$, then the square root can be written in the form $\\dfrac{p+q\\sqrt2}r$, where $p$, $q$ and $r$ are integers and $r$ is chosen to be positive and as small as possible (so that in particular the triple $p,\\,q,\\,r$ will have no common factor greater than 1).\n\nThen $r^2(a+b\\sqrt2) = (p+q\\sqrt2)^2 = p^2+2q^2 + 2pq\\sqrt2$, and therefore $p^2+2q^2 - r^2a = (r^2b-2pq)\\sqrt2.$ But $\\sqrt2$ is irrational, so no nonzero multiple of it can be an integer. Therefore $$p^2+2q^2 = r^2a, \\qquad 2pq = r^2b.$$\nSuppose that $r$ has an odd prime factor $\\rho$. Then the second of those displayed equations shows that $\\rho$ is a factor of either $p$ or $q$. The first of the displayed equations then shows that $\\rho$ is a factor of both $p$ and $q$. Thus $p$, $q$ and $r$ have the common factor $\\rho$, contrary to the initial assumption.\n\nNext, suppose that $r$ is even, say $r=2s$. Then the first displayed equation becomes $p^2+2q^2 = 4s^2a$, showing that $p$ must be even, say $p=2t.$ It follows that $2t^2+q^2 = 2s^2a$, showing that $q$ is even. Thus $p$, $q$ and $r$ have the common factor 2, again contrary to the initial assumption.\n\nThe conclusion is that $r$ has no prime factors at all and is therefore equal to 1, proving that $a+b\\sqrt{2}$ has a square root in $\\mathbb{Z}[\\sqrt{2}].$\n\n•", null, "caffeinemachine\n\n#### caffeinemachine\n\n##### Well-known member\nMHB Math Scholar\nIf $a+b\\sqrt{2}$ has a square root in $\\mathbb{Q}(\\sqrt{2})$, then the square root can be written in the form $\\dfrac{p+q\\sqrt2}r$, where $p$, $q$ and $r$ are integers and $r$ is chosen to be positive and as small as possible (so that in particular the triple $p,\\,q,\\,r$ will have no common factor greater than 1).\n\nThen $r^2(a+b\\sqrt2) = (p+q\\sqrt2)^2 = p^2+2q^2 + 2pq\\sqrt2$, and therefore $p^2+2q^2 - r^2a = (r^2b-2pq)\\sqrt2.$ But $\\sqrt2$ is irrational, so no nonzero multiple of it can be an integer. Therefore $$p^2+2q^2 = r^2a, \\qquad 2pq = r^2b.$$\nSuppose that $r$ has an odd prime factor $\\rho$. Then the second of those displayed equations shows that $\\rho$ is a factor of either $p$ or $q$. The first of the displayed equations then shows that $\\rho$ is a factor of both $p$ and $q$. Thus $p$, $q$ and $r$ have the common factor $\\rho$, contrary to the initial assumption.\n\nNext, suppose that $r$ is even, say $r=2s$. Then the first displayed equation becomes $p^2+2q^2 = 4s^2a$, showing that $p$ must be even, say $p=2t.$ It follows that $2t^2+q^2 = 2s^2a$, showing that $q$ is even. Thus $p$, $q$ and $r$ have the common factor 2, again contrary to the initial assumption.\n\nThe conclusion is that $r$ has no prime factors at all and is therefore equal to 1, proving that $a+b\\sqrt{2}$ has a square root in $\\mathbb{Z}[\\sqrt{2}].$\nThank You so much!" ]
[ null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.81569433,"math_prob":1.0000072,"size":889,"snap":"2022-05-2022-21","text_gpt3_token_len":353,"char_repetition_ratio":0.11525424,"word_repetition_ratio":0.6456693,"special_character_ratio":0.39932507,"punctuation_ratio":0.12690355,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000099,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-17T18:18:44Z\",\"WARC-Record-ID\":\"<urn:uuid:a658a1a5-e6d3-468f-a4a5-0ce851fe2cc1>\",\"Content-Length\":\"64745\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8aa3cb9c-d96f-4718-9466-898c21b36827>\",\"WARC-Concurrent-To\":\"<urn:uuid:db9aa6d8-2993-4023-8e46-b4b20ea03a1a>\",\"WARC-IP-Address\":\"50.31.99.218\",\"WARC-Target-URI\":\"https://mathhelpboards.com/threads/square-root-in-q-root-2-means-its-in-z-root-2.1310/\",\"WARC-Payload-Digest\":\"sha1:6XZKZ2BUHFAFTOYSBIL2FVRX63G24GU2\",\"WARC-Block-Digest\":\"sha1:4PCGHX7QMA7RKYWCX5RJDTYJ2WEKXWX3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662519037.11_warc_CC-MAIN-20220517162558-20220517192558-00389.warc.gz\"}"}
https://au.mathworks.com/matlabcentral/answers/1780695-i-want-to-do-a-stop-condition-in-ode45-that-he-demands-dx-0
[ "# I want to do a stop condition in ode45 that he demands dx=0\n\n2 views (last 30 days)\nshir hartman on 17 Aug 2022\nCommented: shir hartman on 20 Aug 2022\nthis is my code And I don't understand why it doesn't work :(\nAnonFun=@(t,x)(5*x-1*x^2);\nOpt=odeset(\"Events\",@myEvent);\n[t,x]=ode45(AnonFun,[0,5],1,Opt);\nplot(t,x)\nfunction [value, isterminal, direction] = myEvent(t,x)\nvalue = diff(x)==0;\nisterminal = 1; % Stop the integration\ndirection = -1;\nend\nIm trying to get this :", null, "Torsten on 17 Aug 2022\nEdited: Torsten on 17 Aug 2022\nAnonFun=@(t,x)(5*x-1*x^2);\nOpt=odeset(\"Events\",@(t,x)myEvent(t,x,AnonFun));\n[t,x]=ode45(AnonFun,[0,5],1,Opt);\nplot(t,x)", null, "function [value, isterminal, direction] = myEvent(t,x,AnonFun)\nvalue = AnonFun(t,x)-1.0e-4;\nisterminal = 1; % Stop the integration\ndirection = -1;\nend\nshir hartman on 20 Aug 2022\nthanks!!!\n\n### More Answers (1)\n\nWalter Roberson on 17 Aug 2022\nYou need to carry around one more level of derivatives.\nAnonFun = @(t, x) [x(2); 5-2*x(1)];\nOpt = odeset(\"Events\", @myEvent);\n[t, x] = ode45(AnonFun, [0,5], [1, 5], Opt);\nplot(t, x(:,1))", null, "function [value, isterminal, direction] = myEvent(t, x)\nvalue = x(2);\nisterminal = 1; % Stop the integration\ndirection = -1;\nend\n##### 1 CommentShowHide None\nshir hartman on 17 Aug 2022\nHi, first of all thanks.\nBut what I wanted to get was the orange graph (which is the function) - simply that it will stop calculating from the moment the derivative resets (when the function is constant)", null, "" ]
[ null, "https://www.mathworks.com/matlabcentral/answers/uploaded_files/1100225/image.jpeg", null, "https://www.mathworks.com/matlabcentral/answers/uploaded_files/1100450/image.png", null, "https://www.mathworks.com/matlabcentral/answers/uploaded_files/1100265/image.png", null, "https://www.mathworks.com/matlabcentral/answers/uploaded_files/1100430/image.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.69436586,"math_prob":0.9884039,"size":1329,"snap":"2022-40-2023-06","text_gpt3_token_len":467,"char_repetition_ratio":0.13056603,"word_repetition_ratio":0.15789473,"special_character_ratio":0.35063958,"punctuation_ratio":0.21935484,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99184734,"pos_list":[0,1,2,3,4,5,6,7,8],"im_url_duplicate_count":[null,1,null,1,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-09-26T03:29:28Z\",\"WARC-Record-ID\":\"<urn:uuid:c429b41b-8809-4280-bf66-2722efc82d35>\",\"Content-Length\":\"157691\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:0d77b832-f84d-4dcc-961e-588bf424bd96>\",\"WARC-Concurrent-To\":\"<urn:uuid:b74f5dd1-1be2-4dec-be4f-8bec020bff2c>\",\"WARC-IP-Address\":\"104.68.243.15\",\"WARC-Target-URI\":\"https://au.mathworks.com/matlabcentral/answers/1780695-i-want-to-do-a-stop-condition-in-ode45-that-he-demands-dx-0\",\"WARC-Payload-Digest\":\"sha1:MMAOSTSQSCTIF3JJX6PZ5LV5FKS4BAWQ\",\"WARC-Block-Digest\":\"sha1:N6NVFWGN7RMPZRJO63KGMTGAVGD6VDBH\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030334644.42_warc_CC-MAIN-20220926020051-20220926050051-00348.warc.gz\"}"}
https://newbedev.com/how-to-use-julia-special-functions-inside-c
[ "# How to use Julia special functions inside c++\n\nBasically, the easiest thing to do is to use the Julia @cfunction construct to let Julia compile the code into a C++ function pointer, which you can then call normally without worrying about unboxing etcetera.\n\n(For passing complex numbers, @cfunction can exploit the fact that C++ std::complex<double> and Julia Complex{Float64} have identical memory representations.)\n\nThanks to @Matt B, I looked into Julia codes and see how these modules are there. So the following could be one possible solution.\n\n#include <julia.h>\n#include<iostream>\nJULIA_DEFINE_FAST_TLS()\n\nint main(){\njl_init();\n\njl_eval_string(\"using SpecialFunctions\");\njl_module_t* SpecialFunctions =(jl_module_t*)jl_eval_string(\"SpecialFunctions\");\n\njl_function_t *func2 = jl_get_function(SpecialFunctions, \"polygamma\");\n\n// arguments to pass to polygamma\njl_value_t *argument1 = jl_box_int64(1);\njl_value_t *argument2 = jl_box_float64(2.0);\njl_value_t *arguments = { argument1 , argument2 };\njl_value_t *ret2 = jl_call(func2, arguments, 2);\n\nif (jl_typeis(ret2, jl_float64_type)){\ndouble ret_unboxed = jl_unbox_float64(ret2);\nstd::cout << \"\\n julia result = \" << ret_unboxed << std::endl;\n}\nelse{\nstd::cout<<\"hello error!!\"<<std::endl;\n}\n\njl_atexit_hook(0);\nreturn 0;\n}\n\n\nNow I need to see how can I pass complex numbers to the argument of polygamma which is why all these fuss about :) !" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.5898262,"math_prob":0.8353789,"size":1451,"snap":"2023-40-2023-50","text_gpt3_token_len":363,"char_repetition_ratio":0.12785073,"word_repetition_ratio":0.0,"special_character_ratio":0.27291524,"punctuation_ratio":0.18067227,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9885749,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-10-01T18:40:12Z\",\"WARC-Record-ID\":\"<urn:uuid:a5b6ae1e-c058-47ac-9782-a5b837b4a345>\",\"Content-Length\":\"17299\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b5165347-3eef-4378-aa0e-e8cea8b97aa0>\",\"WARC-Concurrent-To\":\"<urn:uuid:3b93f77e-7520-451b-82b8-07da7a372ba9>\",\"WARC-IP-Address\":\"172.67.176.236\",\"WARC-Target-URI\":\"https://newbedev.com/how-to-use-julia-special-functions-inside-c\",\"WARC-Payload-Digest\":\"sha1:TZ4R4SQAY6NOYTKUGOUXBNXMOH2KPMOZ\",\"WARC-Block-Digest\":\"sha1:J5VSTWJN7M4YCP6BJ6SHWFOQJSYRQVOK\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233510924.74_warc_CC-MAIN-20231001173415-20231001203415-00497.warc.gz\"}"}
https://www.rempub.com/math/multiple-concepts/explore-the-core-math-second-grade
[ "# Explore the Core: Math Problem Solving & Projects (Grade 2)", null, "", null, "", null, "", null, "", null, "", null, "", null, "", null, "", null, "", null, "Explore the Core: Math Problem Solving & Projects (Grade 2)\n\nInterest Level: N/A\n\nThis book provides the tools necessary to capture the wonder and fun of mathematics while helping teachers and parents instruct the Common Core Mathematics Standards in a manageable way. This book focuses and connects to the Standards for Mathematical Content and Standards for Mathematical Practice, including: making sense of problems and persevere in solving them, modeling with mathematics, and using appropriate tools strategically. Featuring: a chart to monitor progress toward learning goal success; pre- & post-assessments for every Common Cores Standard domain; a problem set for every Common Core Standard; authentic challenge projects with real-world and technology integration; a detailed answer key. 80 pages.\n\nDear Parent\nProgress-Monitoring Chart\n\nDomain 1: Operations & Algebraic Thinking\nPre/Post Assessment\nDomain 1: Represent and solve problems using addition and subtraction\n2.oa.a.1. Use addition and subtraction within 100 to solve one- and two-step word problems involving situations of adding to, taking from, putting together, taking apart, and comparing, with unknowns in all positions.\n2.oa.b.2. Fluently add and subtract within 20 using mental strategies. By end of Grade 2, know from memory all sums of two one-digit numbers.\nWork with equal groups of objects to gain foundations for multiplication.\n\n2.oa.c.3. Determine whether a group of objects (up to 20) has an odd or even number of members, write an equation to express an even number as a sum of two equal addends.\n\n2.oa.c.4. Use addition to find the total number of objects arranged in rectangular arrays with up to 5 rows and up to 5 columns; write an equation to express the total as a sum of equal addends.\n\nDomain 2: Number & Operations in Base 10\nPre/Post Assessment\nUnderstand place value\n1.NBT.A.1. Count to 120, starting at any number less than 120. In this range, read and write numerals and represent a number of objects with a written numeral.\nUnderstand place value\n\n2.nbt.a.1. Understand that the three digits of a three-digit number represent amounts of hundreds,tens, and ones; e.g., 706 equals 7 hundreds, 0 tens, and 6 ones. Understand the following as special cases: 100 can be thought of as a bundle of ten tens — called a “hundred.”The numbers 100, 200, 300, 400, 500, 600, 700, 800, 900 refer to one, two, three, four, five, six, seven, eight, or nine hundreds (and 0 tens and 0 ones).\n\n2.nbt.a.2. Count within 1000; skip-count by 5s, 10s, and 100s. 2.nbt.a.3. Read and write numbers to 1000 using base-ten numerals, number names, and expanded form.\n\n2.nbt.a.4. Compare two three-digit numbers based on meanings of the hundreds, tens, and ones digits, using >, =, and < symbols to record the results of comparisons.\nUse place value understanding and properties of operations to\nadd and subtract. 2.nbt.b.5. Fluently add and subtract within 100 using strategies based on place value, properties of operations, and/or the relationship between addition and subtraction.\n\n2.nbt.b.6. Add up to four two-digit numbers using strategies based on place value and properties of operations.\n\n2.nbt.b.7. Add and subtract within 1000, using concrete models or drawings and strategies based on place value, properties of operations, and/or the relationship between addition and subtraction; relate the strategy to a written method. Understand that in adding or subtracting three-digit numbers, one adds or subtracts hundreds and hundreds, tens and tens, ones and ones; and sometimes it is necessary to compose or decompose tens or hundreds.\n\n2.nbt.b.8. Mentally add 10 or 100 to a given number 100–900, and mentally subtract 10 or 100 from a given number 100–900.\n\n2.nbt.b.9. Explain why addition and subtraction strategies work, using place value and the properties of operations.\n\nDomain 3: Measurement & Data\nPre/Post Assessment\nMeasure and estimate lengths in standard units\n\n2.mD.a.1. Measure the length of an object by selecting and using appropriate tools such as rulers, yardsticks, meter sticks, and measuring tapes.\n\n2.mD.a.2. Measure the length of an object twice, using length units of different lengths for the two measurements; describe how the two measurements relate to the size of the unit chosen.\n\n2.mD.a.3. Estimate lengths using units of inches, feet, centimeters, and meters.\n\n2.mD.a.4. Measure to determine how much longer one object is than another, expressing the length difference in terms of a standard length unit.\n\nRelate addition and subtraction to length\n\n2.mD.b.5. Use addition and subtraction within 100 to solve word problems involving lengths that are given in the same units, e.g., by using drawings (such as drawings of rulers) and equations with a symbol for the unknown number to represent the problem.\n\n2.mD.b.6. Represent whole numbers as lengths from 0 on a number line diagram with equally spaced points corresponding to the numbers 0, 1, 2, . . . , and represent whole-number sums and differences within 100 on a number line diagram.\n\nWork with time and money\n\n2.mD.c.7. Tell and write time from analog and digital clocks to the nearest five minutes, using a.m. and p.m.\n\n2.mD.c.8. Solve word problems involving dollar bills, quarters, dimes, nickels, and pennies, using \\$ and ¢ symbols appropriately. Example: If you have 2 dimes and 3 pennies, how many cents do you have?\n\nRepresent and interpret data\n\n2.mD.D.9. Generate measurement data by measuring lengths of several objects to the nearest whole unit, or by making repeated measurements of the same object. Show the measurements by making a line plot, where the horizontal scale is marked off in whole-number units.\n\n2.mD.D.10. Draw a picture graph and a bar graph (with single- unit scale) to represent a data set with up to four categories. Solve simple put-together, take-apart, and compare problems using information presented in a bar graph.\n\nDomain 4: Geometry\nPre/Post Assessment\nReason with shapes and their attributes\n\n2.g.a.1. Recognize and draw shapes having specified attributes, such as a given number of angles or a given number of equal faces.\nIdentify triangles, quadrilaterals, pentagons, hexagons, and cubes.\n\n2.g.a.2. Partition a rectangle into rows and columns of same-size squares and count to find the total number of them.\n\n2.g.a.3. Partition circles and rectangles into two, three, or four equal shares, describe the shares using the words halves, thirds, half of, a third of, etc., and describe the whole as two halves, three thirds, four fourths. Recognize that equal shares of identical wholes need not have the same shape.\n\nAuthentic Challenge Projects\nDescription\nProject #2: “Our Class Makes a Difference”\nProject #3: “How Much Does It Cost\nWhen I Leave the Light On All Night" ]
[ null, "https://www.rempub.com/image/cache/data/GarlicPress-Web-Images/explore-the-core-grade-2-common-core-math-Remedia-Publications-Garlic-Press-550x550h.png", null, "https://www.rempub.com/image/cache/catalog/Thumbnails/GP%20225/GP225_Page_1-550x550h.jpg", null, "https://www.rempub.com/image/cache/catalog/Thumbnails/GP%20225/GP225_Page_2-550x550h.jpg", null, "https://www.rempub.com/image/cache/catalog/Thumbnails/GP%20225/GP225_Page_3-550x550h.jpg", null, "https://www.rempub.com/image/cache/catalog/Thumbnails/GP%20225/GP225_Page_4-550x550h.jpg", null, "https://www.rempub.com/image/cache/data/GarlicPress-Web-Images/explore-the-core-grade-2-common-core-math-Remedia-Publications-Garlic-Press-80x80h.png", null, "https://www.rempub.com/image/cache/catalog/Thumbnails/GP%20225/GP225_Page_1-80x80h.jpg", null, "https://www.rempub.com/image/cache/catalog/Thumbnails/GP%20225/GP225_Page_2-80x80h.jpg", null, "https://www.rempub.com/image/cache/catalog/Thumbnails/GP%20225/GP225_Page_3-80x80h.jpg", null, "https://www.rempub.com/image/cache/catalog/Thumbnails/GP%20225/GP225_Page_4-80x80h.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.87484795,"math_prob":0.96372366,"size":6427,"snap":"2021-43-2021-49","text_gpt3_token_len":1520,"char_repetition_ratio":0.11770201,"word_repetition_ratio":0.04121688,"special_character_ratio":0.23961413,"punctuation_ratio":0.19728377,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9944811,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],"im_url_duplicate_count":[null,8,null,8,null,8,null,8,null,8,null,8,null,8,null,8,null,8,null,8,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-28T01:38:48Z\",\"WARC-Record-ID\":\"<urn:uuid:fdf255d0-74d8-4e9b-b245-ae0a180a1f16>\",\"Content-Length\":\"791018\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8cc1ca31-93d8-4b8c-a6f6-e805540a4c90>\",\"WARC-Concurrent-To\":\"<urn:uuid:d6726147-0c2a-4534-a18d-aaa0ae495dd7>\",\"WARC-IP-Address\":\"185.132.7.253\",\"WARC-Target-URI\":\"https://www.rempub.com/math/multiple-concepts/explore-the-core-math-second-grade\",\"WARC-Payload-Digest\":\"sha1:JEEEV7NREJZ4VKX5WHF3DGE2Q4QGLXGM\",\"WARC-Block-Digest\":\"sha1:Y4KWKJDQ7XI2AWML62IJOJAF73VTVKOL\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323588246.79_warc_CC-MAIN-20211028003812-20211028033812-00103.warc.gz\"}"}
http://www.moneyscience.com/pg/blog/StatAlgo/read/361154/stanford-ml-51-learning-theory-and-the-biasvariance-tradeoff
[ "Remember me\n\n#", null, "## Stanford ML 5.1: Learning Theory and the Bias/Variance Trade-off\n\nThu, 31 May 2012 05:38:21 GMT\n\nData analysis is part science, part art. It is part algorithm and part heuristic. Of the various approaches to data analysis, machine learning falls more on the side of purely algorithmic, but even here we have many decisions to make which don't have well-defined answers (e.g. which learning algorithm to use, how to divide the data into training/test/validation). Learning theory provides some guidance for how to build a model that is generalizable and can be used for prediction, which is the primary goal of machine learning.\n\nThe next set of lectures in Stanford CS229a (ml-class.org) covers regularization, a technique that is employed to avoid overfitting. This is tied to the concepts of parsimony, model selection, degrees of freedom, and the bias/variance trade-off. I consider this one of the most fundamental concepts in machine learning, so I want to spend a little time covering it before specifically looking at regularization techniques.\n\nThis material is covered through-out the machine learning textbooks, but is especially covered in Chapter 7 of ESL and in 3.1.4 and 3.2 of PRML.\n\nThe generalization performance of a learning method relates to its prediction capability on independent test data. Assessment of this performance is extremely important in practice, since it guides the choice of learning method or model, and gives us a measure of the quality of the ultimately chosen model. (ESL 7.1)\n\n### Underfitting/Overfitting\n\nIn some of the earlier lectures, we saw how a simple linear model could be used to fit potentially complex data.\n\nFor this section, I will be reproducing the analysis in PRML 1.1, which is very similar to the material covered by Professor Ng. Suppose that we have a process which generates data in the form of a sine wave + some noise", null, "$\\gamma$:", null, "$f(x) = sin(2 \\pi x) + \\gamma$\n\nWe want to fit a linear model to the data, but don't know what the underlying function is (in other words, we have 10 data points, but don't know that they were generated by a sine function). We might start with a simple linear model:", null, "$f(x) = \\theta_0 + \\theta_1 x$\n\nAnd progressively add more polynomial terms:", null, "$f(x) = \\theta_0 + \\theta_1 x + \\theta_2 x^2 + \\theta_3 x^3 + \\cdots + \\theta_n x^n$\n\nThese additional terms will improve the fit to the training data, but in the process they reduce the generalization of the model.", null, "The real function is in red and the model is in red. We can see that adding more polynomial variables improves the fit. The 9th polynomial passes directly through every data point. But it is nothing like the underlying function. So we can tell immediately that this function has been overfit to the data and won't generalize to other datasets from the same distribution.", null, "How can we tell which parameters", null, "$\\theta$ to leave in the model (known as \"model selection\")? How can we avoid overfitting?\n\nThere are several ways to solve this problem:\n\n1. Get more data (typically impossible)\n2. Choose the model which best fits the data without overfitting (very difficult)\n3. Reduce the opportunity for overfitting through regularization/shrinkage\n\nLet's first look at how getting more data would solve the problem. In the case of the 9th polynomial, having more data ensures that it fits closer to the actual distribution.", null, "We can see that adding more data reduces the extreme values in the prediction, and the high-order polynomial starts to look more and more like the underlying sine function. This is an important lesson: the size of the dataset is a critical ingredient, especially for a model with many parameters.\n\n### Bias/Variance Tradeoff\n\nThe bias/variance trade-off is one of the most important concepts to understand in statistical learning theory. This is covered explicitly in CS229 notes 4. Bias is a measure of how well the model fits the data. Variance characterizes how much the prediction varies around its average. In our sine wave example above, the linear model has high bias (fits very poorly) and low variance (the predictions are consistent, regardless of the specific dataset). On the other hand, the 9th polynomial has low bias on the training data (fits the training data extremely well) and high variance (the predictions vary widely and this won't fit well to other data).\n\nHowever with too much fitting, the model adapts itself too closely to the training data, and will not generalize well (i.e., have large test error). In that case the predictions", null, "$\\hat f(x_0)$ will have large variance...In contrast, if the model is not complex enough, it will underfit and may have large bias, again resulting in poor generalization. (ESL 2.9)\n\nWe can decompose the mean-squared error (MSE) into bias and variance terms:", null, "$MSE = Var(\\theta) + Bias(\\theta)^2$\n\nThere are many different ways to characterize the performance of the model on in-sample (training) and out-of-sample (test and validation) datasets.\n\nPMRL 1.1 makes use of the root-mean-square (RMS) error function (updated for our loss function convention):", null, "$E_{RMS} = \\sqrt{\\frac{2 J(\\theta)}{N}}$\n\nTo see how this trade-off operates, I divide the data into two sections: test and training. Using our original polynomial model, I progressively increase the model complexity by adding more parameters and see how the error function works.", null, "What we see is that the lower-order polynomials (low model complexity) have high bias and low variance. In this case, the model fits poorly consistently. On the other hand, the higher-order polynomials (high model complexity) fit the training data extremely well and the test data extremely poorly. These have low bias on the training data, but very high variance. In reality, we would want to choose a model somewhere in between, that can generalize well but also fits the data reasonably well.\n\nWe will conclude this topic as part of the Stanford Machine Learning series in the next post by looking at dimension reduction techniques and the effective degrees of freedom." ]
[ null, "http://www.moneyscience.com/mod/moneyscience_theme/graphics/logo.png", null, "http://s.wordpress.com/latex.php", null, "http://s.wordpress.com/latex.php", null, "http://s.wordpress.com/latex.php", null, "http://s.wordpress.com/latex.php", null, "http://www.statalgo.com/wp-content/uploads/2011/11/polynomial_fit_sine_wave.jpeg", null, "http://www.statalgo.com/wp-content/uploads/2011/11/polynomial_fit_sine_wave_r2.jpeg", null, "http://s.wordpress.com/latex.php", null, "http://www.statalgo.com/wp-content/uploads/2011/11/polynomial_fit_more_data.jpeg", null, "http://s.wordpress.com/latex.php", null, "http://s.wordpress.com/latex.php", null, "http://s.wordpress.com/latex.php", null, "http://www.statalgo.com/wp-content/uploads/2011/11/polynomial_fit_generalization.jpeg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.94002324,"math_prob":0.9752716,"size":5652,"snap":"2019-13-2019-22","text_gpt3_token_len":1162,"char_repetition_ratio":0.12871814,"word_repetition_ratio":0.008658009,"special_character_ratio":0.20010616,"punctuation_ratio":0.09811321,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99121976,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,2,null,2,null,null,null,2,null,null,null,null,null,null,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-05-25T23:40:22Z\",\"WARC-Record-ID\":\"<urn:uuid:8d02a489-ef7e-4479-912c-aa0dacfc24d0>\",\"Content-Length\":\"68275\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b9b5e565-fc02-49ba-a961-b4987098e831>\",\"WARC-Concurrent-To\":\"<urn:uuid:adb6da6a-5443-4828-85d5-f893c6983dd0>\",\"WARC-IP-Address\":\"206.189.240.144\",\"WARC-Target-URI\":\"http://www.moneyscience.com/pg/blog/StatAlgo/read/361154/stanford-ml-51-learning-theory-and-the-biasvariance-tradeoff\",\"WARC-Payload-Digest\":\"sha1:APLDZRYCCFFIOCHVHZ3G3CKUVSHBVBSR\",\"WARC-Block-Digest\":\"sha1:GILNJNWVHTMHMY3FWP2USIV4ZMEFAOZE\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-22/CC-MAIN-2019-22_segments_1558232258453.85_warc_CC-MAIN-20190525224929-20190526010929-00339.warc.gz\"}"}
https://softmath.com/math-com-calculator/inverse-matrices/kuta-software-infinite-algebra.html
[ "", null, "Yahoo users found our website yesterday by using these math terms :\n\n• Algebraic definition of a Hyperbola\n• square root of variable equations\n• GCSE REVISION PRINT OUTS\n• free sats paper to do online\n• Algebra with Pizzazz workbooks\n• cpt practice college algebra\n• GRE permutation problem\n• gnuplot matrix determinant\n• college math 108 cheat sheet\n• adding, subtracting, multiplying and dividing decimals\n• radical expression in simplified terms\n• Pure math 10 worksheet\n• TI-84 calculator activities for middle school\n• printable algebra tiles\n• balancing word equations calculator\n• algebra 1 chapter 9 prentice hall worksheet\n• equation store notes ti-89\n• free polynomial inequality tests\n• balancing nuclear reactions worksheet\n• aptitude+tricks\n• Algebra trinomial games\n• 4th grade math factor trees\n• CLEP.PDF\n• CLEP COllege ALgebra Study Guide\n• solving polynomial equations excel\n• online year 6 SATS questions to solve\n• scale factor+ formula\n• prealgebra puzzle\n• mental maths equations printouts\n• interactive hyperbolas\n• permutation combination compare\n• ti-83 algebraic equations\n• Symmetry Math Printable Worksheets Kids\n• calculation worksheets with integers\n• plotting a plane in maple\n• Rule for converting decimals to fractions to percentages\n• picutes of parabola\n• prentice hall math book page 20 answers\n• solve for unknown in MATLAB\n• cube root lessons\n• western cape matric maths excercises algebra\n• Trig calculator\n• solution typical nonlinear differential equations\n• why do linear equations end up in a straight line?\n• complex trinomial + math\n• free 8th grade math worksheets\n• equations differentials\n• solve trinomial\n• entering algebra,polynomials in ti86\n• algebra worksheets, FOIL\n• two-step equation calculator\n• java program to convert to mixed fraction\n• multiplication problem solvers\n• square roots and equations worksheets\n• holt algebra 1\n• year 7 maths area questions sheet\n• how to solve limit by using T1 83 calculator\n• Glencoe Algebra 1 keys\n• college algebra software\n• solving systems graphing printable worksheet\n• linear algebra examples\n• convert mixed number decimal\n• past ks2 sats papers answer sheet online\n• how do i do division sums ks2\n• expanding polynomials TI 83 program\n• homework sheets to print year 6 english\n• multiplying and dividing fractions and mixed numbers worksheets\n• different types of science test sats papers ks 2 to download\n• factoring calculator\n• free easy to do algebra equation to print out\n• algebra trivia\n• Softmath\n• hard maths equations\n• percentage worksheets\n• mental maths questions\n• study for college math clep test\n• solving second order systems of equations matlab\n• \"3rd order\"\n• poems with math words\n• Free Printable Science Quiz\n• how to divide 2 radicals\n• sample mathematic question\n• maths ks2 method subtraction negative answers\n• who discovered algebra 2\n• 6th grade math mixed review worksheet\n• substitution calculator\n• steps on how to get a percentage in math\n• three degree equation solver TI82\n• how to solve algebra for 1st year high school\n• basic liner equation\n• 11th grade free math games\n• convert three second order differential equations to six first order differential equations\n• factors and multiples powerpoint\n• south suburban mth 095 tutorial\n• difference between casio and 115MS\n• Factors Algebra with pizzazz\n• how to solve a system of single variate polynomial equations\n• pre-algebra with pizzazz 208\n• calculator that rationalize the denominator of a radical expression\n• hardest math problems\n• Cube Root Chart\n• general aptitude questions+circles\n• convert .17 to a whole number\n• complex number excel vba\n• java.math method to convert decimal to rational\n• cube root chart\n• geometric Probability worksheet\n• cubed factoring\n• lesson plan rational expression adding subtracting different denominators\n• fun calculator worksheets\n• www.how to solve gcf and lcm\n• linear combinations method\n• free math tutor\n• algerbra solver\n• high school math test, ninth grade, printable\n• hands on algebra worksheets\n• hyperbolas formulas\n• printable worksheets for plotting coordinates and transformations\n• ALGBRA TEST\n• free factoring worksheets\n• hard equations\n• printable quiz on rational exponents\n• differential 1/4 calculator\n• math textbook cupertino\n• simplifying calculator\n• 6th algebra worksheet\n• free study guid on permutation\n• online maths test year 8\n• polynomial equation calculator by factoring\n• how to pass the algebra clep exam\n• addition and subtraction algebraic equations worksheet\n• fraction, percent, decimal work sheets\n• 2 STEP EQUATIONS 5TH GRADE\n• algebrasolver reviews\n• integer equation worksheets\n• changing mixed numbers to decimals\n• \"Fraction to Decimal Conversion\" worksheets\n• difference between least common denominator and least common multiple\n• real life example of geometric sequence\n• work sheet for converting factors\n• adding and subtracting polynomials worksheet\n• practice worksheets for algebra transformations\n• trigonometry- chart\n• maths area worksheet\n• online TI-83+ graphing calculator with systems of inequalities\n• FREE GRADE 12 MATHEMATICS ALGEBRA GUIDES\n• calculate binary to decimal, formula\n• algebra: Convert each equation from vertex form to general form\n• Polar Graphing calculator\n• algebra exercises .using casio fx 115ms\n• Algebra 1a help\n• homotopy solver java\n• algebra 2 binomial domain\n• solved gmat math algebra question\n• free printable pre-algebra review worksheet\n• Cost Accounting Homework Solutions\n• accounting problems and solutions free\n• online maths tests ks3\n• solving nonlinear systems & graphing\n• free online balancing chemical equations calculator\n• 9th question papers\n• spinners numbers 1-9 for games\n• \"algebra tiles\" worksheet adding like terms\n• \"lesson plans\" \"Conceptual physics\"\n• what is 8% as a decimal?\n• how to solve for negative radical\n• eog math printables . com\n• Irrational and Imaginary Number solvers\n• how to use a ti-84 plus silver edition on multiplying radicals\n• Who Invented Parabolas\n• Slope & Slope Intercept Form calculator\n• permutation combination\n• newton's method maple nonlinear\n• printable KS2 test papers\n• worksheet on dividing by a given ratio\n• logarithms binomial\n• least common denominator calculator\n• factor polynominal calculator\n• rational expressions online calculator\n• free probability worksheets\n• algebra tile worksheet\n• free multiplication worksheets for third graders\n• solving algebra equations\n• learn prealgerbra free online\n• Non-liner equation\n• practice bank integrated mathematics 1 houghton mifflin\n• hardest Algebra question\n• learn algebra online\n• year 8 math test\n• permutations worksheets\n• math problem solver\n• graphin system of equations\n• online math worksheets for 8th grade\n• how to calculate perfect mnumbers easy\n• english diagram worksheets free\n• sample algebra questions\n• print gauss math test\n• how to learn algebra 1 online free\n• solving greatest common factors\n• sums of integers for 10\n• free online beginning algebra\n• adding and subtracting integers in the real world\n• multiplying and dividing fractions mix worksheets\n• complex factoring\n• polynomial division multivariable calculator\n• free online math classes for fourth graders\n• rudin solution chapter 4 24\n• hard algebraic equations with answers\n• cubed route calculator\n• order of operations exponents free worksheets\n• Quadratic Equations Completing the square method\n• trivia questions on calculas\n• Texas Instruments TI-38\n• ti-89 z transform\n• trigonometry worksheet\n• common denominators of rational expression solver\n• about bearings compass in year9 math\n• \"algebra game\" \"visual basic\"\n• College Algebra Problems And Answers\n• parabola equation solver\n• log on the ti89\n• convert fraction to decimel\n• common factor formula\n• GCD calculator\n• mat mental aptitude question ONL;INE TEST\n• merrill algebra two with trigonometry\n• middle school math with pizzazz book e\n• algebra calc simplify\n• complex simultaneous equations in mathematica\n• solving nonlinear systems with maple\n• free online math solver for solving rational equations\n• worksheet to write linear rules\n• finding the roots and the vertex worksheet\n• free Ks3 maths revision papers\n• How do I enter rational exponents in my TI-83 Plus calculator?\n• easy way to understand statistics\n• interpret features of a function from its graph\n• how do u find log on Ti-89\n• what is 4 3/4 as a decimal\n• Shortcut solutions for Aptitude problems\n• multiplying integers + worksheet\n• Surds solver\n• 9th grade algebra problems one x factor\n• turning fractions into decimals workbook pages\n• algebra solver software\n• analyze math calculator lcm\n• base eight decimals\n• \"symbolic math\" determinant\n• college algebra tutor\n• how to sum string in java\n• how do u solve fractions subtracting\n• factoring trinomials with x cubed\n• algebra 2 matrices lesson plans worksheets\n• teach me algebra\n• lesson plans for estimating square roots\n• multiplying polynomials worksheet\n• combining like terms worksheet pdf\n• ALGEBRA CHEATS\n• slope math worksheet\n• worksheets on factoring square of differences\n• sats papers you can print.\n• excel equation\n• teacher access code for mcdougal littell algebra 2\n• can u give me a demostration of a computational fluency with all rational numbers\n• ti-83 \"linear algebra\" programs\n• online trinomial solver\n• Answers to the world history book(by Mcdougal Littell)\n• boolean equation simplifier\n• 8th grade eog study guide\n• algebra 1 prentice hall worksheets\n• add subtract multiply divide powerpoint presentation\n• How do you teach yourself to do PreAlgebra\n• poem on use of mathematics in India's tradition\n• worksheets integers\n• www.ks2 sats test papers 2007\n• calculator for multiplying online\n• roots of fractions\n• math trivia algebra\n• foil math converter\n• fraction to decimal worksheets\n• worksheets on motion problems\n• basic algebra for idiots\n• ks3 science+conceptual questions+worksheets+pdf\n• how do you do a radical number to an exponent power\n• absolute value worksheet\n• math games for ninth grade\n• probability ti-83 plus\n• code for square root on spark programme\n• HOLT MIDDLE SCHOOL MATH(SYSTEM OF EQUATIONS)\n• trigonomic Equations\n• algebra vertex form\n• difference quotient cubed\n• Algebra 8th grade online test\n• chemistry word problem solver\n• algebra aptitude sample test\n• solve equation multiple variables\n• glencoe math 6th grade tests\n• maths + percentage + worksheet\n• tool to solve simulataneous equations\n• online calculator square root\n• ti89 laplace\n• examples or quadratic equations word problems\n• formula worksheet for rectangle perimeter\n• algebra 2 combinations and permutations\n• maths worksheets for kids\n• pie algebra\n• model aptitude questions and answers\n• glencoe eoc workbook answer algebra 1\n• factoring-algebra math\n• Free Online high school Math help\n• sats worksheet\n• linear equation in two variables and picture\n• 1st grade fraction homework to print\n• pre-algebra sample quizzes\n• interactive dividing polynomials\n• algebra one steps free online\n• a poem on adding and subtracting polynomial\n• integer game rubric\n• algebra formulas\n• using formula maths gcse worksheet\n• lcm algebra\n• free worksheets on motion problems and their answers\n• florida pre algebra worksheets\n• polynomial lesson plans\n• solutions of 3rd polynomials\n• 5th grade math - linear\n• slope formula program for ti-84\n• adding and subtracting positive and negative numbers free worksheet\n• cube root calculator\n• free trig problem solver\n• how to simplify expressions cubed\n• 2007 Algebra formula sheet\n• high school algebra problem and solving\n• australian mathematics practice tests printouts yr 7\n• solving equations by adding or subtracting calculator\n• 2664831\n• percent proportion worksheets\n• prealgebra with pizzazz! book answers\n• Solving for slope\n• Resource Book : Mathematics Structure and Method, Course 2\n• actual codes for puzzle pack on ti-83 plus\n• how to evaluate expressions with exponents and roots\n• online math cheat calculator\n• free print out math quizzes for grade five\n• Algebrator\n• algebra websites to do problems on\n• easy way to memorize cramer's rule\n• free practice EOG 7th grade review\n• phase planes with calculator\n• Equation Substitution Calculator\n• permutations and combination sample\n• ti 84 emulator\n• factor tree worksheets for elementary\n• free online 6th grade algebra quizzes\n• solution for logarithms maths problem\n• simplifying using quotient rule online calculator\n• algerba help\n• how can we write quadratic equation given the roots\n• \"discrete mathematics with applications solutions\"\n• free sample Algebra book for dummies\n• algerbra solver\n• probability using combinations problems tutorial\n• how to solve an algebra problem with two variables\n• decimal time java\n• Least Common Denominator calculator\n• simplify expressions worksheet\n• free online algebra solver with details\n• how to power fractions\n• algebra with pizzazz answers page 23\n• adding + Subtracting Rational Expressions worksheet\n• middle school math free print outs\n• best college algebra review guides or tutorials\n• square roots algebra\n• free eog 4th grade math printables\n• understanding conics\n• prentice hall pre algebra problems\n• finding the GCF in fractions with worksheet\n• college algebra calculators\n• invention of distributive property\n• fraction lcd calculator\n• step by step c++ calculator\n• fractions to decimals\n• how to put an expression in radical form\n• quotient rule for radicals calculator\n• sqare root of 5\n• two-step equations worksheets\n• year 6 free online math objective questions\n• multiplying standard form\n• free addition fractions unlike denominators worksheets\n• multiply integer and fraction\n• free online math program\n• wRITING Trig equations as algebraic EXPRESSIONS\n• examples of clock-related problem in math and their solution\n• algebra 2 answer key mcdougal littell\n• Holt algebra 1 answer key\n• common denominator calculator\n• solve 3rd degree equation\n• solving rational equations with monomial denominators calculator\n• \"truth table simplifier\"\n• tiling problem solving worksheet\n• simplifying rational expressions calculator\n• algebra division questions grade 7\n• permutation math worksheets\n• algebra multivariable\n• order of operation free printable 6th grade\n• simultaneous equation solver\n• algebra helper\n• free online IQ test for 1st graders\n• L.C.M. worksheet\n• online calculator for fraction rational expression\n• 73323236047368\n• permutation and combination ebooks free\n• how to do scale factoring\n• cool math4 kids\n• exponets/square roots\n• abstract algebra video\n• online grade 7 practice english final exams\n• Simplifying Fractions With Negative Exponents\n• mental math test sheets\n• FACTORING Calculator app\n• multiplying dividing adding subtracting games\n• free books on cost accounting\n• prentice hall worksheets\n• Solve binomial\n• free factoring\n• solving 4th order quadratic equations\n• online advanced scientific calculator ti-83\n• factor tree practice worksheets and elementary\n• algebra for college students\n• equation transpose command latex\n• factoring equations in vertex form\n• 6th grade coordinate plane activity\n• Glencoe/McGraw-Hill Pre-Algebra practice worksheets\n• Combination and Permutation online lessons\n• examples of easy algebraic expressions\n• THIRD GRADE FRACTION WORD PROBLEMS\n• polynomials fun game online\n• how to solve trinomial\n• how do you convert to linear square metres\n• algebra + solve by radicals\n• texas instruments calculators/free instruction guideonline\n• sample question paper for 6th standard\n• adding and subtracting integers worksheet\n• FREE PRINTING PRACTICE TAKS TESTING BOOK\n• TI-83 plus LCM\n• Gr. 2 free worksheets decimal adding\n• free algebra homework solver\n• Converting Mixed Numbers to Decimals\n• UOP Elementary /Intermediate Algebra w/ Aleks User Guide\n• how to solve irrational square roots\n• log division maths worksheets\n• solving polynomial in c++\n• recursive sequence online calculator\n• texas instruments ti-84 lesson plans\n• algebrator\n• McDougal Littell eoc\n• trinomials calculator\n• age of calculators cheats\n• answer to glencoe algebra book\n• free coordinates worksheets\n• solve an equation involving fractions by algebra I\n• finding the \"least common denominator\" algebra\n• GED worksheets\n• how to solve prealgebra problems\n• McDougal Littell math course 2 teachers printouts\n• looking for a math tutor in stockton ca\n• how to do algabra for year 7 school children\n• 5th grade Glencoe math book illinois online\n• teaching combining like terms fun\n• free summation notation tutoring\n• converting Foil equations\n• sol practice tests/4th grade from\n• free online Aptitude test with sound\n• REAL LIFE APPLICATION OF A QUADRATIC FUNCTION\n• fraction-decimal-percent worksheets\n• physics excel graphical analysis\n• algebra hands on projects\n• probability algebra 2\n• log conversions algebra\n• order\n• online algebra 1 learning help\n• graph hyperbola\n• algebra- percent\n• boolean algebra simplify java\n• printable statistical formula sheets\n• solving radical expression and example\n• factoring cubed expressions\n• linear equations powerpoint\n• solving a 3rd order polynomial\n• how can I help my student pass algebra\n• multiplying rational expressions, monomials\n• algebraic equations test on online for sixth graders\n• matlab\n• Limits and infinity how to do in calculator\n• solve homogeneous functions differential equations \"second order\"\n• square roots worksheet\n• maths online games ks3\n• absolute value inequalities worksheet\n• edhelper+reviews\n• hyperbola games\n• 10th trigonometry\n• entrance exam in math for 6th grade\n• ti calculator rom\n• free-maths printable grade 7th - angles\n• \"algorithm worksheets\"\n• putting square roots into rational expressions\n• mcdougal littell algebra 2 answers\n• algerbra 2\n• fun simplifying equations lessons\n• java how to grade a test\n• online graphing calculator 2 variable functions\n• ti 83 factor binomial\n• centroid calculator online polygon\n• yr 8 maths\n• algebra equation for Beginner\n• Worksheet On Solving Basic Equations\n• hardest samples on quadratic equations\n• free 1st grade math cd\n• rate of change at vertex of quadratic\n• divisors math fractions questions trivia\n• Maths Worksheets Common Factors\n• converting into binary using ti89 tutorial\n• polynomial square root\n• rockswold instructors solutions manual\n• interval notation decimals\n• tool to graph polar coordinates\n• hyperbola formula\n• Graph equation x+y=5\n• glendale college algebra study guide\n• how to pass a algebra test with an a\n• how do you get the square root symbol on paper?\n• step by step parabolas\n• casio fx-82 manual\n• lcm algebra calc\n• Asymptotes of a Hyperbola calculator\n• mixed fractions solve for x\n• online polynomial equation solver free\n• rom image ti\n• college algebra for dummy\n• matlab code for powell method\n• biology an everyday mcdougal littel experience powerpoints\n• \"division word problems\" 4th grade free\n• ACT Trig. problems\n• mathematics trival and non trival matrices\n• algebra pdf\n• power roots math sheets\n• PDF+vector+algebra+math\n• free maths worksheet secondary\n• Hands on pre algebra lessons\n• biology principles & explorations copyright by Holt, Rinehart and winston pretest\n• practice exams sites+math+0024\n• free easy worksheets on matrices\n• printable pythagorean math worksheets\n• math probloms\n• free algebra worksheets for 7th grade\n• algebra concepts or algebra 1 in 6th grade\n• What a third grade math class should look like\n• McDougal Littell Biology California+tests\n• easy 1st grade printable quiz\n• Solve linear equations with graphing calculator and gauss jordan\n• 8th grade worksheets for solving 2 step equations\n• science ks3 sats revision worksheets\n• elliptic Curve \"perfect square\" java\n• creative publications answers to homework\n• adding and subtraction integers worksheet\n• factoring cube roots calculator\n• what is the difference of two square rule?\n• pre algebra problems\n• trivia sample\n• pie value\n• Ellipse ti 83\n• algebra 1 projects\n• pre algebra worksheets\n• free slopes and y-intercept graphs worksheets\n• find line equation using slope and (x,y) calculator\n• free english test for 5.grade\n• math problem solver fractions\n• simplifying exponents calculator\n• Boolean Algebra exercises\n• probability sums for fourth grade\n• maths work sheet year 8\n• maths.-Algebraic expression\n• deviding uneven fractions\n• math worksheets dilations\n• who invented algebra equations\n• chemical equation and ti84\n• maths gcse formulas\n• Adding and subtracting and multiplying and dividing pages\n• regents anwser keys\n• binomial expansion calculators\n• online algebraic factoring\n• free college algebra worksheets\n• online factoring\n• how to find the root of an equation by factoring\n• Free Algebra Worksheets\n• Pythagoros tformula\n• TRIGONOMETRIC RATIOS ALGEBRA CHAPTER 9 PRACTICE 9-3 PRENTICE-HALL, INC\n• solve quadratic equation using casio calculator\n• year 7 gcse math practice sheet\n• \"South Carolina\" EOC Algebra 1\n• 6th and 7th grade websites for multiplying and dividing fractions\n• free printable math grid one step equations worksheets\n• equations with fractions calculator\n• balancing equations online\n• using log function on ti-83 plus calculator\n• Algebra Solver\n• advance linear algebra cheat sheet\n• free printable 8th grade science books\n• algebra for seventh grade worksheet\n• formula for volume of a beach ball\n• free online y6 sats games\n• Free Coordinate Grid Worksheets 6th grade\n• algebra 1 trivia questions\n• Free boolean Algebra Tutorial\n• simple steps in using the TI83 graphing calculator to find a inequalities\n• algebra with pizzazz Creative Publications\n• percents math worksheet printouts for high school\n• probibility algebra 2\n• nonlinear differential equation matlab\n• math source codes ti 83\n• algebraic formulas\n• simplify square root with exponents calc\n• algebra y7 worksheets\n• Convert Percent to Decimal calculator\n• fractions and decimals worksheets year 7\n• main method in matlab matlab solving ode\n• usable graphic calculator interactive\n• college math problems/FREE PRINABLES\n• algebra 1 tutor software\n• online graphing calculator ellipse\n• one step algebra problems\n• algebra 1b discriminant tools\n• funny algebra problems\n• how to simplify radical expression with fractions\n• ti 89 \"linear equation\"\n• solving non-linear differential equations\n• the rules of adding,subtracting,multiplying and dividing decimals\n• www.hardmath.com\n• difference of two squars printable worksheets\n• how do you divide\n• a real-life application of a quadratic function\n• simplify square roots\n• can you convert numbers with bases to 10 in a ti-83?\n• online algebra calculator equations\n• Storing formulas TI 84\n• common denominators in dividing adding and multiplying\n• help with algebra introductory and intermediate fourth addition tests\n• ucsmp geometry scott foresman and company chapter 13 form a answers\n• mix math review for middle school work sheets\n• algebra2 cramer's rule\n• fun activities for graphing quadratic functions\n• online algebra 2 calculator\n• math 12 trig proofs restrictions\n• printable worksheets for 8th grade on the scientific method\n• factoring and equations calc\n• learn rational expressions\n• linear equalities\n• online exam on science\n• maths revision yr 8\n• prentice hall conceptual physics answeres\n• auto trinomial factor\n• ti-89 solve linear system\n• inequalities game\n• tell me all the stuff for negitive and positive numbers\n• state vector \"X0\" matlab error\n• teach algebra ks3 free worksheet\n• basic abstract algebra solution\n• algebra solver for equations of variation\n• dividing and subtracting Integers\n• coordinate plane print outs\n• steps into balancing chemical equations\n• root of a fraction\n• free algebrator software\n• 6th grade math end year exam + sample\n• dividing monomials problem solving\n• online parabola graphing\n• math problem solver rationalize denominator\n• algebra tutor verbal model\n• adding and subtracting rational expressions worksheets\n• condensing logarithms worksheets\n• dividing, adding, and subtracting integers\n• glencoe world history chapter 13 test 11 grade\n• rationalizing denominator questions\n• free online maths tests KS2\n• APPLICATIONS INVOLVING QUADRATIC EQUATION FUNCTION\n• answer key to the McDougal Littell Algebra 2\n• sum of numbers in java\n• logic function simplifier calculator\n• ti 89 picture application\n• applying linear programming with ti-84\n• aptitude model papers\n• concept grade 10 accounting exampapers\n• first grade free review sheets\n• algebra help - extraneous solutions worksheet\n• books cost accounting\n• greatest common factor Powerpoint\n• free science ks2 sats tests on-line\n• Worksheets on Adding and Subtracting Inequalities\n• solving exponents in algebra\n• online math promblem solver\n• fractions.com\n• polynomial poems\n• gcse maths printable worksheets\n• differential matlab second order\n• ratios solver\n• math worksheets on adding and subtracting integers with 30 problem\n• free math solver\n• online usable algebra calculator\n• hyperbola graphs\n• triple order algebra problems\n• how to write 26% as a decimal\n• simplification math problems\n• show example of algebra problems\n• answers to algebra 1 book\n• elementary trivia math\n• free online test papers for year 7\n• javascript biginteger\n• similar to kuman worksheets\n• basic mathamatics\n• common factors and grade 4\n• percentage +coversion chart\n• the algebrator\n• how to calculate cubed root on a TI-83 calculator\n• solving 3rd order linear equation\n• primary six exam papers\n• solutions to rudin book\n• square root decimal\n• glencoe mcgraw hill algebra 1 ch 10 quiz\n• y-intercept equation solver\n• solving equations gcse worksheet\n• 'worksheet lcd'\n• 9th grade word problem worksheets\n• quickmath rational expressions add and subtract\n• free language worksheets for 7th and 8th grade\n• two variable equations problem\n• proportions worksheet\n• easy way to find the greatest common factor of a big number\n• ontario grade 10 online math quiz\n• worksheets on graphs on linear equationa\n• alegbra questions\n• Glencoe/McGraw-Hill practice worksheets\n• algebra KS2\n• TI-83 tricks\n• math formulas for 7th grade\n• simplifying algebraic equations calculator\n• matter worksheets for 3rd grade printable\n• solving second order partial differential equations\n• formula convet fractions to decimal\n• algebraic expressions worksheets for teachers\n• Convert Percent to Decimal\n• holt online TI-83 calculator\n• word problems with functions worksheets\n• inequalities java\n• algebra free worksheets percent\n• Rules for simplifying pre algebra equations\n• expanding brackets and factorisation videos\n• substitution method math\n• probability of at least using TI-83 plus\n• formula perimetru elipsa\n• GCSE algebraic equations with fractions\n• glencoe accounting 2007 book\n• how to solve for variables to a power\n• factoring equations examples\n• simultaneous equation 4\n• free printable grade 7 algebra\n• vertex form help\n• Glencoe/Mcgraw-hill Algebra worksheet keys\n• ti-89 z transform\n• online saxon math 3 homework helper\n• activity to teach integers to students\n• squares and cubes worksheets\n• integration by parts simultaneous equations\n• simple division algebra equations worksheets\n• free online grade 5 mathematic textbooks\n• ADDING AND SUBTRACTING INtegers activities\n• solve by method of perfect square\n• \"cubed roots\", \"factoring\"\n• matlab solve\n• permutations probability reproducibles\n• the importance of algebra\n• 5th grade patterns and constants worksheets\n• North carolina testing program for 6th grade math\n• how to solve differential equations on TI89\n• easy algebra 2 problems\n• how to use the TI-83 to solve algebra problems\n• Math Drills For sixth Grade free printables\n• Least Common Denominator Calculator\n• proportions+worksheet\n• what is the formula for ratio?\n• How is doing operations (adding, subtracting, multiplying, and dividing) with rational expressions similar to or different from doing operations with fractions\n• convert 0.28 to a fraction\n• answers to high school math textbooks\n• online polynomial solver\n• factor trinomials calculator\n• clep algebra software\n• IQ mathematics problem solving exam\n• algebra riddle practice drills\n• Nth root a number in c#\n• TI 89 Complete the square\n• Cost Accounting Solutions to exercises\n• work sheet on a 6th grade level\n• Hungerford alegbra solutions\n• square root 6th grade interactive\n• graphing lines hyperbola parabola\n• independent probability on ti-83\n• year 11 math help\n• math factors calculator\n• abstract algebra self-quiz\n• probability worksheets for kids\n• completing the square and asymptotes\n• ks2 maths area worksheet\n• free online lessons of tenth physics\n• solving 6 order polynomial excel\n• convert decimals to basic fractions\n• maths bbc sats papers to do online\n• coordinates worksheet\n• mathe games text\n• cost accounting formula\n• algebra software\n• integration by parts algebra\n• past exams with solutions on visual basic 6\n• solving algebraic equations with addition worksheets\n• examples of high school problems using log\n• 3rd grade function rule worksheets\n• powerpoint on parabolas\n• 7th grade math formula sheet\n• simplifying 60 as a radical\n• free primary revision sats paper\n• maths ks2 subtraction negative answers decimals\n• quadratic equations with two variables\n• T1-83 Calculator Online User\n• Algibra\n• GRADE 10 MATHS TUTORIAL ALGEBRA\n• AGS algebra ch 13 test answers free\n• end of year eight science exam ks3 past paper\n• graph hyperbola\n• free ebooks, accounting\n• multiplying rational expressions calculator\n• algebra problems\n• substituting variables in graphing functions\n• algebra equation calculator absolute\n• to solve equations with fractional coefficients\n• list of mathematics formulae\n• Saxon math tutoring in Sacramento, CA\n• solving an equation by completing the square online\n• prentice hall algebra 2 answers\n• laplace mathtype\n• British Method for factoring\n• physics printables\n• algebra: square roots\n• real-life applications fo quadratic functions\n• solving differential equations matlab\n• AIMS sample released test ALGEBRA 2\n• real life examples of a quadratic funtion\n• midpoint application/math class\n• beginners algebra\n• dummy sat papers\n• worksheet rational expression add subtract different denominator\n• factoring trinomials calculator equations\n• Intermediate Algebra STUDY ONLINE\n• workbook to Prentice Hall \"physics\"\n• solving nonlinear differential equation\n• hardest math problem\n• newton's method with multi variables using maple\n• algerbra 1 games\n• basic numeracy test year 5 work sheet\n• ti-84 programs logarithm\n• basic two step algebra problems\n• free Elementary Algebra on line\n• year 10 algebra questions\n• adding and subtracting integers hints\n• glencoe grade 6 math code\n• solving systems of equations matlab\n• prentice hall algebra 2 textbook online\n• Lars Frederiksen ti-89 z transform\n• to step equations problems\n• conic solver\n• maths of 10th standard\n• maple nonlinear differential equations\n• algebra ii worksheets\n• sample problems solving on clock in algebra\n• aptitude questions in software company\n• find the variable in an exponent\n• free o'level math past papers solved\n• Maths APtitude Papers\n• solving trinomials one step at a time ppt\n• solve my algebra\n• simple mathematic calculation questions\n• free food cost worksheets\n• ti89 pdf\n• square root fractions\n• math quiz fo free\n• using integers in real life situations worksheet\n• Math Help coefficient of inequality calculator\n• sample papers eNGLISH Class VIII\n• General Aptitude Questions and Answers\n• factoring equation simple steps\n• high school math quiz, ninth grade, printable\n• square root solver\n• midpoint algebra 1 worksheets\n• prentice hall mathematics algebra 1\n• Science eog tests samples for north carolina 5th grade practice\n• learning basic algebral\n• factoring algebraic expressions explanation\n• free printable exams papers for year 7\n• Graphing Hyperbolas on TI-83\n• concept of slope hands on lesson plan math\n• square vertex form calculator\n• mixed fraction to decimal\n• linear least squares lagrangian example\n• algabra tutor software\n• permutation and combination exercises\n• basic rules for graphing an equation and inequality\n• algebra 2 , combination,permutation\n• Holt 2007 Algebra 1 Chapter 11 study guide\n• free maths olevel tests and games\n• how to solve an equation of third order\n• how to simplify 3 cube root\n• geometry excercise worksheet for grade 3\n• online rational expressions solver\n• notes on permutation\n• 6th root calculator\n• convert from complex number to fraction java example code\n• algebra with pizzazz answer key\n• polynomials lesson plans eighth grade\n• optional question papers(math)class 10\n• online equation finder enter data solve equation\n• ti-83 calculator solving equations\n• trigonometry chart\n• examples of algebra for ged\n• Free Math Problem Solver\n• printable maths worksheets word problems\n• \"online mathematical calculator\"\n• www.shareware Graphing Calculater.com\n• solution for quadratic equation using matrix\n• code for combinations or permutations in language C\n• factor out a equation with a cube root\n• 9th grade algebra free help\n• Free online pdf basic Accounting book\n• grade 6, maths, coordinates and movement, free exercises\n• Solutions to nonlinear Differential Equations\n• algebra pdf\n• Worksheets for Multiplying Cross Numbers\n• rules in adding and subtracting integers\n• algebra answers online for factoring polynomials\n• fun mathworksheet\n• lesson plan template prentice hall inc\n• practice problems for multiply monomials\n• learn algbra easy way\n• LU on ti89\n• factor trees printable+math\n• ks3 revision free test paper\n• sample iowa algebra readiness test\n• writing linear equations\n• sats cheats\n• compound inequality quiz\n• easy year six maths worksheets\n• solving equations worksheets\n• printable maths test sheet for year 5\n• cpm assessment handbook, math 2\n• Algebra 2 test questions for 10th graders\n• free online math homework cheats\n• 5th grade lessons on histograms\n• printable fraction worksheets first grade\n• bank aptitude+pdf+question papers\n• merrill algebra 1 textbook\n• mcdougal littell prealgebra worksheets\n• permutations interactive math activities\n• gramer work sheets for college students\n• 6th grade math integer practice worksheet\n• excel equation solver\n• add subtract positive negative worksheet\n• finding the ninth terms, maths\n• multiplying integers history\n• book to help solve math problems\n• computer aptitude test question and answer\n• solving equations worksheet ks4\n• Free Printable Algebra Worksheets\n• algebra 2 problem solvers\n• making a fraction as decimal tool\n• formula for square root\n• online equation of a circle finder\n• yr 8 maths test questions practise\n• calcul algebric\n• gr.9 questions\n• print maths worksheet(ratio rates and proportion)form 2\n• saxon math algebra 2\n• maths 6th standard india\n• free power points samples\n• square root java calculator\n• common denominators calculator\n• math formula parabola\n• 1150 Lineal meters to square meters\n• Polynomials rationalisation work sheets\n• Rationalise the denominator of 1 / 1+ sqare root 2 - square root 3\n• algebra 2 free help\n• pythagorean theorem pizzazz worksheet\n• \"Introduction to Probability Models\" Ross Chapter 10 solution\n• variable worksheets\n• algerbra 2\n• \"ks3\"+\"past paper\"+\"free\"\n• multiplying and dividing integers worksheets\n• linear function online equation solver\n• linear regression gnuplot\n• quadratic equations with negative exponents\n• precalc \"half life equation\"\n• free college math practice tests\n• explicit solve matlab\n• hard algebra worksheets\n• Differential Equations uniqueness of solutions calculator\n• fraction word problems in grade 6\n• online logarithm calculator\n• square root practice sheet\n• how to teach fraction operations and customary linear conversions\n• apptitude question\n• Hardest Math Problem\n• www.free shareware Graphing Calculater.com\n• Least squares matlab multiple variable\n• basic algebra questions for fifth and six graders with answer keys\n• c# algebraic equation\n• integer worksheets subtracting rules\n• Simplification algebra software\n• Algebra solver\n• 6th grade math test to print\n• sum to n square terms + calculator\n• \"pre-algebra\"\n• subtracting fractions calculator\n• GMAT TEST PAST PAPERS FREE SAMPLE\n• 10-3 transformations on th coordinate plane show work grade 8th\n\nPARABOLA 8TH GRADE, third degree roots long division, Algebra 2 Solver, understanding discriminants for dummies, simple math poems, convert mixed number to decimal, 3rd grade math printouts.\n\nAlgebric solver, teachers pre algebra book answers, Combining like Terms Worksheet, online math solver, multiplying with multiple variables and exponents, java + calculate sum.\n\nRadical calculators, algebraic fraction solver, McDougal Littell algebra 2 math book problems, general aptitude questions, free glencoe math login, rationalize solver, accounting ebook free downloads.\n\nAlgerbra fractions, accounting calculations cheat sheet, conceptual physics ninth edition answer ch 7, mental math practice worksheets, adding roots equation, enthalpy calculater, third grade algebraic expressions worksheet.\n\nPheonix cheats ti 83, graphing equations in algebra, printable fraction word problems, Minimum(Algebra 1), integers game online, free kumon answer level q, boolean +algegra calculator.\n\nOnline typing sats papers, word problems using quadric equations, 7.3 Glencoe algebra 2 online, solve my algebra problems, EQUA grade 6 work sheets free.\n\nSystem 2nd order ODE's Matlab, completing the square calculator, square root of the errors squared, maths-angles work sheets.\n\nAnswer to algebra 2 math problems type in the question, TI-84 games download, quadratic proportions questions, MATH PROMBLEMS, learn algebra fast, reflection and translation worksheet, RATIONAL EXPRESSION AND THEIR GRAPHS.\n\n\"linear equation worksheets\", boolean simplification calculator, pizzazz riddles, cheat to the EOG for North Carolina.\n\nAlgebra equations with percent, formula mathe, fractions answers to some sums worksheet, algebra II with trigonometry.\n\n\"grade 5 math test\", long square root symbol html, LINER EQUATION, printable 5th grade eog practice tests, sats exam free online, non homogeneous equation unknowns classification.\n\nNewton raphson using matlab, truth tables, math, free worksheet, third grade fraction word problem worksheets, Using Quadratic Equations to Solve Problems.\n\nOnline polynomial equation solver, calculate slope of curved line in java, online holt middle school math course 2 worksheets, slope formula for ti 89.\n\nAlgebra substitution interactive, implicit differentiation solver, how to calculate fractional exponents, prentice hall review for physics answers, multiplying integers worksheet.\n\nPerfect squares factorization video, solutions for end of chapter quizzes in College algebra Beecher, solve for square root of 73, solving product of matrices on the graphing calculator T-83, saxon math-adult, Algebra with Pizzazz answer key, free exponent simplifier.\n\nVariables worksheet, simplfying exponents online calculator, step by step solving matrix inverse, printable 5th grade math questions, basic adding and subtracting integers powerpoint, worksheet factoring special trinomials.\n\nGrade 10 algebraic poblems, sample activity sheets in percent(math), numerical methods in matlab for nonlinear ode coupled equations.\n\nMath skills required for 6th grade iowa tests, free online calculater, graphing system word problems, lowest common factor finder, adding rational expressions calculator, multiplying integers work out.\n\nFoil math problem converter, Mult and Division of Rational Expressions, square root fraction practice worksheet, word problems for solving quadratic equations by finding square roots, maths sequences investigations worksheet.\n\nOrder of operations + integers + work sheet, Equation Parabolic VBA, how to make sure the answer makes sense for subtracting, printable workshets on negative and positive numbers, download free graph papers, free math equation solvers.\n\nHistory on Quadratic inequalities, radical exponents variables, solve for x calculator, tutors that can help with adding and subtracting fractions.com, graphing equations on a coordinate grid for fourth and fifth grade, solving logarithm calculator, third grade finding volume in cubic units worksheets.\n\nAptitude question papers and solutions, Aptitude questions to download, samples multiplication and division of rational expressions, how to sqaure fractions math, free rational equations calculator, fun algebra 1 printables.\n\nGeometrical reasoning pdf GCSE worksheet, trivia questions answers worksheets, percentage to decimal.\n\nMultiplying by powers, Adding and subtracting positive and negative numbers in grade 5, radical operations + interactive + math, Free Algebra Puzzles, study guid on permutation, logarithmic help ti, Free Maths for kids - tax Depreciation.\n\nHow to do algebra for beginners, model square roots worksheet, 6 grade math problems, fifth grade math and english eog practice exams, online calculator multiply polynomials, ks2 maths circles worksheets, intermediate algebra clep test.\n\nT-89 calculators online, roots for third order equations, free math word problem solvers, free worksheets involving positive and negative numbers, calculator worksheets that numbers transform into words, simplifying cubed radicals, math area ks2.\n\nSimplify radical expression fractions, parabola pictures, using proportions to solve an application, mathematics calculater, printable eog review puzzles, mixed 6th grade math review, high school intergrated algebra worksheets.\n\nAdd subtract multiply divide fractions test worksheets, implicit integration maple, mathpower 8, Easiest way to learn Pre Algebra.\n\nPythagorean theorem for ti-83 calculator, convert to decimal, the easiest way to learn algebra.\n\nPass paper free to download ks3, prealgebra tic tac toe, maple programming newton's nonlinear, online usable caculator, algebra for grade 10.\n\nSolving simultaneous nonlinear equations, BY FIRST EXPRESSION COMMON DENOMINATOR, math for dummies online, linear equation calculator, distributive property worksheet generate, coordinate worksheet.\n\nArithmetic reasoning worksheets, lesson plan on finding slope of a line powerpoint, advance java aptitude questions with answer, aptitude questions and answers.\n\nPolynomials detailed explanation on F.O.I.L. -college explanation and high school explanation, simplify exponent problems, worksheets; positive and negative numbers.\n\nProgrammers aptitude test free download, websites for adding and subtracting fractions, free printable middle school algebra readiness test, permutations and combinations gre, algebra mathwork, lecture tor ontario grade 10 math..\n\nIntroductory algebra test, newton's method multiple equations & variables, algebra parabolic equations help, adding and subtracting negative and positive integers review, matlab ode45 second order differential.\n\nConverting algebra, college algebra software program, simultaneous equation calculator three terms, greatest common denominator solutions, simplifying radicals calculator online, ti-83 plus c.d.download.\n\nMath calculaters, trinomial caluclator, math trivia ppt, calculator factoring quadratic equations.\n\nSimplifying with variables in the exponents, greatest common factor worksheets, LADDER METHOD, quadratic equations for ti 83, how to find the slope of a line on a graphing calculator, mcdougal littell geometry textbook answers.\n\nSimultaneous solver, how to calculate exponents on calculator, Indian worksheets for 9th class, online mathematics solver, polynomials, solve rational equations calculator, how to multiply and divide radical expressions, simplification by factoring.\n\nSolving simultaneous equations in matlab, Graphing linear equations pictures, rational exponents problem solver, common denominator help in algebra, ti 83 log base 3, free online expression equation solver, non homogeneous second order differential equation.\n\nDividing radicals and square root calculation, high school algebra supplies in MA, free online polynomial root finder, algebra 2 real life problems ( ax squared+bx+c=0).\n\nRoot solver, trinomial calculator, yr 8 ratio practice test, logarithms HIGH SCHOOL WORKSHEETS, simplifying radicals calculator, step by step online algebra calculators.\n\nFactoring trinomials calculator, KS3 drawing pie graphs power points, Polar Graphing Calculator.\n\nMultiply Radicals calculator, saxon algebra 2 answers, formula parabala, solving the non homogenous equation, simplify radical expression calculator, what is variable percentage, second solutions and logarithm factor.ppt.\n\nSolve systems by substitution calculator, solving equations rational expressions, simplify equations, solve van der pol equation matlab.\n\nPre- algebra worksheets, dummit foote solutions, intermediate algebra answers, Intermediate Algebra Calculator Free.\n\nSolving algerbra formulas, solve lcm, prentice hall algebra powerpoints, pre-algebra worksheet free, square root variable.\n\nSolving nonlinear differential equations, polar equations in real life, Pre Algebra, Triangle symbol, calculator,.\n\nEquation of line with vertex and point, how to convert decimal to a radical fraction, simultaneous equation solver excel, convert decimal to fraction or radical, HOW TO CONVERT QUADRATIC FUNCTION TO VERTEX FORM, solving for three variables with multiple functions, online calculator for algebra.\n\nTi-89 laplace, how does my graphing calculator display slope, fractions worksheets least to greatest.\n\nNewton raphson method for nonlinear equations in matlab, harcourt math online book 7th grade pre-algebra, how to pass the college algebra CLEP test.\n\nMultiplying square roots calculator, program that derives roots of quadratic equation on graphic calculator, algebra homework help slope and y-intercept step by step, software de algebra.\n\nAlgebrator augmented matrix, solved aptitude questions, add subtract multipy fractions examples, add numbers variables under square roots, algebra problem solver generator, cubic expression calculator, cut factoring puzzle binomials.\n\nFree greatest common factor worksheets, tutorials on cost accounting, how to solve math depreciation problem, using formulas 6th grade, find LCD for rational expression and convert into LCD as denominator, online integral calculator shows steps, worlds hardest maths equation.\n\nPre Algebra, square root, calculator, positive negative integers worksheet, McDougal Littell Algebra 2 exercise answers, 6.1 differential equations Laplace transform, free algebra 1 cheats, examples on writing a single rational expression, parabola calculator.\n\nAlgebrator downloads, second derivative calculator, what program can I order to help me with my college algebra, answers for algebra 2 texas book even numbers.\n\nFactor Tree Worksheets, how to solve Differential Equations Using Matlab tutorial, hyperbola vertices inverse, rational expression, free problem solving trig, log base 2 ti-89.\n\nFree Algebra Converter for easy answers, simplifying radicals solver, cube roots ti-83, math calculator for factoring, how to store formula in ti 89 yahoo answers, factor tree worksheets.\n\nMath for dummies, application problems factoring quadratic equations, rational expression equation solver, Maths percentage formulas.\n\nAlgebra calculator expression simplify online, solve trig functions by using a graphing calculator, ROM downloads calculator.\n\nSolve algebra problems, how to solve equations with fractions and decimals, euclidean method for square root, multiplying integers worksheets, How to do scales math, algebra graph equation, descargar rom ti 89.\n\nHow to scale math, simplifying rational expressions calculator, factoring trinomials online calculator, online calculator for factoring polynomials.\n\nTrig word problem solver, rational expressions calculator, on a ti-83 plus, how do you find slope if the equation is y=?.\n\nMath test grade 5 ontario, Equations with Rational Expressions Calculator, Free Math Problem Solver.\n\nTi-83 graphing calculator how to do a cubed root, square root solver, precalculus problem solving software, advanced algebra solver, matlab nonlinear differential equations.\n\nFree rational expression solver, math poems, intermediate algebra software rockswold, multiplying integers.\n\nQuadratic into root form, poems about algebra, algebra 1 calculators free online, mcdougal geometry resource book.pdf.\n\nSIMPLEST FORM DECIMAL, algebrator, binomial equations, www.sixthgradersmath.com, t1-85 permutation, ti-84 keystrokes parabola vertex.\n\nSquare root fractions, solve differential equations ti-89, trinomial factored calculator, multiply and divide integers, simplify by factoring.\n\nSquare root of 12 in radical form?, kumon discriminant, how do you change an equation from quadratic form to vertex form.\n\nCode for program that derives roots of quadratic equation on graphic calculator, worksheet 5-digit numbers, what's the square root of 5 as a fraction, rational expressions and equations calculator.\n\nMath Exercise, prentice hall mathematics algebra 1 answers, Online Algebra Calculator Functions.\n\nWhat is an easy activity in abstract algebra, grade 6 math powerpoints california, mathamatics.\n\nSolving for variable addition and subtraction, cube root operation ti 83, basic pre-algebra workshet, convert equation from standard to vertex form, solving sqaure footage.\n\nHow can non-linear equations help us in real life?, convert decimal to fraction or mix #, factorise quadratic equations calculator, how to solve exponents roots, factoring 3rd order polynomial, elementry physics quizzes, TI-83 calculate intersect.\n\nSimplify polynomials calculator, factoring a cubed polynomial, algebra, working with integers and fractions.\n\nSolving multivariable equations, \"given a quadratic equation and its solution, find the base of numbers\", using ti-83 to solve ordinary differential equation, slope intercept worksheets, answers to algebra.\n\nHow do you find the foerster algebra 1 skills practice 77?, calculator or solver for writing equations in standard form, powerpoint file calculator skills linear equation, lowest common denominator calc, general maths exam questions, ROM downloads calculator free.\n\nYr 11 math, Simplify radical expression, algebra solver, yr 8 maths percentage.\n\nFree polynomial solver, division radical calculator, square root rules.\n\nGlencoe Geometry Practice Workbook Answers, math practice sheet positive and negative integer operations, seventh grade math lesson california equations.\n\nAleks cheat, nonlinear equations algebra, changing decimals to radicals, how to do log base 2 on ti-83.\n\nSolve 4th root, answers holt algebra 2, stacks greatest common factor, write equation of graph points, mcdougal littell pre algebra chapter 4 test c.\n\nAlgebraic properties worksheet, finding the variable in absolute value, solve simultaneous differential equation, free adding and subtracting equations worksheets, how to graph a horizontal hyperbola on a calculator, solution manual for dummit and foote.\n\nFree ninth grade math worksheets, binomial factoring calculator, word problem solver in probability, least to greatest fraction, scale factor math problems + 7th grade + worksheet.\n\nHow to simplify radical expressions, inverse laplace transform calculator, online tutoring for algebra 2, on a ti-83 plus, how do you find slope?.\n\nMulti variable equations, first degree rational function worksheets, using simultaneous equation solver complex numbers, square root 193 simplified radical form, solve exponents roots, algebra poems, simplify radicals calculator.\n\nDividing radicals calculation, nth root on a calculator, algebra problems, aptitude questions & answers on English language, simplifying exponents calculators.\n\nMaths-permutation, log base 2 on a ti 83, online Equation solver, kumon sample worksheets, first course in abstract algebra fraleigh solutions.\n\nOnline factoring, online calculator that adds rational expression, translating words into mathematical symbols lesson plans.\n\nBasic algebra questions, plot trig function on ti b3, math parabola formula basics, logical reasoning worksheet, calculate mixture problems, solving quadratic equation by square roots, simplify logarithms problems 10th grade.\n\nFree division beginners worksheets, solution abstract algebra dummit, math solving program, calcuLATE solve rational equation, Saxon Algebra 2 answers.\n\nLearn algebra online for free, algebra helper mac, how to solve ordinary differential equations with fourier transformation, exponential function solver, factoring cubed polynomials.\n\nSolve bysubstitution using one quadratic and one linear eqation, uses of algebra in daily life, quadratic equation factor calculator, parabola calculator online.\n\nSolving square roots, download solution manual \"cost accounting\", free algebra 2 answers online, free software for calculating arthematic progression and geometric progression, ti 83 how to enter log2, pre-algebra with pizzazz! book aa, systems equations solve methods nonlinear matlab.\n\nLearn algebra software, test questions for Foundations for Algebra Year 2, simplify square root in a fraction.\n\nLeast common denominator type in, rational expression simplifier, find the value of M such a it makes a perfect squre trinomial, dividing radicals calculaion, math homework easy answer.\n\nAdvanced algebra solver free, convert decimal to radical expression, creative productions pre-algebra with pizzazz, \"Dividing Decimals\" Worksheets, simplifying complex rational expressions-definition.\n\nWhat is the role for multiplying, dividing, adding, and subtracting fractions, solve for variable with mixed fractions, Rational Expression Lowest Terms Calculator, equation for square footage, free online Synthetic Division Calculator, KS2 algebra worksheets, lesson plans on exponents.\n\nSolving Applied Problems, help on diamond factoring (math), algebraic ratios with fractions, factor my equations, worksheets- solving one step equations, how to teach graphing linear functions 8th grade math, how do i solve electrician math problems.\n\nAnswers to level e unit 4 in Glencoe/McGraw vocabulary book, how to solve nonlinear equations 10th grade, quadratic fractions, \"math equasion\"+solver, roots of quadratic equations in any base, algebra brush up exercise.\n\nSimplifying exponents under a square root, adding integers games, Fraction problem solver, simplify expression calculator interactive.\n\nDescribe a real world situation which is described by a system of two linear equations in two variables., slope formula graph online, free books available of cost accounting for study.\n\nCalculator for fractions to decimals, Algebra with Pizzazz objective 4-d creative publications, maths worksheet arithmetic.\n\nWrite equation in standard form ellipse hyperbola parabola, lowest common denominators multiples worksheets, who to answer algebra 2 problems, TI 89 Graphing Calculator for Dummies free download, converting vertex form into standard form, graphing quadratic inequalities calculator, solved aptitude papers.\n\nI Need Help Solving a Algebra Question, Ged Answer key from the Uk, Algebra 2 factoring tips, free clep testing software, math example division ladder for GCF of 10,15.\n\nSOLVE FOR SPECIFIED VARIABLE, fractions to decimal calculator, square root equation solver, algebra with Pizzazz answers pg 62.\n\nAlgebra free printable tests, I cant learn algreba, algebra with pizzazz worksheet, pre algebra linear equations worksheets, \"algebra advanced\" +textbook, Adding and Subtracting 5 to 6 digit numbers, finding min, max, zeros of quadratic equation.\n\nCLUB, ninth grade algebra test, Section 7.1 Properties of s-Block Elements answers, prentice hall mathematics algebra 1 answers free, ti-84 and log base 10 conversion, diffrence between GCF and LCM.\n\nGraphing trig calculator, simplifying polynomials calculator, algebrator software, solve by substitution using one quadratic and one linear equation, fraction to decimal conversion method, multiplying and subtracting games, radical calculator.\n\nAlgebra with pizzazz answer key, answers to algebra problems, solve first order differential equations with matlab, convert decimal to fraction formula, online calculator for equatios with subsitutions, x factor cost accounting, radicals and decimals.\n\nCollege algebra software, square root property calcultor, square equations addition, partial fraction calculator.\n\nConvert decimal to radical, rational expression calculator, free online polynomial factorer, equations worksheets games maths, programming ti-89 to solve equations, free algebra help summations.\n\nSimplify exression calculator, freemath pic, cost accounting book.\n\nSecond order matlab, division radicals and square root calculation, equations with square roots calculator, intermediate algebra problem solver, holt biology worksheet answers.\n\nLeast to greatest fraction calculator, which math i need to learn in order to take test for electrician, find equation for hyperbola ti 83, solve quadratic inequalities computer program.\n\nMixed numbers to decimal calculator, factoring quadratic equation square rooms, Algebra practice sheets, solve rational function equation by derivation, diamond problems solver , how to use a graphing calculator to solve problems.\n\nCube root worksheets, TI-89 + change of base, matlab convert decimal to fractions.\n\nLog equations with square roots as base, solve differential equation in matlab, third order equation solve, converting decimals to square roots, calculator square rooting w/ variables, greatest common factor calculator decimal, how to teach adding and subtracting positive and negative integers.\n\nHyperbola in real life, solve second order ode in matlab, how to figure out adding and subtracting positive and negative numbers, examples of math trivia, decimal practice sheets, learn how to do algebra for free.\n\nPage 83 of the Section 7.1 Properties of s-Block Elements anwers, free equations with Rational numbers worksheet, finding slopes worksheet, softmath, how to find slope with 3 coordinates, Non-homogeneous Laplace pde.\n\nTrivia questions of decimals? mathematics, Multiply expressions having positive fractions, algebra and grade 10, 8 2/3 as a decimal, 9th grade basic worksheets, free online rational expression calculator.\n\nTi rom image download, factorization calculator, exponential equations in two variables with absolute value exponents, download the cubic formula into my calculator, dummit foote solutions, \"mastering physics\" answers.\n\nAlgebra 2 math trivia, formula for exponents, free SAT exams practice for third grade, factor lattice pre-algebra.\n\nFinding common denominator with variables, hyperbola problem solution, algebra with fraction on one side.\n\nCalc rom, print past exam papers for free, Decimal to Fraction Formula.\n\nMoney problem solving sums for 4th graders, college algebra by dugopolski with answers, one step equations with fractions worksheets.\n\nPartial fraction calculator online, online quadratic equation solver imaginary, glencoe/mcgraw hill pre-algebra student solutions.\n\nMultiplying binomials 9th grade pre- algebra, algebra answering freeware, Area of circle worksheet, What are the 3 rules of evaluating problems in prealgerbra, ti-89 manual pdf.\n\nPrintable graphing calculator, FREE 6TH ALGEBRA RATIONAL EXAMPLES, simplify equation applet, algebra trivias.\n\nHigh School Maths and English Sheets, math for dummies, factor math equations with fractional exponents, rudin solutions analysis.\n\nLeast common multiple calculatur, trinomials calculator, algebra 2 answers, free 6th grade math projects, www.math probloms. com, cube root notation.\n\nTrigonomic identities generator, extracting the largest perfect square, free ti84 calculator for pocket pc, Answer to Algebra Problems for Free, websites that help me with prealgebra, FRACTİON. EXPONENT.. WORKSHEETS.\n\nSubstitution method math, Year 8 maths exams online, algebra 2 trigonometry+Unit 3 Test review+ Virginia beach, free online ti 83 emulator, partial fraction square root, Equation Factoring casio.\n\nPositive negative integer word problem, test of genius math with pizzazz, answer to algebra with pizzazz worksheet 160, how to do 6th root on a ti-84 plus silver edition calculator, bibliography books cost accounts.\n\nHow to solve the area of a polygon using substitution, how do you do divids, 7th Grade Algebra, change the subject of a formulae worksheet, perimeter of triangles math reproducibles grade 6, free online algebraic calculator math, rectangular coordinate system practice graph.\n\nMathematical poem example, online \"delta function\" calculator, percentage equations, math trivia in geometry, scale factor kids version, kumon answer book for fourth grade.\n\nMultiply whole numbers and decimals, multiplying and dividing rational expressions worksheets, enter online system of equations, online trinomial factor calculator, factoring calculator example, linear elimination calculator.\n\nFind the quadratic equation with roots, online cube root finder, free algebra function worksheet, Algebra Equation Engine, decimal to fraction formula.\n\nVolume surface area prism lesson ks4, rules for algerbra 1, 5th grade solve for unknown variable worksheet.\n\nFree english work sheets for indian children, solve algebra paper, equation worksheet, permutation and combination worksheets, comparing integers games, how to solve slope, Glencoe/McGraw Hill probability and odds worksheet eight grade.\n\nOrdered pairs pictures, application of linear equationin two variable, descartes and equations by graphs, what is the square root property equation.\n\nSolution of a pair of simultaneous equations (Excel), mixed number to a decimal, Solve nonlinear quations online, adding and subtracting worsheet.\n\nSolving quadratic equation by calculator, algebra for dummies online, trigonometric functions graph calculator online, test of genius algebra with pizzazz.\n\nRules for adding and subtracting positive and negative fractions, Kumon answer key for level G, factoring quadratic equations calculator, turning mixed fractions into decimals, understanding the concept of algebra, online activities to revise from for my ks3 exams, can you have a negative number inside of a radical?.\n\nMaking a decimal to a mixed number, Partial fraction calculATOR FREE, write a program which convert decimal number to binary for fractional value?, trigonometry puzzle unit circle 4x4 grid equivalent expressions.\n\nAlgebra sums, help prentice hall conceptual physics, math poems grade one, ordering decimals ks3 worksheets.\n\nLinear equations real life activity bridge problem, McDougal littell book answers, differential equations examples in daily life, free printable equations unknown.\n\nHow to make a function machine for high school algebra students, algebra converter, diamond method for trinomials, 5th grade factorization lesson plan, solving pair of linear equations by addition.\n\nSimplifying factorial calculator, finding domain for an equation, ti-84 plus \"substitution method\", college algebra solving nonlinear equations, free properties worksheets, pre-calc worksheets.\n\nFraction expression, application of trigonometry in daily life, Multiplying and Dividing Positive Fractions worksheets, online maths exam 10th class, beautiful poems about math radicals, pre algebra line design.\n\nLatest math trivia, Math Ontario Grade 8 volume practice questions, factoring type 2 trinomials worksheet, multiply rational expressions involving polynomials.\n\nSolving systems of linear equations in three variables, sample problems on linear programming with solutions, free GED math printable worksheets, subtracting two rational expression calculator, free on line tutor now, addition and subtraction of radicals, \"lesson plan\" \"distance problems\".\n\nPrint out step by step pre Algebra, write formula powerpoint, \"first calculate\" algebra problem solving steps, area ks2 worksheet, www.secondgradmath.com.\n\nSquare root problem calculater, how to do basic fractions using a ti-84 plus, how to do algebra expressions on a scientific calculator, algebra made easy free, how to calculate fractions in matlab, complete the square higher Maths questions.\n\nSolving nonlinear simultaneous equations, laplace solver ti 89, Algebra Calculator, mcdougal littell algebra 1 answers for even numbers, ordered pair solution, how do you do expressions containing several radical terms, equation solver for excel.\n\nFree Algebra Solver, cubic function family worksheet, complex rational expressions using the ti-89.\n\nDecimal to fraction worksheet, simplifying radical expressions answers, turning fractions into standard form, course 2 chapter 6 practice 6-7 percents fractions and decimals 1. 65% answer key prentice.\n\nThird grade algebra lessons, simplify by taking roots of the numerator and the denominator, mathematics for dummies, solve algebra problems, maths factor worksheet, square root worksheets.\n\nFree download TI-84, homework sheets from pizzazz! book dd, the square root property, algebraic expressions activities, Algebrator, christmas maths substitution, t1-84 plus calculator online trial.\n\nParticular solution nonlinear first order differential, multiplying and dividing negative number activities, Arithematic formulae, simplify algebraic expressions worksheet, Practice 5-7 Multiplying and Dividing rational Numbers, math software program homework answers rational zeros theorem.\n\nOrder of operation 6 grade free worksheet, algebra two probability help, glencoe algebra 1 workbook answer key.\n\nTexas t-83 complex, decimals as numerical coefficients, Basic Parabola Graphing, algebric problem solve software, multiplying square root calculator.\n\nMultiplication exponents lesson plan, equation solver excel, dummy algebra 1, lesson plan + ordering integers + absolute value + middle school, solving radical poems, highest order of S(12) modern algebra, prentice hall pre algebra answers.\n\nSolving simultaneous equations on excel, equation answerer, in math can you work out a square root of a number using a caluator, LEARN LINEAR MEASUREMENT FOURTH GRADE WITH WORKSHEETS AND ANSWERS, McDougal Littell Biology study guide 2.4.\n\nMaths revision yr 8, algebra 1 mcdougal littell practice workbook, solving accounting problems, factor equation calculator, free college algebra solver, free calculation using logarithms to solve exponential equations, TI 84 - how to make a graph.\n\nTI 89 rom download, free computer programs that solve college algebra problems for me, cost accounting ebook.\n\nConverting decimals as fractions ti-83 plus, ellipse graphing app, roots and radicals calculator.\n\nAlgebra tiles glencoe, simplify rational expressions calculator, online parabola calculator.\n\nFree online solve my homework, year 7 maths practice test online, polynomials fraction w/ single variable tutorials, mcdougal littell world of chemistry answers.\n\nDecimal point worksheets printable middle school free, division worksheets with answers, Math Problem Solver.\n\nAlgebra calculator rational equations, facts on how orange juice is helpful-for kids to read, lesson plan on factoring in algebra, worksheet simplifying roots.\n\nDecimals into fractions formula, change log base on ti-83, factorising three variables, glenco algerbra 2 answer key, probability worksheet and 4th grade.\n\nQuestions and solutions descrete mathematics boolean algebra tutorials, cubed polynomial solve, lattice multiplication worksheet, box method expanding brackets activity, lessons on fluid mechnics pdf, online free college algebra problem solver, 7th grade pre algebra textbooks.\n\nSquare root manual method, Algebraic equations worksheet free, free year 8 maths test, ti 83 log, \"Greatest Common Factor Table\", find the domain, range, and vertical asymptote of logarithmic function graph, answers to algebra 2 problems.\n\nLearn algerbra, quadratic equation jokes, solving multiply and dividing equations for pre algebra, free nc eoc algebra I practice worksheet, free on line mathematic Grade 3 problems, linear differential equations lectures ppt, factoring trinomials calculator.\n\nSimplify radical terms, exponent fraction calculator, algebra formulas for beginners, math cross simplification worksheet, factoring polynomials two perfect cubed terms, holt teacher ad. algebra 1, rules for graphing an equation or inequality.\n\nConverting fraction to decimal worksheet, online mental maths tests ks3, mathematica samples, gradients printable worksheets maths b, \"free download cost accounting books.pdf\".\n\nAlgebrabic expressions, Free Algebra Worksheets, accounting books,free download, conceptual physics solution, ratio formula, sums and differences of rational expressions worksheet, multiplying radical expressions.\n\nMath tricks gre from math majors, free adding and subtracting integers worksheet, algebra proportion worksheets, free ebooks for beginning algebra, Algebra: 2 Circle Venn Diagrams, how to solve third degree equation using calculator.\n\nC language about quadratic, approximate using differentials square root 35.6, how to solve powers that are fractions.\n\nEasy numerical examples of palindromes, how to solve the first order linear partial differential, factoring quadratic expression solver.\n\nSolving systems using substitution calculator, algabra, TICALC pdf converter.\n\nGrade 8 multiplying and dividing integers free worksheet, hard algebraic questions, free samples of quadratic equations, partial fraction decomposition calculator, algebra answer keys.\n\nPermutation and combination lecture notes, 3 variables 3 equations, least to greatest worksheet, maths sums for algebra of 9th std., can a difference of squares square root be simplified, how to solve quadratic equations with mixed variables.\n\nAlgebra 2 math solver, simultaneous quadratic equation calculator, program in java using while loop to reverse the digits of the number., linear programing word problems, free 10th mathmatics notes downloads, algebrator help logarithmic.\n\nEnter 1 number+java, year 8 algebra test, Graphing Linear Equations Worksheets, find mean on ti-83 extrapolation point.\n\nSquare root symbol calculator, evaluating expressions lesson plan, standard form to vertex form, how do you do a mixed fraction on a ti-84 plus caculator, adding negative fractions worksheet, square roots with exponents, 9th grade algebra 1 part 1 practice test.\n\nAlgebra questions and answers, Maple 3D vecot filed with curve, mathematics education maple quadratic, simplify square root converter with variables.\n\nFree online T1-83 calculator, solved aptitude papers, rational exponents on ti-89, write as a decimal calculator, How to graph y=.5x+3.\n\nVariable squared divided the variable, integer test worksheet, two step equations with fractions worksheet, Self help algebra study guides.\n\nFifth grade factoring lessons, anwsers for algebra 2 texas holt text book, practise exam papers ks3 6-8 download, solving linear equations grades 3-4 basic, what's in chapter 3 of the holt algebra 1 book.\n\nSimplying expressions with integral exponents, Mental Math(Algebraic terms)PPT, solving multivariable linear inequalities, second order homogeneous ODE, saving the quadratic equation in calculator, free saxon pre cal answer keys.\n\nFont for laplace, factoring algebra equations, matlab solve second order equation, algebra help for year 8, algebra sums 13 yr olds, how to Divide Monomials on TI 83, free ti calculator online.\n\nPartial sums addition method for math, formula for add on percentage, calculator that can factor, 6th grade math integers practice.\n\nHow to take ordered pairs and get a quadratic equation, How to find equation in excel, algebraic expressions worksheets, problems with answer in trigo.\n\nReduce rational expressions to lowest terms calculator, biology worksheets math, free exponent worksheets.\n\nAlgebra program, \"\"free online algebra course\" for apple, how to bases for log functions using ti 83, math sums ks3, online quadratic expressions factor solver free.\n\nInteger comparison worksheet, Algebra with Pizzazz Riddles, free printable fourth grad math help.\n\nSimplifying square roots of prime numbers, puzzle pack ti-84 cheats, teach 2-step inequalities powerpoint.\n\nAlgebra 1 concepts and skills chapter test mcdougal littell, algebrator, 4th root of 18.\n\nRatio formula, polar equations applet, leson plans exponents, chapter 7, test form c mckeague's.\n\nHow to slove equations, how to simplify exponential term, Math Algebrator, texas online graphing calculator, working out lineal metres, exponents with algebra in fraction.\n\nAngles math test gr.8, answers for algebra 2, finding irrational answers to a quadratic equation, math site dummies, factoring question gr 10, factoring expression calculator, solving square root equations.\n\nFree algebra simplfy, algebraic equation for graph, mixture formula algebra, examples of exam about quadratic equation, exponents and square roots activity.\n\nPowerpoint on function rules for high school algebra, ninth grade mathematics chart, factoring cubed roots of polynomials, answers to glencoe algebra 1 integration applications connections, calculate the slope and intercept.\n\nTI-89 EQUATION SOLVER, mathmatics equations .pdf, how to factor trinomials calculator, Printable Coordinate Plane Graphs.\n\nFree online algebra lessons, Algebrator download, I need help with college level intermediate algebra.\n\nFree solving equations worksheets puzzles, what is the square root of 2 thirds, maths for dummies, calculator for solving systems by substitution, algebra word problem solver version 2.0.\n\nHolt california algebra 1 chapter 6, Barron's- SAT subject test CD ROM Math Level 2 (free download), online simplifying radical solver.\n\nFormulas used in solving higher math, factoring polynomials online calculator, how to find out the square root on a calculator, fractions with a fractional exponent, can matlab solve a DE, mckeagues intermediate algebra chapter 7 test review, calculate galois applet.\n\nCube roots calculator variable, help finding roots 3rd order polynomial, \"cubic solve\", aleks calculator, multiplying radicals calculator.\n\nHow to solve ode in matlab, square root method, online solve third order polynomials.\n\nHomogeneous and non homogeneous pde, maths help for year 7 children algebra pyramids, calc ti 89 download cas, permutations and combinations printable worksheets.\n\nBeginner linear algebra, intermediate algebra answers, factoring square roots on calculater.\n\nSimplify equations calculators, free saxon pre cal answer key lesson 86, imaginary square roots on ti 89, solve system non-linear equations excel, free algebra calculator, square root a fraction to get a decimal.\n\nMastering physics 34.70 answer, Worksheet On Dilations In Math, quadratic equations in brackets for dummies, maple solve multiple equations, download cost accounting sheet, maria esquivel, austin,tx, Algebra 1, saxon free answers.\n\nGroup actions dummit solutions, multiplying standard form, finding the square root on a graphing calculator.\n\nMath poems algebra, free kumon math worksheet, quadratics radicals, excel formula for finding the slope, online maths semester test yr 8.\n\n10th mathmatics notes, Trinomials calculator, free algebra activities+6th grade, maths ks3 revision test free download, online calculator 3rd square root, is there a site I can enter algebra and it will solve?.\n\nCalculate the interpolation by casio, factoring equations on ti-89, integration by parts ladder method , square symbol on the calculator, powerpoint presentation and algebra 2 and pearson, highest common factor of 28 and 49, Elementary Algebra free tutoring.\n\nFree calculate math equations, drawing pictures on a graphing calculator ti-84, balancing equations algebra.\n\nFirst course in linear algebra by john fraleigh teachers edition download, Solve Math Equations, math poems about algebra, ALGEBRA PROGRAM, combining like terms worksheets, real life examples of polynomial long division.\n\nHow to solve logarithms on calculator, algebra factorizing ks3, decimal to fraction with radical, speed maths tutorials in pdf format, variable only polynomials, convert mixed fraction to percentage, 7.2 C test integers.\n\nHow to find the root of a prime quadratic equation, free download algebra calculator texas instruments, simplifying rational expressions calculator, solving for x calculator, non homogeneous pde.\n\nHyperbola equation 3 d, texas instruments T1-82 calculator instructions, multiply expressions, easy methods to learn algebra.\n\nLCM equation solver, graphing calculater, solve third order polynomials TI-83, show the step to put information in the graphing calculator ( TI-83), ALGEBRA sums for 6th grade ONLINE, graphing calculator equation pictures, root and exponents.\n\nOnline games for ratios for 6th grade, prealgebra \"radicals word problems\" worksheets, calculator free online weighted average, system of equations worksheets, summation.java, glencoe algebra 1 workbook, beginning Algebra sixth test for practice.\n\n\"www .shodor. org ./interactive/ activities /algebrator\", 9th algabra help, CALCULATING GCD, solving equations in matlab multiple variables.\n\nFunctions of hyperbolas, root solver, year 5 factors worksheets, grade 9 math mcraw hill math work sheets, How to Change a Mixed Number to a Decimal, formula decimal to fraction.\n\nWrite the equation of the hyperbolic in standard form by completing the square, permutations and combinations in 8th grade algebra, ti 83 plus solving equations, factoring polynomials with cubed terms, mathematics, structure and method, course 2 practice master, Pre-algebra pizzazz! book.\n\nMultiplying and Dividing Positive Fractions, algebra 6th grade, maple mathematics education polinomial graphics.\n\nFree algebra 1 high school worksheets with answer keys, rational expressions solver, probability 7th grade advanced worksheets, least common denominator for quadratic equations, solve quadratic model by vertex form, algebra for dummies free, highest common factor of 85.\n\nConvert numbers to base-8, what is radical form, how to use ti 84 plus logarithim, math projects middle school scale factors, Need help with my algebra free, calculate LCM of rational numbers, liner equation.\n\nRadical number factoring online calculators, tutor-homework linear algebra, glencoe mathematics algebra 1 answer key.\n\n6th grade math tutor software, chapter 11 algebra 1 answers, McDougal Littell Cumulative review worksheets, my math lab cheat answers, \"absolute value publications\" trig identities.\n\nOnline graphing table calculator, sayings with mathematical words, free aptitude books download, math +trivias.\n\nAdding radical numbers, online calculator for simplifying roots, compare and order fractions, decimals, percents, and scientific notation worksheets, third grade algebra lesson plans, holt pre algebra( chapter 11 worksheets).\n\nOn line textbook algebra 1 explorations and applications, algebra 1 lessons on structure and method mcdougal littell, basic hyperbola, how to factor polynomials on a TI-83 plus, greatest common divisor calculator, square root of 12 radical form, erb test practice.\n\nTi-84 college algebra, the best calculator to use for algebraic expressions, transforming formulas for beginners, sample Elementary Statistics papers.\n\nAlgabraic formula for finding the value n when given the measure of each interior angle, multiply and divide rational algebraic expressions, solving compund fractions, algebra 2 trigonometry+Unit 3 Test review+ Virginia beach+linear, evaluating radical expressions calculator.\n\nOnline calculator for adding roots, factor tree worksheets fractions, LCD Calculator, adding and subtracting standard form, exponents math worksheets grade 10, solve third-order non homogenous, nonlinear examples.\n\nTi 83 plus adding fractions, solving for x with square roots, \"solving age problems\" pre-algebra free worksheet, solving second order differential equation using laplace,matlab, third order polynomial solver, factorization worksheets.\n\nTable of 4th root, adding and subtracting in 10, 100 and 1000s worksheet, exponents to simplify multi variable expression, Download free Aptitude Questions, hyperbola graph.\n\nGames for quadractic equations, algebra expression calculator, ks3 probability permutation, Scaling equation maths.\n\nExplain radius and diameter +fo 5th graders, solving complex multiplication with distributive property, solve my rational expression problem for free, calculator dividing algebra, easy steps to learn algebra.\n\nFree printable resources KS3, solving systems with the Dirac Delta Function, 6th grade addition and subtraction, multiplying polynomials cancel out, algebra math software, free online factorization calculator, teaching partial sums.\n\nIntegers games, solving algebra equation with fraction in, rules for adding and subraction signed numbers.\n\nScale factor math, linear form of rate equation, how to factor the square root of a fraction, how do I get the lcm in a math problem?, free ebook hardest intigration sum, Polynomial calculator code, cheats for math homework.\n\nSolutions to rudin, free grade 1 english test paper exam TI-89, free multiply simplify radical.\n\nAdding rational expressions in a calculator, factoring polynomials cubed, algebra questions interactive brackets online, abstract algebra herstein solutions, ks3 maths- straight line graphs worksheet, softmath, multiplication, Equations of Parallel Lines worksheet.\n\nTi-89 rom image, how to do a square root, radical form, polynomial common denominator, scale factor barbie lesson, free proportion worksheet, free gcse chemistry double science exam papers year 11.\n\nHow to convert from polar to rectangular function in trigonometry free tutoring, free math work sheets gr 3, mcdougal littell algebra II help.\n\nOrdering scientific notation worksheet, how do u solve rational equations, convert decimals to radicals, an online calculator that shows you how you should of writen out your problem, lesson plan in definition of base, coefficients and exponents.\n\nEquation factor calculator, Simultaneous Equations Solver, adding and subtracting fractions + worksheets, solving quadratic equations + calculator, ti-89 pdf, Distributive Law math sheets.\n\nLogarithms for dummies, rules of log to solve power algebra, solving two step equations worksheet, differential subtract divide integrate multiply add, trigonometry .ppt, cost account books.\n\nTi calculator rom, online calculator for substitution method algebra, writing from vertex form to standard form, algebraic simplifier.\n\nBing visitors found us today by entering these keyword phrases :" ]
[ null, "https://softmath.com/r-solver/images/tutor.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7791948,"math_prob":0.99181265,"size":105672,"snap":"2020-34-2020-40","text_gpt3_token_len":23107,"char_repetition_ratio":0.24724609,"word_repetition_ratio":0.008651721,"special_character_ratio":0.19496177,"punctuation_ratio":0.096157454,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.999938,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-01T08:03:12Z\",\"WARC-Record-ID\":\"<urn:uuid:edb6cf38-f920-4ab9-9cf7-eafb055f8973>\",\"Content-Length\":\"188400\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5d4262cf-e2c7-483c-b981-ec14fafa57a4>\",\"WARC-Concurrent-To\":\"<urn:uuid:8a8cb64d-505e-43d0-ab48-a7643b7ae8b5>\",\"WARC-IP-Address\":\"52.43.142.96\",\"WARC-Target-URI\":\"https://softmath.com/math-com-calculator/inverse-matrices/kuta-software-infinite-algebra.html\",\"WARC-Payload-Digest\":\"sha1:LIVW2UKIIVDG6X7BSHQ23BXJLGWSBAQN\",\"WARC-Block-Digest\":\"sha1:L72BISRIXGOEGY5ALZFAN6IPVTWIWGIM\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600402124756.81_warc_CC-MAIN-20201001062039-20201001092039-00728.warc.gz\"}"}
https://www.tamatalk.com/threads/generate-v4-and-v3.94139/#post-1153316
[ "# Generate V4 and V3", null, "### Help Support TamaTalk:", null, "Status\nNot open for further replies.\n\n#### D-Best\n\n##### Member\nLast edited by a moderator:\n•", null, "M00NB34M and carpinteyronwl\n\n#### Rey Mysterio\n\n##### Well-known member\nHello, D-Best!\n\nI know you are just trying to be helpful, but this is advertising, and is unfortuanly not allowed here on tamatalk, You could. however, put the link in your signature!", null, "Thank you!", null, "*-Rey-*", null, "EDIT: For Admin to think that was a very good thing, so you should definitly put that link in your signature!", null, "Last edited by a moderator:\nT\n\n##### Guest\nNice work D-Best! I have to admit it kind of takes the fun out of it but still really interesting to see the inner workings.", null, "Thanks for sharing.\n\nWe can allow this link to stay... Though honestly I'd love to have it in our library as well.", null, "#### Rey Mysterio\n\n##### Well-known member\nNice work D-Best! I have to admit it kind of takes the fun out of it but still really interesting to see the inner workings.", null, "Thanks for sharing.\n\nWe can allow this link to stay... Though honestly I'd love to have it in our library as well.", null, "OK, sorry!\n\nIt's very good, I must admit, but me being stupid, I only understand some, but that's just me!", null, "", null, "*-Rey-*", null, "#### hanatchi99\n\n##### Well-known member\nThat's amazing. You're really smart. I'll definetely use that when I get my V4.\n\n-Kuchipatchi-\n\n#### TamaMum\n\n##### Well-known member\nI made a quick and dirty guide on my website. It shows the details on how I got the information and how you can generate your own passwords using tamatown.com\nMy Guide\nWow! This is great! You are brilliant", null, "I wish I had seen this before I spent 25mins playing Ring Toss in TamaTown arcade so that I could afford the UFO", null, "I have collected 10 of the Souvenirs already - but there's a limit to how much time I want to spend keying in the souvenir passwords too", null, "so I will try for some more another time.\n\nThank you!\n\nI am going to Pin this thread\n\nLast edited by a moderator:\n\n#### Itachi\n\n##### Well-known member\n[SIZE=12pt]Man this really works![/SIZE]\n\nNow I can probally buy the UFO in a matter of seconds!", null, "::ITACHI::\n\n#### lostfan1\n\n##### Member\nD-Best, you ROCK. This is sooooo nice.\n\n#### dr.tam\n\n##### Well-known member\ndoesnt work 4 me\n\ndecode result=error\n\n#### D-Best\n\n##### Member\ndoesnt work 4 medecode result=error\n\nCode:\n``https://v4.tamatown.com/cgi-bin/JinSei.cgi?c=1&amp;p=(BottomPassword)(TopPassword)&amp;u=USER&amp;h=0&amp;a=0&amp;g=99&amp;t=0&amp;d=0000``\n\nLast edited by a moderator:\n\n#### crazy cris\n\n##### Well-known member\nnice stuff i am lucky i have v4 but i am un lucky cuz i lost it cant wait 2 find it nowwwwwwwwww\n\n#### TamaAngelV3\n\n##### Well-known member\nwow, this is really great, and easy! Now if someone could do this for the V3 as well, it would be nice, but I got tons on Gotchi points now on my V4 ^__^\n\n#### crazy cris\n\n##### Well-known member\nya.. that will be ool if you can do that 2\n\n#### D-Best\n\n##### Member\nwow, this is really great, and easy! Now if someone could do this for the V3 as well, it would be nice, but I got tons on Gotchi points now on my V4 ^__^\nI don't have a V3 but I think it works the same way. Try this:\n\nCode:\n``https://v3.tamatown.com/cgi-bin/Tamatown.cgi?d=00&amp;a=GI&amp;p=0000000000&amp;u=USER``\nReplace USER with your username and pick an item below and change d=00 to an item's hex number\n\nCode:\n``````RING hex=8E price=0\nCAPE hex=8F price=0\nCROWN hex=90 price=0\nSKATEBOARD hex=91 price=0\nBASEBALL CAP hex=92 price=0\nBALLOON hex=92 price=0\nTEDDY BEAR hex=94 price=0\nLOLLIPOP hex=6B price=0\nCANDY hex=6C price=0\nCREPE SUZETTE hex=6D price=0\nFRIED CHICKEN hex=6E price=0\nWAFFLE hex=6F price=0\nCHOCOLATE BAR hex=70 price=0\nTROPHY hex=9E price=0\nGOLDEN TAMAGOTCHI hex=95 price=0\nBANDAI hex=9B price=0\nBALL hex=00 price=200\nPENCIL hex=01 price=110\nRC CAR hex=04 price=1000\nRC TOY hex=07 price=1500\nDARTS hex=0A price=100\nBLOCKS hex=0B price=800\nLIONDOLL hex=40 price=1400\nROLLERSKATES hex=43 price=1800\nACTION FIGURE hex=44 price=1400\nRARE SHOES hex=97 price=0\nSUITCASE hex=9D price=0\nSUNGLASSES hex=03 price=800\nBOW hex=09 price=500\nCAP hex=0C price=700\nBOW TIE hex=0D price=700\nWINGS hex=0E price=1000\nMAKE-UP hex=23 price=80\nUMBRELLA hex=41 price=500\nSHIRT hex=2D price=1000\nSHOES hex=31 price=1900\nRARE CD hex=96 price=0\nMICROPHONE hex=9C price=0\nBOOM BOX hex=24 price=1400\nDRUM hex=48 price=1600\nMUSIC hex=4A price=1500\nMUSIC DISC hex=2B price=500\nTRUMPET hex=47 price=1800\nCELLPHONE hex=87 price=0\nBICYCLE hex=88 price=0\nPLANT hex=4B price=0\nFISHING POLE hex=1F price=0\nFAMOUS PICTURE hex=9F price=0\nSKIS hex=89 price=0\nPALM TREE hex=8A price=0\nSURF BOARD hex=8B price=0\nPANDA BEAR hex=8C price=0\nMARACAS hex=8D price=0\nPIZZA hex=37 price=140\nSODA hex=4F price=120\nCORN DOG hex=38 price=100\nDRUMSTICK hex=27 price=200\nSAUSAGE hex=57 price=110\nTACOS hex=56 price=150\nJUICE hex=26 price=80\nBURGER hex=1D price=180\nSANDWICH hex=29 price=160\nFRIES hex=1E price=80\nPOPCORN hex=5A price=90``````\n\nLast edited by a moderator:\n\n#### crazy cris\n\n##### Well-known member\ntaht makes me really really said that i dont got a v3 any moreeeeeee", null, "", null, "onyn a lost v4 in my house tooo bad my v3 got water on it", null, "#### TamaAngelV3\n\n##### Well-known member\nI just tried the V3 one, didn't work\n\n#### starbreaker\n\n##### Member", null, "", null, "", null, "I have no idea what you're talking about. Help? :mimitchi: :mimitchi: :mimitchi:\n\n#### spudilike\n\nI don't have a V3 but I think it works the same way. Try this:\nCode:\n``https://v3.tamatown.com/cgi-bin/Tamatown.cgi?d=00&amp;a=GI&amp;p=0000000000&amp;u=USER``\nReplace USER with your username and pick an item below and change d=00 to an item's hex number\n\nCode:\n``````RING hex=8E price=0\nCAPE hex=8F price=0\nCROWN hex=90 price=0\nSKATEBOARD hex=91 price=0\nBASEBALL CAP hex=92 price=0\nBALLOON hex=92 price=0\nTEDDY BEAR hex=94 price=0\nLOLLIPOP hex=6B price=0\nCANDY hex=6C price=0\nCREPE SUZETTE hex=6D price=0\nFRIED CHICKEN hex=6E price=0\nWAFFLE hex=6F price=0\nCHOCOLATE BAR hex=70 price=0\nTROPHY hex=9E price=0\nGOLDEN TAMAGOTCHI hex=95 price=0\nBANDAI hex=9B price=0\nBALL hex=00 price=200\nPENCIL hex=01 price=110\nRC CAR hex=04 price=1000\nRC TOY hex=07 price=1500\nDARTS hex=0A price=100\nBLOCKS hex=0B price=800\nLIONDOLL hex=40 price=1400\nROLLERSKATES hex=43 price=1800\nACTION FIGURE hex=44 price=1400\nRARE SHOES hex=97 price=0\nSUITCASE hex=9D price=0\nSUNGLASSES hex=03 price=800\nBOW hex=09 price=500\nCAP hex=0C price=700\nBOW TIE hex=0D price=700\nWINGS hex=0E price=1000\nMAKE-UP hex=23 price=80\nUMBRELLA hex=41 price=500\nSHIRT hex=2D price=1000\nSHOES hex=31 price=1900\nRARE CD hex=96 price=0\nMICROPHONE hex=9C price=0\nBOOM BOX hex=24 price=1400\nDRUM hex=48 price=1600\nMUSIC hex=4A price=1500\nMUSIC DISC hex=2B price=500\nTRUMPET hex=47 price=1800\nCELLPHONE hex=87 price=0\nBICYCLE hex=88 price=0\nPLANT hex=4B price=0\nFISHING POLE hex=1F price=0\nFAMOUS PICTURE hex=9F price=0\nSKIS hex=89 price=0\nPALM TREE hex=8A price=0\nSURF BOARD hex=8B price=0\nPANDA BEAR hex=8C price=0\nMARACAS hex=8D price=0\nPIZZA hex=37 price=140\nSODA hex=4F price=120\nCORN DOG hex=38 price=100\nDRUMSTICK hex=27 price=200\nSAUSAGE hex=57 price=110\nTACOS hex=56 price=150\nJUICE hex=26 price=80\nBURGER hex=1D price=180\nSANDWICH hex=29 price=160\nFRIES hex=1E price=80\nPOPCORN hex=5A price=90``````\n[SIZE=12pt]Thank you so much - I replaced the 0000000000 with the password for my grandparents entered my username and 9f as the hex and I now have the famous picture number 32 on my V3 tama![/SIZE]\n\nhttps://img387.imageshack.us/img387/5180/aa...spicturepl2.png\n\nLast edited by a moderator:\n•", null, "YuyaXanime\n\n#### Rey Mysterio\n\n##### Well-known member\n[SIZE=12pt]Thank you so much - I replaced the 0000000000 with the password for my grandparents entered my username and 9f as the hex and I now have the famous picture number 32 on my V3 tama![/SIZE]\n\nhttps://img387.imageshack.us/img387/5180/aa...spicturepl2.png\nWowie, spudi, I'll try that!", null, "Thanks, D-Best- you are \"D-Best\"!", null, "Status\nNot open for further replies." ]
[ null, "https://cdn2.imagearchive.com/imagearchive/data/assets/2021-10/1635290610_donate.png", null, "https://www.paypalobjects.com/en_US/i/scr/pixel.gif", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "https://www.tamatalk.com/styles/default/xenforo/smilies/tamatalk/default_huh.gif", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "https://www.tamatalk.com/styles/default/xenforo/smilies/tamatalk/default_mametchi.gif", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "https://www.tamatalk.com/styles/default/xenforo/smilies/tamatalk/default_wub.gif", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.69301945,"math_prob":0.45579433,"size":636,"snap":"2022-27-2022-33","text_gpt3_token_len":188,"char_repetition_ratio":0.11550633,"word_repetition_ratio":0.5063291,"special_character_ratio":0.30031446,"punctuation_ratio":0.27741936,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95729905,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54],"im_url_duplicate_count":[null,2,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,2,null,null,null,null,null,3,null,null,null,null,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-06-29T12:52:52Z\",\"WARC-Record-ID\":\"<urn:uuid:5b53ae30-0835-4915-aeff-6b69a56f83a8>\",\"Content-Length\":\"156334\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:62043d82-889e-4f76-8ad2-08d993bac7ef>\",\"WARC-Concurrent-To\":\"<urn:uuid:8040f127-fbf9-48bb-8440-df8368981d25>\",\"WARC-IP-Address\":\"104.21.32.93\",\"WARC-Target-URI\":\"https://www.tamatalk.com/threads/generate-v4-and-v3.94139/#post-1153316\",\"WARC-Payload-Digest\":\"sha1:TG4443BVG5QZK2HDSTMNMVVUI3L3MKN7\",\"WARC-Block-Digest\":\"sha1:3DOWWUV7PBB6TPM2CMBZ4VXU2ADBHC6I\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656103639050.36_warc_CC-MAIN-20220629115352-20220629145352-00583.warc.gz\"}"}
http://soft-matter.seas.harvard.edu/index.php?title=Viscoelastic&diff=prev&oldid=7915
[ "# Difference between revisions of \"Viscoelastic\"\n\n## Definition\n\nA substance that displays behavior that is both viscous and elastic is said to be viscoelastic. In this sense, viscoelastic materials are said to be a combination of the ideal (elastic) Hookean solid and the Newtonian liquid, along with a time a dependence.\n\n## Hookean Solid\n\nA Hookean solid is one that displays perfectly elastic behavior. This corresponds to the fact that an applied shear stress produces a shear strain in response. Recall that the shear stress ($\\sigma$) is given by the applied force over the area, namely $\\sigma = F/A$, and the shear strain ($e$) is given by $e = \\Delta x/y$. See Figure 1 for clarification.\n\nFor a Hookean solid, we simply have the shear stress proportional to the applied stress by a proportionality constant called the shear modulus ($G$), $\\sigma = Ge$. This type of solid obeys Hooke's law for any magnitude of applied stress.\n\n## Newtonian Liquid\n\nIn the case of a Newtonian liquid, the shear stress is proportional to the first time derivative of the shear strain by a constant called the viscosity ($\\eta$), $\\sigma = \\eta \\dot{e}$.\n\nOne deviation from a Newtonian liquid is a liquid that has a viscosity that is dependent on shear rate, such that $\\sigma = \\eta (\\dot{e}) \\dot{e}$.\n\n## Example\n\nSince viscoelastic behavior comes in various forms that (in general) need to be treated individually, it is instructive to look at a simple example.\n\nIn Figure 2, a constant stress is being applied at time $t = 0$. Until the relaxation time $\\tau$, the material acts in an elastic way, but after the relaxation time it acts in a liquid fashion. In this sense, the relaxation time for a viscoelastic material under a particular applied stress separates when the material acts like a solid, and when it acts like a liquid. Notice that for the elastic response, the strain is constant, and for the viscous response, the strain changes linearly with time." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8310487,"math_prob":0.9887439,"size":3180,"snap":"2022-40-2023-06","text_gpt3_token_len":784,"char_repetition_ratio":0.13664988,"word_repetition_ratio":0.27672955,"special_character_ratio":0.25220126,"punctuation_ratio":0.1270903,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9955922,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-09-30T10:03:29Z\",\"WARC-Record-ID\":\"<urn:uuid:c2b5ecab-d4e3-4479-9250-841acba3b50c>\",\"Content-Length\":\"23156\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:9ae8be39-5b46-469a-8731-2adad9e3f1af>\",\"WARC-Concurrent-To\":\"<urn:uuid:c54334b3-b2da-4999-a5c6-7f86e6dc6a4b>\",\"WARC-IP-Address\":\"54.165.123.1\",\"WARC-Target-URI\":\"http://soft-matter.seas.harvard.edu/index.php?title=Viscoelastic&diff=prev&oldid=7915\",\"WARC-Payload-Digest\":\"sha1:7YZQWN4BCWI7DOZY76T6GS7EOBSQTQKR\",\"WARC-Block-Digest\":\"sha1:HU4R6AXXQHHKITQQGD55NRVFRYXDCUSK\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030335448.34_warc_CC-MAIN-20220930082656-20220930112656-00689.warc.gz\"}"}
https://davetang.org/muse/2019/01/23/the-golden-rule-of-bioinformatics/
[ "# The Golden Rule of Bioinformatics\n\nI’m a big fan of the book Bioinformatics Data Skills by Vince Buffalo and I highly recommend it to everyone who works in the bioinformatics field. The book introduces the reader to The Golden Rule of Bioinformatics, which is:\n\nNever ever trust your tools (or data).\n\nI am a strong proponent of this rule, which is why I always test new tools and explore my datasets.\n\nRecently, I’ve been testing out different methods/metrics for determining the ideal number of clusters after clustering. In this post, I go through my usual approach when I try out a new tool.\n\nThe first thing I usually do is generate a simple dataset with distinctive properties; since we’re testing clustering methods, I created a dataset with five obvious clusters.\n\n```generate_pts <- function(x, y, r, n){\nx1 <- x + runif(n = n, max = r)\ny1 <- y + runif(n = n, max = r)\ndata.frame(x = x1, y = y1)\n}\n\nmy_number <- 20\nmy_x <- 10\nmy_y <- 10\n\nset.seed(1984)\nmy_top_right <- generate_pts(x = my_x, y = my_y, r = my_radius, n = my_number)\nmy_top_left <- generate_pts(x = -my_x, y = my_y, r = my_radius, n = my_number)\nmy_bottom_right <- generate_pts(x = my_x, y = -my_y, r = my_radius, n = my_number)\nmy_bottom_left <- generate_pts(x = -my_x, y = -my_y, r = my_radius, n = my_number)\nmy_middle <- generate_pts(x = 0, y = 0, r = my_radius, n = my_number)\n\nmy_df <- rbind(my_top_right, my_top_left, my_bottom_right, my_bottom_left, my_middle)\nplot(my_df, pch = 16, col = rep(2:6, each = 20))\n```\n\nI found two R packages that can calculate clustering metrics: clValid and NbClust.\n\n```my_pkg <- c(\"clValid\", \"NbClust\")\n\nfor(pkg in my_pkg){\nif (! pkg %in% installed.packages()){\ninstall.packages(pkg)\n}\nlibrary(pkg, character.only = TRUE)\n}\n```\n\nWe will use the clValid package first to calculate clustering metrics for three different clustering approaches.\n\n```my_clvalid <- clValid(obj = my_df,\nnClust = 2:10,\nclMethods = c(\"hierarchical\", \"kmeans\", \"pam\"),\nvalidation = \"internal\")\n\nsummary(my_clvalid)\n\nClustering Methods:\nhierarchical kmeans pam\n\nCluster sizes:\n2 3 4 5 6 7 8 9 10\n\nValidation Measures:\n2 3 4 5 6 7 8 9 10\n\nhierarchical Connectivity 0.0000 0.0000 0.0000 0.0000 7.1282 15.9175 22.5294 31.2492 40.2722\nDunn 0.5540 0.5549 0.7343 4.8416 0.2231 0.2231 0.2231 0.1954 0.2164\nSilhouette 0.4550 0.5963 0.7720 0.9217 0.8270 0.7231 0.6168 0.5082 0.4024\nkmeans Connectivity 0.0000 0.0000 0.0000 0.0000 7.1282 15.9175 24.8421 33.5619 41.6754\nDunn 0.5540 0.5549 0.7343 4.8416 0.2231 0.2231 0.2231 0.1954 0.2164\nSilhouette 0.4550 0.5963 0.7720 0.9217 0.8270 0.7231 0.6167 0.5080 0.4090\npam Connectivity 0.0000 0.0000 11.7115 0.0000 9.2127 19.0353 20.7353 29.3425 37.4560\nDunn 0.3960 0.3960 0.0278 4.8416 0.1665 0.1550 0.1550 0.1559 0.1559\nSilhouette 0.4180 0.5369 0.6844 0.9217 0.8196 0.7060 0.7430 0.6460 0.5469\n\nOptimal Scores:\n\nScore Method Clusters\nConnectivity 0.0000 hierarchical 2\nDunn 4.8416 hierarchical 5\nSilhouette 0.9217 hierarchical 5\n```\n\nThe summary provides us with three different metrics for three different clustering approaches using a range of k values. Based on the Dunn and Silhouette indices, we should set k to five, which is what we expected (great!). We can visualise the table above.\n\n```library(dplyr)\nlibrary(ggplot2)\nlibrary(reshape2)\nlibrary(cowplot)\nmy_plot <- list()\nfor(i in my_clvalid@measNames){\np <- as.data.frame(my_clvalid@measures[i, ,]) %>%\ntibble::rownames_to_column(var = \"cluster\") %>%\nmutate(cluster = factor(cluster, levels = as.numeric(cluster))) %>%\nmelt() %>%\nggplot(., aes(x = cluster, y = value, colour = variable, group = variable)) +\ngeom_line() +\ngeom_point() +\ntheme_bw() +\nggtitle(i)\nmy_plot[[i]] <- p\n}\n\nplot_grid(plotlist = my_plot, nrow = 1)\n```", null, "Now we’ll test the NbClust package but using only the k-means algorithm and using the same range of k‘s as clValid.\n\n```my_nbclust <- NbClust(data = my_df, method = \"kmeans\", min.nc = 2, max.nc = 10)\n\n# I've excluded the plots\n*** : The Hubert index is a graphical method of determining the number of clusters.\nIn the plot of Hubert index, we seek a significant knee that corresponds to a\nsignificant increase of the value of the measure i.e the significant peak in Hubert\nindex second differences plot.\n\n*** : The D index is a graphical method of determining the number of clusters.\nIn the plot of D index, we seek a significant knee (the significant peak in Dindex\nsecond differences plot) that corresponds to a significant increase of the value of\nthe measure.\n\n*******************************************************************\n* Among all indices:\n* 4 proposed 2 as the best number of clusters\n* 5 proposed 3 as the best number of clusters\n* 1 proposed 4 as the best number of clusters\n* 1 proposed 5 as the best number of clusters\n* 11 proposed 6 as the best number of clusters\n* 1 proposed 9 as the best number of clusters\n\n***** Conclusion *****\n\n* According to the majority rule, the best number of clusters is 6\n\n*******************************************************************\n```\n\nThe conclusion is that k should be six when I expected five. This was when I started to investigate what was wrong; I started by comparing the Dunn indices returned by both packages.\n\n```# clValid package\nmy_clvalid@measures[\"Dunn\",,\"kmeans\"]\n2 3 4 5 6 7 8 9 10\n0.5540189 0.5548707 0.7342586 4.8415855 0.2230769 0.2230769 0.2230769 0.1953682 0.2163502\n\n# NbClust package\nmy_nbclust\\$All.index[, \"Dunn\"]\n2 3 4 5 6 7 8 9 10\n0.5445 0.5339 0.0173 0.0322 0.2165 0.2178 0.1953 0.1675 0.1945\n```\n\nI expected to see the highest Dunn index at k = 5 but this was not the case for the NbClust package. I then looked at the source code of the packages. As it turns out, clValid does not simply perform k-means clustering; it uses hierarchical clustering first to determine starting points. Here’s the link to the code, which I also show below:\n\n```# hclust is used prior to performing kmeans\nkmeans = {\nclusterObj <- vector(\"list\",length=length(nClust))\nnames(clusterObj) <- nClust\nclusterObjInit <- hclust(Dist,method)\n},\n```\n\nIf we examine the source code of NbClust, we see that the k-means step is carried out differently, using most of the default parameters.\n\n``` { set.seed(1)\npp2 <- kmeans(Xnew, ClassNr, 100)\\$cluster\n}\n```\n\nSince a seed was used, we can replicate the k-means clustering step.\n\n```set.seed(1)\nmy_kmeans <- kmeans(x = my_df, centers = 5, iter.max = 100)\nplot(my_df, col = my_kmeans\\$cluster, pch = 16)\npoints(my_kmeans\\$centers, pch = 4)\n```", null, "Not an ideal clustering of our dataset.\n\nIn the plot, I display the centres of each cluster, which were initialised randomly and adjusted until convergence. It turns out that the properties of my dataset (having four clouds of points on the extremities that are equidistant from the centre) results in different clustering results depending on the random initialisation of the centres. (The extra hierarchical clustering step performed by clValid prior to k-means clustering was very useful in this case.) Below I plot the results of 10 different k-means clustering results (performed by setting different seeds).\n\n```my_plot <- list()\nfor(i in 1:10){\nset.seed(i)\nmy_kmeans <- kmeans(x = my_df, centers = 5, iter.max = 100)\nmy_tmp <- cbind(my_df, cluster = factor(my_kmeans\\$cluster))\np <- ggplot() +\ngeom_point(data = my_tmp, aes(x, y, colour = cluster)) +\ngeom_point(data = as.data.frame(my_kmeans\\$centers), aes(x, y), shape = 4, size = 4) +\ntheme(legend.position = \"none\", axis.title = element_blank())\nmy_plot[[i]] <- p\n}\n\nggsave(filename = \"kmeans_seed.png\",\nplot = plot_grid(plotlist = my_plot, nrow = 2),\nwidth = 10,\nheight = 5)\n```", null, "Four out of ten times, the k-means clustering result converged on the ideal clustering of our dataset. This is where the nstart parameter comes in useful; by default this is set to one, which means only one random run is performed, and this was the value used by NbClust. If we set this to ten, we should see the ideal clustering result each time since the best result is returned.\n\n```my_plot <- list()\nfor(i in 1:10){\nset.seed(i)\nmy_kmeans <- kmeans(x = my_df, centers = 5, iter.max = 100, nstart = 10)\nmy_tmp <- cbind(my_df, cluster = factor(my_kmeans\\$cluster))\np <- ggplot() +\ngeom_point(data = my_tmp, aes(x, y, colour = cluster)) +\ngeom_point(data = as.data.frame(my_kmeans\\$centers), aes(x, y), shape = 4, size = 4) +\ntheme(legend.position = \"none\", axis.title = element_blank())\nmy_plot[[i]] <- p\n}\n\nggsave(filename = \"kmeans_nstart.png\",\nplot = plot_grid(plotlist = my_plot, nrow = 2),\nwidth = 10,\nheight = 5)\n```\n\nFinally, if I perform the same clustering as the NbClust package (by setting the seed to 1), the Dunn indices are identical between the two packages.\n\n```my_nbclust <- NbClust(data = my_df, method = \"kmeans\", min.nc = 2, max.nc = 10)\n\ndi <- vector()\nfor(k in 2:10){\nset.seed(1)\nmy_kmeans <- kmeans(x = my_df, centers = k, iter.max = 100)\n# the dunn function is from the clValid package\nmy_di <- dunn(clusters = my_kmeans\\$cluster, Data = my_df)\ndi <- append(di, round(my_di, 4))\n}\n\nmy_nbclust\\$All.index[, \"Dunn\"]\n2 3 4 5 6 7 8 9 10\n0.5445 0.5339 0.0173 0.0322 0.2165 0.2178 0.1953 0.1675 0.1945\n\nnames(di) <- 2:10\ndi\n2 3 4 5 6 7 8 9 10\n0.5445 0.5339 0.0173 0.0322 0.2165 0.2178 0.1953 0.1675 0.1945\n```\n\n## Summary\n\nI like to test new tools for two main reasons:\n\n1. I want to see if it works as expected\n\nTypically, I generate a simple dataset to use as input to a tool and compare the results with my expectations. In this post, the NbClust results were not consistent with my expectations, since I expected five clusters instead of six as the optimal result. This led me towards finding out that the clValid function did not simply carry out k-means clustering and had an additional hierarchical clustering step (which was stated in the article describing clValid). This additional step was quite useful as illustrated by the results of NbClust, where the points were clustered sub-optimally.\n\nTo conclude, I firmly believe that we should always scrutinise the tools that we use because they may not work in the way we expect.", null, ".\n1.", null, "Mikhail Dozmorov says:\n\n> Never ever trust your tools (or data).\nSecond that. Cannot emphasize more, and always tell everyone never assume that things will work as expected, always test.\n\nA piece of code how to use NbClust is missing, here it is: `my_nbclust <- NbClust(data = my_df, method = \"kmeans\")`\n\n1.", null, "Davo says:\n\nThanks Mikhail! I’ve included the missing line.\n\n2.", null, "Dario says:\n\n> generate a simple dataset to use as input to a tool and compare the results with my expectations\n\nSimple but clever. I’ve just realized how much this method helps to understand how a tool works.\nI’ll try to follow this approach in the future.\nThanks\n\nThis site uses Akismet to reduce spam. Learn how your comment data is processed." ]
[ null, "https://davetang.org/muse/wp-content/uploads/2019/01/cluster_clvalid-1024x384.png", null, "https://davetang.org/muse/wp-content/uploads/2019/01/kmeans.png", null, "https://davetang.org/muse/wp-content/uploads/2019/01/kmeans_seed-1024x512.png", null, "https://i.creativecommons.org/l/by/4.0/88x31.png", null, "https://secure.gravatar.com/avatar/af3855ce9ea7fc950d65023681f85439", null, "https://secure.gravatar.com/avatar/1b5b1de348fd8b8b94ee32affcd8e49e", null, "https://secure.gravatar.com/avatar/42d1ec30087440180709a12d8b5d0abf", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7694771,"math_prob":0.97823304,"size":10584,"snap":"2019-51-2020-05","text_gpt3_token_len":3135,"char_repetition_ratio":0.12504725,"word_repetition_ratio":0.2246928,"special_character_ratio":0.34873393,"punctuation_ratio":0.16635774,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99465686,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"im_url_duplicate_count":[null,2,null,2,null,2,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-12-14T00:48:50Z\",\"WARC-Record-ID\":\"<urn:uuid:63707428-5aa0-4944-bec4-f3967da178d4>\",\"Content-Length\":\"83198\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c7eee342-4c80-4263-9ac0-645cc71fe3b5>\",\"WARC-Concurrent-To\":\"<urn:uuid:efb07f59-f97f-4dcc-acbb-7e71cd995632>\",\"WARC-IP-Address\":\"206.221.178.50\",\"WARC-Target-URI\":\"https://davetang.org/muse/2019/01/23/the-golden-rule-of-bioinformatics/\",\"WARC-Payload-Digest\":\"sha1:RPCF63Q7RHLTYIVWMTWCPF74QRHHJUJY\",\"WARC-Block-Digest\":\"sha1:L4YIO46XLNWWHTOHIRYWA6OYFANEXNQJ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-51/CC-MAIN-2019-51_segments_1575540569332.20_warc_CC-MAIN-20191213230200-20191214014200-00248.warc.gz\"}"}
https://journalofeconomicstructures.springeropen.com/articles/10.1186/s40008-018-0110-6
[ "The Official Journal of the Pan-Pacific Association of Input-Output Studies (PAPAIOS)\n\n# Does consistency with detailed national data matter for calculating carbon footprints with global multi-regional input–output tables? A comparative analysis for Belgium based on a structural decomposition\n\n## Abstract\n\nConsistency with detailed national data is an important challenge when using multi-regional input–output (MRIO) tables for carbon footprint analysis at the national level. This article presents carbon footprint calculations for Belgium with original and adapted MRIO tables from the World Input–Output Database (WIOD) project. For constructing the adapted tables, we have reproduced the MRIO construction process of WIOD replacing source data for Belgium by detailed supply-and-use table data from national sources and keeping these unchanged in the balancing phase. The novelty of our approach is that we investigate a time series and analyse the differences in results with respect to the original tables using structural decomposition analysis (SDA). According to our calculations, Belgium’s carbon footprint is up to 15% lower than in calculations based on the original WIOD MRIO tables. The SDA reveals that this is largely due to differences in data on import uses and taxes and subsidies. Hence, consistency with detailed national data does indeed matter for MRIO-based carbon footprint calculations. Therefore, we advocate building global MRIO tables by incorporating a maximum of detailed national data in close cooperation with national statistical institutes before letting the balancing process work freely.\n\n## Introduction\n\nInternational climate negotiations have up to now been based on emission inventories for greenhouse gases (GHG), thereby attributing responsibility to the producing country. However, this attribution may be distorted by emissions embodied in international trade. Indeed, even with identical consumption levels and profiles, countries importing emission-intensive commodities will have lower production-related GHG emissions than countries exporting such commodities. This has motivated the development of consumption-based GHG emission accounting to calculate carbon footprints. But although the carbon footprint is advocated as a key indicator by international institutions (e.g. UNECE 2017) and considered as an official statistic in the UK (see Wiedmann and Barrett 2013; Defra 2017), the method and data for its calculation must be sufficiently robust if it is to be used as a tool for climate policy (Kanemoto et al. 2012).\n\nConsumption-based GHG emission accounts are established using environmentally extended input–output (IO) models. Data availability has been the main issue faced by researchers when trying to establish robust consumption-based emission accounts (Wiedmann et al. 2007; Hoekstra 2010), conditioning the type of IO models that they have used. Early contributions to this literature were almost all restricted to national IO tables relying on a single country input–output (SRIO) model and the domestic technology assumption (DTA) for import flows (e.g. Kondo et al. 1998; Munksgaard and Pedersen 2001; Mäenpää and Siikavirta 2007). But this conveys an unrealistic picture of foreign emission intensities and production technology and excludes any trade links between other countries. A global multi-regional input–output (MRIO) model is to be preferred for calculating footprints (Turner et al. 2007) as emissions embodied in trade between other countries are adequately measured and feedback loops accounted for. Several global MRIO databases (Eora, EXIOBASE, WIOD, OECD ICIOs, GTAP-MRIOT, GRAM, IDE-JETRO’s AIIOT) have been developed since the mid-2000s through the efforts of different consortia of academic researchers (see Tukker and Dietzenbacher 2013, for an overview). They have been used to calculate carbon footprints for large panels of countries (e.g. Peters et al. 2012; Arto et al. 2012; Tukker et al. 2014).\n\nEven though the development of global MRIO databases constitutes a major step towards greater robustness of consumption-based GHG emission accounts, it has not settled all issues. The mere fact that several global MRIO databases have been created in parallel reflects differences in many aspects of the construction process, e.g. the degree of harmonisation of underlying data or the approach to reconciling conflicting data sources. As emphasised by Tukker and Dietzenbacher (2013), “[d]epending on choices, assumptions and perceptions of which data seem most reliable, one will arrive—with certain limits—at different but equally plausible ‘mappings of the world economy’” (p. 14). As a consequence, carbon footprint results for individual countries vary between MRIO databases.Footnote 1 This constitutes a first potential hindrance for the adoption of MRIO-based carbon footprint calculations at the national level.\n\nIn this context, divergence with respect to published national data is another important challenge. In general, MRIO databases ensure consistency with national accounts aggregates, i.e. industry-level output and value added, and are based on national supply-and-use tables or IO tables as a starting point. Nonetheless, the reconciliation of conflicting data sources in MRIO construction entails the “need for significant transformation of data originally validated in national statistical systems” that “makes it difficult for the National Statistical Institutes to build [G]MRIO tables themselves or even participate in their building” (Tukker and Dietzenbacher 2013, p. 7). Therefore, to promote the acceptance of MRIO-based carbon footprints at the national level, there is the need to address the demand for consistency with more detailed national data within the MRIO framework.\n\nOnly very few MRIO-based footprint analyses focused on individual countries address the issue of consistency. For calculating the UK’s carbon footprint, a specific UKMRIO is built, which combines national IO tables for the UK with data from the Eora MRIO tables (see Owen et al. 2017). The issue has been addressed most thoroughly for the Netherlands in Edens et al. (2015). They have reproduced World Input–Output Database (WIOD) MRIO tables for 2003 and 2009 that fully respect national accounts and trade data for the Netherlands and used them to calculate the country’s carbon footprint, which turns out lower than in calculations based on the original WIOD MRIO tables.Footnote 2\n\nThe aim of the work presented here is to provide further insights into the issue of the consistency of MRIO tables with detailed national accounts data in carbon footprint calculations. This should not be interpreted as a criticism of the work of the consortia that have constructed MRIO tables, but rather as an attempt to see whether including additional national data in the MRIO construction process can contribute to increasing the robustness of carbon footprint results for an individual country. We also want to analyse how footprint results are influenced by the transformation of national data in the course of the MRIO construction process. For this purpose, we estimate Belgium’s carbon footprint with MRIO tables into which we have integrated detailed data from Belgian supply-and-use tables (including valuation tables and the import use table). As a first step, we rebuild WIOD MRIO tables for all years from 1995 to 2007 along the lines of what Edens et al. (2015) have done for the Netherlands, injecting data from a series of temporally consistent supply-and-use tables for Belgium (Avonds et al. 2012). We refer to these tables as WIODBEL MRIO tables. As a second step, we compare Belgium’s carbon footprint based on the original WIOD MRIO tables with the country’s carbon footprint based on WIODBEL MRIO tables for the years 1995–2007. Hence, compared to Edens et al. (2015) we observe not only differences in carbon footprint levels but also differences in the trend over time. Moreover, we analyse the difference between WIOD and WIODBEL carbon footprints for Belgium by means of structural decomposition analysis (SDA), identifying to what extent differences in emission intensities, input structure, and imports and exports contribute to differences in footprint results.\n\nThis article is organised as follows. We start off by comparing national data with WIOD data for Belgium in Sect. 2 and then describe in Sect. 3 how the WIODBEL MRIO tables are built with data for Belgium from national sources. Section 4 presents the carbon footprint calculations and results. The structural decomposition analysis comparing WIOD and WIODBEL carbon footprints for Belgium is developed in Sect. 5. Finally, Sect. 6 provides a discussion of results and conclusions.\n\n## Comparing national data with WIOD data for Belgium\n\nThe main advantage of using an MRIO database rather than only national data for calculating a country’s carbon footprint and emissions embodied in trade is that it allows to avoid unrealistic assumptions about foreign technology. However, data for individual countries in MRIO databases differ from (official) national data. This was first pointed out by Wilting (2012) and then analysed in detail in Edens et al. (2015). Discrepancies with respect to national data are due to differences in source data and adjustments made in the construction process of the multi-regional tables.\n\nHere, we compare Belgian SUT from national sources with SUT for Belgium used in the construction of the World Input–Output Database (WIOD). On the one hand, we take data from the UpdateSUT project of the Belgian Federal Planning Bureau (FPB) as the national reference data (see Avonds et al. 2012, for the methodology). The project consisted in revising and updating Belgian SUT for the years 1995–2007 so as to produce a time series of SUT consistent with the then most recent national accounts (NA) vintage (November 2010). On the other hand, we have chosen WIOD among the available MRIO databases for the same reasons as Edens et al. (2015): because it largely respects countries’ national accounts totals, because the WIOD MRIO tables are derived from supply-and-use tables (SUT), because of its open source character whereby the SUT and final result MRIO tables are freely available on the WIOD website, and because it contains a time series of MRIO tables. EXIOBASE2 also fulfils the first three criteria, but only contains data for 2007.Footnote 3 Dietzenbacher et al. (2013) provides a detailed description of the construction process of the first vintage of the WIOD MRIO tables released in 2012. They are industry-by-industry tables consistent with SNA93 for 1995–2009Footnote 4 covering 40 countries (among which Belgium) and a “rest of the world” (RoW) region, and 35 industries in a classification derived from Nace Rev. 1.1. The underlying product-by-industry SUT contain 59 product categories that correspond to the 2-digit CPA.Footnote 5\n\nThe MRIO construction process in WIOD is summarised in flow chart form on the left-hand side of Fig. 1. Source data for Belgium comprise national SUT taken from Eurostat for the years 1995, 1997 and 1999–2007 as well as NA data (output and expenditure) from the OECD’s STAN database (see Erumban et al. 2012, p. 6). While the NA data are available in a consistent time series, i.e. data for all years respecting the same and then most recent NA vintage, the SUT have not been revised. Dietzenbacher et al. (2013) describe the process of harmonising and subsequently benchmarking countries’ SUT to the revised NA and of interpolation to complete the SUT time series for missing years. To obtain use tables in basic prices, valuation tables for trade and transport margins and taxes minus subsidies on products were estimated by the WIOD consortium. The distribution of margins and net taxes over use categories is largely proportional. As a further step, bilateral trade was derived from detailed product-level trade data from COMTRADE, and it was used to construct the import part of the use tables with a split by country of origin.Footnote 6 Therefore, the so-called international supply-and-use tables (IntSUT) were obtained. In parallel, the bilateral trade data also served to estimate international trade margins (ITM) based on the difference between “cost-insurance-freight” (cif) and “free on board” (fob) valuation of mirror import and export flows. In the next stage, the IntSUT were then combined for all countries in the database in a world SUT that was completed by the estimation of (trade and internal) flows for the RoW. The industry-by-industry MRIO table was then derived from this world SUT based on the fixed product sales structure assumption.Footnote 7\n\nThe UpdateSUT project started from the original non-revised Belgian SUT published by the Belgian National Accounts Institute (NAI). Valuation tables for margins, taxes and subsidies as well as import use tables were available for the IO benchmark years, all estimated in the process of deriving IO tables. Avonds et al. (2007) provide detail on methods for constructing tables for missing years (1996 and 1998), revising tables so that they respect the common NA vintage and estimating the valuation and import use tables for non-benchmark years.\n\nThese differences in source data with respect to what is available and done at the national level should not be considered as a shortcoming of the WIOD MRIO construction process. Access to national firm-level data is largely restricted due to confidentiality considerations. Hence, the pledge of the WIOD consortium to use only publicly available data (Dietzenbacher et al. 2013) seems sensible. Moreover, even if national firm-level data were available, it would not make sense for the construction of MRIO tables to redo work that has already been done at the national level. Closer cooperation between those who construct MRIO tables and national statistical institutes for the exchange of data could be a way forward in this context, in particular as regards import use tables and valuation tables. Eurostat has initiated such a process for the construction of its European MRIO tables (Figaro project).Footnote 10\n\nIt is useful from a national perspective to examine differences between national data and MRIO data for Belgium to get a grasp of where discrepancies in the results of analytical applications, e.g. footprint calculations, come from. In Tables 1, 2, 3 and 4, we compare the Belgian IntSUT for 2005 from WIOD with the same year’s SUT from UpdateSUT. The values of the latter have been converted to USD at the rate used in WIOD. For ease of presentation, the tables are aggregated to a two-industry-two-product (manufacturing and servicesFootnote 11) format. Use tables are in basic prices. The tables confirm that WIOD does indeed largely respect the NA totals. The values of total output and value added are identical in the WIOD IntSUT for Belgium and the UpdateSUT tables, and the difference in total domestic final demand is negligible. Total imports and exports are almost identical in purchasers’ prices, but in basic prices both are lower in WIOD than in UpdateSUT. The difference is approximately 10 billion USD in both cases and originates from a valuation (c.i.f.–f.o.b.)Footnote 12 correction applied in WIOD. The NA consistency of WIOD also holds at a more detailed industry level (WIOD classification) and for all domestic final demand categories. The distribution of output over product categories is also very similar in the supply tables (Tables 1, 2).\n\nThere are larger discrepancies in the product distribution of intermediate and domestic final demand in the use tables in basic prices (Tables 3, 4). They are partly due to differences in the valuation tables for taxes and subsidies.Footnote 13 Although the totals are identical, there are large and from 2003 onwards growing differences in the distribution of other taxes and subsidies on production (TXSP) over industries and domestic final demand in the use tables (see Fig. 2). As they are subtracted from uses in purchaser prices for conversion to basic prices, they make for a large part of the differences in the product distribution of intermediate and final demand.\n\nAnother major difference between WIOD and UpdateSUT concerns re-exports. This difference matters because re-exports are excluded when deriving MRIO tables, i.e. only exports of domestic origin and imports that are not re-exported are taken into account. While values for total exports and imports (including re-exports) are relatively similar in the two datasets, the estimation of re-exports yields substantially different results due to differences in source data and methodology as explained above. For 2005, re-exports amount to 37 billion USD in WIOD, whereas in UpdateSUT they amount to 81 billion USD.Footnote 14 Figure 3 shows that there is indeed a sizeable difference in the estimation of re-exports for Belgium between WIOD and UpdateSUT for all years between 1995 and 2007. It amounts to almost 30 billion USD in 1995, is relatively stable at that level until 2003 and then grows to more than 50 billion USD in 2007.Footnote 15 As re-exports are subtracted from both exports and imports, the trade balance remains unchanged.\n\n## WIODBEL methodology and results\n\nThe results of the comparison of the WIOD IntSUT for Belgium with national data (UpdateSUT tables) have prompted us to produce alternative WIOD MRIO tables that are consistent with national data for Belgium and which we refer to as WIODBEL. For this purpose, we proceed in two steps (see right-hand side of Fig. 1). First, we replace the WIOD IntSUT for Belgium by tables in the same format based on data from UpdateSUT and a specifically computed distribution of imports over countries of origin. Moreover, we also distribute Belgian exports from UpdateSUT over destination countries. Second, we estimate flows for the RoW and build world SUT from the IntSUT keeping data for Belgium unchanged. The industry-by-industry WIODBEL MRIO tables are then derived from the world SUT following the standard method (fixed product sales structure assumption).\n\nBefore injecting UpdateSUT-based Belgian national data (IntSUT and exports) into WIOD, some preliminary work on the UpdateSUT data was required:\n\n• Supply-and-use tables from the UpdateSUT project in EUR were converted to USD at the exchange rates used by WIOD.\n\n• Imports and exports from the UpdateSUT project’s supply-and-use tables were distributed over countries of origin and destination. To determine the distributions, we rely on 8-digit Combined Nomenclature merchandise trade data in national concept for goods and on service trade data by EBOPS category matched to the CPA-based WIOD product categories.Footnote 16\n\n• Supply-and-use tables from the UpdateSUT project were aggregated from a work format breakdown (approximately 120 industries and 320 product categories) to the level of 2-digit Nace Rev.1.1 and CPA, i.e. 59 industries and product categories. Data for Belgium are thus slightly more disaggregated at the industry level than in the original WIOD IntSUT (35 industries).\n\nTo make sure that we obtain results comparable to the original WIOD MRIO tables, we first implemented the construction procedure with the original WIOD IntSUT for Belgium and all other countries. Data for Belgium were allowed to change in this procedure (see Fig. 1). Just like Edens et al. (2015) for the Netherlands, we tried to match the WIOD construction procedure as described in Timmer et al. (2012) as closely as possible.Footnote 17 We refer to this as WIOD redone. Our results are reasonably close to the original WIOD MRIO tables. Row and column totals are identical and the mean cell-wise absolute difference over all years amounts to 0.6 million USD with the main differences occurring in domestic flows for the RoW region.Footnote 18 In what follows, WIOD redone (rather than the original WIOD) will be used as basis for comparing results so as to maintain a methodological consistency.\n\nFor deriving the WIODBEL MRIO tables, we then injected Belgian national data and re-implemented the construction procedure keeping data for Belgium unchanged. This yields results that are relatively close to WIOD redone. While there are only minor discrepancies in the row totals and none in the column totals, the internal structure of the tables for Belgium is different. The overall mean cell-wise absolute difference between the WIODBEL and WIOD redone MRIO tables amounts to 0.2 million USD over all years, and for all flows involving Belgium it stands at 3.7 million USD.\n\n## Carbon footprint calculations\n\nFor calculating carbon footprints and emissions embodied in trade for Belgium, we use a multi-regional input–output (MRIO) model with data from WIOD and WIODBEL MRIO tables. The tables provide information for all countries on how exports are used in the destination country. In what follows, we briefly derive and explain formulas for these calculations and then report results for Belgium.\n\n### The model\n\nAlthough in practice there are many countries in an MRIO model, it can be conveniently illustrated for two countries (see Serrano and Dietzenbacher 2010): the focal country, which is Belgium in our case, and the RoW region. There are i = 1,…, n industries in Belgium. The RoW encompasses all other countries in the WIOD MRIO tables (including the WIOD RoW). There are n industries in each of these countries, so the RoW contains (m-1)n industries where m is the number of countries in WIOD. The standard input–output demand equation indicating output delivered to intermediate and final demand can be written in partitioned form. In all submatrices and subvectors with two superscript indices, the first one stands for the country of origin and the second one for the country of destination.\n\n$$\\left( {\\begin{array}{*{20}c} {{\\mathbf{x}}^{1} } \\\\ {{\\mathbf{x}}^{2} } \\\\ \\end{array} } \\right) = \\left[ {\\begin{array}{*{20}c} {{\\mathbf{Z}}^{11} } & {{\\mathbf{Z}}^{12} } \\\\ {{\\mathbf{Z}}^{21} } & {{\\mathbf{Z}}^{22} } \\\\ \\end{array} } \\right]{\\varvec{\\upiota}} + \\left( {\\begin{array}{*{20}c} {{\\mathbf{y}}^{11} + {\\mathbf{y}}^{12} } \\\\ {{\\mathbf{y}}^{21} + {\\mathbf{y}}^{22} } \\\\ \\end{array} } \\right)$$\n(1)\n\nHere, $${\\mathbf{x}}^{1}$$ is the (n × 1) output vector for Belgium, $${\\mathbf{x}}^{2}$$ is the ((m − 1)n × 1) output vector of the RoW, $${\\mathbf{Z}}^{11}$$ and $${\\mathbf{Z}}^{22}$$ are the (n × n) and ((m − 1)n × (m − 1)n) domestic intermediate demand matrices of the two countries, $${\\mathbf{Z}}^{12}$$ and $${\\mathbf{Z}}^{21}$$ are the (n × (m − 1)n) and ((m − 1)n × n) imported intermediate demand matrices, $${\\varvec{\\upiota}}$$ is a (mn × 1) vector of 1’s for summation, $${\\mathbf{y}}^{11} + {\\mathbf{y}}^{12}$$ is the (n × 1) final demand vector for Belgian outputFootnote 19 and $${\\mathbf{y}}^{21} + {\\mathbf{y}}^{22}$$ is the ((m − 1)n × 1) final demand vector for RoW output.Footnote 20 Defining partitioned input requirement matrices as $$\\left[ {\\begin{array}{*{20}c} {{\\mathbf{A}}^{11} } & {{\\mathbf{A}}^{12} } \\\\ {{\\mathbf{A}}^{21} } & {{\\mathbf{A}}^{22} } \\\\ \\end{array} } \\right] = \\left[ {\\begin{array}{*{20}c} {{\\mathbf{Z}}^{11} } & {{\\mathbf{Z}}^{12} } \\\\ {{\\mathbf{Z}}^{21} } & {{\\mathbf{Z}}^{22} } \\\\ \\end{array} } \\right]\\left( {\\begin{array}{*{20}c} {\\left( {{\\hat{\\mathbf{x}}}^{1} } \\right)^{ - 1} } \\\\ {\\left( {{\\hat{\\mathbf{x}}}^{2} } \\right)^{ - 1} } \\\\ \\end{array} } \\right)$$, this can be rewritten as:\n\n$$\\left( {\\begin{array}{*{20}c} {{\\mathbf{x}}^{1} } \\\\ {{\\mathbf{x}}^{2} } \\\\ \\end{array} } \\right) = \\left[ {\\begin{array}{*{20}c} {{\\mathbf{A}}^{11} } & {{\\mathbf{A}}^{12} } \\\\ {{\\mathbf{A}}^{21} } & {{\\mathbf{A}}^{22} } \\\\ \\end{array} } \\right]\\left( {\\begin{array}{*{20}c} {{\\mathbf{x}}^{1} } \\\\ {{\\mathbf{x}}^{2} } \\\\ \\end{array} } \\right) + \\left( {\\begin{array}{*{20}c} {{\\mathbf{y}}^{11} + {\\mathbf{y}}^{12} } \\\\ {{\\mathbf{y}}^{21} + {\\mathbf{y}}^{22} } \\\\ \\end{array} } \\right)$$\n(2)\n\nand transformed into (with $${\\mathbf{I}}$$ representing an identity matrix of appropriate size):\n\n$$\\left( {\\begin{array}{*{20}c} {{\\mathbf{x}}^{1} } \\\\ {{\\mathbf{x}}^{2} } \\\\ \\end{array} } \\right) = \\left[ {\\begin{array}{*{20}c} {{\\mathbf{L}}^{11} } & {{\\mathbf{L}}^{12} } \\\\ {{\\mathbf{L}}^{21} } & {{\\mathbf{L}}^{22} } \\\\ \\end{array} } \\right]\\left( {\\begin{array}{*{20}c} {{\\mathbf{y}}^{11} + {\\mathbf{y}}^{12} } \\\\ {{\\mathbf{y}}^{21} + {\\mathbf{y}}^{22} } \\\\ \\end{array} } \\right)\\quad {\\text{with}}\\quad \\left[ {\\begin{array}{*{20}c} {{\\mathbf{L}}^{11} } & {{\\mathbf{L}}^{12} } \\\\ {{\\mathbf{L}}^{21} } & {{\\mathbf{L}}^{22} } \\\\ \\end{array} } \\right] = \\left( {\\left[ {\\begin{array}{*{20}c} {\\mathbf{I}} & 0 \\\\ 0 & {\\mathbf{I}} \\\\ \\end{array} } \\right] - \\left[ {\\begin{array}{*{20}c} {{\\mathbf{A}}^{11} } & {{\\mathbf{A}}^{12} } \\\\ {{\\mathbf{A}}^{21} } & {{\\mathbf{A}}^{22} } \\\\ \\end{array} } \\right]} \\right)^{ - 1}$$\n(3)\n\nwhere the $${\\mathbf{L}}$$-matrices are the partitioned Leontief inverse matrices. This equation links output to final demand. An industry’s output (one element of vector $$\\left( {\\begin{array}{*{20}c} {{\\mathbf{x}}^{1} } \\\\ {{\\mathbf{x}}^{2} } \\\\ \\end{array} } \\right)$$) is generated to serve (domestic or foreign) final demand either directly or indirectly through intermediate input deliveries to other industries at home or abroad.\n\nAt this stage, we introduce greenhouse gas emissions into the model defining the vectors $${\\mathbf{p}}^{1}$$ and $${\\mathbf{p}}^{2}$$ as production-related emissions by industry, respectively, in Belgium and the RoW, and the scalars $$p^{1}$$ and $$p^{2}$$ as country-wide production-related emissions, which correspond to the sum of all elements of, respectively, vectors $${\\mathbf{p}}^{1}$$ and $${\\mathbf{p}}^{2}$$. At the industry level, emission intensities are described by the vectors $${\\mathbf{w}}^{1} = {\\mathbf{p}}^{1} \\left( {{\\hat{\\mathbf{x}}}^{1} } \\right)^{ - 1}$$ and $${\\mathbf{w}}^{2} = {\\mathbf{p}}^{2} \\left( {{\\hat{\\mathbf{x}}}^{2} } \\right)^{ - 1}$$. Then, the Leontief inverse matrices premultiplied by the diagonalised emission intensity vectors yield the emission multiplier matrices. Take for example $${\\hat{\\mathbf{w}}}^{1} {\\mathbf{L}}^{12}$$. Any element $$\\left( {{\\hat{\\mathbf{w}}}^{1} {\\mathbf{L}}^{12} } \\right)_{{{\\mathbf{ij}}}}$$ represents (direct and indirect) emissions by industry i in Belgium for satisfying final demand for output of industry j in another country (RoW). The full production chain is taken into account: final demand for output of industry j in RoW leads, in a first step, to industry j sourcing intermediate inputs from its suppliers, among which industry i in Belgium. In a second step, all the industries supplying j will require, for their extra output, intermediate inputs from their supplying industries among which i. And so on. This gives rise to emissions: direct emissions in the production for final demand and indirect emissions in the different stages of intermediate input production.\n\nFor Belgium, production-based emissions are then:\n\n$$p^{1} = {\\mathbf{w}}^{{1^{ '} }} {\\mathbf{L}}^{11} {\\mathbf{y}}^{11} + {\\mathbf{w}}^{{1^{ '} }} {\\mathbf{L}}^{12} {\\mathbf{y}}^{21} + {\\mathbf{w}}^{{1^{ '} }} {\\mathbf{L}}^{11} {\\mathbf{y}}^{12} + {\\mathbf{w}}^{{1^{ '} }} {\\mathbf{L}}^{12} {\\mathbf{y}}^{22}$$\n(4)\n\nBelgium’s consumption-based emissions, i.e. its carbon footprint $$c^{1}$$, emissions embodied in exports and imports ($$eex^{1}$$ and $$eem^{1}$$), and balance of emissions embodied in trade ($$beet^{1}$$) are:\n\n\\begin{aligned} c^{1} & = {\\mathbf{w}}^{1 '} {\\mathbf{L}}^{11} {\\mathbf{y}}^{11} + {\\mathbf{w}}^{1 '} {\\mathbf{L}}^{12} {\\mathbf{y}}^{21} + {\\mathbf{w}}^{2 '} {\\mathbf{L}}^{21} {\\mathbf{y}}^{11} + {\\mathbf{w}}^{2 '} {\\mathbf{L}}^{22} {\\mathbf{y}}^{21} \\\\ eex^{1} & = {\\mathbf{w}}^{1 '} {\\mathbf{L}}^{11} {\\mathbf{y}}^{12} + {\\mathbf{w}}^{2 '} {\\mathbf{L}}^{21} {\\mathbf{y}}^{12} + {\\mathbf{w}}^{1 '} {\\mathbf{L}}^{12} {\\mathbf{y}}^{21} + {\\mathbf{w}}^{1 '} {\\mathbf{L}}^{12} {\\mathbf{y}}^{22} \\\\ eem^{1} & = {\\mathbf{w}}^{2 '} {\\mathbf{L}}^{22} {\\mathbf{y}}^{21} + {\\mathbf{w}}^{1 '} {\\mathbf{L}}^{12} {\\mathbf{y}}^{21} + {\\mathbf{w}}^{2 '} {\\mathbf{L}}^{21} {\\mathbf{y}}^{11} + {\\mathbf{w}}^{2 '} {\\mathbf{L}}^{21} {\\mathbf{y}}^{12} \\\\ beet^{1} & = {\\mathbf{w}}^{1 '} \\left\\{ {{\\mathbf{L}}^{11} {\\mathbf{y}}^{12} + {\\mathbf{L}}^{12} {\\mathbf{y}}^{22} } \\right\\} - {\\mathbf{w}}^{2 '} \\left\\{ {{\\mathbf{L}}^{21} {\\mathbf{y}}^{11} + {\\mathbf{L}}^{22} {\\mathbf{y}}^{21} } \\right\\} \\\\ \\end{aligned}\n(5)\n\nBelgium’s footprint comprises all (direct and indirect) domestic and foreign emissions for satisfying Belgian final demand. Emissions embodied in Belgian exports can be domestic emissions and also foreign emissions. They comprise three elements: domestic direct and indirect emissions for satisfying the RoW’s final demand for Belgian output (exports for final demand), foreign indirect emissions for satisfying this same final demand (exports for final demand), and domestic indirect emissions for satisfying (all) final demand for the RoW’s output (exports for intermediate demand). It is easy to verify that the difference between production-based and consumption-based emissions corresponds to the balance of emissions embodied in trade for Belgium.\n\n### Results for Belgium\n\nThere are few prior calculations of the CO2 or GHG footprint (c) and the balance of CO2 or GHG emissions embodied in trade (beet) for Belgium in the literature. Sissoko and Vandille (2008) have calculated CO2-emissions embodied in Belgian trade over 1995–2004 based on a single-region input–output model. According to their results, Belgium is a net exporter of CO2-emissions over this entire period. This strongly contrasts with Belgium’s consumption-based CO2-emissions calculated with MRIO tables, which always largely exceed production-based emissions. Peters and Hertwich (2008) find a carbon footprint of 181.9 Mt CO2 in 2001 for Belgium based on data from the GTAP-MRIO database. According to calculations by Tukker et al. (2014) with EXIOBASE, Belgium’s carbon footprint amounted to 174.9 Mt CO2 in 2007. Finally, Arto et al. (2012) report a GHG footprint of 184 Mt CO2-eq. in 2007 for Belgium based on data from WIOD.Footnote 21\n\nHere, we first look at CO2 footprints and emissions embodied in trade for Belgium and then add CH4 and N2O later for results in terms of a GHG index. For WIODBEL, we take national data on CO2-emissions for Belgium from the country’s air emission accounts (AEA).Footnote 22 The emission levels are actually very close to those published by WIOD for Belgium, both overall and at the industry level. We exclude direct emissions of households, which amount to approximately 30 Mt CO2 and are relatively stable over the entire period.\n\nFigure 4 provides an overview of Belgium’s carbon footprint calculated with different MRIO tables. All results cover the years 1995–2007. Belgium’s carbon footprint based on the original WIOD MRIO tables is very close to the one based on the WIOD redone MRIO tables. Therefore, we only report the latter.Footnote 23 Total production-based emissions (p) from the national AEA excluding direct household emissions are also shown. They amount to 100 Mt CO2 in 1995 and remain relatively stable over the entire period with a slight downturn at the end. Based on the WIOD redone MRIO tables, we find a carbon footprint that stands at 105 Mt CO2 in 1995 and remains relatively stable until 2002. It starts to grow fast from 2003 onwards reaching a peak of 133 Mt CO2 in 2006. The results based on the WIODBEL MRIO tables are relatively similar until 2000 both in levels and in the trend over time. From 2002 onwards, the WIODBEL carbon footprint rises just like the WIOD redone carbon footprint but at a slower pace. It reaches its peak at 121 Mt CO2 in 2005. Hence, there is a gap between the WIODBEL and the WIOD redone footprint from 2001 onwards, the WIOD redone footprint being higher than the WIODBEL footprint.\n\nThe results can also be presented in terms of the balance of emissions embodied in trade (beet). A positive balance means that Belgium is a net exporter of emissions and a negative balance means that Belgium is a net importer of emissions. Recall that the beet is equal to the difference between production-based emissions and consumption-based emissions. The carbon footprints calculated with both WIODBEL and WIOD redone data exceed production-based emissions for all years except 1997 and 1998. Hence, these results suggest that Belgium has a negative balance of CO2-emissions embodied in trade over almost the entire period (see Fig. 5), i.e. is mostly a net importer of CO2. The negative beet increases in absolute value in the early 2000s amounting to 20–30% of production-based emissions. Figure 5 also shows results for the beet calculated with national IO tables in a single-region IO model (SRIO), which are equivalent to those reported in Sissoko and Vandille (2008).Footnote 24 According to these results, Belgium is a net exporter of emissions in all years except 2005 and 2006.\n\nFurthermore, we can test for aggregation bias in the footprint results given that compared to WIOD we have a more detailed industry breakdown for Belgium in the WIODBEL MRIO tables. Carbon footprints calculated with data from aggregated tables are always higher. The aggregation bias is between 2 and 3% (of results for disaggregated tables) in all sample years.\n\nFinally, we have also computed GHG footprints and GHG emissions embodied in trade. Expressed in CO2-equivalents (CO2-eq.), the GHG index we use here is based on the global warming potential of CO2, CH4 (methane) and N2O (nitrous oxide).Footnote 25 The results are reported in Figs. 6 and 7. As before, Belgian production-based GHG emissions come from the country’s AEA. Again they are very close in levels to WIOD emission data. The results on GHG footprints and emissions embodied in trade for Belgium are very similar to the results with CO2-emissions only. MRIO-based GHG footprints exceed production-based GHG emissions for all sample years without any exception.\n\n## Structural decomposition analysis of WIOD and WIODBEL footprints\n\nIn order to shed more light on the difference in footprint results for Belgium based on WIODBEL MRIO tables and on WIOD redone MRIO tables, we compare the two by means of a structural decomposition analysis (SDA). From a methodological point of view, this is an SDA to compare two different databases, which makes it different from a standard intertemporal SDA.Footnote 26 Our approach is comparable to prior use of SDA for comparing carbon footprints calculated with different MRIO databases. Owen et al. (2014) do so for GTAP, WIOD and Eora and Arto et al. (2014) for WIOD and GTAP. These authors compare carbon footprints for all countries in the global MRIO tables, while we specifically focus on Belgium. It is noteworthy that Owen et al. (2014) find that the differences in footprint results between MRIO databases are biggest for Belgium. In our SDA formulation, we look at the effects of differences in emission intensities, input structures and final demand to get an idea of how the consistency with Belgian national data in WIODBEL influences footprint results with respect to WIOD redone. We specifically isolate differences for Belgium. Note that in this SDA, contributions of particular differences between WIODBEL and WIOD redone, e.g. in re-exports and valuation tables, to footprint results are only identified indirectly through the effects of differences in input structures, final demand and emission intensities.\n\nWe start from the expression for calculating the carbon footprint for Belgium (c1 in Eq. (5)). We add subscript index $$s$$ for the dataset used in the calculation—either WIODBEL or WIOD redone—and rewrite it as follows:\n\n$$c_{s}^{1} = {\\mathbf{w}}_{{\\mathbf{s}}}^{ '} {\\mathbf{L}}_{{\\mathbf{s}}} {\\mathbf{y}}_{{\\mathbf{s}}}^{.1} = \\left( {\\begin{array}{*{20}c} {{\\mathbf{w}}_{{\\mathbf{s}}}^{1} } \\\\ {{\\mathbf{w}}_{{\\mathbf{s}}}^{2} } \\\\ \\end{array} } \\right)^{ '} \\left[ {\\begin{array}{*{20}c} {{\\mathbf{L}}_{{\\mathbf{s}}}^{11} } & {{\\mathbf{L}}_{{\\mathbf{s}}}^{12} } \\\\ {{\\mathbf{L}}_{{\\mathbf{s}}}^{21} } & {{\\mathbf{L}}_{{\\mathbf{s}}}^{22} } \\\\ \\end{array} } \\right]\\left( {\\begin{array}{*{20}c} {{\\mathbf{y}}_{{\\mathbf{s}}}^{11} } \\\\ {{\\mathbf{y}}_{{\\mathbf{s}}}^{21} } \\\\ \\end{array} } \\right)$$\n(6)\n\nThis is the footprint calculation for 1 year. We compare the WIODBEL footprint ($$s = b$$) and the WIOD redone footprint ($$s = r$$) for Belgium for each sample year.\n\n$$\\Delta c^{1} = c_{b}^{1} - c_{r}^{1} = {\\mathbf{w}}_{{\\mathbf{b}}}^{ '} {\\mathbf{L}}_{{\\mathbf{b}}} {\\mathbf{y}}_{{\\mathbf{b}}}^{.1} - {\\mathbf{w}}_{{\\mathbf{r}}}^{ '} {\\mathbf{L}}_{{\\mathbf{r}}} {\\mathbf{y}}_{{\\mathbf{r}}}^{.1}$$\n(7)\n\nTo determine contributions of differences in the three terms on the right-hand side ($$\\Delta {\\mathbf{w}}^{ '}$$, $$\\Delta {\\mathbf{L}}$$, $$\\Delta {\\mathbf{y}}^{.1}$$) to the difference in footprints ($$\\Delta c^{1} )$$, we apply the Sun (1998) decomposition formula, which is based on a linear interpolation of a Paasche and a Laspeyres index.Footnote 27 There are three effects:\n\n$$\\Delta c^{1} = d_{w} + d_{L} + d_{y}$$\n(8)\n\nHere, $$d_{w}$$ is the contribution of differences in emission intensities to the difference in footprints between WIODBEL and WIOD redone, $$d_{L}$$ is the contribution of differences in the Leontief inverse matrix, and $$d_{y}$$ the contribution of differences in Belgian final demand.\n\n\\begin{aligned} d_{w} & = \\Delta {\\mathbf{w}}^{ '} {\\mathbf{L}}_{{\\mathbf{r}}} {\\mathbf{y}}_{{\\mathbf{r}}}^{.1} + \\frac{1}{2}\\Delta {\\mathbf{w}}^{ '} \\Delta {\\mathbf{Ly}}_{{\\mathbf{r}}}^{.1} + \\frac{1}{2}\\Delta {\\mathbf{w}}^{ '} {\\mathbf{L}}_{{\\mathbf{r}}} \\Delta {\\mathbf{y}}^{.1} + \\frac{1}{3}\\Delta {\\mathbf{w}}^{ '} \\Delta {\\mathbf{L}}\\Delta {\\mathbf{y}}^{.1} \\\\ d_{L} & = {\\mathbf{w}}_{{\\mathbf{r}}}^{ '} \\Delta {\\mathbf{Ly}}_{{\\mathbf{r}}}^{.1} + \\frac{1}{2}\\Delta {\\mathbf{w}}^{ '} \\Delta {\\mathbf{Ly}}_{{\\mathbf{r}}}^{.1} + \\frac{1}{2}{\\mathbf{w}}_{{\\mathbf{r}}}^{ '} \\Delta {\\mathbf{L}}\\Delta {\\mathbf{y}}^{.1} + \\frac{1}{3}\\Delta {\\mathbf{w}}^{ '} \\Delta {\\mathbf{L}}\\Delta {\\mathbf{y}}^{.1} \\\\ d_{y} & = {\\mathbf{w}}_{{\\mathbf{r}}}^{ '} {\\mathbf{L}}_{{\\mathbf{r}}} \\Delta {\\mathbf{y}}^{.1} + \\frac{1}{2}\\Delta {\\mathbf{w}}^{ '} {\\mathbf{L}}_{{\\mathbf{r}}} \\Delta {\\mathbf{y}}^{.1} + \\frac{1}{2}{\\mathbf{w}}_{{\\mathbf{r}}}^{ '} \\Delta {\\mathbf{L}}\\Delta {\\mathbf{y}}^{.1} + \\frac{1}{3}\\Delta {\\mathbf{w}}^{ '} \\Delta {\\mathbf{L}}\\Delta {\\mathbf{y}}^{.1} \\\\ \\end{aligned}\n(9)\n\nWe further decompose these effects to isolate changes in data for Belgium. For $$d_{w}$$, this is not necessary as the only difference in emission intensities between WIODBEL and WIOD redone is in the data for Belgium. For $$d_{y}$$, we split Belgian final demand into final demand for domestic output and imported final demand, i.e. Belgian final demand for foreign output. This comes down to additively splitting the variation in Belgian final demand into two terms:\n\n$$\\Delta {\\mathbf{y}}^{.1} = \\left( {\\begin{array}{*{20}c} {\\Delta {\\mathbf{y}}^{11} } \\\\ {\\Delta {\\mathbf{y}}^{21} } \\\\ \\end{array} } \\right) = \\left( {\\begin{array}{*{20}c} {\\Delta {\\mathbf{y}}^{11} } \\\\ 0 \\\\ \\end{array} } \\right) + \\left( {\\begin{array}{*{20}c} 0 \\\\ {\\Delta {\\mathbf{y}}^{21} } \\\\ \\end{array} } \\right) = \\Delta {\\mathbf{y}}_{{\\mathbf{d}}}^{.1} + \\Delta {\\mathbf{y}}_{{\\mathbf{m}}}^{.1}$$\n(10)\n\nand deriving two final demand effects: $$d_{y\\_d}$$ and $$d_{y\\_m}$$. They measure the contributions of differences in Belgian final demand for domestic and foreign output.\n\nFor splitting $$d_{L}$$, we rely on the standard formula that links differences in the Leontief inverse to differences in the input requirement matrices (see Miller and Blair 2009, pp. 602–603): $$\\Delta {\\mathbf{L}} = {\\mathbf{L}}_{{\\mathbf{r}}} \\Delta {\\mathbf{AL}}_{{\\mathbf{b}}}$$ with $$\\Delta {\\mathbf{A}} = {\\mathbf{A}}_{{\\mathbf{b}}} - {\\mathbf{A}}_{{\\mathbf{r}}}$$. We specifically isolate terms for Belgium in $$\\Delta {\\mathbf{A}}$$:\n\n\\begin{aligned} \\Delta {\\mathbf{A}} & = \\Delta {\\mathbf{A}}_{{{\\mathbf{bel}}\\_{\\mathbf{d}}}} + \\Delta {\\mathbf{A}}_{{{\\mathbf{bel}}\\_{\\mathbf{m}}}} + \\Delta {\\mathbf{A}}_{{{\\mathbf{bel}}\\_{\\mathbf{x}}}} + \\Delta {\\mathbf{A}}_{{{\\mathbf{nbel}}}} \\\\ & = \\left[ {\\begin{array}{*{20}c} {\\Delta {\\mathbf{A}}^{11} } & 0 \\\\ 0 & 0 \\\\ \\end{array} } \\right] + \\left[ {\\begin{array}{*{20}c} 0 & 0 \\\\ {\\Delta {\\mathbf{A}}^{21} } & 0 \\\\ \\end{array} } \\right] + \\left[ {\\begin{array}{*{20}c} 0 & {\\Delta {\\mathbf{A}}^{12} } \\\\ 0 & 0 \\\\ \\end{array} } \\right] + \\left[ {\\begin{array}{*{20}c} 0 & 0 \\\\ 0 & {\\Delta {\\mathbf{A}}^{22} } \\\\ \\end{array} } \\right] \\\\ \\end{aligned}\n(11)\n\nThis yields four effects: $$d_{L\\_bel\\_d}$$, $$d_{L\\_bel\\_m}$$, $$d_{L\\_bel\\_x}$$ and $$d_{L\\_nbel}$$. They measure contributions of differences in input requirements to differences in the carbon footprint via the Leontief effect: the first one measures contributions of differences in Belgian domestic input requirements, the second one of differences in Belgian imported input requirements, the third one of differences in foreign input requirements for Belgian output, and the last one of differences in foreign input requirements for output of all other countries. The latter two only have an indirect effect on the Belgian carbon footprint.\n\nThus, expanding (8) we have the following effects in our SDA:\n\n$$\\Delta c^{1} = \\underbrace {{d_{w} }}_{(1)} + \\underbrace {{d_{L\\_bel\\_d} }}_{(2)} + \\underbrace {{d_{L\\_bel\\_m} }}_{(3)} + \\underbrace {{d_{L\\_bel\\_x} }}_{(4)} + \\underbrace {{d_{L\\_nbel} }}_{(5)} + \\underbrace {{d_{y\\_d} }}_{(6)} + \\underbrace {{d_{y\\_m} }}_{(7)}$$\n(12)\n1. 1.\n\nEmission intensity effect\n\n2. 2.\n\nBelgian domestic input requirements effect\n\n3. 3.\n\nBelgian imported input requirements effect\n\n4. 4.\n\nForeign input requirements effect for Belgian output (exports)\n\n5. 5.\n\nForeign input requirements effect for all other output\n\n6. 6.\n\nBelgian domestic final demand effect\n\n7. 7.\n\nBelgian imported final demand effect.\n\nThe difference between the carbon footprint for Belgium based on WIODBEL and on WIOD redone is reported as a line in Fig. 8. It is relatively small during the first half of the sample period, never exceeding 5 Mt CO2 in absolute value or 5% of production-based CO2–emissions. From 2002 onwards, it becomes negative and sizeable, i.e. the WIOD redone footprint largely exceeds the WIODBEL footprint. The difference is largest in absolute value in 2004 when it amounts to 15 Mt CO2 or 15% of Belgium’s production-based emissions.\n\nThe bar chart part of Fig. 8 shows the decomposition results for the three effects of Eq. (8) for each year.Footnote 28 The emission intensity effect is very small and its influence on the overall difference between the two footprints can be neglected. Between 1995 and 2001, the Leontief effect is positive, i.e. the differences in intermediate input requirements between WIODBEL and WIOD redone lead to a higher carbon footprint for WIODBEL. The opposite holds for differences in final demand, i.e. the final demand effect is negative over the period 1995–2001. Overall, the two effects compensate more or less so that the difference between the WIODBEL footprint and the WIOD redone footprint remains small. From 2002 onwards, the Leontief effect becomes negative in all years except for 2005. The final demand effect is negative over the entire period 2002–2007 and increases in absolute value. Thus, differences in intermediate input requirements and, in particular, differences in final demand contribute to our finding that the WIODBEL-based carbon footprint for Belgium is lower between 2002 and 2007.\n\nThe compensation between the final demand effect and the Leontief effect between 1995 and 2001 can be partly attributed to differences in the distribution of taxes and subsidies on production over intermediate and final demand: a larger share of taxes and subsidies on production is subtracted from final demand in WIODBEL than in WIOD redone (see Fig. 2). Hence, Belgian final demand in basic prices is globally higher in WIOD redone, which leads to a negative final demand effect, and Belgian intermediate demand is globally higher in WIODBEL, which leads to a positive Leontief effect.\n\nThe extra decomposition terms in Eq. (12), which are specifically focused on differences in data for Belgium, provide further insights into where the difference between WIODBEL and WIOD redone carbon footprints comes from. In Fig. 9, we have summed effects so as to highlight how much of the difference in Belgium’s footprints is due to differences in Belgian domestic demand (domestic effect) and to differences in Belgian imports (import effect). The domestic effect is the sum of the Belgian domestic input requirements effect ($${\\text{d}}_{{{\\text{L}}\\_{\\text{bel}}\\_{\\text{d}}}}$$) and the Belgian domestic final demand effect ($${\\text{d}}_{{{\\text{y}}\\_{\\text{d}}}}$$), and the import effect is the sum of the Belgian imported input requirements effect ($${\\text{d}}_{{{\\text{L}}\\_{\\text{bel}}\\_{\\text{m}}}}$$) and the Belgian domestic final demand effect ($${\\text{d}}_{{{\\text{y}}\\_{\\text{m}}}}$$). The other three effects ($${\\text{d}}_{\\text{w}}$$, $${\\text{d}}_{{{\\text{L}}\\_{\\text{bel}}\\_{\\text{x}}}}$$ and $${\\text{d}}_{{{\\text{L}}\\_{\\text{nbel}}}}$$), which all turn out to be small, are aggregated into one term (“other effects”).\n\nThe domestic effect is positive (higher WIODBEL carbon footprint) and relatively stable at 15–20 Mt CO2 over the entire period. The import effect is negative and amounts to approximately 15–20 Mt CO2 in absolute value between 1995 and 2001 leading to a rather small overall difference in footprints for those years. From 2002 onwards, the import effect grows in absolute value to reach 34 Mt CO2 in 2004. Hence, for the years 2002–2007, it more than compensates the positive domestic effect so that the difference between the WIODBEL and the WIOD redone footprint is negative. This is related to the increase in the difference in Belgian re-exports between WIODBEL and WIOD redone from 2002 onwards (see Fig. 3).\n\n## Discussion and conclusions\n\nIn this article, we have compared carbon footprint results for Belgium for the years 1995–2007 calculated with original WIOD MRIO tables and modified WIODBEL MRIO tables. We have built the latter by reproducing the construction process of MRIO tables in the WIOD project replacing source data for Belgium used by the WIOD consortium by data from detailed supply-and-use tables from national sources. Subsequently, we keep data for Belgium unchanged in the construction process.\n\nBelgium’s carbon footprint based on WIODBEL tables amounts to 138 Mt CO2-eq. in 1995 and 145 Mt CO2-eq. in 2007 (total GHG emissions excluding direct emissions of householdsFootnote 29). This is substantially higher than production-based GHG emissions which stand at 121 Mt CO2-eq. in 1995 and 110 Mt CO2-eq. in 2007. Hence, according to our calculations with WIODBEL tables, Belgium is a net importer of GHG emissions over the entire period.Footnote 30 From 2002 onwards, the original WIOD-based footprint is systematically higher than the WIODBEL-based footprint. The difference quickly becomes sizeable: it amounts to 14% on average between 2003 and 2007. The original WIOD footprint increased by 15% between 1995 and 2007, whereas the WIODBEL footprint only grew by 5% over the same period. According to the results of our decomposition analysis, this difference in footprint results can be attributed to a large extent to the growing difference in the estimated magnitude of Belgium’s re-exports, which are higher in WIODBEL than in the original WIOD tables. Since re-exports are subtracted from imports in the MRIO construction process, Belgium’s imports are globally lower in WIODBEL, which leads to a lower carbon footprint. Hence, original WIOD tables tend to overestimate the Belgium’s carbon footprint, confirming prior findings for the Netherlands for 2003 and 2009 (Edens et al. 2015).\n\nAlthough calculations of carbon footprints and emissions embodied in international trade based on MRIO tables are mainly used in analyses that take a global perspective, the adoption of MRIO tables for footprint analysis at the national level should not be neglected with a view to promoting carbon footprints as a climate policy tool. In this context, our work with WIOD tables shows that the consistency of MRIO tables with detailed data from national sources is an issue, in particular for a small open economy like Belgium. To foster the acceptance of footprint results at the national level, we believe that it would be beneficial for such an MRIO construction process to accommodate the desire to respect detailed data from national sources while limiting the workload of the process and avoiding hindrances to global balancing of the tables. With regard to an MRIO construction process based on supply-and-use tables for individual countries like in WIOD, it would, in our view, be worthwhile considering the integration of as much detailed material from national statistical offices (NSIs) as possible for all countries up to valuation tables and import use tables. Indeed, our work for Belgium with WIOD tables has shown that differences in valuation tables and import use tables make for differences in footprint results. If these tables are not publicly available, then NSIs should make them available to those who construct MRIO tables. Finally, keeping data fixed for an individual country in the subsequent balancing stage of the MRIO construction process is not feasible when it comes to building tables for more than just one country. In summary, we suggest building global MRIO tables by incorporating a maximum of detailed data from national sources in close cooperation with NSIs before letting the balancing process work freely.\n\n## Availability of data and materials\n\nAll data from the WIOD project that have been used in our calculations are publicly available on the projects website (www.wiod.org). The detailed Belgian supply-and-use tables from the UpdateSUT project are confidential at the workformat level of disaggregation. The WIODBEL tables that we have used for the footprint calculations (same industry breakdown as the original WIOD MRIO tables) can be obtained upon request from the authors.\n\n1. 1.\n\nHoekstra et al. (2014) provide a detailed account of potential sources of variation in MRIO-based carbon footprint calculations.\n\n2. 2.\n\nAlthough the OECD recommends implementing analyses according to the procedure of Edens et al. (2015) for the Netherlands (see OECD 2017), there is concern about the workload of this procedure. In particular, Moran et al. (2017) take a different perspective on the consistency issue. They show that feedback loops in MRIO-based footprint calculations are small and argue that it is therefore sufficient to combine national tables and MRIO-based multipliers to calculate a footprint for an individual country that is consistent with national data.\n\n3. 3.\n\nNote that the OECD ICIO’s, which can be downloaded for free, respect national accounts totals and cover several years, were not available yet when we started this project.\n\n4. 4.\n\nThe time coverage of the first vintage of WIOD MRIO tables was subsequently extended to more recent years. Here, we restrict WIOD data to 1995–2007 to match the period covered by UpdateSUT.\n\n5. 5.\n\nCPA stands for Statistical Classification of Products by Activity in the European Economic Community. Here, the CPA version of 2002 is used.\n\n6. 6.\n\nIn this procedure, different use categories (intermediate inputs, final consumption and investment) were considered separately along the lines of the Broad Economic Categories (BEC) classification of trade.\n\n7. 7.\n\nDietzenbacher et al. (2013) provide a WIOD-specific explanation of this last step, while Eurostat (2008) is the standard methodological reference for this transformation.\n\n8. 8.\n\nIO benchmark years are 1995, 2000 and 2005. The use tables for imports are interpolated for all other years in UpdateSUT.\n\n9. 9.\n\nEBOPS stands for Extended Balance Of Payments Services classification.\n\n10. 10.\n\nValuation tables (for margins and taxes and subsidies) as well as import use tables are publicly available for Belgium for input–output reference years. The Belgian Federal Planning Bureau has provided these tables for non-reference years to Eurostat for the needs of the Figaro project for constructing European MRIO tables.\n\n11. 11.\n\nIn 2-digit NACE Rev. 1.1, ‘manufacturing’ as reported in Tables 1, 2, 3 and 4 corresponds to industries 01–45 and services to 50–95, i.e. construction is part of ‘manufacturing’. The equivalent split-up in terms of the WIOD classification is AtB-F and 50-P.\n\n12. 12.\n\nIn the valuation of trade data, c.i.f. stands for cost, insurance and freight, and f.o.b. for free on board.\n\n13. 13.\n\nValuation tables for trade and transport margins are also likely to differ in the two databases, but as data on trade and transport margins other than international trade and transport margins (ITM) is not explicitly reported by WIOD, a comparison of these valuation tables with UpdateSUT was not possible.\n\n14. 14.\n\nBy definition, services cannot be re-exported. Hence, re-exports are only goods. The small amount of re-exports in the ‘services’ product category in Table 4 is due to certain goods that are part of merchandise trade statistics but classified in service categories in the CPA 2002 because they are closely linked to specific service categories, e.g., architectural plans and drawings, music (printed or in manuscript) and original works of art.\n\n15. 15.\n\nThe increase in re-exports is likely to be related to several of the main drivers of the growth in trade flows in the early 2000s. The rise of global value chains and China’s WTO accession in 2001 (see Los et al. 2015) has probably contributed to increasing the amount of goods dispatched to other European countries through Belgium, in particular the port of Antwerp. The introduction of the euro has probably acted as a facilitator for re-exports.\n\n16. 16.\n\nWe distribute Belgian exports over use categories in the country of destination according to the countries’ imports from Belgium reported in WIOD.\n\n17. 17.\n\nAll these calculations were done in LArray, a Python module developed at the FPB. The module and code can be made available upon request.\n\n18. 18.\n\nAn exact replication of the construction procedure is not possible just based on descriptive sources without getting a view of the original code. Even though the description in Timmer et al. (2012) is fairly detailed, it does not shed light upon all problems that come up in the course of the construction process. For sure, there are some methodological differences in our estimation of flows for the RoW compared to the original, e.g., the treatment of negative exports that are the counterpart of changes in inventories and the treatment of product flow imbalances for uranium and thorium ores. These differences have repercussions for domestic flows of the RoW.\n\n19. 19.\n\nWe do not consider the individual final demand categories (household consumption, government consumption) separately but only total final demand.\n\n20. 20.\n\nBold capital letters are used for matrices, bold lowercase letters for column vectors and letters in italics for scalars. A prime indicates transposition and a circumflex diagonalization of a vector.\n\n21. 21.\n\nNote that all these results include direct emissions by households, which amount to approximately 30 Mt CO2. As a reference, production-based CO2-emissions for Belgium (including direct emissions by households) amount to 131 Mt in 2001 and 124 Mt in 2007, and production-based GHG emissions stand at 141 Mt CO2-eq. in 2007 in the Belgian AEA.\n\n22. 22.\n\nSee Vandille and Janssen (2012) for a methodological description.\n\n23. 23.\n\nResults based on the original WIOD MRIO tables are available upon request.\n\n24. 24.\n\nThe small differences in results come from differences in the data due to NA revisions.\n\n25. 25.\n\nDue to a lack of emission data in WIOD, we restrict our GHG index to these three standard gases. In line with global warming potentials reported in IPCC (1995, p. 22), it is computed as GHG index = CO2 + 21 × CH4 + 310 × N2O.\n\n26. 26.\n\nNote that we do not require constant price data for this SDA because we compare databases and we do not analyse changes over time.\n\n27. 27.\n\nAs noted in Hoekstra et al. (2016), this is equivalent to the widely used approach of computing the average of the k! complete weight decompositions where k is the number of terms in the expression to be decomposed (Dietzenbacher and Los 1998).\n\n28. 28.\n\nThe decomposition results for GHG footprint differences are not reported but can be made available upon request. They are qualitatively equivalent to the decomposition results for the CO2 footprint.\n\n29. 29.\n\nDirect emissions of households amount to approximately 30 Mt CO2 and are relatively stable over the entire period.\n\n30. 30.\n\nThis confirms prior results based on global MRIO tables that are not consistent with the Belgium’s detailed national accounts (Peters and Hertwich 2008; Arto et al. 2012; Tukker et al. 2014). Moreover, it allows to revise the—counterintuitive—finding based on national IO tables that Belgium is a net exporter of emissions (Sissoko and Vandille 2008).\n\n## References\n\n1. Andrew R, Peters G, Lennox J (2009) Approximation and regional aggregation in multi-regional input-output analysis for national carbon footprint accounting. Econ Syst Res 21(3):311–335\n\n2. Arto I, Genty A, Rueda-Cantuche J, Villanueva A, Andreoni V (2012) Global resources use and pollution, Vol. 1/production, consumption and trade (1995–2008). Publication Office of the European Union, Luxembourg\n\n3. Arto I, Rueda-Cantuche J, Peters G (2014) Comparing the GTAP-MRIO and WIOD databases for carbon footprint analysis. Econ Syst Res 26(3):327–353\n\n4. Avonds L, Hambÿe C, Michel B (2007) Supply and use tables for Belgium 1995–2002: methodology of compilation. In: Working paper 4-07, Federal Planning Bureau, Belgium\n\n5. Avonds L, Bryon G, Hambÿe C, Hertveldt B, Michel B, Van den Cruyce B (2012) Supply and use tables and input–output tables for Belgium 1995–2007: methodology of compilation. In: Working paper 6-12, Federal Planning Bureau, Belgium\n\n6. Defra (2017) UK’s carbon footprint 1997–2013. Department for Environment, Food and Rural Affairs, UK Government (https://www.gov.uk/government/statistics/uks-carbon-footprint)\n\n7. Dietzenbacher E, Los B (1998) Structural decomposition techniques: sense and sensitivity. Econ Syst Res 10:307–324\n\n8. Dietzenbacher E, Los B, Stehrer R, Timmer M, de Vries G (2013) The construction of world input–output tables in the WIOD project. Econ Syst Res 25(1):71–98\n\n9. Edens B, Hoekstra R, Zult D, Lemmers O, Wilting H, Wu R (2015) A method to create carbon footprint estimates consistent with national accounts. Econ Syst Res 27(4):440–457\n\n10. Erumban A, Gouma R, de Vries G, de Vries K, Timmer M (2012) Sources for national supply and use table input files. http://www.wiod.org/publications/source_docs/SUT_Input_Sources.pdf\n\n11. Eurostat (2008) Eurostat manual of supply, use and input–output tables, Luxembourg\n\n12. FPB (2010) Tableaux Entrées-Sorties de la Belgique pour 2005. Federal Planning Bureau, Belgium\n\n13. Hambÿe C (2001) La matrice importée des services, unpublished, internal document. Federal Planning Bureau, Brussels\n\n14. Hoekstra R (2010) (Towards) a complete database of peer-reviewed articles on environmentally extended input-output analysis. In: Paper prepared for the 18th international input–output conference\n\n15. Hoekstra R, Edens B, Zult D, Wilting H (2014) Reducing the variation of environmental footprint estimates based on multiregional input–output databases. Sustain Account Manag Policy J 5(3):325–345\n\n16. Hoekstra R, Michel B, Suh S (2016) The emission cost of international sourcing: using structural decomposition analysis to calculate the contribution of international sourcing to CO2-emission growth. Economic Systems Research 28(2):151–167\n\n17. IPCC (1995) The science of climate change. In: Contribution of Working Group I to the Second Assessment Report of the Intergovernmental Panel on Climate Change\n\n18. Kanemoto K, Lenzen M, Peters G, Moran D, Geschke A (2012) Frameworks for comparing emissions associated with production, consumption, and international trade. Environ Sci Technol 46:172–179\n\n19. Lenzen M, Pade L, Munksgaard J (2004) CO2 multipliers in multi-region input–output models. Economic Systems Research 16(4):391–412\n\n20. Los B, Timmer M, de Vries G (2015) How global are global value chains? A new approach to measure international fragmentation. J Reg Sci 55(1):66–92\n\n21. Mäenpää I, Siikavirta H (2007) Greenhouse gases embodied in the international trade and final consumption of Finland: an input–output analysis. Energy Policy 35:128–143\n\n22. Miller R, Blair P (2009) Input output analysis: foundations and extensions. Cambridge\n\n23. Moran D, Wood R, Rodrigues J (2017) A note on the magnitude of the feedback effect in multi-region input-output tables. J Ind Ecol. https://doi.org/10.1111/jiec.12658\n\n24. NAI (2010) Statistique du commerce extérieur—Bulletin mensuel 2010–09. Publication by the National bank of Belgium on behalf of the National Accounts Institute\n\n25. OECD (2017) Using the OECD inter-country input-output database to calculate demand-based material flows: an empirical assessment. OECD work programme on environmental indicators and on green growth, 18–19 September, OECD, Paris\n\n26. Owen A, Steen-Olsen K, Barrett J, Wiedmann T, Lenzen M (2014) A structural decomposition approach to comparing MRIO databases. Econ Syst Res 26(3):262–283\n\n27. Owen A, Brockway P, Brand-Correa L, Bunse L, Sakai M, Barrett J (2017) Energy consumption-based accounts: a comparison of results using different energy extension vectors. Appl Energy 190:464–473\n\n28. Peters G, Hertwich E (2008) CO2 Embodied in international trade with implications for global climate policy. Environ Sci Technol 42(5):1401–1407\n\n29. Serrano M, Dietzenbacher E (2010) Responsibility and trade emission balances: an evaluation of approaches. Ecol Econ 69:2224–2232\n\n30. Sissoko A, Vandille G (2008) Quantifying environmental leakage for Belgium. In: Working paper 19-08, Federal Planning Bureau, Belgium\n\n31. Sun JW (1998) Changes in energy consumption and energy intensity: a complete decomposition model. Energy Economics 20:85–100\n\n32. Timmer M, Erumban A, Gouma R, Los B, Temurshoev U, de Vries G, Arto I, Andreoni V, Genty A, Neuwahl F, Rueda-Cantuche J, Villanueva A, Francois J, Pindyuk O, Pöschl J, Stehrer R, Streicher G (2012) The World Input–Output Database (WIOD): contents, sources and methods. WIOD Working Paper 10\n\n33. Tukker A, Dietzenbacher E (2013) Global multiregional input-output frameworks: an introduction and outlook. Econ Syst Res 25(1):1–19\n\n34. Tukker A, Bulavskaya T, Giljum S, de Koning A, Lutter S, Simas M, Stadler K, Wood R (2014) The global resource footprint of nations: carbon, water, land and materials embodied in trade and final consumption calculated with EXIOBASE 2.1. Booklet published for the CREEA project\n\n35. Turner K, Lenzen M, Wiedmann T, Barrett J (2007) Examining the global environmental impact of regional consumption activities—Part 1: a technical note on combining input-output and ecological footprint analysis. Ecol Econ 62:37–44\n\n36. UNECE (2017) Set of key climate change-related statistics and indicators using the System of Environmental-economic Accounting. United Nations Economic Commission for Europe, Report submitted to the Conference of European Statisticians\n\n37. Van den Cruyce B (2004) Use tables for imported goods and valuation matrices for trade margins—an integrated approach for the compilation of the Belgian 1995 input–output tables. Economic Systems Research 16(1):33–61\n\n38. Vandille G, Janssen L (2012) Comptes de l’environnement pour la Belgique—comptes économiques de l’environnement 1990–2008. Planning Paper 111, Federal Planning Bureau, Belgium\n\n39. Weber C, Matthews H (2007) Embodied environmental emissions in U.S. international Trade, 1997–2004. Environ Sci Technol 41:4875–4881\n\n40. Wiedmann T, Barrett J (2013) Policy-relevant applications of environmentally extended MRIO databases—experiences from the UK. Econ Syst Res 25(1):143–156\n\n41. Wiedmann T, Lenzen M, Turner K, Barrett J (2007) Examining the global environmental impact of regional consumption activities—Part 2: review of input–output models for the assessment of environmental impacts embodied in trade. Ecol Econ 61:15–26\n\n42. Wilting H (2012) Sensitivity and uncertainty analysis in MRIO modelling; some empirical results with regard to the Dutch carbon footprint. Econ Syst Res 24(2):141–171\n\n## Authors’ contributions\n\nCH, BH and BM carried out the data treatment and footprint calculations. BM drafted the manuscript. All authors read and approved the final manuscript.\n\n### Acknowledgements\n\nThe authors would like to thank Gaëtan de Menten, Geert Bryon and Alix Damman for their invaluable support with the Larray module that they have created for Python, and Richard Wood and two anonymous referees for their comments that have contributed to improving the article.\n\n### Competing interests\n\nThe authors declare that they have no competing interests.\n\nNot applicable.\n\n### Publisher’s Note\n\nSpringer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.\n\n## Author information\n\nAuthors\n\n### Corresponding author\n\nCorrespondence to Bernhard Michel.\n\n## Rights and permissions", null, "" ]
[ null, "https://journalofeconomicstructures.springeropen.com/track/article/10.1186/s40008-018-0110-6", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8820159,"math_prob":0.9628853,"size":62129,"snap":"2021-31-2021-39","text_gpt3_token_len":14141,"char_repetition_ratio":0.17245875,"word_repetition_ratio":0.047305197,"special_character_ratio":0.2253215,"punctuation_ratio":0.09724107,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97565293,"pos_list":[0,1,2],"im_url_duplicate_count":[null,5,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-29T01:26:50Z\",\"WARC-Record-ID\":\"<urn:uuid:4c4b8251-d89b-43c1-9638-c248d7734fbf>\",\"Content-Length\":\"305711\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5474a341-cb7a-4cc0-9c09-ee60618fa04e>\",\"WARC-Concurrent-To\":\"<urn:uuid:5ef7f5eb-92da-4a79-9d17-d4c57314b1b6>\",\"WARC-IP-Address\":\"199.232.64.95\",\"WARC-Target-URI\":\"https://journalofeconomicstructures.springeropen.com/articles/10.1186/s40008-018-0110-6\",\"WARC-Payload-Digest\":\"sha1:VU3X5WSAPDI2T4QOZEOLLZU6T6FTIWDR\",\"WARC-Block-Digest\":\"sha1:QZORO4Q6J4WKJLKVT4UYX763OZC2DDYZ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780061350.42_warc_CC-MAIN-20210929004757-20210929034757-00412.warc.gz\"}"}
https://unitconversion.io/6497-c-to-f
[ "#### Convert 6497 Celsius (C) to Fahrenheit (F)\n\nThis is our conversion tool for converting celsius to fahrenheit.\nTo use the tool, simply enter a number in any of the inputs and the converted value will automatically appear in the opposite box.\n\nC\n\n### =\n\nF\n\n#### Best conversion unit for 6497 Celsius (C)\n\nWe define the \"best\" unit to convert a number as the unit that is the lowest without going lower than 1. For 6497 celsius, the best unit to convert to is .\n\n#### Fast Conversions\n\n 1 C = F 5 C = F 10 C = F 15 C = F 25 C = F 100 C = F 1000 C = F 1 F = C 5 F = C 10 F = C 15 F = C 25 F = C 100 F = C 1000 F = C" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7039084,"math_prob":0.9982859,"size":443,"snap":"2020-34-2020-40","text_gpt3_token_len":108,"char_repetition_ratio":0.16400911,"word_repetition_ratio":0.0,"special_character_ratio":0.248307,"punctuation_ratio":0.06896552,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97804284,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-26T02:55:33Z\",\"WARC-Record-ID\":\"<urn:uuid:a87410e1-531f-4a81-8f41-649827b94b0a>\",\"Content-Length\":\"29744\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b3e8b242-e6d0-46cc-a5d6-15cda0262b44>\",\"WARC-Concurrent-To\":\"<urn:uuid:a4945784-30bf-485b-bd00-1e630cc3eb44>\",\"WARC-IP-Address\":\"50.16.49.81\",\"WARC-Target-URI\":\"https://unitconversion.io/6497-c-to-f\",\"WARC-Payload-Digest\":\"sha1:VEH6QOIOUSVMNFVXOICUW5DQYSNR3UTA\",\"WARC-Block-Digest\":\"sha1:BGV6FX22LI6R3N2O2AJIBZQDXYWUUFQM\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400232211.54_warc_CC-MAIN-20200926004805-20200926034805-00650.warc.gz\"}"}
https://www.physicsforums.com/threads/quadratic-equation-factorization-problem.705708/
[ "## Homework Statement\n\nIn the expression x2 + kx + 12, k is an integer and k < 0. Which of the following is a possible value of k?\n(A) –13\n(B) –12\n(C)  –6\n(D)   7\n\n## Homework Equations\n\nI know it uses the a.c method of factorization but don't know how to use it?\n\n## The Attempt at a Solution\n\nTried to solve it by using discriminant that is b^2 - 4ac = 0,i have only remembered the formula of that,so couldn't remember which equation will apply here...Please can anyone explain it thoroughly and correctly in lay-man's terms\n\n## The Attempt at a Solution\n\nMentallic\nHomework Helper\nThere must be more to this problem because \"k is an integer and k < 0\" being the only restriction gives us possible answers of A,B,C.\n\nCould you please write out the question exactly as you see it written?\n\nhere is the copied statement from Princeton SAT review\nIn the expression x^2 + kx + 12, k is an integer and k < 0. Which of the following is a possible value of k?\n(A) –13\n(B) –12\n(C)  –6\n(D)   7\n(E) It cannot be determined from the information given.\n\nClearly, (A), (B) and (C) are all possible values for k.\n\nTheir Answer...''To solve the question, you need to factor. This question is just a twist on the example used above. Don’t worry that we don’t know the value of k. The question said that k was an integer and that means that you probably need to consider only the integer factors of 12. The possible factors of 12 are 1 and 12, 2 and 6, and 3 and 4. Since 12 is positive and k is negative, the you’ll need subtraction signs in both factors.\nThe possibilities are:\nx2 + kx + 12 = (x – 1)(x – 12)\n\nx2 + kx + 12 = (x – 2)(x – 6)\n\nx2 + kx + 12 = (x – 3)(x – 4)\n\nIf you FOIL each of these sets of factors, you’ll get:\n(x – 1)(x – 12) = x2 –13x + 12\n\n(x – 2)(x – 6) = x2 –8x + 12\n\n(x – 3)(x – 4) = x2 –7x + 12\n\nThe correct answer is A, as −13 is the only value from above included in the answers. Of course, you didn’t need to write them all out if you started with 1 and 12 as your factors.''\n\nTheir Answer...''To solve the question, you need to factor. This question is just a twist on the example used above. Don’t worry that we don’t know the value of k. The question said that k was an integer and that means that you probably need to consider only the integer factors of 12. The possible factors of 12 are 1 and 12, 2 and 6, and 3 and 4. Since 12 is positive and k is negative, the you’ll need subtraction signs in both factors.\nThe possibilities are:\nx2 + kx + 12 = (x – 1)(x – 12)\n\nx2 + kx + 12 = (x – 2)(x – 6)\n\nx2 + kx + 12 = (x – 3)(x – 4)\n\nIf you FOIL each of these sets of factors, you’ll get:\n(x – 1)(x – 12) = x2 –13x + 12\n\n(x – 2)(x – 6) = x2 –8x + 12\n\n(x – 3)(x – 4) = x2 –7x + 12\n\nThe correct answer is A, as −13 is the only value from above included in the answers. Of course, you didn’t need to write them all out if you started with 1 and 12 as your factors.''\n\nWell, that makes no sense. I guess it's a typo and the question is incomplete. It should be\n\nIn the expression ##x^2 + kx + 12##, ##k## is an integer and ##k < 0##. If the roots of the expression are integers, then which of the following is a possible value of k?\n\nIt would be good to see \"the example above\"; but perhaps it says something about factors being integers or something. Nothing fundamentally wrong with any negative number.\n\nWell, that makes no sense. I guess it's a typo and the question is incomplete. It should be\n\nIn the expression ##x^2 + kx + 12##, ##k## is an integer and ##k < 0##. If the roots of the expression are integers, then which of the following is a possible value of k?\n\nnah it is mentioned that k is integer hence root is integer...is it the right info?\n\nIt would be good to see \"the example above\"; but perhaps it says something about factors being integers or something. Nothing fundamentally wrong with any negative number.\n\nthank you...btw can you comprehend me the meaning of that statement,want to transform in it in mathematical form...\"A Baseball team won 54 more games than it lost\"\n\nnah it is mentioned that k is integer hence root is integer...is it the right info?\n\nNot necessarily, for instance the equation $x^{2}-9x-12$ has integer k here; and roots $\\frac{9}{2}\\pm\\sqrt{\\frac{33}{2}}$\n\nLast edited:\nMentallic\nHomework Helper\nnah it is mentioned that k is integer hence root is integer...is it the right info?\n\nNo, because k=-2 is an integer but the roots of $x^2-2x+12$ are not integers. In fact, if k is any negative number other than -7,-8 or -13, then the quadratic won't have integer roots.\n\nthank you...btw can you comprehend me the meaning of that statement,want to transform in it in mathematical form...\"A Baseball team won 54 more games than it lost\"\n\nWhich part of it don't you understand? You'll also need to be more detailed with your baseball team question.\n\nNot necessarily, for instance the equation $x^{2}-9x-12$ has integer k here; and roots $\\frac{9}{2}\\pm\\sqrt{\\frac{33}{2}}$\n\nahan so -13 is surely the right answer but how to evaluate that using discriminants ?\n\nMentallic\nHomework Helper\nahan so -13 is surely the right answer but how to evaluate that using discriminants ?\n\nThe discriminant is really only helpful in telling you how many roots the quadratic has. This doesn't mean it can't be done, but it's beyond your understanding at the moment.\n\nThe discriminant is really only helpful in telling you how many roots the quadratic has. This doesn't mean it can't be done, but it's beyond your understanding at the moment.\n\nso any alternative method to solve the question\n\nMentallic\nHomework Helper\nTake each value of k given in the options and test to see if you can factorize it.\n\nCan you factorize $x^2-13x+12$ ? What about $x^2-12x+12$ ? etc.\n\nAnd obviously ignore k=7 since the question said that k<0." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9349209,"math_prob":0.99253136,"size":525,"snap":"2021-43-2021-49","text_gpt3_token_len":152,"char_repetition_ratio":0.09021113,"word_repetition_ratio":0.0,"special_character_ratio":0.29714286,"punctuation_ratio":0.09009009,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99852175,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-12-01T00:01:55Z\",\"WARC-Record-ID\":\"<urn:uuid:f61c7888-7a3f-4101-9beb-d2ce699dfcbd>\",\"Content-Length\":\"112117\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:199d7417-8309-4f7c-b669-2f6ce8f3ed5d>\",\"WARC-Concurrent-To\":\"<urn:uuid:84f8ca6f-bcd7-4a58-b0d4-21086c4e1322>\",\"WARC-IP-Address\":\"172.67.68.135\",\"WARC-Target-URI\":\"https://www.physicsforums.com/threads/quadratic-equation-factorization-problem.705708/\",\"WARC-Payload-Digest\":\"sha1:EI7SK6MVEVA2L5Q3TL6FJ4ZYC6JTWBF4\",\"WARC-Block-Digest\":\"sha1:KYNVHWYBM46VVYEOAZ5WI36B2JGTVLRG\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964359082.76_warc_CC-MAIN-20211130232232-20211201022232-00009.warc.gz\"}"}
https://www.mdpi.com/2076-3417/5/4/666/htm
[ "", null, "Next Article in Journal\nAnalysis of Losses in Open Circuit Voltage for an 18-μm Silicon Solar Cell\nPrevious Article in Journal\nStatus of the High Average Power Diode-Pumped Solid State Laser Development at HiLASE\nArticle\n\n# A Near-Hover Adaptive Attitude Control Strategy of a Ducted Fan Micro Aerial Vehicle with Actuator Dynamics\n\nCollege of Automation Engineering, Nanjing University of Aeronautics and Astronautics, 29 YuDao Street, Nanjing 210016, China\n*\nAuthor to whom correspondence should be addressed.\nAppl. Sci. 2015, 5(4), 666-681; https://doi.org/10.3390/app5040666\nReceived: 11 August 2015 / Revised: 17 September 2015 / Accepted: 23 September 2015 / Published: 28 September 2015\n\n## Abstract\n\nThe aerodynamic parameters of ducted fan micro aerial vehicles (MAVs) are difficult and expensive to precisely measure and are, therefore, not available in most cases. Furthermore, the actuator dynamics with risks of potentially destabilizing the overall system are important but often neglected consideration factors in the control system design of ducted fan MAVs. This paper presents a near-hover adaptive attitude control strategy of a prototype ducted fan MAV with actuator dynamics and without any prior information about the behavior of the MAV. The proposed strategy consists of an online parameter estimation algorithm and an adaptive gain scheduling algorithm, with the former accommodating parametric uncertainties, and the latter approximately eliminating the coupling among axes and guaranteeing the control quality of the MAV. The effectiveness of the proposed strategy is verified numerically and experimentally.\n\n## 1. Introduction\n\nThe ducted fan micro aerial vehicle (MAV) with small size and compact structure is used mainly for low-speed flight missions in addition to hover, vertical takeoff, and landing capabilities. Compared to a conventional configuration micro unmanned helicopter (MUH) or a multi-rotor craft (MRC), the ducted fan MAV is a much safer platform since its propeller is mounted inside the duct which can act as a shield to avoid the risk of injury. The MUH and MRC, however, are rather dangerous due to the exposed rotor blades.\nAlthough many related research was previously almost under stagnation, ducted fan MAVs have recently attracted great interest, such as Cypher , iSTAR9 , and HoverEye . Again, the studies have been conducted for ducted fan MAVs, mainly including multidisciplinary design optimization [4,5], system modeling [6,7,8], and control design [9,10,11,12]. As for the control design, Pflimlin systematically developed the aerodynamic model and the attitude and position control systems for a ducted fan MAV with considering the crosswind, gyroscopic coupling and unknown aerodynamics, and successfully demonstrated the proposed control strategies on the HoverEye platform [13,14]. The results of these investigations have certainly shown that the proposed control strategies, mainly based on decoupling and backstepping techniques, can significantly enhance the flight performance of the MAV with guaranteed stability. Sliding mode techniques are developed for improving the control qualities of ducted fan MAVs in [15,16], which show superior performance over classical control techniques when variations in vehicle dynamics and actuator characteristics are introduced. Spaulding adopted a nonlinear dynamic inversion method, and Chwa proposed a compensator to accommodate for the effect of the actuator dynamics. However, most of these methods heavily rely on accurate dynamic models that are difficult to obtain, and the resulting performance is deteriorated in practical applications, especially in the presence of measurement noises. Other existing methods include PID control , linear-quadratic regulator (LQR) , robust control [21,22], neural adaptive control , fuzzy control [24,25], and nonlinear feedback control , etc. The actuator dynamics, however, have not been systematically considered, derived, and applied in the control system design.\nOverall, most related studies reported in the literature are based on the assumption that the actuator dynamics are fast enough to be negligible. However, the actuators actually show limited performance in real situations and, accordingly, the control qualities would be severely degraded if the actuator dynamics are neglected.\nIn this study, a near-hover adaptive attitude control strategy is designed for a prototype ducted fan MAV. The combination of online parameter estimation and adaptive gain scheduling algorithms in the proposed strategy can accommodate parametric uncertainties and approximately eliminate the coupling among axes, which can simultaneously lead to enhance the resulting performance. The proposed strategy is tested and the results also illustrate that it can significantly improve the flight performance of the MAV.\nThis paper is organized as follows: Section 2 is devoted to the description of the attitude control problem of the prototype ducted fan MAV. The adaptive attitude control strategy of the MAV with actuator dynamics is formulated in Section 3, and experimental tests are presented in Section 4. The last section offers conclusions.\n\n## 2. The Attitude Control Problem Statement of the Prototype Ducted Fan MAV\n\nThe prototype small-size ducted fan VTOL MAV, 0.8 m in height and 0.55 m in diameter, is shown in Figure 1. A duct is formed through the fuselage, and a ducted fan is mounted to the middle portion of the fuselage. Four deflecting vanes are mounted along the longitudinal and lateral axes of symmetry below the fan to provide pitch, roll, and yaw movements. Most of the anti-torque generated by the ducted fan is compensated by the stators configured inside the duct while the remaining anti-torque is balanced by the deflecting vanes. A cent-symmetric landing gear consisting of four legs, i.e., left, right, front, back, made from glass fiber reinforced plastics is installed on the MAV.\nFigure 1. The prototype ducted fan MAV.\nFigure 1. The prototype ducted fan MAV.", null, "Ducted fan aerodynamics has been discussed in more detail in listed references. A total of four servo motors are installed on the fuselage. The movements of the servo motors can change the direction of deflecting vanes, enabling the MAV to fly in all directions (forward, backward, left, right, etc.). The movements of the left and right servo motors in the same directions can achieve pitch movement, while the movements of the front and back servo motors can achieve the roll movement. The movements of the opposite servo motors in the opposite direction can compensate the remaining anti-torque and further achieve yaw movement. Mathematically, the control allocation strategy is represented as:\n$[ δ ⌢ l δ ⌢ r δ ⌢ f δ ⌢ b ] = [ δ ⌢ p i t 2 + δ ⌢ y a w 4 δ ⌢ p i t 2 − δ ⌢ y a w 4 − δ ⌢ r o l 2 + δ ⌢ y a w 4 − δ ⌢ r o l 2 − δ ⌢ y a w 4 ]$\nThe rotational speed of the ducted fan is maneuvered by one other servo motor to provide sufficient thrust force to lift the MAV. There is a sensor unit installed on the MAV to provide the flight controller with feedback signals containing measurement noises that increase the chatter in the input signal of actuators through feedback paths.\nWe assume that the fuselage is a rigid body. The nonlinear kinematic equations can then be defined as follows:\n$X ⌢ ˙ = f ( X ⌢ , U ⌢ , Θ )$\nwhere $X ⌢ = [ u ⌢ , v ⌢ , w ⌢ , θ ⌢ , ϕ ⌢ , ψ ⌢ , q ⌢ , p ⌢ , r ⌢ ] T$ and $U ⌢ = [ δ ⌢ p i t , δ ⌢ r o l , δ ⌢ y a w , δ ⌢ r o t ] T$; $Θ$ represents the aerodynamic parameter set, which is not available in most cases.\nThe nonlinear system can be linearized near the hover flight condition and the linearized model is given by:\n$X ˙ = A X + B U$\nwhere $X = X ⌢ − X e = [ u , v , w , θ , ϕ , ψ , q , p , r ] T$ and $U = U ⌢ − U e = [ δ p i t , δ r o l , δ y a w , δ r o t ] T$. $X e$ and $U e$ are the trim state and input vectors, respectively. However the determination of the trim condition is quite complicated due to the uncertainties in $Θ$. Therefore, the estimates of $X e$ and $U e$ are, respectively, denoted by:\n$X 0 = X e + X ˜ , U 0 = U e + U ˜$\nEquation (3) should be rewritten as:\n$X ˙ = A X + B U + E$\nwhere $X = X ⌢ − X 0 , U = U ⌢ − U 0$ and $E = A X ˜ + B U ˜$. Note that $A , B$ and $E$ are also unknown.\nThe MAV is used mainly for low-speed flight missions. However, unique pendulum-like motions of the MAV naturally arise from the unique symmetrical structure. The underdamped oscillatory modes consist of pitching and rolling moving oscillations with negligible vertical motion. The phenomenon of low amplitude self-sustained pitching and horizontal moving oscillations, for example, is more likely to occur in hover mode, as shown in Figure 2. Alternating flight speed $u$ increases from zero at time $t 0$ to a maximum value at time $t 1$ in one direction, and decreases back to zero at time $t 2$; it then increases to a maximum value at time $t 3$ in the opposite direction and again decreases to zero at time $t 4$. Alternating pitch angle $θ$ changes in a similar manner, but there is a 90° phase difference between alternating pitch angle and alternating flight speed.\nFigure 2. A schematic diagram illustrating the pitching and horizontal moving oscillations.\nFigure 2. A schematic diagram illustrating the pitching and horizontal moving oscillations.", null, "The development of a near-hover flight control system for the prototype MAV to avoid pendulum-like motions and endow it with good flying qualities is still a challenge since the dynamics are fully coupled and subject to parametric uncertainties. In addition, the actuator dynamics also add complexity to the development.\n\n## 3. The Adaptive Attitude Control Strategy of the MAV with Actuator Dynamics\n\nAs the MAV is axis-symmetric, the pitch and the roll dynamics have a similar property. For this reason, this study is focused on the adaptive attitude control strategy of the pitch axis. Without loss of generality, the strategy can also apply to other axes.\n\n#### 3.1. The Online Parameter Estimation Method for the MAV\n\nReferring to Equation (5), the linearized model of the pitch axis is given by:\n$q ˙ = M u q ˙ u + M v q ˙ v + M w q ˙ w + M θ q ˙ θ + M ϕ q ˙ ϕ + M ψ q ˙ ψ + M q q ˙ q + M p q ˙ p + M r q ˙ r + M δ p i t q ˙ δ p i t + M δ r o l q ˙ δ r o l + M δ y a w q ˙ δ y a w + M δ r o t q ˙ δ r o t + τ e q ˙$\nwhere $M u q ˙ , M v q ˙ , M w q ˙ , M θ q ˙ , M ϕ q ˙ , M ψ q ˙ , M q q ˙ , M p q ˙ , M r q ˙ , M δ p i t q ˙ , M δ r o l q ˙ , M δ y a w q ˙ , M δ r o t q ˙ ∈ Θ$; $τ e q ˙$ is the corresponding element of $E$, which is added to represent the unknown trim error. Given the corresponding wind tunnel test data, there exists $M v q ˙ , M θ q ˙ , M ϕ q ˙ , M ψ q ˙ , M r q ˙ , M δ y a w q ˙ ≈ 0$. Thus, Equation (6) can be simplified as:\n$q ˙ = M u q ˙ u + M w q ˙ w + M q q ˙ q + M p q ˙ p + M δ p i t q ˙ δ p i t + M δ r o l q ˙ δ r o l + M δ r o t q ˙ δ r o t + τ e q ˙$\nFor simplicity in the design, the transfer function of the actuator is specified by the input-output relation:\n$G a ( s ) = δ p i t ( s ) δ p i t i ( s ) = 1 T a s + 1$\nIt must be pointed out, however, that the proper control system for the electric servo actuator can easily be developed by means of cascade compensation networks or an actuator compensator, and many related algorithms are available for a high-performance servo control system in the literature.\nSubstituting Equation (8) into Equation (7) yields:\n$T a q ¨ + ( 1 − T a M q q ˙ ) q ˙ − M q q ˙ q = M δ p i t q ˙ δ p i t i + M u q ˙ u d + M w q ˙ w d + M p q ˙ p d + M δ r o l q ˙ δ r o l d + M δ r o t q ˙ δ r o t d + τ e q ˙$\nwhere $T a$ and $M q q ˙$ should satisfy the following constraints:\n$1 − T a M q q ˙ > 0$\n$M q q ˙ < 0$\nwhich explicitly indicate that actuator dynamics can potentially destabilize the overall system of the MAV.\nWe now define the identification model of the system in Equation (9) as follows:\n$T a q ¨ m + a q ˙ q ˙ m + a q q m = b δ p i t δ p i t i + b u u d + b w w d + b p p d + b δ r o l δ r o l d + b δ r o t δ r o t d + b e$\nwhere the identification parameters should satisfy the following constraints:\n$a q ˙ > 0 , a q > 0$\nThe error between $q m$ and $q$ is expressed as:\n$e = q m − q$\nSubstituting Equations (9) and (11) into Equation (13) yields:\n$T a e ¨ + a q ˙ e ˙ + a q e = − Δ a q ˙ q ˙ − Δ a q q + Δ b δ p i t δ p i t i + Δ b u u d + Δ b w w d + Δ b p p d + Δ b δ r o l δ r o l d + Δ b δ r o t δ r o t d + Δ b e$\nwhere:\n${ Δ a q = a q + M q q ˙ Δ a q ˙ = a q ˙ − 1 + T a M q q ˙ Δ b u = b u − M u q ˙ Δ b w = b w − M w q ˙ Δ b p = b p − M p q ˙ Δ b δ r o l = b δ r o l − M δ r o l q ˙ Δ b δ r o t = b δ r o t − M δ r o t q ˙ Δ b e = b e − τ e q ˙$\nHowever, $u d , w d , p d , δ r o l d$ and $δ r o t d$ are also difficult to measure and are, therefore, not available. According to linear system theory, Equation (14) can then be approximately represented as:\n$T a e ¨ f + a q ˙ e ˙ f + a q e f = − Δ a q ˙ q ˙ f − Δ a q q f + Δ b δ p i t δ p i t i f + Δ b u u d f + Δ b w w d f + Δ b p p d f + Δ b δ r o l δ r o l d f + Δ b δ r o t δ r o t d f + Δ b e$\nNote that $e f , p d f , q f , u d f , w d f , δ p i t i f , δ r o l d f$ and $δ r o t d f$ become easily computable with a proper , and we return to this point later.\nConsider the Lyapunov function candidate:\n$V = T a e ˙ f 2 + a q e f 2 + Δ Τ Λ Δ$\nwhere $Δ = [ Δ a q ˙ , Δ a q , Δ b δ p i t , Δ b u , Δ b w , Δ b p , Δ b δ r o l , Δ b δ r o t , Δ b e ] Τ$, $Λ = diag ( λ q ˙ , λ q , λ δ p i t , λ u , λ w , λ p , λ δ r o l , λ δ r o t , λ e )$. We can therefore conclude that $V ˙$ is negative definite only if:\n$Δ Τ ( R f e ˙ f + Λ Κ ˙ ) ≤ 0$\nwhere $R f = [ − q ˙ f , − q f , δ p i t i f , u d f , w d f , p d f , δ r o l d f , δ r o t d f , 1 ] Τ$ and $Κ = [ a q ˙ , a q , b δ p i t , b u , b w , b p , b δ r o l , b δ r o t , b e ] Τ$. In fact, a similar reasoning can be made for the system given by Equation (14), and the global asymptotic convergence of the error $e$ is guaranteed under the constraint in Equation (18). In particular, the Constraint (18) holds if the parameter regulation algorithm is represented as:\n$Κ ˙ = − Γ R f ( e ˙ f + ε f )$\nwhere $Γ = Λ − 1 = def diag ( ρ q ˙ , ρ q , ρ δ p i t , ρ u , ρ w , ρ p , ρ δ r o l , ρ δ r o t , ρ e )$; $ε f$ is optional and satisfies the constraint as follows:\n$sgn ( ε f ) = sgn ( T a e ¨ f + a q ˙ e ˙ f + a q e f )$\nThe identification parameters can therefore quickly converge to the corresponding parameters of the plant in Equation (9), because $ε f$ is optional and can largely contribute to the convergence. To suppress the possible oscillations of identification parameters, the variation rate of $Κ$ is assumed to be bounded by the optional upper bound $ϒ$:\n$‖ Κ ˙ ‖ ∞ < ϒ$\nRemarks\ni. As for the constraint given by inequality (10), on the one hand $T a$ should be chosen small enough such that inequality (10a) holds at any time, but on the other it is necessary beforehand to add a feedback signal like $k q 0 q$ to the input signal $δ p i t i$ without any modification of the parameter regulation strategy if inequality (10b) cannot hold in some cases, where $k q 0$ is used to guarantee the stability of the plant.\nii. The importance of the proper choice of $G f ( s )$ has been mentioned above. Here we assume that:\nThus, for any variable of interest $χ$, we have:\n${ χ ˙ f = 1 T f 2 ( χ f 1 − χ f ) χ ¨ f = 1 T f 1 T f 2 ( χ − χ f 1 − χ f 2 + χ f )$\nwhere $χ f , χ f 1$ and $χ f 2$ are acted as the outputs of $G f , G f 1$ and $G f 2$ in response to $χ$, respectively. Thus, we can conclude that the adaptive laws given by Equations (19) and (20) are computable.\niii. $ε f$ can be chosen as $β ( T a e ¨ f + a q ˙ e ˙ f + a q e f ) 2 m + 1$ or $β sgn ( T a e ¨ f + a q ˙ e ˙ f + a q e f )$, etc., where $β > 0$ and $m = 0 , ± 1 , ⋯$. The deliberate choice of $ε f$ can speed up the convergence rates of identification parameters.\n\n#### 3.2. The Adaptive Gain Scheduling Algorithm\n\nTo realize the adaptation of the control gains of the plant and reduce the chatter in the input signal of the actuator, we employ the following control law:\n$δ p i t i = 1 b δ p i t { b δ p i t ∗ δ p i t c + ( a q ˙ − a q ˙ ∗ ) q ˙ m + ( a q − a q ∗ ) q m − b u u − b w w − b p p − b δ r o l δ r o l − b δ r o t δ r o t − b e }$\nwhere $b δ p i t ∗ , a q ˙ ∗$ and $a q ∗$ should be determined according to the requirements for the flying qualities and the anti-interference and anti-noise performance; $δ p i t c$ denotes the attitude control signal of the pitch axis. Note that we employ $q ˙ m , u , w , p , δ r o l , δ r o t$ rather than $q ˙ , u d , w d , p d , δ r o l d , δ r o t d$ to design the rate loop, mainly because the latter with differential calculations may increase the chatter in the input signal of the actuator in the presence of measurement noises.\nAs the identification parameters are considered to have converged sufficiently close to the corresponding parameters of the plant, the plant can be approximately expressed as:\n$T a q ¨ + a q ˙ ∗ q ˙ + a q ∗ q ≈ b δ p i t ∗ δ p i t c + δ e$\nwhere:\n$δ e = T a ( b u u ˙ + b w w ˙ + b p p ˙ + b δ r o l δ ˙ r o l + b δ r o t δ ˙ r o t )$\nAs a matter of fact, changes in $u , w , p , δ r o l$ and $δ r o t$ occur slowly and are constrained within relatively tight bounds because the MAV is used mainly for low-speed flight missions, which means $u ˙ , w ˙ , p ˙ , δ ˙ r o l$ and $δ ˙ r o t$ remain relatively small. Furthermore, $T a$ is also very small. Thus, we can conclude that $δ e$ can be negligible. Equation (25) can be further simplified to obtain:\n$T a q ¨ + a q ˙ ∗ q ˙ + a q ∗ q ≈ b δ p i t ∗ δ p i t c$\nThe combination of online parameter estimation and the adaptive gain scheduling algorithms can accommodate parametric uncertainties and eliminate the cross coupling among all axes, thus improving the control quality of the MAV. The conventional PD control law can then guarantee the attitude control performance:\n$δ p i t c = k p e θ + k d e ˙ θ$\nwhere:\n$e θ = θ c − θ$\n\n## 4. Numerical and Experimental Tests\n\nThe performance of the proposed strategy is demonstrated for the prototype ducted fan MAV. The predefined parameters are given as follows:\n(1) The time constants: $T a = 0.1$ and $T f 1 = T f 2 = 0.02$;\n(2) The desired model parameters: $a q ˙ ∗ = 1.25 , a q ∗ = 4.2 , b δ p i t ∗ = 3.0$;\n(3) The initial values of identification parameters: $a q ( 0 ) , b u ( 0 ) , b w ( 0 ) , b p ( 0 ) , b δ r o l ( 0 ) , b δ r o t ( 0 )$ and $b e ( 0 )$ are assumed to equal zero; $b δ p i t ( 0 ) = 2.2$;\n(4) The parameter estimation algorithm: $ρ q ˙ , ρ q , ρ δ p i t , ρ u , ρ w , ρ p , ρ δ r o l , ρ δ r o t , ρ e = 1.0$, $ε f = 2 ( T a e ¨ f + a q ˙ e ˙ f + a q e f )$, and $ϒ = 2.0$;\n(5) The attitude controller: $k p = 3.0 , k d = 0.3$.\nThe proposed strategy is first implemented in a numerical simulation based on the data-based dynamics model. It is then applied to the MAV to evaluate the flight performance.\n\n#### 4.1. Numerical Simulation\n\nFor the pitch axis of the MAV, the simulation is conducted to evaluate the step response performance using the data-based dynamics model in . It is illustrated from Figure 3a that the proposed strategy can achieve good dynamic performance within a short period of time even without any prior information about the behavior of the MAV. As shown in Figure 3b,c, the response of the model can match rapidly and approximately with the real response even within the first period of the square wave signal; the tracking error can remain in a bounded range for the aggressive maneuvers, which demonstrates the improved tracking accuracy in the simulation. The outputs of the roll axis caused by the coupling among axes, shown in Figure 3d,e, also remain bounded. Therefore, the proposed strategy can improve the control qualities of the MAV. Meanwhile, the parameter estimation algorithm has a good convergence property and achieves a guaranteed model reference tracking performance.\nFigure 3. Numerical simulation results of the proposed strategy. (a) $θ c$ and $θ$; (b) $q m$ and $q$; (c) $e$; (d) $ϕ$; (e) $p$; (f), (g) and (h) Identification parameters.\nFigure 3. Numerical simulation results of the proposed strategy. (a) $θ c$ and $θ$; (b) $q m$ and $q$; (c) $e$; (d) $ϕ$; (e) $p$; (f), (g) and (h) Identification parameters.", null, "#### 4.2. Near-hover Flight Tests\n\nThe control software system runs on a high performance DSP-based hardware platform (TI TMS320F28335) with a control period of 10 ms. The platform also provides a high precision timer, eight 16-bit pulse width modulation (PWM) channels for controlling the actuators of the MAV and several serial ports for data transmission and communication with external devices. The light-weight sensor unit, with an update rate of 200 Hz, includes a MEMS-based Inertial Measurement Unit (IMU), a differential GPS and an Extended Kalman Filter, which can provide a smooth position, velocity and attitude solution by fusing the measurements from the IMU and GPS. As shown in Figure 4, the near-hover flight tests are subsequently conducted to compare the performance of the proposed strategy with that of the conventional controller. For a fair comparison, all flight tests begin with hover, followed by simple way-point navigation, and the flight test data of the proposed strategy are recorded for comparison after the identification parameters reach a near-steady state. The results for a period of time from these flight tests are shown in Figure 5 and Figure 6.\nFigure 4. Flight test.\nFigure 4. Flight test.", null, "The performance of the proposed strategy is first evaluated at low speeds where a square pattern is flown. The noisy tracking error, shown in Figure 5c, is within an acceptable range. The ground track view of trajectory, shown in Figure 5g, illustrates that the proposed strategy can almost eliminate the moving oscillations during the whole test process even though there exists the significant coupling between the pitch and roll axes shown in Figure 5e. We can therefore conclude that the proposed strategy can achieve a guaranteed flight performance.\nFigure 5. Test results of the proposed strategy. (a) $θ$ and $ϕ$; (b) $q m$ and $q$; (c) $e$; (d); (e) and (f) Identification parameters; (g) The ground track view of trajectory.\nFigure 5. Test results of the proposed strategy. (a) $θ$ and $ϕ$; (b) $q m$ and $q$; (c) $e$; (d); (e) and (f) Identification parameters; (g) The ground track view of trajectory.", null, "", null, "However, the flight test results of the conventional controller implemented through the widely used Pixhawk autopilot module, shown in Figure 6, appear to deteriorate significantly, mainly because the conventional controller cannot accommodate the unknown system parameters or eliminate the coupling among axes.\nThe results also show that the variations of the attitude angles and the dynamic displacements increase significantly, and the moving oscillations are quite obvious when the MAV is commanded to perform the same flight mission. The comparison of the above two flight test results have further verified the proposed strategy performs better than the conventional controller near hover.\n\n## 5. Conclusions\n\nThis paper presents the near-hover adaptive attitude control strategy of the prototype ducted fan MAV with actuator dynamics and without any prior information about the behavior of the MAV. The proposed strategy consists of the online parameter estimation algorithm and the adaptive gain scheduling algorithm, with the former accommodating parametric uncertainties, and the latter approximately eliminating the coupling among axes and guaranteeing the control quality of the MAV, thus minimizing the moving oscillations. The numerical and experimental test results have illustrated that the proposed strategy significantly improves the control qualities of the MAV. Moreover, most existing control methods would require accurate models, while the proposed strategy does not.\nFigure 6. Test results of the conventional controller. (a) $θ$; (b) $q$; (c) $ϕ$; (d) $p$; (e) The ground track view of trajectory.\nFigure 6. Test results of the conventional controller. (a) $θ$; (b) $q$; (c) $ϕ$; (d) $p$; (e) The ground track view of trajectory.", null, "## Acknowledgments\n\nThis study was supported in part by National Natural Science Foundation of China (NSFC) (Under Grant No. 61374188), Aeronautical Science Foundation of China (Under Grant No. 2013ZC52033), Natural Science Foundation of Jiangsu Province of China (Under Grant No. BK20141412), Applied Basic Research Programs of Natural Science Foundation of Jiangsu Province, China (Under Grant No. BY2015003-10).\n\n## Author Contributions\n\nAll authors discussed the contents of the manuscript. Shouzhao Sheng contributed to the research idea and the framework of this study. Chenwu Sun performed the experimental work.\n\n## Conflicts of Interest\n\nThe authors declare no conflict of interest.\n\n## Nomenclature\n\n $a q , a q ˙ , b u , b w , b p , b δ p i t , b δ r o l , b δ r o t , b e$ identification parameters $a q ∗ , a q ˙ ∗ , b δ p i t ∗$ desired model parameters $A , B$ system matrix and control matrix $e$ tracking error $e θ$ attitude tracking error $E$ unknown equivalent trim error vector $f$ nonlinear kinematic function $G a$ actuator transfer function $G f , G f 1 , G f 2$ filter transfer functions $k p , k d$ proportional and differential coefficients $k q 0$ predetermined feedback gain $K$ identification parameter vector $M u q ˙ , M v q ˙ , M w q ˙ , M θ q ˙ , M ϕ q ˙ , M ψ q ˙ , M q q ˙ , M p q ˙ , M r q ˙ , M δ p i t q ˙ , M δ r o l q ˙ , M δ y a w q ˙ , M δ r o t q ˙$ aerodynamic parameters $p , q , r$ linearized roll, pitch and yaw rates, deg/s $p ⌢ , q ⌢ , r ⌢$ roll, pitch and yaw rates, deg/s $q m$ identification model output $R f$ filtered state and input vector $T a , T f 1 , T f 2$ time constants of $G a$, $G f 1$ and $G f 2$, respectively $U ⌢ , U$ input vector and its linearized version $U e , U ˜ e$ trim input vector and its estimate error $U 0$ nominal trim input vector $u , v , w$ linearized forward, lateral and vertical velocities, m/s $u ⌢ , v ⌢ , w ⌢$ forward, lateral and vertical velocities, m/s $V$ Lyapunov function candidate $X ⌢ , X$ state vector and its linearized version $X 0$ nominal trim state vector $β$ optional positive number $Δ a q , Δ a q ˙ , Δ b δ p i t , Δ b u , Δ b w , Δ b p , Δ b δ r o l , Δ b δ r o t , Δ b e$ identification parameter errors $Δ$ identification parameter error vector $δ e$ equivalent input disturbance $δ ⌢ l , δ ⌢ r , δ ⌢ f , δ ⌢ b$ movements of the left, right, front and back servo motors, respectively, deg $δ p i t , δ r o l , δ y a w , δ r o t$ linearized manipulated input signals of pitch axis, roll axis, yaw axis and rotational speed of the ducted fan, respectively, deg $δ ⌢ p i t , δ ⌢ r o l , δ ⌢ y a w , δ ⌢ r o t$ manipulated input signals of pitch axis, roll axis, yaw axis and rotational speed of the ducted fan, respectively, deg $δ p i t i$ input signal of actuator $δ p i t c$ attitude control signal $Γ$ $Λ − 1$ $ε f$ optional component part of learning laws $Λ$ optional positive definite diagonal matrix $λ q ˙ , λ q , λ δ p i t , λ u , λ w , λ p , λ δ r o l , λ δ r o t , λ e$ diagonal elements of $Λ$ $Θ$ unknown aerodynamic parameter set $X e , X ˜ e$ trim state vector and its estimate error $ϒ$ optional positive number $θ , ϕ , ψ$ linearized pitch, roll and yaw angles, deg $θ ⌢ , ϕ ⌢ , ψ ⌢$ pitch, roll and yaw angles, deg $θ c$ pitch command, deg $ρ q ˙ , ρ q , ρ δ p i t , ρ u , ρ w , ρ p , ρ δ r o l , ρ δ r o t , ρ e$ diagonal elements of $Γ$ $τ e q ˙$ element of $E$ $‖ ‖ ∞$ infinite-norm $p d , u d , w d , δ r o l d , δ r o t d$ outputs of $G a − 1$ in response to $p , u , w$,$δ r o l , δ r o t$, respectively $e f , p d f , q f , u d f , w d f , δ p i t i f , δ r o l d f , δ r o t d f$ outputs of in response to $e , p d , q , u d$,$w d , δ p i t i , δ r o l d , δ r o t d$, respectively\n\n## References\n\n1. Walsh, D.; Cycon, J.P. The Sikorsky Cypher UAV: A multi-purpose platform with demonstrated mission flexibility. In Annual Forum Proceedings-American Helicopter Society; American Helicopter Society: Washington, DC, USA, 1998; Volume 54, pp. 1410–1418. [Google Scholar]\n2. Lipera, L.; Colbourne, J.; Tischler, M.; Mansur, M.; Rotkowitz, M.; Patangui, P. The micro craft istar micro-air vehicle: Control system design and testing. In Annual Forum Proceedings-American Helicopter Society; AHS International: Washington, DC, USA, 2001; Volume 57, pp. 1–11. [Google Scholar]\n3. Pflimlin, J.M.; Soueres, P.; Hamel, T. Hovering flight stabilization in wind gusts for a ducted fan UAV. In Proceedings of the 43rd IEEE Conference on Decision and Control (CDC’04), Paradise Island, Bahamas, 14–17 December 2004; pp. 3491–3496.\n4. Martin, P.; Boxwell, D. Design, analysis and experiments on a 10-inch ducted rotor VTOL UAV. In American Helicopter Society (AHS) International Specialists Meeting on Unmanned Rotorcraft: Design, Control and Testing; American Helicopter Society: Phoenix, AZ, USA, 2005; pp. 18–20. [Google Scholar]\n5. Pereira, J.; Chopra, I.; Gessow, A. Effects of shroud design variables on hover performance of a shrouded rotor for micro air vehicle applications. In Proceedings of the AHS International Specialists’ Meeting on Unmanned Rotorcraft, Phoenix, AZ, USA, 18–20 January 2005.\n6. Salluce, D.N. Comprehensive System Identification of Ducted Fan UAVs. In Doctoral Dissertation; California Polytechnic State University: San Luis Obispo, CA, USA, 2004. [Google Scholar]\n7. Ko, A.; Ohanian, O.J.; Gelhausen, P. Ducted fan UAV modeling and simulation in preliminary design. In Proceedings of the AIAA Modeling and Simulation Technologies Conference and Exhibit (No. 2007–6375), Keystone, CO, USA, 20 August 2007.\n8. Johnson, E.N.; Turbe, M.A. Modeling, control, and flight testing of a small ducted fan aircraft. J. Guid. Control Dyn. 2006, 29, 769–779. [Google Scholar] [CrossRef]\n9. Metni, N.; Pflimlin, J.M.; Hamel, T.; Soueres, P. Attitude and gyro bias estimation for a VTOL UAV. Control Eng. Pract. 2006, 14, 1511–1520. [Google Scholar]\n10. Peddle, I.K.; Jones, T.; Treurnicht, J. Practical near hover flight control of a ducted fan (SLADe). Control Eng. Pract. 2009, 17, 48–58. [Google Scholar] [CrossRef]\n11. Sheng, S.; Mian, A.A.; Zhao, C.; Jiang, B. Autonomous take-off and landing control for a prototype unmanned helicopter. Control Eng. Pract. 2010, 18, 1053–1059. [Google Scholar] [CrossRef]\n12. Naldi, R.; Gentili, L.; Marconi, L.; Sala, A. Design and experimental validation of a nonlinear control law for a ducted-fan miniature aerial vehicle. Control Eng. Pract. 2010, 18, 747–760. [Google Scholar] [CrossRef]\n13. Pflimlin, J.M.; Soueres, P.; Hamel, T. Position control of a ducted fan VTOL UAV in crosswind. Int. J. Control 2007, 80, 666–683. [Google Scholar] [CrossRef]\n14. Pflimlin, J.M.; Binetti, P.; Soueres, P.; Hamel, T.; Trouchet, D. Modeling and attitude control analysis of a ducted-fan micro aerial vehicle. Control Eng. Pract. 2010, 18, 209–218. [Google Scholar] [CrossRef]\n15. Hess, R.A.; Ussery, T.M. Sliding mode techniques applied to the control of a micro-air vehicle. In Proceedings of the AIAA Guidance, Navigation, and Control Conference, Austin, TX, USA, 12 August 2003; pp. 11–14.\n16. Hess, R.A.; Bakhtiari-Nejad, M. Sliding Mode Control of a Nonlinear Model of an Unmanned Aerisl Vehicle. J. Guid. Control Dyn. 2008, 31, 1163–1165. [Google Scholar] [CrossRef]\n17. Spaulding, C.M.; Mansur, M.H.; Tischler, M.B.; Hess, R.A.; Franklin, J.A. Nonlinear inversion control for a ducted fan UAV. In Proceedings of the AIAA Atmospheric Flight Mechanics Conference and Exhibit (No. 2005–6231), San Francisco, CA, USA, 17 August 2005.\n18. Chwa, D.; Choi, J.Y.; Seo, J.H. Compensation of actuator dynamics in nonlinear missile control. IEEE Trans. Control Syst. Technol. 2004, 12, 620–626. [Google Scholar] [CrossRef]\n19. Manouchehri, A.; Hajkarami, H.; Ahmadi, M.A.S. Hovering control of a ducted fan VTOL Unmanned Aerial Vehicle (UAV) based on PID control. In Proceedings of the 2011 International Conference on Electrical and Control Engineering (ICECE), Yichang, China, 16–18 September 2011; pp. 5962–5965.\n20. Duan, H.; Sun, C. Pendulum-like oscillation controller for micro aerial vehicle with ducted fan based on LQR and PSO. Sci. China Technol. Sci. 2013, 56, 423–429. [Google Scholar] [CrossRef]\n21. Cai, G.; Chen, B.M.; Dong, X.; Lee, T.H. Design and implementation of a robust and nonlinear flight control system for an unmanned helicopter. Mechatronics 2011, 21, 803–820. [Google Scholar] [CrossRef]\n22. Avanzini, G.; Ciniglio, U.; Matteis, G.D. Full-envelope robust control of a shrouded-fan unmanned vehicle. J. Guid. Control Dyn. 2006, 29, 435–443. [Google Scholar]\n23. Aruneshwaran, R.; Suresh, S.; Wang, J.; Venugopalan, T.K. Neural adaptive flight controller for ducted-fan UAV performing nonlinear maneuver. In Proceedings of the 2013 IEEE Symposium on Computational Intelligence for Security and Defense Applications (CISDA), Singapore, 16–19 April 2013; pp. 51–56.\n24. Lee, W.; Bang, H. Control of ducted fan UAV by fuzzy gain scheduler. In Proceedings of the International Conference on Control, Automation and Systems, ICCAS’07, Seoul, Korea, 17–20 October 2007; pp. 812–816.\n25. Omar, Z. Intelligent Control of a ducted-fan VTOL UAV with conventional control surfaces. In Doctoral Dissertation; RMIT University: Melbourne, Australia, 2010. [Google Scholar]\n26. Hua, M.D.; Hamel, T.; Morin, P.; Samson, C. Control of a class of thrust-propelled underactuated vehicles and application to a VTOL drone. In Proceedings of the IEEE International Conference on Robotics and Automation, 2009. ICRA’09, Kobe, Japan, 12–17 May 2009; pp. 972–978.\n27. Zhang, N. Ducted fan unmanned aircraft flight dynamics analysis and control study. In Dissertation; Nanjing University of Aeronautics and Astronautics: Nanjing, China, 2011. [Google Scholar]" ]
[ null, "https://px.ads.linkedin.com/collect/", null, "https://www.mdpi.com/applsci/applsci-05-00666/article_deploy/html/images/applsci-05-00666-g001.png", null, "https://www.mdpi.com/applsci/applsci-05-00666/article_deploy/html/images/applsci-05-00666-g002.png", null, "https://www.mdpi.com/applsci/applsci-05-00666/article_deploy/html/images/applsci-05-00666-g003.png", null, "https://www.mdpi.com/applsci/applsci-05-00666/article_deploy/html/images/applsci-05-00666-g004.png", null, "https://www.mdpi.com/applsci/applsci-05-00666/article_deploy/html/images/applsci-05-00666-g005a.png", null, "https://www.mdpi.com/applsci/applsci-05-00666/article_deploy/html/images/applsci-05-00666-g005b.png", null, "https://www.mdpi.com/applsci/applsci-05-00666/article_deploy/html/images/applsci-05-00666-g006.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.65904987,"math_prob":0.9775883,"size":8461,"snap":"2022-05-2022-21","text_gpt3_token_len":2317,"char_repetition_ratio":0.13077924,"word_repetition_ratio":0.07190083,"special_character_ratio":0.2681716,"punctuation_ratio":0.27941176,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9967569,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"im_url_duplicate_count":[null,null,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-23T18:32:16Z\",\"WARC-Record-ID\":\"<urn:uuid:db64ac7f-35b2-4c4e-a415-2736fa4d76b6>\",\"Content-Length\":\"297692\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7e685634-8e6f-40e4-9ad9-e441360f75b1>\",\"WARC-Concurrent-To\":\"<urn:uuid:68a940a6-81dd-480c-be41-5fedf6d2b7df>\",\"WARC-IP-Address\":\"104.18.25.151\",\"WARC-Target-URI\":\"https://www.mdpi.com/2076-3417/5/4/666/htm\",\"WARC-Payload-Digest\":\"sha1:HKFAMG5K4JZCEK6Z2OU4TFMEVFU7ATLQ\",\"WARC-Block-Digest\":\"sha1:ULEMIJWWDFEPO733I72L3NSDYJOG3HDR\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662560022.71_warc_CC-MAIN-20220523163515-20220523193515-00598.warc.gz\"}"}
https://math.libretexts.org/Courses/Monroe_Community_College/MTH_211_Calculus_II/Chapter_8%3A_Introduction_to_Differential_Equations/8.5%3A_First-order_Linear_Equations
[ "$$\\newcommand{\\id}{\\mathrm{id}}$$ $$\\newcommand{\\Span}{\\mathrm{span}}$$ $$\\newcommand{\\kernel}{\\mathrm{null}\\,}$$ $$\\newcommand{\\range}{\\mathrm{range}\\,}$$ $$\\newcommand{\\RealPart}{\\mathrm{Re}}$$ $$\\newcommand{\\ImaginaryPart}{\\mathrm{Im}}$$ $$\\newcommand{\\Argument}{\\mathrm{Arg}}$$ $$\\newcommand{\\norm}{\\| #1 \\|}$$ $$\\newcommand{\\inner}{\\langle #1, #2 \\rangle}$$ $$\\newcommand{\\Span}{\\mathrm{span}}$$\n\n# 8.5: First-order Linear Equations\n\n•", null, "• Contributed by OpenStax\n• Mathematics at OpenStax CNX\n\n$$\\newcommand{\\vecs}{\\overset { \\rightharpoonup} {\\mathbf{#1}} }$$\n\n$$\\newcommand{\\vecd}{\\overset{-\\!-\\!\\rightharpoonup}{\\vphantom{a}\\smash {#1}}}$$\n\nEarlier, we studied an application of a first-order differential equation that involved solving for the velocity of an object. In particular, if a ball is thrown upward with an initial velocity of $$v_0$$ ft/s, then an initial-value problem that describes the velocity of the ball after $$t$$ seconds is given by\n\n$\\dfrac{dv}{dt}=−32$\n\nwith $$v(0)=v_0.$$\n\nThis model assumes that the only force acting on the ball is gravity. Now we add to the problem by allowing for the possibility of air resistance acting on the ball.\n\nAir resistance always acts in the direction opposite to motion. Therefore if an object is rising, air resistance acts in a downward direction. If the object is falling, air resistance acts in an upward direction (Figure $$\\PageIndex{1}$$). There is no exact relationship between the velocity of an object and the air resistance acting on it. For very small objects, air resistance is proportional to velocity; that is, the force due to air resistance is numerically equal to some constant $$k$$ times $$v$$. For larger (e.g., baseball-sized) objects, depending on the shape, air resistance can be approximately proportional to the square of the velocity. In fact, air resistance may be proportional to $$v^{1.5}$$, or $$v^{0.9}$$, or some other power of $$v$$.", null, "Figure $$\\PageIndex{1}$$: Forces acting on a moving baseball: gravity acts in a downward direction and air resistance acts in a direction opposite to the direction of motion.\n\nWe will work with the linear approximation for air resistance. If we assume $$k>0$$, then the expression for the force $$F_A$$ due to air resistance is given by $$FA_=−kv$$. Therefore the sum of the forces acting on the object is equal to the sum of the gravitational force and the force due to air resistance. This, in turn, is equal to the mass of the object multiplied by its acceleration at time $$t$$(Newton’s second law). This gives us the differential equation\n\n$m\\dfrac{dv}{dt}=−kv−mg.$\n\nFinally, we impose an initial condition $$v(0)=v_0,$$ where $$v_0$$ is the initial velocity measured in meters per second. This makes $$g=9.8m/s^2.$$ The initial-value problem becomes\n\n$m\\dfrac{dv}{dt}=−kv−mg$\n\nwith $$v(0)=v_0.$$\n\nThe differential equation in this initial-value problem is an example of a first-order linear differential equation. (Recall that a differential equation is first-order if the highest-order derivative that appears in the equation is $$1$$.) In this section, we study first-order linear equations and examine a method for finding a general solution to these types of equations, as well as solving initial-value problems involving them.\n\nDefinition: Linear first-order differential equation\n\nA first-order differential equation is linear if it can be written in the form\n\n$a(x)y′+b(x)y=c(x),$\n\nwhere $$a(x),b(x),$$ and $$c(x)$$ are arbitrary functions of $$x$$.\n\nRemember that the unknown function $$y$$ depends on the variable $$x$$; that is, $$x$$ is the independent variable and $$y$$ is the dependent variable. Some examples of first-order linear differential equations are\n\n$(3x^2−4)y'+(x−3)y=\\sin x$\n\n$(\\sin x)y'−(\\cos x)y=\\cot x$\n\n$4xy'+(3\\ln x)y=x^3−4x.$\n\nExamples of first-order nonlinear differential equations include\n\n$(y')^4−(y')^3=(3x−2)(y+4)$\n\n$4y'+3y^3=4x−5$\n\n$(y')^2=\\sin y+\\cos x.$\n\nThese equations are nonlinear because of terms like $$(y′)^4,y^3,$$ etc. Due to these terms, it is impossible to put these equations into the same form as Equation.\n\n## Standard Form\n\nConsider the differential equation\n\n$(3x^2−4)y′+(x−3)y=\\sin x.$\n\nOur main goal in this section is to derive a solution method for equations of this form. It is useful to have the coefficient of $$y′$$ be equal to $$1$$. To make this happen, we divide both sides by $$3x^2−4.$$\n\n$y′+ \\left(\\dfrac{x−3}{3x^2−4} \\right)y=\\dfrac{\\sin x}{3x^2−4}$\n\nThis is called the standard form of the differential equation. We will use it later when finding the solution to a general first-order linear differential equation. Returning to Equation, we can divide both sides of the equation by $$a(x)$$. This leads to the equation\n\n$y′+\\dfrac{b(x)}{a(x)}y=\\dfrac{c(x)}{a(x)}. \\label{eq5}$\n\nNow define\n\n$p(x)=\\dfrac{b(x)}{a(x)}$\n\nand\n\n$q(x)=\\dfrac{c(x)}{a(x)}$\n\nThen Equation \\ref{eq5} becomes\n\n$y′+p(x)y=q(x).$\n\nWe can write any first-order linear differential equation in this form, and this is referred to as the standard form for a first-order linear differential equation.\n\nExample $$\\PageIndex{1}$$: Writing First-Order Linear Equations in Standard Form\n\nPut each of the following first-order linear differential equations into standard form. Identify $$p(x)$$ and $$q(x)$$ for each equation.\n\n1. $$y'=3x−4y$$\n2. $$\\dfrac{3xy'}{4y−3}=2$$ (here $$x>0$$)\n3. $$y=3y'−4x^2+5$$\n\nSolution\n\na. Add $$4y$$ to both sides:\n\n$$y'+4y=3x.$$\n\nIn this equation, $$p(x)=4$$ and \\|(q(x)=3x.\\)\n\nb. Multiply both sides by $$4y−3$$, then subtract $$8y$$ from each side:\n\n$$\\dfrac{3xy'}{4y−3}=2$$\n\n$$3xy'=2(4y−3)$$\n\n$$3xy'=8y−6$$\n\n$$3xy'−8y=−6.$$\n\nFinally, divide both sides by $$3x$$ to make the coefficient of $$y'$$ equal to $$1$$:\n\n$$y'−\\dfrac{8}{3x}y=−\\dfrac{2}{3x}.$$\n\nThis is allowable because in the original statement of this problem we assumed that $$x>0$$. (If $$x=0$$ then the original equation becomes $$0=2$$, which is clearly a false statement.)\n\nIn this equation, $$p(x)=−\\dfrac{8}{3x}$$ and $$q(x)=−\\dfrac{2}{3x}$$.\n\nc. Subtract $$y$$ from each side and add $$4x^2−5$$:\n\n$$3y'−y=4x^2−5.$$\n\nNext divide both sides by $$3$$:\n\n$$y'−\\dfrac{1}{3}y=\\dfrac{4}{3}x^2−\\dfrac{5}{3}$$.\n\nIn this equation, $$p(x)=−\\dfrac{1}{3}$$ and $$q(x)=\\dfrac{4}{3}x^2−\\dfrac{5}{3}$$.\n\nExercise $$\\PageIndex{1}$$\n\nPut the equation $$\\dfrac{(x+3)y'}{2x−3y−4}=5$$ into standard form and identify $$p(x)$$ and $$q(x)$$.\n\nHint\n\nMultiply both sides by the common denominator, then collect all terms involving $$y$$ on one side.\n\n$y'+\\dfrac{15}{x+3}y=\\dfrac{10x−20}{x+3}$\n\n$p(x)=\\dfrac{15}{x+3}$\n\nand\n\n$q(x)=\\dfrac{10x−20}{x+3}$\n\n## Integrating Factors\n\nWe now develop a solution technique for any first-order linear differential equation. We start with the standard form of a first-order linear differential equation:\n\n$y'+p(x)y=q(x). \\label{Deq1}$\n\nThe first term on the left-hand side of Equation is the derivative of the unknown function, and the second term is the product of a known function with the unknown function. This is somewhat reminiscent of the power rule. If we multiply Equation \\ref{Deq1} by a yet-to-be-determined function $$μ(x)$$, then the equation becomes\n\n$μ(x)y′+μ(x)p(x)y=μ(x)q(x). \\label{Deq2}$\n\nThe left-hand side Equation \\ref{Deq2} can be matched perfectly to the product rule:\n\n$\\dfrac{d}{dx}[f(x)g(x)]=f′(x)g(x)+f(x)g′(x).$\n\nMatching term by term gives $$y=f(x),g(x)=μ(x)$$, and $$g′(x)=μ(x)p(x)$$. Taking the derivative of $$g(x)=μ(x)$$ and setting it equal to the right-hand side of $$g′(x)=μ(x)p(x)$$ leads to\n\n$μ′(x)=μ(x)p(x).$\n\nThis is a first-order, separable differential equation for $$μ(x).$$ We know $$p(x)$$ because it appears in the differential equation we are solving. Separating variables and integrating yields\n\n\\begin{align} \\dfrac{μ′(x)}{μ(x)} =p(x) \\\\[4pt] ∫\\dfrac{μ′(x)}{μ(x)}dx =∫p(x)dx \\\\[4pt] \\ln|μ(x)| =∫p(x)dx+C \\\\[4pt] e^{\\ln|μ(x)|} =e^{∫p(x)dx+C} \\\\[4pt] |μ(x)| =C_1e^{∫p(x)dx} \\\\[4pt] μ(x) =C_2e^{∫p(x)dx}. \\end{align}\n\nHere $$C_2$$ can be an arbitrary (positive or negative) constant. This leads to a general method for solving a first-order linear differential equation. We first multiply both sides of Equation by the integrating factor $$μ(x).$$ This gives\n\n$μ(x)y′+μ(x)p(x)y=μ(x)q(x). \\label{Deq5}$\n\nThe left-hand side of Equation \\ref{Deq5} can be rewritten as $$\\dfrac{d}{dx}(μ(x)y)$$.\n\n$\\dfrac{d}{dx}(μ(x)y)=μ(x)q(x). \\label{Deq6}$\n\nNext integrate both sides of Equation \\ref{Deq6} with respect to $$x$$.\n\n\\begin{align} ∫\\dfrac{d}{dx}(μ(x)y)dx =∫μ(x)q(x)dx \\\\[4pt] μ(x)y =∫μ(x)q(x)dx \\label{Deq7} \\end{align}\n\nDivide both sides of Equation \\ref{Deq6} by $$μ(x)$$:\n\n$y=\\dfrac{1}{μ(x)}\\left[∫μ(x)q(x)dx+C\\right]. \\nonumber$\n\nSince $$μ(x)$$ was previously calculated, we are now finished. An important note about the integrating constant $$C$$: It may seem that we are inconsistent in the usage of the integrating constant. However, the integral involving $$p(x)$$ is necessary in order to find an integrating factor for Equation. Only one integrating factor is needed in order to solve the equation; therefore, it is safe to assign a value for $$C$$ for this integral. We chose $$C=0$$. When calculating the integral inside the brackets in Equation, it is necessary to keep our options open for the value of the integrating constant, because our goal is to find a general family of solutions to Equation. This integrating factor guarantees just that.\n\nProblem-Solving Strategy: Solving a First-order Linear Differential Equation\n\n1. Put the equation into standard form and identify $$p(x)$$ and $$q(x)$$.\n2. Calculate the integrating factor $μ(x)=e^{∫p(x)dx}.$\n3. Multiply both sides of the differential equation by $$μ(x)$$.\n4. Integrate both sides of the equation obtained in step $$3$$, and divide both sides by $$μ(x)$$.\n5. If there is an initial condition, determine the value of $$C$$.\n\nExample $$\\PageIndex{2}$$: Solving a First-order Linear Equation\n\nFind a general solution for the differential equation $$xy'+3y=4x^2−3x.$$ Assume $$x>0.$$\n\nSolution\n\n1. To put this differential equation into standard form, divide both sides by $$x$$:\n\n$y'+\\dfrac{3}{x}y=4x−3. \\nonumber$\n\nTherefore $$p(x)=\\dfrac{3}{x}$$ and $$q(x)=4x−3.$$\n\n2. The integrating factor is $$μ(x)=e^{∫(3/x)}dx=e^{3 \\ln x}=x^3$$.\n\n3. Multiplying both sides of the differential equation by $$μ(x)$$ gives us\n\n\\begin{align*} x^3y′+x^3(\\dfrac{3}{x}) =x^3(4x−3) \\\\[4pt] x^3y′+3x^2y =4x^4−3x^3 \\\\[4pt] \\dfrac{d}{dx}(x^3y) = 4x^4−3x^3. \\end{align*}\n\n4. Integrate both sides of the equation.\n\n\\begin{align*} ∫\\dfrac{d}{dx}(x^3y)dx = ∫4x^4−3x^3dx \\\\[4pt] x^3y =\\dfrac{4x^5}{5}−\\dfrac{3x^4}{4}+C \\\\[4pt] y =\\dfrac{4x^2}{5}−\\dfrac{3x}{4}+Cx^{−3}. \\end{align*}\n\n5. There is no initial value, so the problem is complete.\n\nAnalysis\n\nYou may have noticed the condition that was imposed on the differential equation; namely, $$x>0$$. For any nonzero value of $$C$$, the general solution is not defined at $$x=0$$. Furthermore, when $$x<0$$, the integrating factor changes. The integrating factor is given by Equation as $$f(x)=e^{∫p(x)dx}$$. For this $$p(x)$$ we get\n\n\\begin{align*} e^{∫p(x)dx} =e^{∫(3/x)dx} \\\\[4pt] =e^{3\\ln|x|} \\\\[4pt] =|x|^3 \\end{align*}\n\nsince $$x<0$$. The behavior of the general solution changes at $$x=0$$ largely due to the fact that $$p(x)$$ is not defined there.\n\nExercise $$\\PageIndex{2}$$\n\nFind the general solution to the differential equation $$(x−2)y'+y=3x^2+2x.$$ Assume $$x>2$$.\n\nHint\n\nUse the method outlined in the problem-solving strategy for first-order linear differential equations.\n\n$$y=\\dfrac{x^3+x^2+C}{x−2}$$\n\nNow we use the same strategy to find the solution to an initial-value problem.\n\nExample $$\\PageIndex{3}$$: A First-order Linear Initial-Value Problem\n\nSolve the initial-value problem\n\n$y′+3y=2x−1,y(0)=3. \\nonumber$\n\nSolution\n\n1. This differential equation is already in standard form with $$p(x)=3$$ and $$q(x)=2x−1$$.\n\n2. The integrating factor is $$μ(x)=e^{∫3dx}=e^{3x}$$.\n\n3. Multiplying both sides of the differential equation by $$μ(x)$$ gives\n\n\\begin{align*} e^{3x}y′+3e^{3x}y =(2x−1)e^{3x} \\\\[4pt] \\dfrac{d}{dx}[ye^{3x}] =(2x−1)e^{3x}. \\end{align*}\n\nIntegrate both sides of the equation:\n\n$$∫\\dfrac{d}{dx}[ye^{3x}]dx=∫(2x−1)e^{3x}dx$$\n\n$$ye^{3x}=\\dfrac{e^{3x}}{3}(2x−1)−∫\\dfrac{2}{3}e^{3x}dx$$\n\n$$ye^{3x}=\\dfrac{e^{3x}(2x−1)}{3}−\\dfrac{2e^{3x}}{9}+C$$\n\n$$y=\\dfrac{2x−1}{3}−\\dfrac{2}{9}+Ce^{−3x}$$\n\n$$y=\\dfrac{2x}{3}−\\dfrac{5}{9}+Ce^{−3x}$$.\n\n4. Now substitute $$x=0$$ and $$y=3$$ into the general solution and solve for $$C$$:\n\n\\begin{align*} y =\\dfrac{2}{3}x−\\dfrac{5}{9}+Ce^{−3x} \\\\[4pt] 3 =\\dfrac{2}{3}(0)−\\dfrac{5}{9}+Ce^{−3(0)} \\\\[4pt] 3 =−\\dfrac{5}{9}+C \\\\[4pt] C=\\dfrac{32}{9}. \\end{align*}\n\nTherefore the solution to the initial-value problem is\n\n$y=\\dfrac{2}{3}x−\\dfrac{5}{9}+\\dfrac{32}{9}e^{−3x}. \\nonumber$\n\nExample $$\\PageIndex{4}$$:\n\nSolve the initial-value problem $y'−2y=4x+3y(0)=−2. \\nonumber$\n\nSolution\n\n$y=−2x−4+2e^{2x}$\n\n## Applications of First-order Linear Differential Equations\n\nWe look at two different applications of first-order linear differential equations. The first involves air resistance as it relates to objects that are rising or falling; the second involves an electrical circuit. Other applications are numerous, but most are solved in a similar fashion.\n\n### Free fall with air resistance\n\nWe discussed air resistance at the beginning of this section. The next example shows how to apply this concept for a ball in vertical motion. Other factors can affect the force of air resistance, such as the size and shape of the object, but we ignore them here.\n\nExample $$\\PageIndex{5}$$: A Ball with Air Resistance\n\nA racquetball is hit straight upward with an initial velocity of $$2$$m/s. The mass of a racquetball is approximately $$0.0427$$ kg. Air resistance acts on the ball with a force numerically equal to $$0.5v$$, where $$v$$ represents the velocity of the ball at time $$t$$.\n\n1. Find the velocity of the ball as a function of time.\n2. How long does it take for the ball to reach its maximum height?\n3. If the ball is hit from an initial height of $$1$$ meter, how high will it reach?\n\nSolution\n\na. The mass $$m=0.0427kg,k=0.5,$$ and $$g=9.8m/s^2$$. The initial velocity is $$v_0=2 m/s$$. Therefore the initial-value problem is\n\n$$0.0427\\dfrac{dv}{dt}=−0.5v−0.0427(9.8),v_0=2.$$\n\nDividing the differential equation by $$0.0427$$ gives\n\n$$\\dfrac{dv}{dt}=−11.7096v−9.8,v_0=2.$$\n\nThe differential equation is linear. Using the problem-solving strategy for linear differential equations:\n\nStep 1. Rewrite the differential equation as $$\\dfrac{dv}{dt}+11.7096v=−9.8$$. This gives $$p(t)=11.7096$$ and $$q(t)=−9.8$$\n\nStep 2. The integrating factor is $$μ(t)=e^{∫11.7096dt}=e^{11.7096t}.$$\n\nStep 3. Multiply the differential equation by $$μ(t)$$:\n\n$$e^{11.7096t\\dfrac{dv}{dt}}+11.7096ve^{11.7096t}=−9.8e^{11.7096t}$$\n\n$$\\dfrac{d}{dt}[ve^{11.7096t}]=−9.8e^{11.7096t}.$$\n\nStep 4. Integrate both sides:\n\n$$∫\\dfrac{d}{dt}[ve^{11.7096t}]dt=∫−9.8e^{11.7096t}dt$$\n\n$$ve^{11.7096t}=\\dfrac{−9.8}{11.7096}e^{11.7096t}+C$$\n\n$$v(t)=−0.8369+Ce^{−11.7096t}.$$\n\nStep 5. Solve for $$C$$ using the initial condition $$v_0=v(0)=2$$:\n\n$$v(t)=−0.8369+Ce^{−11.7096t}$$\n\n$$v(0)=−0.8369+Ce^{−11.7096(0)}$$\n\n$$2=−0.8369+C$$\n\n$$C=2.8369.$$\n\nTherefore the solution to the initial-value problem is\n\n$$v(t)=2.8369e^{−11.7096t}−0.8369.$$\n\nb. The ball reaches its maximum height when the velocity is equal to zero. The reason is that when the velocity is positive, it is rising, and when it is negative, it is falling. Therefore when it is zero, it is neither rising nor falling, and is at its maximum height:\n\n$$2.8369e^{−11.7096t}−0.8369=0$$\n\n$$2.8369e^{−11.7096t}=0.8369$$\n\n$$e^{−11.7096t}=\\dfrac{0.8369}{2.8369}≈0.295$$\n\n$$lne^{−11.7096t}=ln0.295≈−1.221$$\n\n$$−11.7096t=−1.221$$\n\n$$t≈0.104.$$\n\nTherefore it takes approximately $$0.104$$ second to reach maximum height.\n\nc. To find the height of the ball as a function of time, use the fact that the derivative of position is velocity, i.e., if $$h(t)$$ represents the height at time $$t$$, then $$h′(t)=v(t)$$. Because we know $$v(t)$$ and the initial height, we can form an initial-value problem:\n\n$$h′(t)=2.8369e^{−11.7096t}−0.8369,h(0)=1.$$\n\nIntegrating both sides of the differential equation with respect to $$t$$ gives\n\n$$∫h′(t)dt=∫2.8369e^{−11.7096t}−0.8369dt$$\n\n$$h(t)=−\\dfrac{2.8369}{11.7096}e^{−11.7096t}−0.8369t+C$$\n\n$$h(t)=−0.2423e^{−11.7096t}−0.8369t+C.$$\n\nSolve for $$C$$ by using the initial condition:\n\n$$h(t)=−0.2423e^{−11.7096t}−0.8369t+C$$\n\n$$h(0)=−0.2423e^{−11.7096(0)}−0.8369(0)+C$$\n\n$$1=−0.2423+C$$\n\n$$C=1.2423.$$\n\nTherefore\n\n$$h(t)=−0.2423e^{−11.7096t}−0.8369t+1.2423.$$\n\nAfter $$0.104$$ second, the height is given by\n\n$$h(0.2)=−0.2423e^{−11.7096t}−0.8369t+1.2423≈1.0836$$ meter.\n\nExercise $$\\PageIndex{3}$$\n\nThe weight of a penny is $$2.5$$ grams (United States Mint, “Coin Specifications,” accessed April 9, 2015, http://www.usmint.gov/about_the_mint...specifications), and the upper observation deck of the Empire State Building is $$369$$ meters above the street. Since the penny is a small and relatively smooth object, air resistance acting on the penny is actually quite small. We assume the air resistance is numerically equal to $$0.0025v$$. Furthermore, the penny is dropped with no initial velocity imparted to it.\n\n1. Set up an initial-value problem that represents the falling penny.\n2. Solve the problem for $$v(t)$$.\n3. What is the terminal velocity of the penny (i.e., calculate the limit of the velocity as $$t$$ approaches infinity)?\nHint\n\nSet up the differential equation the same way as Example. Remember to convert from grams to kilograms.\n\na. $$\\dfrac{dv}{dt}=−v−9.8$$ $$v(0)=0$$\n\nb. $$v(t)=9.8(e^{−t}−1)$$\n\nc. $$\\lim_{t→∞}v(t)=\\lim_{t→∞}(9.8(e^{−t}−1))=−9.8m/s≈−21.922mph$$\n\n## Electrical Circuits\n\nA source of electromotive force (e.g., a battery or generator) produces a flow of current in a closed circuit, and this current produces a voltage drop across each resistor, inductor, and capacitor in the circuit. Kirchhoff’s Loop Rule states that the sum of the voltage drops across resistors, inductors, and capacitors is equal to the total electromotive force in a closed circuit. We have the following three results:\n\n1. The voltage drop across a resistor is given by\n\n$$E_R=Ri,$$\n\nwhere $$R$$ is a constant of proportionality called the resistance, and $$i$$ is the current.\n\n2. The voltage drop across an inductor is given by\n\n$$EL=Li′$$,\n\nwhere $$L$$ is a constant of proportionality called the inductance, and $$i$$ again denotes the current.\n\n3. The voltage drop across a capacitor is given by\n\n$$E_C=\\dfrac{1}{C}q$$,\n\nwhere $$C$$ is a constant of proportionality called the capacitance, and $$q$$ is the instantaneous charge on the capacitor. The relationship between $$i$$ and $$q$$ is $$i=q′$$.\n\nWe use units of volts $$(V)$$ to measure voltage $$E$$, amperes $$(A)$$ to measure current $$i$$, coulombs $$(C)$$ to measure charge $$q$$, ohms $$(Ω)$$ to measure resistance $$R$$, henrys $$(H)$$ to measure inductance $$L$$, and farads $$(F)$$ to measure capacitance $$C$$. Consider the circuit in Figure $$\\PageIndex{2}$$.", null, "Figure $$\\PageIndex{2}$$: A typical electric circuit, containing a voltage generator $$(V_S)$$, capacitor $$(C)$$, inductor $$(L)$$, and resistor $$(R)$$.\n\nApplying Kirchhoff’s Loop Rule to this circuit, we let $$E$$ denote the electromotive force supplied by the voltage generator. Then\n\n$$E_L+E_R+E_C=E$$.\n\nSubstituting the expressions for $$E_L,E_R,$$ and $$E_C$$ into this equation, we obtain\n\n$$Li′+Ri+\\dfrac{1}{C}q=E.$$\n\nIf there is no capacitor in the circuit, then the equation becomes\n\n$$Li′+R_i=E.$$\n\nThis is a first-order differential equation in $$i$$. The circuit is referred to as an $$LR$$circuit.\n\nNext, suppose there is no inductor in the circuit, but there is a capacitor and a resistor, so $$L=0,R≠0,$$ and $$C≠0.$$ Then Equation can be rewritten as\n\n$$Rq′+\\dfrac{1}{C}q=E,$$\n\nwhich is a first-order linear differential equation. This is referred to as an RC circuit. In either case, we can set up and solve an initial-value problem.\n\nExample $$\\PageIndex{6}$$: Finding Current in an RL Electric Circuit\n\nA circuit has in series an electromotive force given by $$E=50\\sin 20tV,$$ a resistor of $$5Ω$$, and an inductor of $$0.4H$$. If the initial current is $$0$$, find the current at time $$t>0$$.\n\nSolution\n\nWe have a resistor and an inductor in the circuit, so we use Equation. The voltage drop across the resistor is given by $$E_R=R_i=5_i$$. The voltage drop across the inductor is given by $$E_L=Li′=0.4i′$$. The electromotive force becomes the right-hand side of Equation. Therefore Equation becomes\n\n$0.4i′+5i=50\\sin 20t.$\n\nDividing both sides by $$0.4$$ gives the equation\n\n$i′+12.5i=125\\sin 20t.$\n\nSince the initial current is 0, this result gives an initial condition of $$i(0)=0.$$ We can solve this initial-value problem using the five-step strategy for solving first-order differential equations.\n\nStep 1. Rewrite the differential equation as $$i′+12.5i=125\\sin 20t$$. This gives $$p(t)=12.5$$ and $$q(t)=125\\sin 20t$$.\n\nStep 2. The integrating factor is $$μ(t)=e^{∫12.5dt}=e^{12.5t}$$.\n\nStep 3. Multiply the differential equation by $$μ(t)$$:\n\n$$e^{12.5t}i′+12.5e^{12.5t}i=125e^{12.5t}\\sin 20t$$\n\n$$\\dfrac{d}{dt}[ie^{12.5}t]=125e^{12.5t}\\sin 20t$$.\n\nStep 4. Integrate both sides:\n\n$$∫\\dfrac{d}{dt}[ie^{12.5t}]dt=∫125e^{12.5t}\\sin 20tdt$$\n\n$$ie^{12.5t}=(\\dfrac{250\\sin 20t−400\\cos 20t}{89})e^{12.5t}+C$$\n\n$$i(t)=\\dfrac{250\\sin 20t−400\\cos 20t}{89}+Ce^{−12.5t}$$.\n\nStep 5. Solve for $$C$$ using the initial condition $$v(0)=2$$:\n\n$$i(t)=\\dfrac{250\\sin 20t−400\\cos 20t}{89}+Ce^{−12.5t}$$\n\n$$i(0)=\\dfrac{250sin20(0)−400cos20(0)}{89}+Ce^{−12.5(0)}$$\n\n$$0=−\\dfrac{400}{89}+C$$\n\n$$C=\\dfrac{400}{89}$$.\n\nTherefore the solution to the initial-value problem is\n\n$i(t)=\\dfrac{250\\sin 20t−400\\cos 20t+400e^{−12.5t}}{89}=\\dfrac{250\\sin 20t−400\\cos 20t}{89}+\\dfrac{400e^{−12.5t}}{89}.$\n\nThe first term can be rewritten as a single cosine function. First, multiply and divide by $$\\sqrt{250^2+400^2}=50\\sqrt{89}$$:\n\n$$\\dfrac{250\\sin 20t−400\\cos 20t}{89}=\\dfrac{50\\sqrt{89}}{89}(\\dfrac{250\\sin 20t−400\\cos 20t}{50\\sqrt{89}})=−\\dfrac{50\\sqrt{89}}{89}(\\dfrac{8\\cos 20t}{\\sqrt{89}}−\\dfrac{5\\sin 20t}{\\sqrt{89}})$$.\n\nNext, define $$φ$$ to be an acute angle such that $$\\cos φ=\\dfrac{8}{\\sqrt{89}}$$. Then $$\\sin φ=\\dfrac{5}{\\sqrt{89}}$$ and\n\n$$−\\dfrac{50\\sqrt{89}}{89}(\\dfrac{8\\cos 20t}{\\sqrt{89}}−\\dfrac{5\\sin 20t}{\\sqrt{89}})=−\\dfrac{50\\sqrt{89}}{89}(\\cos φ\\cos 20t−\\sin φ\\sin 20t)=−\\dfrac{50\\sqrt{89}}{89}\\cos(20t+φ).$$\n\nTherefore the solution can be written as\n\n$$i(t)=−\\dfrac{50\\sqrt{89}}{89}cos(20t+φ)+\\dfrac{400e^{−12.5t}}{89}$$.\n\nThe second term is called the attenuation term, because it disappears rapidly as $$t$$ grows larger. The phase shift is given by $$φ$$, and the amplitude of the steady-state current is given by $$\\dfrac{50\\sqrt{89}}{89}$$. The graph of this solution appears in Figure $$\\PageIndex{3}$$:", null, "Figure $$\\PageIndex{3}$$.\n\nExercise $$\\PageIndex{4}$$\n\nA circuit has in series an electromotive force given by $$E=20sin5t$$ V, a capacitor with capacitance $$0.02F$$, and a resistor of $$8Ω$$. If the initial charge is $$4C$$, find the charge at time $$t>0$$.\n\nHint\n\nUse Equation for an $$RC$$ circuit to set up an initial-value problem.\n\nInitial-value problem:\n\n$$8q′+\\dfrac{1}{0.02}q=20sin5t,q(0)=4$$\n\n$$q(t)=\\dfrac{10sin5t−8cos5t+172e^{−6.25t}}{41}$$\n\n## Key Concepts\n\n• Any first-order linear differential equation can be written in the form $$y'+p(x)y=q(x)$$.\n• We can use a five-step problem-solving strategy for solving a first-order linear differential equation that may or may not include an initial value.\n• Applications of first-order linear differential equations include determining motion of a rising or falling object with air resistance and finding current in an electrical circuit.\n\n## Key Equations\n\n• standard form\n\n$$y'+p(x)y=q(x)$$\n\n• integrating factor\n\n$$μ(x)=e^{∫p(x)dx}$$\n\n## Glossary\n\nintegrating factor\nany function $$f(x)$$ that is multiplied on both sides of a differential equation to make the side involving the unknown function equal to the derivative of a product of two functions\nlinear\ndescription of a first-order differential equation that can be written in the form $$a(x)y′+b(x)y=c(x)$$\nstandard form\nthe form of a first-order linear differential equation obtained by writing the differential equation in the form $$y'+p(x)y=q(x)$$" ]
[ null, "https://biz.libretexts.org/@api/deki/files/5084/girl-160172__340.png", null, "https://math.libretexts.org/@api/deki/files/2959/CNX_Calc_Figure_08_05_001.jpeg", null, "https://math.libretexts.org/@api/deki/files/2960/CNX_Calc_Figure_08_05_003.jpeg", null, "https://math.libretexts.org/@api/deki/files/12453/8.5.1.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7903283,"math_prob":1.0000056,"size":24087,"snap":"2019-51-2020-05","text_gpt3_token_len":8045,"char_repetition_ratio":0.15795374,"word_repetition_ratio":0.061055128,"special_character_ratio":0.36750114,"punctuation_ratio":0.11167307,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000092,"pos_list":[0,1,2,3,4,5,6,7,8],"im_url_duplicate_count":[null,null,null,9,null,9,null,9,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-12-12T13:31:31Z\",\"WARC-Record-ID\":\"<urn:uuid:5ac08cbc-54c5-4efe-bbdd-60797f4e9e20>\",\"Content-Length\":\"113790\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:64dd760c-b2c5-4210-9a6a-323f8b750ae4>\",\"WARC-Concurrent-To\":\"<urn:uuid:805d1d63-43f6-40b1-831d-d99927cb11d1>\",\"WARC-IP-Address\":\"34.232.212.106\",\"WARC-Target-URI\":\"https://math.libretexts.org/Courses/Monroe_Community_College/MTH_211_Calculus_II/Chapter_8%3A_Introduction_to_Differential_Equations/8.5%3A_First-order_Linear_Equations\",\"WARC-Payload-Digest\":\"sha1:BQL2ABITYZ54CADCP4V3QZ6BM6RD6ES2\",\"WARC-Block-Digest\":\"sha1:F7PL53XQ6H57SOUL3EW2XOKW2SBOHXLA\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-51/CC-MAIN-2019-51_segments_1575540543850.90_warc_CC-MAIN-20191212130009-20191212154009-00465.warc.gz\"}"}
https://www.semanticscholar.org/paper/Decomposition-matrices-for-the-special-case-of-data-Bodner-Patera/aa4dcc14e9470dcd5a0aaf1494d4eca6db7648c8
[ "# Decomposition matrices for the special case of data on the triangular lattice of SU(3)\n\n@article{Bodner2017DecompositionMF,\ntitle={Decomposition matrices for the special case of data on the triangular lattice of SU(3)},\nauthor={M. Bodner and J. Patera and M. Szajewska},\njournal={Applied and Computational Harmonic Analysis},\nyear={2017},\nvolume={43},\npages={346-353}\n}\n• Published 2017\n• Mathematics\n• Applied and Computational Harmonic Analysis\nAbstract A method for the decomposition of data functions sampled on a finite fragment of triangular lattice is described for the cases of lattices of any density corresponding to the simple Lie group G ( 2 ) . Its main advantage is the fact that the decomposition matrix needs to be calculated only once for arbitrary sets of data sampled on the same set of discrete points. The decomposition matrix applies to lattice of any density that carries data.\n4 Citations\nDecomposition matrices for the square lattices of the Lie groups $$SU(2)\\times SU(2)$$SU(2)×SU(2)\n• Mathematics\n• 2019\nA method for the decomposition of data functions sampled on a finite fragment of rectangular lattice is described. The symmetry of a square lattice in a 2-dimensional real Euclidean space is eitherExpand\nCentral Splitting of A2 Discrete Fourier-Weyl Transforms\n• Computer Science, Physics\n• Symmetry\n• 2020\nThe central splitting of any function carrying the data into a sum of components governed by the number of elements of the center of A2 is employed to reduce the original weight lattice Fourier–Weyl transform into the corresponding weight lattices splitting transforms. Expand\nConstruction of graphene, nanotubes and polytopes using finite reflection groups\nA reduction of orbits of finite reflection groups to their reflection subgroups is produced by means of projection matrices, which transform points of the orbit of any group to points of the orbitsExpand\nThe Discrete Cosine Transform on Triangles\n• Mathematics, Computer Science\n• ICASSP 2019 - 2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)\n• 2019\nThis paper has shown how one can define an analogue of the discrete cosine transform on triangles by combining algebraic signal processing theory with a specific kind of multivariate Chebyshev polynomials. Expand" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.837289,"math_prob":0.94195014,"size":5304,"snap":"2021-31-2021-39","text_gpt3_token_len":1129,"char_repetition_ratio":0.1209434,"word_repetition_ratio":0.055137843,"special_character_ratio":0.19966063,"punctuation_ratio":0.056804735,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99007607,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-17T05:31:17Z\",\"WARC-Record-ID\":\"<urn:uuid:750ce40e-832e-4637-b2e2-3af6abda5526>\",\"Content-Length\":\"264586\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a0f56827-c808-46a0-a071-bcf9d8f70d24>\",\"WARC-Concurrent-To\":\"<urn:uuid:810621c6-777d-48cd-83c4-9e85b43d3c9d>\",\"WARC-IP-Address\":\"99.86.230.129\",\"WARC-Target-URI\":\"https://www.semanticscholar.org/paper/Decomposition-matrices-for-the-special-case-of-data-Bodner-Patera/aa4dcc14e9470dcd5a0aaf1494d4eca6db7648c8\",\"WARC-Payload-Digest\":\"sha1:EU7NXUB2RNG2MKNCC6IM755ZSQWIRABB\",\"WARC-Block-Digest\":\"sha1:5EYNLA3MBPSAR3K5QV7IK6D6WK6HIFMP\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780054023.35_warc_CC-MAIN-20210917024943-20210917054943-00423.warc.gz\"}"}
http://jips.jatsxml.org/Article/11/1/22
[ "Nour-Eddine and Abdelkader: GMM-Based Maghreb Dialect Identification System\n\n### Abstract\n\nWhile Modern Standard Arabic is the formal spoken and written language of the Arab world; dialects are the major communication mode for everyday life. Therefore, identifying a speaker’s dialect is critical in the Arabic-speaking world for speech processing tasks, such as automatic speech recognition or identification. In this paper, we examine two approaches that reduce the Universal Background Model (UBM) in the automatic dialect identification system across the five following Arabic Maghreb dialects: Moroccan, Tunisian, and 3 dialects of the western (Oranian), central (Algiersian), and eastern (Constantinian) regions of Algeria. We applied our approaches to the Maghreb dialect detection domain that contains a collection of 10-second utterances and we compared the performance precision gained against the dialect samples from a baseline GMM-UBM system and the ones from our own improved GMM-UBM system that uses a Reduced UBM algorithm. Our experiments show that our approaches significantly improve identification performance over purely acoustic features with an identification rate of 80.49%.\n\n### 1. Introduction\n\nOne of the key challenges in Arabic speech research is to find the differences between Arabic dialects. Most of the recent works on Arabic speech have addressed the problem of identifying or recognizing Modern Standard Arabic. A few studies have focused on Arabic dialects [1,2], but no research has been carried out for the west Arabic countries (Maghreb). Arabic Maghreb dialects differ from Modern Standard Arabic and each other in many dimensions of the linguistic spectrum, as well as morphologically, lexically, syntactically, and phonologically.\nOne of the guiding questions we used for our research was, can a speaker’s regional origin or regional dialect within a given language group be determined for a given small sample of his or her speech? Our aim was to identify the dialect of a speaker from among the following five Maghrebian ones: Moroccan, Tunisian, and three Algerian dialects of Oranian, Algiersian, and Constantinian.\nSince speakers with different dialects often pronounce some words differently and consistently alter certain phonemes, identifying the regional dialect prior to automatic speech identification allows to use more restricted pronunciation dictionary in decoding, which results will be in a reduced search space with a lower perplexity. However, no work in the speech topic literature has addressed the issues that are related to Maghrebian dialects.\nTo handle this problem, we improved an UBM-GMM identification system by reducing the Universal Background Model (UBM) of the system by using two approaches based on Support Vector Machines (SVMs) that were reduced to Minimal Enclosing Ball (MEB) problems using the fuzzy Cmean clustering method. The core idea of these two approaches is to adopt multi-class SVMs formulation and MEB formulation to reduce the size of the dataset by eliminating data out of the ball defined in the MEB.\nWe extracted Mel-Frequency Cepstral Coefficients (MFCCs) features from our own corpus (cf. Section 2) and then computed Shifted-Delta Cepstral (SDC) coefficients to identify the dialect of a regional speaker. We conducted a series of experiments to test our approach on spontaneous conversations in five different Arabic Maghreb dialects. We then compared the accuracy of the results of our improved UBM-GMM identification system to a baseline UBM-GMM identification system.\nIn this paper we defined the variables t, n, m, as follows:\n• t: index of frame, T : number of frames.\n\n• n: index of feature dimension, N: dimensionality of feature.\n\n• m: index of Gaussian component, M: number of Gaussian components.\n\nThe remainder of the paper is organized as follows: in the next three sections, we give some preliminaries where a review of the relevant research streams is provided. Then, Sections 2–4 are devoted to present the Maghrebian corpus, the Gaussian Mixture Model (GMM), and UBM MAP adaptation. Two approaches to reduce data based on MEBs are described in Section 5. In Section 6, we present our proposal of a dialect identification system based on UBM-GMM. In Section 7, we report on some of the empirical experiments that we conducted on our proper database. Finally, in Section 8, we give the conclusion, which summarizes the contributions of this work and outlines potential research opportunities in the realm of Maghreb dialects identification.\n\n### 2. Maghreb Dialect Corpus\n\nMaghreb refers to the Arabic geographical region, which includes Morocco, Tunisia, Algeria, and Western Libya. The Maghreb dialects are the languages that are spoken in the aforementioned countries, and relabeled by the majority of their speakers as Darija, meaning ‘dialect’. Since, France and Spain colonized the Maghreb region, the dialects of the latter combine many French and Spanish words with Arabic suffixes to form words. This form of Arabic is not written and is less static, as it changes frequently. The Maghreb dialects’ phonemes differ in that speakers make no distinction between short and long vowels.\nWhen training a system to identify dialects, it is important to use training and testing corpora under similar acoustic conditions. However, for our study, we used our own corpus of spontaneous speech issues from movies and TV shows, for which acoustic conditions are not similar to native artists’ speakers of the Arabic Maghreb Dialects. The corpus was made up of Moroccan, Tunisian, and three Algerian dialects (Oranian, Algiersian, and Constantinian). We used speech from:\n• 92 speakers (54.19 h) of the Moroccan conversational artists, holding out 25 speakers for testing.\n\n• 98 speakers (49.73 h) from the Oranian conversational artists, holding out 40 speakers for testing.\n\n• 125 speakers (51.32 h) from the Algiersian conversational artists, holding out 32 speakers for testing.\n\n• 80 speakers (45.18 h) from the Constantinian conversational artists, holding out 21 speakers for testing.\n\n• 130 speakers (53.73 h) from the Tunisian conversational artists, holding out 43 speakers for testing.\n\n### 3. Gaussian Mixture Model\n\nGMMs are widely used in many speech identification and recognition applications. They provide a convenient means of modeling complex probability distributions by representing the probability density function of a random variable with a sum of weighted Gaussians. We give a brief outline of the equations that we used to form our models .\nA GMM is a type of density model that represents a dialect or language model. It defines many different Gaussian distributions where each of them has its mean, variance, and weight in the GMM models. Suppose that M is the number of small Gaussian distributions to model. The GMM, the following equation attempts to model the probability density of a N-dimensional random vector x, by adding weighted combination of multivariate Gaussian densities:\n##### (1)\np(xλd)=Σm=1Mwmbm(x)\nby:\n##### (2)\nbm(x)=1(2π)N2Σm½exp{-12(x-μm)Σm-1(x-μm)}\nwhere wm represents the Gaussian mixture weights, μm represents the mean, and ∑m represents the diagonal covariance matrices with Σm=1Mwm=1.\nThe GMM is defined by the mixing of all components that represent the mean vector, covariance matrix, and weight for each model, as described below:\n##### (3)\nλ={λm}m=1M={wm,μm,Σm}m=1M\nIn a GMM-based dialect identification system, each dialect identified is modeled by mth order GMM parameter parameter λd = {wm,μm,∑m} m = 1,…, M. The model parameters λd for dialect d are estimated with an Expectation-Maximization (EM) algorithm by the spectral features X={xt}t=1T, which are extracted from a collection of speech utterances spoken in a dialect d.\nGMM parameters are defined by using maximum likelihood training estimation, such as:\n##### (4)\nλd=argmaxλm{Πt=1Tp(xtλm)}\nEM algorithm estimates maximum likelihood parameters. The basic idea is first based on initializing the model and then on estimating the model using a function such that the new model represents better parameters. After each dialect training, we obtained the mean, covariance, and weight of each Gaussian component. The algorithm consists of two main steps: the expectation E-step and the maximization M-step. The E-step set of parameters are calculated using the current complete data likelihood function of the expected value, while the M-step is carried out by maximizing the expected function to get the new parameters. The E-step and M-step follow an iterative process until convergence.\nFirst, we defined Q as:\n##### (5)\nQ(λm,λ^m)=Σm=1Mlog p(xλm)[p(xλ^m)]\nwhere, m is the number of Gaussian component, λm is the current model parameter, and λ̄m is the new parameter.\n##### EM Algorithm\nE-step: calculate p(x|λm) where x={xt}t=1T\nM-step: maximise Q function, and solve the Q(λm, λ̂m) coresponding to {wm,μm,Σm}m=1M, then\n##### (6)\nw^m=Σt=1Tp(xtλm)Σm=1MΣt=1Tp(xtλm)\n##### (7)\nμ^m=Σt=1Tp(xtλm)xtΣm=1MΣt=1Tp(xtλm)\n##### (8)\nΣ^m=Σt=1Tp(xtλm)(xt-μm)(xt-μm)Σm=1MΣt=1Tp(xtλm)\nDuring the identification step, an unknown speech utterance X, is classified following the average log likelihood calculation produced by the dialect model, which is given by:\n##### (9)\np(Xλd)=1TΣt=1Tlog p(xtλd)\nThe maximum-likelihood classifier hypothesis H is calculated as:\n##### (10)\nH=arg maxd=1,,Dp(Xλd)\nGenerally, GMMs do not tend to capture temporal dependencies satisfactorily. Hence, the introduction of Shifted Delta Coefficient that represents the acoustic features allows an acceptable performance . The excellent language identification performances [6,7] establish the GMMs as a major language identification approach.\n\nThe EM algorithm estimates the UBM and dialect model in a similar way. However, to reduce computation and to improve performance when only a limited number of training utterances are available, we propose the use of a Bayesian maximum a posteriori (MAP) adaptation.\nThe MAP principle differs from maximum likelihood as it assumes the parameters λd of the distribution p(X|λd) such that a random variable has a prior distribution p(λd). The MAP principle states that we should select λ̂d, where the posterior probability density of the latter is maximized, as:\n##### (11)\nλ^d=arg maxλdp(λdX)=arg maxλdp(Xλd)p(λd)\nUsing MAP for dialect model adaptation usually means that the prior distribution for the dialect model parameters is represented by the world model parameters . Moreover, by using a global parameter to tune the relative importance of the prior distribution we can further do simplification without having a loss in performance. Based on the posterior probability of Gaussian m, we calculate ŵm, μ̂m, and Σ̂m which are the new weights, means, and diagonal covariance matrices that correspond, respectively, to the weights, means, and diagonal covariance matrices in the world model.\nThe posterior probability is defined as follows:\n##### (12)\nP(mxt)=wmbm(xt)p(xtλd)=wmbm(xt)Σm=1Mwmbm(xt)\nAdaptation, for all parameters of Gaussian m, is done as follows:\n##### (13)\nw^m=αΣt=1TP(mxt)T+(1-α)wm\n##### (14)\nμ^m=αΣt=1TP(mxt)xtΣt=1TP(mxt)+(1-α)μm\n##### (15)\nΣ^m2=αΣt=1TP(mxt)xt2Σt=1TP(mxt)+(1-α)(Σm2+μm2)-μ^m2\nFor each mixture and each parameter, a data dependent adaptation coefficient α is used in the above equations and is defined as:\n##### (16)\nα=Σt=1TP(mxt)(Σt=1TP(mxt))+r\nwhere r, is a fixed relevance factor.\n\n### 5. Reducing Data Based on MEBs\n\nThis section presents two approaches based on L2-SVMs that have been reduced to MEB problems using the fuzzy C-mean clustering method. The algorithms for computing L2-SVMs based on the MEB equivalence used the greedy computation of a Core-Set, which is a typically small data subset that provides the same MEB as the full dataset. Therefore, we formulated a new multi-class SVM problem using Core-Sets to reduce large datasets, which can optimally match the input demands of different background architectures of language or dialect identification systems. The core idea of these two approaches is to adopt a multi-class SVMs formulation and MEB in order to reduce dataset so that the data located far from the ball data that was defined in the Core-Set are eliminated.\n\n### 5.1 L2-Support Vector Machines\n\nGiven a training data set S=(X,Y)={(xt,yt)}t=1T where xt ∈ ℝN and yt ∈{+1, −1}, SVMs address the problem of binary classification by building a hyperplane in a feature space Z=φ(X)={zt=φ(xt)}t=1T that is implicitly induced from X by means of a kernel function k(xt,xt), which computes the dot products ztzt=φ(xt)φ(xt) in Z directly on X (cf. Fig. 1.(b)). The L2-SVM chooses the separating hyperplane f(z) by solving the following quadratic program:\n##### (17)\nminw,b,ρ,ξ12(w2+b2+CΣt=1Tξt2)-ρst:ytf(zt)ρ-ξt         t=1,,T\nAfter introducing Lagrange multipliers, the problem to solve is equivalent to:\n##### (18)\nminαΣt=1TΣtTαtαtKttst:αt0,Σt=1Tαt=1\nwhere, Ktt=ytytk(xt,xt)+ytyt+δttC, δtt′ is the Kronecker delta function and k(xt,xt′) implements the dot-product ztzt.\nThe optimal value is determined using model selection techniques and depends on the degree of noise and overlap among the classes . With respect to Karush-Kuhn-Tucker (KKT) conditions, the hyperplane parameters are recovered as w=Σt=1Tytαtzt and b=Σt=1Tαtyt. Note that the solution finally depends only on the examples for αi 0, which are called the support vectors.\n\n### 5.2 Minimal Enclosing Balls\n\nIn , it is shown that the main appeal of the L2-SVM implementation is that it supports a convenient reduction to a MEB problem when the kernel used in the SVM is normalized, that is, k(x,x)=κxX where κ in which is a constant. The advantage of this equivalence is that the Badoiu and Clarkson algorithm can efficiently approximate the solution of a MEB problem with any degree of accuracy.\nIf the training data set is S={z˜t}t=1T then let a space be equipped with a dot product z˜tz˜t that corresponds to the norm ||||2 =z̃′ z̃. As such, we define the ball ℬ (c, R) of the center c and radius R in ℝ as the subset of points , for which ||c||2R2. The MEB of a set of points S={t: tT} in is in turn the ball ℬ*(S, c*,R*) of the smallest radius that contains S (cf Fig. 1(a)), that is, the solution to the following optimization problem is:\n##### (19)\nminR,cR2st:z˜-c2R2z˜S\nAfter introducing Lagrange multipliers, we obtained the following dual problem, with respect to the optimality conditions, which is as follows:\n##### (20)\nminαΣt=1TΣt=1Tαtαtz˜tz˜t-Σt=1Tαtz˜tz˜tst:αt0,Σt=1Tαt=1\nif we consider that ΣtTαtz˜tz˜t=κ is a constant, as supposed in the above L2-SVM formulation, we can drop it from the dual objective in Eq. (17) and obtain a simpler QP problem of:\n##### (21)\nminαΣt=1TΣt=1Tαtαtz˜tz˜tst:αt0,Σt=1Tαt=1\nIn , it is shown that the primal variables c and R can be recovered from the optimal α as: c=Σt=1Tαtz˜t,R=Σt=1TΣt=1Tαtαtz˜tz˜t.\n\n### 5.3 Core-Set Definition\n\nBadoiu and Clarkson define the Core-Set of S as a set CSS where the MEB computed over CS is equivalent to the MEB considering for all of points included in S. A ball ℬ(c, R) is said an ε-approximation to the MEB ℬ*(S, c*, R*) of S if RR* and it contains S up to precision ε, that is: S ⊂ ℬ (c,(1+ε)R). Consequently, a set CS,ε is called an ε-Core-Set if the MEB of CS,ε is an ε-approximation to ℬ*(S, c*,R*) (cf. Fig. 2).\nIf we consider S to be a set of T points in ℝN, R and is the radius of MEB(S), then, there exists a subset CSS such that:\n• ➢ The center c(CS)MEB(CS) of satisfiesd (z,c(CS))≤(1+ε)R, ∀ zS, such that a subset CS is a Core-Set of S for MEB. Then, a Core-Set is a subset CS of S such that:\n\n• The size of CS does not depend on d\n\n• The solution for CS can then approximate the solution for S.\n\nε-Core-Set: The solution for CS is within ε of the solution for S.\nNext we present the most usual version of the algorithm used in .\n##### Algorithm 1\nBãdoiu-Clarkson Algorithm\n 1: Initialize the core-set CS,ε. 2: Compute the minimal-enclosing-ball ℬ (CS, c, R) of the core-set CS,ε. 3: while A point z̃ ∈ S out of the ball ℬ (C, c, (1+ε)R) exist do 4: Include z̃ in CS,ε. 5: Compute the minimal-enclosing-ball ℬ (CS, c, R) of the core-set CS,ε. 6: end while\nIn , it is proved that the algorithm of Bãdoiu and Clarkson is a greedy approach that is used to find a ε-Core-Set of S, which converges in no more than O(1ɛ) iterations. Since each iteration adds only one point to the Core-Set, the final size of the Core-Set is also O(1ɛ). Hence, the accuracy/complexity tradeoff of the obtained solution monotonically depends on ε.\n\n### 5.4 Multi-Class Extensions\n\nIn a multi-class problem, the samples {xt} belong to a set of L categories c ∈{cl; lL} with L>2 and hence, the two ‘codes’ +1 and −1 used to denote the two sides of a separating hyperplane are no longer enough to implement a decision function.\nThere are two types of extensions to build multi-class SVMs [13,14]. The first is the One-Versus-One (OVO) approach, which uses several binary classifiers that are separately trained and joined into a multi-category decision function. The second is the One-Versus-All (OVA) approach where a different binary SVM is used to separate each class from the all other classes.\nIn , it is shown that multi-class extension of L2-SVMs preserves the data reduction to a MEB problem, which is the key requirement of our algorithms that improve the Maghreb dialects identification system, as detailed in the section below.\nLet the training dataset be S={(xt,yt)}t=1T, where xt ∈ ℝN and yt ∈ ℝL for some integers. We have T training points whose labels are vector valued. For a given training task having L classes, these label vectors are chosen out of the defined set of vectors {y1, y2,…,yT}. Now, for the inputs z=φ(x), the primal objective function for the learning problem can be defined as:\n##### (22)\nminα12(W2+b2+CΣt=1Tξt2)-ρst:yi(Wz+b)ρ-ξt20         t=1,,T\nSeveral selections are possible for the norm ||W||2. A common choice is the so-called Frobenius norm ||W||2 =trace(W′W). Hence, the dual of the optimization problem obtained after introducing Lagrange multipliers is:\n##### (23)\nminαΣt=1TΣt=1TαtαtKttst:αt0,Σt=1Tαt=1\nwhere Ktt=ytytk(xt,xt)+ytyt+δttC, δtt′ is the Kronecker delta function and k(xt,xt′) implements the feature dot products ztzt.\nHence, the primal solutions W, b, are obtained with respect to the Karush-Kuhn-Tucker (KKT) conditions on Eq. (22) as W=Σt=1Tαtytzt and b=Σt=1Tαtyt. Note that in this formulation, the selection of the codes used to represent the classes is arbitrary. The decision mechanism determines the code, which is more similar to the code recovered by the operator W that is arg maxl=1,,Lyl(Wz+b). So, the decision function predicting one of the labels from 1,..., L for any test zt is expressed as:\n##### (24)\narg maxl=1,,Lytl,(Wzt+b)=arg maxl=1,,L(Σt=1T(αtytyt(ztzt+1)))\nNow, the arising question is about choosing the label vectors. We defined ytl ∈ ℝ from . Let ytl denote the lth element of the label vector yt corresponding to zt. One of the convenient ways is to choose ytl as:\n##### (25)\nytl=[(L-1)Lifztbelongstocategoryl1L(L-1)otherwise\nThen the inner product between the vectors will be:\n##### (26)\nyt,yt=[1ifztandztisofsameclass(3L-4)L(L-1)otherwise\n\n### 5.5 MEB and Multi-Class L2-SVMs Equivalence\n\nNow the computation of the MEB is in feature space =φ(X), which has been induced from X by the mapping function φ: X where we can compute the dot products in directly from X by using a kernel function k˜(xt,xt)=φ(xt)φ(xt)=z˜tz˜t. In addition, we suppose that the kernel is normalized, i.e., ∀ xX, (x,x)=κ for example: with κ ∈ ℝ a constant.\nAs seen above, the optimization problem Eq. (17) is equivalent to solve the following quadratic program:\n##### (27)\nminαΣt=1TΣt=1TαtαtK˜ttst:αt0,Σt=1Tαt=1   t=1,2,,T\nwhere, tt′ =k(xt,xt′). This problem coincides with the binary L2-SVM problem shown in Eq. (23) that was obtained from the dual objective in Eq. (18) and its multi-class implementation in Eq. (21). As seen above, for the binary case, we set k˜(xt,xt)=ytytk(xt,xt)+ytyt+δttC, while in the multi-category case, we set k˜(xt,xt)=ytytk(xt,xt)+ytyt+δttC. The key requirement of the latter equivalence is the normalization constraint on (x,x)=κ.\n\n### 5.6 Data Reduction Approaches\n\nThe key idea of our method is to cast a L2-SVM as a MEB problem that has been reduced in a Core-Set by using a feature space =φ(X), where the training examples are embedded through the mapping of φ. Hence, we first formulated an algorithm to compute the MEB of the images of S in when S is decomposed in a collection of subsets Sp. Then, we instantiated the solution for classifiers supporting the reduction to MEB problems (cf. Fig. 3).\nOur proposed algorithm is based on the idea of computing Core-Sets", null, "for each set p =φ(Sp) and taking union of all the Core-Sets", null, "= ∪p", null, "as an approximation to a Core-Set for = ∪p Sp. Algorithm 2 depicts the generic procedure. In the first step, the algorithm extracts a Core-Set for each subset Sp. In the second step, the MEB of the union of the Core-Sets is computed.\nThe decomposition of S in a collection of subsets Sp by the fuzzy C-means clustering method allows one piece of data to belong to two or more clusters. This algorithm was developed by Dunn and improved by Bezdek [17,18], and it aims to find the optimal number of clusters for a clustering data.\n##### Algorithm 2\nComputation of the MEB of =φ(S)\n Require: A partition of the set S based fuzzy C-mean clustering [17,18] in a collection of subsets Sp 1: for Each subset Sp, p=1,…,P do 2: Compute a ε-core-set Cp for one of the two instantiation 3: end for 4: Join the core-sets C=C1∪...∪Cp 5: Compute the minimal enclosing ball of C. This is the Minimal Enclosing Ball of S̃ that define the reduced datasets.\nAs shown in the previous sections, the kernel k˜(xt,xt)=ytytk(xt,xt)+ytyt+δttC for the binary case (OVO approach) and the kernel k˜(xt,xt)=ytytk(xt,xt)+ytyt+δttC in the multi-category case (OVA approach).\nSo, for both the binary (OVO) and multi-category (OVA) multi-class cases, an instantiation of the Algorithm 2 would consist of computing Core-Sets for the subset of examples belonging to each pair of classes, joining them, and finally recovering Algorithm 3 and Algorithm 4, respectively.\n##### Algorithm 3\nComputation of the MEB using OVO approach\n 1: for Each subset Sp, p=1,…,P do 2: for Each Class l=1,…,L–1 do 3 for Each Class l′=l+1,…,L do 4: Let Spll′ the subset of Sp corresponding to class l and l′. 5: Label Spll′ using the standard binary codes +1 and −1 for class l and l′ respectively 6: Compute a core-set Cpll′ of Spll′ Using the kernel k˜(xt,xt′)=ytyt′k(xt,xt′)+ytyt′+δtt′C 7: end for 8: end for 9: Take the union of the core-set inferred for each pair of classes Cp=Cpll′ ∪…∪ Cpll′ 10: end for 11: Join core-set CS =C1∪…∪ CP. 12: Compute the minimal enclosing ball of CS using the same kernel k̃\n##### Algorithm 4\nComputation of the MEB using OVA approach\n 1: for Each subset Sp, p=1,…,P do 2: Label each example xt ∈ Sp with the code ytp assigned to the class of xt and let yt such label 3 Compute a core-set Cp of Sp using the kernel k˜(xt,xt′)=yt′yt′k(xt,xt′)+yt′yt′+δtt′C 4: end for 5: Join the core-sets CS =C1∪…∪ CP. 6: Compute the minimal enclosing ball of CS using the same kernel k̃\n\n### 6. An UBM-GMM Based Dialect Identification System\n\nA UBM is a GMM representing the characteristics of all the different dialects processed by the dialect identification system. Instead of training dialect dependent models separately, these models are created later by employing Bayesian adaptation from the UBM using the dialect-specific training speech. Any test observations not covered by the models would typically not discriminate up on of any particular dialect identification models.\nThe UBM technique significantly increases the number of mixtures of the GMM, as well as the dimension of the feature vector; thereby, making it possible to model the characteristics of each dialect more accurately.\nFor our experiments, we introduced two systems. The first one was used as a baseline, as illustrated in Fig. 4. The second one was an improved system of the first one and was augmented by the reduced data following both the Algorithm 3 and Algorithm 4 applied to the UBM, as illustrated in Fig. 5.\nFor both of the systems, the mixture components of an adapted model of each dialect shared a certain correspondence with the UBM (System 1) or Reduced UBM (System 2), as each model was adapted from the same information. Therefore, the average log-likelihood score for the dialect-adapted models was computed by only scoring the top 10 significant mixtures. According to the correspondence of mixtures between the UBM or Reduced UBM and the model of the dialects, these significant mixtures can be obtained by selecting models mixtures from the UBM or Reduced UBM that have the highest score. By employing this mixture testing strategy, we obtained a significantly reduced computation of scores.\nA universal dialect independent background model is created to use a portion of the training data from all dialects. Then, by using MAP adaptation, all of the dialect models were trained by adapting models obtained from the UBM or Reduced UBM and the identification was performed in the same manner as defined above in the previous section. An advantage of employing UBMs in dialect identification systems is the significant reduction of the quantity of training data.\nThe implementation issue is simple. For each test feature vector and from all UBM mixtures, we determine the top 10 highest scoring mixtures. Using the fact that each dialect model was adapted from the UBM or from the Reduced UBM, the calculation of the dialect model likelihood only required the testing of the 10 mixtures that correspond to the top 10 mixtures from the UBM . By employing this approach to the dialect identification system, the score computation complexity was improved, as shown below:\nGiven that both the GMM and UBM have M mixtures, we chose to test the top N mixtures for D dialects. The number of mixture tests (Nbmixture) was:\nNbmixture=M+(N×D)\nAlternatively, for the standard GMM system with all mixture tests, the number of mixture tests was:\nNbmixture=M×D\nIn our case, we tested five dialects using a 512 GMM mixture and determined the top 10 mixtures from the adapted models. Only the Nbmixture =512+(10×5)=562 mixture tests compared to Nbmixture =512×5=2560 mixture tests for the standard GMM system showed an improvement computation of up to 500%. One of the pitfalls of this method is the possible degradation of accuracy.\n\n### 7. Experiments\n\nWe used our own database for all of the experiments described in this paper, as described in Section 2. Prior to automatic dialect identification, the speech signals are first pre-processed by the zero frequency filtering (ZFF) method . The ZFF method is robust against various degradations since most of the frequency components have been attenuated and computed from the speech signal s(n), as:\n##### (28)\nx(n)=s(n)-s(n-1)\nThe ZFF is based on difference the speech signal to remove any time-varying low frequency noise of speech signals.\n\n### 7.1 Parameterization\n\nFrom the 10 seconds of training and test utterance sets, we extracted vectors composed of 39 dimensional features, which consisted of 12 MFCCs derived from 20 filter banks. Each feature vector was extracted at 10 millisecond intervals using a 30 millisecond Hamming window limited band (300–3,400 Hz) speech. In the first stage, an utterance based on cepstral mean subtraction was applied to the features to remove channel distortion. Then, based on the cepstral feature, we computed 12 SDC coefficients. SDC computations are controlled by four parameters (N,d,P,k), as discussed in [6,7]. For our study, we used the (10,1,3,3) SDC parameter configuration. The SDC parameterization has been chosen for usage by many researchers on a series of development tests.\n\n### 7.2 Reducing Data\n\nThere are two key topics for conducting a reducing data from a systematic series of experiments. For the first topic, we used the system that was based on reduced data that was taken from Algorithm 3 (multi-class OVO approach). For the second topic, we used the system that was based on reduced data that was taken from Algorithm 4 (multi-class OVA approach). We used the fuzzy C-mean clustering algorithm for both approaches.\n\n### 7.3 Training\n\nIn order to train the UBM, the training data from all of the dialects was pooled together. Since this increases the training set size, the trained UBM will have a higher number of Gaussian Mixtures than GMMs trained on individual dialects.\nWe trained 512 gender-independent mixtures from each UBM with diagonal covariance matrices. The kernel that we used for the two algorithms (OVO and OVA approaches) was the Gaussian Radial Basis Function with 0.50, a fixed value of σ. The MAP adaptation in training was only done on the mean vectors from the UBM with a relevance factor r of 16.\n\n### 7.4 Testing\n\nThe purpose of the test was to find the maximum score for dialect identification. In this process, five clusters with the mixture order from 2 to 512 were created for each Maghrebian dialect. For each test sample, the SDC coefficients were calculated and compared with each of the five clusters for a mixture order from 2, 4, 8, and 16 to 512. The test sample belonged to the cluster having the higher score. A precision was calculated for each dialect using the formula Precision=(Corect/Total)×100, where Corect defined the number of samples that were correctly classified and Total was the total number of samples given for testing.\nThree key topics conduct a systematic series of experiments. For the first topic, we used the first system baseline. For the second and the third topics, we used the second system with Reduced UBM that was taken Algorithm 3 (multi-class OVO approach) or Algorithm 4 (the multi-class OVA approach), respectively. Then, the dialect identification performance was used as a function of the different training and testing sets. Finally, we compared the accuracy of dialect identification for both of the systems. As shown in Tables 13, we show the percentage precision for the five dialects for different mixtures.\nOur results showed that the system based on reduced GMM-UBM from the OVA multi-class L2-SVM outperformed the GMM-UBM baseline with a precision rate of 74.99%, as compared to 72.84%. The system based on reduced GMM-UBM from the OVO multi-class L2-SVMs exhibited the best performance with a precision rate of 80.49%.\n\n### 8. Conclusion\n\nOur study was on the Arabic Maghrebian dialect for the purpose of automatic identification. No other studies have been carried out on this before. In this paper, we have introduced two multi-class SVMs approaches reduced to MEB algorithms for improving a baseline GMM-UBM dialect identification system that automatically identifies acoustic differences between dialects by reducing the data in UBM and eliminating the data that is outside the ball defined by the MEB.\nWe have proposed two algorithms to compute an approximation formulation to the MEB for a given finite set of vectors. Both algorithms are especially well suited for large-scale instances of the MEB problem and can compute a small Core-Set whose size only depends on the approximation parameter.\nIn addition, it is important to note that Gaussians affected by the MAP adaptation conduct to high performance of the system, as shown in our experiments.\nWe conducted a series of experiments to test our approach on five Arabic Maghrebian dialects of spontaneous conversations and to compare our results to those of the baseline system. The system based on the multi-class SVM OVO approach outperformed the other approaches.\nBy comparing our OVO and OVA approaches applied to the dialect identification system to corresponding baseline system, we obtained an improvement of dialect identification, in absolute precision, of 80.49% for the first and 74.99% for the second.\n\n### Biography\n\nNour-Eddine Lachachi\nHe is an Assistant Master in Computer Science at Oran University, Algeria. He received his State Engineering in 1988 from Study and Research Center on Computer Science, Algiers, and his Magister in Computer Science from Oran University. Currently, he is a doctor student. His research has focused on automatic spoken dialect identification and recognition.", null, "### Biography\n\nHe is a Full Professor in Computer Science at University of Oran, Algeria. He received his Ph.D. in Computer Science, Artificial Intelligence from Paul Sabatier University Toulouse III, France. He received also a State Doctorate in Computer-Aided Design and Simulation from University of Oran in 2007. He has published papers on collaborative decision making, decision support systems (DSS), distributed group DSS and multi-agents DSS. His research interests focus on group DSS, facilitation, cooperative and collaborative systems, organizational memory and multiagent decision support systems.", null, "### References\n\n1. K. Kirchhoff, and D. Vergyri, \"Cross-dialectal acoustic data sharing for Arabic speech recognition,\" in Proceedings of IEEE International Conference on Acoustics, Speech, and Signal Processing (ICASSP'04), Montreal, 2004, pp. 765-768.", null, "2. D. Vergyri, K. Kirchhoff, VRR. Gadde, A. Stolcke, and J. Zheng, \"Development of a conversational telephone speech recognizer for Levantine Arabic,\" in Proceedings of Interspeech, Lisbon, Portugal, 2005, pp. 1613-1616.\n\n3. L. Nour-Eddine, and A. Abdelkader, \"Reduced universal background model for speech recognition and identification system,\" in Pattern Recognition, Heidelberg: Springer, 2012, pp. 303-312.", null, "4. JA. Bilmes, in A gentle tutorial of the EM algorithm and its application to parameter estimation for Gaussian mixture and hidden Markov models, International Computer Science Institute, Berkeley, CA, TR-97-021: 1998.\n\n5. PA. Torres-Carrasquillo, E. Singer, MA. Kohler, RJ. Greene, DA. Reynolds, and JR. Deller Jr, \"Approaches to language identification using Gaussian mixture models and shifted delta cepstral features,\" in Proceedings of the 7th International Conference on Spoken Language Processing (ICSLP), Denver, CO, 2002.\n\n6. PA. Torres-Carrasquillo, TP. Gleason, and DA. Reynolds, \"Dialect identification using Gaussian mixture models,\" in Proceedings of the Speaker and Language Recognition Workshop (ODYSSEY), Toledo, Spain, 2004.\n\n7. E. Wong, and S. Sridharan, \"Methods to improve Gaussian mixture model based language identification system,\" in Proceedings of the 7th International Conference on Spoken Language Processing (ICSLP), Denver, CO, 2002.\n\n8. JL. Gauvain, and CH. Lee, \"Maximum a posteriori estimation for multivariate Gaussian mixture observations of Markov chains,\" IEEE Transactions on Speech and Audio Processing, vol. 2, no. 2, pp. 291-298, 1994.", null, "9. DA. Reynolds, TF. Quatieri, and RB. Dunn, \"Speaker verification using adapted Gaussian mixture models,\" Digital Signal Processing, vol. 10, no. 1, pp. 19-41, 2000.", null, "10. VN. Vapnik, in The Nature of Statistical Learning Theory, New York: Springer, 1995.\n\n11. IW. Tsang, JT. Kwok, and PM. Cheung, \"Core vector machines: fast SVM training on very large data sets,\" Journal of Machine Learning Research, vol. 6, pp. 363-392, 2005.\n\n12. M. Badoiu, and KL. Clarkson, \"Optimal core-sets for balls,\" Computational Geometry, vol. 40, no. 1, pp. 14-22, 2008.", null, "13. L. Nour-Eddine, and A. Abdelkader, \"Multi-class support vector machines methodology,\" in Proceedings of the 1st International Congress on Models, Optimization, and Security of Systems (ICMOSS), Algeria, 2010.\n\n14. CW. Hsu, and CJ. Lin, \"A comparison of methods for multiclass support vector machines,\" IEEE Transactions on Neural Networks, vol. 13, no. 2, pp. 415-425, 2002.", null, "15. S. Asharaf, MN. Murty, and SK. Shevade, \"Multiclass core vector machine,\" in Proceedings of the 24th International Conference on Machine Learning (ICML), Corvallis, OR, 2007, pp. 41-48.", null, "16. S. Szedmak, and J. Shawe-Taylor, \"Multiclass learning at one-class complexity,\" in School of Electronics and Computer Science, University of Southampton, UK: 2005.\n\n17. JC. Dunn, \"A fuzzy relative of the ISODATA process and its use in detecting compact well-separated clusters,\" Journal of Cybernetics, vol. 3, no. 3, pp. 32-57, 1973.", null, "18. JC. Bezdek, in Pattern Recognition with Fuzzy Objective Function Algorithms, New York: Plenum Press, 1981.\n\n19. J. McLaughlin, DA. Reynolds, and TP. Gleason, \"A study of computation speed-UPS of the GMM-UBM speaker recognition system,\" in Proceedings of the 6th European Conference on Speech Communication and Technology (EUROSPEECH), Budapest, Hungary, 1999, pp. 1215-1218.\n\n20. KSR. Murty, and B. Yegnanarayana, \"Epoch extraction from speech signals,\" IEEE Transactions on Audio, Speech, and Language Processing, vol. 16, no. 8, pp. 1602-1613, 2008.", null, "##### Fig. 1\n(a) Minimal Enclosing Ball. (b) L2-Support Vector Machine.", null, "##### Fig. 2\nThe inner circle is the MEB of the set of squares and its (1+ε) expansion (the outer circle) covers all the points. The set of squares is thus a Core-Set.", null, "##### Fig. 3\nVisualization of learning process. Getting global MEB through three steps.", null, "##### Fig. 4\nGMM-UBM dialect identification system (baseline).", null, "##### Fig. 5\nImproved GMM-UBM dialect identification system.", null, "##### Table 1\nAccuracy percentage for five dialects for baseline UBM-GMM system\nMixture model 2 4 8 16 32 64 128 256 512\nMoroccan 54.28 63.11 65.88 70.08 68.87 70.21 70.33 71.43 71.67\nOranian 62.77 55.23 54.93 63.17 65.33 65.15 69.53 69.93 70.54\nAlgiersian 45.67 59.13 62.73 64.83 64.98 66.94 67.12 67.78 67.85\nConstantinian 48.03 60.34 67.27 67.93 69.01 69.41 71.83 72.16 72.18\nTunisian 62.57 68.25 72.33 72.91 76.16 76.22 80.91 81.39 81.95\n##### Table 2\nAccuracy percentage for five dialects for reduced UBM-GMM system (OVA approach)\nMixture model 2 4 8 16 32 64 128 256 512\nMoroccan 56.08 67.33 68.93 73.93 74.06 74.89 75.14 75.55 75.78\nOranian 63.23 58.67 59.43 64.37 65.19 70.88 71.33 71.93 72.13\nAlgiersian 49.11 61.17 64.58 65.43 65.79 68.16 68.83 69.87 70.18\nConstantinian 51.07 60.28 68.57 69.23 71.88 72.09 72.97 73.19 73.83\nTunisian 65.19 69.35 74.53 74.72 76.46 77.03 81.86 82.19 83.02\n##### Table 3\nAccuracy percentage for five dialects for reduced UBM-GMM system (OVO approach)\nMixture model 2 4 8 16 32 64 128 256 512\nMoroccan 63.83 68.32 71.54 76.19 78.03 78.93 82.32 82.55 83.92\nOranian 64.56 65.27 67.94 68.15 72.73 73.26 75.13 75.19 76.22\nAlgiersian 53.34 62.41 66.17 68.73 69.37 72.11 72.19 74.27 77.67\nConstantinian 55.07 63.28 70.39 72.57 73.13 74.61 76.55 77.38 78.58\nTunisian 68.14 71.73 76.23 79.19 81.66 82.95 83.65 85.85 86.07" ]
[ null, "http://jips.jatsxml.org/upload//thumbnails/jips-11-1-21f8.gif", null, "http://jips.jatsxml.org/upload//thumbnails/jips-11-1-21f9.gif", null, "http://jips.jatsxml.org/upload//thumbnails/jips-11-1-21f10.gif", null, "http://jips.jatsxml.org/upload//thumbnails/jips-11-1-21f6.gif", null, "http://jips.jatsxml.org/upload//thumbnails/jips-11-1-21f7.gif", null, "http://jips.jatsxml.org/image/icon/bnr_ref_cross.gif", null, "http://jips.jatsxml.org/image/icon/bnr_ref_cross.gif", null, "http://jips.jatsxml.org/image/icon/bnr_ref_cross.gif", null, "http://jips.jatsxml.org/image/icon/bnr_ref_cross.gif", null, "http://jips.jatsxml.org/image/icon/bnr_ref_cross.gif", null, "http://jips.jatsxml.org/image/icon/bnr_ref_cross.gif", null, "http://jips.jatsxml.org/image/icon/bnr_ref_cross.gif", null, "http://jips.jatsxml.org/image/icon/bnr_ref_cross.gif", null, "http://jips.jatsxml.org/image/icon/bnr_ref_cross.gif", null, "http://jips.jatsxml.org/upload//thumbnails/jips-11-1-21f1.gif", null, "http://jips.jatsxml.org/upload//thumbnails/jips-11-1-21f2.gif", null, "http://jips.jatsxml.org/upload//thumbnails/jips-11-1-21f3.gif", null, "http://jips.jatsxml.org/upload//thumbnails/jips-11-1-21f4.gif", null, "http://jips.jatsxml.org/upload//thumbnails/jips-11-1-21f5.gif", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8757941,"math_prob":0.94249445,"size":39126,"snap":"2020-34-2020-40","text_gpt3_token_len":10827,"char_repetition_ratio":0.13578038,"word_repetition_ratio":0.043052208,"special_character_ratio":0.2585493,"punctuation_ratio":0.13893016,"nsfw_num_words":1,"has_unicode_error":false,"math_prob_llama3":0.97746927,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"im_url_duplicate_count":[null,2,null,2,null,2,null,2,null,2,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,2,null,2,null,2,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-08-14T13:16:20Z\",\"WARC-Record-ID\":\"<urn:uuid:09ffb41b-729f-4b18-a155-e3e6e980768c>\",\"Content-Length\":\"184973\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:00fcce5f-2544-40f9-a393-43d37599635b>\",\"WARC-Concurrent-To\":\"<urn:uuid:940d01df-0cc8-4ba7-b5e1-8ad34fe2b0da>\",\"WARC-IP-Address\":\"121.254.129.109\",\"WARC-Target-URI\":\"http://jips.jatsxml.org/Article/11/1/22\",\"WARC-Payload-Digest\":\"sha1:I7IKF6TEKAX2GIUCRR7HSO7CNA7S3ZS4\",\"WARC-Block-Digest\":\"sha1:VTNUOXFNQQVK3JBVVOCKEYZDFGKNE7KT\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-34/CC-MAIN-2020-34_segments_1596439739328.66_warc_CC-MAIN-20200814130401-20200814160401-00281.warc.gz\"}"}
https://puzzling.stackexchange.com/questions/84118/find-this-unique-uvc-palindrome-ignoring-signs-and-decimal-from-given-fractio
[ "# Find this Unique UVC Palindrome ( ignoring signs and decimal) from Given Fractional Relationship\n\nGiven:\n\nU, V, C are three distinct digits ( 0 to 9 ).\n\nUVVVV and CVVVV.U are concatenated numbers.\n\nDot “.” Stands for decimal.\n\nRelation:\n\n$$UVVVV/C= CVVVV.U$$\n\nFind U, V , C\n\n• hmm inspiration for a mathematical puzzle with t, o and m or t, 0 and m maybe... :-) – tom May 19 '19 at 16:31\n\n## Finding $$C$$\n\n1. If dividing an integer by $$C$$ gives a fraction with exactly one digit after the decimal point (note that $$U=0$$ doesn't work), then $$C$$ must be non-coprime with $$10$$, i.e. it must be one of $$2,4,5,6,8$$.\n\n2. If $$C\\geq45$$, then the right-hand side is more than $$40,000$$, and after multiplying by $$C$$ it won't be a 5-digit number any more. So we must have $$C=2$$.\n\n## Finding $$U$$ and $$V$$\n\n1. Since $$C=2$$, the division by $$C$$ must give $$U=5$$.\n\n2. Since $$UVVVV$$ divided by $$2$$ is not an integer, $$V$$ must be odd. Trying the possibilities in turn shows that $$V=9$$ is the only one which works.\n\n## Summary\n\n$$U=5,V=9,C=2$$. The equation is $$59999/2=29999.5$$.\n\n• C only has to be even (or 5) for part 1. – JMP May 19 '19 at 15:58\n• To be precise, the condition is that the prime factors of C contain 2 and/or 5. This makes the following numbers valid: 2,4,5,6,8. Point 2 can still get the right value with the same method. – Leo May 20 '19 at 1:42\n• @JonMarkPerry and Leo: Oops! Thanks for the tip; I modified my answer just slightly to take these possibilities into account. – Rand al'Thor May 20 '19 at 7:53\n• you can use $\\gcd(C,10)\\gt1$ for 'non-coprime' – JMP May 20 '19 at 8:03\n\n$$59999/2=29999.5$$\n\nbecause:\n\n$$C=1,2,3$$ due to RHS being $$\\sim C^2$$ in magnitude, which must be five digits. $$C=1$$ means $$U=0$$ which is impossible, and $$C=3$$ means $$(C\\times .U) \\pmod 1 \\equiv 0$$ which is also impossible. Therefore $$C=2, U=5$$.\n\nand then:\n\nWe now have$$\\frac{5VVVV}{2}=2VVVV.5$$ which leads to $$5000+\\frac{VVVV}{2}=VVVV.5$$ by cancelling $$20,000$$ from each side. So $$10000+VVVV=2VVVV+1$$ and then $$VVVV=9999$$, so $$V=9$$.\n\nOk so others have got there before me, but I have a slightly different way of approaching I think...\n\nC cannot be 1,3,7,9,0 because.. 1 would not give a decimal point, 3 7 9 would give more than one decimal point or no decimal points e.g. 2/3 = 0.66666etc., and we cannot conveniently divide by 0 - thus C must be 2,4,5,6,8\n\nnow\n\nC = U/C more or less because when the divide the first digit, U, by C we need to get C in the first column... Now for C=2 we could have U=4, but we can't have .4 at the end of the answer we need .5 so U must be 5 if C=2 - this works because 5VVVV/2 = 2VVVV.5 is possible if V is odd... but if we try C=4,5,6,8 we cannot find a single digit that will fit e.g. 8VVVV/4 = 2VVVV... and we need 4 at the front... thus for C>2 we cannot get the first digit to work - thus C=2 and U=5 (unless, of course, C=3 and U=9, but then we would not get the single digit after the decimal point at the end of number... )\n\nfinally\n\nBy inspection V=9 works if C=2 and U=5 and V=1,3,5,7 do not work (of course even V does not give .5 at the end) so we have $$59999/2=29999.5$$\n\nand\n\nthis works for any number of 9s in the middle... 5/2 = 2.5; 59/2 = 29.5;....; 59999999999/2 = 29999999999.5 etc.\n\n• $\\frac{33}{6}=5.5$ – JMP May 19 '19 at 16:32\n• @JonMarkPerry - oh rats... now I understand your comment above better... to the first answer -- answer edited to correct this – tom May 19 '19 at 16:33\n• @tom..sure..generating all infinite number of non-prime palindromes – Uvc May 19 '19 at 16:43" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8775483,"math_prob":0.99983066,"size":2727,"snap":"2020-45-2020-50","text_gpt3_token_len":942,"char_repetition_ratio":0.10135879,"word_repetition_ratio":0.112,"special_character_ratio":0.36817014,"punctuation_ratio":0.19034483,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9999685,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-11-25T11:25:16Z\",\"WARC-Record-ID\":\"<urn:uuid:651555c9-6c8b-42ed-b980-d69af75af9a2>\",\"Content-Length\":\"174828\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1a4f9391-fdef-46fa-8003-acfa4d87518f>\",\"WARC-Concurrent-To\":\"<urn:uuid:902aef11-c727-424d-864a-d5aa0e1acd9f>\",\"WARC-IP-Address\":\"151.101.193.69\",\"WARC-Target-URI\":\"https://puzzling.stackexchange.com/questions/84118/find-this-unique-uvc-palindrome-ignoring-signs-and-decimal-from-given-fractio\",\"WARC-Payload-Digest\":\"sha1:BJP4LM442MYNW2NDEOH2IPSYUP7TQRCF\",\"WARC-Block-Digest\":\"sha1:CBE6BWCAYDV5OWZX2VBO7AWLPKG5NUAL\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141182776.11_warc_CC-MAIN-20201125100409-20201125130409-00607.warc.gz\"}"}
https://www.mathworks.com/matlabcentral/answers/454278-solving-for-coefficients-in-polynomial?s_tid=prof_contriblnk
[ "# Solving for coefficients in polynomial\n\n1 view (last 30 days)\nBenjamin on 3 Apr 2019\nCommented: Matt J on 4 Apr 2019\nI have the following equation in MATLAB which solves for my coefficients:\nA45 = [(eta./eta_c).^(4:7).*(4:7)]\\(Z_MD - Zfixed); % Solve for the higher order coefficients. This is the norm solution.\nThis represents the summation part of this equation:", null, "I set the first 3 coefficients which is why it just goes from 4 to 7.\nAs you can see, since the equation is a sum over k*A_k*(eta./eta_c)^k. I believe the above equation solves for each A_k, correct? i think it does, but I'm not sure how it does it. The A_k's are not even in the MATLAB equation. How does it know to create these coeffs and solve for them?\nAlso, what if I wanted to have order 4-7 polynomial, but then I wanted to skip 8 and 9 and do 10? How would I do that?\nThe following does not work:\nA45 = [(eta./eta_c).^(4:7,10).*(4:7,10)]\\(Z_MD - Zfixed); % Solve for the higher order coefficients. This is the norm solution.\n\nMatt J on 4 Apr 2019\nEdited: Matt J on 4 Apr 2019\nHow does it know to create these coeffs and solve for them?\nIn Matlab, if you have a matrix equation M*x=z, you can solve for x by doing\nx=M\\z;\nIn the special case where M is a square non-singular matrix, this is similar to doing x=inv(M)*z, but better. This is all that the code you've posted is doing, for a particular choice of the matrix M and z.\nHow does it know how many x(i) to solve for? From the number of columns of the matrix M.\n##### 2 CommentsShow 1 older commentHide 1 older comment\nMatt J on 4 Apr 2019\nif you are assuming that A8, A9, A11-A21 are all zero, then yes, what you say is correct.\n\nWalter Roberson on 3 Apr 2019\nk = 4:7;\nA45 = [k .* A(k) .* (eta./eta_c).^k]\\(Z_MD - Zfixed); % Solve for the higher order coefficients. This is the norm solution.\nand you could also use k = [4:7, 10]\nBenjamin Cowen on 4 Apr 2019\nIt is a polynomial. Eta is the variable being squared, cubed, etc. I’m only caring about the summation term not the others, so it is a polynomial. Eta_c is a constant" ]
[ null, "https://www.mathworks.com/matlabcentral/answers/uploaded_files/211895/image.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.92008245,"math_prob":0.9679636,"size":2215,"snap":"2023-14-2023-23","text_gpt3_token_len":622,"char_repetition_ratio":0.11216644,"word_repetition_ratio":0.12345679,"special_character_ratio":0.29029346,"punctuation_ratio":0.14257425,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9996099,"pos_list":[0,1,2],"im_url_duplicate_count":[null,5,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-06-03T00:44:25Z\",\"WARC-Record-ID\":\"<urn:uuid:cf4ea643-34b4-4244-8e5a-c54fa4a69a4e>\",\"Content-Length\":\"166232\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:cec59e5c-d501-47ca-a197-52180cf6a9fe>\",\"WARC-Concurrent-To\":\"<urn:uuid:a636f5b0-305e-4ddf-bf90-1d7b970ef4b2>\",\"WARC-IP-Address\":\"23.47.9.84\",\"WARC-Target-URI\":\"https://www.mathworks.com/matlabcentral/answers/454278-solving-for-coefficients-in-polynomial?s_tid=prof_contriblnk\",\"WARC-Payload-Digest\":\"sha1:EAG6FUA5R7BW3ZT2XRBMFPMAIADK55SQ\",\"WARC-Block-Digest\":\"sha1:4ADQV33G5ALX423SNXYOTYTQGSKWB7GX\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224648911.0_warc_CC-MAIN-20230603000901-20230603030901-00194.warc.gz\"}"}
https://cheapautoinsurancewi.info/what-is-an-ounce-equal-to.php
[ "", null, "What is 1 Fluid Ounces in Cups?\n\nApr 05,  · One fluid ounce is equal to 1/8 of a cup or 2 tablespoons. There are 3 teaspoons in a tablespoon. One fluid ounce is also equal to 25 milliliters. It is difficult to measure 1 fluid ounce with a standard liquid measuring cup because there isn't typically a line that denotes 1/8 of a cup. Therefore, it's best to use measuring spoons, such as a teaspoon or tablespoon when measuring 1 fluid ounce. The Whole Grains Council (along with many other organizations) says “eat at least three 16g servings of whole grain every day” because ounce-equivalents may confuse some people. 16 grams vs. 28 grams (one ounce) An ounce is just over 28 grams. So which one is a serving — 16 grams or 28 grams?\n\nTo what is an ounce equal to 1 Fluid Ounces to the corresponding value in Cups, multiply the quantity in Fluid Ounces by 0. Fo this case we should multiply fqual Fluid Ounces by 0. The conversion factor from Fluid Ounces to Cups is 0. To find what is an ounce equal to how many Fluid Ounces in Cups, multiply by the conversion factor or use the Volume converter above.\n\nOne Fluid Ounces is equivalent to zero point one two five Cups. A fluid ounce abbreviated fl oz, fl. It is equal to about The fluid ounce is sometimes referred to simply as an \"ounce\" in applications where its use is implicit.\n\nThe cup is an English unit of volume, most commonly associated with cooking and serving sizes. Because actual drinking cups may differ greatly from the size of this unit, standard measuring cups are usually used instead.\n\nIn the How to change keyboard layout to uk States, the customary cup is half of a liquid pint or 8 U. One customary cup is equal to Unit Converter Amount. Definition of Fluid Ounce A fluid ounce abbreviated fl oz, fl. Definition of Cup The cup is an English unit of volume, most commonly associated with cooking and serving sizes.\n\nFacebook Twitter Whatsapp Messenger Pinterest. How to convert 1 Fluid Ounces to Cups? How many is 1 Fluid Ounces in Cups? What is ouncce Fluid Ounces in Cups? How much is 1 Fluid Ounces in Cups? How many cup are in 1 fl oz?\n\nHow to convert 1 fl oz to cup? How many is 1 fl oz in cup? What is 1 fl oz in cup? How much is 1 fl oz in cup?\n\nEnter two units to convert\n\nMeat • 1 ounce cooked lean beef • 1 ounce cooked lean pork or ham • 1 small steak (eye of round, filet) = 3? to 4 ounce equivalents • 1 small lean hamburger = 2 to 3 ounce equivalents Poultry • 1 ounce cooked chicken or turkey, without skin • 1 sandwich slice (4? x 2? x ? inches) turkey • 1 small chicken breast half = 3 ounce. Apr 23,  · OZ to ML Fluid ounce (oz) is equal to milliliters (mL). To convert fluid oz to mL, multiply the fluid oz value by How many oz in 1 ml? The answer is 1 ounce of water is approximately 2 tablespoons1 ounce of water is approximately 2 tablespoons How many tablespoons of chia seeds equal one ounce? 1 ounce (oz) of chia seed equals approximately\n\nPlease enable Javascript to use the unit converter. The answer is 1. We assume you are converting between US fluid ounce and ounce [US, liquid].\n\nYou can view more details on each measurement unit: fluid ounces or ounces The SI derived unit for volume is the cubic meter. Note that rounding errors may occur, so always check the results.\n\nUse this page to learn how to convert between fluid ounces and ounces. Type in your own numbers in the form to convert the units! You can do the reverse unit conversion from ounces to fluid ounces , or enter any two units below:.\n\nNote that this is a fluid ounce measuring volume, not the typical ounce that measures weight. It only applies for a liquid ounce in U. You can find metric conversion tables for SI units, as well as English units, currency, and other data. Type in unit symbols, abbreviations, or full names for units of length, area, mass, pressure, and other types.\n\nExamples include mm, inch, kg, US fluid ounce, 6'3\", 10 stone 4, cubic cm, metres squared, grams, moles, feet per second, and many more!\n\n#### 3 thoughts on “What is an ounce equal to”\n\n•", null, "###### Araramar\n28.07.2020 in 04:48\n\nHaha you caught me\n\n•", null, "###### JoJodal\n31.07.2020 in 21:07\n\nThis was an excellent video with great explanation of the config files. Thanks.\n\n•", null, "###### Kataur\n03.08.2020 in 02:28\n\nYeah same lmfaooo" ]
[ null, "https://alqurumresort.com/img/how-many-milliliters-are-in-1-fluid-ounce.png", null, "https://cheapautoinsurancewi.info/wp-content/img/1.png", null, "https://cheapautoinsurancewi.info/wp-content/img/1.png", null, "https://cheapautoinsurancewi.info/wp-content/img/1.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9138604,"math_prob":0.9563623,"size":4162,"snap":"2021-31-2021-39","text_gpt3_token_len":1017,"char_repetition_ratio":0.14766715,"word_repetition_ratio":0.06940874,"special_character_ratio":0.2371456,"punctuation_ratio":0.11188005,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9653175,"pos_list":[0,1,2,3,4,5,6,7,8],"im_url_duplicate_count":[null,1,null,3,null,3,null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-17T12:43:56Z\",\"WARC-Record-ID\":\"<urn:uuid:4f1e0bc1-a645-40f1-ab9b-8c32c6ac45f3>\",\"Content-Length\":\"24521\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ccb391bf-ea7d-49c5-bc1b-f95dfd0b802e>\",\"WARC-Concurrent-To\":\"<urn:uuid:eb22fefb-c7ea-49dc-a09c-2279acedb0b3>\",\"WARC-IP-Address\":\"172.67.156.182\",\"WARC-Target-URI\":\"https://cheapautoinsurancewi.info/what-is-an-ounce-equal-to.php\",\"WARC-Payload-Digest\":\"sha1:UUU7D3W4JOIO7XP5ICFKEBWGQD2NRSO3\",\"WARC-Block-Digest\":\"sha1:EULMWKTK3ERVKE24AIS33GDUM32S43SM\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780055645.75_warc_CC-MAIN-20210917120628-20210917150628-00102.warc.gz\"}"}
https://www.paddlepaddle.org.cn/documentation/docs/en/beginners_guide/basic_concept/lod_tensor.html
[ "# LoDTensor¶\n\n## 变长序列的解决方案¶\n\nSystem Message: WARNING/2 (/home/work/paddledoc/FluidDoc/doc/fluid/beginners_guide/basic_concept/lod_tensor.rst, line 12)\n\nTitle underline too short.\n\n```变长序列的解决方案\n================\n```\n\n## LoD 索引¶\n\n```3 1 2\n| | | | | |\n```\n\n```3 1 2\n3 2 4 1 2 3\n||| || |||| | || |||\n```\n\n```[[3,1,2]/*level=0*/,[3,2,4,1,2,3]/*level=1*/]\n```\n\n```3 1 2\n\n```\n\n```1 1 1 1 1\n\n```\n\n```口口口口 ... 口\n```\n\n## LoDTensor的偏移表示¶\n\n```3 2 4 1 2 3\n```\n\n```0 3 5 9 10 12 15\n= = = = = =\n3 2+3 4+5 1+9 2+10 3+12\n```\n\n```3 1 2\n```\n\n```0 3 4 6\n= = =\n3 3+1 4+2\n```\n\n```0 3 4 6\n3 5 9 10 12 15\n```\n\n## LoD-Tensor¶\n\n```3 1 2\n3 2 4 1 2 3\n||| || |||| | || |||\n```\n• 以偏移量表示此 LoD-Tensor:[ [0,3,4,6] , [0,3,5,9,10,12,15] ],\n\n• 以原始长度表达此 Lod-Tensor:recursive_sequence_lengths=[ [3-0 , 4-3 , 6-4] , [3-0 , 5-3 , 9-5 , 10-9 , 12-10 , 15-12] ]。\n\nrecursive_seq_lens 是一个双层嵌套列表,也就是列表的列表,最外层列表的size表示嵌套的层数,也就是lod-level的大小;内部的每个列表,对应表示每个lod-level下,每个元素的大小。\n\n• 创建 LoD-Tensor\n\n```#创建lod-tensor\nimport numpy as np\n\na = fluid.create_lod_tensor(np.array([,,,\n,,\n,,,,\n,\n,,\n,,]).astype('int64') ,\n[[3,1,2] , [3,2,4,1,2,3]],\nfluid.CPUPlace())\n\n#查看lod-tensor嵌套层数\nprint (len(a.recursive_sequence_lengths()))\n# output:2\n\n#查看最基础元素个数\nprint (sum(a.recursive_sequence_lengths()[-1]))\n# output:15 (3+2+4+1+2+3=15)\n```\n• LoD-Tensor 转 Tensor\n\n```import paddle.fluid as fluid\nimport numpy as np\n\n# 创建一个 LoD-Tensor\na = fluid.create_lod_tensor(np.array([[1.1], [2.2],[3.3],[4.4]]).astype('float32'), [[1,3]], fluid.CPUPlace())\n\ndef LodTensor_to_Tensor(lod_tensor):\n# 获取 LoD-Tensor 的 lod 信息\nlod = lod_tensor.lod()\n# 转换成 array\narray = np.array(lod_tensor)\nnew_array = []\n# 依照原LoD-Tensor的层级信息,转换成Tensor\nfor i in range(len(lod) - 1):\nnew_array.append(array[lod[i]:lod[i + 1]])\nreturn new_array\n\nnew_array = LodTensor_to_Tensor(a)\n\n# 输出结果\nprint(new_array)\n```\n• Tensor 转 LoD-Tensor\n\n```import paddle.fluid as fluid\nimport numpy as np\n\ndef to_lodtensor(data, place):\n# 存储Tensor的长度作为LoD信息\nseq_lens = [len(seq) for seq in data]\ncur_len = 0\nlod = [cur_len]\nfor l in seq_lens:\ncur_len += l\nlod.append(cur_len)\n# 对待转换的 Tensor 降维\nflattened_data = np.concatenate(data, axis=0).astype(\"float32\")\nflattened_data = flattened_data.reshape([len(flattened_data), 1])\n# 为 Tensor 数据添加lod信息\nres = fluid.LoDTensor()\nres.set(flattened_data, place)\nres.set_lod([lod])\nreturn res\n\n# new_array 为上段代码中转换的Tensor\nlod_tensor = to_lodtensor(new_array,fluid.CPUPlace())\n\n# 输出 LoD 信息\nprint(\"The LoD of the result: {}.\".format(lod_tensor.lod()))\n\n# 检验与原Tensor数据是否一致\nprint(\"The array : {}.\".format(np.array(lod_tensor)))\n```\n\n## 代码示例¶\n\n• 直观理解Fluid中 `fluid.layers.sequence_expand` 的实现过程\n\n• 掌握如何在Fluid中创建LoD-Tensor\n\n• 学习如何打印LoDTensor内容\n\nlayers.sequence_expand通过获取 y 的 lod 值对 x 的数据进行扩充,关于 `fluid.layers.sequence_expand` 的功能说明,请先阅读 cn_api_fluid_layers_sequence_expand\n\n```x = fluid.layers.data(name='x', shape=, dtype='float32', lod_level=1)\ny = fluid.layers.data(name='y', shape=, dtype='float32', lod_level=2)\nout = fluid.layers.sequence_expand(x=x, y=y, ref_level=0)\n```\n\n```place = fluid.CPUPlace()\nexe = fluid.Executor(place)\nexe.run(fluid.default_startup_program())\n```\n\n`fluid.create_lod_tensor()` 的使用说明请参考 cn_api_fluid_create_lod_tensor\n\n```x_d = fluid.create_lod_tensor(np.array([[1.1],[2.2],[3.3],[4.4]]).astype('float32'), [[1,3]], place)\ny_d = fluid.create_lod_tensor(np.array([[1.1],[1.1],[1.1],[1.1],[1.1],[1.1]]).astype('float32'), [[1,3], [2,1,2,1]],place)\n```\n\n```results = exe.run(fluid.default_main_program(),\nfeed={'x':x_d, 'y': y_d },\nfetch_list=[out],return_numpy=False)\n```\n\n```np.array(results)\n```\n\n```array([[1.1],[2.2],[3.3],[4.4],[2.2],[3.3],[4.4],[2.2],[3.3],[4.4]])\n```\n\n```results.recursive_sequence_lengths()\n```\n\n```[[1L, 3L, 3L, 3L]]\n```\n\n```#加载库\nimport numpy as np\n#定义前向计算\nx = fluid.layers.data(name='x', shape=, dtype='float32', lod_level=1)\ny = fluid.layers.data(name='y', shape=, dtype='float32', lod_level=2)\nout = fluid.layers.sequence_expand(x=x, y=y, ref_level=0)\n#定义运算场所\nplace = fluid.CPUPlace()\n#创建执行器\nexe = fluid.Executor(place)\nexe.run(fluid.default_startup_program())\n#创建LoDTensor\nx_d = fluid.create_lod_tensor(np.array([[1.1], [2.2],[3.3],[4.4]]).astype('float32'), [[1,3]], place)\ny_d = fluid.create_lod_tensor(np.array([[1.1],[1.1],[1.1],[1.1],[1.1],[1.1]]).astype('float32'), [[1,3], [1,2,1,2]], place)\n#开始计算\nresults = exe.run(fluid.default_main_program(),\nfeed={'x':x_d, 'y': y_d },\nfetch_list=[out],return_numpy=False)\n#输出执行结果\nprint(\"The data of the result: {}.\".format(np.array(results)))\n#输出 result 的序列长度\nprint(\"The recursive sequence lengths of the result: {}.\".format(results.recursive_sequence_lengths()))\n#输出 result 的 LoD\nprint(\"The LoD of the result: {}.\".format(results.lod()))\n```\n\n## FAQ:¶\n\n1. 可以使用 executor.run 将你需要查看的 variable fetch 出来,然后打印其 lod 信息,注意运行时设置 executor.run 方法的 return_numpy 参数为 False\n\n```results = exe.run(fluid.default_main_program(),\nfeed={'x':x_d, 'y': y_d },\nfetch_list=[out],return_numpy=False)\nlod_tensor = results\nprint (lod_tensor.lod())\n```\n1. 可以使用fluid.layers.Print()\n\n```y = fluid.layers.data(name='y', shape=, dtype='float32', lod_level=2)\n\nfluid.layers.Print(y)\n```" ]
[ null ]
{"ft_lang_label":"__label__zh","ft_lang_prob":0.6368943,"math_prob":0.9905588,"size":7577,"snap":"2021-04-2021-17","text_gpt3_token_len":3983,"char_repetition_ratio":0.14644131,"word_repetition_ratio":0.15210356,"special_character_ratio":0.31437245,"punctuation_ratio":0.21635312,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9969929,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-01-21T21:10:08Z\",\"WARC-Record-ID\":\"<urn:uuid:5d36608a-4d8f-4388-8d78-625adef5ce9e>\",\"Content-Length\":\"137759\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:82a4ccb1-f5ec-4a63-b7c0-8d37d1b27fb2>\",\"WARC-Concurrent-To\":\"<urn:uuid:7f05a8e6-12ca-495a-a6b3-b04c0edd4ec4>\",\"WARC-IP-Address\":\"180.76.58.84\",\"WARC-Target-URI\":\"https://www.paddlepaddle.org.cn/documentation/docs/en/beginners_guide/basic_concept/lod_tensor.html\",\"WARC-Payload-Digest\":\"sha1:3TV3I7NJMTHXKRSOHLNFL4KKBEB4MIU6\",\"WARC-Block-Digest\":\"sha1:E4NQXYMFOMGCN4LVYNPUKBL7ZZAUM2LD\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-04/CC-MAIN-2021-04_segments_1610703527850.55_warc_CC-MAIN-20210121194330-20210121224330-00203.warc.gz\"}"}
https://au.mathworks.com/matlabcentral/profile/authors/16043921?detail=all
[ "Community Profile", null, "# Le Huu Hai\n\nActive since 2019\n\n#### Statistics\n\n•", null, "•", null, "•", null, "•", null, "•", null, "•", null, "•", null, "•", null, "•", null, "#### Content Feed\n\nView by\n\nSolved\n\nSum of diagonal of a square matrix\nIf x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12\n\n2 years ago\n\nSolved\n\nToo mean-spirited\nFind the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...\n\n2 years ago\n\nSolved\n\nDistance walked 1D\nSuppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...\n\n2 years ago\n\nSolved\n\nFibonacci Decomposition\nEvery positive integer has a unique decomposition into nonconsecutive Fibonacci numbers f1+f2+ ... Given a positive integer n, r...\n\n2 years ago\n\nSolved\n\n(Linear) Recurrence Equations - Generalised Fibonacci-like sequences\nThis problem is inspired by problems <http://uk.mathworks.com/matlabcentral/cody/problems/2187-generalized-fibonacci 2187>, <htt...\n\n2 years ago\n\nSolved\n\nHow many Fibonacci numbers?\nFind the number of unique Fibonacci numbers (don't count repeats) in a vector of positive integers. Example: x = [1 2 3 4...\n\n2 years ago\n\nSolved\n\nPi Digit Probability\nAssume that the next digit of pi constant is determined by the historical digit distribution. What is the probability of next di...\n\n2 years ago\n\nSolved\n\nApproximation of Pi\nPi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...\n\n2 years ago\n\nSolved\n\nGiven a square and a circle, please decide whether the square covers more area.\nYou know the side of a square and the diameter of a circle, please decide whether the square covers more area.\n\n2 years ago\n\nSolved\n\nVolume Pillar\nCalculate the volume of a pillar with radius l and heigth ar.\n\n2 years ago\n\nSolved\n\nGiven input in radians, output to degrees\n\n2 years ago\n\nSolved\n\nPerimeter of a semicircle\nGiven the diameter d, find the perimeter of a semicircle\n\n2 years ago\n\nSolved\n\nPi Estimate 1\nEstimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>\n\n2 years ago\n\nSolved\n\nCalculate area of sector\nA=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...\n\n2 years ago\n\nSolved\n\nCell joiner\nYou are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...\n\n2 years ago\n\nSolved\n\nProject Euler: Problem 10, Sum of Primes\nThe sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...\n\n2 years ago\n\nSolved\n\nProject Euler: Problem 9, Pythagorean numbers\nA Pythagorean triplet is a set of three natural numbers, a b c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 =...\n\n2 years ago\n\nSolved\n\nProject Euler: Problem 8, Find largest product in a large string of numbers\nFind the greatest product of five consecutive digits in an n-digit number. 73167176531330624919225119674426574742355349194934...\n\n2 years ago\n\nSolved\n\nProject Euler: Problem 6, Natural numbers, squares and sums.\nThe sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...\n\n2 years ago\n\nSolved\n\nProject Euler: Problem 5, Smallest multiple\n2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smalle...\n\n2 years ago\n\nSolved\n\nProject Euler: Problem 4, Palindromic numbers\nA palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 ...\n\n2 years ago\n\nSolved\n\nProject Euler: Problem 3, Largest prime factor\nThe prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number being input, input might be ui...\n\n2 years ago\n\nSolved\n\nProject Euler: Problem 1, Multiples of 3 and 5\nIf we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...\n\n2 years ago\n\nSolved\n\nCircular Primes (based on Project Euler, problem 35)\nThe number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime. The...\n\n2 years ago\n\nSolved\n\nFind the next prime number\nFind the next prime number or numbers for given n. For example: n = 1; out = 2; or n = [5 7]; out = [7 11]; ...\n\n2 years ago\n\nSolved\n\nMake a vector of prime numbers\nInput(n) - length of vector with prime numbers Output(v) - vector of prime numbers Example: * n=1; v=2 * n=3; v=[2 3 5...\n\n2 years ago\n\nSolved\n\nLargest Twin Primes\n<http://en.wikipedia.org/wiki/Twin_prime Twin primes> are primes p1, p2 = p1 + 2 such that both p1 and p2 are prime numbers. Giv...\n\n2 years ago\n\nSolved\n\nMersenne Primes\nA Mersenne prime is a prime number of the form M = 2^p - 1, where p is another prime number. For example, 31 is a Mersenne prim...\n\n2 years ago\n\nSolved\n\nFind nearest prime number less than input number\nFind nearest prime number less than input number. For example: if the input number is 125, then the nearest prime number whi...\n\n2 years ago\n\nSolved\n\nSophie Germain prime\nIn number theory, a prime number p is a *Sophie Germain prime* if 2p + 1 is also prime. For example, 23 is a Sophie Germain prim...\n\n2 years ago" ]
[ null, "https://au.mathworks.com/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/16043921_1566923637203_DEF.jpg", null, "https://au.mathworks.com/images/responsive/supporting/matlabcentral/cody/badges/project_euler.png", null, "https://au.mathworks.com/images/responsive/supporting/matlabcentral/cody/badges/mathworks_generic_group.png", null, "https://au.mathworks.com/images/responsive/supporting/matlabcentral/cody/badges/japanese_cody_problems.png", null, "https://au.mathworks.com/images/responsive/supporting/matlabcentral/cody/badges/commenter.png", null, "https://au.mathworks.com/images/responsive/supporting/matlabcentral/cody/badges/promoter.png", null, "https://au.mathworks.com/images/responsive/supporting/matlabcentral/cody/badges/community_authored_group.png", null, "https://au.mathworks.com/images/responsive/supporting/matlabcentral/cody/badges/CUP_challenge_master.png", null, "https://au.mathworks.com/images/responsive/supporting/matlabcentral/cody/badges/introduction_to_matlab.png", null, "https://au.mathworks.com/images/responsive/supporting/matlabcentral/cody/badges/solver.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.75527775,"math_prob":0.9921625,"size":5675,"snap":"2022-05-2022-21","text_gpt3_token_len":1691,"char_repetition_ratio":0.19396932,"word_repetition_ratio":0.05160662,"special_character_ratio":0.29444933,"punctuation_ratio":0.15662651,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9994579,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],"im_url_duplicate_count":[null,2,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-19T17:57:55Z\",\"WARC-Record-ID\":\"<urn:uuid:ded4f99b-8fb2-49fa-99bc-a867ed1c28ee>\",\"Content-Length\":\"117518\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:bd0a2782-d4e7-4768-93bf-52441d850e86>\",\"WARC-Concurrent-To\":\"<urn:uuid:1cc7e516-119a-4d75-934e-a6cc907b58e6>\",\"WARC-IP-Address\":\"104.68.243.15\",\"WARC-Target-URI\":\"https://au.mathworks.com/matlabcentral/profile/authors/16043921?detail=all\",\"WARC-Payload-Digest\":\"sha1:X47EDZMQV37CHKK4L2QDYJKNHGDZ25OJ\",\"WARC-Block-Digest\":\"sha1:33GCPUK6YRJQVXDWSDNC2YEFRUGPYMNE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662529658.48_warc_CC-MAIN-20220519172853-20220519202853-00486.warc.gz\"}"}
https://calcitfast.com/decimal-to-octal/7164-decimal-to-octal
[ "# Octal value of 7164 decimal\n\n## Result\n\nDecimal number — 7164\n\nOctal number15774\n\n### Detailed\n\n1. 7164 / 8 = 895.5\n| 4 - remainder\n2. 895 / 8 = 111.8\n| 7 - remainder\n3. 111 / 8 = 13.8\n| 7 - remainder\n4. 13 / 8 = 1.6\n| 5 - remainder\n5. 1 / 8 = 0.1\n| 1 - remainder" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6278349,"math_prob":0.9908837,"size":303,"snap":"2022-05-2022-21","text_gpt3_token_len":126,"char_repetition_ratio":0.24749164,"word_repetition_ratio":0.028985508,"special_character_ratio":0.5313531,"punctuation_ratio":0.10526316,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.953797,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-21T02:41:45Z\",\"WARC-Record-ID\":\"<urn:uuid:1bd69c9d-92c6-4d4d-a4e3-253cffe67b68>\",\"Content-Length\":\"29833\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8387f9ba-613c-4a6a-be38-1bcadf1231ee>\",\"WARC-Concurrent-To\":\"<urn:uuid:a023fa73-a4c7-4665-986a-c914f6726992>\",\"WARC-IP-Address\":\"104.21.49.17\",\"WARC-Target-URI\":\"https://calcitfast.com/decimal-to-octal/7164-decimal-to-octal\",\"WARC-Payload-Digest\":\"sha1:N3NTFED4D3BUUOUM2LUJY5UBVJSDA34B\",\"WARC-Block-Digest\":\"sha1:Q5YXYJBVYLCC6O66PXAYS72NW5MKTSY7\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662534773.36_warc_CC-MAIN-20220521014358-20220521044358-00384.warc.gz\"}"}
http://acm.zju.edu.cn/onlinejudge/showContestProblem.do?problemId=3529
[ "Welcome to ZOJ", null, "Contests Information Problems Runs Statistics Ranklist Clarification", null, "83 - ZOJ Monthly, September 2009 - E\nSecret Code\n\nTime Limit: 1 Second      Memory Limit: 32768 KB\n\nWhen you want to send a message, could you imagine what would happen if you don't encrypt it? The Hackers may get your information, which may be critical for you such as your bank account and password. So we try to encrypt the message into \"Secret Code\" before sending it. But now your task is not to encrypt the message, but to \"operate\" on the \"Secret Code\".\n\nFirst of all, I will tell you how we encrypt a single small letter C into the \"Secret Code\" (Note that we only take small letters into consideration).\n\n1. We could get a value A from C by the following expression.\n\nA = Fun(C); //Here Fun(C) generates an integer in the range[1, 2^31 - 1] associated with C, but we don't care what the function's expression is;\n\n2. Let B = Fun2(theASCIIvalueOf(C)), note theASCIIvalueOf('a') is 97 and Fun2(theASCIIvalueOf(C)) generates an integer in the range[1, 2^31 - 1] associated with theASCIIvalueOf(C), but we don't care what the function's expression is;\n\n3. Calculate D = AB mod P, here P is a given integer.\n\n4. D is the \"Secret Code\" for the small letter C.\n\nNow I will tell you how to \"operate\" the \"Secret Code\": Find all the numbers that satisfy the following rules:\n\n1. Ax = D (mod P)\n\n2. 0 <= x <= M, here M is a given integer.\n\nNow your task is so simple: you are given A, P, D and M, please tell me the number of numbers that satisfy the two rules above.\n\nInput\n\nThere are multiply cases (<30), process to the end of file.\n\nEvery case contains only four integers indicating A, P, D, M (1 <= A, P < 2^31, 0 <= D < P, 1 <= M < 2^63).\n\nOuput\n\nFor each case, you should output a single line indicates the answer as describe above.\n\nSample Input\n\n```2 16 8 10\n5 10 5 11\n```\n\nSample Output\n\n```1\n11\n```\n\nHint\n\nIn case 1, the number is 3. In case 2, the numbers are: 1, 2, 3 ... 10, 11. All of them satisfy the rules.\n\nAuthor: CHEN, Hong\nSource: ZOJ Monthly, September 2009\nSubmit    Status" ]
[ null, "http://acm.zju.edu.cn/onlinejudge/image/arrow_sub2.gif", null, "http://acm.zju.edu.cn/onlinejudge/image/cpc_acm.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8968914,"math_prob":0.97114605,"size":1883,"snap":"2019-26-2019-30","text_gpt3_token_len":536,"char_repetition_ratio":0.097924426,"word_repetition_ratio":0.071428575,"special_character_ratio":0.30642593,"punctuation_ratio":0.1498829,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9933554,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-06-17T20:48:08Z\",\"WARC-Record-ID\":\"<urn:uuid:a09ade10-541b-4204-b92e-8093a5f5db51>\",\"Content-Length\":\"7957\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:9ee6f14d-c9f8-452c-960e-de9e4cf6ea9c>\",\"WARC-Concurrent-To\":\"<urn:uuid:a3040e7e-0b0d-4f4c-bf6a-945046d4a244>\",\"WARC-IP-Address\":\"210.32.0.220\",\"WARC-Target-URI\":\"http://acm.zju.edu.cn/onlinejudge/showContestProblem.do?problemId=3529\",\"WARC-Payload-Digest\":\"sha1:QNB25DJ3YDLM3NANRHPB5YQTFRJFCONP\",\"WARC-Block-Digest\":\"sha1:GCTEC6MRKH62QZ4X6IPYBEH5M2FPWNRK\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-26/CC-MAIN-2019-26_segments_1560627998580.10_warc_CC-MAIN-20190617203228-20190617225228-00228.warc.gz\"}"}
https://www.mygeekytutor.com/tutorials-the-normal-distribution-and-the-central-limit-theorem.php
[ "## Statistics Tutorials: The Normal Distribution and the Central Limit Theorem\n\n$f\\left( x \\right)=\\frac{1}{\\sqrt{2\\pi {{\\sigma }^{2}}}}\\exp \\left( -\\frac{{{\\left( x-\\mu \\right)}^{2}}}{2{{\\sigma }^{2}}} \\right)$\n\n### Manipulating the Normal Distribution\n\n$\\int\\limits_{-\\infty }^{\\infty }{\\frac{1}{\\sqrt{2\\pi {{\\sigma }^{2}}}}\\exp \\left( -\\frac{{{\\left( x-\\mu \\right)}^{2}}}{2{{\\sigma }^{2}}} \\right)dx}=1$\n\n$\\int\\limits_{-\\infty }^{\\infty }{\\frac{x}{\\sqrt{2\\pi {{\\sigma }^{2}}}}\\exp \\left( -\\frac{{{\\left( x-\\mu \\right)}^{2}}}{2{{\\sigma }^{2}}} \\right)dx}=\\mu$\n\nand\n\n$\\int\\limits_{-\\infty }^{\\infty }{\\frac{{{x}^{2}}}{\\sqrt{2\\pi {{\\sigma }^{2}}}}\\exp \\left( -\\frac{{{\\left( x-\\mu \\right)}^{2}}}{2{{\\sigma }^{2}}} \\right)dx}={{\\mu }^{2}}+{{\\sigma }^{2}}$\n\n### Standard Normal Distribution and Z-scores\n\n$Z=\\frac{X-\\mu }{\\sigma }$\n\n$Z=\\frac{X-\\mu }{\\sigma}$\n\n$X-72<75.5-72$\n\n$\\frac{X-72}{8}<\\frac{75.5-72}{8}$" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.88551176,"math_prob":1.0000069,"size":8552,"snap":"2019-13-2019-22","text_gpt3_token_len":2142,"char_repetition_ratio":0.16389799,"word_repetition_ratio":0.023993809,"special_character_ratio":0.26262861,"punctuation_ratio":0.10262828,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000044,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-03-24T05:44:45Z\",\"WARC-Record-ID\":\"<urn:uuid:614f3a1e-6267-415f-b6a9-1a19f4931148>\",\"Content-Length\":\"34564\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6ba13f49-18a3-4577-b0b1-c5084b31b0d2>\",\"WARC-Concurrent-To\":\"<urn:uuid:67a7018a-7cfa-48dc-bca4-0476126252f9>\",\"WARC-IP-Address\":\"107.161.23.28\",\"WARC-Target-URI\":\"https://www.mygeekytutor.com/tutorials-the-normal-distribution-and-the-central-limit-theorem.php\",\"WARC-Payload-Digest\":\"sha1:VTYTPNMMFB4FMRAO4ZJQWIWGLJM4BZVE\",\"WARC-Block-Digest\":\"sha1:7A6O2JOBKELAKRJLZDI3ERTDEHJG3M7F\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-13/CC-MAIN-2019-13_segments_1552912203326.34_warc_CC-MAIN-20190324043400-20190324065400-00379.warc.gz\"}"}
http://www.voidcn.com/article/p-faxsdczm-byz.html
[ "# STA462/562 R\n\nSTA462/562 R HW- 2 (20pts) Name___________________\n\nIn this homework, you will apply knowledge from Chapters 7 & 8 in the analysis of the real data. A failure to submit both RMD and HTML (or pdf) files on Canvas will automatically result is a 10-pounts penalty.\nQ1. (5pts)\nIn the R-demo shown in class, we used the data on infant birthweight collected at Baystate Medical Center, Springfield, Mass during 1986. The data is stored in R library MASS\nLibrary(MASS)\ndata(birthwt)\na)Develop a confidence interval for a proportion of babies born from smoking mothers.\nb)Provide the formula for pivotal quantity used in computation of this interval. Provide a formula for the 95% CI of the true proportion.\nc)Develop a confidence interval for a proportion of babies born from nonsmoking mothers.\nd)Find the confidence interval for the difference between proportions of babies born for these two groups.\ne)Define the pivotal quantity used in d).\nUse R to answer all of the questions above.\n\nQ2. (5pts)\nUse the same data set as in Q1 to develop the estimators of the mean and median for baby’s weight (use only smoking mothers).\na)Develop a sampling distribution of the mean using bwt variable. Use a bootstrap.\n\nSTA462/562作业代做\nb)Develop a sampling distribution of the median using bwt variable. Use a bootstrap.\nc)Compute bias, MSE, and 95% CI for a)\nd)Compute bias, MSE, and 95% CI for b)\ne)Summarize your findings. Minimum 5 full sentences are required.\nUse R to answer all of the questions above.\n\nQ3. (5pts)\nUse the same data set as in Q1 to develop an estimators of the 95% quantile of weights (bwt) . Use only nonsmoking mothers.\na)Develop a sampling distribution of this estimator. Use a bootstrap.\nb)Compute bias, MSE, and 95% CI for a)\nUse R to answer all of the questions above.\n\nQ4. (5pts)\nWrite a paragraph (min 5 full sentences) reflection on how this homework helped you understand concepts presented in Chapter 7 and Chapter 8.\n\n欢迎关注本站公众号,获取更多程序园信息", null, "" ]
[ null, "http://open.weixin.qq.com/qr/code", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7879154,"math_prob":0.8359318,"size":2020,"snap":"2020-34-2020-40","text_gpt3_token_len":523,"char_repetition_ratio":0.109623015,"word_repetition_ratio":0.17378049,"special_character_ratio":0.24851485,"punctuation_ratio":0.0964467,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9879046,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-25T07:14:33Z\",\"WARC-Record-ID\":\"<urn:uuid:55b9609d-23be-4707-86db-320858b8e126>\",\"Content-Length\":\"29339\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a4af76a2-fdf8-44ab-a492-8f745e102224>\",\"WARC-Concurrent-To\":\"<urn:uuid:42d46848-b951-4137-b6ed-29679603e9ac>\",\"WARC-IP-Address\":\"47.92.138.19\",\"WARC-Target-URI\":\"http://www.voidcn.com/article/p-faxsdczm-byz.html\",\"WARC-Payload-Digest\":\"sha1:AQSX6QTAU5ITKCXXHTWSGZNGNJDTOBE6\",\"WARC-Block-Digest\":\"sha1:7JQSU23R353G74T46RHAQCHB7KRZZV34\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400222515.48_warc_CC-MAIN-20200925053037-20200925083037-00208.warc.gz\"}"}
https://discusstest.codechef.com/t/wamu-ltc2016/14524
[ "", null, "# PARHI AND MULTIPLICATION– EDITORIAL\n\nTester and Editorialist: subhasis10\n\nand Practice\n\nDIFFICULTY: CAKEWALK\n\nPREREQUISITES: Modulo operation\n\nPROBLEM:\n\nGiven an array of integers [A1,A2,…An], we have to multiply them and print the result.\n\nEXPLANATION:\n\nMultiplication of N integers is a trivial operation and can be performed easily. But since each element again is of larger size a Long variable of C/C++ will be unable to allocate it. Hence the trick is to reduce the range by using the MOD operator. Since the property of the mod operator keeps the result in the range of 0-(MOD-1) we use this property to reduce the large number in each step of multiplication.\n\n### CODE:\n\n```#include\n#define ll long long int\nll a,ans,i,n;\n#define M 1000000007\nint main()\n{\nint t;\nscanf(\"%d\",&t);\nwhile(t-- )\n{\nscanf(\"%d\",&n);\nans=1;\nfor(i=0;i<n;i++)\n{\nscanf(\"%lld\",&a[i]);\na[i]=a[i]%M;\nans=ans*a[i];\nans=ans%M;\n}\nans=ans%M;\nprintf(\"%lld\\n\",ans);\n}\nreturn 0;\n}```\n//" ]
[ null, "https://s3.amazonaws.com/discoursestaging/original/2X/4/45bf0c3f75fc1a2cdf5d9042041a80fa6dd3106b.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7108447,"math_prob":0.97187567,"size":980,"snap":"2021-31-2021-39","text_gpt3_token_len":280,"char_repetition_ratio":0.09631147,"word_repetition_ratio":0.0,"special_character_ratio":0.2887755,"punctuation_ratio":0.17209302,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99111164,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-08-04T11:58:36Z\",\"WARC-Record-ID\":\"<urn:uuid:e23e8808-8c6b-45fb-a24d-7ba2555c6923>\",\"Content-Length\":\"12487\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:65152c09-c2ae-4dbc-a6d6-592b464befa7>\",\"WARC-Concurrent-To\":\"<urn:uuid:140ba32f-3ab7-4d7e-ba05-b2d6ed92a985>\",\"WARC-IP-Address\":\"54.165.214.21\",\"WARC-Target-URI\":\"https://discusstest.codechef.com/t/wamu-ltc2016/14524\",\"WARC-Payload-Digest\":\"sha1:MTSUNK4OQKDU4MJY4SBMJ6R5BDSPSDH3\",\"WARC-Block-Digest\":\"sha1:IHI2J6DSH22RHV4M3WM7M7W7V2CIXB7O\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-31/CC-MAIN-2021-31_segments_1627046154805.72_warc_CC-MAIN-20210804111738-20210804141738-00112.warc.gz\"}"}
https://propulsion2016.com/earth-and-sun/how-to-find-the-speed-of-earth-as-it-orbits-the-sun.html
[ "#### How To Find The Speed Of Earth As It Orbits The Sun?\n\nBecause speed is equal to the product of the distance traveled divided by the time required, the Earth’s speed may be estimated by dividing 584 million miles (940 million km) by 365.25 days and dividing the result by 24 hours to obtain miles per hour or kilometers per hour.\nWhat evidence did Galileo use to demonstrate that the Earth revolves around the Sun?\n\n• In 1610, Galileo used his first basic telescope to discover that Venus had phases similar to the Moon, which he thought was a coincidence. This was in direct opposition to the belief that everything revolved around the Earth, and it provided more proof that the Earth revolves around the Sun. The fact that Jupiter has four main moons that orbit it was also discovered by Galileo.\n\n## How does the speed of the earth change as it revolves around the sun?\n\nThe Earth rotates around the Sun at an average speed of around 29.78 km/s (18.51 mi/s), which is approximately 0.01 percent the speed of light. This really changes significantly because the Earth travels around the Sun in an elliptical orbit, moving faster during perihelion (when it is closest to the Sun) and slower at aphelion (when it is farthest from the Sun) (farthest from the Sun).\n\nYou might be interested:  Where Does The Direct Ray Of The Sun Strike The Earth On June 15? (TOP 5 Tips)\n\n## What is the angular speed of the earth as it revolves around the sun?\n\nThe following is the reasoning: The earth revolves around the sun once per year. The following are the specifics of the calculation: (a) The angular speed of the earth in its orbit around the sun is 2 degrees per year = 2 degrees per (365*24*60*60 s) = 2*10-7 degrees per second.\n\n## How are orbits calculated?\n\nAccording to the orbit formula, r = (h 2 / 1 + e cos e), the location of body m2 in its orbit around m1 is determined by the actual anomaly and is given by r = (h 2 / e).\n\n## Is the Earth’s orbit around the sun changing?\n\nThe Earth’s orbit is eccentric, which means that it has shifted frequently over the course of history. Our planet’s axial tilt and precession are constantly altering as a result of the gravitational pull of planets such as Jupiter, Mars, Venus, and other stars. And over millennia, its orbit shifts between circular and elliptical routes in a complicated series of reversals.\n\n## How do you find angular speed?\n\nWhen applied to time, the Angular Speed Formula computes the distance that the body has traveled in terms of revolutions or rotations relative to the time it has taken. It is claimed to be symbolized by the letter or symbol and is calculated as follows: Angular speed = total distance traveled divided by total time spent.\n\n## How do you find the angular velocity of an orbit?\n\nThis may be calculated using the formula s = r x. (where s is the length of the arc, r is the radius and the angle). As a result, if we know the radius of the Earth’s orbit (1.5x1011m), we can replace the angular velocity from our previous equation to obtain v = x r, which is the formula for angular velocity (where v is the velocity, the angular velocity and r the radius).\n\nYou might be interested:  What Happens To The Tides If The Earth Moon And Sun Are All In A Line Quizlet? (Correct answer)\n\n## What is the angular speed of Earth?\n\nIt takes our planet approximately 365.25 days to complete one rotation around the Sun. radians per second = 1.99 x 10-7 radians 1.99 x 10-7 radians per second corresponds to the Earth’s angular speed.\n\n## How do you find the orbit of a planet?\n\nThe orbital period may be determined by examining the amount of time that passes between transits. Using Kepler’s Third rule, if the mass of the orbiting star is known, it is possible to calculate the orbital radius of the planet (R3=T2Mstar/Msun, where the radius is measured in AU and the period is measured in earth years).\n\n## What is the speed of a satellite orbiting at that height?\n\nIn order to maintain orbit, a satellite must move at a very high velocity, which varies depending on the height of the satellite. As a result, for a circular orbit at a height of 300 kilometers above the Earth’s surface, a speed of 7.8 kilometers per second (28,000 kilometers per hour) is normally required. The spacecraft will complete one orbit around the Earth in 90 minutes if it continues at current rate.\n\n### Releated\n\n#### What Type Of Eclipse Occurs When The Earth, Moon, And Sun Are Lined? (TOP 5 Tips)\n\nA lunar eclipse can only occur when the moon is completely full. A total lunar eclipse can only occur when the sun, Earth, and moon are perfectly aligned – anything less than ideal results in a partial lunar eclipse or no eclipse at all if the sun, Earth, and moon are not properly aligned. 5 […]\n\n#### Where On Earth Is It Possible For The Sun To Be Above The Horizon For Several Weeks? (Correct answer)\n\nHow long does it take for the Sun to disappear fully below the horizon? The greatest durations of time when the Sun is fully below the horizon for places inside the polar circles range from zero a few degrees beyond the Arctic Circle and Antarctic Circle to 179 days at the Poles. Contents1 Where on […]" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9322052,"math_prob":0.9675274,"size":4550,"snap":"2022-27-2022-33","text_gpt3_token_len":1040,"char_repetition_ratio":0.16717994,"word_repetition_ratio":0.12605043,"special_character_ratio":0.2378022,"punctuation_ratio":0.08934338,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99161917,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-18T05:06:32Z\",\"WARC-Record-ID\":\"<urn:uuid:40bce1e6-a16d-4d79-a35c-e2b58649428f>\",\"Content-Length\":\"46282\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:fa0df2e3-0490-4f16-8893-15432c2dfc1d>\",\"WARC-Concurrent-To\":\"<urn:uuid:3f85ba31-8a76-4cd6-bbd1-70f9806af9c6>\",\"WARC-IP-Address\":\"104.21.86.186\",\"WARC-Target-URI\":\"https://propulsion2016.com/earth-and-sun/how-to-find-the-speed-of-earth-as-it-orbits-the-sun.html\",\"WARC-Payload-Digest\":\"sha1:UZYGHZCLRBNIIQPCTFZ4DSELS3JGY32D\",\"WARC-Block-Digest\":\"sha1:RFWFH6CR5OT26VEMA5CVRWF5V7RRSZUC\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882573163.7_warc_CC-MAIN-20220818033705-20220818063705-00772.warc.gz\"}"}
https://www.keep-current.dev/discriminator-rejection-sampling/
[ "Written by Michael (Mike) Erlihson, Ph.D.\n\nThis review is part of a series of reviews in Machine & Deep Learning that are originally published in Hebrew, aiming to make it accessible in a plain language under the name #DeepNightLearners.\n\nGood night friends, today we are again in our section DeepNightLearners with a review of a Deep Learning article. Today I've chosen to review the article Rethinking Attention with Performers\n\n### Reviewer Corner:\n\nReading recommendation From Mike: A must for GAN lovers, quite recommended for everyone else ;)\nClarity of writing: Medium-plus\nMath and Deep Learning knowledge level: Good understanding in GAN training, basic knowledge in sampling methods, such as Rejection Sampling.\nPractical applications: Improve generated image quality with GANs\n\n### Article Details:\n\nPublished on: 26/02/2019 on Arxiv\nPresented at: ICLR 2019\n\n### Article Domains:\n\n• Sample generation methods using trained GANs research\n\n### Mathematical Tools, Concepts, and Marks:\n\n• GANs\n• Rejection Sampling\n\n### The Article in Essence:\n\nThe article offers a method to improve the quality of generated images by a trained GAN while taking advantage of the accumulated \"information\" in the Discriminator (D) during the GAN training process. D is trained to distinguish between the generated images by the generator G to the original ones from the training set. D outputs the probability that the input image is a real one (from the training set). The article suggests using the image distribution, non implicitly held by D, to fix the image distribution held in G (the generated images), hence improving the generated image quality.\n\n### The Basic Idea:\n\nWhen D is trained well enough, it holds such a distribution over the image space that carries these attributes:\n\n• Images that are similar to real photos receive a higher probability scores.\n• Weird or unreal generated photos get lower probability scores.\n\nIt's more logical to sample from D's distribution because then there's a higher probability that we receive 'real-like images. But how can one sample from this distribution, when it is not intractable?\n\nTo overcome this difficulty, the authors are using samples from G with a sampling technique called Rejection Sampling, to sample from the D distribution.", null, "Figure 1: Left: For a uniform proposal distribution and Gaussian target distribution, the blue points are the result of rejection sampling and the red points are the result of naively throwing out samples for which the density ratio (pd(x)/pg(x)) is below a threshold. The naive method underrepresents the density of the tails. Right: the DRS algorithm. KeepTraining continues training using early stopping on the validation set. BurnIn computes a large number of density ratios to estimate their maximum. De∗ is the logit of D∗ . Fˆ is as in Equation 8. M¯ is an empirical estimate of the true maximum M.\n\n### The article in brief:\n\nWhen examining this idea deeper, one may question its efficiency. In theory, any valuable information contained in D's weights should have been transferred to G during the training. After all, the whole idea of GAN is based on transporting information from D to G through the GAN loss function gradient. However, there are several reasons why not all the accumulated data in D is transported to G.\n\n1. These GAN training assumptions don't always happen. For example, both D and G have a limited capacity, and it's not always possible to transmit all the information from one to another through the network weights.\n2. There may be situations when it is easier for D to distinguish between right and wrong distributions based on the samples rather than modeling correct distribution in D.\n3. The most simplistic reason: the GAN may not be trained enough time for G to model its genuine distribution. The training process has ended before all the information is transformed from D to G.\n\nLet's begin with a short explanation about rejection sampling, which is the core of the article idea.\n\n### Rejection Sampling (RS)\n\nRS is a technique to sample from a probability distribution, Pd, where direct sampling is hard or even impossible (e.g., when the distribution is implicit). Instead, we sample from another distribution, Pg, which is defined on the same space. But we can only sample from Pg if there is some constant M, which bounds the maximal ratio between the values of Pd and Pg. Here how it works:\n\nWe sample a point y from Pg, and we calculate the value of Pd at that y point. This Pd(y) is divided by M multiplied by Pg(y): t=Pd(y) / M*Pg(y). Sample y is accepted with the probability t and rejected with the probability 1-t.\n\nWe mark as Pd and Pg the distributions of D and G accordingly. But how can we perform RS if we can't explicitly calculate neither Pg nor Pd? The trick is that we only need to calculate the ratio, not the values that lead to it. The article states that under specific conditions (\"ideal conditions\") on Pd and Pg, one can accurately sample Pd through Pg.\n\n### ideal conditions\n\n1. Pd and Pg have the same supporting set - both are not equal to 0 at the same points.\n2. The constant M (the maximum ratio between Pd and Pg) is known or calculable.\n3. For a given generator G a discriminator D can be trained so that the GAN loss value is minimized to the absolute theoretical minima (this value equals LOG(4)). It is, of course, impossible since the sizes of the datasets and the length of the training are finite.\n\nUnder these conditions, the article shows that one can sample from Pd through Pg using RS. The formula for the ratio of Pd and Pg, in this case, includes the logit exponent of the optimal discriminator D*. This optimal D* is defined as such for which the loss function reaches the absolute minima. The proof is quite elegant and uses the formula for the optimal value of D* at the point x which equals the ratio `Pd(x) / ( Pd(x)+Pg(x) )` for G, marked as D*(x).\n\nOf course, non of these conditions exist in real. The article suggests a method to perform RS despite the nonexistence of these ideal conditions.\n\nFor conditions 1) and 3), the article argues that a well-trained D is a good approximation of D*. When D is trained in such a way that prevents it from overfitting - using regularization, early stopping, etc., it can distinguish between good and bad samples, even if these samples have a probability 0 for the optimal Pd (for D*). They even empirically prove this assumption.\n\nRegarding assumption 2) they suggest revaluing the constant M in two steps: a revaluation step where they calculate M's value over the first 10K samples (for each sample, M is the exponent of D's logit). Afterward, at the sampling step, M's value is updated to be the highest M's value of all the samples. It may lead to an over-revaluation of the calculated probabilities before updating M, but according to the article, updating M isn't too frequent.\n\nFurthermore, the article states that RS has some difficulties when probing from high dimensional spaces since the probability t of getting a sample is very low. The authors suggest a nice \"trick\" to overcome this problem (which naturally distorts the actual sampling probability distribution): Introducing an additional parameter q, which extends the value set of the distribution. If the q parameter value is high, t tends to get relatively higher values too, and when the value of the q parameter is low, the value of t is low as well, and most of the samples are rejected. The q parameter value is determined through optimization.\n\n## Achievements\n\nThe authors have improved the quality of the GAN-generated images with their method. They compared their images to SAGAN (trained on Imagenet), the SOTA of image generation, about two years ago.", null, "Real samples from 25 2D-Gaussian Distributions (left) as well as fake samples generated from a trained GAN model without (middle) and with DRS (right). Results are computed as an average over five models randomly initialized and trained independently.", null, "Synthesized images with the highest (left) and lowest (right) acceptance probability scores.\n\n### Comparison metrics\n\nFrechet Inception Distance\n\n## P.S.\n\nIt is a paper with a brilliant idea behind it. Despite the impressive results, rigorous proofs of the authors' assumptions are missing, and I hope it will be introduced in the future.\n\n#deepnightlearners\n\nThis post was written by Michael (Mike) Erlihson, Ph.D.\n\nMichael works in the cybersecurity company Salt Security as a principal data scientist. Michael researches and works in the deep learning field while lecturing and making scientific material more accessible to the public audience." ]
[ null, "https://digitalpress.fra1.cdn.digitaloceanspaces.com/iyuft7l/2021/04/image-12.png", null, "https://digitalpress.fra1.cdn.digitaloceanspaces.com/iyuft7l/2021/04/image-13.png", null, "https://digitalpress.fra1.cdn.digitaloceanspaces.com/iyuft7l/2021/04/image-15.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.92823404,"math_prob":0.94419163,"size":7669,"snap":"2022-05-2022-21","text_gpt3_token_len":1633,"char_repetition_ratio":0.12981082,"word_repetition_ratio":0.0015588464,"special_character_ratio":0.20406833,"punctuation_ratio":0.10340042,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9856982,"pos_list":[0,1,2,3,4,5,6],"im_url_duplicate_count":[null,1,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-17T04:41:25Z\",\"WARC-Record-ID\":\"<urn:uuid:a0e6a2b2-4e34-43da-b21f-73d0223e9a78>\",\"Content-Length\":\"36957\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:74183126-42ae-490c-b383-75853f055e9e>\",\"WARC-Concurrent-To\":\"<urn:uuid:5b6ff30f-fc01-49b7-bd76-383b9bf65f8f>\",\"WARC-IP-Address\":\"54.36.105.116\",\"WARC-Target-URI\":\"https://www.keep-current.dev/discriminator-rejection-sampling/\",\"WARC-Payload-Digest\":\"sha1:ALDH3HBVKSKSXJSZQHAWMB4HNHDKYK37\",\"WARC-Block-Digest\":\"sha1:TJ6XR22TBUKCRWVNNNSZN7BWG2GN6RMS\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662515501.4_warc_CC-MAIN-20220517031843-20220517061843-00067.warc.gz\"}"}
https://undergroundmathematics.org/exp-and-log/summing-to-one/solution-1
[ "Building blocks\n\n## Solution 1\n\n$\\log_3 3=1$\n\n$\\log_9 3+ \\log_9 3 =1$\n\n$\\log_{27} 3 + \\dots +\\log_{27} 3= 1$\n\nPerhaps some logical first thoughts would be that the second equation, $\\log_9 3+\\log_9 3=1,$ can be rewritten as $2\\log_9 3 = 1,$ and so $\\log_9 3 = \\frac{1}{2}.$\n\nWe now have that $\\log_3 3=1$ and that $\\log_9 3=\\frac{1}{2}$ but what is $\\log_{27}3$?\n\nRemember that we also know that $\\log_3 3=1$ because $3^1=3$, and that $\\log_9 3=\\frac{1}{2}$ because $9^{\\frac{1}{2}}=3$.\n\nThis is because of one of the defining statements about logarithms: $\\log_a x = y$ means $x=a^y$ for real numbers $x>0$ and $y$.\n\nWe can now ask the question, to what power do we raise $27$ to get the result $3$? If we think about powers of $3$ then we can quickly confirm that $27 = 3^3$ and so $27^{\\frac{1}{3}}=3$.\n\nNow we have that $\\log_{27} 3 = \\frac{1}{3}$ and therefore $\\log_{27} 3 + \\log_{27} 3 +\\log_{27} 3= 1,$ or equivalently, $\\log_{27} 3 + 2\\log_{27} 3 = 1,$ or $\\log_{27} 3 + \\log_{27} 9 = 1.$\n\nAn alternative approach would be to use the statement $\\log_x ab = \\log_x a + \\log_x b.$ We can use this to rewrite the second equation, $\\log_9 3+\\log_9 3=1,$ as $\\log_9 (3 \\times 3) = \\log_9 9 = 1.$\n\nKnowing that $\\log_x x = 1$ we can now think of the third equation as\n\n$\\log_{27} (3a)=1$ where $3a = 27$ and therefore $a=9$ as before, $\\log_{27} 3 + \\log_{27} 9 = 1.$\n\nHow many $\\log_{81} 3$ do you need to add together to make one?\n\nWe can use exactly the same thinking to address this problem. We could consider $81^n=3$ and recognise that $81 = 3^4$ so $n=\\frac{1}{4}$.\n\nThis tells us that we will need four lots of $\\log_{81} 3$ to make one, $4\\log_{81}3=1.$\n\nThis thinking relies on us recognising, or quickly deducing that $81$ is the fourth power of $3$. If the base of the logarithm were something less familiar, for instance $2187$ (the seventh power of $3$), then this method is less convenient.\n\nAlternatively we could have used the laws of logs to conclude that $\\log_{81} 3+\\log_{81} b = \\log_{81} (3b) = 1$ and so $3b = 81$ and hence $b = 27$.\n\nThen we have $\\log_{81} 3 + \\log_{81} 27 = 1.$ But, remember that the question asks how many lots of $\\log_{81} 3$ we need so we need to make one. This means that we need to write $\\log_{81} 27$ in terms of $\\log_{81}3$.\n\nTo do this we should first recognise that $27 = 3^3$ so we can write that $\\log_{81}27 = \\log_{81}3^3 = 3\\log_{81}3.$\n\nWe have used the statement $\\log_a x^y = y\\log_a x.$\n\nNow we have $\\log_{81}3 + \\log_{81}27 = \\log_{81}3 + 3\\log_{81}3,$ and therefore $4\\log_{81}3= 1.$" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8548281,"math_prob":1.0000058,"size":2615,"snap":"2021-43-2021-49","text_gpt3_token_len":994,"char_repetition_ratio":0.19647644,"word_repetition_ratio":0.022421524,"special_character_ratio":0.46921605,"punctuation_ratio":0.07414105,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000091,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-12-07T18:17:35Z\",\"WARC-Record-ID\":\"<urn:uuid:7988bd38-01d5-4309-a559-30122e3911ff>\",\"Content-Length\":\"20713\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2cca0022-1aff-4b1c-ba8d-e54a320c1d6e>\",\"WARC-Concurrent-To\":\"<urn:uuid:2892d782-f656-445c-b11d-427a81eb2dd2>\",\"WARC-IP-Address\":\"54.155.231.12\",\"WARC-Target-URI\":\"https://undergroundmathematics.org/exp-and-log/summing-to-one/solution-1\",\"WARC-Payload-Digest\":\"sha1:NHOFL3QOLTTWNUKTYRGX3I74AKBC5OPU\",\"WARC-Block-Digest\":\"sha1:WD5AQFSXFHTMC7ONZV6LDBBWQ3CF45RL\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964363405.77_warc_CC-MAIN-20211207170825-20211207200825-00488.warc.gz\"}"}
https://arduino.stackexchange.com/questions/72487/thermocouple-and-multimeter
[ "# Thermocouple and multimeter\n\nI've put together this script that should allow my Arduino Mega to be show thermocouple readings on the serial monitor, whilst also showing readings of voltage and ohms across a given component. I'd be grateful for any advice on how it can be improved/streamlined:\n\n``````#include <SparkFun_MCP9600.h>\nMCP9600 tempSensor;\nint analogPin = 0;\nint raw = 0;\nint Vin = 5;\nfloat Vout = 0;\nfloat R1 = 220;\nfloat R2 = 0;\nfloat buffer = 0;\nfloat volt = 0;\nint input = 0;\n\nvoid setup() {\nSerial.begin(115200);\nWire.begin();\nWire.setClock(100000);\ntempSensor.begin();\n\nif (tempSensor.isConnected()) {\nSerial.println(\"Device will acknowledge!\");\n}\nelse {\nSerial.println(\"Device did not acknowledge! Freezing.\");\nwhile (1); //hang forever\n}\n\nif (tempSensor.checkDeviceID()) {\nSerial.println(\"Device ID is correct!\");\n}\nelse {\nSerial.println(\"Device ID is not correct! Freezing.\");\nwhile (1);\n}\n\npinMode(A4, INPUT);\n}\n\nvoid loop() {\n\nvolt = (input * 5.0) / 1024.0; //formula using for perform action\n\nif (tempSensor.available()) {\nSerial.print(\"Thermocouple: \");\nSerial.print(tempSensor.getThermocoupleTemp());\nSerial.print(\" °C Ambient: \");\nSerial.print(tempSensor.getAmbientTemp());\nSerial.print(\" °C Temperature Delta: \");\nSerial.print(tempSensor.getTempDelta());\nSerial.print(\" °C\");\nSerial.println();\n}\n\nif (raw)\n{\nbuffer = raw * Vin;\nVout = (buffer) / 1024.0;\nbuffer = (Vin / Vout) - 1;\nR2 = R1 * buffer;\nSerial.print(\"Vout: \");\nSerial.println(Vout);\nSerial.print(\"R2: \");\nSerial.println(R2);\nSerial.print(\"voltage is:\");\nSerial.println(volt);\nSerial.print(\"current is:\");\nSerial.println(volt / R2);\ndelay(1000);\n}\n}\n``````\n• \"should allow\": does it, or doesn't it? – Thomas Weller Feb 12 at 22:22\n• Does the code work as it is? I see you’re defining some variables (like Vin, R1, analogPin) that are never changed and actually only used as constants. You should define them as “const” or use #define (for example for the analog port numbers). – StarCat Feb 12 at 22:32\n\nYour code is not very long, but I already see a few things that I would change.\n\n``````int analogPin = 0;\n[...]\npinMode(A4, INPUT);\n``````\n\nThese usages of pins are inconsistent. I personally prefer settings at the beginning of the file, so I'd expect\n\n``````int analogPin = 0;\nint whateverPin = A4; // I don't have a good name yet\n``````\n\nWhile you have\n\n``````pinMode(A4, INPUT);\n``````\n\nthere's no\n\n``````pinMode(analogPin, INPUT);\n``````\n\nThe main loop is doing 2 things: a) show temperature reading and b) show the component specs. This would be more obvious if written like this:\n\n``````void loop() {\nvolt = (input * 5.0) / 1024.0; //formula using for perform action\n\n}\n``````\n\nNow, that looks a bit strange, don't you think? What about the stuff before these two big `show...()` methods? These two lines clearly belong into `showComponentReadings()`.\n\nNow, a lot of variables are declared outside of methods. This makes them global variables. It's possible to change them from anywhere in the code. When the project grows, side effects are evil. Let's remove as many of them as possible.\n\nYou can get rid of:\n\n``````int input = 0;\nfloat volt = 0;\nfloat buffer = 0;\nfloat R2 = 0;\nfloat Vout = 0;\nint raw = 0;\n``````\n\nAfter this change, I think the `setup()` method could be more concise. A lot of stuff just deals with the temperature sensor. I would extract a method as well.\n\nThe error messages like\n\nDevice did not acknowledge! Freezing.\n\ncould not mean very much to the user. A message like\n\nTemperature sensor did not acknowledge! Check the wiring and press the reset button to retry.\n\ncould give more meaningful instructions.\n\nThe final code with these suggestions applied:\n\n``````#include <SparkFun_MCP9600.h>\nMCP9600 tempSensor;\nint analogPin = 0;\nint whateverPin = A4;\nfloat R1 = 220;\nint Vin = 5;\n\nvoid setupTemperatureSensor() {\ntempSensor.begin();\nif (tempSensor.isConnected()) {\nSerial.println(\"Temperature sensor acknowledged.\");\n}\nelse {\nSerial.println(\"Temperature sensor did not acknowledge! Check the wiring and press the reset button to retry.\");\nwhile (1); //hang forever\n}\n\nif (tempSensor.checkDeviceID()) {\nSerial.println(\"Temperature sensor ID is correct.\");\n}\nelse {\nSerial.println(\"The temperature sensor ID does not have the expected value. Do you use a different sensor type? Use a SparkFun MCP9600.\");\nwhile (1);\n}\n}\n\nvoid setup() {\nSerial.begin(115200);\nWire.begin();\nWire.setClock(100000);\n\nsetupTemperatureSensor();\n\npinMode(whateverPin, INPUT);\npinMode(analogPin, INPUT);\n}\n\nif (tempSensor.available()) {\nSerial.print(\"Thermocouple: \");\nSerial.print(tempSensor.getThermocoupleTemp());\nSerial.print(\" °C Ambient: \");\nSerial.print(tempSensor.getAmbientTemp());\nSerial.print(\" °C Temperature Delta: \");\nSerial.print(tempSensor.getTempDelta());\nSerial.print(\" °C\");\nSerial.println();\n}\n}\n\nfloat volt = (input * 5.0) / 1024.0; //formula using for perform action\nif (raw)\n{\nfloat buffer = raw * Vin;\nfloat Vout = (buffer) / 1024.0;\nbuffer = (Vin / Vout) - 1;\nfloat R2 = R1 * buffer;\nSerial.print(\"Vout: \");\nSerial.println(Vout);\nSerial.print(\"R2: \");\nSerial.println(R2);\nSerial.print(\"voltage is:\");\nSerial.println(volt);\nSerial.print(\"current is:\");\nSerial.println(volt / R2);\ndelay(1000);\n}\n}\n\nvoid loop() {\n}\n``````\n\nWith code folding active, I'd say it's now very simple to get an overview of what the code is doing and what can be configured:", null, "Edit:\n\nAfter you linked to the schematics, I would\n\n• rename `whateverPin` to `voltageDividerPin`.\n• change the calculation `float volt = (input * 5.0) / 1024.0;` to a mapping, because it maps the 1024 input values to 5V, so `float volt = map(voltageReading, 0, 1024, 0, Vin);`\n• remove `analogPin` completely, because it's not used in the original code as well.\n\nI also hope that read the article and you understood the consequences of using a 220 Ohm resistor.\n\n• Re “I'm not sure whether `analogRead()` works [with `0` as an argument]”: It does. `analogRead()` treats `A0` (defined as `54` on the Mega) as equivalent to `0`. – Edgar Bonet Feb 13 at 9:15\n• The ohmmeter code came from here: circuitbasics.com/arduino-ohm-meter I'm guessing the circuit layout is still fine? – Chris Feb 14 at 19:16\n• @Chris: I've updated the answer according to the schematics – Thomas Weller Feb 16 at 12:12\n• It'll be 220mOhm in my case as the unknown resistance should be around there. Thanks again! – Chris Feb 16 at 12:14\n• @Chris: 5V/440mOhm=11A. The Arduino can handle a maximum of 500 mA on its 5V pin. Also, you need a 28W resistor to handle the power, otherwise it'll go up in flames. It's ok, if you have considered all the electrical stuff. I just don't consider that the \"normal\" Arduino usage. – Thomas Weller Feb 16 at 13:17" ]
[ null, "https://i.stack.imgur.com/JTLCD.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.73079604,"math_prob":0.8282411,"size":4071,"snap":"2020-10-2020-16","text_gpt3_token_len":1033,"char_repetition_ratio":0.14629948,"word_repetition_ratio":0.090759076,"special_character_ratio":0.27634487,"punctuation_ratio":0.21963824,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9664451,"pos_list":[0,1,2],"im_url_duplicate_count":[null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-04-04T22:54:00Z\",\"WARC-Record-ID\":\"<urn:uuid:9ea67d1d-94e2-4b0e-b2aa-2bc8c0e4676c>\",\"Content-Length\":\"151545\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5f87d501-b883-4395-916d-dcfeab8cc332>\",\"WARC-Concurrent-To\":\"<urn:uuid:840db325-22a1-413f-9d9b-e128ac9174c8>\",\"WARC-IP-Address\":\"151.101.193.69\",\"WARC-Target-URI\":\"https://arduino.stackexchange.com/questions/72487/thermocouple-and-multimeter\",\"WARC-Payload-Digest\":\"sha1:IMHNN6SOMM5VZQN4WX33K6YKEVKA7I6D\",\"WARC-Block-Digest\":\"sha1:PEOUFBJI35UQ3MRX5ETXCTZEELBTPAMW\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-16/CC-MAIN-2020-16_segments_1585370525223.55_warc_CC-MAIN-20200404200523-20200404230523-00048.warc.gz\"}"}
https://esimov.com/2014/10/perlin-noise-based-minecraft-rendering-experiment
[ " Endre Simo - Perlin noise based Minecraft rendering experiment\n\nPerlin noise based Minecraft rendering experiment\n\nCategories: 3d,Blog,Experiments,General,HTML5,Javascript,Uncategorized\n\nRecently i was involved in a few different commercial projects, was toying with Golang, the shiny new language from Google and made some small snippets to test the language capability (i put them in my gist repository). In conclusion i somehow completely missed the creative coding. I had a few ideas and conceptions which i wanted to realize at an earlier or later stage. One of them was to adapt Notch minecraft renderer to be used in combination with perlin or simplex noise for generating random rendering maps.", null, "For that reason i ported to Javascript the original perlin noise algorithm written in Java. You can find the code here: https://gist.github.com/esimov/586a439f53f62f67083e. I won't go into much details of how the perlin noise algorithm is working, if you are interested you can find a well explained paper here: http://webstaff.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf.\n\nAs a starting point I put together a small experiment creating randomly generated perlin noise maps, and testing the granularity and dispersion of randomly selected seeding points to see how much they can be customized to create different noise patterns. I'm honest, actually these maps are not 100% randomly distributed, although they can be randomly seeded too, but for our scope I used a pretty neat algorithm for uniform granularity:\n\n// Seeded random number generator\nfunction seed(x) {\nx = (x<<13) ^ x;\nreturn ( 1.0 - ( (x * (x * x * 15731 + 789221) + 1376312589) & 0x7fffffff) / 1073741824.0);\n}\n\nAnd here is the working example:\n\nSee the Pen Perlin metaball by Endre Simo (@esimov) on CodePen.\n\nThe question that may arise: why should we need the perlin noise \"thing\" to generate different minecraft styled procedural terrain map? By generating randomly distributed noise we can further adjust the color mapping, then extract some of the areas above or below to certain values, which at a later state we can combine or even integrate into the core map generation logic. If you look at the alchemy behind the code responsible for programatically generating the terrain blocks, you will soon realize that we have all the ingredients (by manipulating some pixels here and there) to integrate the noise map into the block generation algorithm.\n\nIn InitMap function we populate the map array with some initial values, then at a later stage after we generate the noise map, we extract the data as follows:\n\nfor (var cell = 0; cell < pixels.length; cell += 4) {\nvar ii = Math.floor(cell/4);\nvar x = ii % canvasWidth;\nvar y = Math.floor(ii / canvasWidth);\nvar xx = 123 + x * .02;\nvar yy = 324 + y * .02;\n\nvar value = Math.floor((perlin.noise(xx,yy,1))*256);\npixels[cell] = pixels[cell + 1] = pixels[cell + 2] = value;\npixels[cell + 3] = 255; // alpha.\n}\n\nthen we go through the pixels data, setting up the condition on which data should be processed. In our actual case if the pixel color extracted is below to some certain value (this values are actually values extracted from the perlin noise map) then we set the map data to 0. This is why the perlin noise seed granularity is important. As smoother the transition between points is, as subtle would be the map generated.\n\nif ((pixelCol & 0xff * 0.48) < (64 - y) << 2) {\nmap[i] = 0;\n}\n\nThis is the basic logic for generating random minecraft terrain. We can even adjust the seed offset in perlin noise script to generate different patterns, however in my experiment seems that this doesn't matter to much.\n\nThe rendering engine is based on notch code, however i made some optimization adding some fake shadows and distance fog, creating a more ambiental environment.\n\nThis is the code which creates the distance fog effect:\n\nvar r = ((col >> 16) & 0xff) * br * ddist / (255 * 255);\nvar g = ((col >> 8) & 0xff) * br * ddist / (255 * 255);\nvar b = ((col) & 0xff) * br * ddist / (255 * 255);\n\nif(ddist <= 155) r += 155-ddist;\nif(ddist <= 255) g += 255-ddist;\nif(ddist <= 255) b += 255-ddist;\n\npixels[(x + y * w) * 4 + 0] = r;\npixels[(x + y * w) * 4 + 1] = g;\npixels[(x + y * w) * 4 + 2] = b;\n\nPlaying with values i discovered that actually i can \"move the camera around the scene\" (actually here we have a fictive camera, meaning that not the camera is moving around scene, but the objects are projected around some fictive coordinates), so it was quite easy to get the mouse position and adjust the camera relative to the mouse position, this way including some user interaction into the scene.\n\nVersion 2\n\nEven tough the desired effect pretty much satisfied my expectations, something was really missing from the original version: it was not possible to generate randomly seeded terrain maps and also the generated map was pretty much the same. So I have extended the first version with random map generation, replaced the Perlin noise generator with the simplex noise, added fake shadow and fog to give the feeling of depth and on top of these i have also included a control panel to play with the values. This is how it came out:", null, "The source code can be found on my Github page:\n\nhttps://github.com/esimov/minecraft.js" ]
[ null, "https://esimov.com/blog/wp-content/uploads/2014/10/minecraft-650x450.png", null, "https://esimov.com/blog/wp-content/uploads/2014/10/mincraft-map.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8886782,"math_prob":0.9580127,"size":5045,"snap":"2019-43-2019-47","text_gpt3_token_len":1221,"char_repetition_ratio":0.11049395,"word_repetition_ratio":0.036036037,"special_character_ratio":0.2666006,"punctuation_ratio":0.106806286,"nsfw_num_words":1,"has_unicode_error":false,"math_prob_llama3":0.97211015,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,4,null,4,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-10-14T07:57:45Z\",\"WARC-Record-ID\":\"<urn:uuid:35284a0b-f4fb-4b03-b93a-c6b45bd9b5f5>\",\"Content-Length\":\"36586\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:df2c3391-2088-4a8a-ae0e-c98ffe536e55>\",\"WARC-Concurrent-To\":\"<urn:uuid:0066ddf6-ee33-4f87-92a5-f9c1ccf2bf8c>\",\"WARC-IP-Address\":\"86.123.175.144\",\"WARC-Target-URI\":\"https://esimov.com/2014/10/perlin-noise-based-minecraft-rendering-experiment\",\"WARC-Payload-Digest\":\"sha1:D4Q47ZSBH25JSTNWXJND7IYWTIMDJH7A\",\"WARC-Block-Digest\":\"sha1:6O46FZX3GS662P5LXEXE2RA3JJKBI7TN\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-43/CC-MAIN-2019-43_segments_1570986649841.6_warc_CC-MAIN-20191014074313-20191014101313-00351.warc.gz\"}"}
https://zbmath.org/?q=an:0902.35002
[ "## Partial differential equations.(English)Zbl 0902.35002\n\nGraduate Studies in Mathematics. 19. Providence, RI: American Mathematical Society (AMS). xvii, 662 p. (1998).\nThis monograph is a wide-ranging textbook for graduate and higher-level undergraduate students. The author treats linear and nonlinear equations in any space dimension, with particular emphasis on various modern approaches. Although he also makes use of abstract formulations of certain classes of equations in terms of operators between Banach spaces, his approach is by no means reduced to the functional-analytic setting. The author presents essential ideas in very clear settings, avoiding technicalities required by sharp versions of the theorems. Each part of the book is largely self-contained. Each chapter of the book is complemented by problems and references to research articles and advanced monographs.\nThe book is divided into three parts: representation formulae for solutions, linear and nonlinear PDE. The first part consists of three chapters devoted to four important linear PDE (transport, Laplace’s, heat and wave equation), nonlinear first-order PDE (complete integrals, characteristics, Hamilton-Jacobi equations, conservation laws) and other ways to represent solutions (separation of variables, similarity solutions, transform methods, converting nonlinear into linear PDE, asymptotics, power series). The three chapters of the second part (linear PDE) deal with Sobolev spaces, second-order elliptic equations (existence of weak solutions, regularity, maximum principles, eigenvalues and eigenfunctions) and linear evolution equations (second-order parabolic and hyperbolic equations, hyperbolic systems of first-order equations, semigroup theory). The last part (nonlinear PDE) is subdivided into four chapters dealing with variational methods (first and second variation, existence of minimizers for convex and polyconvex functionals, regularity, constraints, Mountain Pass Theorem), nonvariational techniques (monotonicity and fixed point methods, sub- and supersolutions, nonexistence results, geometric properties of solutions, gradient flows), Hamilton-Jacobi equations (viscosity solutions, uniqueness, control theory, dynamic programming) and systems of conservation laws (Riemann’s problem, systems of two conservation laws, entropy criteria).\nThe book is complemented by five appendices describing basic facts concerning notation, inequalities, calculus, linear functional analysis and measure theory. This book is definitely one of the best textbooks in the area of PDE.\n\n### MSC:\n\n 35-01 Introductory exposition (textbooks, tutorial papers, etc.) pertaining to partial differential equations 49-01 Introductory exposition (textbooks, tutorial papers, etc.) pertaining to calculus of variations and optimal control" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8580838,"math_prob":0.9528911,"size":3432,"snap":"2022-27-2022-33","text_gpt3_token_len":688,"char_repetition_ratio":0.12806301,"word_repetition_ratio":0.027842227,"special_character_ratio":0.18298368,"punctuation_ratio":0.17028986,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9965561,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-03T05:02:34Z\",\"WARC-Record-ID\":\"<urn:uuid:9a85f179-5618-4457-8711-2ed09fc46e10>\",\"Content-Length\":\"52733\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:15a2d404-fdf1-4b55-8cf4-82d7e9fb0568>\",\"WARC-Concurrent-To\":\"<urn:uuid:f97f3051-b6d4-4f3d-aff1-843f37269eb9>\",\"WARC-IP-Address\":\"141.66.194.2\",\"WARC-Target-URI\":\"https://zbmath.org/?q=an:0902.35002\",\"WARC-Payload-Digest\":\"sha1:QCDPEFGMN7MQIHRO4XHJ3J2N7HTKVWBI\",\"WARC-Block-Digest\":\"sha1:I5OWUCUU6M4DHBOQB7QLONAN4SDE7QK3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656104215790.65_warc_CC-MAIN-20220703043548-20220703073548-00072.warc.gz\"}"}
https://tuitiontube.com/kmno4-h2o2-h2so4-o2-mnso4-k2so4-h2o/
[ "# KMnO4 + H2O2 + H2SO4 = O2 + MnSO4 + K2SO4 + H2O\n\nPermanent hydrogen peroxide potassium and sulfuric acid (kmno4 h2o2 h2so4) are accessible in nearly all chemical laboratories around the world. KMnO4 and H2O2 react mainly in the medium of H2SO4. To balance the redox reaction, we use the ion-electron technique.\n\n## 5H2O2 + 3H2SO4 + 2KMnO4  = 5O2 + 8H2O + 2MnSO4 + K2SO4\n\nNow by using the ino-electron method we can balance the Oxidation-Reduction reaction.", null, "## H2O2 + KMnO4 + H2SO4 = O2+ H2O + MnSO4 + K2SO4\n\nis the skeleton reaction for the redox reaction of Hydrogen peroxide potassium permanganate and  sulfuric acid (kmno4 h2o2 h2so4)\n\nHere,\n\nThe Oxidizing agent: KMnO4 or MnO4-1\n\nThe Reducing agent: H2O2 or, O-1\n\n## Reduction Half Reaction:\n\n⇒ MnO-1 + 8H+ +5e = 4H2O + Mn2- … …. …. …. (1)\n\n## Oxidation Half Reaction:\n\n⇒ 2O-1– 2e = O2 … … … … (2)\n\nNow,\n\nequation (1)x2 + (2)x5,\n\n2MnO-1 + 16H+ +10e = 8H2O + 2Mn2-\n\n10 O-1– 10e = 5O2\n\n⇒ 2MnO-1 + 10 O-1 + 16H+= 2Mn2- + 8H2O +5O2\n\n⇒ 5H2O2 + 3H2SO4 + 2KMnO4  = 5O2 + 8H2O + 2MnSO4 + K2SO4\n\n## ⇒ 5H2O2 + 3H2SO4 + 2KMnO4 = 5O2 + 8H2O + 2MnSO4 + K2SO4\n\nK2Cr2O7 + FeSO4 + H2SO4 = Cr2(SO4)3 + Fe2(SO4)3 + K2SO4 + H2O\n\nFeSO4 + KMnO4 + H2SO4 = Fe2(SO4)3 + MnSO4 + H2O + K2SO4\n\nNaCl + KMnO4 + H2SO4 = Cl2 + MnSO4 + Na2SO4 + K2SO4 + H2O\n\n1. Yup…Thank You So Much\n\n• You are welcome. and thanks for inspiring us by putting a comment. Please keep visiting our site and share our website with your friends and families, it will make us happy.\n\n2. SamBiba\n\nThanks…….it helped me a lot. 🙂\n\n• You are welcome. please be with us for support.\n\n3. Noch eine weiße Runde ohne Zunahmen arbeiten.\n\n• What do you want to say?" ]
[ null, "https://i2.wp.com/i.imgur.com/B0DApip.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.61229736,"math_prob":0.9903964,"size":1656,"snap":"2020-45-2020-50","text_gpt3_token_len":691,"char_repetition_ratio":0.13498789,"word_repetition_ratio":0.11290322,"special_character_ratio":0.36231884,"punctuation_ratio":0.10033445,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9905292,"pos_list":[0,1,2],"im_url_duplicate_count":[null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-28T23:15:44Z\",\"WARC-Record-ID\":\"<urn:uuid:fbe4f58c-654d-4aa6-a112-4b908aa22521>\",\"Content-Length\":\"45190\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2f3a9c05-29cd-4130-8d6d-194498847412>\",\"WARC-Concurrent-To\":\"<urn:uuid:e684bfbd-3d53-49e4-be9e-449b920ebcaa>\",\"WARC-IP-Address\":\"104.28.25.42\",\"WARC-Target-URI\":\"https://tuitiontube.com/kmno4-h2o2-h2so4-o2-mnso4-k2so4-h2o/\",\"WARC-Payload-Digest\":\"sha1:6HEG7PZAZN5SXWS2ZJ5V6653S4LFGNQF\",\"WARC-Block-Digest\":\"sha1:GQOXEBBZXLFU7MCYW3X5K4XGFBAOTMOE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-45/CC-MAIN-2020-45_segments_1603107902038.86_warc_CC-MAIN-20201028221148-20201029011148-00223.warc.gz\"}"}
https://solvedlib.com/n/be-sure-to-answer-all-parts-calculate-the-density-in-grams,18498056
[ "# Be sure to answer all parts:Calculate the density in grams per liter of the following gases at STP(a) NO(6) NOz(c)\n\n###### Question:\n\nBe sure to answer all parts: Calculate the density in grams per liter of the following gases at STP (a) NO (6) NOz (c) 02 L", null, "", null, "#### Similar Solved Questions\n\n##### Lucy propere (d) isopentane and 2-methylbutane 3. Which one of the following hexanes has the lowest...\nLucy propere (d) isopentane and 2-methylbutane 3. Which one of the following hexanes has the lowest boiling point? (a) 3-methylpentane (b) 2-methylpentane (c) hexane (d) 2,2-dimethylbutane 4. A CH3 In the lowest energy conformation of the compound to the right, how many alkyl substituents are axial?...\nI keept getting the totals for the per share wrong, please help Pecan Theatre Inc. owns and operates movie theaters throughout Florida and Georgia. Pecan Theatre has declared the following annual dividends over a six-year period: 20Y1, $80,000; 20Y2,$90,000; 20Y3, $150,000; 20Y4,$150,000; 20Y5, $1... 1 answer ##### 31 and 33 Draw a diagram for each of processes (isothermal, isobaric, isochoric) in variables (P,... 31 and 33 Draw a diagram for each of processes (isothermal, isobaric, isochoric) in variables (P, V), (P, T) and (V, T). Express density of an ideal gas using the equation of state: PV = n/M RT. Explain every step. One mode of oxygen gas is at a pressure of 6.00 and a temperature of 27.0 degree C. I... 4 answers ##### Consider the two functions and g on such that f(x)dx =12 and ('g(x)dx =-5 (I3f (x)dx ('2f(x)-3g(x)dx ['fcx)+Ig(x)ldx ['f(x)dx Find the antiderivatives by hand Please show your steps.t+e' XtldxCSC X +- dx CSC X Consider the two functions and g on such that f(x)dx =12 and ('g(x)dx =-5 (I3f (x)dx ('2f(x)-3g(x)dx ['fcx)+Ig(x)ldx ['f(x)dx Find the antiderivatives by hand Please show your steps. t+e' Xtldx CSC X +- dx CSC X... 1 answer ##### Unsure if my percent error is correct for the 100 mL beaker. My volume read was... Unsure if my percent error is correct for the 100 mL beaker. My volume read was 20. mL but I am confused if within the formula, the “actual” should be 20. mL or if it should be 100 mL. Show all your calculations for the volume and % Error determinations: 100 mL Beaker: 15,45009/.9935... 3 answers ##### Make a tree diagram for rolling die first followed by spinner Make a tree diagram for rolling die first followed by spinner.Don't tell the answer, but can you tell me how to find the answer.... 2 answers ##### The matrix Calso has one real eigenvalue A = 1_What is the algebraic multiplicity of this eigenvalue?If v =is an eigenvector for this real eigenvalue, then a=and b=If w =is an eigenvector for this real eigenvalue; then c=and d= The matrix C also has one real eigenvalue A = 1_ What is the algebraic multiplicity of this eigenvalue? If v = is an eigenvector for this real eigenvalue, then a= and b= If w = is an eigenvector for this real eigenvalue; then c= and d=... 5 answers ##### Define a data-manipulation application for the books database. The user should be able to edit existing data and add new data to the database (obeying referential and entity integrity constraints). Allow the user to edit the database in the following ways:a) Add a new author.b) Edit the existing information for an author.c) Add a new title for an author. (Remember that the book must have an entry in the AuthorISBN table.).d) Add a new entry in the AuthorISBN table to link authors with titles. Define a data-manipulation application for the books database. The user should be able to edit existing data and add new data to the database (obeying referential and entity integrity constraints). Allow the user to edit the database in the following ways: a) Add a new author. b) Edit the existing i... 2 answers ##### (a) Use implicit diflerentiationfindequalion 0l theOrthogonal Trajectories In Exercises 83-86, uSC graphing utility to graph intersecting graphs of the equations and show that they are orthogonal: [Two graphs are orthogonal if at their point(s) of intersection their tangent lines perpendicular to exch other:] 83. 2r2 + y2 = 6 84. )- =r J- = 4 2r2 + 3y2 = 5 T+y=0 86. + = 30 - [) sin > 4y 29) = 3tangent line t0 the hyperbola= | :( (3,-2).(b) Show that the equation of the tngent line The (a) Use implicit diflerentiation find equalion 0l the Orthogonal Trajectories In Exercises 83-86, uSC graphing utility to graph intersecting graphs of the equations and show that they are orthogonal: [Two graphs are orthogonal if at their point(s) of intersection their tangent lines perpendic... 5 answers ##### When copper metal is placed into a silver nitrate solution; a single: displacement reaction occurs; forming a copper(Il) compound; Write the balanced equation t0 describe this reaction?HTML EditotD4I : 3 3 1 012pt When copper metal is placed into a silver nitrate solution; a single: displacement reaction occurs; forming a copper(Il) compound; Write the balanced equation t0 describe this reaction? HTML EditotD 4 I : 3 3 1 0 12pt... 5 answers ##### See Example 3.1 The atomic masses of the two stable isotopes of Potassium; K (93.26 percent) 19 K(0.013 percent) and K(6.74 percent) are 38.9637 amu; 39.9640 amu and 40.9618 amu respectively- Calculate the average atomic mass of Potassium:See Example 3.2 Calculate the number of grams of Gold (Au) in 9.46 moles of Gold.See Example 3.5,3.6 Calculate the molar mass of Ba(OHhCakulate the molar mass of (NHshSOzCalculate the number of moles of KzSOt, in 158.75 € of KzSOaSee Example 3.8 Calculate th See Example 3.1 The atomic masses of the two stable isotopes of Potassium; K (93.26 percent) 19 K(0.013 percent) and K(6.74 percent) are 38.9637 amu; 39.9640 amu and 40.9618 amu respectively- Calculate the average atomic mass of Potassium: See Example 3.2 Calculate the number of grams of Gold (Au) ... 5 answers ##### Show that 0 = fcoo ( _ 0)? f (x)da = fso 22 f(w)dx ~ p2 Show that 0 = fcoo ( _ 0)? f (x)da = fso 22 f(w)dx ~ p2... 1 answer ##### Needed in a basic java format. no switch cases please. thanks!!! (4 pts) Problem 1 An... Needed in a basic java format. no switch cases please. thanks!!! (4 pts) Problem 1 An ordinal number can be thought of as the \"adjective forin\" of a ununber. Examples of ordinal numbers are 1st, 78th, and 782nd. Iu Euglislh, au ordinal nunber can usually be produced by adding \"tli\u0003... 1 answer ##### Question 1 1 pts The average THC content of marijuana sold on the street is 10%.... Question 1 1 pts The average THC content of marijuana sold on the street is 10%. Suppose the THC content is normally distributed with standard deviation of 2%. Let X be the THC content for a randomly selected bag of marijuana that is sold on the street. Round all answers to two decimal places and gi... 5 answers ##### What Is the equivalent capacitance (in units of pF) between points and B in the following circult where_40 pF; C2 20 HF; C3 100 pF;Suomit Ansier Tries 0/2 What Is the equivalent capacitance (in units of pF) between points and B in the following circult where_ 40 pF; C2 20 HF; C3 100 pF; Suomit Ansier Tries 0/2... 4 answers ##### The time in minutes between individuals joining the line at an Ottawa Post Office is random variable with the density function 2e-2x 2 0 f() = 0, x < 0.Find the median time between individuals joining the line and interpret your answer The time in minutes between individuals joining the line at an Ottawa Post Office is random variable with the density function 2e-2x 2 0 f() = 0, x < 0. Find the median time between individuals joining the line and interpret your answer... 5 answers ##### Binary subtractor can be implemented using the carry look-ahead principle_ (a) Draw the truth table of a binary subtractor Use Xi; Yi d,, bi; and bi+l, for minuend; subtrahend; difference, borrow mnput; and borrow output respectively(6) Derive expressions for the borrow-generate Y and borrow propagate T signals for binary subtractor(c) Present the design of a circuit to compute d; and b,+1 from Yi Ti; and bi. binary subtractor can be implemented using the carry look-ahead principle_ (a) Draw the truth table of a binary subtractor Use Xi; Yi d,, bi; and bi+l, for minuend; subtrahend; difference, borrow mnput; and borrow output respectively (6) Derive expressions for the borrow-generate Y and borrow propag... 1 answer ##### The average intensity of solar radiation reaching the surface of the Earth is 1370 W/m2. What... The average intensity of solar radiation reaching the surface of the Earth is 1370 W/m2. What is the peak value of the electric field associated with this radiation? 716 N/C 1020 N/C 1850 N/C 2840 N/C 5000 N/C... 1 answer ##### Question 12 (1 point) Beresford Inc. purchased several investments in debt securities during 2018, its first... Question 12 (1 point) Beresford Inc. purchased several investments in debt securities during 2018, its first year of operations. The following information pertains to these securities. The fluctuations in their fair values are not considered permanent Held to Maturity Fair Value Securities: 12/31/20... 5 answers ##### Solve 4 sin(62) 3 for the two smallest positive solutions A and B; with A < BA =PreviewB =PreviewGive your answers accurate to at least two decimal places_ Solve 4 sin(62) 3 for the two smallest positive solutions A and B; with A < B A = Preview B = Preview Give your answers accurate to at least two decimal places_... 5 answers ##### Uinz\" <phcn$cnhcne aun cetutceniin cheun kclox Suncres Rutt Hch Fn * Mict Telow\"nre neldfuxed psitinnschaec cnicrs Ochwcen unneeely ~charged nlules [rouEI the pusitivc plate: Tne Cnarte accICr[C; RromICtand Tcaches tha entre nlalc With ~pcl Tacharge ot +24 having four Arel hc 7 (he times the mass entered th? area throusuh the hole and accelerated Iron Fest, what would n> ncLautc Dlaic - 0 707I EaThc potential dillercnce bewrer [1o parallcl platcs unuc snall chatge from Onc plalc Uinz\" <phcn$ cnhcn e aun cetutceniin cheun kclox Suncres Rutt Hch Fn * Mict Telow\" nre neld fuxed psitinns chaec cnicrs Ochwcen unneeely ~charged nlules [rouEI the pusitivc plate: Tne Cnarte accICr[C; RromICtand Tcaches tha entre nlalc With ~pcl Tacharge ot +24 having four Arel hc 7 (he... 1 answer ##### Question 3 of 20 Question 3 5 points The stock of Keif Corp has an expected... Question 3 of 20 Question 3 5 points The stock of Keif Corp has an expected return of 25%, and Fireball Corp has an expected return of 20%. If you put 40% of your money in Keland 60in Fureball, what is your expected return for your portfolio? D, C1+8 Po Cost of common equity Return or Cost of common... 1 answer ##### Software testing class Question 10 3 pts Shneiderman's 8 Golden Rules include the following except: Ensure... Software testing class Question 10 3 pts Shneiderman's 8 Golden Rules include the following except: Ensure consistency Offer Informative feedback Design for error Enable frequent users to use shortcuts Question 11 3 pts During threat modelling, one of the steps involves assembling a threat mode... 1 answer ##### Ac me moh day in onder to have total of$100.000 in 30 yeary AS what...\nac me moh day in onder to have total of $100.000 in 30 yeary AS what an p ae APRI ld Raye nd to ears if se deposite 510 per m 10) Jia ho s$50,000 a 10 percent a ly ompounded interest so be repaid in four egual m The actl endod year loan payment is A)S10,774 B)S12,500 Os14340 D) S15,773 D How ong wo...\n##### What is the charge of the underlined ion in bold in the following compounds: Al(OH)3 K2SO4...\nWhat is the charge of the underlined ion in bold in the following compounds: Al(OH)3 K2SO4 ZnCl2 (d) Ca(OH)2...\n##### Question of 4SubmitThe solubility of AgzSOa in water at 25 'C is 0.0155 M. What is Ksp for AgzSO4?X10\nQuestion of 4 Submit The solubility of AgzSOa in water at 25 'C is 0.0155 M. What is Ksp for AgzSO4? X10...\n##### Li 9ooerese usee. and individua both pedigrees; Remember t0 only useif they are\nLi 9ooerese usee. and individua both pedigrees; Remember t0 only use if they are...\n##### Find the profitability index (PI) for the following series of future cash flows, assuming the company's...\nFind the profitability index (PI) for the following series of future cash flows, assuming the company's cost of capital is 12.33 percent. The initial outlay is $454.009. Year 1:$150,934 Year 2: $182,447 Year 3:$141,762 Year 4: $172,063 Year 5:$197,084 Round the answer to two decimal places....\n##### , acts on the hypothalamus causing it Fever is initiated when a substance in circulation, called...\n, acts on the hypothalamus causing it Fever is initiated when a substance in circulation, called a(n) to reset body temperature to a higher setting Multple Choice prostaglandin nterferon pyrogen...\n##### Given f (2) = 3.58and f' (2) = -1.23- Use the tangent line to f (x) atx = 2to estimate f (2.05).\nGiven f (2) = 3.58and f' (2) = -1.23- Use the tangent line to f (x) atx = 2to estimate f (2.05)....\n##### Deduce identity (iii) of Theorem 2 from identities (i) and (ii).\nDeduce identity (iii) of Theorem 2 from identities (i) and (ii)....\n##### Selectcd studealTtorobabilny dhtraultonAqulx worth 5 points @ Elvenaanatc\"009 013 0.19 022Find thc mussina vakc. Fkathe mein Expccicd value Inctcoro Entet Jaevtt tor Part Laeeo bdlowGlvc Eractana*cr\nselectcd studeal Ttorobabilny dhtraulton Aqulx worth 5 points @ Elven aanatc\" 009 013 0.19 022 Find thc mussina vakc. Fkathe mein Expccicd value Inctcoro Entet Jaevtt tor Part Laeeo bdlow Glvc Eractana*cr..." ]
[ null, "https://cdn.numerade.com/ask_images/7634232eb31944ba85871e1d2a11fd96.jpg ", null, "https://cdn.numerade.com/previews/18ecc507-1a42-4d3d-9efa-03c31e8e4793_large.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8170856,"math_prob":0.95615476,"size":15045,"snap":"2022-40-2023-06","text_gpt3_token_len":4507,"char_repetition_ratio":0.10544512,"word_repetition_ratio":0.482028,"special_character_ratio":0.29172483,"punctuation_ratio":0.14880587,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9889402,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-02-08T07:03:21Z\",\"WARC-Record-ID\":\"<urn:uuid:b3f4bde9-42f0-48ba-a0c9-051e8cbac858>\",\"Content-Length\":\"95708\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:89b44098-0ad8-4194-9de4-953ae51a177d>\",\"WARC-Concurrent-To\":\"<urn:uuid:3bc614ed-dec8-4986-bf55-9eb2295fd04d>\",\"WARC-IP-Address\":\"172.67.132.66\",\"WARC-Target-URI\":\"https://solvedlib.com/n/be-sure-to-answer-all-parts-calculate-the-density-in-grams,18498056\",\"WARC-Payload-Digest\":\"sha1:7LUJUS73H34M62UMLBX74ACIKOPC6XH2\",\"WARC-Block-Digest\":\"sha1:AJWLRRSU7H7FZKOSXQN3NBFFLMNQOQFY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764500719.31_warc_CC-MAIN-20230208060523-20230208090523-00756.warc.gz\"}"}
https://codegolf.stackexchange.com/questions/55806/whats-the-voltage-over-each-component
[ "What's the voltage over each component?\n\nThe picture below shows a RLC circuit. A RLC circuit is an electrical circuit consisting of a resistor (R), an inductor (L), and a capacitor (C), connected in series or in parallel. (1)", null, "In order to simplify computations, it's common to work in the frequency (Laplace) domain instead of the time domain.\n\nTake the values R, L and C as input, and return the voltages VR, VL and VC\n\nThe conversion to the Laplace domain is as follows:\n\nR = R\nXL = j*w*L // OK, XL = w*L, and ZL = j*XL, but don't mind this here.\nXC = 1/(j*w*C) // I haven't ruined physics, it's only a minor terminology tweak\n\n\nwhere j = sqrt(-1), and w = 2*pi*50 (The frequency is 50 Hz).\n\nThe combined impedance, when the components are in series is Z = R + XL + XC. You might remember U = R*I from high school physics lectures. It's almost the same, but a bit more complex now: VS = Z*I. The current is calculated by dividing the voltage VS by the total impedance Z. To find the voltage over a single component, you need to know the current, then multiply it by the impedance. For simplicity, the voltage is assumed to be VS = 1+0*j.\n\nEquations you might need are:\n\nXL = j*w*L\nXC = 1/(j*w*C)\nZ = R + XL + XC // The combined impedance of the circuit\nI = VS / Z // The current I (Voltage divided by impedance)\nVR = I * R // Voltage over resistance (Current times resistance)\nVL = I * XL // Voltage over inductor (Current times impedance)\nVC = I * XC // Voltage over capacitor (Current times impedance)\n\n\nThe input is from either STDIN or as function arguments. The output/result must be three complex numbers, in a list, string or whatever is most practical in your language. It's not necessary to include names (ex VR = ...), as long as the results are in the same order as below. The precision has to be at least 3 decimal points for both the real and imaginary part. The input and output/results can be in scientific notation if that's default in your language.\n\nR and L are >= 0, and C > 0. R, L, C <= inf (or the highest possible number in your language).\n\nA simple test case:\n\nR = 1, L = 1, C = 0.00001\n\nVR = 0.0549 + 0.2277i\nVL = -71.5372 +17.2353i\nVC = 72.4824 -17.4630i\n\n\nFor the results above, this could be one (of many) valid ouput format:\n\n(0.0549 + 0.2277i, -71.5372 +17.2353i, 72.4824 -17.4630i)\n\n\nSome valid ouput formats for one voltage value are:\n\n1.234+i1.234, 1.23456+1.23456i, 1.2345+i*1.2345, 1.234e001+j*1.234e001.\n\n\nThis list is not exclusive, so other variants can be used, as long as the imaginary part is indicated by an i or a j (common in electrical engineering as i is used for current).\n\nTo verify the result for other values of R,L and C, the following must be true for all results: VR + VL + VC = 1.\n\nThe shortest code in bytes win!\n\nBy the way: Yes, it's voltage over a component, and current through a component. A voltage has never gone through anything. =)\n\n• Actually, reactances are real numbers, so XL = omega*L. The impedance of the inductor is Z = jXL. (This does not affect the problem, it's only a correction) – Voitcus Sep 1 '15 at 10:09\n• @Voitcus, true... I simplified it a bit, to not make the question too confusing. I included the j in the XL/XC terms, when going to the frequency domain. I never said that the reactance was complex though (although I called it X, and not jX) =) But I agree with you! I actually called it impedance too. – Stewie Griffin Sep 1 '15 at 10:18\n• Can I take a list of 3 numbers as a function input, or does it have to be 3 separate arguments? – Martin Ender Sep 1 '15 at 10:37\n• @MartinBüttner, list is OK. – Stewie Griffin Sep 1 '15 at 10:57\n\nPyth, 3029 28 bytes\n\nL*vw*100.l_1)K[Qy0c1y1)cRsKK\n\n\nTry it online.\n\nMathematica, 33 bytes\n\nSo close to Pyth...\n\nl/Tr[l={#,#2(x=100Pi*I),1/x/#3}]&\n\n\nThis is an unnamed function, which takes R, L and C as its three arguments and returns a list of complex numbers as the result (in the required order VR, VL, VC). Example usage:\n\nl/Tr[l={#,#2(x=100Pi*I),1/x/#3}]&[1, 1, 0.00001]\n(* {0.0548617 + 0.22771 I, -71.5372 + 17.2353 I, 72.4824 - 17.463 I} *)\n\n\nOctave / Matlab, 53 51 bytes\n\nfunction f(R,L,C)\nk=-.01j/pi;Z=[R L/k k/C];Z/sum(Z)\n\n\nTry it online\n\nThanks to @StewieGriffin for removing two bytes.\n\n• @StewieGriffin 100j?! So many years using Matlab and I didn't know that could be done! :-) (I did know 1j, but I thought it was just that). Thanks! – Luis Mendo Sep 1 '15 at 16:06\n• ... aaaand: Apparently I know more about you than you do! Because, you do/did know that it is possible! =) – Stewie Griffin Sep 1 '15 at 16:10\n• @StewieGriffin Ooooh. It happened to me again. Bad memory!!:-D (I never really use that notation) – Luis Mendo Sep 1 '15 at 16:11\n• You can save another byte if you start with the inverse of k, like this: k=-.01j/pi;Z=[R,L/k,k/C];Z/sum(Z), or k=-.01j/pi;[R L/k k/C]/(R+L/k+k/C). =) – Stewie Griffin Sep 2 '15 at 9:02\n• @StewieGriffin Good idea! Edited – Luis Mendo Sep 2 '15 at 9:34\n\nAPL (Dyalog Unicode), 27 24 bytesSBCS\n\nFull program. Prompts for C, L, R in that order.\n\n(⊢÷+/)(⎕,⎕∘÷,÷∘⎕)÷○0J100\n\n\nTry it online!\n\n0J100 100 i\n\n○ π times that\n\n÷ reciprocal of that\n\n() apply the following tacit function:\n\n÷∘⎕ divide the argument by input (C)\n\n⎕∘÷, prepend input (L) divided by the argument\n\n⎕, prepend input (R)\n\n() apply the following tacit function:\n\n+/ sum the arguments\n\n⊢÷ divide the arguments by that\n\n• @StewieGriffin I am note sure what you mean. the \"high minus\" ¯ is APL's negative number prefix, to distinguish from the function (i.e math operator) negate -. Anyway, it wouldn't be fair to not count APL chars as single bytes, it is just a matter of encoding, and there are many APL systems that use single bytes to store APL code. E.g. Dyalog has both Unicode and Classic (single-byte) versions of their interpreter. – Adám Sep 3 '15 at 7:18\n• I agree, if you have used encoding where every character is a single byte, then the number of chars should equal the number of bytes. Can you verify that it's the case (i'm not too familiar with apl an different encoding systems). Also, i wasn't familiar with the high minus sign. My bad... – Stewie Griffin Sep 3 '15 at 8:17\n• I just pasted the code into a \"count number of bytes\" box and got back 31. If it's not correct, then of course you'll have a score of 28 :-) Although, ..,49J¯17.4.. would mean the first part is imaginary and the second is real in any other language (or in mathematical notation in general), so it might violate the rule \"as long as the imaginary part is indicated by an i or a j\". Have a +1 for teaching me about \"high minus\", and a nice answer, but I'm not sure I can pick it as the accepted answer, when that day comes. – Stewie Griffin Sep 3 '15 at 8:28\n• @StewieGriffin Ninja'd ;) – Beta Decay Sep 3 '15 at 8:31\n• @StewieGriffin See help.dyalog.com/14.1/Content/Language/System%20Functions/… – Adám Sep 3 '15 at 8:40\n\nOctave, 41 bytes\n\n@(R,L,C)(Z=[R L/(k=-.01j/pi) k/C])/sum(Z)\n\n\n1/(100*j*pi) can be shortened to -.01j/pi which is a lot shorter. By assigning it to the variable k inline, the variable can be used twice. Assigning the entire vector to the variable Z costs 4 bytes, but allows us to divide by sum(Z), which is 5 bytes shorter than (R+L/k+k/C)." ]
[ null, "https://i.stack.imgur.com/4NLYs.gif", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.86979395,"math_prob":0.9565575,"size":2856,"snap":"2019-26-2019-30","text_gpt3_token_len":820,"char_repetition_ratio":0.100981764,"word_repetition_ratio":0.010928961,"special_character_ratio":0.32107842,"punctuation_ratio":0.1480315,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99502933,"pos_list":[0,1,2],"im_url_duplicate_count":[null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-06-26T17:54:45Z\",\"WARC-Record-ID\":\"<urn:uuid:fde7bc13-b139-4169-b909-49b6856078b6>\",\"Content-Length\":\"188084\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6553e222-6511-43b9-b8b3-901f0d3429a4>\",\"WARC-Concurrent-To\":\"<urn:uuid:c271bcea-14cc-4b69-b5ae-e69527167513>\",\"WARC-IP-Address\":\"151.101.193.69\",\"WARC-Target-URI\":\"https://codegolf.stackexchange.com/questions/55806/whats-the-voltage-over-each-component\",\"WARC-Payload-Digest\":\"sha1:T5ROJGX4SVASI2S7LE3BDGJTTTBRY6TN\",\"WARC-Block-Digest\":\"sha1:XSX5LZKVIUMRD3GCI4XA3KPOKSNQNTWS\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-26/CC-MAIN-2019-26_segments_1560628000414.26_warc_CC-MAIN-20190626174622-20190626200622-00158.warc.gz\"}"}
https://fr.maplesoft.com/support/help/errors/view.aspx?path=SumTools%2FHypergeometric%2FGosper
[ "", null, "Gosper - Maple Help\n\nSumTools[Hypergeometric]\n\n Gosper\n perform indefinite hypergeometric summation", null, "Calling Sequence Gosper(T, n, r)", null, "Parameters\n\n T - hypergeometric term of $n$ n - variable r - (optional) name", null, "Description\n\n • The Gosper(T,n,r) command solves the problem of indefinite hypergeometric summation, that is, for the given hypergeometric term $T$ of $n$, it constructs another hypergeometric term $G$ of $n$ such that $T\\left(n\\right)=G\\left(n+1\\right)-G\\left(n\\right)$, provided that such a term exists. Otherwise, the function returns the error message \"no solution found\".\n • If the third optional argument $r$ is specified, it is assigned the rational function $r\\left(n\\right)$ such that $G\\left(n\\right)=r\\left(n\\right)T\\left(n\\right)$ if $G$ was computed successfully, and FAIL otherwise.", null, "Examples\n\n > $\\mathrm{with}\\left({\\mathrm{SumTools}}_{\\mathrm{Hypergeometric}}\\right):$\n > $T≔\\frac{{4}^{n}{n}^{4}}{\\mathrm{binomial}\\left(2n,n\\right)}$\n ${T}{≔}\\frac{{{4}}^{{n}}{}{{n}}^{{4}}}{\\left(\\genfrac{}{}{0}{}{{2}{}{n}}{{n}}\\right)}$ (1)\n > $\\mathrm{Gosper}\\left(T,n\\right)$\n $\\frac{\\left({2}{}{n}{-}{1}\\right){}\\left({63}{}{{n}}^{{4}}{-}{140}{}{{n}}^{{3}}{+}{60}{}{{n}}^{{2}}{+}{26}{}{n}{-}{6}\\right){}{{4}}^{{n}}}{{693}{}\\left(\\genfrac{}{}{0}{}{{2}{}{n}}{{n}}\\right)}$ (2)\n > $T≔\\frac{{\\prod }_{j=1}^{n-1}\\phantom{\\rule[-0.0ex]{5.0px}{0.0ex}}\\left({j}^{3}\\right)}{{\\prod }_{j=1}^{n}\\phantom{\\rule[-0.0ex]{5.0px}{0.0ex}}\\left({j}^{3}+1\\right)}$\n ${T}{≔}\\frac{{\\prod }_{{j}{=}{1}}^{{n}{-}{1}}{}{{j}}^{{3}}}{{\\prod }_{{j}{=}{1}}^{{n}}{}\\left({{j}}^{{3}}{+}{1}\\right)}$ (3)\n > $\\mathrm{Gosper}\\left(T,n,'r'\\right)$\n $\\frac{\\left({n}{+}{1}\\right){}\\left({I}{}\\sqrt{{3}}{-}{2}{}{n}{+}{1}\\right){}\\left({I}{}\\sqrt{{3}}{+}{2}{}{n}{-}{1}\\right){}\\left({\\prod }_{{j}{=}{1}}^{{n}{-}{1}}{}{{j}}^{{3}}\\right)}{{4}{}\\left({\\prod }_{{j}{=}{1}}^{{n}}{}\\left({{j}}^{{3}}{+}{1}\\right)\\right)}$ (4)\n > $r$\n $\\frac{\\left({n}{+}{1}\\right){}\\left({I}{}\\sqrt{{3}}{-}{2}{}{n}{+}{1}\\right){}\\left({I}{}\\sqrt{{3}}{+}{2}{}{n}{-}{1}\\right)}{{4}}$ (5)\n\nNo hypergeometric solution found:\n\n > $T≔\\frac{{n}^{2}}{\\mathrm{binomial}\\left(2n,n\\right)}$\n ${T}{≔}\\frac{{{n}}^{{2}}}{\\left(\\genfrac{}{}{0}{}{{2}{}{n}}{{n}}\\right)}$ (6)\n > $\\mathrm{Gosper}\\left(T,n,'r'\\right)$\n > $r$\n ${\\mathrm{FAIL}}$ (7)", null, "References\n\n Gosper, R.W., Jr. \"Decision procedure for indefinite hypergeometric summation.\" Proc. Natl. Acad. Sci. USA. Vol. 75. (1977): 40-42." ]
[ null, "https://bat.bing.com/action/0", null, "https://fr.maplesoft.com/support/help/errors/arrow_down.gif", null, "https://fr.maplesoft.com/support/help/errors/arrow_down.gif", null, "https://fr.maplesoft.com/support/help/errors/arrow_down.gif", null, "https://fr.maplesoft.com/support/help/errors/arrow_down.gif", null, "https://fr.maplesoft.com/support/help/errors/arrow_down.gif", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.63939464,"math_prob":1.0000083,"size":1501,"snap":"2023-14-2023-23","text_gpt3_token_len":606,"char_repetition_ratio":0.17902471,"word_repetition_ratio":0.0,"special_character_ratio":0.236509,"punctuation_ratio":0.12987013,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99959344,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-05-29T05:15:30Z\",\"WARC-Record-ID\":\"<urn:uuid:5fc3b4b0-9333-4534-8f1f-3be494685d5e>\",\"Content-Length\":\"249647\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ce5a2daf-c150-4145-82c4-1139372f5de8>\",\"WARC-Concurrent-To\":\"<urn:uuid:212d2bf5-cf7f-48d1-9294-cde3dcf033b7>\",\"WARC-IP-Address\":\"199.71.183.28\",\"WARC-Target-URI\":\"https://fr.maplesoft.com/support/help/errors/view.aspx?path=SumTools%2FHypergeometric%2FGosper\",\"WARC-Payload-Digest\":\"sha1:BPIBTBT7VU76EECCJDU732QNQ36HLCKL\",\"WARC-Block-Digest\":\"sha1:WZCXSC3CMBZNDKF3RTOPXPQGQKAE36CL\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224644683.18_warc_CC-MAIN-20230529042138-20230529072138-00100.warc.gz\"}"}
https://www.edge.org/response-detail/11857
[ "# 2007 : WHAT ARE YOU OPTIMISTIC ABOUT?\n\nInformation Scientist and Professor of Electrical Engineering and Law, University of Southern California; Author, Noise, Fuzzy Thinking\nElectrical Engineer, USC; Author, Noise\n\nComputers Will Let Data Tell More Of Their Own Story\n\nI am optimistic that the rapid growth in computing power will let measured data tell more of their own story—rather than tell the story of the \"model\" that someone imposes on the data. The slow but steady movement away from classical model-based science tracks the growth in computers and digital processors.\n\nAlmost all traditional science and engineering has been model-based. Equations define the simplest models or functional relationships among input and output variables. Usually some super-smart thinker first makes an inspired guess at the model equations. The grand examples are Newton's guess at the inverse-square law of gravity and then Einstein's later and even bolder guess at the non-Euclidean geometry of the spacetime continuum.\nMost models have lesser scope and far humbler origins. The modeler often guesses at a linear or quadratic or other simple relationship between the inputs and outputs even though the world itself appears to be quite nonlinear in general and often nonstationary as well. A standard modeling trick is to let a random noise term account for the difference between the nonlinear and largely unknown world and the far simpler model. Thus the humble noise or nuisance term carries much of the model's explanatory burden. Then the modeler compares the model to some data and looks for a pattern match to some degree. Other models can compete with the first model based on their pattern matches with the data.\n\nModel-based science has produced most of our technological achievements. And it will likely always be at the core of the science curriculum. But it does rely on an arcane ability to guess at nature with symbolic mathematics. It is hard to see a direct evolutionary basis for such refined symbol manipulation although there may be several indirect bases that involve language skills and spatial reasoning.\n\nA more immediate issue is that we tend to over-teach models in the science and engineering curriculum. One reason for this is that it is easy to teach closed-form equations and related technical theorems. Just state and derive the model result and apply it to examples based on numbers or on other equations. Equations make for wonderful homework problems. And it is especially easy to test on model equations and their consequences. It is not so easy to teach or test on data-intensive problems that can involve large tables of numerical data.\n\nAnother reason for over-teaching models is that so many of our textbooks in science and engineering have their roots in the pre-computing era surrounding World War II. That was the Shannon era of great analytical minds and authors such as probabilist Joseph Doob and chemist Linus Pauling and economist Paul Samuelson and many others. Students performed computations with slide rulers and then later with pocket calculators. Science and engineering textbooks today still largely build on those earlier texts from the pre-computer age where so often mathematical assumptions trumped raw data.\n\nRising computer power led to the first large break with the math-model approach in various species of artificial intelligence. Computer scientists programmed expert-system search trees directly from words. Some put uncertainty math models on the trees but the tree structure itself used words or text strings. The non-numerical structure let experts directly encode their expertise in verbal rules. That removed the old math models but still left the problem of literally doing only what the expert or modeler said to do.\nAdaptive fuzzy rule-based systems allowed experts to state rules in words while the fuzzy system itself remained numeric. Data could in principle overcome modeler bias by adapting the rule structure in new directions as the data poured in. That reduced expert or modeler input to little more than giving initial conditions and occasional updates to the inference structure. Still all these AI tree-based knowledge systems suffer from the curse of dimensionality in some form of combinatorial rule explosion.\n\nFeedforward neural networks further reduced the expert to a supervisor who gives the network preferred input-output pairs to train its synaptic throughput structure. But this comes at the expense of having no logical audit trail in the network's innards that can explain what patterns the network encodes or what patterns it partly or wholly forgets when it learns new input-output patterns. Unsupervised neural networks tend to be less powerful but omit more modeler bias because the user does not give the network preferred outputs or teaching signals. All these AI systems are model-free in the sense that the user does not need to state a math model of the process at hand. But each still has some form of a functional math model that converts inputs to outputs.\n\nStatistics has arguably been the real leader in the shift from models to data --even though classical linear regression has been imposing lines and planes on the world for over two centuries. Neural and fuzzy learning systems turn out ultimately to have the structure of nonlinear but still statistical approximators. Closed-form statistics also produced Bayesian models as a type of equation-based expert system where the expert can inject his favorite probability curve on the problem at hand. These models have the adaptive benefit that successive data often washes away the expert's initial math guesses just as happens in an adaptive fuzzy system. The AI systems are Bayesian in this sense of letting experts encode expertise directly into a knowledge structure—but again the knowledge structure itself is a model of sorts and thus an imposition on the data.\n\nThe hero of data-based reasoning is the bootstrap resample. The bootstrap has produced a revolution of sorts in statistics since statistician Bradley Efron introduced it in 1979 when personal computers were becoming more available. The bootstrap in effect puts the data set in a bingo hopper and lets the user sample from the data set over and over again just so long as the user puts the data back in the hopper after drawing and recording it. Computers easily let one turn an initial set of 100 data points into tens of thousands of resampled sets of 100 points each. Efron and many others showed that these virtual samples contain further information about the original data set. This gives a statistical free lunch except for the extensive computation involved—but that grows a little less expensive each day. A glance at most multi-edition textbook on statistics will show the growing influence of the bootstrap and related resampling techniques in the later editions.\n\nConsider the model-based baggage that goes into the standard 95% confidence interval for a population mean. Such confidence intervals appear expressly in most medical studies and reports and appear implicitly in media poll results as well as appearing throughout science and engineering. The big assumption is that the data come reasonably close to a bell curve even if it has thick tails. A similar assumption occurs when instructors grade on a \"curve\" even the student grades often deviate substantially from a bell curve (such as clusters of good and poor grades). Sometimes one or more statistical tests will justify the bell-curve assumption to varying degrees — and some of the tests themselves make assumptions about the data. The simplest bootstrap confidence interval makes no such assumption. The user computes a sample mean for each of the thousands of virtual data sets. Then the user rank-orders these thousands of computed sample means from smallest to largest and picks the appropriate percentile estimates. Suppose there were a 1000 virtual sample sets and thus 1000 computed sample means. The bootstrap interval picks the 25th — largest sample mean for the lower bound of the 95% confidence interval and picks the 975th — largest sample mean for the upper bound. Done.\n\nBootstrap intervals tend to give similar results as model-based intervals for test cases where the user generates the original data from a normal bell curve or the like. The same holds for bootstrap hypothesis tests. But in the real world we do not know the \"true\" distribution that generated the observed data. So why not avoid the clear potential for modeler bias and just use the bootstrap estimate in the first place?\n\nBootstrap resampling has started to invade almost every type of statistical decision making. Statisticians have even shown how to apply it in complex cases of time-series and dependent data. It still tends to appear in statistics texts as a special topic after the student learns the traditional model-based methods. And there may be no easy way to give student scientists and engineers an in-class exam on bootstrap resampling with real data.\n\nStill the trend is toward ever more data-based methods in science and engineering — and thus towards letting the data tell more of their own story (if there is a story to tell). Math models have tradition and human psychology on their side. But our math models grow at an approximate linear rate while data processing grows exponentially.\n\nComputing power will out." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9375509,"math_prob":0.8654745,"size":9230,"snap":"2019-51-2020-05","text_gpt3_token_len":1706,"char_repetition_ratio":0.11391719,"word_repetition_ratio":0.0053691277,"special_character_ratio":0.17973998,"punctuation_ratio":0.04809494,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95227695,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-20T10:13:26Z\",\"WARC-Record-ID\":\"<urn:uuid:b36c564b-b288-4987-bd7b-1df6be8560ea>\",\"Content-Length\":\"48425\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:4e53ed58-f662-4c30-8271-513da86aca5f>\",\"WARC-Concurrent-To\":\"<urn:uuid:443b71a3-2533-4bd8-8e8c-186dae0ec14c>\",\"WARC-IP-Address\":\"104.26.7.202\",\"WARC-Target-URI\":\"https://www.edge.org/response-detail/11857\",\"WARC-Payload-Digest\":\"sha1:WO7EBMS2RFH2LBPICFBD6V6B2C5I336C\",\"WARC-Block-Digest\":\"sha1:S5WZJ5W6HOHSKN7OESGAXWHMRTSMPE7S\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579250598217.23_warc_CC-MAIN-20200120081337-20200120105337-00259.warc.gz\"}"}
https://www.minizinc.org/doc-2.6.2/en/predicates.html
[ "# 2.3. Predicates and Functions¶\n\nPredicates in MiniZinc allow us to capture complex constraints of our model in a succinct way. Predicates in MiniZinc are used to model with both predefined global constraints, and to capture and define new complex constraints by the modeller. Functions are used in MiniZinc to capture common structures of models. Indeed a predicate is just a function with output type var bool.\n\n## 2.3.1. Global Constraints¶\n\nThere are many global constraints defined in MiniZinc for use in modelling. The definitive list is to be found in the documentation for the release, as the list is slowly growing. Below we discuss some of the most important global constraints.\n\n### 2.3.1.1. Alldifferent¶\n\nThe alldifferent constraint takes an array of variables and constrains them to take different values. A use of the alldifferent has the form\n\nalldifferent(array[int] of var int: x)\n\n\nThe argument is an array of integer variables.\n\nThe alldifferent constraint is one of the most studied and used global constraints in constraint programming. It is used to define assignment subproblems, and efficient global propagators for alldifferent exist. The models send-more-money.mzn (Listing 2.2.4) and sudoku.mzn (Listing 2.2.5) are examples of models using alldifferent.\n\n### 2.3.1.2. Cumulative¶\n\nThe cumulative constraint is used for describing cumulative resource usage.\n\ncumulative(array[int] of var int: s, array[int] of var int: d,\narray[int] of var int: r, var int: b)\n\n\nIt requires that a set of tasks given by start times s, durations d, and resource requirements r, never require more than a global resource bound b at any one time.\n\nListing 2.3.1 Model for moving furniture using cumulative (moving.mzn).\ninclude \"cumulative.mzn\";\n\nenum OBJECTS;\narray[OBJECTS] of int: duration; % duration to move\narray[OBJECTS] of int: handlers; % number of handlers required\narray[OBJECTS] of int: trolleys; % number of trolleys required\n\nint: available_handlers;\nint: available_trolleys;\nint: available_time;\n\narray[OBJECTS] of var 0..available_time: start;\nvar 0..available_time: end;\n\nconstraint cumulative(start, duration, handlers, available_handlers);\nconstraint cumulative(start, duration, trolleys, available_trolleys);\n\nconstraint forall(o in OBJECTS)(start[o] +duration[o] <= end);\n\nsolve minimize end;\n\noutput [ \"start = $$start)\\nend = \\(end)\\n\"]; Listing 2.3.2 Data for moving furniture using cumulative (moving.dzn). OBJECTS = { piano, fridge, doublebed, singlebed, wardrobe, chair1, chair2, table }; duration = [60, 45, 30, 30, 20, 15, 15, 15]; handlers = [3, 2, 2, 1, 2, 1, 1, 2]; trolleys = [2, 1, 2, 2, 2, 0, 0, 1]; available_time = 180; available_handlers = 4; available_trolleys = 3; The model in Listing 2.3.1 finds a schedule for moving furniture so that each piece of furniture has enough handlers (people) and enough trolleys available during the move. The available time, handlers and trolleys are given, and the data gives for each object the move duration, the number of handlers and the number of trolleys required. Using the data shown in ex-movingd, the command minizinc moving.mzn moving.dzn may result in the output start = [0, 60, 60, 90, 120, 0, 15, 105] end = 140 ---------- ========== Fig. 2.3.1 and Fig. 2.3.2 show the requirements for handlers and trolleys at each time in the move for this solution.", null, "Fig. 2.3.1 Histogram of usage of handlers in the move.", null, "Fig. 2.3.2 Histogram of usage of trolleys in the move. ### 2.3.1.3. Table¶ The table constraint enforces that a tuple of variables takes a value from a set of tuples. Since there are no tuples in MiniZinc this is encoded using arrays. The usage of table has one of the forms table(array[int] of var bool: x, array[int, int] of bool: t) table(array[int] of var int: x, array[int, int] of int: t) depending on whether the tuples are Boolean or integer. The constraint enforces \\(x \\in t$$ where we consider $$x$$ and each row in $$t$$ to be a tuple, and $$t$$ to be a set of tuples.\n\nListing 2.3.3 Model for meal planning using table constraint (meal.mzn).\n% Planning a balanced meal\ninclude \"table.mzn\";\nint: min_energy;\nint: min_protein;\nint: max_salt;\nint: max_fat;\nset of FOOD: desserts;\nset of FOOD: mains;\nset of FOOD: sides;\nenum FEATURE = { name, energy, protein, salt, fat, cost};\nenum FOOD;\narray[FOOD,FEATURE] of int: dd; % food database\n\narray[FEATURE] of var int: main;\narray[FEATURE] of var int: side;\narray[FEATURE] of var int: dessert;\nvar int: budget;\n\nconstraint main[name] in mains;\nconstraint side[name] in sides;\nconstraint dessert[name] in desserts;\nconstraint table(main, dd);\nconstraint table(side, dd);\nconstraint table(dessert, dd);\nconstraint main[energy] + side[energy] + dessert[energy] >=min_energy;\nconstraint main[protein]+side[protein]+dessert[protein] >=min_protein;\nconstraint main[salt] + side[salt] + dessert[salt] <= max_salt;\nconstraint main[fat] + side[fat] + dessert[fat] <= max_fat;\nconstraint budget = main[cost] + side[cost] + dessert[cost];\n\nsolve minimize budget;\n\noutput [\"main = \",show(to_enum(FOOD,main[name])),\n\", side = \",show(to_enum(FOOD,side[name])),\n\", dessert = \",show(to_enum(FOOD,dessert[name])),\n\", cost = \",show(budget), \"\\n\"];\n\nListing 2.3.4 Data for meal planning defining the table used (meal.dzn).\nFOOD = { icecream, banana, chocolatecake, lasagna,\nsteak, rice, chips, brocolli, beans} ;\n\ndd = [| icecream, 1200, 50, 10, 120, 400 % icecream\n| banana, 800, 120, 5, 20, 120 % banana\n| chocolatecake, 2500, 400, 20, 100, 600 % chocolate cake\n| lasagna, 3000, 200, 100, 250, 450 % lasagna\n| steak, 1800, 800, 50, 100, 1200 % steak\n| rice, 1200, 50, 5, 20, 100 % rice\n| chips, 2000, 50, 200, 200, 250 % chips\n| brocolli, 700, 100, 10, 10, 125 % brocolli\n| beans, 1900, 250, 60, 90, 150 |]; % beans\n\nmin_energy = 3300;\nmin_protein = 500;\nmax_salt = 180;\nmax_fat = 320;\ndesserts = { icecream, banana, chocolatecake };\nmains = { lasagna, steak, rice };\nsides = { chips, brocolli, beans };\n\n\nThe model in Listing 2.3.3 searches for balanced meals. Each meal item has a name (encoded as an integer), a kilojoule count, protein in grams, salt in milligrams, and fat in grams, as well as cost in cents. The relationship between these items is encoded using a table constraint. The model searches for a minimal cost meal which has a minimum kilojoule count min_energy, a minimum amount of protein min_protein, maximum amount of salt max_salt and fat max_fat.\n\n### 2.3.1.4. Regular¶\n\nThe regular constraint is used to enforce that a sequence of variables takes a value defined by a finite automaton. The usage of regular has the form\n\nregular(array[int] of var int: x, int: Q, int: S,\narray[int,int] of int: d, int: q0, set of int: F)\n\n\nIt constrains that the sequence of values in array x (which must all be in the range 1..S) is accepted by the DFA of Q states with input 1..S and transition function d (which maps <1..Q, 1..S> to 0..Q) and initial state q0 (which must be in 1..Q) and accepting states F (which all must be in 1..Q). State 0 is reserved to be an always failing state.", null, "Fig. 2.3.3 A DFA determining correct rosters.\n\nConsider a nurse rostering problem. Each nurse is scheduled for each day as either: (d) on day shift, (n) on night shift, or (o) off. In each four day period a nurse must have at least one day off, and no nurse can be scheduled for 3 night shifts in a row. This can be encoded using the incomplete DFA shown in Fig. 2.3.3. We can encode this DFA as having start state 1, final states 1..6, and transition function\n\nd n o\n1 2 3 1\n2 4 4 1\n3 4 5 1\n4 6 6 1\n5 6 0 1\n6 0 0 1\n\nNote that state 0 in the table indicates an error state. The model shown in Listing 2.3.5 finds a schedule for num_nurses nurses over num_days days, where we require req_day nurses on day shift each day, and req_night nurses on night shift, and that each nurse takes at least min_night night shifts.\n\nListing 2.3.5 Model for nurse rostering using regular constraint (nurse.mzn)\n% Simple nurse rostering\ninclude \"regular.mzn\";\nenum NURSE;\nenum DAY;\nint: req_day;\nint: req_night;\nint: min_night;\n\nenum SHIFT = { d, n, o };\nint: S = card(SHIFT);\n\nint: Q = 6; int: q0 = 1; set of int: STATE = 1..Q;\narray[STATE,SHIFT] of int: t =\n[| 2, 3, 1 % state 1\n| 4, 4, 1 % state 2\n| 4, 5, 1 % state 3\n| 6, 6, 1 % state 4\n| 6, 0, 1 % state 5\n| 0, 0, 1|]; % state 6\n\narray[NURSE,DAY] of var SHIFT: roster;\n\nconstraint forall(j in DAY)(\nsum(i in NURSE)(roster[i,j] == d) == req_day /\\\nsum(i in NURSE)(roster[i,j] == n) == req_night\n);\nconstraint forall(i in NURSE)(\nregular([roster[i,j] | j in DAY], Q, S, t, q0, STATE) /\\\nsum(j in DAY)(roster[i,j] == n) >= min_night\n);\n\nsolve satisfy;\n\noutput [ show(roster[i,j]) ++ if j==card(DAY) then \"\\n\" else \" \" endif\n| i in NURSE, j in DAY ];\n\n\nRunning the command\n\n\\$ minizinc nurse.mzn nurse.dzn\n\n\nfinds a 10 day schedule for 7 nurses, requiring 3 on each day shift and 2 on each night shift, with a minimum 2 night shifts per nurse. A possible output is\n\nd o n o n o d n o o\nd o d n n o d d n o\no d d n o n d n o n\no d d d o n n o n n\nd d n o d d n o d d\nn n o d d d o d d d\nn n o d d d o d d d\n----------\n\n\nThere is an alternate form of the regular constraint regular_nfa which specifies the regular expression using an NFA (without $$\\epsilon$$ arcs). This constraint has the form\n\nregular_nfa(array[int] of var int: x, int: Q, int: S,\narray[int,int] of set of int: d, int: q0, set of int: F)\n\n\nIt constrains that the sequence of values in array x (which must all be in the range 1..S) is accepted by the NFA of Q states with input 1..S and transition function d (which maps <1..Q, 1..S> to subsets of 1..Q) and initial state q0 (which must be in 1..Q) and accepting states F (which all must be in 1..Q). There is no need for a failing state 0, since the transition function can map to an empty set of states.\n\n## 2.3.2. Defining Predicates¶\n\nOne of the most powerful modelling features of MiniZinc is the ability for the modeller to define their own high-level constraints. This allows them to abstract and modularise their model. It also allows re-use of constraints in different models and allows the development of application specific libraries defining the standard constraints and types.\n\nListing 2.3.6 Model for job shop scheduling using predicates (jobshop2.mzn)\nint: jobs; % no of jobs\nset of int: JOB = 1..jobs;\nint: tasks; % no of tasks per job\narray [JOB,TASK] of int: d; % task durations\nint: total = sum(i in JOB, j in TASK)(d[i,j]);% total duration\nint: digs = ceil(log(10.0,total)); % digits for output\narray [JOB,TASK] of var 0..total: s; % start times\nvar 0..total: end; % total end time\n\n% nooverlap\npredicate no_overlap(var int:s1, int:d1, var int:s2, int:d2) =\ns1 + d1 <= s2 \\/ s2 + d2 <= s1;\n\nconstraint %% ensure the tasks occur in sequence\nforall(i in JOB) (\n(s[i,j] + d[i,j] <= s[i,j+1]) /\\\n);\n\nconstraint %% ensure no overlap of tasks\nforall(j in TASK) (\nforall(i,k in JOB where i < k) (\nno_overlap(s[i,j], d[i,j], s[k,j], d[k,j])\n)\n);\n\nsolve minimize end;\n\noutput [\"end = $$end)\\n\"] ++ [ show_int(digs,s[i,j]) ++ \" \" ++ if j == tasks then \"\\n\" else \"\" endif | i in JOB, j in TASK ]; We start with a simple example, revisiting the job shop scheduling problem from the previous section. The model is shown in Listing 2.3.6. The item of interest is the predicate item: predicate no_overlap(var int:s1, int:d1, var int:s2, int:d2) = s1 + d1 <= s2 \\/ s2 + d2 <= s1; This defines a new constraint that enforces that a task with start time s1 and duration d1 does not overlap with a task with start time s2 and duration d2. This can now be used inside the model anywhere any other Boolean expression (involving decision variables) can be used. As well as predicates the modeller can define new constraints that only involve parameters. These are useful to write fixed tests for a conditional expression. These are defined using the keyword test. For example test even(int:x) = x mod 2 = 0; Predicate definitions Predicates are defined by a statement of the form predicate <pred-name> ( <arg-def>, ..., <arg-def> ) = <bool-exp> The <pred-name> must be a valid MiniZinc identifier, and each <arg-def> is a valid MiniZinc type declaration. One relaxation of argument definitions is that the index types for arrays can be unbounded, written int. test <pred-name> ( <arg-def>, ..., <arg-def> ) = <bool-exp> The <bool-exp> of the body must be fixed. We also introduce a new form of the assert command for use in predicates. assert ( <bool-exp>, <string-exp>, <exp> ) The type of the assert expression is the same as the type of the last argument. The assert expression checks whether the first argument is false, and if so prints the second argument string. If the first argument is true it returns the third argument. Note that assert expressions are lazy in the third argument, that is if the first argument is false they will not be evaluated. Hence, they can be used for checking: predicate lookup(array[int] of var int:x, int: i, var int: y) = assert(i in index_set(x), \"index out of range in lookup\", y = x[i] ); This code will not evaluate x[i] if i is out of the range of the array x. ## 2.3.3. Defining Functions¶ Functions are defined in MiniZinc similarly to predicates, but with a more general return type. The function below defines the index in a Sudoku matrix of the \\(a1^{th}$$ row (or column) of the $$a^{th}$$ subsquare.\n\nfunction int: posn(int: a, int: a1) = (a-1) * S + a1;\n\n\nWith this definition we can replace the last constraint in the Sudoku problem shown in Listing 2.2.5 by\n\nconstraint forall(a, o in SubSquareRange)(\nalldifferent([ puzzle [ posn(a,a1), posn(o,o1) ] |\na1, o1 in SubSquareRange ] ) );\n\n\nFunctions are useful for encoding complex expressions that are used frequently in the model. For example, imagine placing the numbers 1 to $$n$$ in different positions in an $$n \\times n$$ grid such that the Manhattan distance between any two numbers $$i$$ and $$j$$ is greater than the maximum of the two numbers minus 1. The aim is to minimize the total of the Manhattan distances between the pairs. The Manhattan distance function can be expressed as:\n\nfunction var int: manhattan(var int: x1, var int: y1,\nvar int: x2, var int: y2) =\nabs(x1 - x2) + abs(y1 - y2);\n\n\nThe complete model is shown in Listing 2.3.7.\n\nListing 2.3.7 Model for a number placement problem illustrating the use of functions (manhattan.mzn).\nint: n;\nset of int: NUM = 1..n;\n\narray[NUM] of var NUM: x;\narray[NUM] of var NUM: y;\narray[NUM,NUM] of var 0..2*n-2: dist =\narray2d(NUM,NUM,[\nif i < j then manhattan(x[i],y[i],x[j],y[j]) else 0 endif\n| i,j in NUM ]);\n\n% manf\nfunction var int: manhattan(var int: x1, var int: y1,\nvar int: x2, var int: y2) =\nabs(x1 - x2) + abs(y1 - y2);\n\nconstraint forall(i,j in NUM where i < j)\n(dist[i,j] >= max(i,j)-1);\n\nvar int: obj = sum(i,j in NUM where i < j)(dist[i,j]);\nsolve minimize obj;\n\n% simply to display result\ninclude \"alldifferent_except_0.mzn\";\narray[NUM,NUM] of var 0..n: grid;\nconstraint forall(i in NUM)(grid[x[i],y[i]] = i);\nconstraint alldifferent_except_0([grid[i,j] | i,j in NUM]);\n\noutput [\"obj = $$obj);\\n\"] ++ [ if fix(grid[i,j]) > 0 then show(grid[i,j]) else \".\" endif ++ if j = n then \"\\n\" else \"\" endif | i,j in NUM ]; Function definitions Functions are defined by a statement of the form function <ret-type> : <func-name> ( <arg-def>, ..., <arg-def> ) = <exp> The <func-name> must be a valid MiniZinc identifier, and each <arg-def> is a valid MiniZinc type declaration. The <ret-type> is the return type of the function which must be the type of <exp>. Arguments have the same restrictions as in predicate definitions. Functions in MiniZinc can have any return type, not just fixed return types. Functions are useful for defining and documenting complex expressions that are used multiple times in a model. ## 2.3.4. Reflection Functions¶ To help write generic tests and predicates, various reflection functions return information about array index sets, var set domains and decision variable ranges. Those for index sets are index_set(<1-D array>), index_set_1of2(<2-D array>), index_set_2of2(<2-D array>), and so on for higher dimensional arrays. A better model of the job shop conjoins all the non-overlap constraints for a single machine into a single disjunctive constraint. An advantage of this approach is that while we may initially model this simply as a conjunction of non-overlap constraints, if the underlying solver has a better approach to solving disjunctive constraints we can use that instead, with minimal changes to our model. The model is shown in Listing 2.3.8. Listing 2.3.8 Model for job shop scheduling using disjunctive predicate (jobshop3.mzn). include \"disjunctive.mzn\"; int: jobs; % no of jobs set of int: JOB = 1..jobs; int: tasks; % no of tasks per job set of int: TASK = 1..tasks; array [JOB,TASK] of int: d; % task durations int: total = sum(i in JOB, j in TASK)(d[i,j]);% total duration int: digs = ceil(log(10.0,total)); % digits for output array [JOB,TASK] of var 0..total: s; % start times var 0..total: end; % total end time constraint %% ensure the tasks occur in sequence forall(i in JOB) ( forall(j in 1..tasks-1) (s[i,j] + d[i,j] <= s[i,j+1]) /\\ s[i,tasks] + d[i,tasks] <= end ); constraint %% ensure no overlap of tasks forall(j in TASK) ( disjunctive([s[i,j] | i in JOB], [d[i,j] | i in JOB]) ); solve minimize end; output [\"end = \\(end)\\n\"] ++ [ show_int(digs,s[i,j]) ++ \" \" ++ if j == tasks then \"\\n\" else \"\" endif | i in JOB, j in TASK ]; The disjunctive constraint takes an array of start times for each task and an array of their durations and makes sure that only one task is active at any one time. We define the disjunctive constraint as a predicate with signature predicate disjunctive(array[int] of var int:s, array[int] of int:d); We can use the disjunctive constraint to define the non-overlap of tasks as shown in Listing 2.3.8. We assume a definition for the disjunctive predicate is given by the file disjunctive.mzn which is included in the model. If the underlying system supports disjunctive directly, it will include a file disjunctive.mzn in its globals directory (with contents just the signature definition above). If the system we are using does not support disjunctive directly we can give our own definition by creating the file disjunctive.mzn. The simplest implementation simply makes use of the no_overlap predicate defined above. A better implementation is to make use of a global cumulative constraint assuming it is supported by the underlying solver. Listing 2.3.9 shows an implementation of disjunctive. Note how we use the index_set reflection function to (a) check that the arguments to disjunctive make sense, and (b) construct the array of resource utilisations of the appropriate size for cumulative. Note also that we use a ternary version of assert here. Listing 2.3.9 Defining a disjunctive predicate using cumulative (disjunctive.mzn). include \"cumulative.mzn\"; predicate disjunctive(array[int] of var int:s, array[int] of int:d) = assert(index_set(s) == index_set(d), \"disjunctive: \" ++ \"first and second arguments must have the same index set\", cumulative(s, d, [ 1 | i in index_set(s) ], 1) ); ## 2.3.5. Local Variables¶ It is often useful to introduce local variables in a predicate, function or test. The let expression allows you to do so. It can be used to introduce both decision variables and parameters, but parameters must be initialised. For example: var s..e: x; let {int: l = s div 2; int: u = e div 2; var l .. u: y;} in x = 2*y introduces parameters l and u and variable y. While most useful in predicate, function and test definitions, let expressions can also be used in other expressions, for example for eliminating common subexpressions: constraint let { var int: s = x1 + x2 + x3 + x4 } in l <= s /\\ s <= u; Local variables can be used anywhere and can be quite useful for simplifying complex expressions. Listing 2.3.10 gives a revised version of the wedding model, using local variables to define the objective function, rather than adding lots of variables to the model explicitly. Listing 2.3.10 Using local variables to define a complex objective function (wedding2.mzn). enum Guests = { bride, groom, bestman, bridesmaid, bob, carol, ted, alice, ron, rona, ed, clara}; set of int: Seats = 1..12; set of int: Hatreds = 1..5; array[Hatreds] of Guests: h1 = [groom, carol, ed, bride, ted]; array[Hatreds] of Guests: h2 = [clara, bestman, ted, alice, ron]; set of Guests: Males = {groom, bestman, bob, ted, ron,ed}; set of Guests: Females = {bride,bridesmaid,carol,alice,rona,clara}; array[Guests] of var Seats: pos; % seat of guest include \"alldifferent.mzn\"; constraint alldifferent(pos); constraint forall(g in Males)( pos[g] mod 2 == 1 ); constraint forall(g in Females)( pos[g] mod 2 == 0 ); constraint not (pos[ed] in {1,6,7,12}); constraint abs(pos[bride] - pos[groom]) <= 1 /\\ (pos[bride] <= 6 <-> pos[groom] <= 6); solve maximize sum(h in Hatreds)( let { var Seats: p1 = pos[h1[h]]; var Seats: p2 = pos[h2[h]]; var 0..1: same = bool2int(p1 <= 6 <-> p2 <= 6); } in same * abs(p1 - p2) + (1-same) * (abs(13 - p1 - p2) + 1)); output [ show(g)++\" \" | s in Seats,g in Guests where fix(pos[g]) == s] ++ [\"\\n\"]; Using let expressions, it is possible to define a function whose result is not well-defined. For example, we could write the following: function var int: x_or_x_plus_1(var int: x) = let { var 0..1: y; } in x+y; % result is not well-defined! The result, x+y, is indeed not functionally defined by the argument of the function, x. The MiniZinc compiler does not detect this, and the behaviour of the resulting model is undefined. In particular, calling this function twice with the same argument may or may not return the same result. It is therefore important to make sure that any function you define is indeed a function! If you need non-deterministic behaviour, use a predicate: predicate x_or_x_plus_1(var int: x, var int: z) = let { var 0..1: y; } in z=x+y; ## 2.3.6. Context¶ One limitation is that predicates and functions containing decision variables that are not initialised in the declaration cannot be used inside a negative context. The following is illegal: predicate even(var int:x) = let { var int: y } in x = 2 * y; constraint not even(z); The reason for this is that solvers only solve existentially constrained problems, and if we introduce a local variable in a negative context, then the variable is universally quantified and hence out of scope of the underlying solvers. For example the \\(\\neg \\mathit{even}(z)$$ is equivalent to $$\\neg \\exists y. z = 2y$$ which is equivalent to $$\\forall y. z \\neq 2y$$.\n\nIf local variables are given values, then they can be used in negative contexts. The following is legal\n\npredicate even(var int:x) =\nlet { var int: y = x div 2; } in x = 2 * y;\n\nconstraint not even(z);\n\n\nNote that the meaning of even is correct, since if x is even then $$x = 2 * (x ~\\mbox{div}~ 2)$$. Note that for this definition $$\\neg \\mathit{even}(z)$$ is equivalent to $$\\neg \\exists y. y = z ~\\mbox{div}~ 2 \\wedge z = 2y$$ which is equivalent to $$\\exists y. y = z ~\\mbox{div}~ 2 \\wedge \\neg z \\neq 2y$$, because $$y$$ is functionally defined by $$z$$.\n\nEvery expression in MiniZinc appears in one of the four contexts: root, positive, negative, or mixed. The context of a non-Boolean expression is simply the context of its nearest enclosing Boolean expression. The one exception is that the objective expression appears in a root context (since it has no enclosing Boolean expression).\n\nFor the purposes of defining contexts we assume implication expressions e1 -> e2 are rewritten equivalently as not e1 \\/ e2, and similarly e1 <- e2 is rewritten as e1 \\/ not e2.\n\nThe context for a Boolean expression is given by:\n\nroot\n\nroot context is the context for any expression e appearing as the argument of constraint or as an assignment item, or appearing as a sub expression e1 or e2 in an expression e1 /\\ e2 occurring in a root context.\n\nRoot context Boolean expressions must hold in any model of the problem.\n\npositive\n\npositive context is the context for any expression appearing as a sub expression e1 or e2 in an expression e1 \\/ e2 occurring in a root or positive context, appearing as a sub expression e1 or e2 in an expression e1 /\\ e2 occurring in a positive context, or appearing as a sub expression e in an expression not e appearing in a negative context.\n\nPositive context Boolean expressions need not hold in a model, but making them hold will only increase the possibility that the enclosing constraint holds. A positive context expression has an even number of negations in the path from the enclosing root context to the expression.\n\nnegative\n\nnegative context is the context for any expression appearing as a sub expression e1 or e2 in an expression e1 \\/ e2 or e1 /\\ e2 occurring in a negative context, or appearing as a sub expression e in an expression not e appearing in a positive context.\n\nNegative context Boolean expressions need not hold in a model, but making them false will increase the possibility that the enclosing constraint holds. A negative context expression has an odd number of negations in the path from the enclosing root context to the expression.\n\nmixed\n\nmixed context is the context for any Boolean expression appearing as a subexpression e1 or e2 in e1 <-> e2, e1 = e2, or bool2int(e).\n\nMixed context expression are effectively both positive and negative. This can be seen from the fact that e1 <-> e2 is equivalent to (e1 /\\ e2) \\/ (not e1 /\\ not e2) and x = bool2int(e) is equivalent to (e /\\ x=1) \\/ (not e /\\ x=0).\n\nConsider the code fragment\n\nconstraint x > 0 /\\ (i <= 4 -> x + bool2int(x > i) = 5);\n\n\nthen x > 0 is in the root context, i <= 4} is in a negative context, x + bool2int(x > i) = 5 is in a positive context, and x > i is in a mixed context.\n\n## 2.3.7. Local Constraints and Partiality¶\n\nLet expressions can also be used to include local constraints, usually to constrain the behaviour of local variables. For example, consider defining an integer square root function making use of only multiplication:\n\nfunction var int: mysqrt(var int:x) =\nlet { var 0..infinity: y;\nconstraint x = y * y; } in y;\n\n\nThe local constraints ensure y takes the correct value; which is then returned by the function.\n\nLocal constraints can be used in any let expression, though the most common usage is in defining functions. A function with local constraints is often partial, which means that it is not defined for all possible inputs. For example, the mysqrt function above constrains its argument x to take a value that is in fact the square of an integer. The MiniZinc compiler handles these cases according to the relational semantics, which means that the result of applying a partial function may become false in its enclosing Boolean context. For example, consider the following model:\n\nvar 1..9: x;\nvar 0..9: y;\nconstraint (x=3 /\\ y=0) \\/ y = mysqrt(x);\n\n\nClearly, the intention of the modeller is that x=3, y=0 should be a solution. This requires the compiler to take care not to “lift” the constraint x=y*y out of the context of the function, because that would prevent it from finding any solution with x=3. You can verify that the set of solutions contains x=3, y=0 as well as the expected x=1, y=1, x=4, y=2 and x=9, y=3.\n\nIf you define a total function using local constraints, you can give the compiler a hint that allows it to produce more efficient code. For example, you could write the square function (not square root, note the subtle difference) as follows:\n\nfunction var int: mysqr(var int:x) ::promise_total =\nlet { var 0..infinity: y;\nconstraint y = x * x; } in y;\n\n\nThis function is indeed defined for any input value x. The ::promise_total annotation tells the compiler that it can safely lift all local constraints out of the context of the function call.\n\nLet expressions\n\nLocal variables can be introduced in any expression with a let expression of the form:\n\nlet { <dec>; ... <dec> ; } in <exp>\n\n\nThe declarations <dec> can be declarations of decision variables and parameters (which must be initialised) or constraint items. No declaration can make use of a newly declared variable before it is introduced.\n\nNote that local variables and constraints cannot occur in tests. Local variables cannot occur in predicates or functions that appear in a negative or mixed context, unless the variable is defined by an expression.\n\n## 2.3.8. Domain Reflection Functions¶\n\nOther important reflection functions are those that allow us to access the domains of variables. The expression lb(x) returns a value that is lower than or equal to any value that x may take in a solution of the problem. Usually it will just be the declared lower bound of x. If x is declared as a non-finite type, e.g. simply var int then it is an error. Similarly the expression dom(x) returns a (non-strict) superset of the possible values of x in any solution of the problem. Again it is usually the declared values, and again if it is not declared as finite then there is an error.\n\nListing 2.3.11 Using reflection predicates (reflection.mzn).\nvar -10..10: x;\nconstraint x in 0..4;\nint: y = lb(x);\nset of int: D = dom(x);\nsolve satisfy;\noutput [\"y = \", show(y), \"\\nD = \", show(D), \"\\n\"];\n\n\nFor example, the model show in Listing 2.3.11 may output\n\ny = -10\nD = -10..10\n----------\n\n\nor\n\ny = 0\nD = {0, 1, 2, 3, 4}\n----------\n\n\nor any answer with $$-10 \\leq y \\leq 0$$ and $$\\{0, \\ldots, 4\\} \\subseteq D \\subseteq \\{-10, \\ldots, 10\\}$$.\n\nVariable domain reflection expressions should be used in a manner where they are correct for any safe approximations, but note this is not checked! For example the additional code\n\nvar -10..10: z;\nconstraint z <= y;\n\n\nis not a safe usage of the domain information. Since using the tighter (correct) approximation leads to more solutions than the weaker initial approximation.\n\nDomain reflection\n\nThere are reflection functions to interrogate the possible values of expressions containing variables:\n\n• dom(<exp>) returns a safe approximation to the possible values of the expression.\n• lb(<exp>) returns a safe approximation to the lower bound value of the expression.\n• ub(<exp>) returns a safe approximation to the upper bound value of the expression.\n\nThe expressions for lb and ub can only be of types int, bool, float or set of int. For dom the type cannot be float. If one of the variables appearing in <exp> has a non-finite declared type (e.g. var int or var float) then an error can occur.\n\nThere are also versions that work directly on arrays of expressions (with similar restrictions):\n\n• dom_array(<array-exp>): returns a safe approximation to the union of all possible values of the expressions appearing in the array.\n• lb_array(<array-exp>) returns a safe approximation to the lower bound of all expressions appearing in the array.\n• ub_array(<array-exp>) returns a safe approximation to the upper bound of all expressions appearing in the array.\n\nThe combinations of predicates, local variables and domain reflection allows the definition of complex global constraints by decomposition. We can define the time based decomposition of the cumulative constraint using the code shown in Listing 2.3.12.\n\nListing 2.3.12 Defining a cumulative predicate by decomposition (cumulative.mzn).\n%--------------------------------------------------------------------%\n% Requires that a set of tasks given by start times 's',\n% durations 'd', and resource requirements 'r',\n% never require more than a global\n% resource bound 'b' at any one time.\n% Assumptions:\n% - forall i, d[i] >= 0 and r[i] >= 0\n%--------------------------------------------------------------------%\npredicate cumulative(array[int] of var int: s,\narray[int] of var int: d,\narray[int] of var int: r, var int: b) =\nassert(index_set(s) == index_set(d) /\\\nindex_set(s) == index_set(r),\n\"cumulative: the array arguments must have identical index sets\",\nassert(lb_array(d) >= 0 /\\ lb_array(r) >= 0,\n\"cumulative: durations and resource usages must be non-negative\",\nlet {\nset of int: times =\nlb_array(s) ..\nmax([ ub(s[i]) + ub(d[i]) | i in index_set(s) ])\n}\nin\nforall( t in times ) (\nb >= sum( i in index_set(s) ) (\nbool2int( s[i] <= t /\\ t < s[i] + d[i] ) * r[i]\n)\n)\n)\n);\n\n\nThe decomposition uses lb and ub to determine the set of times times over which tasks could range. It then asserts for each time t in times that the sum of resources for the active tasks at time t is less than the bound b.\n\n## 2.3.9. Scope¶\n\nIt is worth briefly mentioning the scope of declarations in MiniZinc. MiniZinc has a single namespace, so all variables appearing in declarations are visible in every expression in the model. MiniZinc introduces locally scoped variables in a number of ways:\n\n• as iterator variables in comprehension expressions\n• using let expressions\n• as predicate and function arguments\n\nAny local scoped variable overshadows the outer scoped variables of the same name.\n\nListing 2.3.13 A model for illustrating scopes of variables (scope.mzn).\nint: x = 3;\nint: y = 4;\npredicate smallx(var int:y) = -x <= y /\\ y <= x;\npredicate p(int: u, var bool: y) =\nexists(x in 1..u)(y \\/ smallx(x));\nconstraint p(x,false);\nsolve satisfy;\n\n\nFor example, in the model shown in Listing 2.3.13 the x in -x <= y is the global x, the x in smallx(x) is the iterator x in 1..u, while the y in the disjunction is the second argument of the predicate." ]
[ null, "https://www.minizinc.org/doc-2.6.2/en/images/handlers.svg", null, "https://www.minizinc.org/doc-2.6.2/en/images/trolleys.svg", null, "https://www.minizinc.org/doc-2.6.2/en/images/dfa.svg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.75972265,"math_prob":0.9888602,"size":32092,"snap":"2022-40-2023-06","text_gpt3_token_len":9010,"char_repetition_ratio":0.15198828,"word_repetition_ratio":0.14495912,"special_character_ratio":0.28957373,"punctuation_ratio":0.1739513,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9923339,"pos_list":[0,1,2,3,4,5,6],"im_url_duplicate_count":[null,1,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-10-02T01:21:57Z\",\"WARC-Record-ID\":\"<urn:uuid:242aaf6c-e3cc-473d-92d2-ccc241ce10d5>\",\"Content-Length\":\"215050\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1546f7a1-97fd-492a-9744-7a2ccac387c9>\",\"WARC-Concurrent-To\":\"<urn:uuid:8c64a592-ebdf-4cab-99c3-fbd6810e8b9a>\",\"WARC-IP-Address\":\"185.199.110.153\",\"WARC-Target-URI\":\"https://www.minizinc.org/doc-2.6.2/en/predicates.html\",\"WARC-Payload-Digest\":\"sha1:UEN4FUIEFQPAPVOLG4M7WVVY37XDZR33\",\"WARC-Block-Digest\":\"sha1:RH6WNNUZLZLV6G5CMXD66KJEZKC46HY3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030336978.73_warc_CC-MAIN-20221001230322-20221002020322-00564.warc.gz\"}"}
https://help.logicgate.com/en/articles/2690418-creating-advanced-calculations
[ "Advanced Calculations can be configured in a Calculation Field by entering an expression in the Calculation Expression Field. To learn how to create a Calculation Field, refer to the Creating a Field article.\n\nThe Calculation Expression can contain numerical values, mathematical operators, Field placeholders, and methods based on the Math JavaScript object.\n\nExample backend Field configuration:", null, "Example front-end view:", null, "### Numerical values and operators:\n\nA calculation can include numerical values and standard mathematical operators to compute a value. For example, a Calculation Field could be based on the expression `(1+2)*3`  in which case the result would always be 9.\n\n### Field Placeholders:\n\nField placeholders can be entered within an expression string such that other Fields within a Workflow are referenced. The placeholder string ‘%f’ is used to reference a Field. Once ‘%f’ is entered within an expression, a Field will appear allowing you to select the Field to map. You can add as many '%f' placeholders as you need and the corresponding number of input Fields will appear.\n\nIn the example below, if the calculation expression entered was\n\n`(1+%f)*3`\n\nThe calculation would add 1 to the value of the Impact Field and multiply the result by 3.", null, "In this example, the calculation expression is\n\n`%f * %f`\n\nThere are 2 placeholders in the Calculation Expression and there are 2 Field Inputs respectively. The value of Impact is multiplied by the value of Likelihood to calculate this Field.", null, "### Calculation Field Deletion\n\nPlease note that you will receive a warning message when attempting to delete a Calculation Field. This message will require you to confirm whether or not you want to delete the Calculation Field and, along with it, all associated calculations. If you are sure, type the name of the Field within the text box and click the CONFIRM DELETION button.", null, "### Methods\n\nMethods available are based on the EvalEx library. For example:\n\n1. To take the absolute value of a Field you would enter the expression string:\n\n`abs(%f)`\n\n2. To take the average or sum of multiple fields, you would enter the following expression strings:\n\n`mean(%f, %f)`\n\n`sum(%f, %f)`\n\n3. To round a calculation to a specific number of decimal places you would enter the expression string:\n\n`round(your calculation, # of decimals)`\n`round(%f / %f, 2)*100`\n\nThe expression above would round your calculation to 2 decimals\n\nif( `condition , exprIfTrue , exprIfFalse`\n`condition`  - This is the expression that is used as a condition.\n`exprIfTrue`  - If the condition is true, then this expression is evaluated.\n`exprIfFalse`  - If the condition is false, then this expression is evaluated instead." ]
[ null, "https://downloads.intercomcdn.com/i/o/211136632/5be675aaef122d7c9dce1f37/Screen+Shot+2020-05-21+at+10.45.17+AM.png", null, "https://downloads.intercomcdn.com/i/o/211139963/6b1b080ca1050bc813dcad5b/Screen+Shot+2020-05-21+at+10.55.21+AM.png", null, "https://downloads.intercomcdn.com/i/o/108317590/6e2746b1ff9ff933615416b9/Screen+Shot+2019-03-12+at+8.57.06+AM.png", null, "https://downloads.intercomcdn.com/i/o/108319586/7b5037779224e72f4e40afb0/Screen+Shot+2019-03-12+at+9.03.31+AM.png", null, "https://downloads.intercomcdn.com/i/o/172170589/f909d9e9d2e76c1987a1e34c/image.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8533955,"math_prob":0.986832,"size":2827,"snap":"2020-34-2020-40","text_gpt3_token_len":586,"char_repetition_ratio":0.1799504,"word_repetition_ratio":0.013392857,"special_character_ratio":0.20233463,"punctuation_ratio":0.10546875,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9951863,"pos_list":[0,1,2,3,4,5,6,7,8,9,10],"im_url_duplicate_count":[null,2,null,2,null,2,null,2,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-29T23:21:27Z\",\"WARC-Record-ID\":\"<urn:uuid:f83ad127-1b48-47e9-952c-3bd857f4887d>\",\"Content-Length\":\"19649\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d107a3f2-2de7-4887-9b5b-1cf99777d0e9>\",\"WARC-Concurrent-To\":\"<urn:uuid:4d2164bb-e04f-4a57-8c73-bbf2077cecdc>\",\"WARC-IP-Address\":\"52.85.144.34\",\"WARC-Target-URI\":\"https://help.logicgate.com/en/articles/2690418-creating-advanced-calculations\",\"WARC-Payload-Digest\":\"sha1:VGMC3LB3DPTZCEZNIPL55CDVBY2KCV53\",\"WARC-Block-Digest\":\"sha1:R2U4L6LEDFL6ZTDRPJQUQ6EF3XDI5VAR\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600402093104.90_warc_CC-MAIN-20200929221433-20200930011433-00042.warc.gz\"}"}
https://iq.opengenus.org/vector-pop-back-cpp/
[ "×\n\nSearch anything:\n\n# Vector::pop_back() in C++\n\n#### Software Engineering C++", null, "Get this book -> Problems on Array: For Interviews and Competitive Programming\n\nIn this article, we will learn about pop_back() method of Vector class included in std::vector library. Vectors can be considered as dynamic arrays on the basis of its usage. The elements are added and deleted dynamically changing the the size of the vector at runtime which allows users to prefer the vectors over arrays when they want to control the memory or size of the array at runtime. You need to include `<vector>` library for its usage.\n\n## vector::pop_back()\n\nDeletes the last element from the vector\n\nThis method in vector allows to remove the last element and destroy the memory allocated to the last element of the vector reducing the size of the vector by one.\n\n• Expected Parameters: None\n• Return Value: None\n• Syntax: `vector_name.pop_back();`\n\n### Examples:\n\nIn the below example, we will try to take a look at the basic usage of the vectors where we will simply output the vector before and after the pop_back() method.\n\n``````#include<iostream>\n#include<vector>\nusing namespace std;\n\nint main()\n{\nvector<int> vec = {10,20,30,40,50};\n\n// Outputting the Elements of the vector before pop_back()\nfor(auto i: vec){\ncout<<i<<\" \";\n}\ncout<<endl;\n\nvec.pop_back();\n\n// Outputting the Elements of the vector after pop_back()\nfor(auto i: vec){\ncout<<i<<\" \";\n}\ncout<<endl;\n\nreturn 0;\n}\n``````\n\n### Output:\n\n``````Elements before pop_back()\nOutput: 10 20 30 40 50\nElements after pop_back()\nOutput: 10 20 30 40\n``````\n\nIn the next example we will see the similar usage where we will try to delete all the elements of the vector untill it's empty.\n\n``````#include<iostream>\n#include<vector>\nusing namespace std;\n\nint main()\n{\n\nvector<int> vec = {100, 200, 300, 400, 500, 600, 700, 800, 900, 1000};\n\n// Using iterator to print the elements of the vector\nfor(auto it = vec.begin(), it!=vec.end();it++){\ncout<< *it<< \" \";\n}\ncout<<endl;\n\n// Output the size of the vector\ncout<< vec.size()<<endl;\n\n// Deleting all the elements of the vectors untill its size is 0\nwhile(!vec.empty()){\nvec.pop_back();\n}\n\n// Output the size of the vector\ncout<<vec.size()<<endl;\n\nreturn 0;\n}\n``````\n\n### Output:\n\n``````Output:\n100 200 300 400 500 600 700 800 900 1000\n10\n0\n``````\n\n## Conclusion:\n\nVector is very handy data structure especiall then when the user is required to allocate and dellocate the elements dynamically with ease." ]
[ null, "https://iq.opengenus.org/assets/images/internship.svg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.77470213,"math_prob":0.90705913,"size":2294,"snap":"2022-27-2022-33","text_gpt3_token_len":567,"char_repetition_ratio":0.17467248,"word_repetition_ratio":0.11827957,"special_character_ratio":0.29816914,"punctuation_ratio":0.15198238,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9712337,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-06-28T12:25:02Z\",\"WARC-Record-ID\":\"<urn:uuid:3c73d82e-b2a7-437b-8fde-e07ca78d124c>\",\"Content-Length\":\"56306\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:908b36be-869e-472a-9c5d-ae802ca991df>\",\"WARC-Concurrent-To\":\"<urn:uuid:748ae210-6977-48cd-9c75-808ab834c6e9>\",\"WARC-IP-Address\":\"159.89.134.55\",\"WARC-Target-URI\":\"https://iq.opengenus.org/vector-pop-back-cpp/\",\"WARC-Payload-Digest\":\"sha1:2DGJIANSW5OW72N2HMRMG5IYJCWFVTLT\",\"WARC-Block-Digest\":\"sha1:X3ZPTRL4LD5IY3LRK64EINP5XQI47UJS\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656103516990.28_warc_CC-MAIN-20220628111602-20220628141602-00631.warc.gz\"}"}
https://projectmanager.com.au/can-you-use-standard-deviation-in-project-management/
[ "# Can you use standard deviation in project management?\n\nStandard deviation is an abstract concept derived from observation rather than calculation or experimentation. The standard deviation (SD, also represented by the Greek letter sigma or σ) is a measure that is used to quantify the amount of variation or dispersion in a set of data values. It is expressed as a quantity defining how much the members of a group differ from the mean value for the group.\n\nA low value for the standard deviation indicates that the data points tend to be close to the mean or the expected value of the set, while a high value indicates that the data points are spread out over a wider range. The area under each of the three curves in the diagram below are the same, representing the same population. The values could be millimetres or days depending on what’s being measured: where the SD is small, at 0.5, everything is clustered close to the mean, some 98% of all of the values will be in the range of +2 to -2. Where the SD is large, at 2.0, a much larger number of measurements are outside of the +2 to -2 range.", null, "The concept of SD and ‘normal distributions’ is part of the overall concept of probability and understanding the extent to which the past can be relied on to predict the future. The future is, of course, unknown (and unknowable) but we have learned that in many situations what has happened in the past is of value in predicting the future. The key question is: to what degree should we rely on patterns from the past to predict the future?\n\n### Applications of standard deviation\n\nThe journey towards understanding probability started in 1654 when French mathematicians Blaise Pascal and Pierre de Fermat solved a puzzle that had plagued gamblers for more than 200 years: how to divide the stakes in an unfinished game of chance if one of the players is ahead? Their solution meant that people could for the first time make decisions and forecast the future based on numbers.\n\nOver the next century, mathematicians developed quantitative techniques for risk management that transformed probability theory into a powerful instrument for organising, interpreting and applying information to help make decisions about the future. The concepts of Standard Deviation and ‘Normal Distribution’ were central to these developments.\n\nUnderstanding populations became the ‘hot topic’, and by 1725 mathematicians were competing with each other to devise tables of life expectancy, as the UK government was financing itself through he sale of annuities, and tables to facilitate setting marine insurance premiums, to name a few uses.\n\nSome of the phenomena studied included the age people died at, and the number of bees on a honeycomb and based on many hundreds of data sets the observation that natural populations seemed to have a ‘normal’ distribution started to emerge. In 1730 Abraham de Moivre suggested the structure of this normal distribution, the ‘bell curve’, and discovered the concept of the Standard Deviation. Advancing this work involved many famous mathematicians, including Carl Friedrich Gauss. One of the outcomes from Gauss’ work was validating de Moivre’s ‘bell curve’ and developing the mathematics needed to apply the concept to risk.", null, "I will not deal with the calculation of a standard deviation here as the process is horrible. But we will look at how the concepts can be applied.\n\nAs we go forward, the important thing to remember is that every process and every population has a degree of randomness. This normal variation may be large or small depending on the process or the population and the normal distribution curve defined by its standard deviation provide tools to help understand the probable range of outcomes we can expect.\n\nThis prediction is not certain, but there is a high degree of probability the prediction will be reasonably correct, and the degree of certainty increases as the amount of data used in the analysis increases. The other key outcome from Gauss’ work was the finding that the percentage of the population occurring close to the mean and further from the mean followed a consistent pattern, with up to 99.99% occurring within ±6 standard deviations (σ) provided the distribution was ‘normal’.\n\n### How to use deviations in project management\n\nThe first major challenge in understanding the concept of a standard deviation is to appreciate it was derived from looking at data obtained from 100s of measurements of a natural phenomenon. Therefore these functions will have less value in determining the consequences of a one-off uncertainty such as a unique project outcome or a single risk event—but they are still useful.", null, "For every population being measured, the key things to remember are:\n\n• The SD is expressed in the same terms as the factor being measured. If the factor being measured is the age people die at, expressed in years, the SD will be measured in years (important for annuities and life insurance); if the factor being measured is the length of a bolt expresses in millimetres, the SD will be expressed in millimetres.\n• The value of the SD for a specific population is constant, if 1 SD = 0.5mm, 2 SD = 1mm and 6 SD = 3mm, therefore if the target length for the bolt is 100mm and the mean (average length) produced is also 100mm 99.99% of the bolts manufactured will be between 97mm and 103mm in length (±6 SD).\n• The percentages for 1 SD, 2 SD, 3 SD and 6 SD are always the same because the value of the SD expressed in millimetre, years, and so on, varies depending on the overall variability of the population, and of course the factor being measured.\n\nHow this plays out in the real world depends on circumstances. Staying with bolts, they are designed to fasten two things together and therefore need to be a minimum length. If your require bolts with a minimum length and want at least a 99.99% certainty every bolt will pass the test, with an SD of 0.5mm the manufacturer will need to set the manufactured length to 103mm. 99.99% of the bolts will then be in the range 100mm to 106mm (±6 SD). Only 1 in 10,000 will fall outside of this range and only 1 in 20,000 will be short—the other half will be slightly longer than 106mm.\n\nIf you can accept a slightly larger number of errors, you could adjust the requirement to ±3 SD. Now the manufacturer can set the manufactured length to 101.5mm. 99.7% of the bolts will be in the range of 100mm to 103mm and 3 in a thousand will be a bit longer or shorter – therefore by accepting 1.5 bolts in a thousand may be too short, the manufacturer can save 1.5mm of steel per bolt = 1.5 metres for every 1,000 bolts manufactured as the reject length is 1.5 * 100mm – 150mm of stock plus manufacturing costs. This should be a significant cost saving for a slightly increased defect rate.\n\nNow assume a new manufacturer sets up in the bolt business, with new machinery that is more precise in its operation. This manufacturer can produce bolts with a SD of 0.1mm. Therefore it can deliver bolts with a 99.99% probability of every bolt being at least 100mm long with a target manufacturing length of 100.6mm! The ±6 SD range is now from 100mm to 101.2mm. The higher precision in the manufacturing process produces materials savings and a more consisted success rate with only 1 in 20,000 bolts likely to be too short.\n\n### How does this apply to projects?\n\nWhen we start using standard deviation in project management there are a number of logical issues. For most factors involved in the overall project, we are confronted by the problem that every project is unique, that is, the population is ‘1’ and therefore the data needed to correctly estimate a SD is never going to be available, though obviously this does not apply to mass produced components used within the project such as bolts.\n\nThe second major issue is the distribution of project outcomes tends to follow a beta distribution rather than a balanced ‘normal’ distribution because, generally, the number of things that can go wrong on a project are far greater than the number of things that can go right.\n\nThe consequence is the average value (mean) is moved away from the most likely value, this significantly devalues the reliability of the SD concept:", null, "Finally, in many situations the objective is not ‘plus or minus’ but rather focused on achieving an objective. No one ever got fired for coming in under budget. This changes the model significantly:", null, "The concept of standard deviation can still be used, but the reliability is significantly reduced. These problems are discussed in Understanding PERT.\n\nThe difficulty in predicting the probability of completing a project by a certain date or for a certain price has been solved by applying the power of modern computers. Monte Carlo does not assume any range of outcomes, it uses brute force to calculate hundreds of different outcomes and then plots the results:", null, "The resulting plot can be used to assess probability but it is based on hard data, not an assumed standard distribution.\n\nThe concept of standard deviation and normal distributions are valuable quality control tools where the project is making or buying hundreds of similar components. It is less valuable in dealing with the probability of completing a one-off ‘unique’ project within time or budget. In both situations, understanding variability and probability is important, but faced with the uncertainties of a ‘unique project’ Monte Carlo provides a more reliable approach." ]
[ null, "https://projectmanager.com.au/wp-content/uploads/2016/07/Weaver_SD1.jpg", null, "https://projectmanager.com.au/wp-content/uploads/2016/07/Weaver_SD2.gif", null, "https://projectmanager.com.au/wp-content/uploads/2016/07/Weaver_SD3.png", null, "https://projectmanager.com.au/wp-content/uploads/2016/07/Weaver_SD4.jpg", null, "https://projectmanager.com.au/wp-content/uploads/2016/07/Weaver_SD5.jpg", null, "https://projectmanager.com.au/wp-content/uploads/2016/07/Weaver_SD6.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.94257283,"math_prob":0.9221616,"size":9440,"snap":"2022-27-2022-33","text_gpt3_token_len":1952,"char_repetition_ratio":0.1217677,"word_repetition_ratio":0.0136730885,"special_character_ratio":0.21038136,"punctuation_ratio":0.08112676,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9588763,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12],"im_url_duplicate_count":[null,6,null,6,null,6,null,6,null,6,null,6,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-07T17:14:46Z\",\"WARC-Record-ID\":\"<urn:uuid:1394d495-fe8f-4b00-b205-36ac1e25551a>\",\"Content-Length\":\"52039\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:915737e3-af72-4b08-8a8f-2afb3ca67d45>\",\"WARC-Concurrent-To\":\"<urn:uuid:1994eabf-a536-4fc8-afb2-378919bef469>\",\"WARC-IP-Address\":\"110.173.133.12\",\"WARC-Target-URI\":\"https://projectmanager.com.au/can-you-use-standard-deviation-in-project-management/\",\"WARC-Payload-Digest\":\"sha1:6O3LB5AAWLGRVBUMY3BRDL3ZGOTI455K\",\"WARC-Block-Digest\":\"sha1:ZTTKVPUL47D6LU5ETGEFPFAPFDX4T7JI\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656104495692.77_warc_CC-MAIN-20220707154329-20220707184329-00759.warc.gz\"}"}
https://www.drastic.tv/support-59/legacysoftwarehardware/72-miscellaneous-legacy/148-video-math
[ "", null, "## Video Math\n\nThere has been a lot of confusion in marketing literature concerning video compression. Most of the confusion stems from a misunderstanding of the math and the terms involved in compression calculations. What follows is a reasonably accurate method for correlating various ways of describing video compression. NOTE: This method may not allow accurate comparison with some manufacturer's hardware specifications, as their calculations have been found to be inaccurate by up to twenty five percent.\n\nNOTE: This area contains legacy material from previous Drastic Technologies websites. It is provided for reference only, and contains information, products and links that may no longer exist and which are no longer supported by Drastic. For current Drastic Technologies products, please see our main site here:\n\nhttp://www.drastic.tv\n\n# Video Math\n\nAside from the basic math problems involved with compression calculations, the situation is further complicated by the different encoding methods used by various manufacturers. The following formulas are based on the broadcast specification known as the CC1R 601 recommendation. If the compression engine in question uses 4:1:1 or R170A as the basis for encoding, it then becomes far more difficult to make a comparison between that engine and true broadcast-quality compression engines. Essentially, that kind of compression engine doesn't encode video at a high enough bandwidth to make it worthwhile.\n\n## What Is A Meg, What is a Gig . . .\n\nFor solving simple calculations, a megabyte (MB) and a megabit (Mb) are usually assumed to be one million bytes or one million bits respectively. This is not the case. Because the lowest level a computer's digital logic operates on is base 2 (On or Off) basis, a megabyte is actually 220 bytes and a megabit is actually 220 bits. 220 may be calculated as:\n\n2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 = 1,048,576 (decimal)\n\n1 megabyte = 1,048,576 Bytes (assuming 8 bits per byte, the following is also true) 1 megabyte = 8,388,608 Bits\n\nBecause of the 48,576 discrepancy between one million and one meg, the preceding values must be used when calculating compression factors, drive usage and data throughput.\n\nSince a megabyte is 220 , a gigabyte is 1024 times a megabyte or 230. This may be calculated as above giving the result:\n\n1 gigabyte = 1,073,741,824 Bytes (assuming 8 bits per byte, the following is also true) 1 gigabyte = 8,589,934,592 Bits\n\nIf this is the case, the error between one billion and one gig is 73,741,824 making it important to use the actual value of a gig when solving compression equations.\n\n## CCIR 601 Uncompressed Video (Method One)\n\nResolution - 720 x 486 x 29.97 frames per second (Fps) (720 x 243 x 59.94 fields per second - fps)\n\nSample Size - 8 bits per byte data representation\n\nSampling - 4:2:2 (or every two horizontal pixels = 2 Y : 1 Cr : 1 Cb)\n\nFrame Rate - 29.97 Frames Per Second\n\nTherefore:\n\nLuminance (Y) 720 x 486 x 29.97 Fps = 10,487,102.4 bytes per second\n\nx 8 bits per byte = 83,896,819.2 bits per second\n\nChrominance R (Cr) 360 x 486 x 29.97 Fps = 5,243,551.2 bytes per second\n\nx 8 bits per byte = 41,948,409.6 bits per second\n\nChrominance B (Cb) 360 x 486 x 29.97 Fps = 5,243,551.2 bytes per second\n\nx 8 bits per byte = 41,948,409.6 bits per second\n\nTotal = 20,974,204.8 bytes per second\n\n= 167,793,638.4 bits per second\n\nTo convert these values into megabytes and megabits, divide them by 220 (1,048,576):\n\nCCIR 601 Megabytes/second 20,974,205 / 1,048,576 = 20.00256062 (Roughly 20 MB/s)\n\nCCIR 601 Megabits/second 167,793,638 / 1,048,576 = 160.020483 (Roughly 160 Mb/s)\n\n## CCIR 601 Uncompressed Video (Method Two)\n\nOne Line 720 pixels (Y) + 360 pixels (R-Y) = 1440 samples (bytes) per line\n\nOne Frame 486 lines per frame x 1440 bytes per line = 699,840 bytes per frame\n\nOne Second 699,840 x 29.97 Fps = 20,974,204.8 bytes per second\n\n8 bits per Byte 20974,204.8 x 8 = 167,793,638.4 bits per second\n\nTo convert these values into megabytes and megabits, divide them by 220 (1,048,576):\n\nCCIR 601 Megabytes/Second 20,974,205 / 1,048,576 = 20.00256062 (Roughly 20 MB/s)\n\nCCIR 601 Megabits/Second 167,793,638 / 1,048,576 = 160.020483 (Roughly 160 Mb/s)\n\nAs you can see, both methods resolve to the same values. For the remainder of this addendum, the following will be true:\n\nVideo Data Rate In Bytes = 20 MB/s = 20.00256062 bytes per second\n\nVideo Data Rate In Bits = 160 Mb/s = 160.020483 bits per second\n\nVideo Ratio = 1:1 = 20 MB/s : 20 MB/s = 20/20\n\n## CCIR Uncompressed Video For PAL\n\nNote: The calculations above will be valid for PAL video with the following changes:\n\nPAL Video Rate is 25 Frames Per Second (50 fields) instead of 29.97\n\nPAL Horizontal Resolution is 576 lines per frame instead of 486\n\nOne Line 720 pixels (Y) + 360 pixels (R-Y) + 306 pixels (B-Y) = 1440 samples (bytes) per line\n\nOne Frame 576 lines per frame x 1440 bytes per line = 829,440 bytes per frame\n\nOne Second 829,440 x 25 Fps = 20,736,000 bytes per second\n\n8 Bits Per Byte 20,736,000 x 8 = 165,888,000 bits per second\n\nTo convert these values into megabytes and megabits, divide them by 220 (1,048,576):\n\nCCIR 601 Megabytes/second 20,736,000 / 1,048,576 = 19.7753063 (Roughly 20 MB/s)\n\nCCIR 601 Megabits/second 165,888,000 / 1,048,576 = 158.203125 (Roughly 158 Mb/s)\n\n## CD Quality Uncompressed Audio\n\nSample Size - 16 bit (2 byte) data representation\n\nChannels - 2 channels\n\nSampling Rate - 44,100 Samples Per Second\n\nTherefore:\n\nOne Channel - 2 bytes per sample x 44,100 samples per second = 88,200 bytes per second\n\nTotal Data Rate - 88,200 bytes per second x 2 channels = 176,400 bytes per second\n\nTotal Bit Rate - 176,400 bytes per second x 8 bits per byte = 1,411,200 bits per sample\n\nFor the remainder of this addendum, the following will be true:\n\nAudio Data Rate In Bytes = 0.17 MB/s = 176,400 bytes per second\n\nAudio Data Rate In Bits = 1.41 Mb/s =1,411,200 bits per second\n\nAudio Ratio = 1:1=0.17 MB/s : 0.17 MB/S= 0.17/0.17\n\n## Total Audio and Video Data Rate\n\nThe total data rate or throughput is simply the audio and video throughputs added together. For the remainder of this addendum one video channel and two audio channels are assumed and the following will be true for uncompressed data:\n\nTotal Data Rate in Bytes = 20 MB/s + 0.17 MB/s = 20.2 MB/s (21,150,605 bytes/second)\n\nTotal Data Rate in Bits = 160 Mb/s + 1.41 Mb/s = 161 Mb/s (169,204,838 bits/second)\n\nTotal Ratio = 1:1 = 20.2 Mb/S: 20.2 Mb/S = 20.2 / 20.2\n\n## Compression As Megs Per Second\n\nWhen compression is described as megabytes or megabits per second it can be difficult to correlate between different compression vendor's math methods. Assuming the throughput is calculated as above (which is a very large assumption in most cases), the following formulae may be used to convert between descriptions.\n\n### MegaByte<=>MegaBit\n\n1 megabyte = 8 megabits (most current compression technologies work with 8 bit samples)\n\ne.g. 6 megabytes per second == 48 megabits per second\n\n### MegaByte => Compression Ratio\n\nThe ratio of a megabyte or megabit throughput can be calculated by dividing the appropriate value for uncompressed video by the specified data rate.\n\ne.g. 8 megabytes per second = 8,388,608 bytes per second\n\nUncompressed Video = 20,974,205 bytes per second\n\nThe Ratio is 20,974,205 / 8,388.608 = 2.500320077\n\nThe Ratio is 2.5:1\n\n### Megabyte per second => Minutes Per Gig\n\nTo convert megabytes per second to minutes per gigabyte, express the date rate as megabytes per minute, then divide 1024 megabytes/gigabyte by the data rate in megabytes per minute.\n\ne.g. convert 20 MB/s to minute per gigabyte (no audio)\n\n20 MB per second x 60 seconds per minute = 1200 MB per minute\n\n1024 MB per gigabyte / 1200 MB per minute = 0.853 minutes per gigabyte\n\ne.g. convert 20.2 MB/s to minute per gigabyte (plus audio)\n\n20.2 MB per second x 60 seconds per minute = 1212 MB per minute\n\n1024 MB per gigabyte / 12120 MB per minute = 0.845 minutes per gigabyte\n\n## Compression As a Ratio\n\nWhen a manufacturer specifies a compression ratio without any other supporting data, you should be wary. Depending on how the manufacturer calculated the size of uncompressed video, how the numbers were rounded, and how the compressed stream was measured, the ratio may be anywhere from fairly accurate to completely absurd. Whenever possible, find out the data rate in megabytes per second and calculate the ratio yourself. If the data rate is unavailable, make sure it was calculated based on 4:2:2 CCIR 601 encoding practices and that the frame/field size and rate match the above.\n\n### Ratio => Megabytes Per Second\n\nThe data rate in megabytes per second can be calculated by dividing the uncompressed video data rate value by the compression ratio.\n\ne.g. 9:1 compression\n\nUncompressed Video data rate = 20,974,205 bytes per second\n\n20,974,205 bytes per second / 9 = 2,330,468 bytes per second\n\n2,330,468 / 1,048,576 = 2.2 megabytes per second\n\nFor Megabits per second, use the formula below\n\n2,330,468 x 8 / 1,048,576 = 17.8 Megabits per second\n\n### Ratio => Minutes Per Gigabyte (No Audio)\n\nTo convert a ratio to the amount of time that can be recorded per gigabyte of hard drive space, simply use the total amount of time available for uncompressed video per gigabyte, and multiply by the ratio. To calculate the time for uncompressed video per gig:\n\nOne gigabyte = 1,073,741,824 Bytes\n\nUncompressed video = 20,974,205 Bytes per second\n\n1,073,741,824 Bytes per Gig / 20,974,205 B/s = 51.19344566 seconds per Gig\n\n51.19344566 / 60 seconds per minute = 0.85 minutes per Gig\n\ne.g. 6:1 compression = 6 times the storage of uncompressed\n\n6 x 51.19344566 seconds per Gig = 307.160674 seconds per Gig\n\n307.160674 / 60 seconds per minute = 5.1 minutes per Gig\n\n## Compression As Minutes Per Gigabyte (storage)\n\nThis calculation is normally accurate because once you buy the system it is easily checked. Simply set the hardware to its highest quality and record until you fill the drive, then divide the total number of seconds recorded by the drive's size in gigabytes and compare it to the specified number. This specification may also be used to compare overall throughput with other compression systems.\n\n### Minutes Per Gigabyte => Megabytes Per Second\n\nTo calculate the data rate in megabytes per second from minutes per gigabyte, simply convert minutes per Gigabyte to seconds per Megabyte\n\ne.g. 4 minutes per Gigabyte * 60 seconds per minute = 240 Seconds per Gigabyte\n\n1024 Megabytes per Gigabyte / 240 seconds per Gigabyte = 4.27 Megabyte per second\n\n### Minutes Per Gigabyte => Ratio\n\nTo calculate the compression ratio given the number of minutes per gigabyte, simply use the number of uncompressed minutes that can be stored in a gigabyte and divide that into the number specified.\n\nOne gigabyte = 1,073,741,824 Bytes\n\nUncompressed Video = 20,974,205 Bytes per second\n\n1,073,741,824 / 20,974,205 = 51.19344566 seconds per Gig\n\n51.19344566 / 60 seconds per minute = 0.85322409 minutes per Gig\n\ne.g. 7 Minutes Per Gig = 420 seconds per Gig\n\n420 / 51.19344566 = 8.204175253\n\nor\n\n7 / 0 .85322409 = 8.204175253\n\nThe ratio is 8.2:1\n\nNOTE: This area contains legacy material from previous Drastic Technologies websites. It is provided for reference only, and contains information, products and links that may no longer exist and which are no longer supported by Drastic. For current Drastic Technologies products, please see our main site here:\n\nhttp://www.drastic.tv\n\n### More great products from Drastic:", null, "MediaNXS offers a comprehensive range of capture, playback, import and export features for the digital intermediate workflow.  Integrate easily with indust...", null, "Drastic HDRScope is the world's most powerful 8K through SD software signal monitoring tool and HDR image analyzer.  It includes waveform (luma, YCbCr...", null, "Drastic's Network Video Analyzer is the world's most powerful 4K through SD software signal monitoring tool and network image analyzer.  It includes w...", null, "The SMPTE-X Active-X control is no longer offered as a standalone Drastic SDK. Its functionality still exists within the Drastic product line and the below info...", null, "Windows MCI VTR Driver Throughout the early 1990s, Drastic supplied the Windows MCI VTR control driver as an OEM product to companies such as Matrox, Miranda, ..." ]
[ null, "https://www.facebook.com/tr", null, "https://www.drastic.tv/media/com_jvrelatives/images/thumbs/com_content_53_48.jpg", null, "https://www.drastic.tv/media/com_jvrelatives/images/thumbs/com_content_318_48.jpg", null, "https://www.drastic.tv/media/com_jvrelatives/images/thumbs/com_content_290_48.jpg", null, "https://www.drastic.tv/media/com_jvrelatives/images/thumbs/com_content_86_48.jpg", null, "https://www.drastic.tv/media/com_jvrelatives/images/thumbs/com_content_140_48.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7958317,"math_prob":0.98991424,"size":11280,"snap":"2021-31-2021-39","text_gpt3_token_len":3128,"char_repetition_ratio":0.18641362,"word_repetition_ratio":0.1927835,"special_character_ratio":0.327039,"punctuation_ratio":0.13583334,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9785053,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12],"im_url_duplicate_count":[null,null,null,1,null,1,null,1,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-08-05T11:06:26Z\",\"WARC-Record-ID\":\"<urn:uuid:82e400c7-e2b2-4736-b6eb-cd598c6885b0>\",\"Content-Length\":\"42118\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:15ebd6fe-0085-436c-9296-7a5cc7132ab0>\",\"WARC-Concurrent-To\":\"<urn:uuid:25c82abd-f719-4d69-8c16-77a4e11cb034>\",\"WARC-IP-Address\":\"132.148.16.249\",\"WARC-Target-URI\":\"https://www.drastic.tv/support-59/legacysoftwarehardware/72-miscellaneous-legacy/148-video-math\",\"WARC-Payload-Digest\":\"sha1:GBHXM22LND5RB5Y7U2DHSYHCQUUQW3JA\",\"WARC-Block-Digest\":\"sha1:HHADXUXZMOUU5UQ63CAWPDUYTSOEHY76\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-31/CC-MAIN-2021-31_segments_1627046155529.97_warc_CC-MAIN-20210805095314-20210805125314-00295.warc.gz\"}"}
https://auroregonzalez.github.io/posts/2018/03/boxplots-in-python
[ "# Boxplots in python\n\nPublished:\n\nTo celebrate figuring out how to blog with jupyter notebooks, I’m going to go through some tricks I’ve learned to plot pretty boxplots in Python.\n\n# Boxplots\n\nBoxplots are my absolute favorite way to look at data, but the defaults in Python aren’t publication-level pretty. When making boxplots, I think it’s very important to also plot the underlying raw data points whenever that’s possible. Especially for main text figures and/or in cases without that many points, this is the best way to simultaneously summarize the data and allow the reader to come to their interpretations of it. When I read a paper, I get fairly grumpy when I know that the sample size is low (say, less than 100) but I only get to see the boxplot. Just let me see the data - otherwise, I have to wonder if you’re trying to hide something…\n\nAnyway. In this post, we’ll be using `seaborn` to establish the main boxplots, with some additional tweaking to make them beautiful. Of course, I didn’t come up with these solutions all on my own, and deep gratitude goes to Stack Overflow for teaching me these tricks (in addition to almost everything else I know about coding). Unfortunately, I’ve been making these plots long enough that I go back and reference my own previous code, so I’ve lost links back to the most useful StackOverflow posts that have helped me along… :(\n\n# Generate data\n\nFirst, let’s set up some toy data. Here, we’ll be simulating making some measurements on three different body sites for 15 healthy patients and 10 diseased patients.\n\n``````import pandas as pd\nimport numpy as np\n\n# Set up the data\ndata = np.concatenate(\n[[np.random.normal(loc=1, size=15), 15*['site1'], 15*['healthy']],\n[np.random.normal(loc=3, size=15), 15*['site2'], 15*['healthy']],\n[np.random.normal(loc=0, size=15), 15*['site3'], 15*['healthy']],\n[np.random.normal(loc=1, size=10), 10*['site1'], 10*['disease']],\n[np.random.normal(loc=1, size=10), 10*['site2'], 10*['disease']],\n[np.random.normal(loc=3, size=10), 10*['site3'], 10*['disease']]],\naxis=1)\ndf = pd.DataFrame(columns=['value', 'site', 'label'], data=data.T)\ndf['value'] = df['value'].astype(float)\n\n# Show every ninth row\ndf.iloc[::9]\n``````\nvaluesitelabel\n02.591935site1healthy\n91.823141site1healthy\n182.876044site2healthy\n275.003611site2healthy\n36-1.586702site3healthy\n450.675445site1disease\n540.460209site1disease\n631.158567site2disease\n721.226395site3disease\n\n# Default boxplot with seaborn\n\nThe default seaborn plot isn’t bad, but it also isn’t great. I typically use a call to `boxplot` first and then `stripplot` to show the raw data. Note that doing this makes the legend wonky - I usually fix this afterwards (or, more often than not, deal with the legend separately).\n\n``````import matplotlib.pyplot as plt\nimport seaborn as sns\n%matplotlib inline\n\nsns.boxplot(x='site', y='value', hue='label', data=df)\nsns.stripplot(x='site', y='value', hue='label', data=df,\njitter=True, split=True, linewidth=0.5)\nplt.legend(loc='upper left')\n``````\n``````<matplotlib.legend.Legend at 0x1106afb50>\n``````", null, "The easiest way to improve these plots is to (1) change the seaborn style to `'white'` and (2) pass in a color palette that you like. Also note that when you plot both a boxplot and the raw points, you should tell seaborn not to plot any of the outliers with `fliersize=0`, otherwise you’ll have double-points for these.\n\n``````sns.set_style('white')\n\npal = sns.color_palette('Paired')\n\nsns.boxplot(x='site', y='value', hue='label', data=df,\npalette=pal, fliersize=0)\nsns.stripplot(x='site', y='value', hue='label', data=df,\njitter=True, split=True, linewidth=0.5, palette=pal)\nplt.legend(loc='upper left')\n``````\n``````<matplotlib.legend.Legend at 0x110a8e650>\n``````", null, "Alternatively, you can explicitly specify the colors you want for each hue value.\n\n``````pal = {'healthy': 'green', 'disease': 'blue'}\n\nsns.boxplot(x='site', y='value', hue='label', data=df,\npalette=pal, fliersize=0)\nsns.stripplot(x='site', y='value', hue='label', data=df,\njitter=True, split=True, linewidth=0.5, palette=pal)\nplt.legend(loc='upper left')\n``````\n``````<matplotlib.legend.Legend at 0x110e52550>\n``````", null, "# More modifications\n\nWhile convenient, this is also not beautiful enough to be publication-worthy. If we want to make really nice boxplots, we’ll have to roll up our sleeves and get more into the details.\n\n``````# When you start digging into the parameters, it's a good idea\n# to explicitly initialize the figure and get the figure and\n# axes handles\nfig, ax = plt.subplots()\n\n# First, we'll pick some nicer colors for the healthy and disease.\n# I got these colors by tweaking some colors from the Set1 palette\n# in powerpoint, and then grabbing the hex code from Powerpoint.\ndark_brown = '#B25116'\ndark_pink = '#FB84D1'\npal = {'healthy': dark_brown, 'disease': dark_pink}\n\n# Here, we set up some properties for the boxplot parts. I definitely\n# stole this from Stack Overflow, but I can't find the original post\n# right now.\nboxprops = {'edgecolor': 'k', 'linewidth': 2, 'facecolor': 'w'}\nlineprops = {'color': 'k', 'linewidth': 2}\n\n# Set up some general kwargs that we'll use in both the stripplot and boxplot\n# Note that you can change the order of hue variables here.\nkwargs = {'palette': pal, 'hue_order': ['disease', 'healthy']}\n\n# The boxplot kwargs get passed to matplotlib's boxplot function.\n# Note how we can re-use our lineprops dict to make sure all the lines\n# match. You could also edit each line type (e.g. whiskers, caps, etc)\n# separately.\nboxplot_kwargs = dict({'boxprops': boxprops, 'medianprops': lineprops,\n'whiskerprops': lineprops, 'capprops': lineprops,\n'width': 0.75},\n**kwargs)\nstripplot_kwargs = dict({'linewidth': 0.6, 'size': 6, 'alpha': 0.7},\n**kwargs)\n\n# And we can plot just like last time\nsns.boxplot(x='site', y='value', hue='label', data=df, ax=ax,\nfliersize=0, **boxplot_kwargs)\nsns.stripplot(x='site', y='value', hue='label', data=df, ax=ax,\nsplit=True, jitter=0.2, **stripplot_kwargs)\nax.legend_.remove()\n``````", null, "If we want, we can also play with the facecolors. We can also do this with a normal call through the `palette` keyword in the seaborn function:\n\n``````pal = {'healthy': dark_brown, 'disease': dark_pink}\n\n# Set up another palette for the boxplots, with slightly lighter shades\nlight_pink = '#FFC9EC'\nlight_brown = '#E5B699'\nface_pal = {'healthy': light_brown, 'disease': light_pink}\n\nhue_order = ['disease', 'healthy']\n\n# Make sure to remove the 'facecolor': 'w' property here, otherwise\n# the palette gets overrided\nboxprops = {'edgecolor': 'k', 'linewidth': 2}\nlineprops = {'color': 'k', 'linewidth': 2}\n\nboxplot_kwargs = {'boxprops': boxprops, 'medianprops': lineprops,\n'whiskerprops': lineprops, 'capprops': lineprops,\n'width': 0.75, 'palette': face_pal,\n'hue_order': hue_order}\n\nstripplot_kwargs = {'linewidth': 0.6, 'size': 6, 'alpha': 0.7,\n'palette': pal, 'hue_order': hue_order}\n\n# And we can plot just like last time\nfig, ax = plt.subplots()\nsns.boxplot(x='site', y='value', hue='label', data=df, ax=ax,\nfliersize=0, **boxplot_kwargs)\nsns.stripplot(x='site', y='value', hue='label', data=df, ax=ax,\nsplit=True, jitter=0.2, **stripplot_kwargs)\nax.legend_.remove()\n``````", null, "That looks pretty good (and is the version I ended up going with for my current manuscript), but what if you also want to change the line colors to match the hues? In this case, you need to go directly edit the artists after they’re drawn.\n\n``````# Plot, using all the same parameters as above\nfig, ax = plt.subplots()\nsns.boxplot(x='site', y='value', hue='label', data=df, ax=ax,\nfliersize=0, **boxplot_kwargs)\nsns.stripplot(x='site', y='value', hue='label', data=df, ax=ax,\nsplit=True, jitter=0.2, **stripplot_kwargs)\nax.legend_.remove()\n\nfor i, artist in enumerate(ax.artists):\nif i % 2 == 0:\ncol = dark_pink\nelse:\ncol = dark_brown\n\n# This sets the color for the main box\nartist.set_edgecolor(col)\n# Each box has 6 associated Line2D objects (to make the whiskers, fliers, etc.)\n# Loop over them here, and use the same colour as above\nfor j in range(i*6,i*6+6):\nline = ax.lines[j]\nline.set_color(col)\nline.set_mfc(col)\nline.set_mec(col)\n``````", null, "# A few final notes…\n\nSo far, I’ve been removing the legend because of the annoying double-legend issue when you call both `sns.boxplot` and `sns.stripplot`. I haven’t found a great way to get around this except the very manual way of going in afterwards and keeping only the first half of the legend:\n\n``````# Plot, using all the same parameters as above\nfig, ax = plt.subplots()\nsns.boxplot(x='site', y='value', hue='label', data=df, ax=ax,\nfliersize=0, **boxplot_kwargs)\nsns.stripplot(x='site', y='value', hue='label', data=df, ax=ax,\nsplit=True, jitter=0.2, **stripplot_kwargs)\n\n# Fix the legend, keep only the first two legend elements\nhandles, labels = ax.get_legend_handles_labels()\nlgd = ax.legend(handles[0:2], labels[0:2],\nloc='upper left',\nfontsize='large',", null, "Also a note that you can change the width of the boxplot with the `width` parameter in the call to `sns.boxplot`. However, this doesn’t change the width of each individual box, but rather the total width of each pair of boxes (or however many hues you have). So in the case where the data spans a similar range and the boxes are right next to each other (like in site 1, above), sometimes the box lines overlap slightly. If they’re not black, then you can see this if you look closely. I haven’t figured out a good way to fix this (and it seems like maybe there might not be one)." ]
[ null, "https://auroregonzalez.github.io/images/2018-03-09-boxplots-in-python_files/2018-03-09-boxplots-in-python_4_1.png", null, "https://auroregonzalez.github.io/images/2018-03-09-boxplots-in-python_files/2018-03-09-boxplots-in-python_6_1.png", null, "https://auroregonzalez.github.io/images/2018-03-09-boxplots-in-python_files/2018-03-09-boxplots-in-python_8_1.png", null, "https://auroregonzalez.github.io/images/2018-03-09-boxplots-in-python_files/2018-03-09-boxplots-in-python_10_0.png", null, "https://auroregonzalez.github.io/images/2018-03-09-boxplots-in-python_files/2018-03-09-boxplots-in-python_12_0.png", null, "https://auroregonzalez.github.io/images/2018-03-09-boxplots-in-python_files/2018-03-09-boxplots-in-python_14_0.png", null, "https://auroregonzalez.github.io/images/2018-03-09-boxplots-in-python_files/2018-03-09-boxplots-in-python_16_0.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.65132767,"math_prob":0.87211245,"size":9685,"snap":"2021-31-2021-39","text_gpt3_token_len":2648,"char_repetition_ratio":0.124057434,"word_repetition_ratio":0.1002886,"special_character_ratio":0.29127517,"punctuation_ratio":0.19253731,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9512756,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"im_url_duplicate_count":[null,2,null,2,null,2,null,2,null,2,null,2,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-08-06T01:17:11Z\",\"WARC-Record-ID\":\"<urn:uuid:e32614b6-553b-40c2-86cf-7ed192aeb60a>\",\"Content-Length\":\"57139\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d38e7d0a-24cc-412a-ba3f-fa75f1d21cc4>\",\"WARC-Concurrent-To\":\"<urn:uuid:b0f60241-3169-460f-a4f2-2d08bc28ce1b>\",\"WARC-IP-Address\":\"185.199.108.153\",\"WARC-Target-URI\":\"https://auroregonzalez.github.io/posts/2018/03/boxplots-in-python\",\"WARC-Payload-Digest\":\"sha1:PXO3QZJPGIIKNBAQZEVSRUFQXYITDTAN\",\"WARC-Block-Digest\":\"sha1:K5YP724AFOR6FNDQHFEMXU3Z5L67L44Z\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-31/CC-MAIN-2021-31_segments_1627046152085.13_warc_CC-MAIN-20210805224801-20210806014801-00400.warc.gz\"}"}
https://tw.answers.search.yahoo.com/search?p=dried&ei=UTF-8&flt=cat%3A%E8%AA%9E%E8%A8%80&xargs=0&fr2=sortBy&b=1&context=gsmcontext%3A%3Aranking%3A%3Atime%7Cgsmcontext%3A%3Acat%3A%3A%E5%85%B6%E4%BB%96+-+%E7%A7%91%E5%AD%B8%7C%7Cgsmcontext%3A%3Amarket%3A%3Ahk
[ "# Yahoo奇摩 網頁搜尋\n\n1. ### 量度電池內電阻實驗問題\n\nFor a dry cell, the \"1.5 v\" is only a nominal volatge. The actual voltage... than 1.5v, especially for new cells. Hence, when you put the three dry cells together in series, the total voltage is higher than the nominal...\n\n2. ### 想問\"濕球温度”的原理\n\n...evapouration rate is slow. But when the surrounding air is dry , the evapouration rate is fast. Because latent heat (潛熱) is...\n\n3. ### Physics questions!!! 15 points\n\n...already at its melting point. Wipe the ice surface with a piece of dry cloth or tissue paper to remove the melted water. You could then start...\n\n4. ### 用風扇吹住水面令水降\n\n...循環, 吹了一段時間後還是濕度上升而降溫率下降 另外你可以找psychrometric chart, dry bulb temperature, wet bulb temperature wet bulb temperature 就是你的那空氣在一定的原本...\n\n5. ### Mechanics\n\n(a) Use equation of motion: v^2 = u^2 + 2a.s with v = 0 m/s, u = 14 m/s, s = 14 m, a =? Hence, 0 = 14^2 + 2a(14) a = -7 m/s^2 (the -ve sign indicates a deceleration) Since deceleration = change of velocity/time i.e. braking time = change of velocity/deceleration = 14/7 s = 2 s (b) Use equation...\n\n6. ### 轉動摩擦力 的計算問題? (維基百科內容..\n\n... slightly during contact. The magnitude of the rolling friction between dry surfaces is influenced by the coefficient of friction between...\n\n7. ### 2 question about water 去到100度\n\n...less and less because of evapouration. Wet clothes hanging up get dried because of evapouration. 2. As the name implies, \"expansion joints...\n\n8. ### 以下哪種傳熱方法最有優勢/快?\n\na.衣服被幹掛遠高於篝火晚會它是由向上的熱空氣從底下的篝火當前正在幹。 b.一塊巧克力融化在你的嘴。它是由在你嘴裡的溫暖唾液接觸熔化。 c.對月球表面的太陽落山后的降溫它的表面由於缺乏的太陽輻射熱量的降溫。 在我看來, c 最有優勢,因为輻射是發射熱的最佳途徑。\n\n9. ### 點架車同人會有靜電?\n\n...in air, making the dusts carry charges. During very dry weather (this usually occurs in winter in Hong Kong), the ...\n\n10. ### f.4 physics mechanics\n\n1(a):F=ma 45000-1000(3)=20000(3)a a=0.7ms^-2 (b):T1 is the tension in the coupling chain between (wagon no.1) and (engine). T2 is the tension in the coupling chain between (wagon no.1) and (wagon no.2).T3 is the tension in the..." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8029693,"math_prob":0.98383945,"size":1704,"snap":"2021-04-2021-17","text_gpt3_token_len":678,"char_repetition_ratio":0.1,"word_repetition_ratio":0.052434456,"special_character_ratio":0.28638497,"punctuation_ratio":0.2421875,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96799165,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-04-13T04:30:34Z\",\"WARC-Record-ID\":\"<urn:uuid:54837af4-31b8-42f9-a23e-a1577345687c>\",\"Content-Length\":\"61779\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:adce6ae3-8cf5-4966-85a9-6b3e8ce25a43>\",\"WARC-Concurrent-To\":\"<urn:uuid:65223e54-c6db-455d-932a-b9defb753af3>\",\"WARC-IP-Address\":\"66.218.84.137\",\"WARC-Target-URI\":\"https://tw.answers.search.yahoo.com/search?p=dried&ei=UTF-8&flt=cat%3A%E8%AA%9E%E8%A8%80&xargs=0&fr2=sortBy&b=1&context=gsmcontext%3A%3Aranking%3A%3Atime%7Cgsmcontext%3A%3Acat%3A%3A%E5%85%B6%E4%BB%96+-+%E7%A7%91%E5%AD%B8%7C%7Cgsmcontext%3A%3Amarket%3A%3Ahk\",\"WARC-Payload-Digest\":\"sha1:RYFWBMGEZHDUVE6T5V7R4JXTFDVKK5Y6\",\"WARC-Block-Digest\":\"sha1:SSMUJIKE6RAVSIJUV3JJ3SAMQUE63GEK\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-17/CC-MAIN-2021-17_segments_1618038072082.26_warc_CC-MAIN-20210413031741-20210413061741-00180.warc.gz\"}"}
https://www.physicsforums.com/threads/matrix-multiplication-index-suffix-notation-issues.684884/
[ "# Matrix multiplication: index / suffix notation issues!\n\nHey everyone,\n\nI'm struggling with the summation notation for matrices and vector operations, multiplication in particular. Please refer to the image below where I've typed it all out in Word, its too cumbersome here and I want my meaning to be clear:\nhttps://imageshack.us/scaled/large/580/indicesquestion1.jpg [Broken]\n\nLast edited by a moderator:\n\nAh man that image turned out tiny....If you guys need it to be bigger please let me know!\n\n#### AlephZero\n\nHomework Helper\nYour first summation for $(AB)_{ij}$ is ok.\n\nYour notation for the next one isn't right. If you want to multiply (AB) by C, you have\n$$(ABC)_{ij} = \\sum_l^L (AB){}_{il}C_{lj}$$\n\nNow plug in the summation for $(AB)_{il}$ and you get\n$$(ABC)_{ij} = \\sum_l^L (\\sum_k^K A_{ik}B_{kl})C_{lj}$$\n\nYou got to the right formula in the end, but (as you said) not in a very logical way.\n\nOkay, thank you, I still have a few more questions but for the time being, can you tell me if I can swap the sigma symbols without reordering the suffixes?\n\n#### AlephZero\n\nHomework Helper\nIt doesn't matter what order you add up the terms. Changing the order is the same as saying a+b+c+d+e+f = a+d+b+e+c+f, or whatever order you like.\n\nAlright. Just to make sure that I understand this properly...let's say I want to multiply 4 matrices A B C D together, where the multiplication is possible. Does it go like this:\n\nhttps://imageshack.us/scaled/large/853/summationquestion.jpg [Broken]\n\nHopefully its right T_T and now the image is too big :(\n\nLast edited by a moderator:\n\n#### mikeph\n\nThat's right but I would say make sure you get your brackets right. (AB)C_ij is a very confusing notation, when what you mean is (ABC)_ij. ABC is the matrix, and ij indexes an element in ABC, not just C.\n\nStrictly, (AB)C_ij is the matrix AB times a scalar C_ij.\n\naaah alright. Yea the notation is a bit of an issue but thanks a lot for your help! I got some more questions but I think I'll make a new thread cos its a bit different :)\n\n### Physics Forums Values\n\nWe Value Quality\n• Topics based on mainstream science\n• Proper English grammar and spelling\nWe Value Civility\n• Positive and compassionate attitudes\n• Patience while debating\nWe Value Productivity\n• Disciplined to remain on-topic\n• Recognition of own weaknesses\n• Solo and co-op problem solving" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.93646526,"math_prob":0.75898355,"size":653,"snap":"2019-26-2019-30","text_gpt3_token_len":141,"char_repetition_ratio":0.08320493,"word_repetition_ratio":0.87356323,"special_character_ratio":0.20520674,"punctuation_ratio":0.1322314,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96140754,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-07-23T09:17:21Z\",\"WARC-Record-ID\":\"<urn:uuid:9da7f450-e40b-4077-aa28-50266ea347f5>\",\"Content-Length\":\"97417\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5fa117dc-b12f-4599-b9a0-c2e8d59bf1af>\",\"WARC-Concurrent-To\":\"<urn:uuid:157043d9-cc65-41a0-bb84-63c6d7a99cc0>\",\"WARC-IP-Address\":\"23.111.143.85\",\"WARC-Target-URI\":\"https://www.physicsforums.com/threads/matrix-multiplication-index-suffix-notation-issues.684884/\",\"WARC-Payload-Digest\":\"sha1:4FB76SVDEW34FNOEZLEN7NXZWFGAKP7N\",\"WARC-Block-Digest\":\"sha1:VVPSXVW2NDOWUZIQXME37ADOQKUFSRAE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-30/CC-MAIN-2019-30_segments_1563195529175.83_warc_CC-MAIN-20190723085031-20190723111031-00510.warc.gz\"}"}
https://solve-variable.com/solve-variable/exponent-rules/terms-cubed.html
[ "Free Algebra Tutorials!", null, "Home Systems of Linear Equations and Problem Solving Solving Quadratic Equations Solve Absolute Value Inequalities Solving Quadratic Equations Solving Quadratic Inequalities Solving Systems of Equations Row Reduction Solving Systems of Linear Equations by Graphing Solving Quadratic Equations Solving Systems of Linear Equations Solving Linear Equations - Part II Solving Equations I Summative Assessment of Problem-solving and Skills Outcomes Math-Problem Solving:Long Division Face Solving Linear Equations Systems of Linear Equations in Two Variables Solving a System of Linear Equations by Graphing Ti-89 Solving Simultaneous Equations Systems of Linear Equations in Three Variables and Matrix Operations Solving Rational Equations Solving Quadratic Equations by Factoring Solving Quadratic Equations Solving Systems of Linear Equations Systems of Equations in Two Variables Solving Quadratic Equations Solving Exponential and Logarithmic Equations Solving Systems of Linear Equations Solving Quadratic Equations Math Logic & Problem Solving Honors Solving Quadratic Equations by Factoring Solving Literal Equations and Formulas Solving Quadratic Equations by Completing the Square Solving Exponential and Logarithmic Equations Solving Equations with Fractions Solving Equations Solving Linear Equations Solving Linear Equations in One Variable Solving Linear Equations SOLVING QUADRATIC EQUATIONS USING THE QUADRATIC FORMULA SOLVING LINEAR EQUATIONS\n\nTry the Free Math Solver or Scroll down to Tutorials!\n\n Depdendent Variable\n\n Number of equations to solve: 23456789\n Equ. #1:\n Equ. #2:\n\n Equ. #3:\n\n Equ. #4:\n\n Equ. #5:\n\n Equ. #6:\n\n Equ. #7:\n\n Equ. #8:\n\n Equ. #9:\n\n Solve for:\n\n Dependent Variable\n\n Number of inequalities to solve: 23456789\n Ineq. #1:\n Ineq. #2:\n\n Ineq. #3:\n\n Ineq. #4:\n\n Ineq. #5:\n\n Ineq. #6:\n\n Ineq. #7:\n\n Ineq. #8:\n\n Ineq. #9:\n\n Solve for:\n\n Please use this form if you would like to have this math solver on your website, free of charge. Name: Email: Your Website: Msg:\n\nterms cubed\nRelated topics:\n\"maths sums\" \"10th\" | number least to greatest | algebrator graph table of values | printable worksheets on operations with integers | completing the square problems on ti-83 | free textbook in abstract algebra | algebra for year 7 school kids work sheets | adding subtracting multiplying integers worksheets/topic 5:review answers | ratio calculator polygons | abstract algebra help\n\nAuthor Message\n.deman.", null, "Registered: 02.11.2003\nFrom: Ohio, USA", null, "Posted: Saturday 30th of Dec 20:10 Hello , I may sound really stupid to all the math gurus here, but it’s been a long time since I am learning terms cubed, but I never found it appealing . In fact I always commit errors . I practise quite often , but still my grades do not seem to be getting better\nkfir", null, "Registered: 07.05.2006\nFrom: egypt", null, "Posted: Sunday 31st of Dec 17:05 Have you ever tried Algebrator? This is quite an amazing software and aids one in solving terms cubed questions easily and in minimal time.\nHomuck", null, "Registered: 05.07.2001\nFrom: Toronto, Ontario", null, "Posted: Monday 01st of Jan 09:02 I might be able to help if you can send more details regarding your problems. Alternatively you may also try Algebrator which is a great piece of software that helps to solve math questions . It explains everything thoroughly and makes the topics seem very simple . I must say that it is indeed worth every single penny.\nquaxobby", null, "Registered: 12.12.2006\nFrom: South Yorkshire", null, "Posted: Wednesday 03rd of Jan 08:44 This sounds interesting . How can I get hold of it? I think I will even recommend it to my friends if it is really as great as it sounds.\nDnexiam", null, "Registered: 25.01.2003\nFrom: City 17", null, "Posted: Thursday 04th of Jan 16:36 Check out this link https://solve-variable.com/solving-equations.html. I hope your math will get better and you will do a good job on the test! Good luck!" ]
[ null, "https://solve-variable.com/images/arrow_1.jpg", null, "https://solve-variable.com/images/avatars/none.png", null, "https://solve-variable.com/images/forum/icon_minipost.gif", null, "https://solve-variable.com/images/avatars/363.jpg", null, "https://solve-variable.com/images/forum/icon_minipost.gif", null, "https://solve-variable.com/images/avatars/none.png", null, "https://solve-variable.com/images/forum/icon_minipost.gif", null, "https://solve-variable.com/images/avatars/1010.jpg", null, "https://solve-variable.com/images/forum/icon_minipost.gif", null, "https://solve-variable.com/images/avatars/22.gif", null, "https://solve-variable.com/images/forum/icon_minipost.gif", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.96688443,"math_prob":0.9320414,"size":585,"snap":"2021-31-2021-39","text_gpt3_token_len":124,"char_repetition_ratio":0.07917384,"word_repetition_ratio":0.0,"special_character_ratio":0.21025641,"punctuation_ratio":0.084745765,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9914319,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-25T11:59:52Z\",\"WARC-Record-ID\":\"<urn:uuid:70fee968-3174-40d3-acb6-018a8357569a>\",\"Content-Length\":\"102297\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:505263ad-b0d5-4e68-959c-07e485365964>\",\"WARC-Concurrent-To\":\"<urn:uuid:45d2afa8-63d5-4eb6-b7f9-39f93783776d>\",\"WARC-IP-Address\":\"54.197.228.212\",\"WARC-Target-URI\":\"https://solve-variable.com/solve-variable/exponent-rules/terms-cubed.html\",\"WARC-Payload-Digest\":\"sha1:XRI2TIL4XSR5YBC6R7RXFI2WZKYQUIF6\",\"WARC-Block-Digest\":\"sha1:QACJYILEOEXXY3VKZUGAYNFPKW4W5Z2O\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780057622.15_warc_CC-MAIN-20210925112158-20210925142158-00115.warc.gz\"}"}
https://www.developerfaqs.com/6280/zero-cost-properties-with-data-member-syntax
[ "# Zero-cost properties with data member syntax\n\n• A+\nCategory:Languages\n\nI have (re?)invented this approach to zero-cost properties with data member syntax. By this I mean that the user can write:\n\n``some_struct.some_member = var; var = some_struct.some_member; ``\n\nand these member accesses redirect to member functions with zero overhead.\n\nWhile initial tests show that the approach does work in practice, I'm far from sure that it is free from undefined behaviour. Here's the simplified code that illustrates the approach:\n\n``template <class Owner, class Type, Type& (Owner::*accessor)()> struct property { operator Type&() { Owner* optr = reinterpret_cast<Owner*>(this); return (optr->*accessor)(); } Type& operator= (const Type& t) { Owner* optr = reinterpret_cast<Owner*>(this); return (optr->*accessor)() = t; } }; union Point { int& get_x() { return xy; } int& get_y() { return xy; } std::array<int, 2> xy; property<Point, int, &Point::get_x> x; property<Point, int, &Point::get_y> y; }; ``\n\nThe test driver demonstrates that the approach works and it is indeed zero-cost (properties occupy no additional memory):\n\n``int main() { Point m; m.x = 42; m.y = -1; std::cout << m.xy << \" \" << m.xy << \"/n\"; std::cout << sizeof(m) << \" \" << sizeof(m.x) << \"/n\"; } ``\n\nReal code is a bit more complicated but the gist of the approach is here. It is based on using a union of real data (`xy` in this example) and empty property objects. (Real data must be a standard layout class for this to work).\n\nThe union is needed because otherwise properties needlessly occupy memory, despite being empty.\n\nWhy do I think there's no UB here? The standard permits accessing the common initial sequence of standard-layout union members. Here, the common initial sequence is empty. Data members of `x` and `y` are not accessed at all, as there are no data members. My reading of the standard indicate that this is allowed. `reinterpret_cast` should be OK because we are casting a union member to its containing union, and these are pointer-interconvertible.\n\nIs this indeed allowed by the standard, or I'm missing some UB here?\n\nTL;DR This is UB.\n\n[basic.life]\n\nSimilarly, before the lifetime of an object has started but after the storage which the object will occupy has been allocated or, after the lifetime of an object has ended and before the storage which the object occupied is reused or released, any glvalue that refers to the original object may be used but only in limited ways. For an object under construction or destruction, see [class.cdtor]. Otherwise, such a glvalue refers to allocated storage, and using the properties of the glvalue that do not depend on its value is well-defined. The program has undefined behavior if: [...]\n\n• the glvalue is used to call a non-static member function of the object, or\n\nBy definition, an inactive member of an union isn't within its lifetime.\n\nA possible workaround is to use C++20 `[[no_unique_address]]`\n\n``struct Point { int& get_x() { return xy; } int& get_y() { return xy; } [[no_unique_address]] property<Point, int, &Point::get_x> x; [[no_unique_address]] property<Point, int, &Point::get_y> y; std::array<int, 2> xy; }; static_assert(offsetof(Point, x) == 0 && offsetof(Point, y) == 0); ``" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.85616297,"math_prob":0.8070827,"size":3130,"snap":"2019-43-2019-47","text_gpt3_token_len":766,"char_repetition_ratio":0.10332694,"word_repetition_ratio":0.060240965,"special_character_ratio":0.26805112,"punctuation_ratio":0.17455138,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95955914,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-21T14:32:12Z\",\"WARC-Record-ID\":\"<urn:uuid:fcd60751-e553-4754-9487-9336b0bcab5e>\",\"Content-Length\":\"36194\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:eaff92d3-2eb6-4555-9a8f-0ec97a479101>\",\"WARC-Concurrent-To\":\"<urn:uuid:5252095a-57f5-4d0a-8bf2-8531f937ee47>\",\"WARC-IP-Address\":\"45.56.93.102\",\"WARC-Target-URI\":\"https://www.developerfaqs.com/6280/zero-cost-properties-with-data-member-syntax\",\"WARC-Payload-Digest\":\"sha1:YAEQHLXCDPY47MJE4MU2KS4PTNTHBKLK\",\"WARC-Block-Digest\":\"sha1:HRUVUTSGBR4UTQA5RS7BQ5Z655HVDLSO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496670821.55_warc_CC-MAIN-20191121125509-20191121153509-00058.warc.gz\"}"}
https://www.ias.ac.in/listing/bibliography/pmsc/I._Biswas
[ "• I Biswas\n\nArticles written in Proceedings – Mathematical Sciences\n\n• Determinants of parabolic bundles on Riemann surfaces\n\nLetX be a compact Riemann surface andMsp(X) the moduli space of stable parabolic vector bundles with fixed rank, degree, rational weights and multiplicities. There is a natural Kähler metric onMsp(X). We obtain a natural metrized holomorphic line bundle onMsp(X) whose Chern form equalsmr times the Kähler form, wherem is the common denominator of the weights andr the rank.\n\n• # Editorial Note on Continuous Article Publication\n\nPosted on July 25, 2019" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.68363166,"math_prob":0.73828095,"size":268,"snap":"2023-40-2023-50","text_gpt3_token_len":66,"char_repetition_ratio":0.07575758,"word_repetition_ratio":0.0,"special_character_ratio":0.23507462,"punctuation_ratio":0.023255814,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.972337,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-24T17:10:28Z\",\"WARC-Record-ID\":\"<urn:uuid:11cccb84-1bb2-40a5-8dac-6a7c0b5bf702>\",\"Content-Length\":\"23869\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d61c7450-3641-41df-9133-43ab89d3c043>\",\"WARC-Concurrent-To\":\"<urn:uuid:02d5a441-2fd3-4a64-a5c0-f3d73fa539d7>\",\"WARC-IP-Address\":\"65.1.150.115\",\"WARC-Target-URI\":\"https://www.ias.ac.in/listing/bibliography/pmsc/I._Biswas\",\"WARC-Payload-Digest\":\"sha1:GQXNDPAIQB2MDECAYOEZCQ5WUHQJ4AI7\",\"WARC-Block-Digest\":\"sha1:QA7KPEE2IAOTRWIA3GIWSW3GLG4AO5QD\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233506658.2_warc_CC-MAIN-20230924155422-20230924185422-00871.warc.gz\"}"}
https://edspi31415.blogspot.com/2012/11/
[ "Sunday, November 25, 2012\n\nTwo more calculators added to the collection.\n\nI love swap meets and pawn shops. Eddie", null, "f(x) = x * random ^ random\n\nEarlier this month, I received a request from Jason Foose. These are six graphs of y = x * rand^rand: two with the TI-84+, two with the Casio Prizm (fx-CG 10, and two with the HP 39gii.\n\nOn the Prizm, I had to use the catalog to find the random number function (labeled Ran#).\n\nRe-editing the function will cause the function to be redrawn.\n\nEnjoy!\n\nEddie", null, "", null, "", null, "", null, "", null, "", null, "Matrix Functions on the fx-991ES (fx-115ES in the US) vs TI-36X Pro\n\nMatrix Function Comparison (fx-991ES/fx-115ES vs TI 36X Pro)\n\nToday's blog entry comes from a question by An Artist:\n\nAn Artist has left a new comment on your post \"TI-36X Pro Review\":\n\nHi Eddie,\n\nIn India, the TI 36x pro is available at the same price as the Casio 991ES.\nI have ordered the TI.\n\nIs this a good decision?\nI've heard of a memory overload bug of the TI which gives wrong answers. Can you please tell me how to get around the bug?\n\nMy main focus is matrix and someone told me that this one has more matrix functions for matrices. Can you please confirm that?\n\nFirst of all thank you for the compliment An Artist, very much appreciated.\n\nRegarding the overload bug on the TI-36X Pro, honestly this is the first time I read of it. According to one of the reviewers on the flipkart.com page, the reviewer reports an overload bug occurs when too many equations are used or too much memory is used. I have not found any additional information about this. Personally I have not encounter this problem.\n\nNow the matrix commands. I am going to list the available matrix functions for each calculator. First up, Casio, then Texas Instruments.\n\nKeep in mind both calculators allow only for real-numbered elements.\n\nCasio fx-991ES (aka fx-115ES in the United States)\n\nYou will need to enter a specific mode for Matrices (MODE 6)\n\n3 matrices can be stored, up to size 3 x 3 matrices. A separate \"Ans\" matrix is also available.\n\nMatrix Functions:\nArithmetic\nAbility to resize matrices\nDeterminant (dim)\nTranspose (Trn)\nInverse (with the x⁻¹ button)\nSquare of a square matrix (with the x² button)\nCube of a square matrix (with the x³ function)\nAbsolute Value of each element (Abs)\n\nMatrices are automatically cleared when modes are switched.\n\nNote: The updated fx-115ES PLUS adds the ref and rref functions.\n\nTexas Instruments TI-36X Pro\n\nThere is no specific mode required, you can work with matrices directly from the Home screen.\n\n3 matrices can be stored, up to size 3 x 3 matrices. A separate \"Ans\" matrix is also available. The TI-36X offers identity matrices [I2] and [I3] of size 2 x 2 and 3 x 3, respectively.\n\nMatrix Functions:\nArithmetic\nAbility to resize matrices (through the edit screen)\nDeterminant (dim)\nTranspose (Trn)\nInverse\nSquare of a square matrix (with the x² button)\nPowers of a square matrix ([A]^n where n is a positive integer, 0, or -1)\nAbsolute Value of each element (abs)\nInteger Part of each element (iPart)\nFractional Part of each element (fPart))\nRounding of each element (round)\nReduced Echelon Form (ref)\nRow Reduced Echelon Form (rref)\n\nMatrices are retained in memory on the TI-36X Pro.\n\nAn Artist, to answer your question between the fx-991ES and the TI-36X Pro, I can confirm that the TI-36X Pro has more functions for matrices. Hope this helps,\n\nEddie\n\nFriday, November 23, 2012\n\nMy next blog series?", null, "Thursday, November 22, 2012\n\nHappy Thanksgiving\n\nWishing everyone a happy and safe Thanksgiving. I am very thankful to all who follow my blog and all who read and make comments. You are truly the best!\n\nMay Thanksgiving be a blessed event, memorable, and stress be minimized!\n\nEddie\n\nSunday, November 18, 2012\n\nGraphing Calculator Programming Languages Comparison: TI 84 Plus vs Casio Prizm\n\nThis is a short comparison between the programming languages of the Texas Instruments TI-84+ and the Casio Prizm. For each category, I will list the different syntaxes required.\n\nIf you find a program that you like that is programmed on a calculator you don't have, no fear! This guide can be served as a translation guide. For more details, consult the manual or search for detailed tutorials.\n\nHope this helps,\n\nEddie\n\nNotes:\n\nThe commands for the TI-84+ also covers the TI-84+ Silver Edition, TI-83+ Silver Edition, TI-83+, and most likely the TI-82 and the upcoming TI-84+ Plus C Silver Edition (84+ with a color screen). The TI-84+ family carries a program memory of about 24,000 bytes, 28,000 for the TI-82.\n\nThe commands for the Casio Prizm (Model fx-CG 10/20) also apply to the fx-9860g (all versions), fx-9750g, and (most likely) fx-9850g. The Casio family carriers about 60,000-62,000 bytes of program memory, except the 9850g (32,000 bytes).\n\nKeystrokes may vary.\n\nArguments in each command are in italics.\n\nHere we go:\n\nNumerical Derivative\n\nTI-84+: MATH, 8\nnDeriv(f(variable),var,value)\n\nCasio Prizm: OPTN, F4, F2\nd/dx(f(X),value)\nThe variable is always X.\n\nDefinite Integral\n\nTI-84+: MATH, 9\nfnInt(f(var), var, lower limit, upper limit)\n\nCasio Prizm: OPTN, F4, F4\n∫(f(X),lower limit,upper limit)\nThe variable is always X.\n\nSolve\n\nTI-84+: Catalog or MATH, B in programming mode\nsolve(expression,variable to be solved for,guess, range*)\nexpression is set to be equal to 0\nrange is a two element list {low, high}, and is an optional argument.\n\nCasio Prizm:\n\nThere are two commands.\n\nSolve f(X)=0 for X: OPTN, F4, F1\nSolve(f(X),guess,low,high)\n\nSolve an equation in any variable: OPTN, F4, F5\nSolveN(equation,variable to be solved for,low,high)\n\nSums\n\nTI-84+: MATH, 0\nΣ(f(var),var,start value,end value)\n\nCasio Prizm: OPTN, F4, F6, F3\nΣ(f(var),var,start value,end value)\n\nTI-84+:\nInput \"prompt string\", var\n\nCasio Prizm:\n\"prompt string\"? → var\n\nDisplaying Results\n\nTI-84+:\nDisp var or string\nYou can add other lines, using commas to separate them.\n\nPause var\nPause allows the user to scroll the variable's value.\n\nCasio Prizm:\nvar or string\nThe ◢ is the right triangle symbol, which acts like a pause command.\n\nIf Then Else\n\nTI-84+:\nIf test expression\nThen\ndo this if test is true\nElse\ndo this if test is false\nEnd\n\nCasio Prizm:\nIf test expression\nThen\ndo this if test is true\nElse\ndo this if test is false\nEndIf\n\nShortcut: Jump Command\ntest condition1 command if test is true : skip to here if the test is false\n\nFor Loop\n\nTI-84+:\nFor(counter var,start value,end value,step size*)\ncommands\nEnd\n\nstep size can be positive or negative, and is optional\n\nCasio Prizm:\nFor start valuevar To end value Step step size*\ncommands\nEnd\n\nstep size can be positive or negative, and is optional\n\nWhile Loop\n\nTI-84+:\nWhile this test condition is true\ndo these commands\nEnd\n\nCasio Prizm:\nWhile this test condition is true\ndo these commands\nWhileEnd\n\nDo Until Loop\n\nTI-84+:\nRepeat until this condition becomes true\nthese commands\nEnd\n\nCasio Prizm:\nDo\nthese commands\nLpWhile this condition remains false\n\nList and Matrix Element Calls\n\nTI-84+:\nLists:\nL#(element number)\n#: 1 through 6 or custom name\n\nMatrix:\n[[#]](row,column)\n#: A through J\n\nCasio Prizm:\nLists:\nList #[element number]\n#: 1 through 26 or custom name\n\nMatrix:\nMat #[row,column]\n#: 1 through 26\n\nGiving the user a menu of options\n\nTI-84+:\n\nCasio Prizm:\nMenu \"title string\", \"choice 1\", label name...\n\nDecrementing and Incrementing Variables by 1\n\nTI-84+:\nIS>(var,target value)\ndo if var + 1 ≤ target value\n\nDS<(var,target value)\ndo if var - 1 ≥ target value\n\nCasio Prizm:\nISZ var\ndo if var + 1 ≠ 0\n\nDSZ var\ndo if var - 1 ≠ 0\n\nThis blog is property of Edward Shore, 2012.\n\nSunday, November 11, 2012\n\nJacobi Elliptical Functions\n\nThis blog entry is possible thanks to @mathematicsprof on Twitter. He posted an article \"Jacobi Elliptic Functions from a Dynamic Systems Point of View\", written by Ken Meyer Ph.D of the University of Cincinnati, which not only gave me something to read during lunch last Friday but also lead me on how to calculate Jacobi Elliptic Functions. I am so grateful!\n\nBy the way, I am on Twitter: @edward_shore.\n\nJacobi Elliptic Functions - An Introduction\n\nLet k and t be parameters where 0 < k < 1 as the following system of differential equations is to be solved:\n\ndx/dt = y(t) * z(t)\ndy/dt = -z(t) * x(t)\ndz/dt = -k^2 * x(t) * y(t)\n\nwhich satisfy the initial conditions x(0) = 0, y(0) = 1, and z(0) = 1.\n\nThe Jacobi Elliptical Functions are defined to be the solutions to the above system.\n\nThe sine amplitude function is defined as sn(t, k) = x(t).\n\nThe cosine amplitude function is defined as cn(t, k) = y(t).\n\nThe delta amplitude function is defined as dn(t,k) = z(t).\n\nA very interesting point, which has also managed to trip me up for years, is that there is no explicit closed formula for sn(t,k), cn(t,k), and dn(t,k). Yet mathematicians can find the derivatives and integrals of these functions.\n\nDerivatives of the Jacobi Elliptical Functions\n\nThese derivatives, by looking at the system above, are:\n\nd/dt sn(t,k) = cn(t,k) * dn(t,k)\nd/dt cn(t,k) = -dn(t,k) * sn(t,k)\nd/dt dn(t,k) = -k^2 * sn(t,k) * cn(t,k)\n\nWhen k=0\n\nBy setting k=0 and finding solutions to the system equations becomes:\n\ndz/dt = 0\nz(t) = c\nSince z(0)=1, conclude z(t)=1.\n\nThen\ndx/dt = y(t)\ndy/dt = -x(t)\nwith initial conditions x(0)=0 and y(0)=1.\n\nSince sin(0)=0, cos(0)=1, d/dt sin t = cos t, and d/dt cos t = -sin t, we can conclude that x(t) = sin t and y(t) = cos t. Meyer states that as k approaches 0, sn(t,k) approaches sin(t), cn(t,k) approaches cos(t), and dn(t,k) approaches 1.\n\nA Very Familiar Identity\n\nSimilar to the famous identity:\n\nsin²(θ) + cos²(θ) = 1\n\nAn identity of Jacobi Elliptical functions is:\n\nsn²(t,k) + cn²(t,k) = 1\n\nWhy is this true? Take the derivative with respect to t and we find that:\n\n2 sn(t,k) cn(t,k) dn(t,k) - 2 cn(t,k) dn(t,k) sn(t,k) = 0\n\nHow to Calculate\n\nWe can use the integral definition to assist us in calculating values for sn, cn, and dn. In this section, let the parameters be u and k, respectively. The integral definition stems from the incomplete elliptical integral:", null, "where u and k are known and p is the value we are solving for.\n\nThe value p is known as the Jacobi Amplitude, am(u,k) for short. Then:\n\nam(u,k) = p\n\nsn(u,k) = sin(am(u,k)) = p\n\ncn(u,k) = cos(am(u,k)) = p\n\ndn(u,k) = √(1 - k² sin² (am(u,k)) = √(1 - k² sin²(p))\n\nAdvanced mathematics software or an online calculator, such as this one from Ke!san, are often used to calculate values of Jacobi Elliptical Functions. Fortunately, this task can be done with high-end graphing calculators, using their solve application.\n\nI have been able to obtain accurate answers using the Hewlett Packard HP-50g, Texas Instruments TI-84+, and Casio Prizm fx-CG 10. The later two are relatively fast in finding values. Below I will show the setup for each of the three calculators. I am pretty sure the TI nSpire can handle this too. The following screens show how to obtain am(u,k), the Jacobi Elliptical functions easily follow.\n\nIn the solver screen, you can leave X blank (HP-50G only), or just assign any arbitrary value to X, such as 1, since X is the dummy variable in the integration and has no effect on calculations.", null, "", null, "", null, "", null, "", null, "", null, "Here is a small table of values:", null, "Resources\n\nMeyer, Kenneth R. \"Jacobi Elliptic Functions from a Dynamic Systems Point of View\" The Mathematical Association of America. Monthly 108. October 2001 - retrieved 11/9/2012\n\nWeinstein, Eric \"Jacobi Elliptic Functions\" - From MathWorld - A Wolfram Web Source, http://mathworld.wolfram.com/JacobiEllipticFunctions.html, retrieved 11/11/2012\n\nFun as always! Thank you as always. Until next time, Eddie\n\nThis blog is property of Edward Shore, 2012.\n\nThe United States Fiscal Cliff: What does it all mean?\n\nHi everybody. Today I want to talk about tax policy and how the potential tax changes come January 1, 2013 affects taxpayers in the United States.\n\nWhen the United States Congress goes back into session, one of the hot topics will be the \"fiscal cliff\". The \"fiscal cliff\" is a set of income tax credits and tax rates that are set to expire on January 1, 2013; effectively raising the income tax liability for each taxpayer. This blog entry will show how much of a tax increase to expect if no action is taken.\n\nCAUTION AND DISCLAIMER:\n\n1. The information presented today is for general purposes only and is not to be used as income tax advice. If you need advice, please work with a licensed income tax professional.\n\n2. I am only working with federal income tax - be aware that other taxes can increase and decrease.\n\n3. There is no guarantee of the final tax rates for 2013.\n\n4. For today's blog, I will work with single and married filers (married filing jointly). Taxpayers that are head of households, married but filing separately, and other statuses may have different tax rates.\n\nCurrent United States Tax Law for 2012\n\nThese are the current tax laws. When Americans file their income tax early next year, they will calculate tax liability using these rates.\n\n2012 Tax Rates\n\n(income range, tax rate)\n\nSingle\n\\$0-\\$8,700; 10% of income\n\\$8,700-\\$35,350; \\$870 plus 15% of income excess of \\$8,700\n\\$35,350-\\$85,650; \\$4,867.50 plus 25% of income excess of \\$35,350\n\\$85,650-\\$178,650; \\$17,442.50 plus 28% of income excess of \\$85,560\n\\$178,650-\\$388,350; \\$43,482.50 plus 33% of income excess of \\$178,650\n\\$388,350 and above; \\$112,683.50 plus 35% of income excess of \\$388,350\n\nStandard Deduction: \\$5,950 (phased out as income passes a certain point)\n\nMarried Filing Jointly (filing as a couple)\n\\$0-\\$17,400; 10% of income\n\\$17,400-\\$70,700; \\$1,740 plus 15% of income excess of \\$17,400\n\\$70,700-\\$142,700; \\$9,735 plus 25% of income excess of \\$70,700\n\\$142,700-\\$217,450; \\$27,735 plus 28% of income excess of \\$142,700\n\\$217,450-\\$388,350; \\$48,665 plus 33% of income excess of \\$217,450\n\\$388,350 and above; \\$105,062 plus 35% of income excess of \\$388,350\n\nStandard Deduction: \\$11,900 (phased out as income passes a certain point)\n\nPersonal Exemption: \\$3,800 (almost every person gets one)\n\nLet's take an example for a single person in the United States who earned \\$50,000. Every taxpayer gets a personal exemption, and assume that this person takes a standard deduction in lieu of itemized deductions. Assuming no other credits apply:\n\nIncome: 50,000 - 3,800 - 5,950 = 40,250\nTax Liability for 2012: 4,867.50 + (40,250 - 35,350) * 25% = \\$6,092.50\n\nTax Rates for 2013 if No Action is Taken\n\nIf no action is taken, the income tax rates for each bracket will rise, except for the 15% bracket. The 10% bracket disappears entirely. The amounts shown in the table are 2012 amounts to determine the tax brackets - which will most likely be adjusted for inflation. These are estimated tables only, not final.\n\nTax Increase in 2013?\n\n(income range, tax rage)\n\nSingle\n\n\\$0-\\$35,350; 15% of income\n\\$35,350-\\$85,650; \\$5,302.50 plus 28% of income excess of \\$35,350\n\\$85,650-\\$178,650; \\$19,386.50 plus 31% of income excess of \\$85,650\n\\$178,650-\\$388,350; \\$48,216.50 plus 36% of income excess of \\$178,650\n\\$388,350 and above; \\$123,708.50 plus 39.6% of income excess of \\$388,350\n\nStandard Deduction: \\$5,950 but will probably increase - final number not released\n\nMarried Filing Jointly\n\n\\$0-\\$70,700; 15% of income\n\\$70,700-\\$142,700; \\$10,605 plus 28% of income excess of \\$70,700\n\\$142,700-\\$217,450; \\$30,765 plus 31% of income excess of \\$142,700\n\\$217,450-\\$388,350; \\$53,937.50 plus 36% of income excess of \\$217,450\n\\$388,350 and above; \\$115,461.50 plus 39.6% of income excess of \\$388,350\n\nStandard Deduction: \\$9,900 - due to the \"marriage penalty\"\n\nPersonal Exemption: \\$3,800 but will most likely increase due to inflation\n\nLet's take the same person, who is Single and makes \\$50,000. Assume income level stays level for 2013 and the person takes the standard deduction. Then for 2013:\n\nIncome: \\$50,000 - \\$5,950 - \\$3,800 = \\$40,250\nEstimated Tax Liability for 2013: \\$5,302.50 + (\\$40,250 - \\$35,350) * 28% = \\$6,674.50\n\nThis represents a potential increase of \\$582 in income taxes.\n\nYou can use these estimate these tax brackets to estimate the increase in federal income taxes in 2013 - should nothing happen and the Bush Tax Brackets, which were set back in 2001 and 2003, expire.\n\nIn addition, the potential tax laws can change in 2013:\n\n* An increase in long term capital gain tax, from 15% to 20%. This tax is for profit made on selling stocks and other long term capital assets held for more than 1 year.\n* Social security tax on wages increase from 4.2% to 6.2%. Personally, I see this happening regardless of what happens in Congress over the next two months.\n* The exclusion of employer-provided education assistance of \\$5,250 can disappear in 2013.\n* The American Opportunity Tax Credit revers to the Hope Credit. The credit would be reduced from \\$2,500 to \\$1,800 and will only be available to students in the first two years of undergraduate education instead of four.\n* The Child Credit and Earned Income Tax Credit is set to take a hit for 2013.\n\nHopefully this will alleviate some fear, or at the very least prepare taxpayers for what could be coming.\n\nWhat is Congress Discussing\n\nThere is talk about extending the Bush tax brackets for at least another year for most taxpayers. Those with the highest income tax brackets (33% and 35%) could see their income tax increase and that what is in debate. Hopefully soon, Americans will know the final income tax structure for 2013\n\nSource:\nDiscussion by Godfrey Kahn S.C., 5/23/2012 - Retrieved 11/11/2012\n\nGood day everyone. This blog is information purposes only and not to start political debate.\n\nEddie\n\nSaturday, November 10, 2012\n\nBernoulli Numbers and Polynomials\n\nToday is a good day. I went to the library of alma mater, Cal Poly Pomona for library day. Once a month I try to visit a university library and peruse through with Mathematics Section.", null, "I finally got the concept of generating functions. In the many years I studied math, generating functions proved to be an elusive topic for me. Not any more.\n\nWhat are generating functions?\n\nGenerating Functions\n\nGenerating functions is a power series. The series is usually does not terminate. The coefficients of the power series can reveal a sequence used in various fields in science.\n\nThe Ordinary Generating Function:\n\nG(a_n; x^n) = ∑ a_n * x^n\n\nSometimes we have an Exponential Generating Function:\n\nE(a_n; x^n) = ∑ a_n * (x^n/n!)\n\nThere are other types of generating functions, but I will focus on the basic types described above.\n\nn! represents the factorial of n. In this case, n is a positive integer, and:\n\nn! = n * (n-1) * (n-2) * ... * 3 * 2 * 1\n\nBy definition, 0! = 1\n\nTo expand the generating function G(a_n; x^n), calculate a Maclaurin Series of G(x). A Maclaurin Series of a function is a Taylor Series about the point x = 0. Hence the Maclaurin Series:\n\nG(x) = G(0) + G'(0) * x/1! + G''(0) * x^2/2! + G'''(0) * x^3/3! + .... + O(x)\n\nwhere O(x) is the error term G^(n+1)(z) * x^(n+1)/(n+1)! In practice and calculation, O(x) is sometimes \"ignored\".\n\nAn Example: A Basic Generating Function\n\nExpand the generating function, let's go five terms:\n\nG(a_n; x^n) = 1/(1 - x)\n\nG(x) = 1/(1 - x)\nThen:\nG(0) = 1/(1 - 0) = 1\n\ndG/dx = 1/(x-1)^2; dG/dx(0) = 1\n\nd^2G/dx^2 = -2/(x-1)^3; d^2G/dx^2(0) = 2\n\nd^3G/dx^3 = 6/(x-1)^4; d^3G/dx^3(0) = 6\n\nd^4G/dx^4 = -24/(x-1)^5; d^4G/dx^4(0) = 24\n\nTo five terms...\n\n1/(1-x) = 1 + 1 * x/1! + 2 * x^2/2! + 6 *x^3/3! + 24 * x^4/4! + O(x)\n= 1 + x + x^2 + x^3 + x^4 + O(x)\n\nThe sequence of coefficients are: {1, 1, 1, 1, 1}.\n\nThe Bernoulli Numbers\n\nThe Bernoulli Numbers can be found by using the Exponential Generating Function:\n\nE(a_n; x) = ∑ x/(e^x - 1)\n\nThe Bernoulli Numbers, B_n, are the \"coefficients\" of the expansion of ∑ x/(e^x - 1). Recall in the Exponential Generating Function, the \"coefficients\" are of the term x^n/n!.\n\nWith E(x) = x/(e^x - 1), the first two derivatives are:\n\ndE/dx = - ((x-1)*e^x + 1)/(e^(2x) - 2*e^x + 1)\n\nd^2E/dx^2 =\n((x - 2)*e^(2x) + (x + 2)*e^x) / (e^(3x) - 3*e^(2x) + 3*e^(2x) - 1)\n\nNote that calculating E(0) gives us 0/0. Same for dE/dx(0) and d^2E/dx^2(0). However, if I use a calculate with CAS capabilities such as the Hewlett Packard HP 50g, or mathematical software such as MathStudio (an app for smartphones and iPads), I get something like this (first eight terms):", null, "Why is that?\n\nObserve that:\n\nlim x/(e^x - 1) as x → 0 = 0/0\n\nUsing the L'Hospital's rule, we can take the derivatives of both numerator and denominator,\n\nlim 1/(e^x) as x → 1 = 1\n\nwhich implies that:\n\nlim x/(e^x - 1) as x → 0 = 1\n\nYou can generate terms by taking the limit as x → 0 for each term.\n\nThis how we end up with the series. Now to extract the \"coefficients\", observe that:\n\n12 = 6 * 2!\n(no term contains x^3/3!)\n720 = 30 * 4!\n(no term contains x^5/5!)\n30240 = 42 * 6!\n(no term contains x^7/7!)\n1,209,600 = 30 * 8!\n\nOur sequence for this generating function (for nine terms) is:\n\n{1, -1/2, 1/6, 0, -1/30, 0, 1/42, 0, -1/30}\n\nThese numbers are the Bernoulli numbers. In fact, definition by generating function is:\n\nx/(e^x - 1) = ∑ B_n * (x^n/n!)\n\nBernoulli Numbers\n\nB_0 = 1\nB_1 = -1\nB_2 = 1/6\nB_3 = 0\nB_4 = -1/30\nB_6 = 1/42\nB_8 = -1/30\nB_10 = 5/66\nB_12 = -691/2730\nB_14 = 7/6\n\nB_n = 0 where n is odd and n > 2\n\nBernoulli Polynomials\n\nBernoulli Polynomials can be generated by the following formula:\n\nβ_n(x) = ∑((B_k * n!/(k!*(n-k)!) * x^k, from k = 0 to n)\n\nwhere B_k is the kth Bernoulli number.\n\nSource:\nKrylov, Vladimir Ivanoch, translated by H. Stroud Approximate Calculations of Integrals McMillian Company: New York, 1962\n\nUntil next time, be safe everyone! Eddie\n\nThis blog is property of Edward Shore, 2012.\n\nFriday, November 9, 2012\n\nThe Sine Wave - A Portrait\n\nGood Friday!\n\nOne of my favorite mathematical functions is the sine function. Not only the sine wave helps describe a lot of physical phenomena, but I also see it like how life goes, with its ups and downs.\n\nSo here are few graphs (portraits) of the sine wave.\n\nSettings:\nCalculator: TI-84+\nWindow: X range: -π/2 to 5π/2, Y range: -2.05 to 2.05\n(Except the last one, X range: 0 to 5π/2)\n\nEddie\n\nThis blog is property of Edward Shore, 2012.", null, "", null, "", null, "", null, "", null, "HP 42S and TI-60: Dimensions of a Race Track\n\nHP 42S and TI-60:  Dimensions of a Race Track We have a race track that consists of two rectangular tracks connected by a circular ri..." ]
[ null, "https://lh5.googleusercontent.com/-yHtHEEMAQ3g/ULKgyLC6GbI/AAAAAAAAAv4/jeonNddqG_U/9BBFDB58-679F-4852-988C-ED09C8BA3692.jpg", null, "https://lh5.googleusercontent.com/-w-o8L4EpAw4/ULJplaEFJLI/AAAAAAAAAu4/cKWyNWWz-q4/AE1A947B-2B60-48C8-92AE-62E533524DDD.jpg", null, "https://lh4.googleusercontent.com/--_WJoXCUULI/ULJphz5WLqI/AAAAAAAAAuo/TTLIc2QQcJ4/C2E51755-8300-4DCA-AE97-4E2F08255949.jpg", null, "https://lh4.googleusercontent.com/-9clAZvtUdjU/ULJpobhIlqI/AAAAAAAAAvI/HPVxFuaFf_Q/CD151EFF-89C3-4983-B8C0-84C4E8309DDB.jpg", null, "https://lh6.googleusercontent.com/-9SehkSedcrk/ULJpfPU_WeI/AAAAAAAAAug/_2QJHOG5D-0/C3FBE168-21E3-411E-84D7-70A561B231A1.jpg", null, "https://lh6.googleusercontent.com/-TEhYZFDls5o/ULJpmsOdO_I/AAAAAAAAAvA/kMTLcVW2HLQ/51DFA1D2-BAB8-4E88-AEEB-B82F1620425A.jpg", null, "https://lh6.googleusercontent.com/-g2PNS31a-Kw/ULJpjwZA-kI/AAAAAAAAAuw/kKV7EJhUOuw/E5813D1A-2EDD-4C6E-956D-FA0D60CD18AE.jpg", null, "https://lh3.googleusercontent.com/-g8XpHZMMOZ0/UK_OVH6vM9I/AAAAAAAAAtw/cn7MpVzfOkM/31961275-43A2-4126-9BDE-FB3CD50FE1DE.jpg", null, "https://lh4.googleusercontent.com/-q-cJeEJA_Xs/UKAVHUH6iVI/AAAAAAAAAsI/b228WVOu8u0/DCD32F9C-C5EB-4A2E-A036-76AD6808ED82.jpg", null, "https://lh5.googleusercontent.com/-r_sSCGg28HM/UKAVMAlQ1KI/AAAAAAAAAsY/q4nfzHB_cRI/E58DEF4A-B3B1-4B67-99B5-75D575653B06.jpg", null, "https://lh5.googleusercontent.com/-oxE724BrtOo/UKAVJ1g9WXI/AAAAAAAAAsQ/Pz2sT1wbRBE/67243D7C-CDFA-402C-B018-D0BA31F3D703.jpg", null, "https://lh6.googleusercontent.com/-tkkoldzydoQ/UKAVRf9Y7GI/AAAAAAAAAsw/8j7PONm6Afk/CB782E24-FA5F-4AFC-93AE-2C919F2CC131.jpg", null, "https://lh6.googleusercontent.com/-71AESG7-Gb8/UKAVN3runAI/AAAAAAAAAsg/kmslmyT23R0/4794FC18-AFD2-417B-9186-99A440787ED1.jpg", null, "https://lh4.googleusercontent.com/-WPhTAVIP0zw/UKAVPjd1fuI/AAAAAAAAAso/1bIoJNfNmOM/AC45C8F5-7D36-4D81-9C07-2714325B59A9.jpg", null, "https://lh6.googleusercontent.com/-4y3-DvIZZfA/UKAVUjNXnsI/AAAAAAAAAtA/y5rYNy8bRe8/1C2F00BC-0936-4DB2-A3BA-FB57F44CB97A.jpg", null, "https://lh5.googleusercontent.com/-Qb6elzACtqk/UKAVSjwuwBI/AAAAAAAAAs4/4YqSDkFacBY/1EA997FA-D0DD-41B2-B848-5234C6B43799.jpg", null, "https://lh4.googleusercontent.com/-e8eqcJ5Cak4/UJ8U_LhoLJI/AAAAAAAAArc/jxZFsSWky0g/7EB8E76A-6E8E-414F-9393-C3EAB059D05E.jpg", null, "https://lh4.googleusercontent.com/-tZUCwsIwHh4/UJ8U8RmDcCI/AAAAAAAAArU/TViWLRC-0qY/E1A24B03-7955-496B-B089-D82837F5DAB4.jpg", null, "https://lh5.googleusercontent.com/-72PHfn8YJxA/UJ0XDWzWU0I/AAAAAAAAAqo/r0MPF6wA-k0/E8F8F532-D317-4381-B58E-47733D25284D.jpg", null, "https://lh4.googleusercontent.com/-GdBV7ORg6mQ/UJ0XCWNJfaI/AAAAAAAAAqg/eqMGd0Yc8Ms/47C6E0C9-DE7A-4411-8893-1CCDF62A9A91.jpg", null, "https://lh4.googleusercontent.com/-52Qsz_5lrQE/UJ0W94HvmDI/AAAAAAAAAqI/1hZp_bNMcig/E91A9743-120F-4401-9A88-801AD916AC6D.jpg", null, "https://lh6.googleusercontent.com/-tYqUoLgF-ko/UJ0W_Y2DzTI/AAAAAAAAAqQ/vHnTcxGAvFo/AFD2EA31-CB64-4E93-8149-10CA49364BD6.jpg", null, "https://lh5.googleusercontent.com/-nEy09hnzqXc/UJ0XAjFlO8I/AAAAAAAAAqY/0EfteN53ZmU/CD085A3C-001D-4256-98A9-DB35D3DF725A.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8681617,"math_prob":0.9754013,"size":22697,"snap":"2019-26-2019-30","text_gpt3_token_len":6711,"char_repetition_ratio":0.10893227,"word_repetition_ratio":0.07039757,"special_character_ratio":0.31484336,"punctuation_ratio":0.1472051,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9884609,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-06-19T18:01:56Z\",\"WARC-Record-ID\":\"<urn:uuid:9816e5cf-c7b5-438c-a639-c18ec796ccf1>\",\"Content-Length\":\"165386\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8e11220b-b32e-451a-90a2-7c0a5e62aef3>\",\"WARC-Concurrent-To\":\"<urn:uuid:2206a8cf-63a1-4667-821a-ad1bd0e11e45>\",\"WARC-IP-Address\":\"172.217.15.97\",\"WARC-Target-URI\":\"https://edspi31415.blogspot.com/2012/11/\",\"WARC-Payload-Digest\":\"sha1:MYQG546XKQSKITZJ2H3O4OTFRJRIH6QZ\",\"WARC-Block-Digest\":\"sha1:I56BSA3OD72LYLKV7JMJ5IXPFV4Q6W7O\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-26/CC-MAIN-2019-26_segments_1560627999003.64_warc_CC-MAIN-20190619163847-20190619185847-00054.warc.gz\"}"}
https://studylib.net/doc/13205338/
[ "# Document 13205338", null, "```Math 617 Dy 24\n:\n.\nNow the\ndeuynsitk Brat\nHahn\n,\nbed to\ndoes\nDf\nA\n:\nname\nin\nTwo signed\nEquirbrtf\nThen\nhe\nget\nKM\nmany\n,\nProf\n:\n+\n1\nm\nNow\n&micro;+tn\nis\n-\nare\n.\nif\n-\npositive\nhe\nv\n-\nBt\n.\nto\n,\njust\nf\nDf\n:\nA\nthe\n&micro;(\nAn\nsigned\nThe\nst\nv.\nLAI\nmane\nfall\nwrk\nmany\n&micro;\n,\nlitre\n.\ntv\n&micro;\n&amp;\nif\n.\nthey\nE)\nfetus\ndid for\nSupported\nare\n=0=v(\n&micro; 1 F)\nu\nthe\nthen\ndisjoint\nan\nah\n.\n.\n;\nexist unique positive\nMHE\n,\n)\nEEM\nFor\n.\nM\n-\nFTM\ninlet\nalpine\n,\n#=ulEnx+)\n.\nEX\nE\nThhe f\n,\nAEM\ng\nE)\n.\n=\n:\n&amp;&micro;\nat\nmores\nIENXH\nIn\nMIENX\n+\n,\nfnik\n}\n&times;\n,\nv\n+1 F)\n.\n)\n&amp;&micro;t#=\nwith\n.\n-\nfr g\nul E)\n=\n0\n,\n)\nIE\nv.\n=\nnegate =\nXt\n&times;+u\nF\nEE\n'\n=\n3\nso\n,\nv+lA)=v+lAH =Ml\nmlanht MIANXHED tml\nAn IXHE )\nAn\n&micro;\nE)\nAEM\nV.\nso\n,\nwe\na\nf=f+ f.\nulenx\nEEM\n.\n,\nThen\n.\nfln\n-\nn\n.\nto be\nfinite ( respedmf\nsigned\nmany\non\n,\nX\ngun\nlmltmttu\n(\na\nveofr\nI\n=\nfit f.\n,\nunion\nan\n0\n.\n)\n.\n18\n.\nthe\nabsohte\nwhe\nor\n.\nspace\n.\nis\na\ndusted\nfile lryputuf\n&micro;\n/X )\n.\nT\n,\nHenke\nto\nnull\ndefine\nman\nB\n.\nfile ) if IN\nr\nis\nIf\na\nB\n0\n-\nF\nEu\nul AAXH =&micro;+lA )\n=\naekth\nEixt\ntht the daaposith\nsee\ncan be\n-\n=n1 And )\nANEHHE\n&amp;\nEXHE\nEHN\nAN\n-\nIA )\n&micro;=&micro;+\nmore\n=\n&amp;\npsihe\nB\n+\nEOF\n,\n.\n,\n'\nF=&cent;\nEn\n,\n~\nM)\n.\nE=lAnx+nKANXDYANIXHEDVIANEHH\nUlAn##=\n=u\nabthtevhef\nsigned\na\nX+\n.\ns.nu\nas\nE\n.\nAn\nbuase\nNow\n(X\nan\nparts\n.\n,\njst\n.\nthe\nkt it\n,\n.\n,\nLitwin\nmane\nF=X\nEu\n.\n=p\ndentil\nsingular,\nngnlmprk\n.\nE)\n&micro; 1\nFTO\nK\npositklnya\nX + &amp; X.\nbetween\n.\n-\nboth\n'X+ )\nNIE\nso\nsigned\na\nm\nEn\n.\ninto position\nmon\nif\nmanly\nare\nst\ninto\nmeans\nEEM\n( XM )\nFEM\nE,\nu\nHdn deemposithf X\nSinikf\nm\nsigned\non\nnull sets bek &amp; forth\nfeely piss\nan\n.\n&micro;\nappre\n,\nwe\nHhndbaposithf X\na\n&amp;u\nMt\nv\nm=n+\n.\nTh deaf\n&amp;\nF\nTf\n.\nhe\nht X+uX\nand\n.\n&amp;\n-\nsupported\nspud\nf\nJoHmDumthhm\nit\nB\n⇐&gt;\ndeupositm\na\n)\n&micro;\ntv\nu\n,\nsince\nmqedlapositmf\na\nan\nwin\n-\nfnile\npositive\nmuse\n.\nto Hvankn\n)\n.\nPq : Let\n1\n2\n3\n.\nbe\n&micro;\nn\n}md\nfinite\nB\nul E)\nn+\nas\n&amp;\n&micro;\n.\nan\nKM )\n.\nTTAE\n:\n.\nfile\n-3\nmane\nare\nH\nboth\nEEM\nfinite\n.\npositive\nmass\n.\n```" ]
[ null, "https://s2.studylib.net/store/data/013205338_1-487e27039a7abca525f12f4432239f45-768x994.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6037792,"math_prob":0.6656806,"size":1812,"snap":"2021-43-2021-49","text_gpt3_token_len":722,"char_repetition_ratio":0.08130531,"word_repetition_ratio":0.0,"special_character_ratio":0.3923841,"punctuation_ratio":0.18736383,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9794969,"pos_list":[0,1,2],"im_url_duplicate_count":[null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-27T12:31:44Z\",\"WARC-Record-ID\":\"<urn:uuid:aa1a0444-8a0a-421b-8be8-f906358c6929>\",\"Content-Length\":\"48568\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7364ba34-766c-408a-b81e-536730f69870>\",\"WARC-Concurrent-To\":\"<urn:uuid:4474ec4e-7588-4709-893b-69c5d3b214dc>\",\"WARC-IP-Address\":\"172.67.175.240\",\"WARC-Target-URI\":\"https://studylib.net/doc/13205338/\",\"WARC-Payload-Digest\":\"sha1:KFYHCV3WWAU3CCQDLMN3YPAW72VD5FQ4\",\"WARC-Block-Digest\":\"sha1:IJO7UHMDRSHZ4LWZU27IAQVWU46MFZFO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323588153.7_warc_CC-MAIN-20211027115745-20211027145745-00401.warc.gz\"}"}
https://colour.readthedocs.io/en/stable/generated/colour.RGB_Colourspace.html
[ "# colour.RGB_Colourspace¶\n\nclass colour.RGB_Colourspace(name, primaries, whitepoint, whitepoint_name=None, RGB_to_XYZ_matrix=None, XYZ_to_RGB_matrix=None, cctf_encoding=None, cctf_decoding=None, use_derived_RGB_to_XYZ_matrix=False, use_derived_XYZ_to_RGB_matrix=False)[source]\n\nBases: object\n\nImplements support for the RGB colourspaces datasets from colour.models.datasets.aces_rgb, etc….\n\nColour science literature related to RGB colourspaces and encodings defines their dataset using different degree of precision or rounding. While instances where a whitepoint is being defined with a value different than its canonical agreed one are rare, it is however very common to have normalised primary matrices rounded at different decimals. This can yield large discrepancies in computations.\n\nSuch an occurrence is the V-Gamut colourspace white paper, that defines the V-Gamut to ITU-R BT.709 conversion matrix as follows:\n\n[[ 1.806576 -0.695697 -0.110879]\n[-0.170090 1.305955 -0.135865]\n[-0.025206 -0.154468 1.179674]]\n\n\nComputing this matrix using ITU-R BT.709 colourspace derived normalised primary matrix yields:\n\n[[ 1.8065736 -0.6956981 -0.1108786]\n[-0.1700890 1.3059548 -0.1358648]\n[-0.0252057 -0.1544678 1.1796737]]\n\n\nThe latter matrix is almost equals with the former, however performing the same computation using IEC 61966-2-1:1999 sRGB colourspace normalised primary matrix introduces severe disparities:\n\n[[ 1.8063853 -0.6956147 -0.1109453]\n[-0.1699311 1.3058387 -0.1358616]\n[-0.0251630 -0.1544899 1.1797117]]\n\n\nIn order to provide support for both literature defined dataset and accurate computations enabling transformations without loss of precision, the colour.RGB_Colourspace class provides two sets of transformation matrices:\n\n• Instantiation transformation matrices\n\n• Derived transformation matrices\n\nUpon instantiation, the colour.RGB_Colourspace class stores the given RGB_to_XYZ_matrix and XYZ_to_RGB_matrix arguments and also computes their derived counterpart using the primaries and whitepoint arguments.\n\nWhether the initialisation or derived matrices are used in subsequent computations is dependent on the colour.RGB_Colourspace.use_derived_RGB_to_XYZ_matrix and colour.RGB_Colourspace.use_derived_XYZ_to_RGB_matrix attributes values.\n\nParameters\n• name (unicode) – RGB colourspace name.\n\n• primaries (array_like) – RGB colourspace primaries.\n\n• whitepoint (array_like) – RGB colourspace whitepoint.\n\n• whitepoint_name (unicode, optional) – RGB colourspace whitepoint name.\n\n• RGB_to_XYZ_matrix (array_like, optional) – Transformation matrix from colourspace to CIE XYZ tristimulus values.\n\n• XYZ_to_RGB_matrix (array_like, optional) – Transformation matrix from CIE XYZ tristimulus values to colourspace.\n\n• cctf_encoding (object, optional) – Encoding colour component transfer function (Encoding CCTF) / opto-electronic transfer function (OETF / OECF) that maps estimated tristimulus values in a scene to $$R'G'B'$$ video component signal value.\n\n• cctf_decoding (object, optional) – Decoding colour component transfer function (Decoding CCTF) / electro-optical transfer function (EOTF / EOCF) that maps an $$R'G'B'$$ video component signal value to tristimulus values at the display.\n\n• use_derived_RGB_to_XYZ_matrix (bool, optional) – Whether to use the instantiation time normalised primary matrix or to use a computed derived normalised primary matrix.\n\n• use_derived_XYZ_to_RGB_matrix (bool, optional) – Whether to use the instantiation time inverse normalised primary matrix or to use a computed derived inverse normalised primary matrix.\n\nname\nprimaries\nwhitepoint\nwhitepoint_name\nRGB_to_XYZ_matrix\nXYZ_to_RGB_matrix\ncctf_encoding\ncctf_decoding\nuse_derived_RGB_to_XYZ_matrix\nuse_derived_XYZ_to_RGB_matrix\n__str__()[source]\n__repr__()[source]\nuse_derived_transformation_matrices()[source]\nchromatically_adapt()[source]\ncopy()[source]\n\nNotes\n\n• The normalised primary matrix defined by colour.RGB_Colourspace.RGB_to_XYZ_matrix attribute is treated as the prime matrix from which the inverse will be calculated as required by the internal derivation mechanism. This behaviour has been chosen in accordance with literature where commonly a RGB colourspace is defined by its normalised primary matrix as it is directly computed from the chosen primaries and whitepoint.\n\nReferences\n\nExamples\n\n>>> p = np.array([0.73470, 0.26530, 0.00000, 1.00000, 0.00010, -0.07700])\n>>> whitepoint = np.array([0.32168, 0.33767])\n>>> RGB_to_XYZ_matrix = np.identity(3)\n>>> XYZ_to_RGB_matrix = np.identity(3)\n>>> colourspace = RGB_Colourspace('RGB Colourspace', p, whitepoint, 'ACES',\n... RGB_to_XYZ_matrix, XYZ_to_RGB_matrix)\n>>> colourspace.RGB_to_XYZ_matrix\narray([[ 1., 0., 0.],\n[ 0., 1., 0.],\n[ 0., 0., 1.]])\n>>> colourspace.XYZ_to_RGB_matrix\narray([[ 1., 0., 0.],\n[ 0., 1., 0.],\n[ 0., 0., 1.]])\n>>> colourspace.use_derived_transformation_matrices(True)\nTrue\n>>> colourspace.RGB_to_XYZ_matrix\narray([[ 9.5255239...e-01, 0.0000000...e+00, 9.3678631...e-05],\n[ 3.4396645...e-01, 7.2816609...e-01, -7.2132546...e-02],\n[ 0.0000000...e+00, 0.0000000...e+00, 1.0088251...e+00]])\n>>> colourspace.XYZ_to_RGB_matrix\narray([[ 1.0498110...e+00, 0.0000000...e+00, -9.7484540...e-05],\n[ -4.9590302...e-01, 1.3733130...e+00, 9.8240036...e-02],\n[ 0.0000000...e+00, 0.0000000...e+00, 9.9125201...e-01]])\n>>> colourspace.use_derived_RGB_to_XYZ_matrix = False\n>>> colourspace.RGB_to_XYZ_matrix\narray([[ 1., 0., 0.],\n[ 0., 1., 0.],\n[ 0., 0., 1.]])\n>>> colourspace.use_derived_XYZ_to_RGB_matrix = False\n>>> colourspace.XYZ_to_RGB_matrix\narray([[ 1., 0., 0.],\n[ 0., 1., 0.],\n[ 0., 0., 1.]])\n\nproperty RGB_to_XYZ_matrix\n\nGetter and setter property for the transformation matrix from colourspace to CIE XYZ tristimulus values.\n\nParameters\n\nvalue (array_like) – Transformation matrix from colourspace to CIE XYZ tristimulus values.\n\nReturns\n\nTransformation matrix from colourspace to CIE XYZ tristimulus values.\n\nReturn type\n\narray_like\n\nproperty XYZ_to_RGB_matrix\n\nGetter and setter property for the transformation matrix from CIE XYZ tristimulus values to colourspace.\n\nParameters\n\nvalue (array_like) – Transformation matrix from CIE XYZ tristimulus values to colourspace.\n\nReturns\n\nTransformation matrix from CIE XYZ tristimulus values to colourspace.\n\nReturn type\n\narray_like\n\nproperty cctf_decoding\n\nGetter and setter property for the decoding colour component transfer function (Decoding CCTF) / electro-optical transfer function (EOTF / EOCF).\n\nParameters\n\nvalue (callable) – Decoding colour component transfer function (Decoding CCTF) / electro-optical transfer function (EOTF / EOCF).\n\nReturns\n\nDecoding colour component transfer function (Decoding CCTF) / electro-optical transfer function (EOTF / EOCF).\n\nReturn type\n\ncallable\n\nproperty cctf_encoding\n\nGetter and setter property for the encoding colour component transfer function (Encoding CCTF) / opto-electronic transfer function (OETF / OECF).\n\nParameters\n\nvalue (callable) – Encoding colour component transfer function (Encoding CCTF) / opto-electronic transfer function (OETF / OECF).\n\nReturns\n\nEncoding colour component transfer function (Encoding CCTF) / opto-electronic transfer function (OETF / OECF).\n\nReturn type\n\ncallable\n\nchromatically_adapt(whitepoint, whitepoint_name=None, chromatic_adaptation_transform='CAT02')[source]\n\nChromatically adapts the RGB colourspace primaries $$xy$$ chromaticity coordinates from RGB colourspace whitepoint to reference whitepoint.\n\nParameters\n• whitepoint (array_like) – Reference illuminant / whitepoint $$xy$$ chromaticity coordinates.\n\n• whitepoint_name (unicode, optional) – Reference illuminant / whitepoint name.\n\n• chromatic_adaptation_transform (unicode, optional) – {‘CAT02’, ‘XYZ Scaling’, ‘Von Kries’, ‘Bradford’, ‘Sharp’, ‘Fairchild’, ‘CMCCAT97’, ‘CMCCAT2000’, ‘CAT02_BRILL_CAT’, ‘Bianco’, ‘Bianco PC’}, Chromatic adaptation transform.\n\nReturns\n\nReturn type\n\nExamples\n\n>>> p = np.array(\n... [0.73470, 0.26530, 0.00000, 1.00000, 0.00010, -0.07700])\n>>> w_t = np.array([0.32168, 0.33767])\n>>> w_r = np.array([0.31270, 0.32900])\n>>> colourspace = RGB_Colourspace('RGB Colourspace', p, w_t, 'D65')\n...\nRGB Colourspace - Chromatically Adapted to [ 0.3127 0.329 ]\n------------------------------------------------------------\n\nPrimaries : [[ 0.73485524 0.26422533]\n[-0.00617091 1.01131496]\n[ 0.01596756 -0.0642355 ]]\nWhitepoint : [ 0.3127 0.329 ]\nWhitepoint Name : D50\nEncoding CCTF : None\nDecoding CCTF : None\nNPM : None\nNPM -1 : None\nDerived NPM : [[ 0.93827985 -0.00445145 0.01662752]\n[ 0.33736889 0.72952157 -0.06689046]\n[ 0.00117395 -0.00371071 1.09159451]]\nDerived NPM -1 : [[ 1.06349549 0.00640891 -0.01580679]\n[-0.49207413 1.36822341 0.09133709]\n[-0.00281646 0.00464417 0.91641857]]\nUse Derived NPM : True\nUse Derived NPM -1 : True\n\ncopy()[source]\n\nReturns a copy of the RGB colourspace.\n\nReturns\n\nRGB colourspace copy.\n\nReturn type\n\nRGB_Colourspace\n\nproperty name\n\nGetter and setter property for the name.\n\nParameters\n\nvalue (unicode) – Value to set the name with.\n\nReturns\n\nRGB colourspace name.\n\nReturn type\n\nunicode\n\nproperty primaries\n\nGetter and setter property for the primaries.\n\nParameters\n\nvalue (array_like) – Value to set the primaries with.\n\nReturns\n\nRGB colourspace primaries.\n\nReturn type\n\narray_like\n\nproperty use_derived_RGB_to_XYZ_matrix\n\nGetter and setter property for whether to use the instantiation time normalised primary matrix or to use a computed derived normalised primary matrix.\n\nParameters\n\nvalue (bool) – Whether to use the instantiation time normalised primary matrix or to use a computed derived normalised primary matrix.\n\nReturns\n\nWhether to use the instantiation time normalised primary matrix or to use a computed derived normalised primary matrix.\n\nReturn type\n\nbool\n\nproperty use_derived_XYZ_to_RGB_matrix\n\nGetter and setter property for Whether to use the instantiation time inverse normalised primary matrix or to use a computed derived inverse normalised primary matrix.\n\nParameters\n\nvalue (bool) – Whether to use the instantiation time inverse normalised primary matrix or to use a computed derived inverse normalised primary matrix.\n\nReturns\n\nWhether to use the instantiation time inverse normalised primary matrix or to use a computed derived inverse normalised primary matrix.\n\nReturn type\n\nbool\n\nuse_derived_transformation_matrices(usage=True)[source]\n\nEnables or disables usage of both derived transformations matrices, the normalised primary matrix and its inverse in subsequent computations.\n\nParameters\n\nusage (bool, optional) – Whether to use the derived transformations matrices.\n\nReturns\n\nDefinition success.\n\nReturn type\n\nbool\n\nproperty whitepoint\n\nGetter and setter property for the whitepoint.\n\nParameters\n\nvalue (array_like) – Value to set the whitepoint with.\n\nReturns\n\nRGB colourspace whitepoint.\n\nReturn type\n\narray_like\n\nproperty whitepoint_name\n\nGetter and setter property for the whitepoint_name.\n\nParameters\n\nvalue (unicode) – Value to set the whitepoint_name with.\n\nReturns\n\nRGB colourspace whitepoint name.\n\nReturn type\n\nunicode" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.575542,"math_prob":0.9202981,"size":10543,"snap":"2021-43-2021-49","text_gpt3_token_len":2910,"char_repetition_ratio":0.17468451,"word_repetition_ratio":0.27091327,"special_character_ratio":0.31328845,"punctuation_ratio":0.2328134,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9698869,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-24T02:13:25Z\",\"WARC-Record-ID\":\"<urn:uuid:f4599966-20b9-40b4-8dae-fdb920a6c5b5>\",\"Content-Length\":\"47817\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:9c9a951d-e760-4e64-8c47-b2b065fab477>\",\"WARC-Concurrent-To\":\"<urn:uuid:64ad5b90-7d0a-4fba-bb94-4ba4b79718c0>\",\"WARC-IP-Address\":\"104.17.33.82\",\"WARC-Target-URI\":\"https://colour.readthedocs.io/en/stable/generated/colour.RGB_Colourspace.html\",\"WARC-Payload-Digest\":\"sha1:BRHYY6UJADYZYSJH5YX5A275G4NBMWME\",\"WARC-Block-Digest\":\"sha1:AA4CHEECFF7KFHULMNTDGCHL67PBZVCX\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323585837.82_warc_CC-MAIN-20211024015104-20211024045104-00710.warc.gz\"}"}
https://dsp.stackexchange.com/questions/54184/how-to-graph-magnitude-plots-for-basic-4-pole-filters/54195
[ "# How to graph magnitude plots for basic 4-pole filters?\n\nI have developed magnitude plots for basic one-pole and two-pole filters derived from various Physics PDF's and tutorials I have found online and calculated from:\n\nhttps://www.desmos.com/calculator/mjudrnexbo\n\nBut I cannot figure out what the correct plots for any simple four-pole resonant LPF, HPF, BP, & BR filters would be in the same terms.\n\nAny help on what equivalent simple four equations would be? Thanks.\n\n• there are a lot more degrees of freedom for 4-pole filters than for 2-pole filters. – robert bristow-johnson Dec 17 '18 at 6:38\n• I'm looking for the most computationally simple 4-pole equations that will permit resonance for LPF/HPF and bandwidth for BP/BR to be controlled by a simple \"Q\" function. – user39558 Dec 18 '18 at 4:45\n• Mike, each of the 2-pole filters that make up your 4-pole filter has their own independent Q. – robert bristow-johnson Dec 18 '18 at 5:31\n• do you wanna do the Moog 4-pole filter? – robert bristow-johnson Dec 18 '18 at 5:31\n• or do you want a 4-pole Butterworth or 4-pole Tchebyshev? – robert bristow-johnson Dec 18 '18 at 5:34\n\nFor Butterworth LP and HP\n\nhttps://www.desmos.com/calculator/dxcnvc63av\n\nPlay the variable n.\n\nThere are several optimality criteria to choose from: Butterworth, Chebyshev (type $$1$$ and $$2$$), Cauer, etc., and each of them will give you a different magnitude response.\n\nButterworth filters have an especially simple magnitude (gain) function. For a low pass filter of order $$n$$ (i.e., with $$n$$ poles) you get\n\n$$G_{LP}(f)=\\frac{1}{\\sqrt{1+\\left(\\frac{f}{f_c}\\right)^{2n}}}\\tag{1}$$\n\nwhere $$f_c$$ is the $$3$$-dB cut-off frequency. The gain of an $$n^{th}$$ order Butterworth high pass filter is\n\n$$G_{HP}(f)=\\frac{\\left|\\frac{f}{f_c}\\right|^{n}}{\\sqrt{1+\\left(\\frac{f}{f_c}\\right)^{2n}}}\\tag{2}$$\n\nThe general formulas for band pass and band stop filters are more complicated. For a fourth order band pass filter you get\n\n$$G_{BP}(f)=\\frac{f_c^2f^2}{\\sqrt{f^8-4f_0^2f^6+(f_c^4+6f_0^4)f^4-4f_0^6f^2+f_0^8}}\\tag{3}$$\n\nwhere $$f_0$$ is the center frequency:\n\n$$f_0=\\sqrt{f_{l}f_{u}}\\tag{4}$$\n\nwith $$f_l$$ and $$f_u$$ the lower and upper cut-off frequencies, respectively. The frequency $$f_c$$ is given by\n\n$$f_c=\\frac{f_u^2-f_0^2}{f_u}\\tag{5}$$\n\nFinally, the magnitude of a fourth order Butterworth band stop filter is given by\n\n$$G_{BS}(f)=\\frac{(f_0^2-f^2)^2}{\\sqrt{f^8-4f_0^2f^6+(f_c^4+6f_0^4)f^4-4f_0^6f^2+f_0^8}}\\tag{6}$$\n\nwhere the center frequency $$f_0$$ and $$f_c$$ are given by $$(4)$$ and $$(5)$$, respectively.\n\nThe figure below shows the magnitudes computed according to Eqs $$(1)$$, $$(2)$$, $$(3)$$, and $$(6)$$. The cut-off frequency for the low and high pass filters was chosen as $$f_c=4$$, and the lower and upper cut-off frequencies for the band pass and the band stop filters were chosen as $$f_l=2$$ and $$f_u=4$$, respectively, resulting in a center frequency $$f_0=2\\sqrt{2}$$.", null, "• Thank you very very much Matt. I need these equations to be resonant though with a Q value. Is there any chance you could provide the simplest equations that would allow a Q value? For bandpass/bandreject I'd ideally like the width of the band controlled by a simple Q value as well. Thanks so much if so. I do appreciate it. – user39558 Dec 18 '18 at 4:42\n• Personally, I find it a bit simpler, in this case, to keep the lowpass prototype, and simply apply frequency transformations: $H(\\frac x{f_p})$ for lowpass, $H(\\frac{f_p}x)$ for HP, $H(\\frac{x^2-f_c^2}{BW x})$ for BP, $H(\\frac{BW x}{x^2-f_c^2})$ for BS. The only minor downgrade would be the need to precalculate $f_1$ and $f_2$ from solving the quadratics of BP and BS. – a concerned citizen Dec 18 '18 at 7:52\n• @Mike: Fourth order systems generally don't have a simple $Q$ factor (like second order systems). What you can do is simply concatenate (multiply) two second-order systems with the same $Q$ factor to obtain a (very specific) fourth-order system. – Matt L. Dec 18 '18 at 11:30\n• With LPF and HPF one could use this method ... dsprelated.com/showthread/comp.dsp/… – Juha P Dec 18 '18 at 15:21" ]
[ null, "https://i.stack.imgur.com/hmr2l.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.816753,"math_prob":0.9990864,"size":1653,"snap":"2021-04-2021-17","text_gpt3_token_len":608,"char_repetition_ratio":0.123104915,"word_repetition_ratio":0.0099502485,"special_character_ratio":0.36660618,"punctuation_ratio":0.07826087,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99985445,"pos_list":[0,1,2],"im_url_duplicate_count":[null,5,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-01-16T15:12:55Z\",\"WARC-Record-ID\":\"<urn:uuid:c8cec628-f01a-480f-b40e-7e64fd2c223b>\",\"Content-Length\":\"168799\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5602840c-880b-4883-8e01-b7bd9e41468d>\",\"WARC-Concurrent-To\":\"<urn:uuid:0affcfab-6f59-414f-9368-60ab2bb9a38b>\",\"WARC-IP-Address\":\"151.101.129.69\",\"WARC-Target-URI\":\"https://dsp.stackexchange.com/questions/54184/how-to-graph-magnitude-plots-for-basic-4-pole-filters/54195\",\"WARC-Payload-Digest\":\"sha1:67APYZKOBNJ6NAZ6ITE46VZNQQWCSS4P\",\"WARC-Block-Digest\":\"sha1:YCA7DSG3PPUB5PV2ZAYACSTBDXGKB5YH\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-04/CC-MAIN-2021-04_segments_1610703506697.14_warc_CC-MAIN-20210116135004-20210116165004-00444.warc.gz\"}"}
http://grinebiter.com/Numbers/Cardinal/316-three-hundred-sixteen.html
[ "Three hundred sixteen\n\n Here is information about \"three hundred sixteen\" that you may find useful and interesting. Number Systems Three hundred sixteen is a decimal number and can be written with numbers: 316 Binary is a number system with only 0s and 1s. Three hundred sixteen in binary form is displayed below: 100111100 A Hexadecimal number has a base of 16 which means it includes the numbers 0 to 9 and A through F. Three hundred sixteen converted to hexadecimal is: 13C Roman Numerals is another number system. Below is three hundred sixteen in roman numerals: CCCXVI Scientific Notation Sometimes calculators and scientists shorten numbers using scientific notation. Here is three hundred sixteen as a scientific notation: 3.16E+02 Math Here are some math facts about Three hundred sixteen: Three hundred sixteen is a rational number and an integer. Three hundred sixteen is an even number because it is divisible by two. Three hundred sixteen is divisible by the following numbers: 1, 2, 4, 79, 158, 316 Three hundred sixteen is not a square number because no number multiplied by itself will equal three hundred sixteen. Number Lookup Three hundred sixteen is not the only number we have information about. Go here to look up other numbers.\n\n Translated Here we have translated three hundred sixteen into some of the most commonly used languages: Chinese: 三百十六 French: trois cent seize German: dreihundert sechzehn Italian: trecento sedici Spanish: trescientos dieciséis\n\n Currency Here is three hundred sixteen written in different currencies: US Dollars: \\$316 Canadian Dollars: CA\\$316 Australian Dollars: A\\$316 British Pounds: £316 Indian Rupee: ₹316 Euros: €316\n\n Ordinal The cardinal number three hundred sixteen can also be written as an ordinal number: 316th Or if you want to write it with letters only: three hundred sixteenth.\n\n Three hundred seventeen Go here for the next number on our list that we have information about." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8915339,"math_prob":0.95426345,"size":1230,"snap":"2019-13-2019-22","text_gpt3_token_len":269,"char_repetition_ratio":0.25611746,"word_repetition_ratio":0.019900497,"special_character_ratio":0.21788618,"punctuation_ratio":0.100877196,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9531176,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-03-21T12:27:50Z\",\"WARC-Record-ID\":\"<urn:uuid:4e7b3ec4-97be-4486-b1a3-f4feeeaa0441>\",\"Content-Length\":\"10198\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7eac7725-0c2e-480a-9ca0-5ac6023afb12>\",\"WARC-Concurrent-To\":\"<urn:uuid:307e0b6b-7b1f-4613-b6ca-03374f2365ee>\",\"WARC-IP-Address\":\"52.218.128.139\",\"WARC-Target-URI\":\"http://grinebiter.com/Numbers/Cardinal/316-three-hundred-sixteen.html\",\"WARC-Payload-Digest\":\"sha1:RF53LCGHJALTJVNCMXQRI5RNVSBTBNFK\",\"WARC-Block-Digest\":\"sha1:PJY3S5WFEBDFK6WD4C6NWQSJRHB3PLZA\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-13/CC-MAIN-2019-13_segments_1552912202523.0_warc_CC-MAIN-20190321112407-20190321134407-00148.warc.gz\"}"}
https://electronics.stackexchange.com/questions/273355/common-source-jfet-amplifier
[ "Common Source JFET Amplifier\n\nI am trying to build a simple JFET common source amplifier to get about 5-10 times gain for a signal I have coming from a microphone with an amplifier already in it, from ADA Fruit, here\n\nI am working with a circuit just like below, but with the capacitor on the output removed.", null, "I have tried various values, but currently I have RD at 10 KΩ, RS at 1 KΩ, Cs and Cin are are .1 μF, and RG is 1 MΩ. VDD is 5 volts. I tried two different transistors FQP30N06L here and J310 here. From what I understand, this should give a gain of 10x.\n\nI can generate a signal by whistling, and the preamp on my circuit gives about 100-500 mV sine wave output. However, my output signal from the drain is always smaller than my input signal.\n\nI am not sure what is wrong here, any advice would be appreciated :)\n\n• What is the part number of the JFET? – Tom Anderson Dec 6 '16 at 3:31\n• I just updated my post with the part numbers – Alex K Dec 6 '16 at 3:33\n• What DC voltage do you measure on the drain? 5V may not be enough to supply a JFET amplifier - their characteristics vary greatly between units and it is quite possible that the device is saturated. The FQP30N06L is completely unsuitable as it is an enhancement device. – Kevin White Dec 6 '16 at 4:06\n• That's Kevin. I'm still learning the difference between all the types of FETs. I had the enhancement mode device available, but didn't realize it wasn't suitable. Thanks for the tip. – Alex K Dec 6 '16 at 17:15\n\nIf you leave Cs out then you are correctly expecting a gain of 10 in the Common Source configuration you show. But the resistor values and devices you have selected will prevent a successful result. The FQP30N06L is an enhancement mode device and won't work at all in this bias configuration.\nThe J310 is enhancement mode (the right type of device), but the VGs(off) and 0-VGS(IDSS) is too high to work in this configuration with this supply voltage and resistor values. You should read this to help your understanding: http://www.vishay.com/docs/70595/70595.pdf\n\nYour biasing is this type:", null, "In this configuration Rs is part of both the bias and gain setting which creates some compromises in setting the operating current. In your case the device (J310) has: VGS(off) of -2 to -6.5 V.\nZero volt VGS(ID) of 24 to 60 mA. (this is usually called IDSS, the zero VGS saturation current)\nNote: This device is really designed as an RF amplifier where Rs would be zero.\n\nLet's work through the design and see where the problems are when using a J310.\nIgnoring Rd for the moment (assume it is shorted out while we bias the device operating current) if you look at Figure 1 in the datasheet, you can see the VGS curve (RHS of graph) for the device.\n\nIf VGS(off) is -2.0 V (the best of the J310 devices) the voltage across Rs can set the operating point (ID) somewhere under 2.0 V measured on the Source pin. Here is the Figure 1 with our extra information added:", null, "Notice that with a 1K Ohm Rs the Source voltage will be about 1.8 V and the operating current about 2 mA. If we now tried to add back the RD value of 10K Ohm we have a real problem....to draw 2mA through 10k you need 20 V across it!!! The end result is that the JFET simply saturates, so you get no signal out. You should be able to confirm this by measuring VD and VS.\n\nWe'd typically expect that the quiescent point of VD (the Drain) should be about 2/3 of the supply voltage....or about3.3 V in this case. That means the value of RD would be about 750 Ohms. That would limit the gain to less than 1.\nWe just made an active attenuator...not very useful.\n\nLet's select a device that might be more appropriate. We can try a J113: https://www.fairchildsemi.com/datasheets/J1/J111.pdf\nThis is a relatively common small signal JFET. There is still a range of VGS(off) and IDSS and the graphs are a little less helpful this time, but we can use Figure 6 and get an idea of where the operating point might be. If we use the VGS(off) value as -1.1 V there is a graph for it (but all the devices will vary of course).", null, "We now have an ID of about 520 uA and a VS of about 520 mV. At this current the voltage drop across a 10k load resistor would be about 5.2 V ....closer to working, but it still won't work.\n\nWe have some choices to make if we want to keep the 1K in the Source side. We could drop the value of RD to set the voltage on the Drain to about 3.3 V, that would require RD=(5-3.3)/0.00052 --> approximately 3.3K Ohms. However this would limit our gain to 3.3.\n\nOr we could get creative and make RS up of two resistors that total 1K Ohm and bypass one to ac signals.\nTo get a gain of 10 we need a 3.3K and 330 OHM RD and RS, leaving us 680 Ohms to be bypassed. The circuit would then look this way:", null, "simulate this circuit – Schematic created using CircuitLab\n\n• Thanks for the detailed explanation. This is very helpful 😀 – Alex K Dec 6 '16 at 17:13\n• I got a gain of 6.3 for this circuit in LTspice. The gain is closer to R1/(R2+1/gm), and 1/gm is about 180 Ohms for J113. There is also a term in the gain equation to account for the output conductance. This reduces gain a little more. To get the gain of 10, R2=147 Ohms and R3=825 Ohms looks close, at least in LTspice. I used the J113 FET model at ltwiki.org/?title=Standard.jft . – Tom Anderson Dec 6 '16 at 18:46\n• The formula for gain is of course a simplification, but in general gm can be ignored. I'd bet your LTspice ignores the effect of Rd//Rl for example. This a fair treatise of the simplifications: whites.sdsmt.edu/classes/ee320/notes/320Lecture32.pdf ... you are correct the gain will only be approximately R1/R2 but I don't think the OP was looking for the full theoretical derivation of gain. He was simply trying to get some gain instead of none. – Jack Creasey Dec 6 '16 at 19:15\n• Excellent link, thanks! You are correct that the load impedance is another term to consider. Assuming the device being powered is a high impedance audio amp, input impedance is typically 150k to 1M music.stackexchange.com/questions/3473/… . The error in low-frequency gain due to the load is then 0.03db to 0.18dB. An even larger error is the unit-to-unit variation in the gm of the JFET, and possibly resistor tolerances. – Tom Anderson Dec 8 '16 at 18:33\n\nThe gain of this circuit isn't set by the ratio of R2 to R1. The capacitor CS is shorting out R1, and helps with the gain. However, to do this at audio frequencies, the capacitor value needs to be much larger.\n\nThis circuit is an excellent example for learning LTspice. I suggest trying it, and you can get help from the LTspice mailing list if you need it. To get help from them, you will need to correctly upload an LTspice schematic showing what you tried.\n\nThe job of R1 is to set the drain-to-source current. The gate voltage will be about 0V. When the supply is turned on, the JFET will start to conduct, and the source voltage will rise because of the current in R1. It will rise until the JFET begins to turn off. This provides a little bit of negative feedback, and it will find an equilbrium point. This equilibrium point is set by the value of R1, and it should be adjusted until you have about 10mA, which is 0.75V across the 75 Ohm R1.\n\nThe resistor R2 can't be so large that the voltage on the source of J1 is too close to the voltage on the drain of J1. This is your analog output, and there needs to be a range of output where the drain voltage can vary without becoming equal to or less than the source voltage. That is the problem with the existing design.\n\nThis topic is called 'how to bias a transistor' and it is lots of fun. Search for \"how to bias a JFET\"\n\nI tried the same circuit in LTspice, except I used a U309 JFET and a 9V supply instead of a J310 and a 5V supply. For my transistor, the values R2=750, R1=75, and C1=100uF gave reasonable results. The values that work will depend on the parameters of the transistor, and I don't expect them to work with the J310. Usually, IDSS and VGS(off) are enough to do the bias calculations, and these values are in the datasheet.\n\n• It's all starting to make sense now. When you say the job of R1 is to set Ids, it is doing that by setting Vds? I will try all this tomorrow, thanks for the great advice. – Alex K Dec 6 '16 at 5:56\n• The gain is set by RD/RS...it's just the values don't allow the device to be biased to work. – Jack Creasey Dec 6 '16 at 7:49\n• There is another term to add to RS, which is 1/gm of the FET, which is about 180 Ohms for the J113. – Tom Anderson Dec 6 '16 at 18:34" ]
[ null, "https://i.stack.imgur.com/FoXzp.gif", null, "https://i.stack.imgur.com/h6Mi5.png", null, "https://i.stack.imgur.com/oMvFI.png", null, "https://i.stack.imgur.com/hUHT7.png", null, "https://i.stack.imgur.com/dZEuL.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.93372464,"math_prob":0.87976295,"size":3305,"snap":"2019-43-2019-47","text_gpt3_token_len":867,"char_repetition_ratio":0.1093608,"word_repetition_ratio":0.0,"special_character_ratio":0.2632375,"punctuation_ratio":0.1120108,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96980214,"pos_list":[0,1,2,3,4,5,6,7,8,9,10],"im_url_duplicate_count":[null,2,null,2,null,2,null,2,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-10-22T12:02:03Z\",\"WARC-Record-ID\":\"<urn:uuid:101c5fb6-e029-4376-ac11-43bcf50a6b77>\",\"Content-Length\":\"161981\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:3a4ee67d-b882-4506-a1c9-2d9ab1c95ff3>\",\"WARC-Concurrent-To\":\"<urn:uuid:3be3942b-7a9a-4413-9809-1bf4a35134d8>\",\"WARC-IP-Address\":\"151.101.65.69\",\"WARC-Target-URI\":\"https://electronics.stackexchange.com/questions/273355/common-source-jfet-amplifier\",\"WARC-Payload-Digest\":\"sha1:6LMGAENG5RBHVT573RE5VQ5GEHVXQEQL\",\"WARC-Block-Digest\":\"sha1:IRNJHYQNPSHFCP2YBBVDMT4WDPMTCXN3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-43/CC-MAIN-2019-43_segments_1570987817685.87_warc_CC-MAIN-20191022104415-20191022131915-00031.warc.gz\"}"}
https://math.stackexchange.com/questions/393161/test-of-convergence-of-int-infty-infty-dfracx66x88dx
[ "# Test of convergence of $\\int_{-\\infty}^{\\infty} \\dfrac{x^6+6}{x^8+8}dx$\n\nI am having some trouble with this problem and don't know if I am doing it right:\n\n$$\\int_{-\\infty}^{\\infty} \\dfrac{x^6+6}{x^8+8}dx$$\n\nso the steps I have taken so far are, I split it into\n\n$$\\int_0^\\infty \\dfrac{x^6+6}{x^8+8} + \\int_{-\\infty}^0 \\dfrac{x^6+6}{x^8+8}$$\n\nfor the second integral I made a change of variable $x = -u$\n\nso it would look the same as the first integral and then use $$\\lim_{x\\to \\infty} \\dfrac{f(x)}{g(x)}$$ where $g(x) = \\dfrac1{x^2}$.\n\nJust wondering if my approach is correct.\n\n• It is basically fine. Note that $\\frac{1}{x^2}$ misbehaves at $0$, so if you are going to use a limit comparison, you need to split the integral into $0$ to $1$ (fine) and $1$ to $\\infty$ (limit comparison). Or else you can do a limit comparison with $\\frac{1}{1+x^2}$, exploiting fact $\\int_0^\\infty \\frac{dx}{1+x^2}=\\frac{\\pi}{2}$. May 16 '13 at 5:16\n• thank you to the people who help me edit my post. This is my first time using mathexchange May 16 '13 at 5:16\n• @Siddhant Trivedi : Why change from $g(x) = \\frac{1}{x^2}$ to $g(x) = 1/x^2$ ? May 16 '13 at 5:25\n• oh...i forgot it...sorry... May 17 '13 at 4:34\n\nYour approach is fine, as long as you compare with $1/x^2$ when $|x|\\gt1$ and then use the continuity of $\\frac{x^6+6}{x^8+8}$ for $|x|\\le1$. We can illustrate this with a slightly different comparison function.\nFirst, note that $$\\lim_{|x|\\to\\infty}\\frac{(x^6+6)(x^2+1)}{x^8+8}=1\\tag{1}$$ Thus, $(1)$ says that there is an $m$ so that if $|x|\\ge m$, then $\\frac{(x^6+6)(x^2+1)}{x^8+8}\\le2$. Since $\\frac{(x^6+6)(x^2+1)}{x^8+8}$ is continuous on the compact set $[-m,m]$, it is bounded there. Therefore, there is an $M$ so that $$\\frac{(x^6+6)(x^2+1)}{x^8+8}\\le M\\tag{2}$$ Therefore, $$\\frac{x^6+6}{x^8+8}\\le\\frac{M}{1+x^2}\\tag{3}$$ Now, simply use $$\\int_{-\\infty}^\\infty\\frac{\\mathrm{d}x}{1+x^2}=\\pi\\tag{4}$$ to show that $$\\int_{-\\infty}^\\infty\\frac{x^6+6}{x^8+8}\\,\\mathrm{d}x\\tag{5}$$ converges by comparison.\nAlthough this answer uses contour integration, it does give the value for $$\\int_{-\\infty}^\\infty\\frac{x^6+6}{x^8+8}\\,\\mathrm{d}x=\\frac{\\pi}{8}\\csc\\left(\\frac{\\pi}{8}\\right)\\left(2^{5/8}+3\\cdot2^{-5/8}\\right)\\tag{6}$$" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.69644,"math_prob":1.0000007,"size":1043,"snap":"2021-43-2021-49","text_gpt3_token_len":459,"char_repetition_ratio":0.14725699,"word_repetition_ratio":0.0,"special_character_ratio":0.44582933,"punctuation_ratio":0.06882591,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000064,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-24T16:55:57Z\",\"WARC-Record-ID\":\"<urn:uuid:3707d0b6-956f-4ad1-bb0c-efb6c9e8ec55>\",\"Content-Length\":\"171314\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c91e90f6-36cf-44ac-a3f3-8b8417c3f8c4>\",\"WARC-Concurrent-To\":\"<urn:uuid:af3eaf37-b445-44a1-ba43-2eacdf99f67c>\",\"WARC-IP-Address\":\"151.101.193.69\",\"WARC-Target-URI\":\"https://math.stackexchange.com/questions/393161/test-of-convergence-of-int-infty-infty-dfracx66x88dx\",\"WARC-Payload-Digest\":\"sha1:CIANMG3BHGSJJJ5NU7Y2VTUMICR6BK6F\",\"WARC-Block-Digest\":\"sha1:KGZYSPE6WFXZPKXEP4XOZWDUGVMR4COF\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323586043.75_warc_CC-MAIN-20211024142824-20211024172824-00386.warc.gz\"}"}
https://www.newscientist.com/article/dn18649-pi-day-five-tasty-facts-about-the-famous-ratio/?ignored=irrelevant
[ "# Pi day: Five tasty facts about the famous ratio\n\n12 March 2010\n\nOn March 14, mathematics enthusiasts celebrate Pi day, in honour of the famous ratio’s first few digits, 3.14. You probably know that pi is the circumference of a circle divided by its diameter, but here are some less familiar facts about the mathematical constant. We did consider giving you 3.14 facts but alas we had five…\n\nPi really is in the sky…\n\nThe stars overhead inspired the ancient Greeks, but they probably never used them to calculate pi. Robert Matthews of the University of Aston in Birmingham, UK, combined astronomical data with number theory to do just that.\n\nMatthews used the fact that for any large collection of random numbers, the probability that any two have no common factor is 6/pi2. Numbers have a common factor if they are divisible by the same number, not including 1. For example, 4 and 15 have no common factors, but 12 and 15 have the common factor 3.\n\nMatthews calculated the angular distance between the 100 brightest stars in the sky and turned them into 1 million pairs of random numbers, around 61 per cent of which had no common factors. He got a value for pi of 3.12772, which is about 99.6 per cent correct.\n\n… as well as the rivers back on Earth\n\nBack on Earth, pi controls the path of winding rivers from the Amazon to the Thames. A river’s meandering is described by its sinuosity – the length along its winding path divided by the distance from source to ocean as the crow flies. It turns out the average river has a sinuosity of about 3.14.\n\nPi is the only number to have inspired a literary genre\n\nIn his book Alex’s Adventures in Numberland, journalist Alex Bellos describes how pi has inspired a particularly tricky form of creative “constrained” writing called Pilish. These are poems – or “piems” – where the number of letters of successive words is determined by pi.\n\nOne of the most ambitious piems is the Cadaeic Cadenza by Mike Keith. It begins with the lines: One/A poem/A raven, corresponding to 3.1415, and continues for 3835 word-digits. Keith has also written a 10,000-word book using the technique.\n\nYou can find pi in your front room\n\nThe current record for finding the value of pi stands at just under 2700 billion digits, set by Fabrice Bellard late last year. He used a computer, but you can also calculate pi at home with some needles and a sheet of lined paper.\n\nDrop the needles on the paper and calculate the percentage that fall on a line. With enough attempts, the answer should be the needle length divided by the width between lines, all multiplied by 2/pi.\n\nThis is known as Buffon’s needle problem, after the French mathematician Georges-Louis Leclerc, Comte de Buffon, who first proposed it in 1733. The theory was put to the test in 1901 by Mario Lazzarini, a mathematician who dropped 3408 needles to get a value of 3.1415929…, correct to the first six decimal places. Subsequent examination of his results suggests he might have fiddled the numbers, as Lazzarini just happened to choose numbers for the needle length and line width that gave the answer 355/113, a well-known approximation to pi.\n\nYour bank details can be found in pi\n\nPi is an irrational number, which means its decimal representation goes on forever. This means that potentially every possible number you can think of is hidden somewhere in pi – your date of birth, phone number, or even your bank details. What’s more, using a code that converts numbers into letters would let us find the Bible, the complete works of Shakespeare, or indeed every book ever written, if we looked at enough digits.\n\nThere’s one catch: for this to be true, pi would have to be a “normal” number, and we don’t yet know if it is. If it’s normal, the numbers 0 to 9 will appear equally often in its decimal representation. That means any single-digit number occurs one-tenth of the time, any two-digit number one-hundredth of the time, and so on.\n\nThe probabilities get vanishingly small when you start looking for the huge numbers of digits corresponding to the Bard, but just like those infinite monkeys and their typewriters, you’d get there in the end.\n\nUntil mathematicians figure out whether pi is normal or not, why not try searching the first 200 million digits yourself?" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9479006,"math_prob":0.93146914,"size":4249,"snap":"2021-43-2021-49","text_gpt3_token_len":960,"char_repetition_ratio":0.09634864,"word_repetition_ratio":0.0,"special_character_ratio":0.22381736,"punctuation_ratio":0.10070258,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9660624,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-16T15:51:25Z\",\"WARC-Record-ID\":\"<urn:uuid:43d43ae5-cb56-42bd-b70d-b5c98e5d9c27>\",\"Content-Length\":\"169804\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e07ead3a-c141-42a2-b56b-3b10108107af>\",\"WARC-Concurrent-To\":\"<urn:uuid:9a977e84-8ba8-4481-b0ab-3335841ab84a>\",\"WARC-IP-Address\":\"199.232.130.217\",\"WARC-Target-URI\":\"https://www.newscientist.com/article/dn18649-pi-day-five-tasty-facts-about-the-famous-ratio/?ignored=irrelevant\",\"WARC-Payload-Digest\":\"sha1:E7JASMRPJDX4X3RXA5S35CD5TRSBWXYG\",\"WARC-Block-Digest\":\"sha1:Q3P7C3XCX4K2A3ZGKVCYE4NSNZEAVQNO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323584886.5_warc_CC-MAIN-20211016135542-20211016165542-00541.warc.gz\"}"}
https://doc.cgal.org/5.4-beta1/Alpha_shapes_2/classAlphaShapeFace__2.html
[ "", null, "CGAL 5.4 - 2D Alpha Shapes\nAlphaShapeFace_2 Concept Reference\n\n## Definition\n\nThe concept AlphaShapeFace_2 describes the requirements for the base face of an alpha shape.\n\nRefines:\n\nTriangulationFaceBase_2, if the underlying triangulation of the alpha shape is a Delaunay triangulation.\n\nRegularTriangulationFaceBase_2, if the underlying triangulation of the alpha shape is a regular triangulation.\n\nPeriodic_2TriangulationFaceBase_2, if the underlying triangulation of the alpha shape is a periodic triangulation.\n\nHas Models:\nCGAL::Alpha_shape_face_base_2 (templated with the appropriate triangulation face base class).\n\n## Types\n\ntypedef unspecified_type Interval_3\nA container type to get (and put) the three special values ( $$\\alpha_1, \\alpha_2, \\alpha_3$$) associated with an alpha shape edge.\n\ntypedef unspecified_type FT\nA coordinate type. More...\n\n## Creation\n\nAlphaShapeFace_2 ()\ndefault constructor.\n\nAlphaShapeFace_2 (const Vertex_handle &v0, const Vertex_handle &v1, const Vertex_handle &v2)\nconstructor setting the incident vertices.\n\nAlphaShapeFace_2 (const Vertex_handle &v0, const Vertex_handle &v1, const Vertex_handle &v2, const Face_handle &n0, const Face_handle &n1, const Face_handle &n2)\nconstructor setting the incident vertices and the neighboring faces.\n\n## Access Functions\n\nInterval_3 get_ranges (const int &i)\nreturns the interval associated with the edge indexed with $$i$$, which contains three alpha values $$\\alpha_1 \\leq\\alpha_2 \\leq\\alpha_3$$, such as for $$\\alpha$$ between $$\\alpha_1$$ and $$\\alpha_2$$, the edge indexed with $$i$$ is attached but singular, for $$\\alpha$$ between $$\\alpha_2$$ and $$\\alpha_3$$, the edge is regular, and for $$\\alpha$$ greater than $$\\alpha_3$$, the edge is interior.\n\nFT get_alpha ()\nreturn the alpha value, under which the alpha shape contains the face.\n\n## Modifiers\n\nvoid set_ranges (const int &i, const Interval_3 &V)\nsets the interval associated with the edge indexed with $$i$$, which contains three alpha values $$\\alpha_1 \\leq\\alpha_2 \\leq\\alpha_3$$, such as for $$\\alpha$$ between $$\\alpha_1$$ and $$\\alpha_2$$, the edge indexed with $$i$$ is attached but singular, for $$\\alpha$$ between $$\\alpha_2$$ and $$\\alpha_3$$, the edge is regular, and for $$\\alpha$$ greater than $$\\alpha_3$$, the edge is interior.\n\nvoid set_alpha (FT A)\nsets the alpha value, under which the alpha shape contains the face.\n\n## ◆ FT\n\n typedef unspecified_type AlphaShapeFace_2::FT\n\nA coordinate type.\n\nThe type must provide a copy constructor, assignment, comparison operators, negation, multiplication, division and allow the declaration and initialization with a small integer constant (cf. requirements for number types). An obvious choice would be coordinate type of the point class" ]
[ null, "https://doc.cgal.org/5.4-beta1/Manual/search/mag_sel.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6772304,"math_prob":0.99868226,"size":2679,"snap":"2022-40-2023-06","text_gpt3_token_len":694,"char_repetition_ratio":0.17158878,"word_repetition_ratio":0.44204852,"special_character_ratio":0.26502427,"punctuation_ratio":0.14285715,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9977484,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-02-07T18:15:28Z\",\"WARC-Record-ID\":\"<urn:uuid:e92b77ee-1aa6-4fa2-b45d-319c58462e0e>\",\"Content-Length\":\"18999\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2bda16f9-5691-44e0-8b93-f78cfaaeb0b1>\",\"WARC-Concurrent-To\":\"<urn:uuid:20d1ed51-0bc7-431a-9525-eaa9fdc8bece>\",\"WARC-IP-Address\":\"213.186.33.40\",\"WARC-Target-URI\":\"https://doc.cgal.org/5.4-beta1/Alpha_shapes_2/classAlphaShapeFace__2.html\",\"WARC-Payload-Digest\":\"sha1:GDBYAJP2GBYCSPHTWNQLE75M5ILF63VN\",\"WARC-Block-Digest\":\"sha1:PULXZ5C3A5EBIPDTWSEJPNGRMGTMWZYT\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764500628.77_warc_CC-MAIN-20230207170138-20230207200138-00250.warc.gz\"}"}
https://www.nagwa.com/en/videos/736132503636/
[ "# Lesson Video: Orbital Speed Physics • 9th Grade\n\nIn this video, we will learn how to calculate the orbital speed of an object moving along a circular orbit given its orbital radius and the mass of the orbiting object.\n\n17:40\n\n### Video Transcript\n\nIn this lesson on orbital speed, we’re going to learn how to relate the orbital speed of an object to information about the gravitational attraction between the object and the body it’s orbiting.\n\nFor an object moving along a circular path, the velocity of the object always points tangent to the path. And this is true no matter where on the circle the object is located. The reason the velocity is always tangent to the path is because the velocity points in the direction of motion. And if we zoom in at any given time on the portion of the path where the object is located, the path will more and more closely resemble the line tangent to the path at that point. So, at any given moment, the motion of the object appears to be along the line tangent to the path. So, the velocity points tangent to the path at each point.\n\nWe’re going to be interested in objects that have a constant speed as they move around the circle. This means that the size of the velocity vectors is the same at every point. However, as we can clearly see from the picture, the direction of the velocity changes. But if an object’s velocity changes direction, the object is accelerating. We call this acceleration centripetal acceleration.\n\nAs a formula, we can write 𝑎 c, the centripetal acceleration, is equal to 𝑣 squared over 𝑟, where 𝑣 is the speed of the object and 𝑟 is the radius of the circular path. This expression gives us the magnitude of the centripetal acceleration. The direction of the centripetal acceleration will be radially inward towards the center of the circle. Visually, we can see that this is the correct direction because in order to keep the velocity vector tangent to the circle at each point, we must continually move the head of the vector in towards the center of the circle.\n\nNow, let’s recall the Newton second law. It tells us that an accelerating object with a mass of 𝑚 will be experiencing a force whose size is the mass times the acceleration and the direction is the same as the acceleration. In other words, in order for our mass to stay on the circular path, it must be constantly experiencing a centripetal force which has the same direction as the centripetal acceleration. Let’s now bring this discussion to the specific case of circular orbits that we’re interested in.\n\nIn order for our object to stay in orbit around a planet, there needs to be some source of centripetal force. Well, in a situation like this, there is one force that acts radially inward between the planet and the object. And that’s the force of gravity. The direction of the gravitational force is radially inward. The size of the gravitational force in terms of the mass of the planet, capital 𝑀, the mass of the object, lowercase 𝑚, and the radius, 𝑟, measured from the center of the planet to the orbital path is given by. 𝐺, the universal gravitational constant, times the mass of the planet times the mass of the object divided by the distance between them squared.\n\nThe distance between them is the same as the orbital radius, since at every point along the path, the object will be 𝑟 away from the center of the planet. Note that when we say the center of the planet or the center of the object, we mean their centers of gravity. Our stated goal was to relate the orbital speed of the object to information about the gravitational attraction between the object and the planet. The last observation we need before we derive a formula is that the gravitational attraction between the planet and the object is providing the centripetal force on the object to keep it on its path.\n\nWe can, therefore, write 𝐹 c, the centripetal force, is equal to 𝐹 g, the gravitational force. Let’s now plug in the relevant information from our three formulas. By Newton’s second law, the centripetal force is mass times the centripetal acceleration. By using 𝑣 squared over 𝑟 as the definition of centripetal acceleration, we can write mass times centripetal acceleration as mass times orbital speed squared over orbital radius. On the other side of the equation, gravitational force is just given by the expression we mentioned before.\n\nOkay, now, we’re really close to our goal because we have a term on the left-hand side of the equation with the orbital speed which we’re looking for and the right-hand side of the equation is information about the gravitational attraction between the two bodies. We’ll start by noting that there’s a factor of lowercase 𝑚 on both sides of the equation. There’s also at least one factor of 𝑟 in the denominator on both sides. So, let’s multiply both sides by 𝑟 over lowercase 𝑚.\n\nOn both the left-hand side and the right-hand side, we have 𝑚 divided by 𝑚, which is just one. On the left-hand side, 𝑟 divided by 𝑟 is one. And on the right-hand side, 𝑟 divided by 𝑟 squared is just one over 𝑟. This leaves us with speed squared on the left-hand side and universal gravitational constant times mass of the planet divided by the orbital radius on the right-hand side.\n\nOur final step will be to take the square root of both sides of this equation. The square root of orbital speed squared is just orbital speed. And the right-hand side is just as it was before, square root of 𝐺 capital 𝑀 over 𝑟. We have thus succeeded in finding a formula for the orbital speed of an object in a circular orbit. In terms of the universal gravitational constant, the mass of the body that our object is orbiting, and the radius of the orbit. It’s worth stressing again that this formula only applies in the special case of a circular orbit where the orbital speed is constant. If the orbit is not a circle, the orbital speed will not be constant and this formula will not apply.\n\nNote also that lowercase 𝑚, the mass of our object, does not appear in this formula. What this means is that all objects, no matter what their mass is, that are moving in circular orbits with the same orbital radius around planets with the same mass will all have the same orbital speed. As we’ve written it, this equation allows us to find the orbital speed, but we can also rearrange this equation to find the mass of the planet and the radius of the orbit. We’ll start by squaring both sides.\n\nThis gives us back our previous equation 𝑣 squared equals 𝐺𝑀 over 𝑟. To solve for 𝑟, we multiply both sides by 𝑟 over 𝑣 squared. On the left-hand side, 𝑟 over 𝑣 squared times 𝑣 squared is just 𝑟, which is what we were looking for. And on the right-hand side, 𝑟 in the numerator divided by 𝑟 in the denominator is just one and we’re left with 𝐺𝑀 over 𝑣 squared. In this form, we have orbital radius in terms of mass of the planet and orbital speed.\n\nIf we multiply both sides of our previous equation by 𝑟 over 𝐺 instead of 𝑟 over 𝑣 squared, then on the right-hand side 𝑟 over 𝐺 times 𝐺 over 𝑟 is one. And we’re left with just the mass of the planet which we’ll put on the left-hand side of our final result, just to keep consistency. And on the left-hand side, we have 𝑟 times 𝑣 squared over 𝐺. And that leaves us with 𝑀 is equal to 𝑟𝑣 squared over 𝐺. So, with these three equations, we can find the orbital speed or the orbital radius or the mass of the planet as long as we know a value for the universal gravitational constant and also have values for the other two quantities.\n\nBefore moving on to a few examples of how to apply these equations, let’s see one more way to write them. If we solve any of these equations for 𝐺, we find the universal gravitational constant is equal to the orbital radius times the orbital speed squared divided by the mass of the planet. What this means is that if we could independently measure the orbital radius and orbital speed of a circular orbit around a planet and could also measure that planet’s mass. We could find a value for the universal gravitational constant that we could then use every other time gravity comes into play.\n\nWe could also test the validity of our theory of gravity by comparing this measure of the universal gravitational constant to other measures of the universal gravitational constant. Anyway, let’s now see some examples of how to apply the formulas we’ve just derived.\n\nFor a satellite to follow a circular orbit around Earth at a radius of 10,000 kilometers, what orbital speed must it have? Use a value of 5.97 times 10 to 24th kilograms for the mass of Earth and 6.67 times 10 to the negative 11th meters cubed per kilogram per second squared for the value of the universal gravitational constant. Give your answer to three significant figures.\n\nOkay, so here’s the Earth with a mass of 5.97 times 10 to 24th kilograms. And here is the circular orbit with a radius of 10,000 kilometers, as measured from the center of the Earth. Finally, here’s a satellite moving along the orbit with an unknown speed. For the satellite to maintain a constant circular orbit, it must be experiencing a centripetal force which comes from the force of gravity that the Earth exerts on the satellite.\n\nLet’s call the mass of the satellite lowercase 𝑚, which is not a quantity that we’re given in the problem. Using lowercase 𝑚, 𝑣, 𝑟, capital 𝑀, and the universal gravitational constant. We can write 𝐹 c, the centripetal force, is equal to the mass of the satellite times the square of the orbital speed divided by the orbital radius. Also, 𝐹 g, the force of gravity that Earth exerts on the satellite, is equal to the universal gravitational constant given the symbol capital 𝐺 times the mass of Earth times the mass of the satellite divided by the square of the orbital radius.\n\nSince the centripetal force is provided by the gravitational force, we can equate these two quantities and then solve for the orbital speed. We get 𝑣 is equal to the square root of 𝐺 times capital 𝑀 divided by 𝑟, whereas we can see the mass of the satellite does not appear in this final expression. In our question, we’re given a value for the universal gravitational constant. So combining that with our known values for orbital radius and mass of Earth, we should be able to plug in to get a value for the orbital speed.\n\nWhen we actually put in those numbers, we find that 𝑣 is equal to the square root of 6.67 times 10 to the negative 11th meters cubed per kilogram per second squared times 5.97 times 10 to the 24th kilograms divided by 10,000 kilometers. Let’s start with two simplifications involving the units. We have a factor of per kilograms and a factor of kilograms. And per kilograms times kilograms is just one.\n\nSecond, we’ll need to convert kilometers to meters in the denominator to match the meters already present in the numerator. Recall that one kilometer is by definition 1000 meters. So, 10,000 kilometers is 10,000 times 1000 meters or, converting to scientific notation, 10 to the seventh meters. Finally, meters cubed in the numerator divided by meters in the denominator is meters squared. Let’s rewrite this expression separating the numbers, the powers of 10, and the units.\n\nWritten out like this, using the commutativity and associativity of multiplication, we can now calculate the value of each of these terms separately, take the square roots separately, and multiply all those together to get the final result. Let’s start with the units. Meters squared per second squared is meters per second squared. Moving on to the powers of 10, our final result will have a base of 10. And to get the exponent, we add the exponents in the numerator and subtract the exponents in the denominator. Negative 11 plus 24 is 13 minus seven is six. So, that whole term reduces to 10 to the sixth.\n\nFinally, 6.67 times 5.97 is equal to 39.8199. To finish the calculation, we recall that the square root of a product of several terms is equal to the product of the square root of those terms. So, we have that 𝑣 is equal to the square root of 39.8199 times the square of 10 to the sixth times the square root of meters per second squared. Okay, so let’s work out these square roots.\n\nTo take the square root of a squared quantity, well, that’s just the quantity itself. So, the square root of meters per second squared is just meters per second. This is a good intermediate result because meters per second is a unit of speed. So, we see that we’re looking for a speed, and our final answer will have units of speed. In general, to take the square root of any quantity raised to a power, simply halve the power. So, the square root of 10 to the sixth is 10 to the third.\n\nLastly, we have the square root of 39.8199. For this, we just need a calculator. The first several digits of that result are 6.3103 et cetera. Now, we have our answer as a number times the power of 10 times some units, which is a very useful form for expressing it to three significant figures. To express our answer this way, we simply need to find the three significant figures of the number portion and then carry the power of 10 and the units to the final answer.\n\nTo identify some number of significant figures, we count that many digits, starting from the first nonzero digit and going left to right. For our number, the first significant figure is six and the second is three. To find the third significant figure, since that’s the last one that we’re looking for, we have to round. So, we look at the fourth digit, which is zero. And since zero is less than five, one rounds to one. So, our number to three significant figures is 6.31.\n\nNow, let’s just finish out the multiplication. 6.31 times 10 to the third is 6,310 times meters per second gives us a final answer of 6,310 meters per second to three significant figures. And this is the orbital speed that a satellite would need to maintain to have a circular orbit around Earth with a radius of 10,000 kilometers.\n\nThis example was very focused on calculations. Let’s now see an example that’s focused on the qualitative relationship between orbital speed and orbital radius.\n\nWhich line on the graph shows the relation between orbital speed and orbital radius for objects moving along circular orbits due to gravity?\n\nThe question asks us to identify which of the curves on this graph, which has orbital radius on the horizontal axis and orbital speed on the vertical axis, corresponds to the correct functional relationship between those two quantities. Recall that by equating the centripetal force and the gravitational force for an object in a circular orbit. We find that the orbital speed is equal to the square root of the universal gravitation constant times the mass of the body being orbited divided by the radius of the orbit.\n\nSince our question is only about the relationship between orbital speed and orbital radius, we can treat the mass of the body being orbited, that is capital 𝑀, as constant. Then, since capital 𝐺 is also constant, we can rewrite our formula as orbital speed is equal to the square root of a constant divided by the orbital radius, where we’ve used the fact that a constant times a constant is just another constant. Now, using the fact that the square root of a constant is just another constant, we can rewrite this form as orbital speed is equal to a constant divided by the square root of the orbital radius.\n\nWe don’t actually care about the identity of this constant. So, we can rewrite this equation as a qualitative proportionality relationship. And that relationship is that 𝑣 is proportional to one over the square root of 𝑟. We’ve written the relationship this way to focus on the connection between orbital speed and orbital radius and avoid getting confused by constants that are not relevant to this particular question. Let’s now use this functional form to make predictions for the orbital speed corresponding to large orbital radii, that is the right edge of the graph, and to small orbital radii, that is the left edge of the graph.\n\nWe can then match those predictions to the appropriate line. Let’s see what happens as 𝑟 increases. As the orbital radius gets larger, the square root of the orbital radius also gets larger. So one over the square root of the orbital radius gets smaller because as the denominator of a fraction grows, the size of the fraction shrinks. So when orbital radius increases, we expect orbital speed to decrease. Although because orbital radius can never be infinite, the orbital speed can never be zero.\n\nLooking at the graph, clearly, the green line doesn’t work because it never changes, so it isn’t decreasing with increasing radius. The blue, orange, and red lines all decrease with increasing radius. But it also can’t be the red line because the red line reaches zero. And we know that the orbital speed can never be zero. Let’s now see what happens as the orbital radius shrinks.\n\nAs 𝑟 decreases, so does the square root of 𝑟. So, the denominator of our fraction is shrinking. And so, the fraction itself is growing. And since the fraction is proportional to orbital speed, the orbital speed is also growing. We also know that as the denominator of a fraction gets closer and closer to zero, the value of that fraction increases without limit. So here, too, we expect the orbital speed to increase without limit as the orbital radius gets closer to zero. The orange curve has a maximum value as the radius approaches zero. So, the orange curve is not the right curve because the orbital speed doesn’t increase without limit.\n\nThis leaves the blue line as the correct answer. Indeed, the blue line shows an orbital speed that gets smaller and smaller as the radius increases and gets larger and larger without limit as the radius decreases. So, the answer is that the blue line shows the correct relationship between orbital speed and orbital radius for objects moving in circular orbits due to gravity.\n\nNow that we’ve seen some examples, let’s summarize the key points that we’ve learned in this lesson. We can find our discussion to circular orbits caused by gravitational fields. In such a case, we found that we could equate the centripetal force, keeping the object moving in a circle, to the gravitational force acting on the object.\n\nUsing the definition of centripetal force as mass of the object times speed squared divided by the radius. And the definition of gravitational force as the universal gravitational constant times the mass of the planet times the mass of the orbiting object divided by radius squared. We derive the equation for the orbital speed as 𝑣 is equal to the square root of the universal gravitational constant, 𝐺, times the mass of the planet, capital 𝑀, divided by the orbital radius, 𝑟.\n\nWe then solve this equation for 𝑀 and 𝑟 to get two more formulas. We found that the orbital radius is equal to 𝐺 times the mass of the planet divided by the orbital speed squared and that the mass of the planet is equal to the orbital radius times the orbital speed squared divided by 𝐺. Finally, we noted that given an appropriate value, for 𝐺, we could find orbital speed, orbital radius, or mass of the planet from values of the other two quantities." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.90359426,"math_prob":0.99374855,"size":18916,"snap":"2023-14-2023-23","text_gpt3_token_len":4460,"char_repetition_ratio":0.18691836,"word_repetition_ratio":0.09319527,"special_character_ratio":0.20966378,"punctuation_ratio":0.09599376,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99901694,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-03-29T22:54:28Z\",\"WARC-Record-ID\":\"<urn:uuid:aba427b7-e1b8-4145-9ac4-9f46a4fd6f55>\",\"Content-Length\":\"176367\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5851f4f5-a041-44b5-9699-d185f00c8e64>\",\"WARC-Concurrent-To\":\"<urn:uuid:c433621c-5572-4b9d-8ecd-0f96579b1325>\",\"WARC-IP-Address\":\"15.197.195.238\",\"WARC-Target-URI\":\"https://www.nagwa.com/en/videos/736132503636/\",\"WARC-Payload-Digest\":\"sha1:W2PTJUUJXXFPIVLFN3WV3C67A2HWCFLJ\",\"WARC-Block-Digest\":\"sha1:3M7KS662Y26XAAQQU3LB7FIWTRC6PYAB\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-14/CC-MAIN-2023-14_segments_1679296949035.66_warc_CC-MAIN-20230329213541-20230330003541-00514.warc.gz\"}"}
https://bookstore.ams.org/view?ProductCode=CBMS/102
[ "An error was encountered while trying to add the item to the cart. Please try again.\nThe following link can be shared to navigate to this page. You can select the link to copy or click the 'Copy To Clipboard' button below.\nCopy To Clipboard\nSuccessfully Copied!\nThe Web of Modularity: Arithmetic of the Coefficients of Modular Forms and $q$-series\n\nKen Ono University of Wisconsin, Madison, WI\nA co-publication of the AMS and CBMS", null, "Available Formats:\nSoftcover ISBN: 978-0-8218-3368-1\nProduct Code: CBMS/102\n216 pp\nList Price: $52.00 Individual Price:$41.60\nElectronic ISBN: 978-1-4704-1757-4\nProduct Code: CBMS/102.E\n216 pp\nList Price: $49.00 MAA Member Price:$44.10\nAMS Member Price: $39.20 Bundle Print and Electronic Formats and Save! This product is available for purchase as a bundle. Purchasing as a bundle enables you to save on the electronic version. List Price:$78.00", null, "Click above image for expanded view\n•", null, "•", null, "The Web of Modularity: Arithmetic of the Coefficients of Modular Forms and $q$-series\nKen Ono University of Wisconsin, Madison, WI\nA co-publication of the AMS and CBMS\nAvailable Formats:\n Softcover ISBN: 978-0-8218-3368-1 Product Code: CBMS/102 216 pp\n List Price: $52.00 Individual Price:$41.60\n Electronic ISBN: 978-1-4704-1757-4 Product Code: CBMS/102.E 216 pp\n List Price: $49.00 MAA Member Price:$44.10 AMS Member Price: $39.20 Bundle Print and Electronic Formats and Save! This product is available for purchase as a bundle. Purchasing as a bundle enables you to save on the electronic version. List Price:$78.00\n• Book Details\n\nCBMS Regional Conference Series in Mathematics\nVolume: 1022004\nMSC: Primary 11; 05;\n\nModular forms appear in many ways in number theory. They play a central role in the theory of quadratic forms, in particular, as generating functions for the number of representations of integers by positive definite quadratic forms. They are also key players in the recent spectacular proof of Fermat's Last Theorem. Modular forms are at the center of an immense amount of current research activity. Also detailed in this volume are other roles that modular forms and $q$-series play in number theory, such as applications and connections to basic hypergeometric functions, Gaussian hypergeometric functions, super-congruences, Weierstrass points on modular curves, singular moduli, class numbers, $L$-values, and elliptic curves.\n\nThe first three chapters provide some basic facts and results on modular forms, which set the stage for the advanced areas that are treated in the remainder of the book. Ono gives ample motivation on topics where modular forms play a role. Rather than cataloging all of the known results, he highlights those that give their flavor. At the end of most chapters, he gives open problems and questions.\n\nThe book is an excellent resource for advanced graduate students and researchers interested in number theory.\n\n• Chapters\n• Chapter 1. Basic facts\n• Chapter 2. Integer weight modular forms\n• Chapter 3. Half-integral weight modular forms\n• Chapter 4. Product expansions of modular forms on $\\mathrm {SL}_2(\\mathbb {Z})$\n• Chapter 5. Partitions\n• Chapter 6. Weierstrass points on modular curves\n• Chapter 7. Traces of singular moduli and class equations\n• Chapter 8. Class numbers of quadratic fields\n• Chapter 9. Central values of modular $L$-functions and applications\n• Chapter 10. Basic hypergeometric generating functions for $L$-values\n• Chapter 11. Gaussian hypergeometric functions\n\n• Request Review Copy\nVolume: 1022004\nMSC: Primary 11; 05;\n\nModular forms appear in many ways in number theory. They play a central role in the theory of quadratic forms, in particular, as generating functions for the number of representations of integers by positive definite quadratic forms. They are also key players in the recent spectacular proof of Fermat's Last Theorem. Modular forms are at the center of an immense amount of current research activity. Also detailed in this volume are other roles that modular forms and $q$-series play in number theory, such as applications and connections to basic hypergeometric functions, Gaussian hypergeometric functions, super-congruences, Weierstrass points on modular curves, singular moduli, class numbers, $L$-values, and elliptic curves.\n\nThe first three chapters provide some basic facts and results on modular forms, which set the stage for the advanced areas that are treated in the remainder of the book. Ono gives ample motivation on topics where modular forms play a role. Rather than cataloging all of the known results, he highlights those that give their flavor. At the end of most chapters, he gives open problems and questions.\n\nThe book is an excellent resource for advanced graduate students and researchers interested in number theory.\n\n• Chapters\n• Chapter 1. Basic facts\n• Chapter 2. Integer weight modular forms\n• Chapter 3. Half-integral weight modular forms\n• Chapter 4. Product expansions of modular forms on $\\mathrm {SL}_2(\\mathbb {Z})$\n• Chapter 5. Partitions\n• Chapter 6. Weierstrass points on modular curves\n• Chapter 7. Traces of singular moduli and class equations\n• Chapter 8. Class numbers of quadratic fields\n• Chapter 9. Central values of modular $L$-functions and applications\n• Chapter 10. Basic hypergeometric generating functions for $L$-values\n• Chapter 11. Gaussian hypergeometric functions\nPlease select which format for which you are requesting permissions." ]
[ null, "https://ebus.ams.org/ProductImages/cbms-102-e-cov-1.jpg", null, "https://ebus.ams.org/ProductImages/cbms-102-e-cov-1.jpg", null, "https://ebus.ams.org/ProductImages/cbms-102-e-cov-1.jpg", null, "https://ebus.ams.org/ProductImages/cbms-102-e-back-1.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8545289,"math_prob":0.9088427,"size":4332,"snap":"2022-40-2023-06","text_gpt3_token_len":989,"char_repetition_ratio":0.15642329,"word_repetition_ratio":0.86021507,"special_character_ratio":0.22391506,"punctuation_ratio":0.12096774,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9556233,"pos_list":[0,1,2,3,4,5,6,7,8],"im_url_duplicate_count":[null,3,null,3,null,3,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-01-28T10:00:25Z\",\"WARC-Record-ID\":\"<urn:uuid:ee63a5bd-7d16-4fcb-ad2c-9d7356737e2f>\",\"Content-Length\":\"71684\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5285c1c8-bcc1-437a-9935-c4350f1ab866>\",\"WARC-Concurrent-To\":\"<urn:uuid:4f090d63-2e47-41f7-bf24-90e95ab569ae>\",\"WARC-IP-Address\":\"130.44.208.50\",\"WARC-Target-URI\":\"https://bookstore.ams.org/view?ProductCode=CBMS/102\",\"WARC-Payload-Digest\":\"sha1:4KDGX6QY7Y2CNVRBJWZQFWAN5UMZVDCX\",\"WARC-Block-Digest\":\"sha1:BPM6QOALB2E6W5GPIG463NFE6UKWEHVU\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764499541.63_warc_CC-MAIN-20230128090359-20230128120359-00476.warc.gz\"}"}
https://mathoverflow.net/questions/89650/continuous-selections-from-sums-of-compact-sets
[ "# Continuous selections from sums of compact sets\n\nThis question is somehow related to the last open problem from Grothendieck's thesis about completeness of locally convex inductive limit. However, a particular case of the problem boils down to a very concrete question in Banach spaces: For two compact and absolutely convex sets $K_1, K_2$ the (Minkowski-) sum $K_1+K_2$ just consists of all sums $x_1+x_2$ with $x_j \\in K_j$. One might ask whether one can choose the $x_j$ depending continuously on the sum, that is\n\nAre there continuous decomposition maps $f_j: K_1+K_2 \\to K_j$ with $f_1(z)+f_2(z)=z$ for all $z\\in K_1+K_2$?\n\nThe answer to this question is negative, as I learned from Petr Holicky: Let $e_n$ be the unit vectors of $\\ell_2(\\mathbb N_0)$, $K_1=\\overline{\\Gamma(e_0+\\frac{1}{n} e_n: n\\in\\mathbb N)}$ (where $\\Gamma$ denotes the absolutly convex hull) and $K_2 = \\overline{ \\Gamma(-e_0+\\frac{1}{n} e_n: n\\in\\mathbb N)}$.\n\nIn this example one has $K_1 \\subseteq 3 K_2$ and there is a trivial continuous selection $f_j: K_1+K_2 \\to C K_j$ with $f_1(z)+f_2(z)=z$ for $C=3$ (namely, $f_1(z)=z$, $f_2(z)=0$).\n\nNow the question becomes:\n\nIs there a universal constant $C>0$ such that for all absolutely convex compact sets $K_1,K_2$ in a Banach space there are continuous decomposition maps $f_j: K_1+K_2 \\to C K_j$ with $f_1(z)+f_2(z)=z$ for all $z\\in K_1+K_2$?\n\nA close look at Holicky's example in an article \"(LB)-spaces of vector-valued continuous functions\", Bull. Lond. Math. Soc. 40 (2008), no. 3, 505–515 showed that necessarily $C\\ge 2$.\n\n• I think you meant to say \"compact absolutely convex sets\" above, otherwise finding a counterexample is rather easy. – George Lowther Mar 3 '12 at 12:34\n• Of course. I have corrected the question. – Jochen Wengenroth Mar 5 '12 at 15:05\n\nNo, there does not exist any such universal constant C.\n\nI'll build up a counterexample inductively. First, suppose that we have the following.\n\n(i) Let $K_1,K_2$ be compact and absolutely convex subsets of Hilbert space $H$, and $C\\ge0$ be a constant such that there do not exist continuous functions $f_j\\colon K_1+K_2\\to CK_j$ such that $f_1(x)+f_2(x)=x$.\n\nFor example, as long as $K_1+K_2$ contains at least one nonzero element then they satisfy (i) for any constant $C < 1$. I'll show that we can construct new compact and absolutely convex sets $\\tilde K_1,\\tilde K_2$ for which (i) holds with $C$ replaced by $C+2$. Applying this process inductively shows that there exist sets $K_1,K_2$ satisfying (i) for any fixed $C \\ge 0$.\n\nLet $K_1,K_2,C$ be as in (i). By embedding $H$ in a larger Hilbert space if necessary, we can assume that we have unit vectors $u_{mn},v_{1mnk},v_{2mnk}$ ($m,n,k=1,2,\\ldots$), all of which are mutually orthogonal and orthogonal to $K_1+K_2$. Let $(x_{1,1},x_{2,1}),(x_{1,2},x_{2,2}),(x_{1,3},x_{2,3}),\\ldots$ be a sequence dense in $K_1\\times K_2$. Set $w_{jmnk}=x_{jm}+(-1)^j\\frac1{mn}u_{mn}+\\frac1{mnk}v_{jmnk}$. Define the compact sets $\\tilde K_j$ by $$\\tilde K_j=\\overline{\\Gamma\\left(w_{jmnk}\\colon m,n,k=1,2,\\ldots\\right)}.$$ Suppose that $f_j\\colon\\tilde K_1+\\tilde K_2\\to(C+2)\\tilde K_j$ are continuous functions satisfying $f_1(x)+f_2(x)=x$. I'll show that this contradicts (i).\n\nFor $x$ in $H$, define $\\theta_j(x)$ to be the infimum of $c\\in\\mathbb{R}_+$ such that $x\\in c\\tilde K_j$. Set $w_{jmn}=x_{j,m}+(-1)^j\\frac1{mn}u_{mn}=\\lim_{k\\to\\infty}w_{jmnk}$. Any $x$ in the subspace generated by $\\tilde K_j$ can be decomposed as \\begin{align} x = \\lambda_j\\tilde x+\\sum_{m,n}\\lambda_{jmn}w_{jmn}+\\sum_{m,n,k}\\lambda_{j,m,n,k}w_{jmnk}&&{\\rm(1)} \\end{align} for some $\\tilde x\\in K_j$. The real coefficients $\\lambda_{jmn},\\lambda_{jmnk}$ are uniquely determined, and I will regard them as functions of $x$. Also, we can choose $\\lambda_j$ to be nonnegative and as small as possible, in which case it is also uniquely determined. It can be seen that $$\\theta_j(x)=\\lambda_j+\\sum_{m,n}\\vert\\lambda_{jmn}\\vert+\\sum_{m,n,k}\\vert\\lambda_{jmnk}\\vert.$$\n\nLet $\\pi\\colon H\\to H$ be the orthogonal projection onto the closed subspace generated by $K_1+K_2$. Then $K_j=\\pi(\\tilde K_j)$. We have $\\pi f_1(x)+\\pi f_2(x)=x$ for all $x\\in K_1+K_2$ so, by (i) and continuity of $f_j$, there exists $\\bar m\\in\\mathbb{N}$ and $j\\in\\lbrace 1,2\\rbrace$ such that $\\pi f_j(x_{1\\bar m}+x_{2\\bar m})\\not\\in CK_j$. Wlog, suppose that $j=1$. Then, $f_1(x_{1\\bar m}+x_{2\\bar m})\\not\\in C\\tilde K_1$ or, equivalently, $\\theta_j(f_1(x_{1\\bar m}+x_{2\\bar m})) > C$. Set $y_j=f_j(x_{1\\bar m}+x_{2\\bar m})$. Also, set $\\epsilon=\\theta_1(y_1)-C > 0$. Then fix $\\bar n$ large enough that $\\vert\\lambda_{1\\bar m\\bar n}(y_1)\\vert < \\epsilon/2$.\n\nSince $w_{1mnk}+w_{2mnk}\\to w_{1mn}+w_{2mn}=x_{1m}+x_{2m}$ as $k\\to\\infty$, continuity of $f_j$ allows us to write $$f_j(w_{1\\bar m\\bar nk}+w_{2\\bar m\\bar nk})=w_{j\\bar m\\bar nk}+y_j-w_{j\\bar m\\bar n}+(-1)^jr_k$$ where $r_k\\to0$, and is in the subspace generated by $\\tilde K_1\\cap \\tilde K_2$. Note that the coefficients $\\lambda_1,\\lambda_{1mn},\\lambda_{1mnk}$ in expansion (1) are all the same for $y_1-w_{1\\bar m\\bar n}$ as for $y_1$, except for $\\lambda_{1\\bar m\\bar n}$ which satisfies $$\\vert\\lambda_{1\\bar m\\bar n}(y_1-w_{1\\bar m\\bar n})\\vert\\ge1-\\vert\\lambda_{1\\bar m\\bar n}(y_1)\\vert > 1-\\epsilon/2 > 1+\\vert\\lambda_{1\\bar m\\bar n}(y_1)\\vert-\\epsilon.$$ So, $$\\theta_1(y_1-w_{1\\bar m\\bar n}) > 1+\\theta_1(y_1)-\\epsilon = C+1.$$ As $r_k\\to0$ we have $\\theta_1(y_1-w_{1\\bar m\\bar n}-r_k) > C+1$ for large $k$. Similarly, the coefficients in expansion (1) are the same for $w_{1\\bar m\\bar nk}+y_1-w_{1\\bar m\\bar n}-r_k$ as for $y_1-w_{1\\bar m\\bar n}-r_k$, except $\\lambda_{1\\bar m\\bar n k}$. Also, $r_k$ is in the subspace generated by $\\tilde K_1\\cap\\tilde K_2$ and, hence, $\\lambda_{1\\bar m\\bar n k}(r_k)=0$. Therefore, \\begin{align} &\\vert\\lambda_{1\\bar m\\bar n k}(w_{1\\bar m\\bar nk}+y_1-w_{1\\bar m\\bar n}-r_k)\\vert-\\vert\\lambda_{1\\bar m\\bar n k}(y_1-w_{1\\bar m\\bar n}-r_k)\\vert\\cr &\\qquad\\ge 1-2\\vert\\lambda_{1\\bar m\\bar n k}(y_1-w_{1\\bar m\\bar n})\\vert\\to1 \\end{align} as $k\\to\\infty$. So, \\begin{align} \\liminf_{k\\to\\infty}\\theta_1(w_{1\\bar m\\bar nk}+y_1-w_{1\\bar m\\bar n}-r_k)&\\ge\\liminf_{k\\to\\infty}\\theta_1(y_1-w_{1\\bar m\\bar n}-r_k)+1\\cr & > C+2. \\end{align} So, $f_1(w_{1\\bar m\\bar n k}+w_{2\\bar m\\bar n k})\\not\\in(C+2)\\tilde K_1$ for large $k$, giving the required contradiction.\n\n• Thanks a lot for this impressing construction. If it leads to something (concerning Grothendieck's question) I will contact you. – Jochen Wengenroth Mar 5 '12 at 15:03\n• You can simplify the construction slightly by removing dependence on the index $n$. It doesn't really make the proof any easier though. – George Lowther Mar 6 '12 at 2:22" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6378043,"math_prob":0.9999299,"size":4577,"snap":"2020-34-2020-40","text_gpt3_token_len":1900,"char_repetition_ratio":0.18543626,"word_repetition_ratio":0.014134276,"special_character_ratio":0.39392614,"punctuation_ratio":0.10169491,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000031,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-22T09:16:34Z\",\"WARC-Record-ID\":\"<urn:uuid:98a2fc9f-39f0-4da4-84f8-42734c6c2397>\",\"Content-Length\":\"133072\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:95e3ebb8-7f7f-4cef-88eb-228e2baed044>\",\"WARC-Concurrent-To\":\"<urn:uuid:27da0260-bb50-4f21-bc8c-aa92e5606435>\",\"WARC-IP-Address\":\"151.101.1.69\",\"WARC-Target-URI\":\"https://mathoverflow.net/questions/89650/continuous-selections-from-sums-of-compact-sets\",\"WARC-Payload-Digest\":\"sha1:67GFXX37LYAL7QOZARLOGXFSAYOXBHEZ\",\"WARC-Block-Digest\":\"sha1:UFX6G7HDCNEERV5ZRTLLZBOIR6JT5IWO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400204410.37_warc_CC-MAIN-20200922063158-20200922093158-00128.warc.gz\"}"}