URL
stringlengths
15
1.68k
text_list
sequencelengths
1
199
image_list
sequencelengths
1
199
metadata
stringlengths
1.19k
3.08k
https://physics.stackexchange.com/search?q=user:92654+%5Bgeneral-relativity%5D
[ "# Search Results\n\nResults tagged with Search options user 92654\n10 results\n\nA theory that describes how matter interacts dynamically with the geometry of space and time. It was first published by Einstein in 1915 and is currently used to study the structure and evolution of the universe, as well as having practical applications like GPS.\n\nThe rate of acceleration is independent of the rate of motion so this formula still applies even when the two objects are moving relative to each other. The only time you need to use a different form …\nanswered Feb 15 '16 by Anders Gustafson\nThe Schwarzchild metric is for the gravitational field of an object of mass $M$ with no electric charge and no angular momentum. The metric is $${ds}^{2} = \\frac{dr^2}{1 - \\frac{r_\\mathrm{s}}{r}} - … asked Aug 29 '18 by Anders Gustafson 4answers Time tends to slow down near objects with large amounts of positive mass relative to observers in micro gravity. Considering that negative mass is the opposite of normal mass and would time tend to s … asked Apr 12 '16 by Anders Gustafson 4answers In Newtonian Physics there is an equation that for the Gravitational Flux of an object known as Gauss's Law For Gravity. Gauss's Law for Gravity describes the number of Gravitational Field Lines comi … asked Dec 6 '15 by Anders Gustafson Repulsive Gravity would require Negative Energy and pure Negative Energy is not known to exist or at least as real particles. Negative Energy would also have Negative inertia and so it would tend to … answered Dec 28 '15 by Anders Gustafson If you travel faster than light you wouldn't be going back in time from all reference frames, just some reference frames. If you were going faster than light then from some reference frames you would … answered Sep 15 '15 by Anders Gustafson 0answers A spacetime with 2 indistinguishable dimensions and all spacetime directions equivalent would have the signature (++) meaning that there would be no difference between spacelike and timelike direction … asked 4 hours ago by Anders Gustafson 2answers If I understand correctly the equation for kinetic energy in relativity is$$ E_k= mc^2 \\left(\\frac{1}{\\sqrt{1-\\frac{v^2}{c^2}}}-1\\right) \\;, and the equation for escape velocity in General Relativi …\nIn the Schwarzschild Metric as the spacetime interval between two points in spacetime approaches $0$ for any ratio between the length of time and space the spacetime interval between the points in spa …" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.90891767,"math_prob":0.9746984,"size":3335,"snap":"2019-35-2019-39","text_gpt3_token_len":850,"char_repetition_ratio":0.12668869,"word_repetition_ratio":0.0093632955,"special_character_ratio":0.23898052,"punctuation_ratio":0.062184874,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99075115,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-19T02:12:04Z\",\"WARC-Record-ID\":\"<urn:uuid:0696e043-a6c1-40e5-9a47-21979fae16bb>\",\"Content-Length\":\"117598\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1c08c753-06ef-4126-aa9d-71eeff10a343>\",\"WARC-Concurrent-To\":\"<urn:uuid:7f54e024-a2b8-4537-83ed-a5481f52a878>\",\"WARC-IP-Address\":\"151.101.129.69\",\"WARC-Target-URI\":\"https://physics.stackexchange.com/search?q=user:92654+%5Bgeneral-relativity%5D\",\"WARC-Payload-Digest\":\"sha1:WEY2TODROBR4CAHHTZ4Z2JCJXAFDWEVH\",\"WARC-Block-Digest\":\"sha1:Z2TBLJ26CW7IUYCGNA6E5HEGXALXOFKT\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514573415.58_warc_CC-MAIN-20190919015534-20190919041534-00027.warc.gz\"}"}
http://www.archimedes-lab.org/monthly_puzzles_66.html
[ "Shortcuts", null, "Sitemap", null, "Contact", null, "Newsletter", null, "Store", null, "Books", null, "Features", null, "Gallery", null, "E-cards", null, "Games", null, "", null, "••• Smile! \"To do exactly the opposite is also a form of imitation\" - G. C. Lichtenberg ••• ••• Related links Puzzles workshops for schools & museums. Editorial content and syndication puzzles for the media, editors & publishers. Numbers, just numbers... Have a Math question? Ask Dr. Math! ••• Etymology Nostalgia f. Greek nostos 'return home' and -algos 'pain', translating German Heimweh 'homesickness', was coined in 1688 by the Alsatian physician Johannes Hofer. In his treatise 'Dissertatio Medica de Nostalgia, oder Heimweh', he described a new disease that affected some soldiers of the Swiss regiments serving the king of France as \"the pain a sick person feels because he wishes to return to his native land, and fears never to see it again\". •••", null, "Previous Puzzles of the Month + Solutions\n\nApril-May 2007, Puzzle nr 111", null, "Back to Puzzle-of-the-Month page | Home", null, "Puzzle # 111  Italiano", null, "Français", null, "Difficulty level:", null, "", null, "", null, ", basic geometry knowledge.\n\n Soccer balls   Two intersected semi-circles inscribed in a rectangle are tangent to 5 discs (soccer balls) as depicted in the image. What is the value of b/a?", null, "", null, "", null, "R = radius of the semi-circles; r = radius of the soccer balls. R - r = OA = radius of the circle (O, OA). SO(A') = A (point A' is symmetrical to A through point O) AA' = 2(R - r) [the diameter of the circle (O, OA)] = a AB = BA' = R = b/2 Triangle ABA' is inscribed in the circle (O, OA), then it is isosceles and right-angled.\n\nWe can therefore solve this puzzle with the help of the theorem of Pytagora:\nAA'2 = AB2 + BA'2\na2 = (b/2)2+ (b/2)2 = 2(b/2)2\nSimplifying: a = b", null, "2/2\n\nSo: b/a = b/(b", null, "2/2) =", null, "2\n\nHere below is a neat solution involving a general formula, suggested by Géry Huvent:", null, "a) Considering the basic diagram above; the circles centered in O with radius r1 , and in A with radius r3 are tangent, then:", null, "(n2 + r32) + r3 = r1\n\nb) The circles centered in B with radius r2 , and in A with radius r3 are tangent, then:", null, "[n2 + (m - r3)2] = AB = r2 + r3\n\nb) Simplifying both equations together, we obtain the following math relationship useful to solve other similar problems:\nr1(r1 - 2r3) = (m + r2)(r2+ 2r3 - m)\n\nc) Comparing this latter equation to the original puzzle diagram further above (*), we can see that:\na* = m ;\nb*/2 = R* = r1 = r2 ; r* = r3 ;\n\nand that:\nr* = R* - a*/2 = b*/2 - a*/2 = (b* - a*)/2\n\nd) Then, replacing all the values of the general formula in b), we obtain:\nb/2{b/2 - 2[(b - a)/2]} = (a + b/2) · {b/2 + 2[(b - a)/2] - a} ; and solving...\n\na2 = (b - a)(b + a) ; finally... b/a =", null, "2\n\nYou can find more interesting sangaku formulae at Géry's website.\n\nHere below another interesting solution posted by John Reidy:", null, "The radius of the larger semicircle on base b is b/2\nLet the radius of the projected soccer ball circular image = r\nAt the contact point of any of the circles, the radius line from the centre of each circle is at right angles to a tangent at that contact point. Therefore the lines AC and AD joining the centres of the contacting circles must pass through the contact point of these circles; these points being G and E respectively. Accordingly, as the sides of the rectangle are tangential at contact points B and F, the points B and F lie on the extension of the line joining circle centres D & C.\n\nFrom triangle ABC:\nAB2 = CA2 – BC2\nAnd from triangle ABD:\nAB2 = DA2 – BD2\nTherefore: CA2 – BC2 = DA2 – BD2\n\nFrom the diagram:\nCA = AG – GC = b/2 – r\nBC = r\nDA = AE + ED = b/2 + r\nBD = BF – DF = a – r\nTherefore:\n(b/2 – r)2 – r2 = (b/2 + r)2 – (a – r)2\nb2/4 – br + r2 – r2 = b2/4 + br + r2a2 + 2ar - r2\nRationalising:\n2br + 2ar = a2\nr = a2/2(b + a) -- Equation 1\n\nFrom inspection of AH in diagram:\na = AH = b/2 + (b/2 – 2r)\n\nTherefore: r = (ba)/2 -- Equation 2\n\nFrom Equation's 1 & 2:\na2/2(b + a) = (ba)/2\na2 = (ba)(b + a) = b2a2\n2a2 = b2\nb/a =", null, "2", null, "The Winners of the Puzzle of the Month are:\nJohn Reidy, Australia - Omar A. Alrefaie, Saudi Arabia - Amaresh G.S., India - Mohammed Ezz Abd El-Menaem El-Sayyed, Egypt - Geoffrey Harrison, Australia.\n\nCongratulations!\n\n More Math Facts behind the puzzle In geometry, a shape comprising two circular arcs, joined at their endpoints (fig. 1) is called a lens. The \"Vesica piscis\" (fish bladder) is one particular form of a symmetrical lens (fig. 2).", null, "", null, "A = r2[(", null, "", null, "/180) - sin", null, "] Vesica piscis\n\n© 2003 G. Sarcone, www.archimedes-lab.org\nYou can re-use content from Archimedes’ Lab on the ONLY condition that you provide credit to the authors (© G. Sarcone and/or M.-J. Waeber) and a link back to our site. You CANNOT reproduce the content of this page for commercial purposes.\n\nYou're encouraged to expand and/or improve this article. Send your comments, feedback or suggestions to Gianni A. Sarcone. Thanks!\n\n Previous puzzles of the month...", null, "", null, "", null, "Back to Puzzle-of-the-Month page | Home", null, "", null, "", null, "Follow us on Facebook |", null, "Report any error, misspelling or dead link\nArchimedes' Laboratory™ | How to contact us\n|", null, "Come contattarci |", null, "Comment nous contacter", null, "About Us | Sponsorship | Press-clippings | [email protected] | ©opyrights | Link2us | Sitemap\n© Archimedes' Lab | Privacy & Terms | The web's best resource for puzzling and mental activities", null, "", null, "", null, "" ]
[ null, "http://www.archimedes-lab.org/im_navpics2/icon_sitemap.gif", null, "http://www.archimedes-lab.org/im_navpics2/icon_contact.gif", null, "http://www.archimedes-lab.org/im_navpics2/icon_newsletter.gif", null, "http://www.archimedes-lab.org/im_navpics2/icon_store.gif", null, "http://www.archimedes-lab.org/im_navpics2/icon_book.gif", null, "http://www.archimedes-lab.org/im_navpics2/icon_syndication.gif", null, "http://www.archimedes-lab.org/im_navpics2/icon_gallery.gif", null, "http://www.archimedes-lab.org/im_navpics2/icon_ecards.gif", null, "http://www.archimedes-lab.org/im_navpics2/icon_game.gif", null, "http://www.archimedes-lab.org/images5/eureka_b_or.gif", null, "http://www.archimedes-lab.org/images/bottomtruc.gif", null, "http://www.archimedes-lab.org/images/corner2b.gif", null, "http://www.archimedes-lab.org/im_navpics2/arrow_leftSM.gif", null, "http://www.archimedes-lab.org/im_navpics2/arrow_upSM.gif", null, "http://www.archimedes-lab.org/images7/button-italy2Bl.gif", null, "http://www.archimedes-lab.org/images7/button-france2Bl.gif", null, "http://www.archimedes-lab.org/im_maths/Bulb2.gif", null, "http://www.archimedes-lab.org/im_maths/Bulb2.gif", null, "http://www.archimedes-lab.org/im_maths/Bulb2.gif", null, "http://www.archimedes-lab.org/im_maths/mon_p_apr_2k7_L2.gif", null, "http://www.archimedes-lab.org/images5/solution.gif", null, "http://www.archimedes-lab.org/im_maths/mon_p_apr_2k7_SOLU.gif", null, "http://www.archimedes-lab.org/numbers/images_num/radix.gif", null, "http://www.archimedes-lab.org/numbers/images_num/radix.gif", null, "http://www.archimedes-lab.org/numbers/images_num/radix.gif", null, "http://www.archimedes-lab.org/im_maths/sangaku_huvent.gif", null, "http://www.archimedes-lab.org/numbers/images_num/radix.gif", null, "http://www.archimedes-lab.org/numbers/images_num/radix.gif", null, "http://www.archimedes-lab.org/numbers/images_num/radix.gif", null, "http://www.archimedes-lab.org/im_maths/mon_p_apr_2k7_L3.gif", null, "http://www.archimedes-lab.org/numbers/images_num/radix.gif", null, "http://www.archimedes-lab.org/images8/Cup.gif", null, "http://www.archimedes-lab.org/im_maths/lens_math.gif", null, "http://www.archimedes-lab.org/im_maths/vesica_piscis.gif", null, "http://www.archimedes-lab.org/numbers/images_num/Alpha_small.gif", null, "http://www.archimedes-lab.org/numbers/images_num/Pi_small.gif", null, "http://www.archimedes-lab.org/numbers/images_num/Alpha_small.gif", null, "http://www.archimedes-lab.org/images5/content_solution.gif", null, "http://www.archimedes-lab.org/images3/puzzlesolver_petit.gif", null, "http://www.archimedes-lab.org/im_navpics2/arrow_leftSM.gif", null, "http://www.archimedes-lab.org/im_navpics2/arrow_upSM.gif", null, "http://www.archimedes-lab.org/images/transparent.gif", null, "http://www.archimedes-lab.org/im_navpics2/facebook2.gif", null, "http://www.archimedes-lab.org/im_navpics/discuss_comment.gif", null, "http://www.archimedes-lab.org/images5/italiano_flag.gif", null, "http://www.archimedes-lab.org/images5/francais_flagBIS.gif", null, "http://www.archimedes-lab.org/images/fondu.gif", null, "http://www.archimedes-lab.org/images/transparent.gif", null, "http://www.archimedes-lab.org/images/transparent.gif", null, "http://www.archimedes-lab.org/images/corner2.gif", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8359361,"math_prob":0.9779523,"size":2903,"snap":"2019-43-2019-47","text_gpt3_token_len":1033,"char_repetition_ratio":0.114867195,"word_repetition_ratio":0.0192,"special_character_ratio":0.3689287,"punctuation_ratio":0.10810811,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9910673,"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,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,7,null,7,null,7,null,10,null,10,null,2,null,2,null,null,null,null,null,null,null,1,null,5,null,1,null,null,null,null,null,null,null,1,null,null,null,null,null,null,null,1,null,null,null,5,null,1,null,1,null,2,null,1,null,2,null,5,null,5,null,10,null,10,null,null,null,6,null,6,null,7,null,7,null,8,null,null,null,null,null,7,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-10-23T02:06:13Z\",\"WARC-Record-ID\":\"<urn:uuid:428f001d-76bd-410f-83fb-fe184786842e>\",\"Content-Length\":\"40827\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:77fa6883-7772-4b07-9b23-46bf7792ac58>\",\"WARC-Concurrent-To\":\"<urn:uuid:bdfe4e14-5d3c-4819-93b3-2d4f4b45745d>\",\"WARC-IP-Address\":\"104.27.180.43\",\"WARC-Target-URI\":\"http://www.archimedes-lab.org/monthly_puzzles_66.html\",\"WARC-Payload-Digest\":\"sha1:AJ4N76UVX5YYFV4IGBHWBZYDNIGLDEQP\",\"WARC-Block-Digest\":\"sha1:JHTHAST7DJQJNEWML4UST57K34LYHQCO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-43/CC-MAIN-2019-43_segments_1570987828425.99_warc_CC-MAIN-20191023015841-20191023043341-00083.warc.gz\"}"}
https://answers.everydaycalculation.com/add-fractions/3-56-plus-3-70
[ "Solutions by everydaycalculation.com\n\n3/56 + 3/70 is 27/280.\n\n1. Find the least common denominator or LCM of the two denominators:\nLCM of 56 and 70 is 280\n2. For the 1st fraction, since 56 × 5 = 280,\n3/56 = 3 × 5/56 × 5 = 15/280\n3. Likewise, for the 2nd fraction, since 70 × 4 = 280,\n3/70 = 3 × 4/70 × 4 = 12/280", null, "Download our mobile app and learn to work with fractions in your own time:" ]
[ null, "https://answers.everydaycalculation.com/mathstep-app-icon.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7564959,"math_prob":0.9992999,"size":300,"snap":"2020-10-2020-16","text_gpt3_token_len":116,"char_repetition_ratio":0.16891892,"word_repetition_ratio":0.0,"special_character_ratio":0.45333335,"punctuation_ratio":0.072463766,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99656934,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-17T00:16:58Z\",\"WARC-Record-ID\":\"<urn:uuid:47fc5dd6-e633-451e-add5-2a5a5d7258fe>\",\"Content-Length\":\"7465\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:69a6622b-f28e-437f-83fb-e7cb07013e31>\",\"WARC-Concurrent-To\":\"<urn:uuid:11b3fd4d-3a71-4373-8961-2a74b632464e>\",\"WARC-IP-Address\":\"96.126.107.130\",\"WARC-Target-URI\":\"https://answers.everydaycalculation.com/add-fractions/3-56-plus-3-70\",\"WARC-Payload-Digest\":\"sha1:O6EJT7ERF7KFFKWMXNUHWUDAARSIQT7R\",\"WARC-Block-Digest\":\"sha1:B4SB44VSBT2N5A4SRDBWYU6W4MEANFUL\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875141460.64_warc_CC-MAIN-20200217000519-20200217030519-00155.warc.gz\"}"}
https://pos.sissa.it/375/016/
[ "", null, "Volume 375 - 14th International Symposium on Radiative Corrections (RADCOR2019) - Higher-Loop\nThe four-loop slope of the Dirac form factor\nS. Laporta\nFull text: pdf\nPre-published on: December 19, 2019\nPublished on: February 18, 2020\nAbstract\nWe have evaluated with 1100 digits of precision the 4-loop contribution to the slope of the Dirac form factor in QED. The value is\n$$m^2 F_1^{(4)'}(0) = 0.886545673946443145836821730610315359390424032660064745{\\ldots} \\left(\\frac{\\alpha}{\\pi}\\right)^4 \\ .$$\nWe have also obtained a semi-analytical fit to the numerical value. The expression contains harmonic polylogarithms of argument $e^{\\frac{i\\pi}{3}}$, $e^{\\frac{2i\\pi}{3}}$, $e^{\\frac{i\\pi}{2}}$, one-dimensional integrals of products of complete elliptic integrals and six finite parts of master integrals, evaluated up to 4800 digits. We show the correction to the energy levels of the hydrogen atom due to the slope.\nDOI: https://doi.org/10.22323/1.375.0016\nHow to cite\n\nMetadata are provided both in \"article\" format (very similar to INSPIRE) as this helps creating very compact bibliographies which can be beneficial to authors and readers, and in \"proceeding\" format which is more detailed and complete.\n\nOpen Access" ]
[ null, "https://pos.sissa.it/images/headInternal.gif", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6958683,"math_prob":0.8635445,"size":677,"snap":"2020-34-2020-40","text_gpt3_token_len":198,"char_repetition_ratio":0.121842496,"word_repetition_ratio":0.0,"special_character_ratio":0.35302806,"punctuation_ratio":0.08264463,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98286426,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-08-14T14:24:39Z\",\"WARC-Record-ID\":\"<urn:uuid:4f7d1cbd-231e-41d7-9f03-6b3321504f65>\",\"Content-Length\":\"8384\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:466ec75b-2821-4ee7-aedd-e9b33c500793>\",\"WARC-Concurrent-To\":\"<urn:uuid:9572fd86-fd5a-4c7e-911d-6ea379cddf1c>\",\"WARC-IP-Address\":\"93.189.185.133\",\"WARC-Target-URI\":\"https://pos.sissa.it/375/016/\",\"WARC-Payload-Digest\":\"sha1:MSKINP74PZAEMLE6I5GZ6WFL6WOSWDDW\",\"WARC-Block-Digest\":\"sha1:VUMKFQW52F22CVKXPGS63XJBXHAVL5QP\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-34/CC-MAIN-2020-34_segments_1596439739328.66_warc_CC-MAIN-20200814130401-20200814160401-00447.warc.gz\"}"}
https://www.tensorflow.org/versions/r2.1/api_docs/python/tf/quantization/fake_quant_with_min_max_vars_per_channel
[ "# tf.quantization.fake_quant_with_min_max_vars_per_channel\n\nFake-quantize the 'inputs' tensor of type float and one of the shapes: `[d]`,\n\n`[b, d]` `[b, h, w, d]` via per-channel floats `min` and `max` of shape `[d]` to 'outputs' tensor of same shape as `inputs`.\n\n`[min; max]` define the clamping range for the `inputs` data. `inputs` values are quantized into the quantization range (`[0; 2^num_bits - 1]` when `narrow_range` is false and `[1; 2^num_bits - 1]` when it is true) and then de-quantized and output as floats in `[min; max]` interval. `num_bits` is the bitwidth of the quantization; between 2 and 16, inclusive.\n\nBefore quantization, `min` and `max` values are adjusted with the following logic. It is suggested to have `min <= 0 <= max`. If `0` is not in the range of values, the behavior can be unexpected: If `0 < min < max`: `min_adj = 0` and `max_adj = max - min`. If `min < max < 0`: `min_adj = min - max` and `max_adj = 0`. If `min <= 0 <= max`: `scale = (max - min) / (2^num_bits - 1)`, `min_adj = scale * round(min / scale)` and `max_adj = max + min_adj - min`.\n\nThis operation has a gradient and thus allows for training `min` and `max` values.\n\n`inputs` A `Tensor` of type `float32`.\n`min` A `Tensor` of type `float32`.\n`max` A `Tensor` of type `float32`.\n`num_bits` An optional `int`. Defaults to `8`.\n`narrow_range` An optional `bool`. Defaults to `False`.\n`name` A name for the operation (optional).\n\nA `Tensor` of type `float32`." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.5706963,"math_prob":0.9892006,"size":1490,"snap":"2020-45-2020-50","text_gpt3_token_len":458,"char_repetition_ratio":0.12853298,"word_repetition_ratio":0.05964912,"special_character_ratio":0.31543624,"punctuation_ratio":0.15463917,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99442816,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-12-03T01:30:56Z\",\"WARC-Record-ID\":\"<urn:uuid:ce082a3c-6fbb-4d37-bdf6-0ffef6b43cfe>\",\"Content-Length\":\"729038\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6a02ca95-19e5-40d0-9ab5-74f3564ea751>\",\"WARC-Concurrent-To\":\"<urn:uuid:2019c8c4-99c5-4a51-baad-4248adbccb5e>\",\"WARC-IP-Address\":\"172.217.13.238\",\"WARC-Target-URI\":\"https://www.tensorflow.org/versions/r2.1/api_docs/python/tf/quantization/fake_quant_with_min_max_vars_per_channel\",\"WARC-Payload-Digest\":\"sha1:TX75EQXF2NK7OV6YT6MWWOYAS6NIBVTM\",\"WARC-Block-Digest\":\"sha1:FNBIKFGIWGBJHPDLTSGDI3SS56AJXGMP\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141717601.66_warc_CC-MAIN-20201203000447-20201203030447-00097.warc.gz\"}"}
https://www.chinaedu.com/article/1173728.html
[ "# 高一上学期物理曲线运动万有引力\n\n凡事预则立,不预则废。学习物理需要讲究方法和技巧,更要学会对知识点进行归纳整理。下面是学习啦小编为大家整理的高一上学期物理曲线运动万有引力,希望对大家有所帮助!", null, "质点的运动(2)——曲线运动万有引力\n\n1)平抛运动\n\n1、水平方向速度Vx=Vo2、竖直方向速度Vy=gt\n\n3、水平方向位移Sx=Vot4、竖直方向位移(Sy)=gt^2/2\n\n5、运动时间t=(2Sy/g)1/2(通常又表示为(2h/g)1/2)\n\n6、合速度Vt=(Vx^2+Vy^2)1/2=Vo^2+(gt)^21/2\n\n合速度方向与水平夹角β:tgβ=Vy/Vx=gt/Vo\n\n7、合位移S=(Sx^2+Sy^2)1/2,\n\n位移方向与水平夹角α:tgα=Sy/Sx=gt/2Vo\n\n注:(1)平抛运动是匀变速曲线运动,加速度为g,通常可看作是水平方向的匀速直线运动与竖直方向的自由落体运动的合成。(2)运动时间由下落高度h(Sy)决定与水平抛出速度无关。(3)θ与β的关系为tgβ=2tgα。(4)在平抛运动中时间t是解题关键。(5)曲线运动的物体必有加速度,当速度方向与所受合力(加速度)方向不在同一直线上时物体做曲线运动。\n\n2)匀速圆周运动\n\n1、线速度V=s/t=2πR/T2、角速度ω=Φ/t=2π/T=2πf\n\n3、向心加速度a=V^2/R=ω^2R=(2π/T)^2R4、向心力F心=Mv^2/R=mω^2*R=m(2π/T)^2*R\n\n5、周期与频率T=1/f6、角速度与线速度的关系V=ωR\n\n7、角速度与转速的关系ω=2πn(此处频率与转速意义相同)\n\n周期(T):秒(s)转速(n):r/s半径(R):米(m)线速度(V):m/s\n\n注:(1)向心力可以由具体某个力提供,也可以由合力提供,还可以由分力提供,方向始终与速度方向垂直。(2)做匀速度圆周运动的物体,其向心力等于合力,并且向心力只改变速度的方向,不改变速度的大小,因此物体的动能保持不变,但动量不断改变。\n\n3)万有引力\n\n1、开普勒第三定律T2/R3=K(=4π^2/GM)R:轨道半径T:周期K:常量(与行星质量无关)\n\n2、万有引力定律F=Gm1m2/r^2G=6、67×10^-11N·m^2/kg^2方向在它们的连线上\n\n3、天体上的重力和重力加速度GMm/R^2=mgg=GM/R^2R:天体半径(m)\n\n4、卫星绕行速度、角速度、周期V=(GM/R)1/2ω=(GM/R^3)1/2T=2π(R^3/GM)1/2\n\n5、第一(二、三)宇宙速度V1=(g地r地)1/2=7、9Km/sV2=11、2Km/sV3=16、7Km/s\n\n6、地球同步卫星GMm/(R+h)^2=m*4π^2(R+h)/T^2h≈3、6kmh:距地球表面的高度\n\n注:(1)天体运动所需的向心力由万有引力提供,F心=F万。(2)应用万有引力定律可估算天体的质量密度等。(3)地球同步卫星只能运行于赤道上空,运行周期和地球自转周期相同。(4)卫星轨道半径变小时,势能变小、动能变大、速度变大、周期变小。(5)地球卫星的最大环绕速度和最小发射速度均为7、9Km/S。\n\n以上就是本期整理的全部内容了,想要了解的更多内容,同学们请持续关注101教育。如果你觉得对你有所帮助,就请分享给你的小伙伴们吧!\n\n## 精品学习资料", null, "" ]
[ null, "https://www.chinaedu.com/uploads/2020/12/10/feb9b3b2de2dddfabe58c6abc7f9d461.jpg", null, "https://www.chinaedu.com/bundles/prceducms/frontend/images/downloadPopEwm.png", null ]
{"ft_lang_label":"__label__zh","ft_lang_prob":0.89765394,"math_prob":0.997746,"size":1416,"snap":"2021-31-2021-39","text_gpt3_token_len":1349,"char_repetition_ratio":0.05240793,"word_repetition_ratio":0.0,"special_character_ratio":0.34251413,"punctuation_ratio":0.006756757,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.980374,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,1,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-25T00:51:07Z\",\"WARC-Record-ID\":\"<urn:uuid:5b99cc05-145e-4bac-b593-9364673cec93>\",\"Content-Length\":\"51560\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:75b2bd23-addc-4922-b738-e7f4c13e486e>\",\"WARC-Concurrent-To\":\"<urn:uuid:f8ebbcbd-e0f9-4ac9-9404-1d7e2aad7dff>\",\"WARC-IP-Address\":\"116.55.250.239\",\"WARC-Target-URI\":\"https://www.chinaedu.com/article/1173728.html\",\"WARC-Payload-Digest\":\"sha1:DVJQ5YS4OBJNHKSJLOYS5YV65IO24HQL\",\"WARC-Block-Digest\":\"sha1:IFO2PELZ3TF7MT5U3ZSRTZJEKQM3ML5O\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780057584.91_warc_CC-MAIN-20210924231621-20210925021621-00343.warc.gz\"}"}
https://treasurytoday.com/treasury-practice/the-yield-curve-part-vi/
[ "## The yield curve part VI\n\n##### Published: Nov 2005\n\nContinuing our series on yield curves, this month we explain how to construct a zero-coupon yield curve. We consider two-year and three-year maturities.\n\nNext month we will conclude our series on yield curves by demonstrating how the resulting calculations are graphically represented.\n\nZero-coupon yield curves can actually be constructed from a series of coupon-paying bonds. This is a technique known as ‘bootstrapping’. For example, consider the following bonds which pay annual coupons and have a maturity of two and three years respectively.\n\n#### Two year maturity\n\nThe investor will pay 98.435 for the first bond, to receive 5 (the coupon) in one year and 105 (the coupon and repayment at par) at the end of two years.\n\nIn order to calculate the equivalent zero-coupon bond structure, we take the 98.435 that the investor pays to purchase the bond and assume the investor borrows 4.717 to offset the interim coupon payment – to make this calculation you need the one-year interest rate and we have assumed a oneyear rate of 6%. So the net cash outflow is 93.718.\n\nAt the end of the first year, the investor will use the interim coupon payment to repay the borrowing of 4.717, which with interest has become 5. At the end of the second year, the investor will receive 105.\n\nThis allows us to identify the two-year zero-coupon rate. This is the rate which discounts 105 to 93.718. To calculate this, we use the following formula:\n\n$$i\\:=\\:\\frac{FV}{PV}\\:1 / n\\:\\: – \\:1$$\n\nWhere,\n\n• $$i\\:= \\:interest\\: rate$$\n• $$FV\\:=\\: future \\:value$$\n• $$PV\\:= \\:present \\:value*$$\n• $$n\\:= \\:number\\: of\\: years.$$\n\nIn this case,\n\n$$i\\:=\\:\\frac{105}{93.718} ^{1 / 2} \\:– \\:1$$\n\n$$i\\:=\\:0.05848$$\nSo the two-year zero-coupon rate is 5.848%\n\n*the present value must be entered as a negative value if using an HP12C or equivalent calculator because it is an expenditure.\n\n#### Three year maturity\n\nWe can also use this information to calculate a three-year zero-coupon rate. In this case, we need to construct an artificial zero-coupon bond, by identifying how much the investor would need to borrow to offset the payment of the two interim coupons of 4.\n\nBy using the one-year rate of 6%, we can calculate the investor would need to borrow 3.774 today to match the coupon of 4 in one year.\n\nWe also need to calculate how much the investor would need to borrow today, to match the anticipated two-year coupon receipt of another 4. For this, we use the two-year rate which will be the same as the zero-coupon rate we calculated earlier – 5.848%.\n\nThe two-year discount factor is $$\\frac{1}{1.058482}\\:=\\:0.8926\\:\\:$$ Using this, we can calculate that the investor would need to borrow 3.570 today to receive 4 in two years.\n\nIn order to calculate the zero-coupon rate, we assume the investor purchases the bond for 96.784 and borrows 7.344 to compensate for the two interim interest payments. The investor’s initial outlay is therefore 89.440.\n\nUsing the same formula as outlined above $$i\\:=\\:\\frac{FV}{PV}\\:1/n\\:–\\:1$$ , we can then identify the three-year zerocoupon rate. In other words, the rate which discounts 104 to 89.440.\n\nIn this case:\n\n$$i\\:=\\:\\frac{104}{89.440}\\:^{1 / 3} – 1$$\n\n$$i\\:=\\:0.05156$$\n\nSo the three-year zero-coupon rate is 5.156%\n\nUsing the different zero-coupon rates we have calculated, it is then possible to create a series of zero-coupon yields and then construct the yield curve." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9212681,"math_prob":0.994929,"size":3600,"snap":"2023-40-2023-50","text_gpt3_token_len":938,"char_repetition_ratio":0.15100111,"word_repetition_ratio":0.033955857,"special_character_ratio":0.28694445,"punctuation_ratio":0.14713542,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99985135,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-09T18:14:00Z\",\"WARC-Record-ID\":\"<urn:uuid:2a4f138e-3504-4efa-abbd-eacc561d588a>\",\"Content-Length\":\"96459\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:29e6a827-90d2-46a8-aebf-efa8b3aa9b3c>\",\"WARC-Concurrent-To\":\"<urn:uuid:835db2e3-14b9-4d69-b18c-d0c1d890ac7e>\",\"WARC-IP-Address\":\"160.153.137.128\",\"WARC-Target-URI\":\"https://treasurytoday.com/treasury-practice/the-yield-curve-part-vi/\",\"WARC-Payload-Digest\":\"sha1:KBVSPHRWTYJPJXHSERGXLJVBQ7TI2NVO\",\"WARC-Block-Digest\":\"sha1:T653FZJ6FCR22LYIEH5VAWUOFFGC3JRW\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100942.92_warc_CC-MAIN-20231209170619-20231209200619-00464.warc.gz\"}"}
https://www.colorhexa.com/44badb
[ "In a RGB color space, hex #44badb is composed of 26.7% red, 72.9% green and 85.9% blue. Whereas in a CMYK color space, it is composed of 68.9% cyan, 15.1% magenta, 0% yellow and 14.1% black. It has a hue angle of 193.1 degrees, a saturation of 67.7% and a lightness of 56.3%. #44badb color hex could be obtained by blending #88ffff with #0075b7. Closest websafe color is: #33cccc.\n\n• R 27\n• G 73\n• B 86\nRGB color chart\n• C 69\n• M 15\n• Y 0\n• K 14\nCMYK color chart\n\n#44badb color description : Soft cyan.\n\nThe hexadecimal color #44badb has RGB values of R:68, G:186, B:219 and CMYK values of C:0.69, M:0.15, Y:0, K:0.14. Its decimal value is 4504283.\n\nHex triplet RGB Decimal 44badb `#44badb` 68, 186, 219 `rgb(68,186,219)` 26.7, 72.9, 85.9 `rgb(26.7%,72.9%,85.9%)` 69, 15, 0, 14 193.1°, 67.7, 56.3 `hsl(193.1,67.7%,56.3%)` 193.1°, 68.9, 85.9 33cccc `#33cccc`\nCIE-LAB 70.496, -22.383, -26.147 32.726, 41.458, 73.292 0.222, 0.281, 41.458 70.496, 34.419, 229.436 70.496, -44.125, -38.171 64.388, -21.956, -22.417 01000100, 10111010, 11011011\n\n``#44badb` `rgb(68,186,219)``\n• #db6544\n``#db6544` `rgb(219,101,68)``\nComplementary Color\n• #44dbb1\n``#44dbb1` `rgb(68,219,177)``\n``#44badb` `rgb(68,186,219)``\n• #446fdb\n``#446fdb` `rgb(68,111,219)``\nAnalogous Color\n• #dbb144\n``#dbb144` `rgb(219,177,68)``\n``#44badb` `rgb(68,186,219)``\n• #db446f\n``#db446f` `rgb(219,68,111)``\nSplit Complementary Color\n``#badb44` `rgb(186,219,68)``\n``#44badb` `rgb(68,186,219)``\n• #db44ba\n``#db44ba` `rgb(219,68,186)``\n• #44db65\n``#44db65` `rgb(68,219,101)``\n``#44badb` `rgb(68,186,219)``\n• #db44ba\n``#db44ba` `rgb(219,68,186)``\n• #db6544\n``#db6544` `rgb(219,101,68)``\n• #2291b1\n``#2291b1` `rgb(34,145,177)``\n• #26a3c6\n``#26a3c6` `rgb(38,163,198)``\n• #2fb2d7\n``#2fb2d7` `rgb(47,178,215)``\n``#44badb` `rgb(68,186,219)``\n• #59c2df\n``#59c2df` `rgb(89,194,223)``\n• #6fcae3\n``#6fcae3` `rgb(111,202,227)``\n• #84d2e7\n``#84d2e7` `rgb(132,210,231)``\nMonochromatic Color\n\nBelow, you can see some colors close to #44badb. Having a set of related colors can be useful if you need an inspirational alternative to your original color choice.\n\n• #44dbd6\n``#44dbd6` `rgb(68,219,214)``\n• #44d3db\n``#44d3db` `rgb(68,211,219)``\n• #44c7db\n``#44c7db` `rgb(68,199,219)``\n``#44badb` `rgb(68,186,219)``\n``#44addb` `rgb(68,173,219)``\n• #44a1db\n``#44a1db` `rgb(68,161,219)``\n• #4494db\n``#4494db` `rgb(68,148,219)``\nSimilar Colors\n\nThis text has a font color of #44badb.\n\n``<span style=\"color:#44badb;\">Text here</span>``\n\nThis paragraph has a background color of #44badb.\n\n``<p style=\"background-color:#44badb;\">Content here</p>``\n\nThis element has a border color of #44badb.\n\n``<div style=\"border:1px solid #44badb;\">Content here</div>``\nCSS codes\n``.text {color:#44badb;}``\n``.background {background-color:#44badb;}``\n``.border {border:1px solid #44badb;}``\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, #02090a is the darkest color, while #f9fdfe is the lightest one.\n\n• #02090a\n``#02090a` `rgb(2,9,10)``\n• #05161b\n``#05161b` `rgb(5,22,27)``\n• #08242b\n``#08242b` `rgb(8,36,43)``\n• #0b313c\n``#0b313c` `rgb(11,49,60)``\n• #0f3f4c\n``#0f3f4c` `rgb(15,63,76)``\n• #124c5d\n``#124c5d` `rgb(18,76,93)``\n• #155a6d\n``#155a6d` `rgb(21,90,109)``\n• #18677e\n``#18677e` `rgb(24,103,126)``\n• #1b758e\n``#1b758e` `rgb(27,117,142)``\n• #1e829e\n``#1e829e` `rgb(30,130,158)``\n• #2290af\n``#2290af` `rgb(34,144,175)``\n• #259ebf\n``#259ebf` `rgb(37,158,191)``\n• #28abd0\n``#28abd0` `rgb(40,171,208)``\n• #34b4d8\n``#34b4d8` `rgb(52,180,216)``\n``#44badb` `rgb(68,186,219)``\n• #54c0de\n``#54c0de` `rgb(84,192,222)``\n• #65c6e1\n``#65c6e1` `rgb(101,198,225)``\n• #75cce4\n``#75cce4` `rgb(117,204,228)``\n• #86d2e8\n``#86d2e8` `rgb(134,210,232)``\n• #96d8eb\n``#96d8eb` `rgb(150,216,235)``\n• #a7deee\n``#a7deee` `rgb(167,222,238)``\n• #b7e4f1\n``#b7e4f1` `rgb(183,228,241)``\n• #c8ebf4\n``#c8ebf4` `rgb(200,235,244)``\n• #d8f1f7\n``#d8f1f7` `rgb(216,241,247)``\n• #e8f7fb\n``#e8f7fb` `rgb(232,247,251)``\n• #f9fdfe\n``#f9fdfe` `rgb(249,253,254)``\nTint Color Variation\n\nA tone is produced by adding gray to any pure hue. In this case, #899396 is the less saturated color, while #22cdfd is the most saturated one.\n\n• #899396\n``#899396` `rgb(137,147,150)``\n• #80989f\n``#80989f` `rgb(128,152,159)``\n• #779da8\n``#779da8` `rgb(119,157,168)``\n• #6fa2b0\n``#6fa2b0` `rgb(111,162,176)``\n• #66a7b9\n``#66a7b9` `rgb(102,167,185)``\n• #5eacc1\n``#5eacc1` `rgb(94,172,193)``\n• #55b0ca\n``#55b0ca` `rgb(85,176,202)``\n• #4db5d2\n``#4db5d2` `rgb(77,181,210)``\n``#44badb` `rgb(68,186,219)``\n• #3bbfe4\n``#3bbfe4` `rgb(59,191,228)``\n• #33c4ec\n``#33c4ec` `rgb(51,196,236)``\n• #2ac8f5\n``#2ac8f5` `rgb(42,200,245)``\n• #22cdfd\n``#22cdfd` `rgb(34,205,253)``\nTone Color Variation\n\n# Color Blindness Simulator\n\nBelow, you can see how #44badb 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.5374741,"math_prob":0.62599516,"size":3722,"snap":"2020-10-2020-16","text_gpt3_token_len":1667,"char_repetition_ratio":0.12076385,"word_repetition_ratio":0.011111111,"special_character_ratio":0.5354648,"punctuation_ratio":0.23809524,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9899484,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-04-04T03:06:52Z\",\"WARC-Record-ID\":\"<urn:uuid:dcde6a91-a643-41da-b268-68ed128ae464>\",\"Content-Length\":\"36330\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:78794d72-0900-42b0-8866-c69902e544f9>\",\"WARC-Concurrent-To\":\"<urn:uuid:27c1ea92-0e67-4e48-a622-a423b20842f9>\",\"WARC-IP-Address\":\"178.32.117.56\",\"WARC-Target-URI\":\"https://www.colorhexa.com/44badb\",\"WARC-Payload-Digest\":\"sha1:UDNLWKSRI4OII5SJU35LTPDSCHALD2QK\",\"WARC-Block-Digest\":\"sha1:4LIVJ7DUC3UPZNNEPPDES2NQNPQTLXKE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-16/CC-MAIN-2020-16_segments_1585370519111.47_warc_CC-MAIN-20200404011558-20200404041558-00151.warc.gz\"}"}
https://www.mrexcel.com/board/threads/converting-a-number-into-particular-format.1135911/
[ "# Converting a number into particular format\n\n#### Harry_1234\n\n##### New Member\nHello,\n\nWhat is the best way to convert following format into e.164 in excel i.e. i would like to convert numbers in the format 123 456-0001 to \\+11234560001.\nColumn A Column B\n\n123 456-0001 \\+11234560001\n123 456-0005 \\+11234560005\n123 456-1000 \\+11234561000\n\n### Excel Facts\n\nSpell Check in Excel\nPress F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)\n\n#### kennypete\n\n##### Board Regular\nThe B1 formula here should do the trick:\nBook2\nAB\n1123 456-0001\n\\+11234560001\nSheet1\nCell Formulas\nRangeFormula\nB1B1=INT(SUBSTITUTE(SUBSTITUTE(A1,\"-\",\"\"),\" \",\"\"))\n\nYou can either prepend the \"\\+1\" or number format adding \"\\+1\" (what I did here).\nWhether this is the \"best\" way probably depends on factors that are not outlined here - e.g. I have presumed that the 123 456-0001 is text and not a representation presented by a formula, etc.\n\n#### Harry_1234\n\n##### New Member\nThe B1 formula here should do the trick:\nBook2\nAB\n1123 456-0001\n\\+11234560001\nSheet1\nCell Formulas\nRangeFormula\nB1B1=INT(SUBSTITUTE(SUBSTITUTE(A1,\"-\",\"\"),\" \",\"\"))\n\nYou can either prepend the \"\\+1\" or number format adding \"\\+1\" (what I did here).\nWhether this is the \"best\" way probably depends on factors that are not outlined here - e.g. I have presumed that the 123 456-0001 is text and not a representation presented by a formula, etc.\nThank you!! This was really helpful." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6340333,"math_prob":0.84211797,"size":568,"snap":"2020-24-2020-29","text_gpt3_token_len":199,"char_repetition_ratio":0.19503546,"word_repetition_ratio":0.8,"special_character_ratio":0.55985916,"punctuation_ratio":0.08928572,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9668592,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-07-04T14:59:51Z\",\"WARC-Record-ID\":\"<urn:uuid:4ca79d39-d4dc-493b-b2a6-d4ffb117fe12>\",\"Content-Length\":\"63588\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:bd36d950-dfd6-4968-bdbe-7bba5ea303cc>\",\"WARC-Concurrent-To\":\"<urn:uuid:9a30ea61-9c66-4d68-897f-c07c61e88d91>\",\"WARC-IP-Address\":\"216.92.17.166\",\"WARC-Target-URI\":\"https://www.mrexcel.com/board/threads/converting-a-number-into-particular-format.1135911/\",\"WARC-Payload-Digest\":\"sha1:VZOCYJV5DA62CXZNRC2UFWABUVU3FRIX\",\"WARC-Block-Digest\":\"sha1:LX2DOGYBDFP65MEBBNNJC3JAQRH6TN2F\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593655886178.40_warc_CC-MAIN-20200704135515-20200704165515-00098.warc.gz\"}"}
https://m.scirp.org/papers/70083
[ "Modified Diode Assisted Extended Boost Quasi Z-Source Inverter for PV Applications\nAuthor(s) N. Hemalatha1*, R. Seyezhai2\nABSTRACT\nThe design, simulation and implementation of modified diode assisted extended boost q-ZSI (MDAEB q-ZSI) for photovoltaic application are proposed in this paper. It is the most efficient topology that provides a single stage conversion for PV systems by providing high input voltage gain, reduced number of components count, increased voltage boost property, reduced voltage ratings, reduced voltage stress across the switches and simplified control strategies. Its unique capability in single stage conversion with improved voltage gain is used for voltage buck and boost function. The operating modes and the steady state theoretical analysis of voltage boost, control methods and a system design guide for the proposed topology are investigated in this paper. A simulation model of the PV system based on MDAEB q-ZSI has been built in MATLAB/ SIMULINK. Performance parameters such as Total harmonic distortion (THD), voltage gain, voltage stress and boost factor are computed and compared with the conventional quasi z-source inverter. The prototype model for MDAEB q-ZSI is developed and the results are validated.\n\nReceived 7 April 2016; accepted 1 May 2016; published 25 August 2016", null, "1. Introduction\n\nIn standalone PV systems, the power electronic converters play a vital role in the conversion of DC current of PV panels into AC to supply the load, with maximum efficiency and superior performance. The two stages of DC-DC-AC power conversion may result in usage of more circuit components, lower efficiency, higher cost and larger size in comparison to the single stage one . The modified diode assisted extended boost quasi-Z-source inverter has a single power conversion stage which perfectly suits for interfacing of renewable energy sources.\n\nThe efficiency and the voltage gain of the conventional q-ZSI are limited and comparable with the traditional system of a voltage source inverter with the auxiliary step-up DC/DC converter in the input stage . The concept of extending the quasi ZSI gain without increasing the number of active switches has been reported in the literature . These new converter topologies are known as extended boost q-ZSI and can be generally classified as capacitor assisted, diode assisted topologies and hybrid topologies . In this paper, MDAEB q-ZSI with continuous input current is presented, analyzed and compared for the simple boost control technique. Simulation studies of the proposed inverter configuration are carried out in MATLAB/SIMULINK. The capacitor voltage in the impedance network, voltage gain, boost factor, voltage stress and THD are calculated and compared with the quasi z-source inverter. Hardware of the modified diode-assisted QZSI is developed and the simulation results are verified.\n\n2. Operating Modes and Steady State Analysis of MDAEB q-ZSI\n\nThe proposed topology of MDAEB q-ZSI is presented in Figure 1. The topology of MDAEB q-ZSI could be derived by the adding of one capacitor (C3), one inductor (L3) and two diodes (D2 and D3) to the conventional q-ZSI. The connection points of the capacitor C3 is interchanged to reduce its operating voltages. Figure 2(a) and Figure 2(b) show the equivalent circuits of the MDAEB q-ZSI for the shoot-through and the active states.\n\nThe extended boost q-ZSI has two operational modes at the dc side, non-shoot-through states and the shoot- through state . During the shoot through state the q-ZSI performs the voltage boost function. During the active state, the previously stored magnetic energy in turn provides the voltage boost at the load terminals. The unique LC impedance network provides the boosting function without disturbing the operation inverter - .\n\n2.1. Mode I (Shoot through Mode)\n\nLet T = Operating period of the q-ZSI,\n\nTa = Active state,\n\nTs = Shoot through state,\n\nDa = The duty cycle of an active state,\n\nDs = The duty cycles of shoot-through state,", null, "(1)", null, ". (2)\n\nFigure 1. Modified diode assisted extended boost q-ZSI based PV system.\n\n(a)(b)\n\nFigure 2. Operating modes of MDAEB q-ZSI: (a) Mode-I; (b) Mode-II.\n\nThe equivalent circuit of the MDAEB q-ZSI during the shoot-through state is shown in Figure 2(a). A unique LC impedance network is interfaced between the source and the inverter to achieve voltage boost and inversion in a single stage. During the shoot through state D3 is conducting and D1 and D2 diodes are in blocking state. All the inductors in the impedance network get charged up. Energy is transferred from the source to the inductor or the capacitor to the inductor when the capacitors are getting discharged.\n\nThe voltage across the inductors can be represented as", null, "(3)", null, "(4)", null, ". (5)\n\n2.2. Mode II (Non-Shoot through Mode)\n\nThe equivalent circuit of the MDAEB q-ZSI during the active state is shown in Figure 2(b). During the non shoot through state the diodes D1 and D2 are conducting and D3 is in blocking state. The inductors across the impedance network discharge and the capacitors get charged.\n\nThe voltage of the inductors can be represented as", null, "(6)", null, "(7)", null, ". (8)", null, ". (9)\n\nThe boost factor of the input voltage is", null, ". (10)\n\n3. Simulation Results\n\nFrom the design considerations and specifications, the component parameters are calculated and it is presented in Table 1. MDAEB q-ZSI can be used for grid connected and standalone applications - . The simulation model of PV energy generation system with MDAEB q-ZSI for the boost factor B = 2 is shown in Figure 3. This is constructed in the MATLAB/SIMULINK environment. Figure 4 shows the impedance network of MDAEB q-ZSI. The gating pattern of the pulse generation using the simple boost control technique is shown in Figure 5.\n\nFigure 3. Matlab/Simulink circuit of PV based MDAEB q-ZSI.\n\nTable 1. Simulation parameters.\n\nFigure 4. Impedance Network of MDAEB q-ZSI.\n\nFigure 5. Shoot through pulses.\n\n3.1. PV Array Characteristics\n\nFigure 6 shows the PV array characteristics. The characteristics are plotted for different insolation level at constant temperature.\n\n3.2. Continuous Input Current\n\nThe proposed topology has continuous input current as shown in Figure 7.\n\nThe proposed topology operates normally producing the demanded boost of the input voltage for the boost factor. The simulation results of DC link voltage of MDAEB q-ZSI is shown in Figure 8.\n\nFrom Figure 8, it is clear that for the input voltage of 21 V, MDAEB topology produce the boost voltage of 39 V.\n\n3.4. Operating Voltages of the Capacitors in the Cascaded QZS Network\n\nThe theoretical and simulated results of the capacitor voltages across the impedance network for the proposed topology are compared in Table 2.\n\nFigure 6. PV array characteristics.\n\nFigure 7. Input voltage & current waveforms of MDAEB q-ZSI.\n\nFigure 8. DC Link voltage of MDAEB q-ZSI.\n\nTable 2. Operating voltages of capacitors in the impedance network.\n\nFrom Table 2 it is clear that the operating voltage of the capacitor C3 of MDAEB q-ZSI was reduced by more than five times by changing the interconnection points of the capacitors C3 as in Figure 1.\n\nFigure 9 shows the operating voltages of the capacitors in the MDAEB q-ZSI.\n\nFigure 9. Capacitor voltages of MDAEB q-ZSI.\n\nFrom Figure 9 the average voltage across the capacitor C3 of MDAEB q-ZSI was reduced more than six times when compared to its basic diode assisted topology. Figure 10 shows that the effect of modulation index on capacitor voltages of MDAEB q-ZSI.\n\nFrom Figure 10 it is clear that the average value of voltage across the capacitor C3 of MDAEB q-ZSI was reduced with the increasing modulation index.\n\n3.5. Output Voltage and Current Waveforms\n\nThe simulation results of the output line voltage, load voltage and load current waveforms of MDAEB q-ZSI for the simple boost modulation technique without filter are shown in Figures 11-13.\n\nThe simulation results of line voltage, load voltage and load current waveforms of MDAEB q-ZSI for Simple Boost technique with filter are shown in Figures 14-16. Filtered three phase output line voltage is shown in Figure 17.\n\n4. Performance Characteristics of MDAEB Q-ZSI\n\nPerformance parameters of the MDAEB q-ZSI are analyzed for various modulation indices for the given boost factor. They are Total Harmonic Distortion, inductor current ripple of q-ZSI, capacitor voltage ripple, voltage gain and voltage stress, boost factor.\n\n4.1. Total Harmonic Distortion (THD)\n\nTotal Harmonic Distortion of MDAEB q-ZSI is analyzed and compared with the conventional quasi ZSI for the simple boost modulation technique.THD is calculated for various modulation index values and the effect of the modulation indices on THD and the comparison is shown in Figure 18.\n\nFrom Figure 18 THD increase with the decrease in the modulation index and the MDAEB q-ZSI has reduced THD, when compared to the quasi ZSI.\n\n4.2. Voltage Gain (G)\n\nVoltage Gain, G is calculated for the simple boost modulation technique. In Figure 19 the voltage gain G is compared with different values of modulation indices for the simple boost modulation technique.\n\nVoltage gain, G is given by,\n\n(13)\n\nwhere M = Modulation Index,\n\nB = Boost Factor.\n\nFrom Figure 19 it is clear that when compared with the conventional quasi ZSI, the proposed topology have increased voltage gain for the same value of the modulation index (Ma).\n\n4.3. Boost Factor (B)\n\nThe boost factor is calculated for the simple boost modulation technique. In Figure 20, the boost factor B is compared with different values of the shoot through duty cycle Ds. Boost factor is given by\n\nFigure 10. Effect of modulation index on capacitor voltage of MDAEB q-ZSI.\n\nFigure 11. Line voltage waveform for MDAEB q-ZSI.\n\nFigure 13. Load current waveform for MDAEB q-ZSI.\n\nFigure 14. Filtered output line voltage waveform.\n\nFigure 15. Filtered output load voltage waveform.\n\nFigure 16. Filtered output load current waveform.\n\nFigure 17. Filtered output line voltage waveform.\n\nFigure 18. Effect of modulation index on THD.\n\nFigure 19. Comparison of voltage gain.\n\nFigure 20. Boost factor comparison.\n\n(14)\n\nFrom Figure 20, the proposed topology have increased boost factor of the input voltage for the same value of the shoot through duty cycle Ds when compared with the conventional q-ZSI.\n\n4.4. Voltage Stress\n\nVoltage stress is compared with voltage gain for the simple boost modulation technique. Voltage stress is calculated from the voltage gain G. Figure 21 shows the variation of voltage stress/DC voltage with voltage gain (G) for MDAEB q-ZSI and the traditional quasi ZSI.\n\nVoltage stress across the devices is given by\n\n(15)\n\nFrom Figure 21 it is clear that the simple boost PWM control technique gives better voltage gain and reduced voltage stress for the MDAEB q-ZSI than the conventional quasi ZSI.\n\nFrom the simulation results it is observed that MDAEB q-ZSI gives higher RMS value of the output voltage, higher voltage gain, increased boost factor, reduced voltage stress and reduced THD when compared with the traditional quasi ZSI for the simple boost modulation technique. It provides reduced operating voltages of the capacitor C3. MDAEB q-ZSI is the preferred topology for the photovoltaic applications when compared to the conventional q-ZSI.\n\n5. Experimental Results\n\nIn order to verify the theoretical assumptions the laboratory setup for MDAEB q-ZSI was assembled. The experimental setup for the PV connected MDAEB q-ZSI was shown in Figure 22.\n\nThe shoot through pulses and the gate pulses during the switching sequence of the three phase inverter are shown in Figure 23 and Figure 24. The shoot through duty cycle is 0.178 and the modulation index is 0.822.\n\nThe boost voltage and the load voltage of the MDAEB q-ZSI are shown in Figure 25 and Figure 26. For the input voltage of 21 V, the proposed topology produces the boost voltage of 42 V for the boost factor B = 2.\n\nFrom the hardware results it is shown that modified diode assisted extended boost q-ZSI have continuous input current, high dc link voltage ,high demanded boost ,reduced voltage stress, increased voltage gain and increased load voltage.\n\nFigure 21. Effect of voltage gain on voltage stress.\n\nFigure 22. Experimental setup.\n\nFigure 23. The shoot through pulses.\n\nFigure 24. Gate pulses.\n\nFigure 25. Boost voltage.\n\nFigure 26. Output line-line voltage.\n\n6. Conclusion\n\nIn this paper, the topology of modified diode assisted extended boost quasi ZSI for PV applications has been discussed and compared with the conventional q-ZSI. The detailed steady state operation of the proposed topology is analyzed and simulated. Simulation results validate the theoretical analysis. From the results, it is observed that the voltage stress across the impedance network is reduced and the operating voltages of the capacitors are reduced by five times; reduced THD, higher boost factor and better spectral quality of the output are obtained compared to QZSI configuration. Therefore, the proposed topology of extended QZSI is suited for PV applications.\n\nAcknowledgements\n\nThe authors wish to thank the management of SSN institutions for providing the computational facilities to carry out this work.\n\nNOTES\n\n*Corresponding author.\n\nCite this paper\nHemalatha, N. and Seyezhai, R. (2016) Modified Diode Assisted Extended Boost Quasi Z-Source Inverter for PV Applications. Circuits and Systems, 7, 3271-3284. doi: 10.4236/cs.2016.710279.\nReferences\n   Yang, L.-S., Liang, T.-J. and Chen, J.-F. (2009) Transformer Less DC-DC Converters with High Step-Up Voltage Gain. IEEE Transactions on Industrial Electronics, 56, 3144-3152.\nhttp://dx.doi.org/10.1109/TIE.2009.2022512\n\n   Badin, R., Huang, Y., Peng, F.Z. and Kim, H.G. (2007) Grid Interconnected Z Source PV System. IEEE Power Electronics Specialists Conference (PESC’07), Orlando, 17-21 June 2007, 2328-2333.\nhttp://dx.doi.org/10.1109/pesc.2007.4342373\n\n   Huang, Y., Shen, M.S., Peng, F.Z. and Wang, J. (2006) Z-Source Inverter for Residential Photovoltaic Systems. IEEE Transactions on Power Electronics, 21, 1776-1782.\nhttp://dx.doi.org/10.1109/TPEL.2006.882913\n\n   Gajanayake, J., Luo, F.L., Gooi, H.B., So, P.L. and Siow, L.K. (2009) Extended Boost Z-Source Inverters. IEEE Energy Conversion Congress and Exposition (ECCE’09), San Jose, San Jose, CA, 20-24 September 2009, 3845-3852.\n\n   Gajanayake, C.J., et al. (2010) Extended-Boost Z-Source Inverters. IEEE Transactions on Power Electronics, 25, 2642-2652.\nhttp://dx.doi.org/10.1109/TPEL.2010.2050908\n\n   Vinnikov, D., Roasto, I., Strzelecki, R. and Adamowicz, M. (2010) Performance Improvement Method for the Voltage- Fed q-ZSI with Continuous Input Current. IEEE Mediterranean Electrotechnical. Conference (MELECON’10), Valletta, 26-28 April 2010, 1459-1464.\n\n   Vinnikov, D., Roasto, I. and Jalakas, T. (2010) Comparative Study of Capacitor-Assisted Extended Boost qZSIs Operating in Continuous Conduction Mode. 12th Biennial Baltic Electronics Conference (BEC), Tallinn, 4-6 October 2010, 297-300.\n\n   Li, Y., Jiang, S., Cintron-Rivera, J.G. and Peng, F.Z. (2013) Modeling and Control of Quasi-Z-Source Inverter for Distributed Generation Applications. IEEE Transactions on Industrial Electronics, 60, 1532-1541.\nhttp://dx.doi.org/10.1109/TIE.2012.2213551\n\n   Peng, F.Z. (2003) Z-Source Inverter. IEEE Transactions on Industry Applications, 39, 504-510.\nhttp://dx.doi.org/10.1109/TIA.2003.808920\n\n   Anderson, J. and Peng, F.Z. (2008) Four Quasi-Z-Source Inverters. IEEE Power Electronics Specialists Conference (PESC’08), Rhodes, 15-19 June 2008, 2743-2749.\nhttp://dx.doi.org/10.1109/pesc.2008.4592360\n\n   Li, Y., Anderson, J., Peng, F.Z. and Liu, F.Z. (2009) Quasi-Z-Source Inverter for Photovoltaic Power Generation Systems. Applied Power Electronics Conference and Exposition (APEC 2009), Washington, 15-19 February 2009, 918- 924.\nhttp://dx.doi.org/10.1109/APEC.2009.4802772\n\n   Cintron-Rivera, J.G., Li, Y., Jiang, S. and Peng, F.Z. (2011) Quasi-Z-Source Inverter with Energy Storage for Photovoltaic Power Generation Systems. Applied Power Electronics Conference and Exposition (APEC 2009), Washington, 15-19 February 2009, 401-406.\nhttp://dx.doi.org/10.1109/apec.2011.5744628\n\n   Park, J.-H., Kim, H.-G., Nho, E.-C., Chun, T.-W. and Choi, J. (2009) Grid-Connected PV System Using a Quasi-Z- Source Inverter. Applied Power Electronics Conference and Exposition (APEC 2009), Washington, 15-19 February 2009, 925-929.\nhttp://dx.doi.org/10.1109/APEC.2009.4802773\n\n   Carrasco, J.M., Franquelo, L.G., Bialasiewicz, J.T., Galvan, E., PortilloGuisado, R.C., Prats, M.A.M., Leon, J.I. and Moreno-Alfonso, N. (2006) Power-Electronic Systems for the Grid Integration of Renewable Energy Sources. IEEE Transactions on Industrial Electronics, 53, 1002-1016.\nhttp://dx.doi.org/10.1109/TIE.2006.878356\n\n   Liu, J.F., Jiang, S., Cao, D. and Peng, F.Z. (2013) A Digital Current Control of Quasi-Z-Source Inverter With Battery. IEEE Transactions on Industrial Informatics, 9, 928-937.\nhttp://dx.doi.org/10.1109/TII.2012.2222653\n\n   Zakis, J., Vinnikov, D., Roasto, I. and Ribickis, L. (2011) Quasi-Z-Source Inverter Based Bi-Directional DC/DC Converter: Analysis of Experimental Results. International Conference Workshop Compatibility and Power Electronices (CPE), Tallin, 1-3 June 2011, 394-399.\nhttp://dx.doi.org/10.1109/cpe.2011.5942267\n\nTop" ]
[ null, "https://html.scirp.org/file/40-7600744x5.png", null, "https://html.scirp.org/file/40-7600744x7.png", null, "https://html.scirp.org/file/40-7600744x8.png", null, "https://html.scirp.org/file/40-7600744x12.png", null, "https://html.scirp.org/file/40-7600744x13.png", null, "https://html.scirp.org/file/40-7600744x14.png", null, "https://html.scirp.org/file/40-7600744x15.png", null, "https://html.scirp.org/file/40-7600744x16.png", null, "https://html.scirp.org/file/40-7600744x17.png", null, "https://html.scirp.org/file/40-7600744x18.png", null, "https://html.scirp.org/file/40-7600744x19.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8686272,"math_prob":0.8510209,"size":12013,"snap":"2019-51-2020-05","text_gpt3_token_len":2711,"char_repetition_ratio":0.18719293,"word_repetition_ratio":0.07395994,"special_character_ratio":0.21376842,"punctuation_ratio":0.09937611,"nsfw_num_words":1,"has_unicode_error":false,"math_prob_llama3":0.97751266,"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,3,null,3,null,3,null,3,null,3,null,3,null,3,null,3,null,3,null,3,null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-21T16:27:31Z\",\"WARC-Record-ID\":\"<urn:uuid:1df33caf-536b-44bd-b27d-3d12fc1baa9d>\",\"Content-Length\":\"57571\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c5e93e3d-14d3-4d85-bd5b-1b2a699af4ae>\",\"WARC-Concurrent-To\":\"<urn:uuid:eba1869c-6bb3-4d74-bb2f-f68ed852baab>\",\"WARC-IP-Address\":\"198.204.224.91\",\"WARC-Target-URI\":\"https://m.scirp.org/papers/70083\",\"WARC-Payload-Digest\":\"sha1:7VKCLDKHBWJB2UVK5G4XRCN3PQ4H2TDB\",\"WARC-Block-Digest\":\"sha1:INUZPC4PGOKDVKCSBQCPEGSVSM4ZRKGQ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579250604849.31_warc_CC-MAIN-20200121162615-20200121191615-00029.warc.gz\"}"}
https://discuss.codecademy.com/t/9-more-with-for---what-was-your-mistake-here/8339
[ "", null, "# 9. More with \"for\" _ what was your mistake here?\n\nI’m writing this to track back what I was thinking while I was solving this part. Some steps are easy to follow, but some are not, while instructions are written simply and easy. I am curious why I can’t understand certain instruction, and trying to share the course of my thoughts.\n\n## I got stuck at 9. More with “for”\n\n``````start_list = [5, 3, 1, 2, 4]\nsquare_list = []\n\nfor number in start_list:\nsquare_list.append(number**2)\nsquare_list.sort()\n\nprint square_list\n``````\n\nbecause I thought I cannot mention name of another list in one list.\nI tried to figure out how to combine two lists at the same time without like above.\nI saw the right answer by others’ Q&A.\n\nIs it just me? If you stuck here, why were you? ( I think reviewing like this helps me to learning it.)\n\nI repeatedly practiced it and it didn’t work.\nMy code was like below.\n\n``````A_list = [ \"1\", \"4\", \"5\", \"6\", \"7\"]\nB_list = [ ]\n\nfor number in A_list:\nB_list.append(number**2)\nB_list.sort()\n\nprint B_list\n``````\n\nCan you see why it didn’t work?\n\nBut the next code worked.\n\n``````A_list = [ 1, 4, 5, 6, 7]\nB_list = [ ]\n\nfor number in A_list:\nB_list.append(number**2)\nB_list.sort()\n\nprint B_list\n``````\n\n(It may seem a very easy and simple to more advanced ppl) My mistake here was that I didn’t write the right type of values in the list. To make number**2 possible, it should be in the form of number, but I put “”, and made it as strings.\n\n3 Likes\n\nHi medouxa,\n\nI notice, on the code that didn’t work, your A_list = [“1” , “2”, “3” etc]\n\n1. The quotation marks, which surround the list indices, thereby turns this list into a ***‘string’****.\n2. You cannot then do a numerical calculation (i.e X.append(i**2)) on an alphabetical value.\n\nThis is my understanding of your problem in the code here. I hope this helps.\n\nstart_list = [5, 3, 1, 2, 4]\nsquare_list =\n\nfor number in start_list:\nsquare_list.append(number**2)\nsquare_list.sort()\n\nprint square_list\n\nlike this bro/sis\n\nstart_list = [5, 3, 1, 2, 4]\nsquare_list =\n\nfor number in start_list:\nsquare_list.append(number**2)\nsquare_list.sort()\nprint square_list\n\nwhy m i till not able to get my result?\nmy code i shown above\n\nyour “(number**2)” is meant to be \"(number ** 2) @aku\n\nNo, the problem is that it should be (numbers ** 2) not (number ** 2)\n\nGood luck =)\n\nUsing the “for” command was confusing to me. I didn’t (and still do not all the way) understand it’s direct function. I tried doing it this way first:\n\nstart_list = [5, 3, 1, 2, 4]\nsquare_list =\n\nfor number in start_list:\nsquare_list = start_list.append(number**2)\n\nsquare_list.sort()\nprint square_list\n\nI thought you would have to assign (square_list) to the action of appending (start_list). Now I realize that the “for” command would not be useful in that sense.\n\nI also wondered if you could achieve the same result with this code:\n\nstart_list = [5, 3, 1, 2, 4]\nsquare_list =\n\nsquare_list = start_list.append(number**2)\nsquare_list.sort()\n\nprint square_list\n\nIf the above code works, wouldn’t that be easier and more straight forward?\n\nI ended up using this code to get through the lesson:\n\nstart_list = [5, 3, 1, 2, 4]\nsquare_list =\n\nfor numbers in start_list:\nsquare_list.append(number**2)\n\nsquare_list.sort()\nprint square_list\n\nStill confused as to the main purpose of using “for ___ in___:”.\n\nedit 11/15/2015\n\nI have learned that whatever variable you type after “for ___” can be anything you want it to (without using reserved terms that are special in python). You are basically assigning a variable name to the values of the list or dictionary that comes after \" in ___\". So you could put “for taco in dictionary” and use an indented code afterwards to manipulate the content in the dictionary. Hope this makes sense to someone else too!\n\n2 Likes\n\nsquare_list.sort() should be outside loop for\n\nstart_list = [5, 3, 1, 2, 4]\nsquare_list =\n\nfor number in start_list:\nsquare_list.append(number**2)\n\nsquare_list.sort()\nprint square_list\n\nIf square_list placed outside the loop, then it will append only the last value to square list i.e 42 which results in 16 to the square_list \nsquare_list.append(number\n2) and square_list.sort() both should be inside the loop.\n\nfor x in start_list:\nprint x2\nsquare_list.append(x\n2)\nsquare_list.sort()\nprint square_list\n\nstart_list = [5, 3, 1, 2, 4]\nsquare_list =\n\nfor number in start_list:\nsquare_list.append(number**2)\nsquare_list.sort()\nprint square_list" ]
[ null, "https://aws1.discourse-cdn.com/codecademy/original/5X/8/3/1/1/83117c5c7564a9b51c2981be72ef9873faf7acdd.svg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9314362,"math_prob":0.9417856,"size":1371,"snap":"2019-43-2019-47","text_gpt3_token_len":367,"char_repetition_ratio":0.12289686,"word_repetition_ratio":0.06374502,"special_character_ratio":0.29248723,"punctuation_ratio":0.14851485,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9941241,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-19T15:29:32Z\",\"WARC-Record-ID\":\"<urn:uuid:ad7e8cd2-7293-48e9-ae67-e557a5c9b7bd>\",\"Content-Length\":\"32458\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:061d1dc8-829e-46f2-b389-7ab317d73954>\",\"WARC-Concurrent-To\":\"<urn:uuid:9c0ea1e4-514b-4191-8b63-0ee59455974e>\",\"WARC-IP-Address\":\"216.218.159.21\",\"WARC-Target-URI\":\"https://discuss.codecademy.com/t/9-more-with-for---what-was-your-mistake-here/8339\",\"WARC-Payload-Digest\":\"sha1:4SZI5YKIL2VDQJAVB54W3BHXFHSWRRQO\",\"WARC-Block-Digest\":\"sha1:3LMHE35SNCQNGC62YTDSDV3JZQA5NMFH\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496670156.86_warc_CC-MAIN-20191119144618-20191119172618-00060.warc.gz\"}"}
https://lessonplanet.com/teachers/mixed-practice-word-problems-5
[ "", null, "Worksheet\n\n# Mixed Practice Word Problems #5\n\n##### This Mixed Practice Word Problems #5 worksheet also includes:\n\nSix word problems make up this mixed practice worksheet. Pupils work with money, adding, subtracting, multiplying, and dividing using numbers up to 250.\n\n##### Instructional Ideas\n• Assign the worksheet as homework\n• Direct learners to complete problems in small group, math rotations\n• Review problems step-by-step with small groups, or as a class\n##### Classroom Considerations\n• The worksheet is the fifth of 12 created by K5 Learning to support third grade math skills\n• Copies are required\n##### Pros\n• Answers are available in number and word form\n• Space is provided to show work\n• The objective is clear and to the point\n• None" ]
[ null, "data:image/png;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.90429336,"math_prob":0.44013578,"size":911,"snap":"2022-40-2023-06","text_gpt3_token_len":199,"char_repetition_ratio":0.099228226,"word_repetition_ratio":0.0,"special_character_ratio":0.20417124,"punctuation_ratio":0.08387097,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.961205,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-02-07T11:08:59Z\",\"WARC-Record-ID\":\"<urn:uuid:a4d07d05-a0ec-4086-9595-5d7ff5dd7091>\",\"Content-Length\":\"152264\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:4941a183-ea9b-4f1b-b1d4-b3eca3e6bbcd>\",\"WARC-Concurrent-To\":\"<urn:uuid:b75a7b14-ce26-42c8-b5d9-bc7feb267a9e>\",\"WARC-IP-Address\":\"3.129.199.180\",\"WARC-Target-URI\":\"https://lessonplanet.com/teachers/mixed-practice-word-problems-5\",\"WARC-Payload-Digest\":\"sha1:S56TKADQPEIQO3WU52RV7GFW77TYP6AN\",\"WARC-Block-Digest\":\"sha1:MITFI7SVJXGZCUY3TXCWHQPNO3VF3G5W\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764500456.61_warc_CC-MAIN-20230207102930-20230207132930-00657.warc.gz\"}"}
http://www.gicgac.com/FirstSet/KIDS/Practice_Free_Multiply_3_numbers_Questions_online.html
[ "# Learn and Practice Free Multiply 3 numbers questions - Kids Mathematics\n\n## Practice Free Multiply 3 numbers Questions online\n\nBy Practicing the below question set :\nThe student will get the basic and advanced knowledge on Multiply 3 numbers.\nThe student will learned the priciples and methedology of Multiply 3 numbers.\nThe student will evaluate the knowledge level on Multiply 3 numbers.\nStudent can practice number of times the question till he is clear.\nStudent can provide the review / feedback / suggestion on the questions which will help to others.\nThe questions can be practiced by All the standards / Grades.\nThe question contains the simple to complex level difficulties so that student can improve the knowledge.\n\n## You can get answer of the below sample questions by going through the above Question sets.\n\nsolve for K: 1 × 5 × K = 20 What is the value of K ?\nMultiply: 3 × 1 × 0 = ?\nMultiply: 3 × 1 × 9 = ?\nsolve for K: K × 9 × 1 = 54 What is the value of K ?\nsolve for K: 1 × 4 × K = 20 What is the value of K ?\nMultiply: 9 × 1 × 0 = ?" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.80839163,"math_prob":0.9891877,"size":1651,"snap":"2020-34-2020-40","text_gpt3_token_len":402,"char_repetition_ratio":0.15421979,"word_repetition_ratio":0.1402214,"special_character_ratio":0.2337977,"punctuation_ratio":0.15625,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9997084,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-27T10:35:45Z\",\"WARC-Record-ID\":\"<urn:uuid:d7c4c11d-99da-427b-a81b-12c87197691a>\",\"Content-Length\":\"19113\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8b99498a-f176-4a85-b135-2ea04dbe186c>\",\"WARC-Concurrent-To\":\"<urn:uuid:75501593-b7ab-4879-a6d9-b725f895b5ef>\",\"WARC-IP-Address\":\"95.217.197.119\",\"WARC-Target-URI\":\"http://www.gicgac.com/FirstSet/KIDS/Practice_Free_Multiply_3_numbers_Questions_online.html\",\"WARC-Payload-Digest\":\"sha1:UB6EQW7IG5WX4DVDKA6XN3Y7UDNHAC4S\",\"WARC-Block-Digest\":\"sha1:P5WC4PE2M4VUGBLSSO5MT7AA3EFISIC7\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400274441.60_warc_CC-MAIN-20200927085848-20200927115848-00024.warc.gz\"}"}
https://it.mathworks.com/matlabcentral/cody/problems/94-target-sorting/solutions/1529466
[ "Cody\n\n# Problem 94. Target sorting\n\nSolution 1529466\n\nSubmitted on 15 May 2018 by Suraj Mankulangara\nThis solution is locked. To view this solution, you need to provide a solution of the same size or smaller.\n\n### Test Suite\n\nTest Status Code Input and Output\n1   Pass\na = [1 2 3 4]; t = 0; b_correct = [4 3 2 1]; assert(isequal(targetSort(a,t),b_correct))\n\n2   Pass\na = -4:10; t = 3.6; b_correct = [-4 -3 10 -2 9 -1 8 0 7 1 6 2 5 3 4]; assert(isequal(targetSort(a,t),b_correct))\n\n3   Pass\na = 12; t = pi; b_correct = 12; assert(isequal(targetSort(a,t),b_correct))\n\n4   Pass\na = -100:-95; t = 100; b_correct = [-100 -99 -98 -97 -96 -95]; assert(isequal(targetSort(a,t),b_correct))" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.56367934,"math_prob":0.9955248,"size":714,"snap":"2019-51-2020-05","text_gpt3_token_len":261,"char_repetition_ratio":0.15211268,"word_repetition_ratio":0.0,"special_character_ratio":0.44257703,"punctuation_ratio":0.16666667,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9800574,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-26T10:00:14Z\",\"WARC-Record-ID\":\"<urn:uuid:31775b83-0ec5-45a3-bd87-a9f43e878270>\",\"Content-Length\":\"73883\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8177ba32-b673-4a73-acc0-fca6f6486802>\",\"WARC-Concurrent-To\":\"<urn:uuid:d0ca1711-d526-4b6a-8cda-a35e11ca73f7>\",\"WARC-IP-Address\":\"23.32.68.178\",\"WARC-Target-URI\":\"https://it.mathworks.com/matlabcentral/cody/problems/94-target-sorting/solutions/1529466\",\"WARC-Payload-Digest\":\"sha1:DRKXUJQPWLDPKD7X6TPYOCNRWTUUABEC\",\"WARC-Block-Digest\":\"sha1:N22ZHUSBJ4SPAHYOOF5WLQEV4PBAYI52\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579251687958.71_warc_CC-MAIN-20200126074227-20200126104227-00358.warc.gz\"}"}
http://stephengoeddel.com/blog/post/10/sorting-algorithms/
[ "# Sorting Algorithms\n\n### Some basic sorting algorithms implemented in Java and timed\n\n#### May 18, 2014, 12:56 p.m.\n\nI wanted some more Java practice before I start my new job as a Software Engineer working with Java, so I decided to implement some basic sorting algorithms and time them. For each algorithm I chose to start by coping the ArrayList into a new one as to preserve the original input. I started with bubble sort, as I remembered it was simple but incredibly slow:\n\n```public static ArrayList<Integer> bubble(ArrayList<Integer> input ) {\nArrayList<Integer> result = new ArrayList<Integer>();\nwhile(true) {\nboolean done = true;\nfor(int i = 1; i < result.size(); i++) {\nif (result.get(i) < result.get(i-1)) {\nint temp = result.get(i - 1);\nresult.set(i - 1, result.get(i));\nresult.set(i, temp);\ndone = false;\n}\n}\nif(done) {\nbreak;\n}\n}\nreturn result;\n}\n```\n\nWith my test of 100,000 randomly generated Integers between 0 and 99,999, bubble sort was able to complete the sort in 64.82 seconds.\nNext I moved on to quick sort as I knew it would be much better:\n\n```public static ArrayList<Integer> quick(ArrayList<Integer> input) {\nArrayList<Integer> result = new ArrayList<Integer>();\nif (result.size() <= 1) {\nreturn result;\n}\nInteger pivot = result.get(0);\nresult.remove(0);\nArrayList<Integer> less = new ArrayList<Integer>();\nArrayList<Integer> more = new ArrayList<Integer>();\nfor (int i = 0; i < result.size(); i++) {\nif (result.get(i) <= pivot) {\n} else {\n}\n}\nArrayList<Integer> output = new ArrayList<Integer>();\nreturn output;\n}\n```\n\nUsing the same ArrayList of Integers quick sort was able to finish in merely 0.71 seconds, obviously a huge speed up! I then decided to implement insertion sort:\n\n```public static ArrayList<Integer> insertion(ArrayList<Integer> input) {\nArrayList<Integer> result = new ArrayList<Integer>(); // make new ArrayList from input in order to preserve input\nfor (int i = 0; i < result.size(); i++) {\nint x = result.get(i);\nint j = i;\nwhile (j > 0 && result.get(j-1) > x) {\nresult.set(j, result.get(j-1));\nj--;\n}\nresult.set(j, x);\n}\nreturn result;\n}\n```\n\nWith insertion sort, our ArrayList was sorted in 4.319 seconds. Next, I chose to implement selection sort:\n\n```public static ArrayList<Integer> selection(ArrayList<Integer> input) {\nArrayList<Integer> result = new ArrayList<Integer>(); // make new ArrayList from input in order to preserve input\nint min;\nfor (int i = 0; i < result.size() - 1; i++) {\nmin = i;\nfor (int j = i + 1; j < result.size(); j++) {\nif(result.get(j) < result.get(min)) {\nmin = j;\n}\n}\nif (min != i) {\nint temp = result.get(i);\nresult.set(i, result.get(min));\nresult.set(min, temp);\n}\n}\nreturn result;\n}\n```\n\nSelection sort was able to sort the same ArrayList in 14.187 seconds. These results all make sense with the complexities of each respective algorithm. For more information on each algorithm and some pseudo code to work off of check out wikipedia." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.59712285,"math_prob":0.9181068,"size":2981,"snap":"2023-40-2023-50","text_gpt3_token_len":719,"char_repetition_ratio":0.24084648,"word_repetition_ratio":0.135255,"special_character_ratio":0.2955384,"punctuation_ratio":0.19504133,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9967509,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-10T04:17:01Z\",\"WARC-Record-ID\":\"<urn:uuid:07d02ad3-2a78-4aa9-8573-c15b9b8d0408>\",\"Content-Length\":\"24416\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7c4b7552-a234-47e8-a834-580257169ab3>\",\"WARC-Concurrent-To\":\"<urn:uuid:7e88406a-b79b-41aa-821a-0209a18e6268>\",\"WARC-IP-Address\":\"104.236.236.151\",\"WARC-Target-URI\":\"http://stephengoeddel.com/blog/post/10/sorting-algorithms/\",\"WARC-Payload-Digest\":\"sha1:FGCVL7KQ2ECQXLSZV7LQKV4PI2RROHHT\",\"WARC-Block-Digest\":\"sha1:FJFEZLAVLOEK7OA4LQEPXAL644TEZ6GE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679101195.85_warc_CC-MAIN-20231210025335-20231210055335-00444.warc.gz\"}"}
https://www.arxiv-vanity.com/papers/0711.0815/
[ "# A local–global problem for linear differential equations\n\nMarius van der Put and Marc Reversat\nDepartment of Mathematics, University of Groningen, P.O.Box 800,\n9700 AV Groningen, The Netherlands, , and\nInstitut de Mathématiques de Toulouse, UMR 5219, Université Paul Sabatier\n31602 Toulouse cedex 9, France, email:\n\nAbstract. An inhomogeneous linear differential equation over a global differential field can have a formal solution for each place without having a global solution. The vector space measures this phenomenon. This space is interpreted in terms of cohomology of linear algebraic groups and is computed for abelian differential equations and for regular singular equations. An analogue of Artin reciprocity for abelian differential equations is given. Malgrange’s work on irregularity is reproved in terms cohomology of linear algebraic groups.\n\n## 1 Introduction\n\nThe topics: Elliptic curves over a number field ; Drinfeld modules over a field like ; linear differential equations over a differential field , e.g., a finite extension of the differential field , have many common features.\nFor every place of one considers the completion . An example of a local–global problem is the following. Consider an elliptic curve over and an integer . Suppose that with has a solution in every . Does there exists a solution ? By ‘folklore’ the answer is positive and the analogous problem for Drinfeld modules, where the integer is replaced by a non zero element of , has a negative answer (see [H] for both statements).\n\nHere we consider a differential operator , where is the derivation on extending on and , acting upon . Suppose that the equation with has a solution in every completion . Then, in general, there is no solution in . One defines the -vector space as the kernel of the obvious -linear map . This vector space measures this global–local problem. The theme of this paper is the interpretation and the computation of . The main results are:\n* A formula expressing in terms of the cohomology for differential Galois groups acting on the solution space of and a proof of ,\n* Computation of for certain affine group schemes ,\n* Classification of abelian differential equations and Artin reciprocity,\n* Explicit computations of for abelian differential operators and for regular singular operators ,\n* A new proof of B. Malgrange’s results on irregularity.\n\nThe last item requires a precise knowledge of the universal differential Galois group for the differential field of the convergent Laurent series. The multisummation theory of J.-P. Ramis et al. provides this knowledge.\n\n## 2 K/l(k) and M/∂M as cohomology groups\n\ndenotes a differential field and let or denote the derivative of . We suppose that its field of constants is algebraically closed, different from and has characteristic 0. A linear differential equation over can be written in an operator form\n\n (an∂n+⋯+a1∂+a0)y=f with all ai,f∈K.\n\nAn equivalent formulation is given by a differential module where is a finite dimensional vector space over and the additive operator satisfies . (The meaning of the symbols and will be clear from the context).\n\nWe recall (see [vdP-S] for details), that for every linear differential equation (or module) over there is a differential ring , called the Picard–Vessiot ring of over , such that ‘all solutions’ of live in this differential ring and this ring has only trivial differential ideals. The (differential) Galois group of the module is the linear algebraic group over consisting of all -linear automorphisms of , commuting with the differentiation on . The direct limit of all is the universal differential extension of . Its Galois group is the affine group scheme, which is the projective limit of the Galois groups of all differential modules over .\n\nFor a differential operator , the solution space of is the -vector space is the solution space of . The action of on leaves invariant and the restriction of the action to is the (differential) Galois group of . Similarly, for a differential module over , the -vector space is the solution space of and the restriction to of the natural action of on is the (differential) Galois group of .\n\n###### Proposition 2.1\n\nand for all .\n\n• Using that is a direct limit of Picard–Vessiot rings, one concludes that it suffices to consider a differential module over with Picard–Vessiot ring and Galois group . In this case one has to prove and for all .\n\nThe first statement is well known. The affine variety corresponding to is known to be a -torsor for the linear algebraic group over . In other words, there exists a finite Galois extension such that . Further the action of the Galois group on this object commutes with the action of .\n\nWe recall that the cohomology groups , where is any -module, are the cohomology groups of the Hochschild complex . Moreover, one has for all , since is an injective module (see [Jan] for these statements). It follows that also for . Let and let be an element in with . Then for some . Then belongs to and satisfies .\n\n###### Lemma 2.2\n\nLet be a differential operator and be as before. The following sequences are exact.\n\n 0→ker(L,UK)→UKL→UK→0 and\n 0→ker(L,K)→KL→K→H1(GK,∂,ker(L,U))→0.\n\nIn particular, is canonically isomorphic to and moreover, for .\n\n• For the exactness of the first sequence we have to show that with has a solution . For any there exists a such that . Indeed, lies in some and apply now [vdP-S], Corollary 1.38. The equation has all its solutions in . Hence, for a suitable solution of this equation one has .\n\nTaking in the first exact sequence, invariants under , one obtains, by using Proposition 2.1, the exact sequence\n\n 0→ker(L,K)→KL→K→H1(G,ker(L,UK))→0.\n\nFor a differential module over one has a similar result, namely:\nThere is a canonical isomorphism where again provided with its structure of -module.\n\nA direct comparison between modules and differential operators is given by the theorem of the cyclic element which states that any differential module has the form for some operator . Let denote the adjoint of . Then one can verify that can be identified with and with .\n\n## 3 On cohomology of linear algebraic groups\n\nThe base field is supposed to be algebraically closed and to have characteristic 0. Let be a linear algebraic group, or, more generally, an affine group scheme, over . A -module is a finite dimensional vector space over , provided with an algebraic action of , i.e., a morphism of affine group schemes . The cohomology groups are defined as the derived functors of . The -vector space can, as in the case of ordinary group cohomology, be described as the space of all -cocycles , divided out by the subspace of the trivial -cocycles. The only difference is that the -cocycles are supposed to be morphisms of algebraic varieties (or more generally, of affine schemes). We will also allow -modules of infinite dimension, namely direct limits of finite dimensional -modules. Now we collect here (with some comments) the facts and results that we will need in the sequel and refer to [Jan] for the general theory.\n\n###### Fact 3.1\n\nLet be a reductive affine group scheme (not necessarily connected), then for every -module one has for all .\n\nIndeed, since the characteristic of is 0, the functor is exact.\n\n###### Fact 3.2\n\nLet be a closed, normal subgroup of the affine group scheme . Suppose that is reductive. Let be a -module. Then is canonically isomorphic to .\n\nIndeed, the functor factors as and the functor is exact and maps injective objects to acyclic objects. The special case of 3.2, where is the unipotent radical , reduces the computations to the case of (connected) unipotent groups.\n\n###### Fact 3.3 (the five terms exact sequence)\n\nLet be a closed normal subgroup of the affine group and let be a -module. Then the exact sequence of five terms reads\n\n 0→H1(G/N,VN)→H1(G,V)→H1(N,V)G/N→H2(G/N,VN)→H2(G,V).\n\nThis exact sequence is derived from the spectral sequence converging to .\n\n###### Remark 3.4\n\nExplicit action of on .\nLet be a -module and a normal closed subgroup of . The action of on can be made explicit on the level of 1-cocycles. Let be a 1-cocycle and then is the 1-cocycle defined by . The trivial 1-cocycle (for a fixed ) is mapped to the trivial 1-cocycle . Thus acts on . For and a 1-cocycle one observes that is the trivial 1-cocycle . Thus acts trivially on .\n\n###### Fact 3.5\n\nLet be the Lie algebra of a connected affine group scheme . Any -module has the structure of a -module. The cohomology groups are canonically isomorphic to the cohomology groups .\n\nSketch of the proof. Using Fact 3.2, we may suppose that is a connected unipotent linear algebraic group over . In particular, is simply connected. Therefore the category of the finite dimensional representations of and those of its Lie algebra are equivalent. This equivalence extends to an equivalence between the representations of which are direct limits of finite dimensional representations and those of . The latter categories contain enough injective objects and the cohomology groups can be obtained from injective resolutions.\n\nWe note that the group can also be described by -cocycles modulo trivial -cocycles (see [Jac]). In some cases the computations of the are easier than those for .\n\n###### Lemma 3.6\n\nLet be a generator of the Lie algebra of . The -module , given by , induces a nilpotent map . Then ,\n\nand for .\n\n• By 3.5, it suffices to compute the cohomology of as module over the Lie algebra of . An obvious calculation of these cohomology groups in terms of cocycles gives the required answer. The same computation can be done in terms of cocycles for the group .\n\n###### Corollary 3.7\n\nLet the group scheme be topologically generated by one element . Suppose that the unipotent factor of the Jordan decomposition is non trivial. Then , where the first factor is topologically generated by and the second by .\n\nLet the -module be given by . Then for and .\n\n• and this equals since commutes with . Apply now 3.6. The final statement follows from the decomposition of into eigenspaces for .\n\n###### 3.8\n\nGroup schemes with free unipotent generators.\nLet be some non empty set. One considers tuples where is a finite dimensional -vector space and maps every to a unipotent . This defines an abelian category which is in an obvious way a Tannakian category. The fibre functor is given by . Thus is isomorphic to the category of the finite dimensional representations of a certain affine group scheme over .\n\nConsider an object and the Tannakian subcategory generated by it. The affine group scheme corresponding to this subcategory can be seen to be the smallest algebraic subgroup of containing all . The representation , corresponding to , has the property . In particular, if is a finite group then . Thus is a connected affine group scheme. Moreover, is the projective limit of the , taken over all objects . For a fixed , each contains an element . The projective limit of the elements can be considered as an element, again called , in . Thus for every object and corresponding representation . Therefore, we will call the group with free unipotent generators . Indeed, the elements of , seen as elements of , are topological generators, they are unipotent and they have no relations.\n\nWe want to show that for any -module , the are the cohomology groups of the complex , where the non trivial map is given by . A direct proof is maybe possible, however we will prove this using the (pro) Lie algebra of .\n\n###### 3.9\n\nLie algebras with free nilpotent generators.\nLet be again a non empty set. The free Lie algebra over with generators has the universal property that the representations on vector spaces over are in bijection with the maps . One considers now representation such that is finite dimensional and every is nilpotent. The image is an algebraic Lie algebra, because it is generated by nilpotent maps. The corresponding (connected) algebraic subgroup of is the smallest algebraic subgroup containing all . Define by . Then is an object of , the Tannakian group of this object is the smallest algebraic group containing all and its Lie algebra is .\n\nThe projective limit , taken over all these will be called the (pro)-Lie algebra with free nilpotent generators . It is clear from the above that this pro Lie algebra is the Lie algebra of the affine group scheme of 3.8. The bijection between the representations of and those of its (pro)-Lie algebra can be interpreted as being simply connected.\n\n###### Proposition 3.10\n\nLet be the affine group scheme with free unipotent generators and let be a -module. The are the cohomology groups of the complex , where the non trivial map is given by .\n\n• Let denote the pro-Lie algebra of . According to 3.5 and the constructions in 3.8, 3.9, the proposition is equivalent to the statement that the are the cohomology groups of the complex , where the non trivial map is given by .\n\nFor , this is obvious. For we use the explicit definition of a 1-cocycle (see [Jac]) and conclude that the elements are arbitrary and that they determine completely. The trivial 1-cocycles are of the form for a fixed and where is induced by . This proves the statement for . The verification of for is easy.\n\n###### 3.11\n\nFiniteness conditions.\nLet the set be a disjoint union of (non empty) subsets with (and an infinite set). Let denote the category for which the objects are the pairs with a finite dimensional -vector space and such that is unipotent for every and there is a finite subset of such that for . As in 3.8 and 3.9, this defines an affine group scheme and a pro-Lie algebra . The analogue of Proposition 3.10 is:\n\nLet be an -module. The are the cohomology groups of the complex , where denotes the -vector space of the maps such that there exists a finite subset of with for . The non trivial map is again .\n\nThe above situation occurs in connection with the Stokes phenomenon (see [vdP-S]), where is the set of alien derivations. The set is the disjoint union, over , of the sets . The corresponding affine group scheme is the kernel of the surjective morphism of affine schemes . We will return to this in Section 5. We note that the finiteness condition stated in [vdP-S] is slightly wrong.\n\n## 4 Formal differential equations\n\nLet be the differential field with derivation . A differential equation or module over will be called formal. We recall the explicit descriptions of and , slightly extending the one given in [vdP-S]. The aim of this section is to make both (where is the solution space of ) and the canonical isomorphism explicit.\n\nDescription of .\nWrite with a -vector space. First one introduces the universal Picard–Vessiot ring for the regular singular differential modules over . This ring is where is the algebraic closure of and where the symbols and satisfy only the identities . The differentiation is given by and . Then one introduces the set and symbols for satisfying only the identities . Further . Now where . This is the universal Picard–Vessiot ring for . Put and write for . Then .\n\nDescription of .\nFor convenience, we will identify the affine group scheme with its set of -valued points which is the group of the differential automorphisms of . A special (and very natural) element in this group is the formal monodromy defined by:\n(i) acts on by for all ,\n(ii) for all ,\n(iii) for all ,\n(iv) .\n\nThe exponential torus (in the terminology of J.-P. Ramis) is the group . An element acts on by is the identity on , on and on the elements . Further for all . The group together with the element generate topologically (for the Zariski topology). So far we have followed [vdP-S]. The Zariski closure of the group generated by is rather big and we prefer to split this group into smaller pieces. For this purpose we introduce more special elements in .\n\nOne decomposes as a product of commuting automorphisms , where has the same definition as except for (iv) which is replaced by . Further is the identity for the elements in , the elements , and . We note that is the Jordan decomposition of as a product of a semi-simple element and a unipotent element.\n\nWe still want to decompose the semi-simple as a product of commuting elements and . The direct sum yields, using , a direct product decomposition . Now and are the unique semi-simple elements in with eigenvalues in and such that . One verifies that and can also be defined by\n(i) , for all ;\n(ii) , for all ,\n(iii) , for all ,\n(iv) .\n\nFor every element there is an integer such that . It follows that the algebraic subgroup of , generated (topologically) by is , the projective limit of the groups . The algebraic subgroup generated (topologically) by can be identified with the torus . The algebraic subgroup generated by can be identified with .\n\nThus , the Zariski closure of the group generated by , can be identified with . Moreover, is the topological generator of , i.e., the group of the differential automorphisms of , in other words the universal differential Galois group for the regular singular equations over .\n\nWe extend the exponential torus to a larger torus . An element acts on by is the identity on and . Further for .\n\nWe conclude that has the form . The subgroup is reductive and the subgroup is the unipotent radical of . Further with topological generator .\n\nDescription of differential modules over .\nOne associates to a differential module over its solution space:\nwith the following data and relations:\n(i) a direct sum decomposition where ,\n(ii) an element which is the restriction of on to the subspace .\n(iii) for all .\n\nThe functor defines an equivalence of categories. We note that has a decomposition as a product of commuting elements induced by .\n\nComputation of .\nBy Section 3, with . From the above one sees that . The subspace of , consisting of the elements invariant under , is . Hence . The action of on is induced by its action on , given by . The group , generated for the Zariski topology by , acts on by . Hence can be identified with for and with for . In particular, the two cohomology groups have the same dimension. This proves Corollary 4.1.\n\nThe explicit canonical isomorphism .\nAny module is, after a finite extension of , a direct sum of isotypical submodules modules with . This is just a translation of the decomposition . Now is bijective on for . Thus for , the summand gives no contribution for the above map . The direct summand , which is the regular singular part of , can be represented by a matrix differential operator with a constant matrix such that the eigenvalues of satisfy . Only the generalized eigenspace for the eigenvalue of can give a contribution to . This generalized eigenspace is the submodule of corresponding to . After restricting to this submodule, is nilpotent. The kernel and cokernel of on coincide with the kernel and cokernel of on . The fundamental matrix for the equation is . The columns of this matrix form a basis for . The differential Galois group is generated by the action of which multiplies the fundamental matrix by . Thus on can be identified with on .\n\n###### Corollary 4.1 (B. Malgrange)\n\n[M]. For any differential module over one has .\n\n## 5 Analytic differential equations\n\ndenotes the differential field , consisting of the convergent Laurent series, with derivation . A differential equation or module over this field will be called analytic. We recall and extend results of [vdP-S].\n\nDescription of and .\nAs in Section 4, denotes the field of the formal Laurent series. Let denote the -subalgebra consising of the elements that satisfy a linear differential equation with coefficients in . Then\n\n ¯¯¯¯F[{e(q)}q∈Q+,ℓ]⊂UF=D[{e(q)}q∈Q+,ℓ]⊂UˆF=¯¯¯¯¯ˆF[{e(q)}q∈Q+.ℓ].\n\nThe precise structure of the differential algebra is unknown. However the multisummations in the directions lead to ‘locally unipotent’ elements of , the Stokes maps (multipliers) for every direction . One considers the ‘locally nilpotent’ logarithms of the Stokes maps. These are elements of the pro-Lie algebra of . The element is an -linear derivation of , commuting with , and trivial on . Thus is determined by its restriction . The resulting maps are important ingredients for the structure of . Put and let and denote the pro-Lie algebra and the affine group scheme corresponding to defined in Section 3. Then . We recall that is topologically generated by and the formal monodromy . The action, by conjugation, of on induces an action on . One can verify that and that, for any , one has .\n\nThe group is reductive and therefore is the unipotent radical of . The affine group scheme is topologically generated by . The relations between these generators are unknown. The same holds for their logarithms .\nFor the group with topological generators one observes that the only relations are . A good translation in terms of generators of Lie algebras does not seem to exists.\n\nDescription of the analytic differential modules.\nAs in [vdP-S] one can describe a differential module over by a structure on its space of solutions , namely . The maps can be replaced by and can be replaced by its components (with is a singular direction for ). These elements in map each to etc. Thus is represented by a tuple .\n\nComputation of . The computation uses the formula . First an example.\n\n###### Example 5.1\n\nwhere and with and . Then has dimension (see below for the definition of the irregularity of ).\n\n• Let denote the action of on . Then is trivial for and . Further, for the map is multiplication by .\n\nNow . The cohomology group identifies with the complex vector space of the algebraic homomorphism , such that there are only finitely many for which there is a with .\n\nLet be such a map and suppose that is invariant under . For and one has . Since the latter is one has . This applied with and or with yields and . Now we apply this with and . Then . Using that and one has .\n\nWe conclude that the invariant algebraic homomorphism are described by: for and for all . The dimension of the under consideration is therefore equal to the number of the singular directions modulo of . This number is easily seen to be . We note that this result coincides with the explicit calculations in [vdP-S], Section 7.3.\n\nB. Malgrange has introduced the irregularity of a differential module over as follows. Put . The action of the operator on the exact sequence induces the long exact sequence" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.91550535,"math_prob":0.97769517,"size":21627,"snap":"2022-27-2022-33","text_gpt3_token_len":4696,"char_repetition_ratio":0.17060538,"word_repetition_ratio":0.054607507,"special_character_ratio":0.21255837,"punctuation_ratio":0.11927504,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99662584,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-08T18:35:53Z\",\"WARC-Record-ID\":\"<urn:uuid:9e2fe80a-2618-42cd-8829-1debe42255ac>\",\"Content-Length\":\"1049512\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:81bc005a-ec40-4fec-af6d-c5c6ae714595>\",\"WARC-Concurrent-To\":\"<urn:uuid:e62e3990-d295-402e-a0d9-36f5a58fbed6>\",\"WARC-IP-Address\":\"104.21.14.110\",\"WARC-Target-URI\":\"https://www.arxiv-vanity.com/papers/0711.0815/\",\"WARC-Payload-Digest\":\"sha1:VYA4BU3N535SMVLSZC2Q6BTAN2W3OT5L\",\"WARC-Block-Digest\":\"sha1:7VWD6CFRA4A7XKTBV2ZUQTGPWLDU33OR\",\"WARC-Truncated\":\"length\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882570871.10_warc_CC-MAIN-20220808183040-20220808213040-00051.warc.gz\"}"}
https://pygraphviz.github.io/documentation/stable/_modules/pygraphviz/agraph.html
[ "# Source code for pygraphviz.agraph\n\n```\"\"\"\nA Python interface to Graphviz.\n\"\"\"\nimport os\nimport re\nimport shlex\nimport subprocess\nimport sys\nimport warnings\nfrom collections.abc import MutableMapping\nimport tempfile\nimport io\n\nfrom . import graphviz as gv\n\n_DEFAULT_ENCODING = \"UTF-8\"\n\ndef __init__(self, result, pipe):\nself.result = result\nself.pipe = pipe\n\ndef run(self):\ntry:\nwhile True:\nif not chunk:\nbreak\nself.result.append(chunk)\nfinally:\nself.pipe.close()\n\nclass _Action:\nfind, create = 0, 1\n\nclass DotError(ValueError):\n\"\"\"Dot data parsing error\"\"\"\n\n[docs]class AGraph:\n\"\"\"Class for Graphviz agraph type.\n\nExample use\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n>>> G = pgv.AGraph(directed=True)\n>>> G = pgv.AGraph(\"file.dot\") # doctest: +SKIP\n\nGraphviz graph keyword parameters are processed so you may add\nthem like\n\n>>> G = pgv.AGraph(landscape=\"true\", ranksep=\"0.1\")\n\nor alternatively\n\n>>> G = pgv.AGraph()\n>>> G.graph_attr.update(landscape=\"true\", ranksep=\"0.1\")\n\nand\n\n>>> G.node_attr.update(color=\"red\")\n>>> G.edge_attr.update(len=\"2.0\", color=\"blue\")\n\nSee http://www.graphviz.org/doc/info/attrs.html\nfor a list of attributes.\n\nKeyword parameters:\n\nthing is a generic input type (filename, string, handle to pointer,\ndictionary of dictionaries). An attempt is made to automaticaly\ndetect the type so you may write for example:\n\n>>> d = {\"1\": {\"2\": None}, \"2\": {\"1\": None, \"3\": None}, \"3\": {\"2\": None}}\n>>> A = pgv.AGraph(d)\n>>> s = A.to_string()\n>>> B = pgv.AGraph(s)\n>>> h = B.handle\n>>> C = pgv.AGraph(h)\n\nParameters::\n\nname: Name for the graph\n\nstrict: True|False (True for simple graphs)\n\ndirected: True|False\n\ndata: Dictionary of dictionaries or dictionary of lists\nrepresenting nodes or edges to load into initial graph\n\nstring: String containing a dot format graph\n\nhandle: Swig pointer to an agraph_t data structure\n\n\"\"\"\n\ndef __init__(\nself,\nthing=None,\nfilename=None,\ndata=None,\nstring=None,\nhandle=None,\nname=\"\",\nstrict=True,\ndirected=False,\n**attr,\n):\nself.handle = None # assign first in case the __init__ bombs\nself._owns_handle = True\n# initialization can take no arguments (gives empty graph) or\n# a file name\n# a string of graphviz dot language\n# a swig pointer (handle) to a graph\n# a dict of dicts (or dict of lists) data structure\n\nself.has_layout = False # avoid creating members outside of init\n\n# backward compability\nfilename = attr.pop(\"file\", filename)\n# guess input type if specified as first (nonkeyword) argument\nif thing is not None:\n# can't specify first argument and also file,data,string,handle\nfilename = None\ndata = None\nstring = None\nhandle = None\nif isinstance(thing, dict):\ndata = thing # a dictionary of dictionaries (or lists)\nelif hasattr(thing, \"own\"): # a Swig pointer - graph handle\nhandle = thing\nelif isinstance(thing, str):\npattern = re.compile(r\"(strict)?\\s*(graph|digraph).*{.*}\\s*\", re.DOTALL)\nif pattern.match(thing):\nstring = thing # this is a dot format graph in a string\nelse:\nfilename = thing # assume this is a file name\nelif hasattr(thing, \"open\"):\nfilename = thing # assume this is a file name (in a path obj)\nelse:\nraise TypeError(f\"Unrecognized input {thing}\")\n\nif handle is not None:\n# if handle was specified, reference it\nself.handle = handle\nself._owns_handle = False\nelif filename is not None:\n# load new graph from file (creates self.handle)\nelif string is not None:\n# load new graph from string (creates self.handle)\n# get the charset from the string to properly encode it for\n# writing to the temporary file in from_string()\nmatch = re.search(r'charset\\s*=\\s*\"([^\"]+)\"', string)\nif match is not None:\nself.encoding = match.group(1)\nelse:\nself.encoding = _DEFAULT_ENCODING\nself.from_string(string)\nelse:\n# no handle, need to\nself.handle = None\n\nif self.handle is not None:\n# the handle was specified or created\n# get the encoding from the \"charset\" graph attribute\nitem = gv.agget(self.handle, b\"charset\")\nif item is not None:\nself.encoding = (\nitem if type(item) is not bytes else item.decode(\"utf-8\")\n)\nelse:\nself.encoding = _DEFAULT_ENCODING\nelse:\n# no handle was specified or created\n# get encoding from the \"charset\" kwarg\nself.encoding = attr.get(\"charset\", _DEFAULT_ENCODING)\ntry:\nif name is None:\nname = \"\"\n# instantiate a new, empty graph\nself.handle = gv.agraphnew(name.encode(self.encoding), strict, directed)\nexcept TypeError:\nraise TypeError(f\"Graph name must be a string: {name}\")\n\n# encoding is already set but if it was specified explicitly\n# as an attr, then set it explicitly for the graph\nif \"charset\" in attr:\ngv.agattr_label(self.handle, 0, \"charset\", self.encoding)\n\n# if data is specified, populate the newly created graph\nif data is not None:\n# load from dict of dicts or dict of lists\nfor node in data:\nfor nbr in data[node]:\n\n# throw away the charset attribute, if one exists,\n# since we've already set it, and now it should not be changed\nif \"charset\" in attr:\ndel attr[\"charset\"]\n\n# assign any attributes specified through keywords\nself.graph_attr = Attribute(self.handle, 0) # graph attributes\nself.graph_attr.update(attr) # apply attributes passed to init\nself.node_attr = Attribute(self.handle, 1) # default node attributes\nself.edge_attr = Attribute(self.handle, 2) # default edge attribtes\n\ndef __enter__(self):\nreturn self\n\ndef __exit__(self, ext_type, exc_value, traceback):\npass\n\ndef __str__(self):\nreturn self.string()\n\ndef __repr__(self):\nname = gv.agnameof(self.handle)\nif name is None:\nreturn f\"<AGraph {self.handle}>\"\nreturn f\"<AGraph {name} {self.handle}>\"\n\ndef _svg_repr(self):\nreturn self.draw(format=\"svg\").decode(self.encoding)\n\ndef _repr_mimebundle_(self, include=None, exclude=None):\nif self.has_layout:\nrepr_dict = {\"image/svg+xml\": self._svg_repr()}\nelse:\nrepr_dict = {\"text/plain\": self.__repr__()}\nreturn repr_dict\n\ndef __eq__(self, other):\n# two graphs are equal if they have exact same nodes and edges\n# and attributes. This is not graph isomorphism.\nif sorted(self.nodes()) != sorted(other.nodes()):\nreturn False\nif sorted(self.edges()) != sorted(other.edges()):\nreturn False\n# check attributes\nself_all_nodes_attr = {n: n.attr.to_dict() for n in sorted(self.nodes_iter())}\nother_all_nodes_attr = {n: n.attr.to_dict() for n in sorted(other.nodes_iter())}\nif self_all_nodes_attr != other_all_nodes_attr:\nreturn False\nself_all_edges_attr = {e: e.attr.to_dict() for e in sorted(self.edges_iter())}\nother_all_edges_attr = {e: e.attr.to_dict() for e in sorted(other.edges_iter())}\nif self_all_edges_attr != other_all_edges_attr:\nreturn False\n\n# All checks pass. They are equal\nreturn True\n\ndef __hash__(self):\n# include nodes and edges in hash\n# Could do attributes too, but hash should be fast\nreturn hash(\n(\ntuple(sorted(self.nodes_iter())),\ntuple(sorted(self.edges_iter())),\n)\n)\n\ndef __iter__(self):\n# provide \"for n in G\"\nreturn self.nodes_iter()\n\ndef __contains__(self, n):\n# provide \"n in G\"\nreturn self.has_node(n)\n\ndef __len__(self):\nreturn self.number_of_nodes()\n\ndef __getitem__(self, n):\n# \"G[n]\" returns nodes attached to n\nreturn self.neighbors(n)\n\n# not implemented, but could be...\n# def __setitem__(self,u,v):\n\ndef __del__(self):\nself._close_handle()\n\n[docs] def get_name(self):\nname = gv.agnameof(self.handle)\nif name is not None:\nname = name.decode(self.encoding)\nreturn name\n\nname = property(get_name)\n\nIf n is not a string, conversion to a string will be attempted.\nString conversion will work if n has valid string representation\n(try str(n) if you are unsure).\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n>>> G.nodes()\n['a']\n>>> G.add_node(1) # will be converted to a string\n>>> G.nodes()\n['a', '1']\n\nAttributes can be added to nodes on creation or updated after creation\n(attribute values must be strings)\n\nSee http://www.graphviz.org/doc/info/attrs.html\nfor a list of attributes.\n\nAnonymous Graphviz nodes are currently not implemented.\n\"\"\"\nif not isinstance(n, str):\nn = str(n)\nn = n.encode(self.encoding)\ntry:\nnh = gv.agnode(self.handle, n, _Action.find)\nexcept KeyError:\nnh = gv.agnode(self.handle, n, _Action.create)\nnode = Node(self, nh=nh)\nnode.attr.update(**attr)\n\n\"\"\"Add nodes from a container nbunch.\n\nnbunch can be any iterable container such as a list or dictionary\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n>>> nlist = [\"a\", \"b\", 1, \"spam\"]\n>>> sorted(G.nodes())\n['1', 'a', 'b', 'spam']\n\nAttributes can be added to nodes on creation or updated after creation\n\n>>> G.add_nodes_from(nlist, color=\"red\") # set all nodes in nlist red\n\"\"\"\nfor n in nbunch:\n\n[docs] def remove_node(self, n):\n\"\"\"Remove the single node n.\n\nAttempting to remove a node that isn't in the graph will produce\nan error.\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n>>> G.remove_node(\"a\")\n\"\"\"\nif not isinstance(n, str):\nn = str(n)\nn = n.encode(self.encoding)\ntry:\nnh = gv.agnode(self.handle, n, _Action.find)\ngv.agdelnode(self.handle, nh)\nexcept KeyError:\nraise KeyError(f\"Node {n.decode(self.encoding)} not in graph.\")\n\ndelete_node = remove_node\n\n[docs] def remove_nodes_from(self, nbunch):\n\"\"\"Remove nodes from a container nbunch.\n\nnbunch can be any iterable container such as a list or dictionary\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n>>> nlist = [\"a\", \"b\", 1, \"spam\"]\n>>> G.remove_nodes_from(nlist)\n\"\"\"\nfor n in nbunch:\nself.remove_node(n)\n\ndelete_nodes_from = remove_nodes_from\n\n[docs] def nodes_iter(self):\n\"\"\"Return an iterator over all the nodes in the graph.\n\nNote: modifying the graph structure while iterating over\nthe nodes may produce unpredictable results. Use nodes()\nas an alternative.\n\"\"\"\nnh = gv.agfstnode(self.handle)\nwhile nh is not None:\nyield Node(self, nh=nh)\ntry:\nnh = gv.agnxtnode(self.handle, nh)\nexcept StopIteration:\nreturn\n\niternodes = nodes_iter\n\n[docs] def nodes(self):\n\"\"\"Return a list of all nodes in the graph.\"\"\"\nreturn list(self.nodes_iter())\n\n[docs] def number_of_nodes(self):\n\"\"\"Return the number of nodes in the graph.\"\"\"\nreturn gv.agnnodes(self.handle)\n\n[docs] def order(self):\n\"\"\"Return the number of nodes in the graph.\"\"\"\nreturn self.number_of_nodes()\n\n[docs] def has_node(self, n):\n\"\"\"Return True if n is in the graph or False if not.\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n>>> G.has_node(\"a\")\nTrue\n>>> \"a\" in G # same as G.has_node('a')\nTrue\n\n\"\"\"\ntry:\nnode = Node(self, n)\nreturn True\nexcept KeyError:\nreturn False\n\n[docs] def get_node(self, n):\n\"\"\"Return a node object (Node) corresponding to node n.\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n>>> node = G.get_node(\"a\")\n>>> print(node)\na\n\"\"\"\nreturn Node(self, n)\n\n[docs] def add_edge(self, u, v=None, key=None, **attr):\n\"\"\"Add a single edge between nodes u and v.\n\nIf the nodes u and v are not in the graph they will added.\n\nIf u and v are not strings, conversion to a string will be attempted.\nString conversion will work if u and v have valid string representation\n(try str(u) if you are unsure).\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n>>> G.edges()\n[('a', 'b')]\n\nThe optional key argument allows assignment of a key to the\nedge. This is especially useful to distinguish between\nparallel edges in multi-edge graphs (strict=False).\n\n>>> G = pgv.AGraph(strict=False)\n>>> sorted(G.edges(keys=True))\n[('a', 'b', 'first'), ('a', 'b', 'second')]\n\nAttributes can be added when edges are created or updated after creation\n\nAttributes must be valid strings.\n\nSee http://www.graphviz.org/doc/info/attrs.html\nfor a list of attributes.\n\n\"\"\"\nif v is None:\n(u, v) = u # no v given, assume u is an edge tuple\ntry:\nuh = Node(self, u).handle\nexcept:\nuh = Node(self, u).handle\ntry:\nvh = Node(self, v).handle\nexcept:\nvh = Node(self, v).handle\nif key is not None:\nif not isinstance(key, str):\nkey = str(key)\nkey = key.encode(self.encoding)\ntry:\n# new\neh = gv.agedge(self.handle, uh, vh, key, _Action.create)\nexcept KeyError:\neh = gv.agedge(self.handle, uh, vh, key, _Action.find)\ne = Edge(self, eh=eh)\ne.attr.update(**attr)\n\n\"\"\"Add nodes to graph from a container ebunch.\n\nebunch is a container of edges such as a list or dictionary.\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n>>> elist = [(\"a\", \"b\"), (\"b\", \"c\")]\n\nAttributes can be added when edges are created or updated after creation\n\n\"\"\"\nfor e in ebunch:\n\n[docs] def get_edge(self, u, v, key=None):\n\"\"\"Return an edge object (Edge) corresponding to edge (u,v).\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n>>> edge = G.get_edge(\"a\", \"b\")\n>>> print(edge)\n('a', 'b')\n\nWith optional key argument will only get edge matching (u,v,key).\n\n\"\"\"\nreturn Edge(self, u, v, key)\n\n[docs] def remove_edge(self, u, v=None, key=None):\n\"\"\"Remove edge between nodes u and v from the graph.\n\nWith optional key argument will only remove an edge\nmatching (u,v,key).\n\n\"\"\"\nif v is None:\n(u, v) = u # no v given, assume u is an edge tuple\ne = Edge(self, u, v, key)\ntry:\ngv.agdeledge(self.handle, e.handle)\nexcept KeyError:\nraise KeyError(f\"Edge {u}-{v} not in graph.\")\n\ndelete_edge = remove_edge\n\n[docs] def remove_edges_from(self, ebunch):\n\"\"\"Remove edges from ebunch (a container of edges).\"\"\"\nfor e in ebunch:\nself.remove_edge(e)\n\ndelete_edges_from = remove_edges_from\n\n[docs] def has_edge(self, u, v=None, key=None):\n\"\"\"Return True an edge u-v is in the graph or False if not.\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n>>> G.has_edge(\"a\", \"b\")\nTrue\n\nOptional key argument will restrict match to edges (u,v,key).\n\n\"\"\"\n\nif v is None:\n(u, v) = u # no v given, assume u is an edge tuple\ntry:\nEdge(self, u, v, key)\nreturn True\nexcept KeyError:\nreturn False\n\n[docs] def edges(self, nbunch=None, keys=False):\n\"\"\"Return list of edges in the graph.\n\nIf the optional nbunch (container of nodes) only edges\nadjacent to nodes in nbunch will be returned.\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n>>> print(sorted(G.edges()))\n[('a', 'b'), ('c', 'd')]\n>>> print(G.edges(\"a\"))\n[('a', 'b')]\n\"\"\"\nreturn list(self.edges_iter(nbunch=nbunch, keys=keys))\n\n[docs] def has_neighbor(self, u, v, key=None):\n\"\"\"Return True if u has an edge to v or False if not.\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n>>> G.has_neighbor(\"a\", \"b\")\nTrue\n\nOptional key argument will only find edges (u,v,key).\n\"\"\"\nreturn self.has_edge(u, v)\n\n[docs] def neighbors_iter(self, n):\n\"\"\"Return iterator over the nodes attached to n.\n\nNote: modifying the graph structure while iterating over\nnode neighbors may produce unpredictable results. Use neighbors()\nas an alternative.\n\"\"\"\nn = Node(self, n)\nnh = n.handle\neh = gv.agfstedge(self.handle, nh)\nwhile eh is not None:\n(s, t) = Edge(self, eh=eh)\nif s == n:\nyield Node(self, t)\nelse:\nyield Node(self, s)\ntry:\neh = gv.agnxtedge(self.handle, eh, nh)\nexcept StopIteration:\nreturn\n\n[docs] def neighbors(self, n):\n\"\"\"Return a list of the nodes attached to n.\"\"\"\nreturn list(self.neighbors_iter(n))\n\niterneighbors = neighbors_iter\n\n[docs] def out_edges_iter(self, nbunch=None, keys=False):\n\"\"\"Return iterator over out edges in the graph.\n\nIf the optional nbunch (container of nodes) only out edges\nadjacent to nodes in nbunch will be returned.\n\nNote: modifying the graph structure while iterating over\nedges may produce unpredictable results. Use out_edges()\nas an alternative.\n\"\"\"\n\nif nbunch is None: # all nodes\nnh = gv.agfstnode(self.handle)\nwhile nh is not None:\neh = gv.agfstout(self.handle, nh)\nwhile eh is not None:\ne = Edge(self, eh=eh)\nif keys:\nyield (e, e, e.name)\nelse:\nyield e\ntry:\neh = gv.agnxtout(self.handle, eh)\nexcept StopIteration:\nbreak\ntry:\nnh = gv.agnxtnode(self.handle, nh)\nexcept StopIteration:\nreturn\nelif nbunch in self: # if nbunch is a single node\nn = Node(self, nbunch)\nnh = n.handle\neh = gv.agfstout(self.handle, nh)\nwhile eh is not None:\ne = Edge(self, eh=eh)\nif keys:\nyield (e, e, e.name)\nelse:\nyield e\ntry:\neh = gv.agnxtout(self.handle, eh)\nexcept StopIteration:\nreturn\nelse: # if nbunch is a sequence of nodes\ntry:\nbunch = [n for n in nbunch if n in self]\nexcept TypeError:\nraise TypeError(\"nbunch is not a node or a sequence of nodes.\")\nfor n in nbunch:\ntry:\nnh = Node(self, n).handle\nexcept KeyError:\ncontinue\neh = gv.agfstout(self.handle, nh)\nwhile eh is not None:\ne = Edge(self, eh=eh)\nif keys:\nyield (e, e, e.name)\nelse:\nyield e\ntry:\neh = gv.agnxtout(self.handle, eh)\nexcept StopIteration:\nbreak\n\niteroutedges = out_edges_iter\n\n[docs] def in_edges_iter(self, nbunch=None, keys=False):\n\"\"\"Return iterator over out edges in the graph.\n\nIf the optional nbunch (container of nodes) only out edges\nadjacent to nodes in nbunch will be returned.\n\nNote: modifying the graph structure while iterating over\nedges may produce unpredictable results. Use in_edges()\nas an alternative.\n\"\"\"\nif nbunch is None: # all nodes\nnh = gv.agfstnode(self.handle)\nwhile nh is not None:\neh = gv.agfstin(self.handle, nh)\nwhile eh is not None:\ne = Edge(self, eh=eh)\nif keys:\nyield (e, e, e.name)\nelse:\nyield e\ntry:\neh = gv.agnxtin(self.handle, eh)\nexcept StopIteration:\nbreak\ntry:\nnh = gv.agnxtnode(self.handle, nh)\nexcept StopIteration:\nreturn\nelif nbunch in self: # if nbunch is a single node\nn = Node(self, nbunch)\nnh = n.handle\neh = gv.agfstin(self.handle, nh)\nwhile eh is not None:\ne = Edge(self, eh=eh)\nif keys:\nyield (e, e, e.name)\nelse:\nyield e\ntry:\neh = gv.agnxtin(self.handle, eh)\nexcept StopIteration:\nbreak\nelse: # if nbunch is a sequence of nodes\ntry:\nbunch = [n for n in nbunch if n in self]\nexcept TypeError:\nraise TypeError(\"nbunch is not a node or a sequence of nodes.\")\nfor n in nbunch:\ntry:\nnh = Node(self, n).handle\nexcept KeyError:\ncontinue\neh = gv.agfstin(self.handle, nh)\nwhile eh is not None:\ne = Edge(self, eh=eh)\nif keys:\nyield (e, e, e.name)\nelse:\nyield e\ntry:\neh = gv.agnxtin(self.handle, eh)\nexcept StopIteration:\nbreak\n\n[docs] def edges_iter(self, nbunch=None, keys=False):\n\"\"\"Return iterator over edges in the graph.\n\nIf the optional nbunch (container of nodes) only edges\nadjacent to nodes in nbunch will be returned.\n\nNote: modifying the graph structure while iterating over\nedges may produce unpredictable results. Use edges()\nas an alternative.\n\"\"\"\nif nbunch is None: # all nodes\nfor e in self.out_edges_iter(keys=keys):\nyield e\nelif nbunch in self: # only one node\nfor e in self.out_edges_iter(nbunch, keys=keys):\nyield e\nfor e in self.in_edges_iter(nbunch, keys=keys):\nif e != (nbunch, nbunch):\nyield e\nelse: # a group of nodes\nused = set()\nfor e in self.out_edges_iter(nbunch, keys=keys):\nyield e\nfor e in self.in_edges_iter(nbunch, keys=keys):\nif e not in used:\nyield e\n\niterinedges = in_edges_iter\n\niteredges = edges_iter\n\n[docs] def out_edges(self, nbunch=None, keys=False):\n\"\"\"Return list of out edges in the graph.\n\nIf the optional nbunch (container of nodes) only out edges\nadjacent to nodes in nbunch will be returned.\n\"\"\"\nreturn list(self.out_edges_iter(nbunch=nbunch, keys=keys))\n\n[docs] def in_edges(self, nbunch=None, keys=False):\n\"\"\"Return list of in edges in the graph.\nIf the optional nbunch (container of nodes) only in edges\nadjacent to nodes in nbunch will be returned.\n\"\"\"\nreturn list(self.in_edges_iter(nbunch=nbunch, keys=keys))\n\n[docs] def predecessors_iter(self, n):\n\"\"\"Return iterator over predecessor nodes of n.\n\nNote: modifying the graph structure while iterating over\nnode predecessors may produce unpredictable results. Use\npredecessors() as an alternative.\n\"\"\"\nn = Node(self, n)\nnh = n.handle\neh = gv.agfstin(self.handle, nh)\nwhile eh is not None:\n(s, t) = Edge(self, eh=eh)\nif s == n:\nyield Node(self, t)\nelse:\nyield Node(self, s)\ntry:\neh = gv.agnxtin(self.handle, eh)\nexcept StopIteration:\nreturn\n\niterpred = predecessors_iter\n\n[docs] def successors_iter(self, n):\n\"\"\"Return iterator over successor nodes of n.\n\nNote: modifying the graph structure while iterating over\nnode successors may produce unpredictable results. Use\nsuccessors() as an alternative.\n\"\"\"\nn = Node(self, n)\nnh = n.handle\neh = gv.agfstout(self.handle, nh)\nwhile eh is not None:\n(s, t) = Edge(self, eh=eh)\nif s == n:\nyield Node(self, t)\nelse:\nyield Node(self, s)\ntry:\neh = gv.agnxtout(self.handle, eh)\nexcept StopIteration:\nreturn\n\nitersucc = successors_iter\n\n[docs] def successors(self, n):\n\"\"\"Return list of successor nodes of n.\"\"\"\nreturn list(self.successors_iter(n))\n\n[docs] def predecessors(self, n):\n\"\"\"Return list of predecessor nodes of n.\"\"\"\nreturn list(self.predecessors_iter(n))\n\n# digraph definitions\nout_neighbors = successors\nin_neighbors = predecessors\n\n[docs] def degree_iter(self, nbunch=None, indeg=True, outdeg=True):\n\"\"\"Return an iterator over the degree of the nodes given in\nnbunch container.\n\nReturns pairs of (node,degree).\n\"\"\"\nfor n in self._prepare_nbunch(nbunch):\nyield (Node(self, n), gv.agdegree(self.handle, n.handle, indeg, outdeg))\n\n[docs] def in_degree_iter(self, nbunch=None):\n\"\"\"Return an iterator over the in-degree of the nodes given in\nnbunch container.\n\nReturns pairs of (node,degree).\n\"\"\"\nreturn self.degree_iter(nbunch, indeg=True, outdeg=False)\n\n[docs] def out_degree_iter(self, nbunch=None):\n\"\"\"Return an iterator over the out-degree of the nodes given in\nnbunch container.\n\nReturns pairs of (node,degree).\n\n\"\"\"\nreturn self.degree_iter(nbunch, indeg=False, outdeg=True)\n\niteroutdegree = out_degree_iter\niterindegree = in_degree_iter\n\n[docs] def out_degree(self, nbunch=None, with_labels=False):\n\"\"\"Return the out-degree of nodes given in nbunch container.\n\nUsing optional with_labels=True returns a dictionary\nkeyed by node with value set to the degree.\n\"\"\"\nif with_labels:\nreturn dict(self.out_degree_iter(nbunch))\nelse:\ndlist = list(d for n, d in self.out_degree_iter(nbunch))\nif nbunch in self:\nreturn dlist\nelse:\nreturn dlist\n\n[docs] def in_degree(self, nbunch=None, with_labels=False):\n\"\"\"Return the in-degree of nodes given in nbunch container.\n\nUsing optional with_labels=True returns a dictionary\nkeyed by node with value set to the degree.\n\"\"\"\n\nif with_labels:\nreturn dict(self.in_degree_iter(nbunch))\nelse:\ndlist = list(d for n, d in self.in_degree_iter(nbunch))\nif nbunch in self:\nreturn dlist\nelse:\nreturn dlist\n\n[docs] def reverse(self):\n\"\"\"Return copy of directed graph with edge directions reversed.\"\"\"\nif self.directed:\n# new empty DiGraph\nH = self.__class__(strict=self.strict, directed=True, name=self.name)\nH.graph_attr.update(self.graph_attr)\nH.node_attr.update(self.node_attr)\nH.edge_attr.update(self.edge_attr)\nfor n in self.nodes():\nnew_n = Node(H, n)\nnew_n.attr.update(n.attr)\nfor e in self.edges():\n(u, v) = e\nuv = H.get_edge(v, u)\nuv.attr.update(e.attr)\nreturn H\nelse:\nreturn self\n\n[docs] def degree(self, nbunch=None, with_labels=False):\n\"\"\"Return the degree of nodes given in nbunch container.\n\nUsing optional with_labels=True returns a dictionary\nkeyed by node with value set to the degree.\n\n\"\"\"\nif with_labels:\nreturn dict(self.degree_iter(nbunch))\nelse:\ndlist = list(d for n, d in self.degree_iter(nbunch))\nif nbunch in self:\nreturn dlist\nelse:\nreturn dlist\n\niterdegree = degree_iter\n\n[docs] def number_of_edges(self):\n\"\"\"Return the number of edges in the graph.\"\"\"\nreturn gv.agnedges(self.handle)\n\n[docs] def clear(self):\n\"\"\"Remove all nodes, edges, and attributes from the graph.\"\"\"\nself.remove_edges_from(self.edges())\nself.remove_nodes_from(self.nodes())\n# now \"close\" existing graph and create a new graph\nname = gv.agnameof(self.handle)\nstrict = self.strict\ndirected = self.directed\nself._close_handle()\nself.handle = gv.agraphnew(name, strict, directed)\nself._owns_handle = True\nself._update_handle_references()\n\n[docs] def close(self):\nself._close_handle()\n\ndef _close_handle(self):\n# may be useful to clean up graphviz data\n# this should completely remove all of the existing graphviz data\nif self._owns_handle:\nif self.handle is not None:\ngv.agclose(self.handle)\nself.handle = None\nself._owns_handle = False\nelse:\nself.handle = None\n\n[docs] def copy(self):\n\"\"\"Return a copy of the graph.\n\nNotes\n=====\nVersions <=1.6 made a copy by writing and the reading a dot string.\nThis version loads a new graph with nodes, edges and attributes.\n\"\"\"\nG = self.__class__(directed=self.is_directed())\nfor node in self.nodes():\nG.get_node(node).attr.update(self.get_node(node).attr)\nfor edge in self.edges():\nG.get_edge(*edge).attr.update(self.get_edge(*edge).attr)\nG.graph_attr.update(self.graph_attr)\nG.node_attr.update(self.node_attr)\nG.edge_attr.update(self.edge_attr)\nreturn G\n\n\"\"\"Add the path of nodes given in nlist.\"\"\"\nfromv = nlist.pop(0)\nwhile len(nlist) > 0:\ntov = nlist.pop(0)\nfromv = tov\n\n\"\"\"Add the cycle of nodes given in nlist.\"\"\"\n\ndef _prepare_nbunch(self, nbunch=None):\n# private function to build bunch from nbunch\nif nbunch is None: # include all nodes via iterator\nbunch = self.nodes_iter()\nelif nbunch in self: # if nbunch is a single node\nbunch = [Node(self, nbunch)]\nelse: # if nbunch is a sequence of nodes\ntry: # capture error for nonsequence/iterator entries.\nbunch = [Node(self, n) for n in nbunch if n in self]\n# bunch=(n for n in nbunch if n in self) # need python 2.4\nexcept TypeError:\nraise TypeError(\"nbunch is not a node or a sequence of nodes.\")\nreturn bunch\n\n[docs] def add_subgraph(self, nbunch=None, name=None, **attr):\n\"\"\"Return subgraph induced by nodes in nbunch.\"\"\"\nif name is not None:\nname = name.encode(self.encoding)\ntry:\nhandle = gv.agsubg(self.handle, name, _Action.create)\nexcept TypeError:\nraise TypeError(\nf\"Subgraph name must be a string: {name.decode(self.encoding)}\"\n)\n\nH = self.__class__(\nstrict=self.strict, directed=self.directed, handle=handle, name=name, **attr\n)\nif nbunch is None:\nreturn H\n# add induced subgraph on nodes in nbunch\nbunch = self._prepare_nbunch(nbunch)\nfor n in bunch:\nnode = Node(self, n)\nnh = gv.agsubnode(handle, node.handle, _Action.create)\nfor (u, v, k) in self.edges(keys=True):\nif u in H and v in H:\nedge = Edge(self, u, v, k)\neh = gv.agsubedge(handle, edge.handle, _Action.create)\n\nreturn H\n\n[docs] def remove_subgraph(self, name):\n\"\"\"Remove subgraph with given name.\"\"\"\ntry:\nhandle = gv.agsubg(self.handle, name.encode(self.encoding), _Action.find)\nexcept TypeError:\nraise TypeError(f\"Subgraph name must be a string: {name}\")\nif handle is None:\nraise KeyError(f\"Subgraph {name} not in graph.\")\ngv.agdelsubg(self.handle, handle)\n\ndelete_subgraph = remove_subgraph\n\n[docs] def subgraph_parent(self, nbunch=None, name=None):\n\"\"\"Return parent graph of subgraph or None if graph is root graph.\"\"\"\nhandle = gv.agparent(self.handle)\nif handle is None:\nreturn None\nH = self.__class__(\nstrict=self.strict, directed=self.directed, handle=handle, name=name\n)\nreturn H\n\n[docs] def subgraph_root(self, nbunch=None, name=None):\n\"\"\"Return root graph of subgraph or None if graph is root graph.\"\"\"\nhandle = gv.agroot(self.handle)\nif handle is None:\nreturn None\nH = self.__class__(\nstrict=self.strict, directed=self.directed, handle=handle, name=name\n)\nreturn H\n\n[docs] def get_subgraph(self, name):\n\"\"\"Return existing subgraph with specified name or None if it\ndoesn't exist.\n\"\"\"\ntry:\nhandle = gv.agsubg(self.handle, name.encode(self.encoding), _Action.find)\nexcept TypeError:\nraise TypeError(f\"Subgraph name must be a string: {name}\")\n\nif handle is None:\nreturn None\nH = self.__class__(strict=self.strict, directed=self.directed, handle=handle)\nreturn H\n\n[docs] def subgraphs_iter(self):\n\"\"\"Iterator over subgraphs.\"\"\"\nhandle = gv.agfstsubg(self.handle)\nwhile handle is not None:\nyield self.__class__(\nstrict=self.strict, directed=self.directed, handle=handle\n)\ntry:\nhandle = gv.agnxtsubg(handle)\nexcept StopIteration:\nreturn\n\n[docs] def subgraphs(self):\n\"\"\"Return a list of all subgraphs in the graph.\"\"\"\nreturn list(self.subgraphs_iter())\n\n# directed, undirected tests and conversions\n\n[docs] def is_strict(self):\n\"\"\"Return True if graph is strict or False if not.\n\nStrict graphs do not allow parallel edges or self loops.\n\"\"\"\nif gv.agisstrict(self.handle) == 1:\nreturn True\nelse:\nreturn False\n\nstrict = property(is_strict)\n\n[docs] def is_directed(self):\n\"\"\"Return True if graph is directed or False if not.\"\"\"\nif gv.agisdirected(self.handle) == 1:\nreturn True\nelse:\nreturn False\n\ndirected = property(is_directed)\n\n[docs] def is_undirected(self):\n\"\"\"Return True if graph is undirected or False if not.\"\"\"\nif gv.agisundirected(self.handle) == 1:\nreturn True\nelse:\nreturn False\n\n[docs] def to_undirected(self):\n\"\"\"Return undirected copy of graph.\"\"\"\nif not self.directed:\nreturn self.copy()\nelse:\nU = AGraph(strict=self.strict)\nU.graph_attr.update(self.graph_attr)\nU.node_attr.update(self.node_attr)\nU.edge_attr.update(self.edge_attr)\nfor n in self.nodes():\nnew_n = Node(U, n)\nnew_n.attr.update(n.attr)\nfor e in self.edges():\n(u, v) = e\nuv = U.get_edge(u, v)\nuv.attr.update(e.attr)\nreturn U\n\n[docs] def to_directed(self, **kwds):\n\"\"\"Return directed copy of graph.\n\nEach undirected edge u-v is represented as two directed\nedges u->v and v->u.\n\"\"\"\nif not self.directed:\nD = AGraph(strict=self.strict, directed=True)\nD.graph_attr.update(self.graph_attr)\nD.node_attr.update(self.node_attr)\nD.edge_attr.update(self.edge_attr)\nfor n in self.nodes():\nnew_n = Node(D, n)\nnew_n.attr.update(n.attr)\nfor e in self.edges():\n(u, v) = e\nuv = D.get_edge(u, v)\nvu = D.get_edge(v, u)\nuv.attr.update(e.attr)\nuv.attr.update(e.attr)\nvu.attr.update(e.attr)\nreturn D\nelse:\nreturn self.copy()\n\n# io\n\"\"\"Read graph from dot format file on path.\n\npath can be a file name or file handle\n\nuse::\n\n\"\"\"\nfh = self._get_fh(path)\ntry:\nself._close_handle()\ntry:\nexcept ValueError:\nraise DotError(\"Invalid Input\")\nelse:\nself._owns_handle = True\nself._update_handle_references()\nexcept OSError:\n\n[docs] def write(self, path=None):\n\"\"\"Write graph in dot format to file on path.\n\npath can be a file name or file handle\n\nuse::\n\nG.write('file.dot')\n\"\"\"\nif path is None:\npath = sys.stdout\nfh = self._get_fh(path, \"w\")\n# NOTE: TemporaryFile objects are not instances of IOBase on windows.\nif not isinstance(fh, (io.IOBase, tempfile._TemporaryFileWrapper)):\nraise TypeError(f\"{fh} is not a file handle\")\ntry:\ngv.agwrite(self.handle, fh)\nexcept OSError:\nprint(\"IO error writing file\")\nfinally:\nif hasattr(fh, \"close\") and not hasattr(path, \"write\"):\nfh.close()\n\n[docs] def string_nop(self):\n\"\"\"Return a string (unicode) representation of graph in dot format.\"\"\"\n# this will fail for graphviz-2.8 because of a broken nop\n# so use tempfile version below\nreturn self.draw(format=\"dot\", prog=\"nop\").decode(self.encoding)\n\n[docs] def to_string(self):\n\"\"\"Return a string representation of graph in dot format.\n\n`to_string()` uses \"agwrite\" to produce \"dot\" format w/o rendering.\nThe function `string_nop()` layouts with \"nop\" and renders to \"dot\".\n\"\"\"\nfh = tempfile.TemporaryFile()\nself.write(fh)\nfh.seek(0)\nfh.close()\nreturn data.decode(self.encoding)\n\n[docs] def string(self):\n\"\"\"Return a string (unicode) representation of graph in dot format.\"\"\"\nreturn self.to_string()\n# return self.string_nop()\n\n[docs] def from_string(self, string):\n\"\"\"Load a graph from a string in dot format.\n\nOverwrites any existing graph.\n\nTo make a new graph from a string use\n\n>>> import pygraphviz as pgv\n>>> s = \"digraph {1 -> 2}\"\n>>> A = pgv.AGraph()\n>>> t = A.from_string(s)\n>>> A = pgv.AGraph(string=s) # specify s is a string\n>>> A = pgv.AGraph(s) # s assumed to be a string during initialization\n\"\"\"\n# allow either unicode or encoded string\ntry:\nstring = string.decode(self.encoding)\nexcept (UnicodeEncodeError, AttributeError):\npass\nfrom tempfile import TemporaryFile\n\nfh = TemporaryFile()\nfh.write(string.encode(self.encoding))\nfh.seek(0)\nfh.close()\nreturn self\n\ndef _get_prog(self, prog):\n# private: get path of graphviz program\nprogs = {\n\"neato\",\n\"dot\",\n\"twopi\",\n\"circo\",\n\"fdp\",\n\"nop\",\n\"osage\",\n\"patchwork\",\n\"gc\",\n\"acyclic\",\n\"gvpr\",\n\"gvcolor\",\n\"ccomps\",\n\"sccmap\",\n\"tred\",\n\"sfdp\",\n\"unflatten\",\n}\nif prog not in progs:\nraise ValueError(f\"Program {prog} is not one of: {', '.join(progs)}.\")\n\ntry: # user must pick one of the graphviz programs...\nrunprog = self._which(prog)\nexcept:\n\nreturn runprog\n\ndef _run_prog(self, prog=\"nop\", args=\"\"):\n\"\"\"Apply graphviz program to graph and return the result as a string.\n\n>>> import pygraphviz as pgv\n>>> A = pgv.AGraph()\n>>> s = A._run_prog() # doctest: +SKIP\n>>> s = A._run_prog(prog=\"acyclic\") # doctest: +SKIP\n\n\"\"\"\nrunprog = r'\"%s\"' % self._get_prog(prog)\ncmd = \" \".join([runprog, args])\ndotargs = shlex.split(cmd)\np = subprocess.Popen(\ndotargs,\nshell=False,\nstdin=subprocess.PIPE,\nstdout=subprocess.PIPE,\nstderr=subprocess.PIPE,\nclose_fds=False,\n)\n(child_stdin, child_stdout, child_stderr) = (p.stdin, p.stdout, p.stderr)\n# Use threading to avoid blocking\ndata = []\nerrors = []\nt.start()\n\nself.write(child_stdin)\nchild_stdin.close()\n\nt.join()\np.wait()\n\nif not data:\nraise OSError(b\"\".join(errors).decode(self.encoding))\n\nif len(errors) > 0:\nwarnings.warn(b\"\".join(errors).decode(self.encoding), RuntimeWarning)\nreturn b\"\".join(data)\n\n[docs] def unflatten(self, args=\"\"):\n\"\"\"Adjust directed graphs to improve layout aspect ratio.\n\n>>> import pygraphviz as pgv\n>>> A = pgv.AGraph()\n>>> A_unflattened = A.unflatten(\"-f -l 3\")\n>>> A.unflatten(\"-f -l 1\").layout()\n\n\"\"\"\ndata = self._run_prog(\"unflatten\", args)\nself.from_string(data)\nreturn self\n\n[docs] def tred(self, args=\"\", copy=False):\n\"\"\"Transitive reduction of graph. Modifies existing graph.\n\nTo create a new graph use\n\n>>> import pygraphviz as pgv\n>>> A = pgv.AGraph(directed=True)\n>>> B = A.tred(copy=True) # doctest: +SKIP\n\nSee the graphviz \"tred\" program for details of the algorithm.\n\"\"\"\nif not self.directed:\nraise TypeError(\"tred requires a directed graph\")\n\ndata = self._run_prog(\"tred\", args)\nif copy:\nreturn self.__class__(string=data.decode(self.encoding))\nelse:\nreturn self.from_string(data)\n\n[docs] def acyclic(self, args=\"\", copy=False):\n\"\"\"Reverse sufficient edges in digraph to make graph acyclic.\nModifies existing graph.\n\nTo create a new graph use\n\n>>> import pygraphviz as pgv\n>>> A = pgv.AGraph(directed=True)\n>>> B = A.acyclic(copy=True) # doctest: +SKIP\n\nSee the graphviz \"acyclic\" program for details of the algorithm.\n\"\"\"\nif not self.directed:\nraise TypeError(\"acyclic requires a directed graph\")\n\ndata = self._run_prog(\"acyclic\", args)\nif copy:\nreturn self.__class__(string=data.decode(self.encoding))\nelse:\nreturn self.from_string(data)\n\n[docs] def layout(self, prog=\"neato\", args=\"\"):\n\"\"\"Assign positions to nodes in graph.\n\nOptional prog=['neato'|'dot'|'twopi'|'circo'|'fdp'|'nop']\nwill use specified graphviz layout method.\n\n>>> import pygraphviz as pgv\n>>> A = pgv.AGraph()\n>>> A.layout()\n>>> A.layout(prog=\"neato\", args=\"-Nshape=box -Efontsize=8\")\n\nThe layout might take a long time on large graphs.\n\n\"\"\"\noutput_fmt = \"dot\"\ndata = self._run_prog(prog, \" \".join([args, \"-T\", output_fmt]))\nself.from_string(data)\nself.has_layout = True\nreturn\n\ndef _layout(self, prog=\"neato\", args=\"\"):\n\"\"\"Assign positions to nodes in graph.\n\n.. caution:: EXPERIMENTAL\n\nThis version of the layout command uses libgvc for layout instead\nof command line GraphViz tools like in versions <1.6 and the default.\n\nOptional prog=['neato'|'dot'|'twopi'|'circo'|'fdp'|'nop']\nwill use specified graphviz layout method.\n\n>>> import pygraphviz as pgv\n>>> A = pgv.AGraph()\n>>> A.layout()\n>>> A.layout(prog=\"neato\", args=\"-Nshape=box -Efontsize=8\")\n\nThe layout might take a long time on large graphs.\n\nNote: attaching positions in the AGraph usually doesn't affect the\nnext rendering. The positions are recomputed. But if you use prog=\"nop\"\nwhen rendering, it will take node positions from the AGraph attributes.\nIf you use prog=\"nop2\" it will take node and edge positions from the\nAGraph when rendering.\n\"\"\"\n_, prog = self._manually_parse_args(args, None, prog)\n\n# convert input strings to type bytes (encode it)\nif isinstance(prog, str):\nprog = prog.encode(self.encoding)\n\ngvc = gv.gvContext()\ngv.gvLayout(gvc, self.handle, prog)\ngv.gvRender(gvc, self.handle, format=b\"dot\", out=None)\n\ngv.gvFreeLayout(gvc, self.handle)\ngv.gvFreeContext(gvc)\n\nself.has_layout = True\nreturn\n\n[docs] def draw(self, path=None, format=None, prog=None, args=\"\"):\n\"\"\"Output graph to path in specified format.\n\nAn attempt will be made to guess the output format based on the file\nextension of `path`. If that fails, then the `format` parameter will\nbe used.\n\nNote, if `path` is a file object returned by a call to os.fdopen(),\nthen the method for discovering the format will not work. In such\ncases, one should explicitly set the `format` parameter; otherwise, it\nwill default to 'dot'.\n\nIf path is None, the result is returned as a Bytes object.\n\nFormats (not all may be available on every system depending on\nhow Graphviz was built)\n\n'canon', 'cmap', 'cmapx', 'cmapx_np', 'dia', 'dot',\n'fig', 'gd', 'gd2', 'gif', 'hpgl', 'imap', 'imap_np',\n'ismap', 'jpe', 'jpeg', 'jpg', 'mif', 'mp', 'pcl', 'pdf',\n'pic', 'plain', 'plain-ext', 'png', 'ps', 'ps2', 'svg',\n'svgz', 'vml', 'vmlz', 'vrml', 'vtx', 'wbmp', 'xdot', 'xlib'\n\nIf prog is not specified and the graph has positions\n(see layout()) then no additional graph positioning will\nbe performed.\n\nOptional prog=['neato'|'dot'|'twopi'|'circo'|'fdp'|'nop']\nwill use specified graphviz layout method.\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n>>> G.add_edges_from([(0, 1), (1, 2), (2, 0), (2, 3)])\n>>> G.layout()\n\n# use current node positions, output pdf in 'file.pdf'\n>>> G.draw(\"file.pdf\")\n\n# use dot to position, output png in 'file'\n>>> G.draw(\"file\", format=\"png\", prog=\"dot\")\n\n# use keyword 'args' to pass additional arguments to graphviz\n>>> G.draw(\"test.pdf\", prog=\"twopi\", args=\"-Gepsilon=1\")\n>>> G.draw(\"test2.pdf\", args=\"-Nshape=box -Edir=forward -Ecolor=red \")\n\nThe layout might take a long time on large graphs.\n\n\"\"\"\n# try to guess format from extension\nif format is None and path is not None:\np = path\n# in case we got a file handle get its name instead\nif not isinstance(p, str):\np = path.name\nformat = os.path.splitext(p)[-1].lower()[1:]\n\nif format is None or format == \"\":\nformat = \"dot\"\n\nif prog is None:\nif self.has_layout:\nprog = \"neato\"\nargs += \"-n2\"\nelse:\nraise AttributeError(\n\"Graph has no layout information, see layout() or specify prog=%s.\"\n% (\"|\".join([\"neato\", \"dot\", \"twopi\", \"circo\", \"fdp\", \"nop\"]))\n)\n\nelse:\nif self.number_of_nodes() > 1000:\nsys.stderr.write(\n\"Warning: graph has %s nodes...layout may take a long time.\\n\"\n% self.number_of_nodes()\n)\n\nif prog == \"nop\": # nop takes no switches\nargs = \"\"\nelse:\nargs = \" \".join([args, \"-T\" + format])\n\ndata = self._run_prog(prog, args)\n\nif path is not None:\nfh = self._get_fh(path, \"w+b\")\nfh.write(data)\nif isinstance(path, str):\nfh.close()\nd = None\nelse:\nd = data\nreturn d\n\ndef _draw(self, path=None, format=None, prog=None, args=\"\"):\n\"\"\"Output graph to path in specified format.\n\n.. caution:: EXPERIMENTAL\n\nThis version of the draw command uses libgvc for drawing instead\nof command line GraphViz tools like in versions <1.6 and the default.\n\nAn attempt will be made to guess the output format based on the file\nextension of `path`. If that fails, then the `format` parameter will\nbe used.\n\nNote, if `path` is a file object returned by a call to os.fdopen(),\nthen the method for discovering the format will not work. In such\ncases, one should explicitly set the `format` parameter; otherwise, it\nwill default to 'dot'.\n\nIf path is None, the result is returned as a Bytes object.\n\nFormats (not all may be available on every system depending on\nhow Graphviz was built)\n\n'canon', 'cmap', 'cmapx', 'cmapx_np', 'dia', 'dot',\n'fig', 'gd', 'gd2', 'gif', 'hpgl', 'imap', 'imap_np',\n'ismap', 'jpe', 'jpeg', 'jpg', 'mif', 'mp', 'pcl', 'pdf',\n'pic', 'plain', 'plain-ext', 'png', 'ps', 'ps2', 'svg',\n'svgz', 'vml', 'vmlz', 'vrml', 'vtx', 'wbmp', 'xdot', 'xlib'\n\nIf prog is not specified and the graph has positions\n(see layout()) then no additional graph positioning will\nbe performed.\n\nOptional prog=['neato'|'dot'|'twopi'|'circo'|'fdp'|'nop']\nwill use specified graphviz layout method.\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n>>> G.add_edges_from([(0, 1), (1, 2), (2, 0), (2, 3)])\n>>> G.layout()\n\n# use current node positions, output pdf in 'file.pdf'\n>>> G.draw(\"file.pdf\")\n\n# use dot to position, output png in 'file'\n>>> G.draw(\"file\", format=\"png\", prog=\"dot\")\n\n# use keyword 'args' to pass additional arguments to graphviz\n>>> G.draw(\"test.pdf\", prog=\"twopi\", args=\"-Gepsilon=1\")\n>>> G.draw(\"test2.pdf\", args=\"-Nshape=box -Edir=forward -Ecolor=red \")\n\nThe layout might take a long time on large graphs.\n\n\"\"\"\n# try to guess format from extension\nif format is None and path is not None:\np = path\n# in case we got a file handle get its name instead\nif not isinstance(p, str):\np = path.name\nformat = os.path.splitext(p)[-1].lower()[1:]\n\nif format is None or format == \"\":\nformat = \"dot\"\n\nif prog is None:\nif self.has_layout:\nprog = \"neato\"\nargs += \" -n2\"\nelse:\nraise AttributeError(\n\"\"\"Graph has no layout information, see layout() or specify prog=%s.\"\"\"\n% (\"|\".join([\"neato\", \"dot\", \"twopi\", \"circo\", \"fdp\", \"nop\"]))\n)\n\nelse:\nif self.number_of_nodes() > 1000:\nsys.stderr.write(\n\"Warning: graph has %s nodes...layout may take a long time.\\n\"\n% self.number_of_nodes()\n)\n\n# process args\nformat, prog = self._manually_parse_args(args, format, prog)\n\n# convert input strings to type bytes (encode it)\nif isinstance(format, str):\nformat = format.encode(self.encoding)\nif isinstance(prog, str):\nprog = prog.encode(self.encoding)\n\n# Start the drawing\ngvc = gv.gvContext()\nG = self.handle\n\n# Layout\nerr = gv.gvLayout(gvc, G, prog)\nif err:\nif err != -1:\nraise ValueError(\"Graphviz raised a layout error.\")\nprog = prog.decode(self.encoding)\nraise ValueError(f\"Can't find prog={prog} in this graphviz installation\")\n\n# Render\nif path is None:\nout = gv.gvRenderData(gvc, G, format)\nif out:\nraise ValueError(f\"Graphviz Error creating dot representation:{out}\")\nerr, dot_string, length = out\nassert len(dot_string) == length\ngv.gvFreeLayout(gvc, G)\ngv.gvFreeContext(gvc)\nreturn dot_string\n\n# path is string holding the filename, a file handle, or pathlib.Path\nfh = self._get_fh(path, \"wb\")\nerr = gv.gvRender(gvc, G, format, fh)\nif err:\nraise ValueError(\"Graphviz raised a render error. Maybe bad format?\")\nif isinstance(path, str):\nfh.close()\ngv.gvFreeLayout(gvc, G)\ngv.gvFreeContext(gvc)\n\n# some private helper functions\n\ndef _manually_parse_args(self, args, format=None, prog=None):\n\"\"\"Experimental code to parse args relevant for libgvc drawing and layout\"\"\"\narg_list = shlex.split(args)\nfor arg in arg_list:\nvalue = arg[2:]\nif arg[:2] == \"-T\":\nif format and format != value:\nraise ValueError(\"format doesnt match in args and format inputs\")\nformat = value\nif arg[:2] == \"-K\":\nif prog and prog != value:\nprog = value\n# raise ValueError(\"prog doesnt match in args and prog inputs\")\nprog = value\nif arg[:2] == \"-G\":\nkey, val = value.split(\"=\")\nself.graph_attr[key] = val\nif arg[:2] == \"-N\":\nkey, val = value.split(\"=\")\nself.node_attr[key] = val\nif arg[:2] == \"-E\":\nkey, val = value.split(\"=\")\nself.edge_attr[key] = val\nreturn format, prog\n\ndef _get_fh(self, path, mode=\"r\"):\n\"\"\"Return a file handle for given path.\n\nPath can be a string, pathlib.Path, or a file handle.\nAttempt to uncompress/compress files ending in '.gz' and '.bz2'.\n\"\"\"\nimport os\n\nif isinstance(path, str):\nif path.endswith(\".gz\"):\n# import gzip\n# fh = gzip.open(path,mode=mode) # doesn't return real fh\nfh = os.popen(\"gzcat \" + path) # probably not portable\nelif path.endswith(\".bz2\"):\n# import bz2\n# fh = bz2.BZ2File(path,mode=mode) # doesn't return real fh\nfh = os.popen(\"bzcat \" + path) # probably not portable\nelse:\nfh = open(path, mode=mode)\nelif hasattr(path, \"write\"):\n# Note, mode of file handle is unchanged.\nfh = path\nelif hasattr(path, \"open\"):\nfh = path.open(mode=mode)\nelse:\nraise TypeError(\"path must be a string, path, or file handle.\")\nreturn fh\n\ndef _which(self, name):\n\"\"\"Searches for name in exec path and returns full path\"\"\"\nimport glob\nimport platform\n\nif platform.system() == \"Windows\":\nname += \".exe\"\n\npaths = os.environ[\"PATH\"]\nfor path in paths.split(os.pathsep):\nmatch = glob.glob(os.path.join(path, name))\nif match:\nreturn match\nraise ValueError(f\"No prog {name} in path.\")\n\ndef _update_handle_references(self):\ntry:\nself.graph_attr.handle = self.handle\nself.node_attr.handle = self.handle\nself.edge_attr.handle = self.handle\nexcept AttributeError:\npass # ignore as likely still in __init__()\n\nclass Node(str):\n\"\"\"Node object based on unicode.\n\nIf G is a graph\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n\nthen\n\nwill create a node object labeled by the string \"1\".\n\nTo get the object use\n\n>>> node = pgv.Node(G, 1)\n\nor\n>>> node = G.get_node(1)\n\nThe node object is derived from a string and can be manipulated as such.\n\nEach node has attributes that can be directly accessed through\nthe attr dictionary:\n\n>>> node.attr[\"color\"] = \"red\"\n\n\"\"\"\n\ndef __new__(self, graph, name=None, nh=None):\nif nh is not None:\nn = super().__new__(self, gv.agnameof(nh), graph.encoding)\nelse:\nn = super().__new__(self, name)\ntry:\nnh = gv.agnode(graph.handle, n.encode(graph.encoding), _Action.find)\nexcept KeyError:\nraise KeyError(f\"Node {n} not in graph.\")\n\nn.ghandle = graph.handle\nn.attr = ItemAttribute(nh, 1)\nn.handle = nh\nn.encoding = graph.encoding\nreturn n\n\ndef get_handle(self):\n\"\"\"Return pointer to graphviz node object.\"\"\"\nreturn gv.agnode(self.ghandle, self.encode(self.encoding), _Action.find)\n\n# handle=property(get_handle)\n\ndef get_name(self):\nname = gv.agnameof(self.handle)\nif name is not None:\nname = name.decode(self.encoding)\nreturn name\n\nname = property(get_name)\n\nclass Edge(tuple):\n\"\"\"Edge object based on tuple.\n\nIf G is a graph\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n\nthen\n\nwill add the edge 1-2 to the graph.\n\n>>> edge = pgv.Edge(G, 1, 2)\n\nor\n>>> edge = G.get_edge(1, 2)\n\nwill get the edge object.\n\nAn optional key can be used\n\n>>> edge = pgv.Edge(G, 2, 3, \"spam\")\n\nThe edge is represented as a tuple (u,v) or (u,v,key)\nand can be manipulated as such.\n\nEach edge has attributes that can be directly accessed through\nthe attr dictionary:\n\n>>> edge.attr[\"color\"] = \"red\"\n\n\"\"\"\n\ndef __new__(self, graph, source=None, target=None, key=None, eh=None):\n# edge handle given, reconstruct node object\nif eh is not None:\ns = Node(graph, nh=source)\nt = Node(graph, nh=target)\n# no edge handle, search for edge and construct object\nelse:\ns = Node(graph, source)\nt = Node(graph, target)\nif key is not None:\nif not isinstance(key, str):\nkey = str(key)\nkey = key.encode(graph.encoding)\ntry:\neh = gv.agedge(graph.handle, s.handle, t.handle, key, _Action.find)\nexcept KeyError:\nraise KeyError(f\"Edge {source}-{target} not in graph.\")\n\ntp = tuple.__new__(self, (s, t))\ntp.ghandle = graph.handle\ntp.handle = eh\ntp.attr = ItemAttribute(eh, 3)\ntp.encoding = graph.encoding\nreturn tp\n\ndef get_name(self):\nname = gv.agnameof(self.handle)\nif name is not None:\nname = name.decode(self.encoding)\nreturn name\n\nname = property(get_name)\nkey = property(get_name)\n\nclass Attribute(MutableMapping):\n\"\"\"Default attributes for graphs.\n\nAssigned on initialization of AGraph class.\nand manipulated through the class data.\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph() # initialize, G.graph_attr, G.node_attr, G.edge_attr\n>>> G.graph_attr[\"splines\"] = \"true\"\n>>> G.node_attr[\"shape\"] = \"circle\"\n>>> G.edge_attr[\"color\"] = \"red\"\n\nSee\nhttp://graphviz.org/doc/info/attrs.html\nfor a list of all attributes.\n\n\"\"\"\n\n# use for graph, node, and edge default attributes\n# atype:graph=0, node=1,edge=3\ndef __init__(self, handle, atype):\nself.handle = handle\nself.type = atype\n# get the encoding\nghandle = gv.agraphof(handle)\nroot_handle = gv.agroot(ghandle) # get root graph\ntry:\nitem = gv.agattrdefval(gv.agattr(root_handle, 0, b\"charset\", None))\nself.encoding = item if type(item) is not bytes else item.decode(\"utf-8\")\nexcept KeyError:\nself.encoding = _DEFAULT_ENCODING\n\ndef __setitem__(self, name, value):\nif name == \"charset\" and self.type == 0:\nraise ValueError(\"Graph charset is immutable!\")\nif not isinstance(value, str):\nvalue = str(value)\nghandle = gv.agroot(self.handle) # get root graph\nif ghandle == self.handle:\ngv.agattr_label(\nself.handle,\nself.type,\nname.encode(self.encoding),\nvalue.encode(self.encoding),\n)\nelse:\ngv.agsafeset_label(\nghandle,\nself.handle,\nname.encode(self.encoding),\nvalue.encode(self.encoding),\nb\"\",\n)\n\ndef __getitem__(self, name):\nitem = gv.agget(self.handle, name.encode(self.encoding))\nif item is None:\nah = gv.agattr(self.handle, self.type, name.encode(self.encoding), None)\nitem = gv.agattrdefval(ah)\nreturn item.decode(self.encoding)\n\ndef __delitem__(self, name):\ngv.agattr(self.handle, self.type, name.encode(self.encoding), b\"\")\n\ndef __contains__(self, name):\ntry:\nself.__getitem__(name)\nreturn True\nexcept:\nreturn False\n\ndef __len__(self):\nreturn len(list(self.__iter__()))\n\ndef has_key(self, name):\nreturn self.__contains__(name)\n\ndef keys(self):\nreturn list(self.__iter__())\n\ndef __iter__(self):\nfor (k, v) in self.iteritems():\nyield k\n\ndef iteritems(self):\nah = None\nwhile True:\ntry:\nah = gv.agnxtattr(self.handle, self.type, ah)\nyield (\ngv.agattrname(ah).decode(self.encoding),\ngv.agattrdefval(ah).decode(self.encoding),\n)\nexcept KeyError: # gv.agattrdefval returned KeyError, skip\ncontinue\nexcept StopIteration: # gv.agnxtattr is done, as are we\nreturn\n\nclass ItemAttribute(Attribute):\n\"\"\"Attributes for individual nodes and edges.\n\nAssigned on initialization of Node or Edge classes\nand manipulated through the class data.\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n>>> n = pgv.Node(G, \"a\")\n>>> n.attr[\"shape\"] = \"circle\"\n>>> e = pgv.Edge(G, \"a\", \"b\")\n>>> e.attr[\"color\"] = \"red\"\n\nSee\nhttp://graphviz.org/doc/info/attrs.html\nfor a list of all attributes.\n\"\"\"\n\n# use for individual item attributes - either a node or an edge\n# graphs and default node and edge attributes use Attribute\ndef __init__(self, handle, atype):\nself.handle = handle\nself.type = atype\nself.ghandle = gv.agraphof(handle)\n# get the encoding\nroot_handle = gv.agroot(self.ghandle) # get root graph\ntry:\nitem = gv.agattrdefval(gv.agattr(root_handle, 0, b\"charset\", None))\nself.encoding = item if type(item) is not bytes else item.decode(\"utf-8\")\nexcept KeyError:\nself.encoding = _DEFAULT_ENCODING\n\ndef __setitem__(self, name, value):\nif not isinstance(value, str):\nvalue = str(value)\nif self.type == 1 and name == \"label\":\ndefault = \"\\\\N\"\nelse:\ndefault = \"\"\ngv.agsafeset_label(\nself.ghandle,\nself.handle,\nname.encode(self.encoding),\nvalue.encode(self.encoding),\ndefault.encode(self.encoding),\n)\n\ndef __getitem__(self, name):\nval = gv.agget(self.handle, name.encode(self.encoding))\nif val is not None:\nval = val.decode(self.encoding)\nreturn val\n\ndef __delitem__(self, name):\ngv.agset(self.handle, name.encode(self.encoding), b\"\")\n\ndef iteritems(self):\nah = None\nwhile 1:\ntry:\nah = gv.agnxtattr(self.ghandle, self.type, ah)\nvalue = gv.agxget(self.handle, ah)\ntry:\ndefval = gv.agattrdefval(ah) # default value\nif defval == value:\ncontinue # don't report default\nexcept: # no default, gv.getattrdefval raised error\npass\n# unique value for this edge\nyield (\ngv.agattrname(ah).decode(self.encoding),\nvalue.decode(self.encoding),\n)\nexcept KeyError: # gv.agxget returned KeyError, skip\ncontinue\nexcept StopIteration: # gv.agnxtattr is done, as are we\nreturn\n\ndef to_dict(self):\nah = None\nattrdict = {}\nwhile 1:\ntry:\nah = gv.agnxtattr(self.ghandle, self.type, ah)\nexcept StopIteration: # gv.agnxtattr is done, as are we\nbreak\nkey = gv.agattrname(ah).decode(self.encoding)\nvalue = gv.agxget(self.handle, ah).decode(self.encoding)\nattrdict[key] = value\nreturn attrdict\n```" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.5177441,"math_prob":0.74180037,"size":52790,"snap":"2022-05-2022-21","text_gpt3_token_len":14388,"char_repetition_ratio":0.17432652,"word_repetition_ratio":0.35065293,"special_character_ratio":0.29316157,"punctuation_ratio":0.22255193,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9781181,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-26T10:20:24Z\",\"WARC-Record-ID\":\"<urn:uuid:6f8129eb-c59d-4d88-92a6-5c0a0a6ff88e>\",\"Content-Length\":\"289743\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8b5baf0e-32f7-4304-8212-4402f4a6c0e6>\",\"WARC-Concurrent-To\":\"<urn:uuid:566e71b2-b29f-4e21-950b-30ca905d3bb6>\",\"WARC-IP-Address\":\"185.199.108.153\",\"WARC-Target-URI\":\"https://pygraphviz.github.io/documentation/stable/_modules/pygraphviz/agraph.html\",\"WARC-Payload-Digest\":\"sha1:FYESSE6ZVAXJBV5OSSGOSBWB7SD4MPUT\",\"WARC-Block-Digest\":\"sha1:5BJS3IPWU7HTP5N3NWWUXKTEDOGHDCC2\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662604794.68_warc_CC-MAIN-20220526100301-20220526130301-00001.warc.gz\"}"}
https://www.algebra-class.com/linear-inequalities.html
[ "# Graphing Linear InequalitiesPractice Problems\n\nHow are you doing with graphing inequalities? Can you remember how to draw the boundary line and which side of the half plane to shade?\n\nOn this page, you will find two practice problems for graphing inequalities. Try them on your own and see how you do.\n\nYou may need to go back and review the examples on graphing linear inequalities.\n\nBefore you begin, let's review a few things!\n\n## Steps for Graphing Linear Inequalities\n\n• Rewrite the inequality in slope intercept form if needed.\n\n• Graph a dotted line if the inequality is greater than or less than.\n\n• Graph a solid line if the inequality is greater than or equal to or less than or equal to.\n\n• Substitute an ordered pair to determine which side of the line to shade. (0,0) is the easiest ordered pair to choose, if it is not on the line.\n\n• Shade the side of the line that contains all of the solutions to the inequality.\n\n• Check your work by substituting a point to determine whether or not it is a solution.\n\n## Practice Problems\n\n1.  y < -x - 4\n\n2.  y > 3x + 3\n\nNow you must check your answers. If you had difficulty, check the steps below to help find where you are making your mistake. Remember that making mistakes is OK, as long as you learn from those mistakes. This is the reason why I feel that step by step answer keys are very important.\n\n## Solutions\n\nThe inequality in Example 1 is already written in slope intercept form. Therefore, you can graph the y-intercept at y = -4 and use a slope of -1 to find the next point.\n\nNotice that we used a solid boundary line since the inequality symbol is \"less than or equal to\" in this problem.", null, "All of the points in the yellow shaded area are solutions to this inequality. You can choose any point in this area, substitute those values for x and y into the original inequality, and end up with a true math statement.\n\n### Problem 2\n\nProblem 2 is already written in slope intercept form as well, so we can begin graphing the y-intercept at y = 3 and using a slope of 3 to find the next point.\n\nNotice that we have a dotted boundary line this time because the inequality symbol is \"greater than\" in this problem. This means that solutions to the inequality are NOT included on the boundary line.", null, "Since (0,0) is not a solution, we shaded the left hand side of the dotted line. This half plane contains all of the points that are solutions to this inequality.\n\nTry it! Pick any point in the shaded area and substitute the values for x and y into the original inequality. Your math sentence should be a true statement with any point in the shaded area.\n\nGreat Job! You are doing great with graphing linear inequalities. Next we will study Systems of Inequalities.", null, "" ]
[ null, "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 421 506'%3E%3C/svg%3E", null, "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 452 498'%3E%3C/svg%3E", null, "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 208 122.451612903226'%3E%3C/svg%3E", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9408894,"math_prob":0.9716502,"size":2498,"snap":"2023-40-2023-50","text_gpt3_token_len":539,"char_repetition_ratio":0.12951082,"word_repetition_ratio":0.057777777,"special_character_ratio":0.21417134,"punctuation_ratio":0.0996016,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9873533,"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-12-06T00:20:00Z\",\"WARC-Record-ID\":\"<urn:uuid:0eb2ef35-030d-4681-a424-f43b40ded6cb>\",\"Content-Length\":\"26950\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6dea085b-7616-4d59-9503-e59723d77849>\",\"WARC-Concurrent-To\":\"<urn:uuid:4f221a4a-d76e-4559-9dbc-df2e77072c74>\",\"WARC-IP-Address\":\"173.247.219.209\",\"WARC-Target-URI\":\"https://www.algebra-class.com/linear-inequalities.html\",\"WARC-Payload-Digest\":\"sha1:MYFXHH6TLNZDN5QF6ZXEJEDC7V4YTIHE\",\"WARC-Block-Digest\":\"sha1:FL542D5DRULEBXUWOK4CA6JV3VYKC4WI\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100575.30_warc_CC-MAIN-20231206000253-20231206030253-00288.warc.gz\"}"}
http://samplingplans.com/tpzerousermanual.htm
[ "| Home | TPZero |", null, "TPZero User Manual\n\nTool for Ac=0 Acceptance Sampling Plans", null, "Related Methods Example Input: Consumer's Point: Example Output: Decision Rule: Example Output: Probability Statement of the  Consumer's Point: File Menu Design Menu Help Menu The Right mouse button pop-up menu Entering the Consumer's Point, RQL & Beta Entering the acceptance number for AC>0 Calculated Sample Size, n Points on the OC Curve Producer's Point (AQL,Alpha) Possible Fractions Defective Nomenclature Assumptions and Limitations of TPZero           Range of Input variables           Binomial Distribution Getting Help Buy and Register TPZero How to Contact H & H Servicco Corp. Glossary Credits: TPZero uses the following products:\n\n# What does this tool for Ac = 0 do?\n\nThis software tool calculates the sample size for Ac=0 acceptance sampling plans. The user specifies the sampling requirement by entering a Consumer's Point of the oc curve that the sampling plan should have. That is the only input required.\n\n## Related Methods\n\nThese zero acceptance number plans are usually called C=0 plans when used for manufacturing and quality control applications, and to \"Discovery Sampling\" plans when used for auditing financial records.\n\n### Example Input: a Consumer's Point:\n\nRQL = 0.10 fraction defective, Beta = 0.05\n\nn = 28, Ac = 0\n\n### Example Output: of Probability Statement describing the Consumer's Point:\n\nIf the true lot fraction defective is 0.10 or more, then the probability that a sample of n =28 will contain 0 defectives is 0.05 or less.\n\nTPZero is a simple tool with only three main menus.\n\nThe File menu will print a copy of the report on the default printer, copy it to the Windows clipboard, or exit the program.", null, "The Design menu has only one option -- to design a C=0 sampling plan.", null, "The Help menu provides help in using TPZero.", null, "## The Right mouse button pop-up menu", null, "# User Interface\n\n## Entering the Consumer's Point, RQL & Beta\n\nYou start this form from the Design Menu. [Design][Ac=0].\n\nTo calculate the sample size required, you only need to enter two values, RQL and Beta.\n\nTo determine a sample size for your application, change the example values of RQL and Beta to your values. Then push the Calculate Button.", null, "## Entering the acceptance number for AC>0\n\nYou start this form from the Design Menu. [Design][Ac>0].\n\nAs you increase the Acceptance number ( Ac) and do nothing else, the oc curve moves to the right (towards higher fraction defective)\n\nAs you move Ac up and RQL down the oc curve becomes steeper, making the plan more discriminating.\n\n## Calculated Sample Size, n\n\nWhen you push the Calculate Button, TPZero tool calculates the sample size required by the consumer's point ( RQL, Beta).", null, "### Interpretation of the output:\n\nThe Decision Rule", null, "· The sample size, n, is rounded to the nearest whole number.", null, "· The exact-n displays the value of n that exactly satisfies your consumer's point -- before rounding to the whole number, n. (Shown only for sample size less than 1,000.)", null, "· The Ac = 0 decision rule is stated.\n\n### Performance of the Sampling Plan", null, "· The exact meaning of your consumer's point is shown as a probability statement.", null, "· The producer's point is displayed and interpreted for Alpha = 0.05.\n\n# Using the OC Curve, Plot of Pa versus p'", null, "This oc curve describes the performance of the decision rule n=28, Ac=0. This plan was designed by specifying the consumer's point: RQL=0.10, Beta=0.05\n\nEvery decision rule ( n , Ac ) has an oc curve, which describes the sampling plans' probability of accepting lots having various fractions defective.\n\nThe program TPZero displays two points on the oc curve, the Consumer's Point and the Producer's Point.\n\n## Points on the OC Curve\n\n( RQL, Beta) and ( AQL, Alpha) define the consumer's and producer's points on an oc curve. Actually, any point on the oc curve, regardless of what you call it, can be entered for (RQL, Beta). TPZero will calculate the sample size for the one Ac=0 sampling plan that has an oc curve going through that point..\n\n## Producer's Point (AQL,Alpha)\n\nFor your information, TPZero shows the producers point, ( AQL and Alpha ) at Alpha = 0.05 for all sampling plans. This second point is not necessary in designing an Ac=0 sampling plan because for a given Ac, you only need to specify one point.\n\nHowever, knowing the producer's point can be useful if you need to know the lot quality that will have a high probability of acceptance with the plan.\n\nFor Alpha = 0.05, Pa = (1-Alpha) = 0.95 (95%)\n\n# Appendix\n\n## Possible Fractions Defective\n\nTPZero does not use lot size, so it can not automatically limit RQL to the possible series of values of lot p'. For any lot containing N items, the possible fractions defective are:\n\np': 0, 1/N, 2/N, 3/N ....\n\nFor example, if N=100, the possible numbers of defective items are:\n\ndefectives = 0, 1, 2, 3 ...\n\nSo the values of p' are limited to:\n\np' = 0.00, 0.01, 0.02, 0.03 ...\n\nConsequently, the probability statements will be inexact when RQL is smaller than1/N.\n\n## Nomenclature\n\nTerms and Symbols used by TPZero\n\n SYMBOL NAME Pa probability of acceptance of a lot. p' fraction defective of a lot. AQL Acceptable Quality Level. RQL Rejectable Quality Level. Alpha risk of rejecting a lot if p'=AQL. Beta risk of accepting a lot if p'=RQL. n Sample Size Exact-n Sample Size before rounding to whole number N Lot Size Ac Acceptance Number, Same as C C Acceptance number, same as Ac X The number of defective items in a sample.\n\n## Assumptions and Limitations of TPZero\n\n### Range of Input variables\n\nRQL: 0.000001 to 0.999999 (decimal fractions)\n\nBeta: 0.000001 to 0.999999 (decimal fractions)\n\nFor Ac>0 option. Ac: 0 to 700\n\n### Binomial Distribution\n\nTPZero calculates the sample size using the binomial distribution. The binomial does not use the lot size in calculating n. As such, the binomial is an approximation to the true distribution, the hypergeometric. It is a very accurate approximation and is commonly used when small samples are taken from large lots. As a Rule of Thumb, the binomial distribution is very accurate when N / n =>10. That is, when the lot is 10 times larger than the sample.\n\n## Getting Help\n\nContext sensitive help: help F1\n\nSampling plan help: www.samplingplans.com\n\nThe menu [Help][About] displays the version of TPZero, whether it is registered, and if not, how many days of free usage are left.\n\n## How to Contact H & H Servicco Corp.\n\n Website: www.samplingplans.com Discussion forum: www.samplingplans.com/forum/forum.htm Email service@samplingplans.com Phone: 651-777-0152 Mail: PO Box 9340 North St Paul, MN 55109-0340 USA\n\n## Glossary\n\nAc\nThe Acceptance Number is the maximum allowable number of defective items in the sample and still accept the lot. If the number of defectives in the sample exceeds Ac, then the lot is rejected. The symbols \"Ac\" and \"C\" are commonly used to represent the acceptance number.\n\nacceptance number\nThe acceptance number, symbol=Ac,or C, is the maximum allowable number of defectives in the sample for a lot to be accepted. For the acceptance number of zero, the lot is rejected when a sample contains one or more defective items.\n\nAlpha\nThe Producer's Risk, Alpha, is the risk of rejecting a good lot, that is, a lot that contains AQL fraction defective.\n\nAQL\nThe Acceptable Quality Level, AQL, is the fraction defective of a lot that would have a high probability of acceptance. AQL is often associated with 0.95 probability of acceptance ( Pa). AQL and Alpha define the Producer's Point.\n\nBeta\nThe Consumer's Risk, Beta, is the risk of accepting a rejectable lot, that is, a lot that contains RQL fraction defective. A typical value for the Beta risk is 0.05.\n\nC=0\nA C=0 sampling plan is one in which the lot is only accepted if zero defectives occur in the sample. Same as Ac=0.\n\nConsumer's Point\nThe Consumer's Point is the point on the oc curve defined by RQL on the X-axis and Beta on the Y-axis. Example: beta=0.05 probability of accepting a lot if its fraction defective is RQL=0.10. (10%)\n\ndiscriminating\nThe ability of a sampling plan to discriminate (tell the difference) between an AQL lot and RQL lot. A sampling plan can discriminate well when its AQL and RQL are sufficiently close together. If one sampling plan is more discriminating than another, its oc curve is steeper (more vertical).\n\nexact-n\nThe exact sample size shows the value of n -- before rounding to a whole number -- that exactly satisfies the consumer's point that you entered. The exact n can be useful to know when the sample size is small and the direction of rounding can have economic consequences.\n\nn\nn: Lower case n is the symbol for the sample size to be inspected.\n\nN: Upper case N is the symbol for the lot size (Number of items in the lot.)\n\noc curve\nThe oc curve (Operating Characteristic Curve) of a sampling plan is a graph of Pa versus p', where Pa = probability of acceptance, p' = true lot fraction defective. The oc curve tells you how the sampling plan will perform in making accept/reject decisions.\n\np'\np' is the symbol for the fraction of items in a lot that are defective.\n\nPa\nPa is the probability that a sampling plan will accept a lot. Pa depends on the decision rule (n, C) and the lot's fraction defective.( p)'\n\nprobability statement\nThese two probability statements are produced by TPZero:\n\nThe probability of a type II error:\n\nThe probability of accepting a lot if it contains RQL fraction defective\n\nThe probability of a type I error:\nThe probability of rejecting a lot if it contains AQL fraction defective.\n\nProducer's Point\nThe producer's point of the OC Curve is defined by AQL and Alpha.\n\nRQL\nThe Rejectable Quality Level, RQL, is the fraction defective of a lot that would have a low probability of acceptance. RQL and Beta define the consumer's Point of the oc curve.\n\nSample Size\nThe sample size is number of items drawn from the lot for inspection. The symbol for sample size is n, whereas the symbol for the lot size is N.\n\nTPZero\nThis program is a component of the more comprehensive program \"Sampling Plans for Attributes (TP105).\n\nTP105 allows input of BOTH consumer's point and producer's point, or (n, Ac) to calculate the Alpha and Beta risk, or to calculate AQL and RQL.\n\nTP105 also calculates, in addition to the complete oc curve, the AOQ, ARL, ASN, and AFI curves.\n\nTP105 also calculates, for any (n, Ac), the matched sequential sampling plan. Or, from two points on the oc curve, both fixed-n and sequential sampling plans.\n\n## Credits: TPZero uses the following products:\n\nThe author of TPZero\n\nStan Hilliard, H & H Servicco corp.\n\nVisual Basic V6 - Microsoft\n\nTo design and compile the program code.\n\nVB Helpwriter\n\nTo design the Help system.\n\nFabLock - Teletech Systems\n\nTo design the copy protection system\n\n| Home | TPZero |" ]
[ null, "http://samplingplans.com/_vti_bin/fpcount.exe/", null, "http://samplingplans.com/_themes/technorg/tecbul1d.gif", null, "http://samplingplans.com/tpzerousermanual/image28.gif", null, "http://samplingplans.com/tpzerousermanual/image29.gif", null, "http://samplingplans.com/tpzerousermanual/image30.gif", null, "http://samplingplans.com/tpzerousermanual/image31.gif", null, "http://samplingplans.com/tpzerousermanual/image32.gif", null, "http://samplingplans.com/tpzerousermanual/image33.gif", null, "http://samplingplans.com/_themes/technorg/tecbul1d.gif", null, "http://samplingplans.com/_themes/technorg/tecbul1d.gif", null, "http://samplingplans.com/_themes/technorg/tecbul1d.gif", null, "http://samplingplans.com/_themes/technorg/tecbul1d.gif", null, "http://samplingplans.com/_themes/technorg/tecbul1d.gif", null, "http://samplingplans.com/tpzerousermanual/image34.gif", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.83458704,"math_prob":0.9655208,"size":6950,"snap":"2021-21-2021-25","text_gpt3_token_len":1706,"char_repetition_ratio":0.13374604,"word_repetition_ratio":0.018456375,"special_character_ratio":0.24460432,"punctuation_ratio":0.13890858,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9919036,"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],"im_url_duplicate_count":[null,null,null,null,null,2,null,2,null,2,null,2,null,2,null,2,null,null,null,null,null,null,null,null,null,null,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-05-18T11:53:24Z\",\"WARC-Record-ID\":\"<urn:uuid:4d521f95-97a3-4b50-96c1-42b36525dccd>\",\"Content-Length\":\"39218\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6e6ac45f-ac9f-44ea-ab9d-28a8a1f17041>\",\"WARC-Concurrent-To\":\"<urn:uuid:9c5c31e4-de44-40bd-a9cf-9779bd7063d1>\",\"WARC-IP-Address\":\"192.99.161.21\",\"WARC-Target-URI\":\"http://samplingplans.com/tpzerousermanual.htm\",\"WARC-Payload-Digest\":\"sha1:JEHO4K34OAUVSDRF4OXCNKKQLFLK6KUH\",\"WARC-Block-Digest\":\"sha1:OMOIHNMBYS3XG3GYXGRL3NFNVYJE3TWH\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-21/CC-MAIN-2021-21_segments_1620243989819.92_warc_CC-MAIN-20210518094809-20210518124809-00530.warc.gz\"}"}
https://artflexmobiliario.com.br/k2oq/qtjq
[ "# Travelling Salesman Problem Vba Code\n\nThe procedure finds the shortest tour of 20 locations randomly oriented on a two-dimensional -plane, where and. com offers free software downloads for Windows, Mac, iOS and Android computers and mobile devices. I also think there's opportunity to make the code more readable by using arrays or lists instead of so many. 5 • Nearest Neighbor Algorithm (Heuristic) Class 8. Travelling Salesman Problem example in Operation Research. It should accept data as triples in the format: (city #1, city #2, distance) , where distance is the distance in a standard unit (like miles or kilometers) between. The traveling salesman problem is important because it is NP complete. I need a distance matrix and a cost matrix. The Traveling Salesman Problem (TSP) Given a set ofcitiesalong with the cost of travel between them, find the cheapest route visiting all cities and returning to your starting point. A General VNS heuristic for the traveling salesman problem with time windows. This is the collection of benchmark instances used in our papers Beam-ACO for the travelling salesman problem with time windows and The Travelling Salesman Problem with Time Windows: Adapting Algorithms from Travel-time to Makespan Optimization. Code for the paper 'An Efficient Graph Convolutional Network Technique for the Travelling Salesman Problem' (arXiv Pr… deep-learning combinatorial-optimization travelling-salesman-problem pytorch geometric-deep-learning graph-neural-networks. In this application we solve a large Sudoku problem using a MIP formulation. The package provides some simple algorithms and an interface to the Concorde TSP solver and its implementation of the Chained-Lin-Kernighan heuristic. TSPSG is intended to generate and solve Travelling Salesman Problem (TSP) tasks. before and the distance (a,b) is the. If we want to check a tour for credibility, we check that the tour contains each vertex once. I've a base point and 235 clients. JavaScript Console +1. It is an NP complete problem. The traveling salesman problem asks: Given a collection of cities connected by highways, what is the shortest route that visits every city and returns to the starting place? The answer has. The Travelling Salesman Challenge is returning for 2018, and this time you’re finding the cheapest route between whole areas. The cost of the transportation among the cities (whichever combination possible) is given. Travelling Salesman is a hard sci-fi story that adds one new discovery to our world and imagines the consequences for the discoverers. It is focused on optimization. It is just probably close. The exact application involved finding the shortest distance to fly between eight cities without. Can the Travelling Salesman Problem be solved in a recursive algorithm? I'm trying to learn recursion and a friend has suggested to solve this problem using recursion. Transition: The problem we just explored is actually a very famous one in computer science, technically known as the vertex cover problem. The source codes for Travelling Salesman Problem (TSP) Travelling Salesman Problem (TSP) Source Codes. The problem is to find a tour of all the cities so that the salesman ends up at the same place he started so that he visits each city exactly once and travels the shortest possible distance. If I were given a 2D array or a 2D vector with distances between the cities how can I use the data to calculate the shortest possible distance and shortest possible route?. pdf from ISEN 230 at Texas A&M University. distance) between any two cities does not. An alldifferent constraint can be used to model problems involving ordering or sequencing of choices, such as the Traveling Salesman Problem. In this case study we shall: show how to compactly define a model with Fusion;. Secondly changing the dimensions of the underlying problem (like adopting the objective function, adding new decision variables or adding new constraints) usually requires changes in the worksheet structures and the VBA code. How to formulate Traveling Salesman Problem (TSP) as Integer Linear Program (ILP)? I'm afraid that debugging your ILP code isn't on-topic for this site. In what order should she visit the cities? Let there be n cities, numbered from 1 up to n. The objective of this senior design project is to implement a divide and conquer algorithm to code a more efficient search algorithm than conventional exhaustive methods. A man who travels in a given territory to solicit business orders or sell merchandise. The code for this is available here. This is the third problem in a series of traveling salesman problems. The Traveling Salesman Problem is a well known problem which has become a comparison benchmark test for different computational methods. The Travelling Salesman Problem (TSP) is probably the most known and studied problem in Operations Research. VBA code help for looping the macro. the maximal clique problem [10, 13]. You will also learn how to handle constraints in optimization problems. The formulation uses a subtour elimination based on logic to find all subtours first, and then add appropriate eliminations constraints. io Find an R package R language docs Run R in your browser R Notebooks. Typically, these improved algorithms have been tested again on the TSP. I'm looking for a solution to the salesman problem where the algo is minimum of each row. Research has shown that this can result in significant savings, which has led to the formulation of various truck and drone routing and scheduling optimization problems. Fixed Start End Point Multiple Traveling Salesmen Problem Genetic Algorithm - Top4Download. The objective of this senior design project is to implement a divide and conquer algorithm to code a more efficient search algorithm than conventional exhaustive methods. As already mentioned in the introduction, the TSP is still very popular in Operations Research. There are two primary forms of the problem. Here is the definition of a TSP from Wikipedia: “Given a list of cities and their pairwise distances, the task is to find a shortest possible tour that visits each city exactly once. Problem StatementGiven a map with cities locations, what is the least-cost round-trip route that visits each city exactly once and then returns to the starting city. Dynamic Programming Travelling Salesman Problem - Dynamic Programming Travelling Salesman Problem - Analysis of Algorithm Video Tutorial - Analysis of Algorithm video tutorials for GATE, IES and other PSUs exams preparation and to help Mechanical Engineering Students covering Introduction, Definition of Algorithm, Space and Time Complexity, Time Complexity Big-Oh Notation, Classification, Back. It is important in theory of computations. Description Basic infrastructure and some algorithms for the traveling salesperson problem (also traveling salesman problem; TSP). ###Problem Description### The traveling salesman problem was first formulated in 1930 . Ci j =1, if i = j. Prüfer code. Transition: The problem we just explored is actually a very famous one in computer science, technically known as the vertex cover problem. The Traveling Salesman Problem for Cubic Graphs David Eppstein Computer Science Department University of California, Irvine Irvine, CA 92697-3435, USA eppstein@ics. The traveling salesman problem The traveling salesman problem, or TSP for short, is this: given a finite number of ``cities'' along with the cost of travel between each pair of them, find the cheapest way of visiting all the cities and returning to your starting point. The Traveling Salesman Problem is a well known problem which has become a comparison benchmark test for different computational methods. The origins of the travelling salesman problem are unclear. Keywords: Traveling salesman problem, Heuristic algorithm, Excel VBA 1. Traveling Salesman Problem The traveling salesman problem (TSP) is a famous difficult problem. Ahmed zhahmed@gmail. It can thus be seen that TSP's can be viewed as special cases of VRP's. The traveling salesman problem is a good example: the salesman is looking to visit a set of cities in the order that minimizes the total number of miles he travels. to-traveling-salesman/ machine of blockchain in few lines of code. This is of course done in the subtour constraint handler ConshdlrSubtour. What are the decisions to be made? For this problem, we need Excel to find out if an arc is on the shortest path or not (Yes=1, No=0). Third, it is generally believed that the with gate-based quantum computation one cannot solve in polinomial time NP complete problems. When neither constraint applies, the VRP reduces to a traveling salesman problem: if the objective is simply to minimize total distance, it is a 1-TSP [from (6. I've been testing out some ideas around the Travelling Salesman Problem using TSP and ggmap. The issue with the travelling salesman problem is that it is an NP-Hard problem. The term Branch and Bound refers to all state space search methods in which all the children of E-node are generated before any other live node can become the E-node. Problem Statement. This is outside the scope of the routing functionality supported in TatukGIS products, though a DK customer can implement their own multi-point routing algorithm into a DK developed application. When I run the program, the cost calculation is correct. TSP as integer linear programs (FULL encoding) TSP encoded using Random Keys (RANDOMKEYS encoding). Where's the Traveling Salesman for Google I wrote the code, and gave it a \"standard\" traveling salesman problem from a book. In the movie, four mathematicians confront the US government official who has just overseen their successful breakthrough in math that will enable code breaking of every communication code. In this particular case, the salesman moves from city to city by selecting the longest route possible between two points. Al final de esta descripción esta el paso a paso que encuentra en el paper. If not, cell F5 equals 0. An input is a number of cities and a matrix of city-to-city travel prices. Algorithm of tsp based on genetic algorithm (traveling salesman problem) tsp (travelling salesman problem-Traveling SalesmanProblem), is a classical NP-complete problem, namely, the worst-case time complexity as the problem grows exponentially, up to now cannot find a polynomial-time algorithm. 5 synonyms for travelling salesman: bagman, commercial traveler, commercial traveller, roadman, traveling salesman. This page contains the useful online traveling salesman problem calculator which helps you to determine the shortest path using the nearest neighbour algorithm. This is the third problem in a series of traveling salesman problems. Find helpful customer reviews and review ratings for The Traveling Salesman Problem: A Computational Study (Princeton Series in Applied Mathematics) at Amazon. ingsalesmanproblem. Third, it is generally believed that the with gate-based quantum computation one cannot solve in polinomial time NP complete problems. After using all the formulas, i get a new resultant matrix. Short description of this problem is to find the shortest path by visiting all cities only once. A salesperson wishes to visit a number of cities before returning home using the shortest possible route, whilst only visiting each city once. INTRODUCTION Travelling Salesman Problem (TSP) is a well-known problem in computer science. She knows the distance between each of the cities and wishes to minimize the total distance traveled while visiting all of the cities. A man who travels in a given territory to solicit business orders or sell merchandise. For those not. length code to the most frequent character. 10)]; if the number of vehicles to be used is specified, it is a m-TSP. Hi, Does someone have code to solve the Traveling Salesman Problem (TSP) algorithm. 260n and linear space. Traveling Salesman Problems with PyGMO¶. Why choose simulated annealing?. VBA code help for looping the macro. As in the classical travelling salesman problem (TSP), the travelling salesman problem with time windows (TSPTW) requires the specification of a Hamiltonian cycle through a graph of nodes, but adds the requirement that each node must be visited within a predefined time window. Shop Lousy T-Shirt - Traveling Salesman created by DiscreteOptimization. 1 Introduction The traveling salesman problem consists of a salesman and a set of cities. A salesperson must visit n cities, passing through each city only once, beginning from one of the city that is considered as a base or starting city and returns to it. problem more quickly when classic methods are too slow (from Wikipedia). Read honest and unbiased product reviews from our users. This is the collection of benchmark instances used in our papers Beam-ACO for the travelling salesman problem with time windows and The Travelling Salesman Problem with Time Windows: Adapting Algorithms from Travel-time to Makespan Optimization. Travelling Salesman Problem example in Operation Research. This paper explains and analyzes a new approach to the Drone Traveling Salesman Problem (DTSP) based on ant colony optimization (ACO). Source code for travelling salesman problem using hamiltonian cycle in c? But, to find the shortest path, i. It is used by the warehouse to pick orders, and we'd like the software to present the items to be picked in the most efficient. 1 Introduction The Traveling Salesman Problem (TSP) is a problem in combinatorial optimization studied in operations research and theoretical computer science. I did exactly this for a course project in 2012. The following Matlab project contains the source code and Matlab examples used for open traveling salesman problem genetic algorithm. ) This example illustrates the use of the GA procedure to solve a traveling salesman problem (TSP); it combines a genetic algorithm with a local optimization strategy. This problem is known to be NP-hard, and cannot be solved exactly in polynomial time. Problem Description. 10 This is the demonstration version (and at present the only version) of \"The Travelling Salesman\" program, written by Peter Meyer. Our problem is given a matrix costs in which costs[i][j] is the traveling cost going from node i to node j, we are asked to return the minimum cost for traveling from node 0 and visit every other node exactly once and return back to node 0. I also think there's opportunity to make the code more readable by using arrays or lists instead of so many. A Classical Traveling Salesman Problem (TSP) can be defined as a problem where starting from a node is required to visit every other node only once in a way that the total distance covered is minimized. I am hoping that i can do a good job with at least a rough version of the project in the 10 days i have[its not really limited to 10 days, could probably get a whole month to do this. It is significant because, just like the Traveling Salesman Problem, it is computationally hard to solve perfectly. prolog travelling salesman problem, Search on prolog travelling salesman problem VBA Help With Chart Object Problem: Jan 18: Problems in writing VBA code for an. To simplify parameters setting, we present a list-based simulated annealing (LBSA) algorithm to solve traveling salesman problem (TSP). For example, if the terrain from A to B was uphill, the energy required to travel from A. ) This example illustrates the use of the GA procedure to solve a traveling salesman problem (TSP); it combines a genetic algorithm with a local optimization strategy. As the number of cities gets large, it becomes too computationally intensive to check every possible itinerary. the maximal clique problem [10, 13]. Description: traveling salesman problem (dynamic regulation of) a salesman to a number of cities to sell commodities, known the distance between cities (or travel). 4D code for solving Travelling Salesman Problem. The matrix can be populated with random values in a given range (useful for generating tasks). I am trying to develop a program in C++ from Travelling Salesman Problem Algorithm. Perhaps the most famous combinatorial optimization problem is the Traveling Salesman Problem (TSP). Gendreau et al. Dynamic Programming Travelling Salesman Problem - Dynamic Programming Travelling Salesman Problem - Analysis of Algorithm Video Tutorial - Analysis of Algorithm video tutorials for GATE, IES and other PSUs exams preparation and to help Mechanical Engineering Students covering Introduction, Definition of Algorithm, Space and Time Complexity, Time Complexity Big-Oh Notation, Classification, Back. Given a distance matrix, the optimal path for TSP is found using simplex solver module. Travelling Salesman is a hard sci-fi story that adds one new discovery to our world and imagines the consequences for the discoverers. Programming Team Lecture: DP Algorithm for Traveling Salesman Problem One version of the traveling salesman problem is as follows: Given a graph of n vertices, determine the minimum cost path to start at a given vertex and travel to each other vertex exactly once, returning to the starting vertex. I did exactly this for a course project in 2012. How to formulate Traveling Salesman Problem (TSP) as Integer Linear Program (ILP)? I'm afraid that debugging your ILP code isn't on-topic for this site. The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. the hometown) and returning to the same city. Integer constraints have many important applications, but the presence of even one such constraint in a Solver model makes the problem an integer programming problem, which may be much more difficult to. Quiz & Worksheet - Computation's Traveling Salesman their understanding of the traveling salesman problem can use this quiz/worksheet to help. Travelling Salesman is a hard sci-fi story that adds one new discovery to our world and imagines the consequences for the discoverers. For eachsubset a lowerbound onthe length ofthe tourstherein. I need matlab code for bitonic euclidean Learn more about travelling salesman problem. Secondly changing the dimensions of the underlying problem (like adopting the objective function, adding new decision variables or adding new constraints) usually requires changes in the worksheet structures and the VBA code. The goal of the problem is, given a list of cities and their locations, to find the shortest possible path that passes through each city exactly once and ends at the starting city. Description Basic infrastructure and some algorithms for the traveling salesperson problem (also traveling salesman problem; TSP). Putting it All Together. I have done a little project in the past involving Genetic Algorithms (GAs), written in VB6 (really poorly). This is outside the scope of the routing functionality supported in TatukGIS products, though a DK customer can implement their own multi-point routing algorithm into a DK developed application. Applying the 2-opt algorithm to travelling salesman problems in C# / WPF the user interface is a simple window with buttons for opening the test problem (*. Este paper contiene todas las formulas y el paso a paso que se requiere para desarrollar el algoritmo de Colonia de Hormigas. QUANTUM INSPIRED PARTICLE SWARM COMBINED WITH LIN-KERNIGHAN-HELSGAUN METHOD TO THE TRAVELING SALESMAN PROBLEM. At that time, he was a grad student working on his thesis. We introduce a new model that incorporates some ideas from existing robust optimization models - most importantly, the ability to control the model’s level of conservatism - but does so. Solving The Traveling Salesman Problem (TSP) in JAVA w/ Brute Force, Genetic Algorithms, Hill Climbing, Random Restart Hill Climbing, Nearest Neighbor, Simulated Annealing, Ant Colony Optimization,. Traveling Salesman Problems with PyGMO¶. 5 • Nearest Neighbor Algorithm (Heuristic) Class 8. The goal of the problem is, given a list of cities and their locations, to find the shortest possible path that passes through each city exactly once and ends at the starting city. Since I am new to VBA I could use some help. TSP can be described as follows: Given a number of cities to visit. And, for the case of trips regularly planned, e. It has long been known to be NP-hard and hence research on developing algorithms for the TSP has focused on approximate methods. In this question, you will write some code that would be used in solving this problem. The traveling salesman problem is NP-complete. The exact application involved finding the shortest distance to fly between eight cities without. In Computer Science, The Problem Can Be Applied To The Most Efficient Calculation. The spreadsheet uses VBA code to call GAMS and to read and write GDX files to exchange data with GAMS. In this example, we consider a salesman traveling in the US. com offers free software downloads for Windows, Mac, iOS and Android computers and mobile devices. Traveling Salesperson Problem Consider a traveling salesperson who must visit each of 20 cities before returning home. Hence a different order is a different value of the variable (e. Join ResearchGate to discover and stay up-to-date with the latest research from leading experts in Travelling Salesman Problem and many other. Personalize it with photos & text or purchase as is! One of the best solution to the Traveling Salesman problem 6, courtesy of mkal (a. In this paper, we examine a variant of the symmetric traveling salesman problem in which travel time uncertainty is modeled by interval ranges. A magazine contest in 1964 challenged its readers to find the optimum route for a traveling salesman who was to visit 33 specific cities in the United States. These are all greedy algorithms that give an approximate result. It is Orienteering Problem in which visiting all of the nodes are not necessary. It uses Branch and Bound method for solving. Find node r such that c ir is minimal and form sub-tour i-r-i. The TSP problem is probably the most studied problem in the OR field. Adopting declaration statements would take a few seconds in C# or C++ source code. I followed instructions, copy-typed from books, and made minor adjustments to. In Computer Science, The Problem Can Be Applied To The Most Efficient Calculation. If you want to see working code for a travelling salesman problem, look at this example. In this article, we propose a new crossover operator for traveling salesman problem to minimize the total distance. Approximation Algorithms for the Traveling Salesman Problem. He knows the distance between each pair of cities, and wishes to minimize the total distance he is to travel. Using RouteXL is very easy. Travelling Salesman Problem using Branch and Bound Approach in PHP - July 5, 2016 Javascript: Print content of particular div - March 4, 2015 Group by with Order Desc in MySQL - June 3, 2014. It is described as follows: a salesman, in order to sell his goods out, needs to arrive to n cities in proper order to sell products, and the distance between each city is known. mTSP: The mTSP is defined as: In a given set of nodes, let there are m salesmen located at a single depot node. Second, the TSP is solved. As these Japanese researchers demonstrated, a certain type of amoeba can be used to calculate nearly optimal. edu Abstract We show how to find a Hamiltonian cycle in a graph of degree at most three with n vertices, in time O(2n/3) ≈ 1. Secondly changing the dimensions of the underlying problem (like adopting the objective function, adding new decision variables or adding new constraints) usually requires changes in the worksheet structures and the VBA code. Free traveling salesman problem download - traveling salesman problem script - Top 4 Download - Top4Download. 1s) and use this script on your gpx-files before osm-upload. The code for Concorde. The origins of the travelling salesman problem are unclear. As already mentioned in the introduction, the TSP is still very popular in Operations Research. Genetic algorithm is a kind of evolutionary. When I run the program, the cost calculation is correct. The salesman has to visit each one of the cities starting from a certain one (e. The Traveling Salesman Problem (TSP) The travelling salesman problem, which was first formulated in 1930, asks the following question: Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city exactly once and returns to the origin city?\". More info can be found here. He selected from a resident, after each city again, the last resident to return to the line, making the total distance (or travel) is the smallest. Approximation Algorithms for the Traveling Salesman Problem. A simple process: convert an image to black and white, sample the black points, and then solve the Traveling Salesman Problem for those points. The parameters for toll k are given as x_k and y_k. Find node r such that c ir is minimal and form sub-tour i-r-i. Multiple Turbo Code; multiple twin quad. before and the distance (a,b) is the. io Find an R package R language docs Run R in your browser R Notebooks. The routes are calculated using cartesian coordinates and Euclidean distances. First, the expression data is converted to a Traveling Salesman Problem (TSP), based on the desired number of clusters. Start with a sub-graph consisting of node i only. Find more Mathematics widgets in Wolfram|Alpha. In this particular case, the salesman moves from city to city by selecting the longest route possible between two points. A JAVA IMPLEMENTATION OF THE BRANCH AND BOUND ALGORITHM: THE ASYMETRIC TRAVELING SALESMAN PROBLEM 156 JOURNAL OF OBJECT TECHNOLOGY VOL. Description Basic infrastructure and some algorithms for the traveling salesperson problem (also traveling salesman problem; TSP). among all. The Travelling Salesman Problem. After using all the formulas, i get a new resultant matrix. Introduction. Recently, Narayanan and Zorbalas proposed a method to represent weights in DNA codes to solve traveling salesman problems. Third, it is generally believed that the with gate-based quantum computation one cannot solve in polinomial time NP complete problems. The main task of a constraint handler is to decide whether a given solution is feasible for all constraints of the constraint handler's type (i. There are K toll booths. Here we solve a small instance as a MIP. The Traveling salesman problem is the problem that demands the shortest possible route to visit and come back from one point to another. The origins of the travelling salesman problem are unclear. Rational numbers class. The Simulated Annealing Method for the Traveling Salesman Model demonstrates the use of the \"simulated annealing algorithm\" to attempt to solve the \"travelling salesman\" problem. A traveler needs to visit all the cities from a list, where distances between all the cities are known and each city should be visited just once. Read honest and unbiased product reviews from our users. He wishes to visit all cities exactly once and return back to city 0. JavaScript Console +1. edu Abstract We show how to find a Hamiltonian cycle in a graph of degree at most three with n vertices, in time O(2n/3) ≈ 1. And, for the case of trips regularly planned, e. I followed instructions, copy-typed from books, and made minor adjustments to. The traveling-salesman problem is that of finding a permutation P = (1 i2 i3 … in) of the integers from 1 through n that minimizes the quantity \\documentclass{aastex} \\usepackage{amsbsy} \\usepackag. Description Basic infrastructure and some algorithms for the traveling salesperson problem (also traveling salesman problem; TSP). Travelling Salesman Problem using Branch and Bound Approach in PHP - July 5, 2016 Javascript: Print content of particular div - March 4, 2015 Group by with Order Desc in MySQL - June 3, 2014. In Computer Science, The Problem Can Be Applied To The Most Efficient Calculation. I am trying to develop a program in C++ from Travelling Salesman Problem Algorithm. Travelling Salesman Problem. pdf from ISEN 230 at Texas A&M University. It is focused on optimization. RouteXL is a Google Maps route planner that can help you solve the 'travelling salesman problem' of finding the optimum route for multiple stops. Tropofy is an innovative web deployment platform for problem solvers. Third, it is generally believed that the with gate-based quantum computation one cannot solve in polinomial time NP complete problems. 4D code for solving Travelling Salesman Problem. I want to show the resulted path (after solving) in a scatter-plot contains all nodes and connects some of nodes (not all of them) and not just with lines but with arrows. Operations Research, 43, 330 - 335. The TSP problem is. The traveling salesman problem asks: Given a collection of cities connected by highways, what is the shortest route that visits every city and returns to the starting place? The answer has. Problem Statement. The Simulated Annealing Method for the Traveling Salesman Model demonstrates the use of the \"simulated annealing algorithm\" to attempt to solve the \"travelling salesman\" problem. Permutation Variables and Traveling Salesman Problem • Permutation- an ordered list of the numbers 1 to N. \" The problem seems very interesting. The goal is to minimize the total distance traveled. In this post, Travelling Salesman Problem using Branch and Bound is discussed. These instances are available from different sources, sometimes along with instructions on how to. In the ACS, a set of cooperating agents called ants cooperate to find good solutions to TSP’s. TSP is an extension of the Hamiltonian circuit problem. Given a list of cities and their pair wise distances, the task is to find a shortest possible tour that visits each city exactly once. Win a trip around the world based on an algorithm you write! This is your chance to get your hands on something that’s normally purely theoretical and have some fun with it. Start with a sub-graph consisting of node i only. This post shows how to attack Traveling Salesman Problem using Darwin approach. He knows the distance between each pair of cities, and wishes to minimize the total distance he is to travel. You will learn how to code the TSP and VRP in Python programming. This is an implementation of TSP using backtracking in C. The Traveling Salesman Problem (TSP) is one of the. travelling salesman problem, met heuristics, ant colony optimization 1. The traveling salesman problem is a good example: the salesman is looking to visit a set of cities in the order that minimizes the total number of miles he travels. Asymmetric TSP allows for distances between nodes to be unequal. traveling salesman problem (TSP). DMCA Notice ADA Compliance Honor Code For. Have you used a traveling salesman algorithm to solve a problem? I studied TSP in college in the context of NP Completeness. A little bit of research shows that it has been use…. DMCA Notice ADA Compliance Honor Code For. 1 Introduction The Traveling Salesman Problem (TSP) is a problem in combinatorial optimization studied in operations research and theoretical computer science. This generates a solution only, and doesn't do any input/output. The Travelling Salesman Problem (TSP) is probably the most known and studied problem in Operations Research. Continuous Line Drawings via the Traveling Salesman Problem Robert Bosch and Adrianne Herman Dept. The traveling salesman problem asks: Given a collection of cities connected by highways, what is the shortest route that visits every city and returns to the starting place? The answer has. optimization of Traveling Salesman problem is NP hard…. • Wrote a MATLAB code that could solve a simplified traveling salesman problem, and integrated the code into a graphical user interface that animated the results. There is a wealth of information on genetic algorithms available online. It calculates the shortest path between cities. The Christofides Approximation Algorithm, therefore, helps to achieve 3/2 approximation to the Travelling Salesperson Problem Algorithm. (View the complete code for this example. Traveling salesman problem (TSP) is a classical algorithm problem. Wikipedia defines the \"Traveling Salesman Problem\" this way:. Short description of this problem is to find the shortest path by visiting all cities only once. In this case, the SUBMIT block calls the SGPLOT procedure to display intermediate results during the solution of an instance of the traveling salesman problem (TSP). The algorithm we will use is called the Nearest Neighbor Algorithm. There are many applications, like finding the fastest way of moving a robot arm between. JavaScript Console +1. (View the complete code for this example. Hi, Does someone have code to solve the Traveling Salesman Problem (TSP) algorithm. Using commercial IP software, and a short (60line long) MATLAB code, students can optimally solve instances with up to 70cities in a few minutes by adding cuts from the stronger formulation to the weaker. I'm also given the time ( in minutes ) to reach from various clients and the base. The exact application involved finding the shortest distance to fly between eight cities without. The African Buffalo Optimization builds a mathematical model from the behavior of this animal and uses the model to solve 33 benchmark symmetric Traveling Salesman's Problem and six difficult asymmetric instances from the TSPLIB. A traveler needs to visit all the cities from a list, where distances between all the cities are known and each city should be visited just once. It is just probably close. The Traveling Salesman Problem (TSP) and its allied problems like Vehicle Routing Problem (VRP) are one of the most widely studied problems in combinatorial optimization. Asymmetric TSP allows for distances between nodes to be unequal. It is significant because, just like the Traveling Salesman Problem, it is computationally hard to solve perfectly. The Traveling Salesman Problem is a complex multiple point routing problem requiring a specialized, and typically expensive, algorithm to resolve. 1 edition of The traveling salesman found in the catalog. The algorithm we will use is called the Nearest Neighbor Algorithm. Charitable threads * donate to threads that are out of work. Putting it All Together. The formulation uses a subtour elimination based on logic to find all subtours first, and then add appropriate eliminations constraints. All these improved versions of AS have in common a stronger exploita-. Visual Basic 4 / 5 / 6 Forums on Bytes. Java Program to Implement Traveling. The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. in OPL model and script for Symmetric Travelling Salesman Problem, there is code: tuple Subtour {int size; int subtour[Cities travelling salesman. Al final de esta descripción esta el paso a paso que encuentra en el paper. 60 CPU-seconds later, I got the. Travelling salesman problem: genetic algorithm (with demo) - Algorithms and Data Structures Algorithms and Data Structures. Algorithms and data structures source codes on Java and C++. VBA code help for looping the macro. This is the third problem in a series of traveling salesman problems." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.90401983,"math_prob":0.8937213,"size":35396,"snap":"2019-35-2019-39","text_gpt3_token_len":7249,"char_repetition_ratio":0.20586573,"word_repetition_ratio":0.32761973,"special_character_ratio":0.19253588,"punctuation_ratio":0.09440836,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9709727,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-08-25T01:11:51Z\",\"WARC-Record-ID\":\"<urn:uuid:2044c4ec-b221-47eb-b627-5c4f328dae13>\",\"Content-Length\":\"46609\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1e8f8fd1-b44f-4c6e-93ac-8e5faf544a08>\",\"WARC-Concurrent-To\":\"<urn:uuid:0cdd512c-5637-401c-98a1-9ffb6895da68>\",\"WARC-IP-Address\":\"177.234.153.17\",\"WARC-Target-URI\":\"https://artflexmobiliario.com.br/k2oq/qtjq\",\"WARC-Payload-Digest\":\"sha1:PKOZZOA2EYWMFMMCYHE3DMIZRN3G7LEJ\",\"WARC-Block-Digest\":\"sha1:JOUXNOFGGMNYWSOBMFE6EL4UM7I34MDK\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-35/CC-MAIN-2019-35_segments_1566027322160.92_warc_CC-MAIN-20190825000550-20190825022550-00419.warc.gz\"}"}
https://abakbot.com/en/algebra-en/polynom-tangent-en
[ "Polynomial elements Variable X at which we find values of a derivative\n Given function\n\nConsider one of the simple and undeservedly forgotten on the Internet Internet methods for determining the derivative of a polynomial, an arbitrary (positive) degree.\n\nUntil recently, I was sure that if a polynomial of the form\n\nand it is necessary to find out the value of a derivative, for example, of the 5th order at some point, you must first calculate this derivative (of the fifth order), and then substitute the value, calculate the derivative.\n\nIt turns out there is a simpler and algorithmically easier way to find the derivative at a point.\n\nTo do this, we need the technique described in the materials: Expand the polynomial in degrees and Horner method online calculator. Division of a polynomial.\n\nYes, yes, it turns out the Horner method successfully solves the problem.\n\nConsider an example:\n\nCalculate the third-order derivative for x = 3 of the next polynomial\n\n1. Divide the given polynomial by\n\nGet  and the remainder of 19.\n\nThe number 19 is the value of the function  if we substitute x = 3 there\n\n2. Divide  again on\n\nGet  and the remainder of 25.\n\nSince this is the first result, we multiply the result by 1! (One factorial) = 1. Got the same number 25\n\nThe number 25 is the value of the first derivative of the given function for x = 3. That is, if we calculate the first derivative\n\nand substitute the value 3 there, we get the same answer = 25.\n\n3. Divide  again on\n\nwe get  and residue 13.\n\nMultiply this number by 2! (two factorial) = 2 and we get the value of the derivative of the second order function for x = 3\n\nThis number = 26\n\n4. The third-order derivative is calculated in this case simply, since  it’s impossible to divide further, this is the remainder. It must be multiplied by 3! (Three factorial) = 6\n\nAnd we get that the third-order derivative for a given polynomial for x = 3 is 12.\n\nIn such a straightforward way, we can find the values ​​of any derivative of any polynomial.\n\nThe algorithm is simple, but with polynomials with degrees above 10, we are faced with the need to calculate factorials above 10, which is very laborious, since the factorial from 10 is 3628800 and the factorial from 16 is already 20922789888000\n\nBut we benefit from one of the properties of Horner's methodology, which states: If we multiply a function by a number, then the remainder of the branch will increase by the same amount.\n\nTherefore, it is enough for us to multiply the obtained coefficients of the polynomial by dividing by the numbers 1,2,3,4,5, etc. depending on which derivative we’ll calculate at the moment and calculate the remainder.\n\nThe calculator also works in the field of complex numbers, so let's solve this example.\n\nThere is a function\n\nIt is necessary to find out all possible derivatives of this function for x = i\n\nIt is easy to make sure that solving it manually, you can make a mistake and go the wrong way.\n\nIt is much easier to use the bot and write through XMPP client\n\npropol 2 1-5i 0 -7 i 2 -9 -1; i\n\nand we will get all the results\n\nThe polynomial derivative values ​​are found\n0 derivative. Function Value -10-6i\n1 derivative. Function Value 7 + 35i\n2 derivative. Function Value 112-66i\n3 derivative. Function Value -180-282i\n4 derivative. Function Value -528 + 120i\n5 derivative. Function Value -1440 + 720i\n6 derivative. Function Value 720 + 6480i\n7 derivative. Function Value 10080\n\nThe logical question is what is the zero derivative?\nAnswer - this is the original function. And the value -10-6i is obtained if we substitute -i into the original function\n\nLet's try to solve another equation\nwe know what the fourth derivative of the function is equal to\nfor x = 2 + i\n\nA polynomial of the 17th degree .. this is serious as well as computation with a complex argument.\nWell try\nPreset function\n Derivative The value of the derivative at X = 2 + i 0 707043 + 6123674i one 25630678 + 39273242i 2 289802562 + 169486216i 3 2247959580 + 147950190i 4 13006113720-5465417040i 5 53432793120-62240220840i 6 107126132400-427018989600i 7 -468058852800-2114656795440i 8 -6101588908800-7522728998400i nine -35506871769600-16099283692800i 10 -1.393813225728E + 14 + 5293047513600i eleven -3.828579156864E + 14 + 2.0995438464E + 14i 12 -6.6691392768E + 14 + 9.6332011776E + 14i thirteen -3.705077376E + 14 + 6.1024803840002E + 14i 14 1.4820309504E + 15 + 7.8460462080004E + 14i fifteen 5.2306974720004E + 14 + 5.230697472E + 14i sixteen 3.1384184832005E + 14 + 1.0461394944E + 14i 17 24.89811996672https://abak.pozitiv-r.ru\n\nwhen x = 2 + i, the value of the function when taking the fourth derivative will be\n 4 13006113720-5465417040i\nWhat else can you notice?\nWhat you need to carefully look at the calculations.\nIn our example, when taking 17 winding, the number 24.898 is obtained\nalthough it should certainly be  where is 17! this is the factorial from 17 = 355687428096000\nThis small flaw (an error in calculating large derivatives) will be eliminated soon. But the calculation of derivatives is not higher than 10 orders of magnitude, the bot performs correctly.\n\nGood luck!\n\nCopyright © 2021 AbakBot-online calculators. All Right Reserved. Author by Dmitry Varlamov" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.89641625,"math_prob":0.99386275,"size":3089,"snap":"2021-31-2021-39","text_gpt3_token_len":730,"char_repetition_ratio":0.15948136,"word_repetition_ratio":0.010830325,"special_character_ratio":0.24538685,"punctuation_ratio":0.09886548,"nsfw_num_words":1,"has_unicode_error":false,"math_prob_llama3":0.9995598,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-07-26T05:19:48Z\",\"WARC-Record-ID\":\"<urn:uuid:e6201378-cba4-4f9c-89ca-99e7d7c9d3d3>\",\"Content-Length\":\"36960\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2285fa81-d429-470c-a8bb-f4c4b29102f2>\",\"WARC-Concurrent-To\":\"<urn:uuid:fd4f91b0-7a0b-482d-ae00-ee86b1c33d09>\",\"WARC-IP-Address\":\"31.28.24.244\",\"WARC-Target-URI\":\"https://abakbot.com/en/algebra-en/polynom-tangent-en\",\"WARC-Payload-Digest\":\"sha1:P7Z3TMQHJEKJ3XHFUVYRJIFMBF5UYPNH\",\"WARC-Block-Digest\":\"sha1:BYVZQ44VHNIE3T7GJGK3DDI6BMROW2VY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-31/CC-MAIN-2021-31_segments_1627046152000.25_warc_CC-MAIN-20210726031942-20210726061942-00057.warc.gz\"}"}
https://ask.learncbse.in/t/relative-density-of-gold-is-19-3-if-the-density-of-water-is-1000-kg-m3-what-is-the-density-of-gold-in-si-units/64514
[ "", null, "# Relative density of gold is 19.3. If the density of water is 1000 kg/m3. What is the density of gold in SI units?\n\nRelative density of gold is 19.3. If the density of water is 1000 kg/m3. What is the density of gold in SI units ?\n\nRelative density = Density of Substance ÷ Density of Water\n\nRelative density = 19.3\n\nDensity of Water = 1000 kg/m³\n\nDensity of Gold = Density of Water ×Relative density\n\n`````` = 1000 × 19.3\n\n= 19300 kg/m³``````" ]
[ null, "https://ask.learncbse.in/images/discourse-logo-sketch.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.84195393,"math_prob":0.9989109,"size":422,"snap":"2021-21-2021-25","text_gpt3_token_len":125,"char_repetition_ratio":0.28947368,"word_repetition_ratio":0.4556962,"special_character_ratio":0.3364929,"punctuation_ratio":0.10869565,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99925125,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-05-08T16:15:31Z\",\"WARC-Record-ID\":\"<urn:uuid:4ae7c503-7d96-4cc6-bca7-d4a449f52ca9>\",\"Content-Length\":\"12553\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a78aac33-36bc-4f62-8d37-f02c4389644f>\",\"WARC-Concurrent-To\":\"<urn:uuid:e4650a12-101c-4b7b-8296-a97de674651e>\",\"WARC-IP-Address\":\"46.165.252.193\",\"WARC-Target-URI\":\"https://ask.learncbse.in/t/relative-density-of-gold-is-19-3-if-the-density-of-water-is-1000-kg-m3-what-is-the-density-of-gold-in-si-units/64514\",\"WARC-Payload-Digest\":\"sha1:F3BX4R3557QCBCOSA57PI6NOJE7LSXHC\",\"WARC-Block-Digest\":\"sha1:SYD2IRZQLFC3R4EM3DGLM236S2ILJSAS\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-21/CC-MAIN-2021-21_segments_1620243988882.94_warc_CC-MAIN-20210508151721-20210508181721-00171.warc.gz\"}"}
https://puckon.net/articles/preweighting-and-playoffs.php
[ "### Preweighting and Playoffs\n\nMar 20, 2017\n\nAs per my last Corsi improvement, the adjusted Corsi formula has been getting rather unwieldy. It's not likely to get much more predictive without some major revisions, and even then it's a bit of a pain to work with. There is, however, an alternate form that's slightly less predictive but a little more malleable. To show this I'm going to take a step back to the Corsi SA formula, which is the following:\n\n$$C_{SA} = {\\sum \\limits_{n=down3}^{up3} {({F_{n} + A_{n}})({{F_{n}} \\over {F_{n} + A_{n}}} - {{F_{avg_n}} \\over {F_{avg_n} + A_{avg_n}}})} \\over \\sum \\limits_{n=down3}^{up3} F_{n} + A_{n}} + 50\\%$$\n\nOn a basic level, what this formula is doing is calculating the difference between a team's performance and average league performance in each score state, and then weighting that difference by the number of the team's events in that state. An alternative approach is to just weight each event by its rarity in that state:\n\n$$C_{SA} = {\\sum \\limits_{n=down3}^{up3} {F_{n} {{F_{avg_n} + A_{avg_n}} \\over {F_{avg_n}}}} \\over \\sum \\limits_{n=down3}^{up3} F_{n} {{F_{avg_n} + A_{avg_n}} \\over {F_{avg_n}}} + A_{n} {{F_{avg_n} + A_{avg_n}} \\over {A_{avg_n}}}}$$\n\nThese formulas aren't exactly equal, but they're pretty close. The main advantage to the latter formula is that the weight terms, $$W_{F_n} = {{F_{avg_n} + A_{avg_n}} \\over {F_{avg_n}}}, W_{A_n} = {{F_{avg_n} + A_{avg_n}} \\over {A_{avg_n}}}$$ are terms that we can calculate using past seasons, essentially making them constants, and once we do it really simplifies the formula down to\n\n$$C_{SA} = {\\sum \\limits_{n=down3}^{up3} {F_{n} W_{F_n}} \\over \\sum \\limits_{n=down3}^{up3} F_{n} W_{F_n} + A_{n} W_{A_n}}$$\n\nThis form is also applicable to venue and event adjustment by splitting the data accross those vectors and similarly calculating a weight for them. Score adjustment creates 7 weights, venue adjustment creates 2 weights, and event adjustment creates 4 weights, totalling a multiplicative 56 weights if we use all three adjustments. I've contemplated using this form previously, but it does have a small correlational hit to it when compared to the previous formula.\n\nGenerally speaking, the calculated versions of these metrics take a little longer to mature; before about 15 games played per team (or 225 games league wide), the preweighted versions outperform the calculated ones. After that, however, there's a slight benefit to using the calculated form. My guess on that behavior is this: before 15 games, not only has the data not converged for individual teams, but it hasn't converged for the league as a whole. After that point, preweighting introduces a slight lopsidedness to the formula as it slightly overrepresents teams that shoot more and underrepresents teams that shoot less, which introduces some noise to the weights.\n\nThe difference between these two methods is so small - an averaged 0.18 percentage points in correlational R2 - that it can effectively be ignored. I'm not particularly interested in arguing which method is better as they both perform similarly. That we employ these adjustments far outperforms the specifics as to how they are adjusted. Preweighting isn't new either - I think most other sites that use adjusted numbers use the preweighted method. That being said, I've modified the site to employ the preweighted formulas for any dataset that includes less than 225 games total, or about 15 games per team. This decision is more aesthetic than anything as the preweighted formulas tend to vary a little less over smaller data sets.\n\nWhat preweighting does allow me is a little more confidence in posting playoff numbers. Historically I've considered that playoffs are too small a data set to adjust - As Corsi doesn't reach it's most predictive state until after around 225 games, playoffs would never reach that number given that even if all series went to a game 7, there would only be 105 games.\n\nThe site now has an additional filter that lets you select if you want to chose regular season games, playoff games, or both. Note that if you chose any option that includes playoff games, the \"Points\" column will be replaced by a Win-Loss-OTL \"Record\" column, as points are not awarded in the playoffs. I personally haven't looked much at the playoff numbers, but they've been requested by quite a few of my viewers, so I'm hoping that making them available will allow others to find some insight." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9538288,"math_prob":0.9884093,"size":4422,"snap":"2023-40-2023-50","text_gpt3_token_len":1117,"char_repetition_ratio":0.12494341,"word_repetition_ratio":0.0056737587,"special_character_ratio":0.26028946,"punctuation_ratio":0.07777778,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9811701,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-27T22:27:54Z\",\"WARC-Record-ID\":\"<urn:uuid:191e7097-af5c-4a37-9d99-141a032a2f9a>\",\"Content-Length\":\"9276\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5f107650-185f-4090-b07a-0ea58df93d8b>\",\"WARC-Concurrent-To\":\"<urn:uuid:28018c3c-daf2-4b4b-b7eb-48dbaa8e6abe>\",\"WARC-IP-Address\":\"52.36.42.173\",\"WARC-Target-URI\":\"https://puckon.net/articles/preweighting-and-playoffs.php\",\"WARC-Payload-Digest\":\"sha1:AEMENKORWNOHW6T3A3ZFPKI3GUBOPHW4\",\"WARC-Block-Digest\":\"sha1:4SCDWAR45AG75TVPIWAHP7SO267HPXNV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233510326.82_warc_CC-MAIN-20230927203115-20230927233115-00220.warc.gz\"}"}
https://www.jpost.com/conferences/article-725380
[ "(function (a, d, o, r, i, c, u, p, w, m) { m = d.getElementsByTagName(o), a[c] = a[c] || {}, a[c].trigger = a[c].trigger || function () { (a[c].trigger.arg = a[c].trigger.arg || []).push(arguments)}, a[c].on = a[c].on || function () {(a[c].on.arg = a[c].on.arg || []).push(arguments)}, a[c].off = a[c].off || function () {(a[c].off.arg = a[c].off.arg || []).push(arguments) }, w = d.createElement(o), w.id = i, w.src = r, w.async = 1, w.setAttribute(p, u), m.parentNode.insertBefore(w, m), w = null} )(window, document, \"script\", \"https://95662602.adoric-om.com/adoric.js\", \"Adoric_Script\", \"adoric\",\"9cc40a7455aa779b8031bd738f77ccf1\", \"data-key\");\nvar domain=window.location.hostname; var params_totm = \"\"; (new URLSearchParams(window.location.search)).forEach(function(value, key) {if (key.startsWith('totm')) { params_totm = params_totm +\"&\"+key.replace('totm','')+\"=\"+value}}); var rand=Math.floor(10*Math.random()); var script=document.createElement(\"script\"); script.src=`https://stag-core.tfla.xyz/pre_onetag?pub_id=34&domain=\\${domain}&rand=\\${rand}&min_ugl=0\\${params_totm}`; document.head.append(script);" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.96655923,"math_prob":0.96919554,"size":273,"snap":"2022-40-2023-06","text_gpt3_token_len":62,"char_repetition_ratio":0.10408922,"word_repetition_ratio":0.9047619,"special_character_ratio":0.1941392,"punctuation_ratio":0.074074075,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9789482,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-02-02T13:51:59Z\",\"WARC-Record-ID\":\"<urn:uuid:f4f7ae36-5f5c-466d-9115-7ab17072a6ba>\",\"Content-Length\":\"53370\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:85ad6840-2769-4166-b7c6-21180a92d408>\",\"WARC-Concurrent-To\":\"<urn:uuid:075a1a49-f9f2-45b8-a283-93e7f308b274>\",\"WARC-IP-Address\":\"104.22.43.245\",\"WARC-Target-URI\":\"https://www.jpost.com/conferences/article-725380\",\"WARC-Payload-Digest\":\"sha1:AG3UCNA46UWHDUQVRJIHYY53HNY3F5XE\",\"WARC-Block-Digest\":\"sha1:I75SVMQBBJV4YIEUYSRRTW2EPKTIILWM\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764500028.12_warc_CC-MAIN-20230202133541-20230202163541-00185.warc.gz\"}"}
https://computational-communication.com/forum/ergm-python/
[ "Exponential random graph models (ERGMs) are statistical models for explaining the structure of social and other networks (also called graphs). If we have a network, and some hypotheses about the factors that make it looks the way it does, an ERGM is meant to tell us how big a role (if any) these factors actually play.\n\nI think of it as a regression model: we have several independent variables we think determine the dependent variable, and the model estimates the size and significance of the effect of each.\n\nFor someone like me who works a lot with networks, ERGMs can be a very powerful tool. There is even an excellent R package called, appropriately enough, ergm, that makes estimating ERGMs just about as easy as specifying a regression formula.\n\nI’ve always felt a bit nervous about using them, though, because I didn’t feel confident I really understood how they worked, and how they were being estimated.\n\n# Toy ERGM from Scratch\n\nTo help with that, I decided I needed to implement a simple toy ERGM from scratch. It didn’t need to be fast, or really applicable at all. The most important thing was to take the methodology apart and put it back together again.\n\nIn this post, I’m going to walk through my implementation of a highly simplified ERGM estimation, using Python and the NetworkX package. I’m hoping that it will help others with similar questions, and that people who know more than I do will point out anything I’m getting wrong.\n\nimport random\nimport numpy as np\nimport networkx as nx\n%matplotlib inline\nimport matplotlib.pyplot as plt\nimport matplotlib\n\n\n# Graph probabilities\n\nThe basic idea of ERGMs is to define a probability distribution over all possible graphs of a given number of nodes, where the probability of each graph is proportional to some of its network statistics. In this post, the statistics I’ll use throughout are the edge count and the number of triangles, but any network statistics will do. If edge count and triangles have coefficients a and b, then the probability of observing a particular graph G is:\n\n$Pr(G)∝a∗edges(G)+b∗triangles(G)$\n\nor more specifically:\n\n$Pr(G)∝e^{a∗edges(G)+b∗triangles(G)}$\n\n(hence the exponential).\n\nThink of this as the ‘weight’ we put on a particular network. In Python, this looks like:\n\ndef compute_weight(G, edge_coeff, tri_coeff):\n'''\nCompute the probability weight on graph G\n'''\nedge_count = len(G.edges())\ntriangles = sum(nx.triangles(G).values())\nreturn np.exp(edge_count * edge_coeff + triangles * tri_coeff)\n\n\nTo turn that weight into a probability, we need to normalize it by the weights of all other possible networks. Mathematically:\n\n$Pr(G)=\\frac{exp(a∗edges(G)+b∗triangles(G))}{∑_{g∈G}exp(a∗edges(g)+b∗triangles(g))}$\n\nNow we come to the first problem: calculating the denominator of that equation. There are many possible graphs. To take the simplest example, an undirected graph with 3 nodes has 8 possible configurations:", null, "There are 64 possible configurations for a 4-node graph, and the number of possible configurations grows mind-bogglingly quickly after that. Most of the time, we simply can’t calculate the weights for all possible graphs. Instead, we need some sort of approximation.\n\nWe could just generate some large number of random graphs, and use that – but we have no way of knowing how representative they are of the actual distribution. We need a way to generate a sample that we think covers the most probable area of the distribution. In terms of the equation above, we want to sample heavily from networks where the weights are large, and less where the weights are small, so that the sum of the weights of the sample gets as close as possible to the actual total weight. Which brings us to the next step:\n\n# Markov Chain Monte Carlo\n\nMarkov Chain Monte Carlo (MCMC) actually refers a broad class of techniques for generating samples from complicated distributions. For our purposes, it means exploring the space of possible networks, moving toward the ones which are more likely given the distribution coefficients.\n\nWe’ll implement a simple version of the Metropolis-Hastings algorithm. We start with some network, and randomly add or subtract an edge.\n\ndef permute_graph(G):\n'''\nReturn a new graph with an edge randomly added or subtracted from G\n'''\nG1 = nx.copy.deepcopy(G)\nd = nx.density(G1)\nr = random.random()\nif (r < 0.5 or d == 0) and d != 1:\nnodes = G.nodes()\nn1 = random.choice(nodes)\nn2 = random.choice(nodes)\nelse:\n# Remove an edge\nn1, n2 = random.choice(G1.edges())\nG1.remove_edge(n1, n2)\nreturn G1\n\n\n\nAfter the change, we check the weight on this new network.\n\n• If it’s greater than the previous network’s weight (that is, it’s more probable under this distribution), we accept it and add it to our sample; it is also our new ‘current’ network.\n• Otherwise, we might still accept it, deciding randomly based on the ratio between the new and old weights.\n\nWe repeat this many times, until we decide we have enough samples. The starting network can be any graph – I found that a random network worked well for my relatively small sample sizes, but we can also use the observed network itself, or a completely empty one. In theory, it shouldn’t matter after enough iterations.\n\ndef mcmc(G, edge_coeff, triangle_coeff, n):\n'''\nUse MCMC to generate a sample of networks from an ERG distribution.\n\nArgs:\nG: The observed network, to seed the graph with\nedge_coeff: The coefficient on the number of edges\ntriangle_coeff: The coefficient on number of triangles\nn: The number of samples to generate\nReturns:\nA list of graph objects\n'''\n\nv = len(G) # number of nodes in G\np = nx.density(G) # Probability of a random edge existing\ncurrent_graph = nx.erdos_renyi_graph(v, p) # Random graph\ncurrent_w = compute_weight(G, edge_coeff, triangle_coeff)\ngraphs = []\nwhile len(graphs) < n:\nnew_graph = permute_graph(current_graph)\nnew_w = compute_weight(new_graph, edge_coeff, triangle_coeff)\nif new_w > current_w or random.random() < (new_w/current_w):\ngraphs.append(new_graph)\ncurrent_w = new_w\nreturn graphs\n\n\nSo this code lets us generate a sample of networks from an exponential random graph distribution when we know the coefficients.\n\nHowever, what we really want to do is find the coefficients. To do this, we want to look for the coefficients that describe an ERG distribution that makes the observed graph as likely as possible.\n\n# Fitting the model\n\nThe first thing we need to do is calculate the probability of observing any given graph, which means summing the weights of all the graphs in a sample:\n\ndef sum_weights(graphs, edge_coeff, tri_coeff):\n'''\nSum the probability weights on every graph in graphs\n'''\ntotal = 0.0\nfor g in graphs:\ntotal += compute_weight(g, edge_coeff, tri_coeff)\n\n\nWith this, we can calculate the probability of a given graph by dividing its weight by the sum of all weights from the sample.\n\nNext, we can use our favorite optimization technique to hunt through the space of possible edge and triangle coefficients.\n\nInstead of changing the network, we’ll randomly change the parameters, and use our MCMC function to estimate the probability of getting the observed network at those parameter values.\n\nOne simple way to do it uses a similar Metropolis-Hastings approach to the one we used above, with one tweak: early on, we want to try larger jumps around the parameter space; as we get further along, and hopefully closer to the ‘best’ value, the jumps should get smaller and smaller. There’s not really a right way to tweak the jump size\n\nHere’s the code I came up with to do it:\n\ndef fit_ergm(G, coeff_samples=100, graph_samples=1000, return_all=False):\n'''\nUse MCMC to sample possible coefficients, and return the best fits.\n\nArgs:\nG: The observed graph to fit\ncoeff_samples: The number of coefficient combinations to sample\ngraph_samples: The number of graphs to sample for each set of coeffs\nreturn_all: If True, return all sampled values. Otherwise, only best.\nReturns:\nIf return_all=False, returns a tuple of values,\n(best_edge_coeff, best_triangle_coeff, best_p)\nwhere p is the estimated probability of observing the graph G with\nthe fitted parameters.\n\nOtherwise, return a tuple of lists:\n(edge_coeffs, triangle_coeffs, probs)\n'''\nedge_coeffs = \ntriangle_coeffs = \nprobs = [None]\n\nwhile len(probs) < coeff_samples:\n# Make the jump size larger early on, and smaller toward the end\nw = coeff_samples/50.0\ns = np.sqrt(w/len(probs))\n# Pick new coefficients to try:\nedge_coeff = edge_coeffs[-1] + random.normalvariate(0, s)\ntriangle_coeff = triangle_coeffs[-1] + random.normalvariate(0, s)\n# Check how likely the observed graph is under this distribution:\ngraphs = mcmc(G, edge_coeff, triangle_coeff, graph_samples)\nsum_weight = sum_weights(graphs, edge_coeff, triangle_coeff)\np = compute_weight(G, edge_coeff, triangle_coeff) / sum_weight\n# Decide whether to accept the jump:\nif p > probs[-1] or random.random() < (p / probs[-1]):\nedge_coeffs.append(edge_coeff)\ntriangle_coeffs.append(triangle_coeff)\nprobs.append(p)\nelse:\nedge_coeffs.append(edge_coeffs[-1])\ntriangle_coeffs.append(triangle_coeffs[-1])\nprobs.append(probs)\n# Return either the best values, or all of them:\nif not return_all:\ni = np.argmax(probs)\nbest_p = probs[i]\nbest_edge_coeff = edge_coeffs[i]\nbest_triangle_coeff = triangle_coeffs[i]\nreturn (best_edge_coeff, best_triangle_coeff, best_p)\nelse:\nreturn (edge_coeffs, triangle_coeffs, probs)\n\n\n# Example application\n\nNow the real test – fitting the ERGM to an actual network. The canonical example is the Florentine marriage network, which is included in NetworkX.\n\nG = nx.florentine_families_graph()\n\nnx.draw(G)", null, "%%timeit\ngraphs = mcmc(G, -1.25, 0.15, 10000)\n\n1 loop, best of 3: 6.79 s per loop\n\n\nI fit the ERGM with 100 coefficient iterations and 10,000 random networks for each candidate distribution. I also have it return the full series of steps. Note: this part takes a while.\n\n%%timeit\nedge_coeffs, triangle_coeffs, probs = fit_ergm(G, 10, 10, True)\n\nThe slowest run took 25.50 times longer than the fastest. This could mean that an intermediate result is being cached.\n10 loops, best of 3: 199 ms per loop\n\nedge_coeffs, triangle_coeffs, probs = fit_ergm(G, 100, 10, True)\n\ni = np.argmax(probs)\nprint max(probs)\nprint edge_coeffs[i]\nprint triangle_coeffs[i]\n\n0.59541550664\n0.445701809562\n-0.492293584485\n\n\nOnce it’s done (about 20 minutes later, for me), we can find the values it converged to. For me, they were:\n\nEdge coefficient: -1.667\n\nTriangle coefficient: -0.258\n\n==========================\nSummary of model fit\n==========================\n\nFormula: flomarriage ~ edges + triangles\n\nIterations: 20\n\nMonte Carlo MLE Results:\nEstimate Std. Error MCMC % p-value\nedges -1.6773 0.3499 0 <1e-04 ***\ntriangle 0.1574 0.5831 0 0.788\n---\nSignif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1\nNot too far off! The edge coefficient is very close; the triangle coefficient is not too far off, and in any case isn't statistically significant.\n\n\nOne problem I discovered is that I obtained some estimated probabilities for the observed network that were greater than 1. This means that the network MCMC was sampling far away from the observed network, so that the weight on the observed network was greater than the sum of weights on all the sampled networks. This isn’t a great outcome, though it still does tell us something about how likely the observed network is under that distribution. Increasing the network sample size might help make this problem go away, as would improving the Markov chain procedure (e.g. with more permutation between networks).\n\nWe can do a few more diagnostics on the results. For example, the trace of the value of the coefficients at each iteration is:\n\nfig = plt.figure(figsize=(8,4))\np1, = ax.plot(edge_coeffs)\np2, = ax.plot(triangle_coeffs)\nax.set_ylabel(\"Coefficient value\")\nax.set_xlabel(\"Iteration\")\nl = ax.legend([p1, p2], [\"Edge coefficient\", \"Triangle coefficient\"])", null, "weighted_edge_coeffs = np.array(edge_coeffs[1:]) * np.array(probs[1:])\nprint np.sum(weighted_edge_coeffs)/np.sum(probs[1:])\n\n\n0.297715535504\n\nweighted_tri_coeffs = np.array(triangle_coeffs[1:]) * np.array(probs[1:])\nprint np.sum(weighted_tri_coeffs)/np.sum(probs[1:])\n\n-0.481915973737\n\n\nWe can also see the distribution of possible coefficients, by making a histogram weighted by the likelihood we observed for each value. (To deal with the likelihoods estimated at greater than 1, I actually weight each coefficient value by the log of the estimated likelihood).\n\nfig = plt.figure(figsize=(12,4))\nax1.hist(edge_coeffs[1:], weights=-np.log(probs[1:]))\nax1.set_title(\"Edge coefficient\")\nax1.set_xlabel(\"Coefficient value\")\n\nax2.hist(triangle_coeffs[1:], weights=-np.log(probs[1:]))\nax2.set_title(\"Triangle coefficient\")\nax2.set_xlabel(\"Coefficient value\")\nplt.show()", null, "This shows that the bulk of the weight on the edge coefficient is between -1 and -2, while the triangle coefficient is much more evenly distributed on both sides of 0. Using a distribution like this, we can statistically test whether the coefficients are significantly different from 0, estimate the standard error, and do various other statistical tests and operations I won’t cover here.\n\nAnd that’s it! We have a slow, simplistic but apparently somewhat-working ERGM model fitter, built up from scratch.\n\nIf you want to learn how to actually do ERGM analysis in R , Benjamin Lind has a great hands-on tutorial over at Bad Hessian on using ERGMs to model the hookup network on the TV show Grey’s Anatomy.\n\nThe paper introducing the ergm package by Hunter et al., the package developers, is a great guide\n\nas is the (paywalled) An introduction to exponential random graph (p*) models for social networks by Robins et al.\n\nMarkov Chain Monte Carlo Estimation of Exponential Random Graph Models by Tom Snijders goes into more detail on estimation methodology, and includes an appendix with a much better estimation algorithm, which I may try to implement in the future.\n\nTags:\n\nUpdated:" ]
[ null, "https://socrateslab.github.io/forum/assets/img2017/ergm0.png", null, "https://socrateslab.github.io/forum/assets//img2017/ergm1.png", null, "https://socrateslab.github.io/forum/assets//img2017/ergm2.png", null, "https://socrateslab.github.io/forum/assets/img2017/ergm3.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.86825955,"math_prob":0.9890786,"size":14058,"snap":"2021-43-2021-49","text_gpt3_token_len":3336,"char_repetition_ratio":0.15703714,"word_repetition_ratio":0.0037771482,"special_character_ratio":0.2474036,"punctuation_ratio":0.1411985,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9995865,"pos_list":[0,1,2,3,4,5,6,7,8],"im_url_duplicate_count":[null,2,null,2,null,2,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-25T05:09:18Z\",\"WARC-Record-ID\":\"<urn:uuid:f727bc62-3659-4b52-a874-5154fe0f4996>\",\"Content-Length\":\"59322\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:db2a6952-0fad-42b6-83f8-86e46c150098>\",\"WARC-Concurrent-To\":\"<urn:uuid:450a858f-d4d1-4fd2-8449-24ebc30a97ce>\",\"WARC-IP-Address\":\"172.67.171.251\",\"WARC-Target-URI\":\"https://computational-communication.com/forum/ergm-python/\",\"WARC-Payload-Digest\":\"sha1:NIQLUVAT5TZX432GF54OHCEL27DMDM7Y\",\"WARC-Block-Digest\":\"sha1:JJK5OD6IKTHXY43KHJYLMPM3UCJMRDO3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323587623.1_warc_CC-MAIN-20211025030510-20211025060510-00136.warc.gz\"}"}
https://docs.sqlalchemy.org/en/14/orm/self_referential.html
[ "# Adjacency List Relationships¶\n\nThe adjacency list pattern is a common relational pattern whereby a table contains a foreign key reference to itself, in other words is a self referential relationship. This is the most common way to represent hierarchical data in flat tables. Other methods include nested sets, sometimes called “modified preorder”, as well as materialized path. Despite the appeal that modified preorder has when evaluated for its fluency within SQL queries, the adjacency list model is probably the most appropriate pattern for the large majority of hierarchical storage needs, for reasons of concurrency, reduced complexity, and that modified preorder has little advantage over an application which can fully load subtrees into the application space.\n\nThis section details the single-table version of a self-referential relationship. For a self-referential relationship that uses a second table as an association table, see the section Self-Referential Many-to-Many Relationship.\n\nIn this example, we’ll work with a single mapped class called `Node`, representing a tree structure:\n\n```class Node(Base):\n__tablename__ = 'node'\nid = Column(Integer, primary_key=True)\nparent_id = Column(Integer, ForeignKey('node.id'))\ndata = Column(String(50))\nchildren = relationship(\"Node\")```\n\nWith this structure, a graph such as the following:\n\n```root --+---> child1\n+---> child2 --+--> subchild1\n| +--> subchild2\n+---> child3```\n\nWould be represented with data such as:\n\n```id parent_id data\n--- ------- ----\n1 NULL root\n2 1 child1\n3 1 child2\n4 3 subchild1\n5 3 subchild2\n6 1 child3```\n\nThe `relationship()` configuration here works in the same way as a “normal” one-to-many relationship, with the exception that the “direction”, i.e. whether the relationship is one-to-many or many-to-one, is assumed by default to be one-to-many. To establish the relationship as many-to-one, an extra directive is added known as `relationship.remote_side`, which is a `Column` or collection of `Column` objects that indicate those which should be considered to be “remote”:\n\n```class Node(Base):\n__tablename__ = 'node'\nid = Column(Integer, primary_key=True)\nparent_id = Column(Integer, ForeignKey('node.id'))\ndata = Column(String(50))\nparent = relationship(\"Node\", remote_side=[id])```\n\nWhere above, the `id` column is applied as the `relationship.remote_side` of the `parent` `relationship()`, thus establishing `parent_id` as the “local” side, and the relationship then behaves as a many-to-one.\n\nAs always, both directions can be combined into a bidirectional relationship using the `backref()` function:\n\n```class Node(Base):\n__tablename__ = 'node'\nid = Column(Integer, primary_key=True)\nparent_id = Column(Integer, ForeignKey('node.id'))\ndata = Column(String(50))\nchildren = relationship(\"Node\",\nbackref=backref('parent', remote_side=[id])\n)```\n\nThere are several examples included with SQLAlchemy illustrating self-referential strategies; these include Adjacency List and XML Persistence.\n\n## Composite Adjacency Lists¶\n\nA sub-category of the adjacency list relationship is the rare case where a particular column is present on both the “local” and “remote” side of the join condition. An example is the `Folder` class below; using a composite primary key, the `account_id` column refers to itself, to indicate sub folders which are within the same account as that of the parent; while `folder_id` refers to a specific folder within that account:\n\n```class Folder(Base):\n__tablename__ = 'folder'\n__table_args__ = (\nForeignKeyConstraint(\n['account_id', 'parent_id'],\n['folder.account_id', 'folder.folder_id']),\n)\n\naccount_id = Column(Integer, primary_key=True)\nfolder_id = Column(Integer, primary_key=True)\nparent_id = Column(Integer)\nname = Column(String)\n\nparent_folder = relationship(\"Folder\",\nbackref=\"child_folders\",\nremote_side=[account_id, folder_id]\n)```\n\nAbove, we pass `account_id` into the `relationship.remote_side` list. `relationship()` recognizes that the `account_id` column here is on both sides, and aligns the “remote” column along with the `folder_id` column, which it recognizes as uniquely present on the “remote” side.\n\n## Self-Referential Query Strategies¶\n\nQuerying of self-referential structures works like any other query:\n\n```# get all nodes named 'child2'\nsession.query(Node).filter(Node.data=='child2')```\n\nHowever extra care is needed when attempting to join along the foreign key from one level of the tree to the next. In SQL, a join from a table to itself requires that at least one side of the expression be “aliased” so that it can be unambiguously referred to.\n\nRecall from Selecting ORM Aliases in the ORM tutorial that the `aliased()` construct is normally used to provide an “alias” of an ORM entity. Joining from `Node` to itself using this technique looks like:\n\n```from sqlalchemy.orm import aliased\n\nnodealias = aliased(Node)\nsession.query(Node).filter(Node.data=='subchild1').\\\njoin(Node.parent.of_type(nodealias)).\\\nfilter(nodealias.data==\"child2\").\\\nall()\nSELECT node.id AS node_id,\nnode.parent_id AS node_parent_id,\nnode.data AS node_data\nFROM node JOIN node AS node_1\nON node.parent_id = node_1.id\nWHERE node.data = ?\nAND node_1.data = ?\n['subchild1', 'child2']\n```\n\nFor an example of using `aliased()` to join across an arbitrarily long chain of self-referential nodes, see XML Persistence.\n\nEager loading of relationships occurs using joins or outerjoins from parent to child table during a normal query operation, such that the parent and its immediate child collection or reference can be populated from a single SQL statement, or a second statement for all immediate child collections. SQLAlchemy’s joined and subquery eager loading use aliased tables in all cases when joining to related items, so are compatible with self-referential joining. However, to use eager loading with a self-referential relationship, SQLAlchemy needs to be told how many levels deep it should join and/or query; otherwise the eager load will not take place at all. This depth setting is configured via `relationships.join_depth`:\n\n```class Node(Base):\n__tablename__ = 'node'\nid = Column(Integer, primary_key=True)\nparent_id = Column(Integer, ForeignKey('node.id'))\ndata = Column(String(50))\nchildren = relationship(\"Node\",\nlazy=\"joined\",\njoin_depth=2)\n\nsession.query(Node).all()\nSELECT node_1.id AS node_1_id,\nnode_1.parent_id AS node_1_parent_id,\nnode_1.data AS node_1_data,\nnode_2.id AS node_2_id,\nnode_2.parent_id AS node_2_parent_id,\nnode_2.data AS node_2_data,\nnode.id AS node_id,\nnode.parent_id AS node_parent_id,\nnode.data AS node_data\nFROM node\nLEFT OUTER JOIN node AS node_2\nON node.id = node_2.parent_id\nLEFT OUTER JOIN node AS node_1\nON node_2.id = node_1.parent_id\n[]\n```" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7403133,"math_prob":0.8112532,"size":7479,"snap":"2022-40-2023-06","text_gpt3_token_len":1719,"char_repetition_ratio":0.14622073,"word_repetition_ratio":0.073746316,"special_character_ratio":0.22890761,"punctuation_ratio":0.12967382,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95671463,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-10-03T13:54:23Z\",\"WARC-Record-ID\":\"<urn:uuid:b7152566-f5c0-4a02-8c71-361eb5d53458>\",\"Content-Length\":\"49568\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f21ccd1e-5454-44a1-a9ab-fca2a2cf2498>\",\"WARC-Concurrent-To\":\"<urn:uuid:c8728c0d-ab7d-44d8-8382-82c72378f1bf>\",\"WARC-IP-Address\":\"45.33.79.102\",\"WARC-Target-URI\":\"https://docs.sqlalchemy.org/en/14/orm/self_referential.html\",\"WARC-Payload-Digest\":\"sha1:STIJRUMHSPO5YBXYCGAFCTPDYLVP5NY2\",\"WARC-Block-Digest\":\"sha1:4TQNBLK3AZM7ZLHCY4FUSYPVUYS5ZNSZ\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030337421.33_warc_CC-MAIN-20221003133425-20221003163425-00053.warc.gz\"}"}
http://bbcbasic.co.uk/wiki/doku.php?id=queueing_20event_20interrupts
[ "", null, "BBC BASIC Programmers' Reference\n\nSite Tools\n\nqueueing_20event_20interrupts\n\nQueueing event interrupts\n\nby Richard Russell, June 2006; amended June 2009 and December 2011\n\nThe ON CLOSE, ON MOUSE, ON MOVE, ON SYS and ON TIME statements interrupt your program when one of the specified events occurs. Perhaps the most obvious way to use these statements is to cause a procedure (an interrupt service routine) to be called when the interrupt happens, as follows:\n\nON SYS PROCsys(@wparam%,@lparam%) : RETURN\n\nIt is important that any event parameters in which you are interested (@msg%, @wparam% and/or @lparam%) are read in the statement immediately following the ON statement otherwise they might have changed as a result of a subsequent interrupt. For example the following code will not work reliably:\n\nON SYS wp%=@wparam%:lp%=@lparam%:PROCsys(wp%,lp%):RETURN : REM Don't do this!\n\nAlthough wp% will contain the @wparam% parameter relevant to the ON SYS call, lp% may not contain the relevant value of @lparam%, because another interrupt may have occurred in between.\n\nSo with care it is possible to ensure that every event is processed by your program, with no chance of any being missed, but not necessarily in the order in which they occurred! To see why, consider the following code:\n\nON SYS PROCsys(@wparam%) : RETURN\n\nDEF PROCsys(W%)\nPRINT W%\nENDPROC\n\nSuppose two ON SYS interrupts happen in quick succession, with @wparam% values of 1 and 2 in that order. The first will result in PROCsys being called, but before the PRINT statement gets a chance to be executed the second interrupt will occur. So the actual sequence of events will be:\n\n1. PROCsys(1)\n2. PROCsys(2)\n3. PRINT 2\n4. ENDPROC\n5. PRINT 1\n6. ENDPROC“\n\nresulting in the following output:\n\n2\n1\n\nSo the events were processed in the opposite order to that in which they occurred!\n\nOften this won't matter, and indeed in many circumstances it will be irrelevant because there is no likelihood of two interrupts happening sufficiently close together. For example this will be the situation if you are using ON SYS only to respond to menu selections, since you should only get one interrupt for each selection. In such a case you can safely use an alternative approach where the interrupt simply sets a global variable that you can poll elsewhere:\n\nON SYS Click% = @wparam% : RETURN\n\nClick% = -1\nREPEAT\ntemp% = INKEY(1)\nIF temp%=-1 SWAP temp%,Click%\nCASE temp% OF\nWHEN ....\nWHEN ....\nREM. etc.\nENDCASE\nUNTIL FALSE\n\nThis routine conveniently uses INKEY as both a delay (to avoid using too much CPU time) and to monitor for keypresses, which is handy for implementing keyboard shortcuts for menu items.\n\nHowever life isn't always this easy! Occasionally it may be necessary to ensure that every event is registered, even if two or more occur in very quick succession, and to ensure that the events are processed in the order in which they happen. An example might be handling events from a dialogue box. One way of dealing with this is to implement a First In First Out queue of events which can be written as the events occur (however fast) and read as they are processed, even if relatively slowly.\n\nAt first thought this doesn't sound too difficult - creating a FIFO queue in software is straightforward - but there is a major difficulty: we must transfer the event into the queue in just one statement. If we don't it won't work: either data could be lost or the events could be processed in the wrong order! Achieving this sounds like a tall order, but it can be done.\n\nMethod 1: Using an array\n\nFor a queue with six entries the code for writing into the queue would be as follows:\n\nDIM Q%(6)\n\nON SYS Q%()=Q%(0)+1,@wparam%,Q%(1),Q%(2),Q%(3),Q%(4),Q%(5) : RETURN\n\nThis may need a little explanation. To do it all in a single statement we use the ability to load an entire array from a comma-separated list of values. The clever bit is that some of the values we load into the array depend on elements of that same array, as follows:\n\n• Q%(0) = Q%(0)+1\n• Q%(1) = @wparam%\n• Q%(2) = Q%(1)\n• Q%(3) = Q%(2)\n• Q%(4) = Q%(3)\n• Q%(5) = Q%(4)\n• Q%(6) = Q%(5)\n\nHopefully you can see what is happening here. Elements Q(1) to Q(6) act as a shift register: each time an event occurs the previously-stored data is shifted one place along the queue (the data in element Q%(6) is discarded) and the new data is stored in Q%(1). Element Q%(0) is loaded with the value Q%(0)+1, in other words it is incremented. This zeroth element of the array acts a pointer to the oldest event stored in the queue.\n\nSo by using this cunning method we manage to store each event into the queue, and increment a pointer, in just one statement! How, then, do we read the data out? This is the code:\n\nWHILE Q%(0)\nevent% = Q%(0)<=DIM(Q%(),1) AND Q%(Q%(0) AND Q%(0)<=DIM(Q%(),1))\nQ%(0) -= 1\nREM Do something with event%\nENDWHILE\n\nFirstly we examine Q%(0), which is the pointer. If this is zero the queue is empty and we need take no further action. If it is non-zero there is at least one event in the queue. The next line reads the oldest event in the queue, by using Q%(0) as the subscript; the comparisons ensure that a 'Bad subscript' error doesn't occur if the queue overflows.\n\nNote that as Q%(0) is accessed and the queue's contents retrieved in the same statement, there is no possibility of reading the wrong event. Even if another interrupt has occurred since Q%(0) was tested in the previous line it makes no difference: the oldest event will always be read.\n\nFinally the next line simply decrements the pointer, so it points to the next event to be read (if any), and leaves the other elements in the array unchanged. Again, it doesn't matter if another interrupt occurs between the previous statement and this one.\n\nThe array can, of course, be any length (within reason). If events occur more quickly than they can be processed the queue will eventually fill and the oldest event(s) will be discarded; in that case event% will be set to zero.\n\nIf you need to know the value of @msg% and @lparam% as well as @wparam% you can extend the technique as follows. To write into the queue:\n\nDIM Q%(18)\n\nON SYS Q%()=Q%(0)+3,@msg%,@wparam%,@lparam%,Q%(1),Q%(2),Q%(3),Q%(4),Q%(5),...,Q%(15) : RETURN\n\nWHILE Q%(0)\nlpar% = Q%(0)<=DIM(Q%(),1) AND Q%(Q%(0)-0 AND Q%(0)<=DIM(Q%(),1))\nwpar% = Q%(0)<=DIM(Q%(),1) AND Q%(Q%(0)-1 AND Q%(0)<=DIM(Q%(),1))\nmsg% = Q%(0)<=DIM(Q%(),1) AND Q%(Q%(0)-2 AND Q%(0)<=DIM(Q%(),1))\nQ%(0) -= 3\nREM Do something with msg%, wpar% and lpar%\nENDWHILE\n\nThe maximum length of queue that can be fitted into one line is 11 events (33 values):\n\nDIM Q%(33)\n\nON SYS Q%()=Q%(0)+3,@msg%,@wparam%,@lparam%,Q%(1),Q%(2),Q%(3),Q%(4),Q%(5),...,Q%(30) : RETURN\n\nTo create a longer queue split the line using line-continuation characters (BBC BASIC for Windows version 5.91a or later only):\n\nDIM Q%(99)\n\nON SYS Q%() = Q%(0)+3,@msg%,@wparam%,@lparam%,Q%(1),Q%(2),Q%(3),Q%(4),Q%(5),Q%(6),Q%(7),Q%(8),Q%(9),Q%(10),Q%(11),Q%(12),Q%(13),Q%(14),Q%(15),Q%(16),Q%(17),Q%(18),Q%(19),Q%(20),Q%(21),Q%(22),Q%(23),Q%(24),Q%(25),Q%(26),Q%(27),Q%(28),Q%(29),\\\n\\ Q%(30),Q%(31),Q%(32),Q%(33),Q%(34),Q%(35),Q%(36),Q%(37),Q%(38),Q%(39),Q%(40),Q%(41),Q%(42),Q%(43),Q%(44),Q%(45),Q%(46),Q%(47),Q%(48),Q%(49),Q%(50),Q%(51),Q%(52),Q%(53),Q%(54),Q%(55),Q%(56),Q%(57),Q%(58),Q%(59),Q%(60),Q%(61),Q%(62),Q%(63),\\\n\\ Q%(64),Q%(65),Q%(66),Q%(67),Q%(68),Q%(69),Q%(70),Q%(71),Q%(72),Q%(73),Q%(74),Q%(75),Q%(76),Q%(77),Q%(78),Q%(79),Q%(80),Q%(81),Q%(82),Q%(83),Q%(84),Q%(85),Q%(86),Q%(87),Q%(88),Q%(89),Q%(90),Q%(91),Q%(92),Q%(93),Q%(94),Q%(95),Q%(96) : RETURN\n\nUsing this technique you can make the queue as long as you like, within reason. However, requiring a very long queue is suggestive that you may be able to find a better solution by restructuring your program. For example you may be able to increase the frequency with which you poll the queue, or use an interrupt approach rather than polling.\n\nMethod 2: Using a string\n\nThis method is easier to understand than the foregoing one, and the maximum practical queue length is greater (over 5000 events), but it is more expensive of CPU time and memory.\n\nThe code for writing into the queue is as follows:\n\nQueue\\$ = \"\"\n!^wParam\\$ = ^@wparam% : ?(^wParam\\$+4) = 4\nON SYS Queue\\$ += wParam\\$ : RETURN\n\nHere wParam\\$ is a global string variable containing four characters, corresponding to the 4-byte (32-bit) value of @wparam%.\n\nThis is the code for reading the data out:\n\nWHILE Queue\\$<>\"\"\nevent% = !!^Queue\\$\nQueue\\$ = MID\\$(Queue\\$,5)\nREM Do something with event%\nENDWHILE\n\nIf events occur more quickly than they can be processed the queue will eventually fill and a String too long error will result.\n\nIf you need to know the value of @msg% and @lparam% as well as @wparam% you can extend the technique as follows. To write into the queue:\n\nQueue\\$ = \"\"\n!^iMsg\\$ = ^@msg% : ?(^iMsg\\$+4) = 4\n!^wParam\\$ = ^@wparam% : ?(^wParam\\$+4) = 4\n!^lParam\\$ = ^@lparam% : ?(^lParam\\$+4) = 4\nON SYS Queue\\$ += iMsg\\$ + wParam\\$ + lParam\\$ : RETURN\n\nHere iMsg\\$, wParam\\$ and lParam\\$ are global string variables containing the values of @msg%, @wparam% and @lparam% respectively.\n\nWHILE Queue\\$<>\"\"\nevent\\$ = LEFT\\$(Queue\\$,12)\nQueue\\$ = MID\\$(Queue\\$,13)\n\nevent% = !^event\\$\nmsg% = event%!0\nwpar% = event%!4\nlpar% = event%!8\nREM Do something with msg%, wpar% and lpar%\nENDWHILE\n\nNote that the use of the temporary string event\\$ is important because the memory address of the string Queue\\$ alters as it changes length, and so could change between reading the msg%, wpar% and lpar% values.", null, "" ]
[ null, "http://bbcbasic.co.uk/wiki/lib/exe/fetch.php", null, "http://bbcbasic.co.uk/wiki/lib/exe/indexer.php", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.86675197,"math_prob":0.98600423,"size":9235,"snap":"2022-05-2022-21","text_gpt3_token_len":2589,"char_repetition_ratio":0.13714658,"word_repetition_ratio":0.07713499,"special_character_ratio":0.3122902,"punctuation_ratio":0.14836505,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9802211,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-01-19T17:36:41Z\",\"WARC-Record-ID\":\"<urn:uuid:90e38d66-0058-4e78-a03d-2033720451e1>\",\"Content-Length\":\"27890\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:12ff275a-d437-4596-8a5b-74c369818b54>\",\"WARC-Concurrent-To\":\"<urn:uuid:7a9433d6-162e-472f-b5e4-eb3379b1a1b6>\",\"WARC-IP-Address\":\"94.229.68.18\",\"WARC-Target-URI\":\"http://bbcbasic.co.uk/wiki/doku.php?id=queueing_20event_20interrupts\",\"WARC-Payload-Digest\":\"sha1:64I2GOXBO46REHS2ZFAHFJUQ5MCFZ3ZU\",\"WARC-Block-Digest\":\"sha1:BCUV4PPXCLCEHLTSNKVT5TYB6COA6XJJ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-05/CC-MAIN-2022-05_segments_1642320301475.82_warc_CC-MAIN-20220119155216-20220119185216-00263.warc.gz\"}"}
http://www.softmath.com/parabola-in-math/point-slope/write-equation-for-function.html
[ "English | Español\n\nTry our Free Online Math Solver!", null, "Online Math Solver\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\nwrite equation for function for variable\nRelated topics:\nPrintable Linear Equation Quiz | how to write 65 divided into a number algebracally | hard math problems for kids | 3rd order quadratic program for ti-83 | algebraic expressions class7 | review guide for math 117 test 2 | solving by substiution grade 9, practice | maths formulaes | greatest commn factor between terms calculator | binomial fraction subtraction\n\nAuthor   Message      Author   Message\n-=ET=-", null, "Reg.: 25.05.2003", null, "Posted: Thursday 04th of Jan 07:05   DoubniDoom", null, "Reg.: 26.06.2002", null, "Posted: Monday 08th of Jan 07:29\n\nI have this home assignment due and I would really I would like to try this thing if it can really help me learn\nappreciate if anyone can help to solve write equation math efficiently . I like maths, but after the job, I don’t\nfor function for variable on which I’m stuck and have any energy left in my body to solve equations .\ndon’t know where to start from. Can you give me\nassistance with quadratic equations, dividing fractions\nand multiplying fractions. I would rather get assistance\nfrom you than hire a math tutor who are very costly .\nAny pointer will be really treasured very much.\nJrobhic", null, "Reg.: 09.08.2002", null, "Posted: Wednesday 10th of Jan 08:57\nkfir", null, "Reg.: 07.05.2006", null, "Posted: Saturday 06th of Jan 08:04\nAlgebrator is the program that I have used through\nI could help you if you can be more specific and provide several algebra classes - Pre Algebra, Remedial\ndetails about write equation for function for variable. A Algebra and Algebra 2. It is a truly a great piece of\ngood program would be ideal rather than a costly math software. I remember of going through problems\nalgebra tutor. After trying a number of program I found with linear equations, simplifying expressions and\nthe Algebrator to be the best I have so far found . It trinomials. I would simply type in a problem from the\nsolves any math problem that you may want solved. It workbook , click on Solve – and step by step\nalso shows all the steps (of the solution). You can just solution to my algebra homework. I highly recommend\ncopy it as your homework . However, you should use it the program.\nto learn math , and simply not use it to copy answers.\nerx", null, "Reg.: 26.10.2001", null, "Posted: Thursday 11th of Jan 19:27\nDolknankey", null, "Reg.: 24.10.2003", null, "Posted: Saturday 06th of Jan 12:17\nTry this link :https://softmath.com/news.html. I found mine\nAlgebrator indeed is a very good software to help you there. You will see, algebra won't seem such a hard\nlearn math, sitting at home . You won’t just get the thing after you get this software ! Have a good time\nproblem solved but the entire solution as well, that’s with it!\nhow concepts are built . And to do well in math, it’s\nimportant to have strong concepts. I would highly\nrecommend using this software if you want to finish\nyour project on time." ]
[ null, "http://www.softmath.com/images/video-pages/solver-top.png", null, "http://www.softmath.com/images/avatars/328.gif", null, "http://www.softmath.com/images/forum/icon_minipost.gif", null, "http://www.softmath.com/images/avatars/none.png", null, "http://www.softmath.com/images/forum/icon_minipost.gif", null, "http://www.softmath.com/images/avatars/115.gif", null, "http://www.softmath.com/images/forum/icon_minipost.gif", null, "http://www.softmath.com/images/avatars/363.jpg", null, "http://www.softmath.com/images/forum/icon_minipost.gif", null, "http://www.softmath.com/images/avatars/163.gif", null, "http://www.softmath.com/images/forum/icon_minipost.gif", null, "http://www.softmath.com/images/avatars/none.png", null, "http://www.softmath.com/images/forum/icon_minipost.gif", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8965615,"math_prob":0.7215145,"size":2499,"snap":"2019-43-2019-47","text_gpt3_token_len":657,"char_repetition_ratio":0.0993988,"word_repetition_ratio":0.009237875,"special_character_ratio":0.2705082,"punctuation_ratio":0.15047619,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9749709,"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,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-10-21T21:12:16Z\",\"WARC-Record-ID\":\"<urn:uuid:cb3d2f44-4b50-4c19-924a-a5b91c21089b>\",\"Content-Length\":\"103294\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c08b1c5f-b2a7-4e16-9cfb-76b2db2fb9c8>\",\"WARC-Concurrent-To\":\"<urn:uuid:cdfc0780-16e6-494b-9170-6997c9d3d4cc>\",\"WARC-IP-Address\":\"52.43.142.96\",\"WARC-Target-URI\":\"http://www.softmath.com/parabola-in-math/point-slope/write-equation-for-function.html\",\"WARC-Payload-Digest\":\"sha1:ZCURB6AYV3KNBUWKALAVJMKNXNMLBW3A\",\"WARC-Block-Digest\":\"sha1:ROYQEJ6XDUJFCQKGRAVC3X4QF4DCES4B\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-43/CC-MAIN-2019-43_segments_1570987787444.85_warc_CC-MAIN-20191021194506-20191021222006-00275.warc.gz\"}"}
https://drostlab.github.io/myTAI/reference/PlotCategoryExpr.html
[ "This function visualizes the expression level distribution of each phylostratum during each time point or experiment as boxplot, dot plot, or violin plot enabling users to quantify the age (PS) or divergence (DS) category specific contribution to the corresponding transcriptome.\n\nPlotCategoryExpr(\nExpressionSet,\nlegendName,\ntest.stat = TRUE,\ntype = \"category-centered\",\ndistr.type = \"boxplot\",\ny.ticks = 10,\nlog.expr = FALSE,\ngene.set = NULL\n)\n\n## Arguments\n\nExpressionSet a standard PhyloExpressionSet or DivergenceExpressionSet object. a character string specifying whether \"PS\" or \"DS\" are used to compute relative expression profiles. a logical value indicating whether a Benjamini-Hochberg adjusted kruskal.test should be applied to determine significant differences in age or divergence category specific expression. type of age or divergence category comparison. Specifications can be type = \"category-centered\" or type = \"stage-centered\". format of visualizing age or divergence category specific expression distributions. Either distr.type = \"boxplot\", distr.type = \"dotplot\", or distr.type = \"violin\". number of y-axis ticks (default y.ticks = 10). a logical value specifying whether or not expression levels should internally be log2-transformed before visualization. a character vector storing the gene ids for which gene expression levels shall be visualized.\n\n## Value\n\nA boxplot, violin plot, or dot plot visualizing the gene expression levels of different PS or DS categories.\n\nFurthermore, the statistical test results returned from the kruskal.test are printed to the console.\n\n(1) '*' = P-Value <= 0.05\n\n(2) '**' = P-Value <= 0.005\n\n(3) '***' = P-Value <= 0.0005\n\n(4) 'n.s.' = not significant = P-Value > 0.05\n\n## Details\n\nThis way of visualizing the gene expression distribution of each age (PS) or divergence (DS) category during all developmental stages or experiments allows users to detect specific age or divergence categories contributing significant levels of gene expression to the underlying biological process (transcriptome).\n\nThis quantification allows users to conclude that genes originating in specific PS or DS contribute significantly more to the overall transcriptome than other genes originating from different PS or DS categories. More specialized analyses such as PlotMeans, PlotRE, PlotBarRE, etc. will then allow to study the exact mean expression patterns of these age or divergence categories.\n\nThe statistical quantification of differences between expression levels of different age or divergence categories is done by performing a kruskal.test with Benjamini & Hochberg p-value adjustment for multiple comparisons.\n\n• type = \"category-centered\" Here, the kruskal.test quantifies the differences of gene expression between all combinations of age or divergence categories for each stage or experiment separately. Here, a significant p-value quantifies that there is at least one pairwise comparison for which age or divergence categories significantly differ in their gene expression distribution. This type of analysis allows users to detect stages or experiments that show high diviation between age or divergence category contributions to the overall transcriptome or no significant deviations of age or divergence categories, suggesting equal age or divergence category contributions to the overall transcriptome.\n\n• type = \"stage-centered\" Here, the kruskal.test quantifies the differences of gene expression between all stages or experiments for each age or divergence category separately. Hence, the test quantifies whether or not the gene expression distribution of a single age or divergence category significantly changes throughout development or experiments. This type of analysis allows users to detect specific age or divergence categories that significantly change their expression levels throughout development or experiments.\n\nArgument Specifications:\n\nArgument: type\n\n• type = \"category-centered\" This specification allows users to compare the differences between all age or divergence categories during the same stage or experiment.\n\n• type = \"stage-centered\" This specification allows users to compare the differences between all age or divergence categories between stages or experiments.\n\nArgument: distr.type\n\n• distr.type = \"boxplot\" This specification allows users to visualize the expression distribution of all PS or DS as boxplot.\n\n• distr.type = \"violin\" This specification allows users to visualize the expression distribution of all PS or DS as violin plot.\n\n• distr.type = \"dotplot\" This specification allows users to visualize the expression distribution of all PS or DS as dot plot.\n\nFinally, users can specify a gene.set (a subset of genes included in the input ExpressioSet) for which expression levels should be visualized as boxplot, dotplot, or violinplot.\n\nPlotMeans, PlotRE, PlotBarRE, age.apply, pTAI, pTDI, pStrata, pMatrix, TAI, TDI\n\nHajk-Georg Drost\n\n## Examples\n\n\ndata(PhyloExpressionSetExample)\ndata(DivergenceExpressionSetExample)\n\nif (FALSE) {\n\n# category-centered visualization of PS specific expression level distributions (log-scale)\nPlotCategoryExpr(ExpressionSet = PhyloExpressionSetExample,\nlegendName = \"PS\",\ntest.stat = TRUE,\ntype = \"category-centered\",\ndistr.type = \"boxplot\",\nlog.expr = TRUE)\n\n# stage-centered visualization of PS specific expression level distributions (log-scale)\nPlotCategoryExpr(ExpressionSet = PhyloExpressionSetExample,\nlegendName = \"PS\",\ntest.stat = TRUE,\ndistr.type = \"boxplot\",\ntype = \"stage-centered\",\nlog.expr = TRUE)\n\n# category-centered visualization of PS specific expression level distributions (log-scale)\n# as violoin plot\nPlotCategoryExpr(ExpressionSet = PhyloExpressionSetExample,\nlegendName = \"PS\",\ntest.stat = TRUE,\ndistr.type = \"violin\",\ntype = \"stage-centered\",\nlog.expr = TRUE)\n\n# analogous for DivergenceExpressionSets\nPlotCategoryExpr(ExpressionSet = DivergenceExpressionSetExample,\nlegendName = \"DS\",\ntest.stat = TRUE,\ntype = \"category-centered\",\ndistr.type = \"boxplot\",\nlog.expr = TRUE)\n\n# visualize the expression levels of 500 example genes\nset.seed(234)\nexample.gene.set <- PhyloExpressionSetExample[sample(1:25260,500) , 2]\n\nPlotCategoryExpr(ExpressionSet = PhyloExpressionSetExample,\nlegendName = \"PS\",\ntest.stat = TRUE,\ntype = \"category-centered\",\ndistr.type = \"boxplot\",\nlog.expr = TRUE,\ngene.set = example.gene.set)\n\n}" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.65097773,"math_prob":0.90122175,"size":6066,"snap":"2022-40-2023-06","text_gpt3_token_len":1273,"char_repetition_ratio":0.17238535,"word_repetition_ratio":0.23200993,"special_character_ratio":0.1983185,"punctuation_ratio":0.13493724,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9511658,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-01-27T12:08:00Z\",\"WARC-Record-ID\":\"<urn:uuid:ce8644bb-3b9f-4e46-b9bb-593fa01666d7>\",\"Content-Length\":\"22148\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:9087297e-b3d3-4506-b22e-20dcc6c15ec7>\",\"WARC-Concurrent-To\":\"<urn:uuid:47bb2792-af1d-4d32-b0ca-341dc61ac1b9>\",\"WARC-IP-Address\":\"185.199.110.153\",\"WARC-Target-URI\":\"https://drostlab.github.io/myTAI/reference/PlotCategoryExpr.html\",\"WARC-Payload-Digest\":\"sha1:5IQBZXAIMXK5BU4GHJRVYK3BAHSTXWBZ\",\"WARC-Block-Digest\":\"sha1:GWK2DO6KBTPKMKVXE7HSXGHWLPT3T7PT\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764494976.72_warc_CC-MAIN-20230127101040-20230127131040-00129.warc.gz\"}"}
https://www.pluralsight.com/guides/creating-nested-and-special-purpose-functions-in-r
[ "Important Update\nThe Guide Feature will be discontinued after December 15th, 2023. Until then, you can continue to access and refer to the existing guides.", null, "Deepika Singh\n\n# Creating Nested and Special-Purpose Functions in R\n\n• Jan 17, 2020\n• 13,308 Views\n• Jan 17, 2020\n• 13,308 Views\nData\nR\n\n## Introduction\n\nA function is a set of scripts organized together to carry out a specific task. Writing efficient functions is an important skill that can significantly improve the productivity of data scientists and data science solutions. In this guide, you will learn the basics of writing a function and the types of functions, which will enable you perform analytical tasks more efficiently.\n\n### Components of Functions\n\nThe main components of a function can be expressed as below.\n\n``````1name_function <- function(argument 1, argument 2) {\n2 # Function body which executes what is to be done\n3}``````\n{r}\n\nIn the above expression, the component `name_function` defines the name of the function, which gets stored as an object in R. It is possible to write a function without the name, but for code readability and re-usability, naming a function is strongly recommended.\n\nThe second component is `argument`—argument 1, argument 2, and so on. An argument is a placeholder where the values are passed when a function gets invoked. Again, arguments are optional, but it is recommended to specify them for code reproducibility.\n\nThe third component is the function body, which is a collection of scripts defining what is to be done by the function.\n\nThe R programming library has a rich set of functions, but before we explore them it's important to see an example of the usefulness of writing functions.\n\n## Importance of Functions\n\nFunctions are important because they substantially reduce repetition in code. This decreases the chance of errors in the code, thereby reducing the workload. The other advantage is that if written properly, functions can be reproduced by other users. We will understand this better with an illustration as discussed below.\n\n### Data\n\nTo understand the importance of functions, and also for the other sections in this guide, we will use a fictitious dataset of loan applicants containing 600 observations and ten variables, as described below:\n\n1. `Marital_status`: Whether the applicant is married (\"Yes\") or not (\"No\")\n\n2. `Is_graduate`: Whether the applicant is a graduate (\"Yes\") or not (\"No\")\n\n3. `Income`: Annual Income of the applicant (in USD)\n\n4. `Loan_amount`: Loan amount (in USD) for which the application was submitted\n\n5. `Credit_score`: Whether the applicant's credit score is good (\"Good\") or not (\"Bad\")\n\n6. `Approval_status`: Whether the loan application was approved (\"Yes\") or not (\"No\")\n\n7. `Age`: The applicant's age in years\n\n8. `Sex`: Whether the applicant is a male (\"M\") or a female (\"F\")\n\n9. `Investment`: Total investment in stocks and mutual funds (in USD) as declared by the applicant\n\n10. `Purpose`: Purpose of applying for the loan\n\n``````1library(plyr)\n3library(dplyr)\n4library(ggplot2)\n5library(repr)\n6\n8df2 = df1\n9glimpse(df1)``````\n{r}\n\nOutput:\n\n``````1Observations: 600\n2Variables: 10\n3\\$ Marital_status <chr> \"Yes\", \"No\", \"Yes\", \"No\", \"Yes\", \"Yes\", \"Yes\", \"Yes\", ...\n4\\$ Is_graduate <chr> \"No\", \"Yes\", \"Yes\", \"Yes\", \"Yes\", \"Yes\", \"Yes\", \"Yes\",...\n5\\$ Income <int> 30000, 30000, 30000, 30000, 89900, 133300, 136700, 136...\n6\\$ Loan_amount <int> 60000, 90000, 90000, 90000, 80910, 119970, 123030, 123...\n7\\$ Credit_score <chr> \"Satisfactory\", \"Satisfactory\", \"Satisfactory\", \"Satis...\n8\\$ approval_status <chr> \"Yes\", \"Yes\", \"No\", \"No\", \"Yes\", \"No\", \"Yes\", \"Yes\", \"...\n9\\$ Age <int> 25, 29, 27, 33, 29, 25, 29, 27, 33, 29, 25, 29, 27, 33...\n10\\$ Sex <chr> \"F\", \"F\", \"M\", \"F\", \"M\", \"M\", \"M\", \"F\", \"F\", \"F\", \"M\",...\n11\\$ Investment <int> 21000, 21000, 21000, 21000, 62930, 93310, 95690, 95690...\n12\\$ Purpose <chr> \"Education\", \"Travel\", \"Others\", \"Others\", \"Travel\", \"...``````\n\nThe output shows that the dataset has five numerical (labeled as `int`) and five character variables (labeled as `chr`). For building machine learning algorithms, we will convert the `chr` into factor variables using the lines of code below.\n\n``````1df1\\$Marital_status = as.factor(df1\\$Marital_status)\n2\n4\n5df1\\$Credit_score = as.factor(df1\\$Credit_score)\n6\n7df1\\$approval_status = as.factor(df1\\$approval_status)\n8\n9df1\\$Sex = as.factor(df1\\$Sex)\n10\n11df1\\$Purpose = as.factor(df1\\$Purpose)\n12\n13glimpse(df1)``````\n{r}\n\nOutput:\n\n``````1Observations: 600\n2Variables: 10\n3\\$ Marital_status <fct> Yes, No, Yes, No, Yes, Yes, Yes, Yes, Yes, Yes, No, No...\n4\\$ Is_graduate <fct> No, Yes, Yes, Yes, Yes, Yes, Yes, Yes, Yes, Yes, No, Y...\n5\\$ Income <int> 30000, 30000, 30000, 30000, 89900, 133300, 136700, 136...\n6\\$ Loan_amount <int> 60000, 90000, 90000, 90000, 80910, 119970, 123030, 123...\n7\\$ Credit_score <fct> Satisfactory, Satisfactory, Satisfactory, Satisfactory...\n8\\$ approval_status <fct> Yes, Yes, No, No, Yes, No, Yes, Yes, Yes, No, No, No, ...\n9\\$ Age <int> 25, 29, 27, 33, 29, 25, 29, 27, 33, 29, 25, 29, 27, 33...\n10\\$ Sex <fct> F, F, M, F, M, M, M, F, F, F, M, F, F, M, M, M, M, M, ...\n11\\$ Investment <int> 21000, 21000, 21000, 21000, 62930, 93310, 95690, 95690...\n12\\$ Purpose <fct> Education, Travel, Others, Others, Travel, Travel, Tra...``````\n\nThe output shows that the variables have been converted into factor variables. It's interesting to see that it took six lines of code to perform the conversion. We can do the same operation with just two lines of code, as shown below. The first line specifies the position of the columns to be changed to factor variables, while the second line does the conversion using the `lapply()` function.\n\n``````1names <- c(1,2,5,6,8,10)\n2df2[,names] <- lapply(df2[,names] , factor)\n3glimpse(df2) ``````\n{r}\n\nOutput:\n\n``````1Observations: 600\n2Variables: 10\n3\\$ Marital_status <fct> Yes, No, Yes, No, Yes, Yes, Yes, Yes, Yes, Yes, No, No...\n4\\$ Is_graduate <fct> No, Yes, Yes, Yes, Yes, Yes, Yes, Yes, Yes, Yes, No, Y...\n5\\$ Income <int> 30000, 30000, 30000, 30000, 89900, 133300, 136700, 136...\n6\\$ Loan_amount <int> 60000, 90000, 90000, 90000, 80910, 119970, 123030, 123...\n7\\$ Credit_score <fct> Satisfactory, Satisfactory, Satisfactory, Satisfactory...\n8\\$ approval_status <fct> Yes, Yes, No, No, Yes, No, Yes, Yes, Yes, No, No, No, ...\n9\\$ Age <int> 25, 29, 27, 33, 29, 25, 29, 27, 33, 29, 25, 29, 27, 33...\n10\\$ Sex <fct> F, F, M, F, M, M, M, F, F, F, M, F, F, M, M, M, M, M, ...\n11\\$ Investment <int> 21000, 21000, 21000, 21000, 62930, 93310, 95690, 95690...\n12\\$ Purpose <fct> Education, Travel, Others, Others, Travel, Travel, Tra...``````\n\nThe above output confirms that with only two lines of code and using the `lapply()` function, we can perform an operation that initially required six lines of code. It also removed chances of manual error and made the code more robust. This was for a small dataset containing ten variables. For larger datasets with millions of observations and thousands of variables, the use of functions becomes absolutely vital.\n\nHaving understood the importance of functions, we'll now dive deeper into the various options available in R.\n\n## Custom Functions\n\nThere are several in-built functions in R that can be used to perform analytical tasks, some of which are discussed below.\n\n### Mean\n\nThe arithmetic mean of a numeric vector or variable can be calculated using the `mean()` function. In its simplest form, it takes the syntax `mean(x)`, where x stands for the numeric vector. The line of code below calculates the mean of the `Income` variable.\n\n``1mean(df1\\$Income)``\n{r}\n\nOutput:\n\n``````1 658614.7\n2 ``````\n\nWe can add more arguments to the function as shown below. The argument `na.rm` ignores the missing values, while the argument `trim` removes the proportion of outliers from each end before performing the calculation.\n\n``1mean(df1\\$Income, na.rm = TRUE, trim = 0.05)``\n{r}\n\nOutput:\n\n``````1 592630.7\n2 ``````\n\nThe output shows that the mean income is now reduced from \\$658,615.00 to \\$592,631.00. Similarly, we can calculate the other summary statistics using the functions below.\n\n``````1min(df1\\$Income)\n2\n3max(df1\\$Income)\n4\n5quantile(df1\\$Income)``````\n{r}\n\nOutput:\n\n``````1 30000\n2\n3 3173700\n4\n5 0% 25% 50% 75% 100%\n6 30000 381750 500800 760400 3173700 ``````\n\nAlternatively, we can use the `summary()` function to get these values, which shows there is more than one function to get a particular computation in R.\n\n``1summary(df1\\$Income)``\n{r}\n\nOutput:\n\n``````1 Min. 1st Qu. Median Mean 3rd Qu. Max.\n2 30000 381750 500800 658615 760400 3173700 ``````\n\n## User-Defined Functions\n\nThe in-built functions in R are powerful, but often in data science we have to create our own functions. Such user-defined functions have a name, argument and a body. For example, the summary function above does not compute the standard deviation. To do this, we can create a user-defined function using the code below.\n\n``````1compute_sd <- function(x) {\n2 sqrt(sum((x-mean(x))^2/(length(x)-1)))\n3}``````\n{r}\n\nOnce we have created the function, we can call the function to get the desired computation.\n\n``1compute_sd(df1\\$Income)``\n{r}\n\nOutput:\n\n``````1 486281.1\n2 ``````\n\n## Nested Functions\n\nIn the previous sections, we have learned about in-built and user-defined functions. In complex data science use cases, we may have to work on nested functions, which contain functions within a function.\n\nFor example, if we want to visualize class separation by numeric features for our dataset, we can do that using a box plot. There are four numeric features in the data, namely `Income`, `Loan_amount`, `Age`, and `Investment`. If we want to draw a box plot for each of these features with respect to the target variable, `approval_status`, it will require several lines of code.\n\nInstead, we'll try to create a nested function to achieve this objective as shown below.\n\n``````1create_boxplot = function(df, num_cols, target_col = 'approval_status'){\n2 for(col in num_cols){\n3 bp = ggplot(df, aes_string(target_col, col)) +\n4 geom_boxplot() +\n5 ggtitle(paste('Box plot of', col, '\\n vs.', target_col))\n6 print(bp)\n7 }\n8}``````\n{r}\n\nHaving created the function, the next step is to use the above function to generate the plots. The first line of code specifies the list to be used as an argument in the function. The second line calls the function we created above and plots the four box plots.\n\n``````1num_cols = c('Income', 'Loan_amount', 'Age', 'Investment')\n2\n3create_boxplot(df1, num_cols)``````\n{r}\n\nOutput:", null, "Output:", null, "Output:", null, "Output:", null, "The above plots show how we can use the `ggplot()`, `geom_boxplot()`, and `ggtitle` functions nested within the `create_boxplot` function to perform complex data science tasks in fewer lines of code.\n\n## Conclusion\n\nIn this guide, you have learned the basics of writing functions in R. You were introduced to in-built custom functions, and went on to learn how to create user-built and more complex nested functions in R. This knowledge of functions will help you make your analyses more robust, scalable, and reproducible, in addition to reducing errors in the code." ]
[ null, "https://pluralsight.imgix.net/author/lg/c83827e7-f216-4494-a2d3-5c84aa7047e8.png", null, "https://imgur.com/oJVWXDe.png", null, "https://imgur.com/mgwRash.png", null, "https://imgur.com/7gQM6ZI.png", null, "https://imgur.com/YBvBKh1.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8333195,"math_prob":0.9674029,"size":10452,"snap":"2023-40-2023-50","text_gpt3_token_len":2982,"char_repetition_ratio":0.14088821,"word_repetition_ratio":0.20205687,"special_character_ratio":0.32902795,"punctuation_ratio":0.238326,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97673553,"pos_list":[0,1,2,3,4,5,6,7,8,9,10],"im_url_duplicate_count":[null,null,null,4,null,4,null,4,null,4,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-08T07:07:36Z\",\"WARC-Record-ID\":\"<urn:uuid:61382d9d-b122-44d8-9298-3f12c3ad040c>\",\"Content-Length\":\"143188\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:75d75f00-eff6-4bef-83bd-ec675cd03a27>\",\"WARC-Concurrent-To\":\"<urn:uuid:a9e49c4d-33be-4cfb-816a-80b10f6e91ed>\",\"WARC-IP-Address\":\"104.17.35.85\",\"WARC-Target-URI\":\"https://www.pluralsight.com/guides/creating-nested-and-special-purpose-functions-in-r\",\"WARC-Payload-Digest\":\"sha1:4JAJOLJUW64TXEMTWNWRNTUGBQLYTECJ\",\"WARC-Block-Digest\":\"sha1:J3FB7RYEEOSEP5OCWZTCZ63E655LZQ6U\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100724.48_warc_CC-MAIN-20231208045320-20231208075320-00673.warc.gz\"}"}
https://physics.stackexchange.com/questions/220638/time-independent-kerr-metric
[ "# Time independent Kerr metric\n\nThe Kerr metric expressed in terms of polar coordinates $r,\\theta,\\phi$, such that $x = r\\sin(\\theta)\\cos(\\phi)$, $y = r\\sin(\\theta)\\sin(\\phi)$, $z = r\\cos(\\theta)$. Then the Kerr metric is given as \\begin{align*} ds^2 = &-\\left(1 - \\frac{2GMr}{r^2+a^2\\cos^2(\\theta)}\\right) dt^2 + \\left(\\frac{r^2+a^2\\cos^2(\\theta)}{r^2-2GMr+a^2}\\right) dr^2 + \\left(r^2+a^2\\cos(\\theta)\\right) d\\theta^2\\\\ &+ \\left(r^2+a^2+\\frac{2GMra^2}{r^2+a^2\\cos^2(\\theta)}\\right)\\sin^2(\\theta) d\\phi^2 - \\left(\\frac{4GMra\\sin^2(\\theta)}{r^2+a^2\\cos^2(\\theta)}\\right) d\\phi\\, dt \\end{align*} where $a \\equiv S/M$ is the object's angular momentum per unit mass, and $G$ is the gravitational constant. This is an exact solution for the empty-space Einstein equation.\n\nSay, If we are to consider the metric for a constant time, $t_0$. Is it then possible to define the Kerr metric on a submanifold of spacetime, say only in space? If so how can I accomlish this? Is it as simple as dropping the time dependent terms, i.e \\begin{align*} ds^2 = & \\left(\\frac{r^2+a^2\\cos^2(\\theta)}{r^2-2GMr+a^2}\\right) dr^2 + \\left(r^2+a^2\\cos(\\theta)\\right) d\\theta^2\\\\ &+ \\left(r^2+a^2+\\frac{2GMra^2}{r^2+a^2\\cos^2(\\theta)}\\right)\\sin^2(\\theta) d\\phi^2 \\end{align*} or do I need to use the induced metric to describe the metric on the submanifold?\n\nEdit : I solved the geodesic differential equations using a \"time independent\" Kerr metric, with a = 0 (i.e this reduces Kerr metric to the Schwarzschild metric), and the Schwarzschild radius to define the other parameters :", null, "Most plots I got spiraled around a singularity at the origo.\n\nHere is a plot where I set $\\phi$ to a constant, the z-axis becomes the \"time\" :", null, "Update : I have found the following figure which seem to verify my first figure.", null, "Strategies for Direct Visualization of Second-Rank Tensor Fields by Werner Benger and Hans-Christian Hege\n\n• At heart, something like this has to be properly understood as a 3+1 decomposition of the spacetime, which can be understood using the ADM decomposition: en.wikipedia.org/wiki/ADM_formalism Note that different choices for the time coordinate will give you radically different 3-geometries. – Jerry Schirmer Aug 13 '18 at 19:11\n\n## 1 Answer\n\nThe metric is telling you how to calculate the proper time along a path of your choosing. If you select a path where the time is everywhere constant then as you integrate along that path $dt = 0$ and any terms involving $dt$ disappear. It is as simple as that.\n\n• Its nice to know that. That simplifies things a lot for me. I intend to visualize the metric by solving the geodesic differential equations. And it makes things much easier if I can simply consider the problem in 3D. – imranal Nov 26 '15 at 9:51\n• @imranal: I don't think you can actually do that. Geodesics in space are not the same as geodesics in spacetime. – Javier Nov 26 '15 at 13:53\n• @imranal: I think what you're describing is a bit different to what I thought you meant. The hypersurface of constant time is a Riemannian manifold, with a metric obtained by setting $ds=0$. You could solve the geodesic equation for this manifold and maybe this is a good way to understand the shape of the manifold. However the curves you get have no physical relevance in the sense that they are not physically meaningful trajectories. – John Rennie Nov 26 '15 at 16:40\n• @javier: Can I drop one of the space components instead, say $\\phi$ ? – imranal Nov 27 '15 at 23:32" ]
[ null, "https://i.stack.imgur.com/0I7yw.png", null, "https://i.stack.imgur.com/CpcZc.png", null, "https://i.stack.imgur.com/DKaYt.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6911236,"math_prob":0.9976437,"size":1852,"snap":"2021-21-2021-25","text_gpt3_token_len":620,"char_repetition_ratio":0.16666667,"word_repetition_ratio":0.03265306,"special_character_ratio":0.3201944,"punctuation_ratio":0.072864324,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99988675,"pos_list":[0,1,2,3,4,5,6],"im_url_duplicate_count":[null,3,null,3,null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-06-17T09:38:51Z\",\"WARC-Record-ID\":\"<urn:uuid:1464f91f-3fb6-4858-9ccb-dac0caf51173>\",\"Content-Length\":\"168572\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5f847ad0-ea44-495b-9a97-1866af530d56>\",\"WARC-Concurrent-To\":\"<urn:uuid:6a17445e-9684-4ee4-aad7-b6938270a022>\",\"WARC-IP-Address\":\"151.101.193.69\",\"WARC-Target-URI\":\"https://physics.stackexchange.com/questions/220638/time-independent-kerr-metric\",\"WARC-Payload-Digest\":\"sha1:AM5NKNHOXQ3Y4KLR647DL5WAXCTSR6YZ\",\"WARC-Block-Digest\":\"sha1:5TJFTTQCE4OKNSJKZE4DSGIZGKF4F6DZ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-25/CC-MAIN-2021-25_segments_1623487629632.54_warc_CC-MAIN-20210617072023-20210617102023-00010.warc.gz\"}"}
https://mpm.spbstu.ru/article/2014.32.5/
[ "# Thermoelectric figure-of-merit effects on fluid flow\n\nАвторы:\nАннотация:\n\nThis work is related to flow of an electro conducting fluid presented thermoelectric figure-of-merit effect, in the presence of magnetic field. The electro conducting thermofluid equation heat transfer with one relaxation time is derived. The flow of electro conducting fluid over a suddenly moved plate is considered. The governing coupled equations in the frame of the boundary layer model are applied to Stokes' first problem with heat sources. Laplace transforms and Fourier transforms techniques are used to get the solution. The inverses of Fourier transforms are obtained analytically. Laplace transforms are obtained using the complex inversion formula of the transform together with Fourier expansion techniques. Numerical results for the temperature distribution and the velocity component are represented graphically. Thermoelectric figure-of-merit effect on the fluid flow is studied." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.91735125,"math_prob":0.94878787,"size":949,"snap":"2021-43-2021-49","text_gpt3_token_len":174,"char_repetition_ratio":0.123809524,"word_repetition_ratio":0.0,"special_character_ratio":0.15700738,"punctuation_ratio":0.06711409,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9818638,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-12-05T14:27:40Z\",\"WARC-Record-ID\":\"<urn:uuid:0fb52c92-4521-4a21-b2d4-3148c089affd>\",\"Content-Length\":\"35714\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:60b8696e-d82a-4b15-a2be-463eb8d13479>\",\"WARC-Concurrent-To\":\"<urn:uuid:a746f38e-cd88-46b6-b2d0-fde1e1e57bf0>\",\"WARC-IP-Address\":\"194.190.225.184\",\"WARC-Target-URI\":\"https://mpm.spbstu.ru/article/2014.32.5/\",\"WARC-Payload-Digest\":\"sha1:DD2P7BK3AFDTTF4LTVR7IXL7TJKX5GMI\",\"WARC-Block-Digest\":\"sha1:P3XJJBRXOZDGBPY52URS7QL6KZMBU5CO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964363189.92_warc_CC-MAIN-20211205130619-20211205160619-00406.warc.gz\"}"}
https://jsciences.ut.ac.ir/article_31257.html
[ "Abstract\n\nLet D be a division ring with centre K and dim, D< ? a valuation on K and v a\nnoninvariant extension of ? to D. We define the initial ramfication index of v over\n?, ?(v/ ?) .Let A be a valuation ring of o with maximal ideal m, and v , v ,…, v noninvariant extensions of w to D with valuation rings A , A ,…, A .\nIf B= A , it is shown that the following conditions are equivalent: (i) B is a finite A-module, (ii) B is a free A-module, (iii) [B/mB: A/m] = [D: k], (iv) e(v / ?) f(v / ?)= [D: K] and ? (v / ?)= e(v / ?). It is also proved that if ? (v/ ?) = e(v/ ?), and any of (i) - (iv) holds, then v is invariant" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7300024,"math_prob":0.99808705,"size":622,"snap":"2020-34-2020-40","text_gpt3_token_len":210,"char_repetition_ratio":0.11812298,"word_repetition_ratio":0.0,"special_character_ratio":0.3697749,"punctuation_ratio":0.22222222,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9988682,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-08-14T02:53:33Z\",\"WARC-Record-ID\":\"<urn:uuid:712160d8-5c28-42e1-9039-a2bfd56014c1>\",\"Content-Length\":\"43271\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ee643999-a608-4cf6-9ccc-e19120c26782>\",\"WARC-Concurrent-To\":\"<urn:uuid:3d7902b0-a0db-4b2f-9ca1-9ec64dab7b62>\",\"WARC-IP-Address\":\"80.66.179.110\",\"WARC-Target-URI\":\"https://jsciences.ut.ac.ir/article_31257.html\",\"WARC-Payload-Digest\":\"sha1:QIU6MPGJDMVFVOX4IQ2DIMLN3GUA62LE\",\"WARC-Block-Digest\":\"sha1:FQQWCK2OQG45XIAVUEGIER34AJQRJHV5\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-34/CC-MAIN-2020-34_segments_1596439739134.49_warc_CC-MAIN-20200814011517-20200814041517-00168.warc.gz\"}"}
https://www.nag.com/numeric/nl/nagdoc_28.4/examples/source/c06pqfe.f90.html
[ "NAG Library Manual, Mark 28.4\n``` Program c06pqfe\n\n! C06PQF Example Program Text\n\n! Mark 28.4 Release. NAG Copyright 2022.\n\n! .. Use Statements ..\nUse nag_library, Only: c06pqf, nag_wp\n! .. Implicit None Statement ..\nImplicit None\n! .. Parameters ..\nInteger, Parameter :: nin = 5, nout = 6\n! .. Local Scalars ..\nInteger :: i, ieof, ifail, j, m, n\n! .. Local Arrays ..\nReal (Kind=nag_wp), Allocatable :: work(:), x(:)\n! .. Executable Statements ..\nWrite (nout,*) 'C06PQF Example Program Results'\n! Skip heading in data file\nloop: Do\nIf (ieof<0) Then\nExit loop\nEnd If\n\nAllocate (work((m+2)*n+15),x(m*(n+2)))\nDo j = 1, m*(n+2), n + 2\nEnd Do\nWrite (nout,*)\nWrite (nout,*) 'Original data values'\nWrite (nout,*)\nDo j = 1, m*(n+2), n + 2\nWrite (nout,99999) ' ', (x(j+i),i=0,n-1)\nEnd Do\n\n! ifail: behaviour on error exit\n! =0 for hard exit, =1 for quiet-soft, =-1 for noisy-soft\nifail = 0\nCall c06pqf('F',n,m,x,work,ifail)\n\nWrite (nout,*)\nWrite (nout,*) &\n'Discrete Fourier transforms in complex Hermitian format'\nDo j = 1, m*(n+2), n + 2\nWrite (nout,*)\nWrite (nout,99999) 'Real ', (x(j+2*i),i=0,n/2)\nWrite (nout,99999) 'Imag ', (x(j+2*i+1),i=0,n/2)\nEnd Do\nWrite (nout,*)\nWrite (nout,*) 'Fourier transforms in full complex form'\n\nDo j = 1, m*(n+2), n + 2\nWrite (nout,*)\nWrite (nout,99999) 'Real ', (x(j+2*i),i=0,n/2), &\n(x(j+2*(n-i)),i=n/2+1,n-1)\nWrite (nout,99999) 'Imag ', (x(j+2*i+1),i=0,n/2), &\n(-x(j+2*(n-i)+1),i=n/2+1,n-1)\nEnd Do\n\nCall c06pqf('B',n,m,x,work,ifail)\n\nWrite (nout,*)\nWrite (nout,*) 'Original data as restored by inverse transform'\nWrite (nout,*)\nDo j = 1, m*(n+2), n + 2\nWrite (nout,99999) ' ', (x(j+i),i=0,n-1)\nEnd Do\nDeallocate (x,work)\nEnd Do loop\n\n99999 Format (1X,A,9(:,1X,F10.4))\nEnd Program c06pqfe\n```" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6084833,"math_prob":0.9852582,"size":1745,"snap":"2023-14-2023-23","text_gpt3_token_len":728,"char_repetition_ratio":0.190695,"word_repetition_ratio":0.21641791,"special_character_ratio":0.44584528,"punctuation_ratio":0.28629857,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99449605,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-06-02T12:16:36Z\",\"WARC-Record-ID\":\"<urn:uuid:c5514a74-e4f7-4711-9426-b4d6639a9425>\",\"Content-Length\":\"17351\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:9bd46dc2-6571-4cda-b0f1-52f18c617e26>\",\"WARC-Concurrent-To\":\"<urn:uuid:7a0aa72c-d8c0-4aab-96e3-7e2456a7da09>\",\"WARC-IP-Address\":\"78.129.168.4\",\"WARC-Target-URI\":\"https://www.nag.com/numeric/nl/nagdoc_28.4/examples/source/c06pqfe.f90.html\",\"WARC-Payload-Digest\":\"sha1:J5IAMPVKU3H244IYD5HMG2ALJFGV7VAN\",\"WARC-Block-Digest\":\"sha1:Q7BL7B4HCKBOYTMIZKUIHZB2HNQ6TTDM\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224648635.78_warc_CC-MAIN-20230602104352-20230602134352-00695.warc.gz\"}"}
https://ncatlab.org/nlab/show/Faa%20di%20Bruno%20formula
[ "# nLab Faa di Bruno formula\n\nFaà di Bruno formula is a remarkable combinatorial formula for higher derivatives of a composition of functions. There are various modern approaches to the related mathematics, using Joyal’s theory of species, operads, graphs/trees, combinatorial Hopf algebras and so on.\n\n### Literature\n\nWe prove a Faà di Bruno formula for the Green function in the bialgebra of P-trees, for any polynomial endofunctor P. The formula appears as relative homotopy cardinality of an equivalence of groupoids. For suitable choices of P, the result implies also formulae for Green functions in bialgebras of graphs.\n\n• Doron Zeilberger, Toward a combinatorial proof of the Jacobian conjecture? in Combinatoire énumérative (Montreal, Que., 1985/Quebec, Que., 1985), 370–380, Lecture Notes in Math. 1234, Springer 1986. MR89c:05009\n• Eliahu Levy, Why do partitions occur in Faa di Bruno’s chain rule for higher derivatives?, math.GM/0602183.\n• E. Di Nardo, G. Guarino, D. Senato, A new algorithm for computing the multivariate Faà di Bruno’s formula, arxiv/1012.6008\n• Miguel A. Mendez, Combinatorial differential operators in: Faà di Bruno formula, enumeration of ballot paths, enriched rooted trees and increasing rooted trees, arXiv:1610.03602\n\nIn works of T. J. Robinson the formula is treated in the context of vertex algebras, calculus with formal power series and in logarithmic calculus, as well as in a connection to the umbral calculus:\n\n• Thomas J. Robinson, New perspectives on exponentiated derivations, the formal Taylor theorem, and Faà di Bruno’s formula, Proc.Conf.Vert.Op.Alg., Cont.Math. 497 (2009) 185-198 arxiv/0903.3391; Formal calculus and umbral calculus, Electronic Journal of Combinatorics, 17(1) (2010) R95 arxiv/0912.0961\n\n### Faà di Bruno Hopf algebra\n\n• Christian Brouder, Alessandra Frabetti, Christian Krattenthaler, Non-commutative Hopf algebra of formal diffeomorphisms, Adv. Math. 200:2 (2006) 479-524 pdf\n\n• Kurusch Ebrahimi-Fard, Frederic Patras, Exponential renormalization, Annales Henri Poincare 11:943-971,2010, arxiv/1003.1679 doi\n\nUsing Dyson’s identity for Green’s functions as well as the link between the Faà di Bruno Hopf algebra and the Hopf algebras of Feynman graphs, its relation to the composition of formal power series is analyzed.\n\n• Hector Figueroa, Jose M. Gracia-Bondia, Joseph C. Varilly, Faà di Bruno Hopf algebras, article at Springer eom, math.CO/0508337\n\n• Jean-Paul Bultel, Combinatorial properties of the noncommutative Faà di Bruno algebra, J. of Algebraic Combinatorics 38:243–273 (2013) MR3081645\n\nWe give a new combinatorial interpretation of the noncommutative Lagrange inversion formula, more precisely, of the formula of Brouder–Frabetti–Krattenthaler for the antipode of the noncommutative Faà di Bruno algebra.\n\nLast revised on October 13, 2016 at 08:46:57. See the history of this page for a list of all contributions to it." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.82196134,"math_prob":0.87468964,"size":1882,"snap":"2021-43-2021-49","text_gpt3_token_len":498,"char_repetition_ratio":0.1315229,"word_repetition_ratio":0.014652015,"special_character_ratio":0.22316684,"punctuation_ratio":0.14730878,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9764139,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-15T20:46:03Z\",\"WARC-Record-ID\":\"<urn:uuid:a4bc8cd6-d601-4f11-8d7a-8eee87c8058e>\",\"Content-Length\":\"17986\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:07ff80b8-dfec-4e8f-b6f2-7dcedefb331c>\",\"WARC-Concurrent-To\":\"<urn:uuid:10802e90-8fe9-49b1-a056-452c09171bbe>\",\"WARC-IP-Address\":\"104.21.81.15\",\"WARC-Target-URI\":\"https://ncatlab.org/nlab/show/Faa%20di%20Bruno%20formula\",\"WARC-Payload-Digest\":\"sha1:QO4DON6DPZSSKPDTJGZYFFUBLWL46S6Y\",\"WARC-Block-Digest\":\"sha1:M4HTC2XS7D7I3VYYDQWG2MG2HJ2YONRQ\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323583083.92_warc_CC-MAIN-20211015192439-20211015222439-00062.warc.gz\"}"}
https://codegolf.stackexchange.com/questions/133754/one-oeis-after-another/152800
[ "# One OEIS after another\n\nAs of 13/03/2018 16:45 UTC, the winner is answer #345, by Khuldraeseth na'Barya. This means the contest is officially over, but feel free to continue posting answers, just so long as they follow the rules.\n\nAs well, just a quick shout out to the top three answerers in terms of numbers of answers:\n\n3. Hyper Neutrino - 26 answers\n\nThis is an answer chaining question that uses sequences from OEIS, and the length of the previous submission.\n\nThis answer chaining question will work in the following way:\n\n• I will post the first answer. All other solutions must stem from that.\n• The next user (let's call them userA) will find the OEIS sequence in which its index number (see below) is the same as the length of my code.\n• Using the sequence, they must then code, in an unused language, a program that takes an integer as input, n, and outputs the nth number in that sequence.\n• Next, they post their solution after mine, and a new user (userB) must repeat the same thing.\n\nThe nth term of a sequence is the term n times after the first, working with the first value being the first value given on its OEIS page. In this question, we will use 0-indexing for these sequences. For example, with A000242 and n = 3, the correct result would be 25.\n\n## However!\n\nThis is not a , so shortest code doesn't matter. But the length of your code does still have an impact. To prevent the duplication of sequences, your bytecount must be unique. This means that no other program submitted here can be the same length in bytes as yours.\n\nIf there isn't a sequence for then length of the last post, then the sequence for your post is the lowest unused sequence. This means that the sequences used also have to be unique, and that the sequence cannot be the same as your bytecount.\n\nAfter an answer has been posted and no new answers have been posted for more than a week, the answer before the last posted (the one who didn't break the chain) will win.\n\n## Input and Output\n\nGeneric input and output rules apply. Input must be an integer or a string representation of an integer and output must be the correct value in the sequence.\n\n## Formatting\n\n# N. language, length, [sequence](link)\n\ncode\n\n*anything else*\n\n\n## Rules\n\n• You must wait for at least 1 hour before posting an answer, after having posted.\n• You may not post twice (or more) in a row.\n• The index number of a sequence is the number after the A part, and with leading zeros removed (e.g. for A000040 the index number is 40)\n• You can assume that neither the input nor the required output will be outside your languages numerical range, but please don't abuse this by choosing a language that can only use the number 1, for example.\n• If the length of your submission is greater than 65536 characters long, please provide a link to a way to access the code (pastebin for example).\n• n will never be larger than 1000, or be out of bounds for the sequence, simply to prevent accuracy discrepancies from stopping a language from competing.\n• Every 150 (valid) answers, the number of times a language may be used increases. So after 150 solutions have been posted, every language may be used twice (with all previous answers counting towards this). For instance, when 150 answers have been posted, Python 3 may be used twice, but due to the fact that it has already been used once, this means it can only be used once more until 300 answers have been posted.\n• Please be helpful and post a link to the next sequence to be used. This isn't required, but is a recommendation.\n• Different versions of languages, e.g. Python 2 and Python 3 are different languages. As a general rule, if the different versions are both available on Try It Online, they are different languages, but keep in mind that this is a general rule and not a rigid answer.\n• It is not banned, but please try not to copy the code from the OEIS page, and actually try to solve it.\n• Hardcoding is only allowed if the sequence is finite. Please note that the answer that prompted this (#40) is the exception to the rule. A few answers early in the chain hardcode, but these can be ignored, as there is no good in deleting the chain up to, say, #100.\n\nvar QUESTION_ID=133754,OVERRIDE_USER=66833;function shareUrl(i){return\"https://codegolf.stackexchange.com/a/\"+i}function answersUrl(e){return\"https://api.stackexchange.com/2.2/questions/\"+QUESTION_ID+\"/answers?page=\"+e+\"&pagesize=100&order=desc&sort=creation&site=codegolf&filter=\"+ANSWER_FILTER}function commentUrl(e,s){return\"https://api.stackexchange.com/2.2/answers/\"+s.join(\";\")+\"/comments?page=\"+e+\"&pagesize=100&order=desc&sort=creation&site=codegolf&filter=\"+COMMENT_FILTER}function getTemplate(s){return jQuery(jQuery(\"#answer-template\").html().replace(\"{{PLACE}}\",s.index+\".\").replace(\"{{NAME}}\",s.user).replace(\"{{LANGUAGE}}\",s.language).replace(\"{{SEQUENCE}}\",s.sequence).replace(\"{{SIZE}}\",s.size).replace(\"{{LINK}}\",s.link))}function search(l,q){m=jQuery(\"<tbody id='answers'></tbody>\");e.forEach(function(s){if(!q||(l==0&&RegExp('^'+q,'i').exec(s.lang_name))||(l==1&&q===''+s.size)){m.append(jQuery(getTemplate(s)))}});jQuery(\"#answers\").remove();jQuery(\".answer-list\").append(m)}function sortby(ix){t=document.querySelector('#answers');_els=t.querySelectorAll('tr');els=[];for(var i=0;i<_els.length;i++){els.push(_els[i]);}els.sortBy(function(a){a=a.cells[ix].innerText;return ix==0||ix==4?Number(a):a.toLowerCase()});for(var i=0;i<els.length;i++)t.appendChild(els[i]);}function checkSize(x){if(!x)return jQuery(\"#size-used\").text(\"\");var i=b.indexOf(+x);if(i<0)return jQuery(\"#size-used\").text(\"Available!\");var low=+x,high=+x;while(~b.indexOf(low))low--;while(~b.indexOf(high))high++;jQuery(\"#size-used\").text((\"Not available. The nearest are \"+low+\" and \"+high).replace(\"are 0 and\",\"is\"))}function checkLang(x){}function getAnswers(){jQuery.ajax({url:answersUrl(answer_page++),method:\"get\",dataType:\"jsonp\",crossDomain:!0,success:function(e){answers.push.apply(answers,e.items),answers_hash=[],answer_ids=[],e.items.forEach(function(e){e.comments=[];var s=+e.answer_id;answer_ids.push(s),answers_hash[s]=e}),e.has_more||(more_answers=!1),comment_page=1,getComments()}})}function getComments(){jQuery.ajax({url:commentUrl(comment_page++,answer_ids),method:\"get\",dataType:\"jsonp\",crossDomain:!0,success:function(e){e.items.forEach(function(e){e.owner.user_id===OVERRIDE_USER&&answers_hash[e.post_id].comments.push(e)}),e.has_more?getComments():more_answers?getAnswers():process()}})}function getAuthorName(e){return (e.owner.user_id==OVERRIDE_USER?\"<span id='question-author'>\"+e.owner.display_name+\"</span>\":e.owner.display_name)}function process(){b=[];c=[];answers.forEach(function(s){var r=s.body;s.comments.forEach(function(e){OVERRIDE_REG.test(e.body)&&(r=\"<h1>\"+e.body.replace(OVERRIDE_REG,\"\")+\"</h1>\")});var a=r.match(SCORE_REG);if(a){e.push({user:getAuthorName(s),size:+a,language:a,lang_name:a,index:+a,sequence:a,link:shareUrl(s.answer_id)});if(b.indexOf(+a)>=0&&c.indexOf(+a)<0){c.push(+a)};b.push(+a)}else{jQuery('#weird-answers').append('<a href=\"'+shareUrl(s.answer_id)+'\">This answer</a> is not formatted correctly. <b>Do not trust the information provided by this snippet until this message disappears.</b><br />')}}),e.sortBy(function(e){return e.index});e.forEach(function(e){jQuery(\"#answers\").append(getTemplate(e))});var q=\"A\"+(\"000000\"+e.slice(-1).size).slice(-6);jQuery(\"#next\").html(\"<a href='http://oeis.org/\"+q+\"'>\"+q+\"</a>\");c.forEach(function(n){jQuery('#weird-answers').append('The bytecount '+n+' was used more than once!<br />')})}Array.prototype.sortBy=function(f){return this.sort(function(a,b){if(f)a=f(a),b=f(b);return(a>b)-(a<b)})};var ANSWER_FILTER=\"!*RB.h_b*K(IAWbmRBLe\",COMMENT_FILTER=\"!owfmI7e3fd9oB\",answers=[],answers_hash,answer_ids,answer_page=1,more_answers=!0,comment_page,e=[];getAnswers();var SCORE_REG=/<h\\d>\\s*(\\d+)\\.\\s*((?:<a [^>]+>\\s*)?((?:[^\\n,](?!<\\/a>))*[^\\s,])(?:<\\/a>)?),.*?(\\d+)(?=[^\\n\\d<>]*(?:<(?:s>[^\\n<>]*<\\/s>|[^\\n<>]+>)[^\\n\\d<>]*)*, ((?:<a[^>]+>\\s*)?A\\d+(?:\\s*<\\/a>)?)\\s*<\\/h\\d>)/,OVERRIDE_REG=/^Override\\s*header:\\s*/i;\nbody{text-align:left!important;font-family:Roboto,sans-serif}#answer-list,#language-list{padding:10px;/*width:290px*/;float:left;display:flex;flex-wrap:wrap;list-style:none;}table thead{font-weight:700}table td{padding:5px}ul{margin:0px}#board{display:flex;flex-direction:column;}#language-list li{padding:2px 5px;}#langs-tit{margin-bottom:5px}#byte-counts{display:block;margin-left:15px;}#question-author{color:purple;text-shadow: 0 0 15px rgba(128,0,128,0.1);}#label-info{font-weight: normal;font-size: 14px;font-style: italic;color: dimgray;padding-left: 10px;vertical-align: middle; }\n<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js\"></script><link rel=\"stylesheet\" type=\"text/css\" href=\"//cdn.sstatic.net/codegolf/all.css?v=83c949450c8b\"><p id=\"weird-answers\"></p><p>Currently waiting on <span id=\"next\"></span></p><span>Search by Byte Count: <input id=\"search\" type=\"number\" min=1 oninput=\"checkSize(this.value);search(1,this.value)\" onclick=\"document.getElementById('search2').value='';!this.value&&search(0,'')\"/> <span id=\"size-used\"></span></span><br><span>Search by Language: <input id=\"search2\" oninput=\"checkLang(this.value);search(0,this.value)\" onclick=\"document.getElementById('search').value='';!this.value&&search(0,'')\"/> <span id=\"language-used\"></span></span><h2>Answer chain <span id=\"label-info\">click a label to sort by column</span></h2><table class=\"answer-list\"><thead><tr><td onclick=\"sortby(0)\">#</td><td onclick=\"sortby(1)\">Author</td><td onclick=\"sortby(2)\">Language</td><td onclick=\"sortby(3)\">Sequence</td><td onclick=\"sortby(4)\">Size</td></tr></thead><tbody id=\"answers\"></tbody></table><table style=\"display: none\"><tbody id=\"answer-template\"><tr><td>{{PLACE}}</td><td>{{NAME}}</td><td>{{LANGUAGE}}</td><td>{{SEQUENCE}}</td><td>{{SIZE}}</td><td><a href=\"{{LINK}}\">Link</a></td></tr></tbody></table><table style=\"display: none\"><tbody id=\"language-template\"><tr><td>{{LANGUAGE}}</td><td>{{NAME}}</td><td>{{SEQUENCE}}</td><td>{{SIZE}}</td><td><a href=\"{{LINK}}\">Link</a></td></tr></tbody></table>\n\n• Comments are not for extended discussion; this conversation has been moved to chat. Oct 31, 2017 at 2:49\n• Is it OK if a program would need a better floating-point accuracy for the builtin float/double type in order to produce values for larger n?\n– Maya\nNov 21, 2017 at 15:15\n• @Giuseppe No, as you're generating the numbers by doing the maths, rather than just placing them into an array/string Dec 15, 2017 at 22:14\n• @cairdcoinheringaahing In my opinion that's hardcoding the gamma constant. It doesn't work \"in theory\" for larger numbers. Dec 22, 2017 at 12:44\n• Chat room Dec 22, 2017 at 12:45\n\n# 22. FiM++, 982 bytes, A000024\n\nNote: if you are reading this, you might want to sort by \"oldest\".\n\nDear PPCG: I solved A000024!\n\nI learned how to party to get a number using the number x and the number y.\nDid you know that the number beers was x?\nFor every number chug from 1 to y,\nbeers became beers times x!\nThat's what I did.\nThen you get beers!\nThat's all about how to party.\n\nToday I learned how to do math to get a number using the number n.\nDid you know that the number answer was 0?\nFor every number x from 1 to n,\nFor every number y from 1 to n,\nDid you know that the number tmp1 was how to party using x and 2?\nDid you know that the number tmp2 was how to party using y and 2?\nDid you know that the number max was how to party using 2 and n?\ntmp2 became tmp2 times 10!\ntmp1 became tmp1 plus tmp2!\nIf tmp1 is more than max then: answer got one more.\nThat's what I did.\nThat's what I did.\nThat's all about how to do math.\n\nPS: This is the best answer\nPPS: This really is the best answer\n\n\nNext sequence\n\n• Hahaha, laughed so hard through the whole thing. +1 for choice of language :-) Jul 22, 2017 at 13:49\n• Amazing, take my upvote Jul 23, 2017 at 11:11\n\n# 1. Triangular, 10 bytes, A000217\n\n$\\:_%i/2*< Try it online! Next Sequence ## How it works The code formats into this triangle $\n\\ :\n_ % i\n/ 2 * <\n\n\nwith the IP starting at the $ and moving South East (SE), works like this: $ Take a numerical input (n); STACK = [n]\n: Duplicate it; STACK = [n, n]\ni Increment the ToS; STACK = [n, n+1]\n< Set IP to W; STACK = [n, n+1]\n* Multiply ToS and 2ndTos; STACK = [n(n+1)]\n2 Push 2; STACK = [n(n+1), 2]\n/ Set IP to NE; STACK = [n(n+1), 2]\n_ Divide ToS by 2ndToS; STACK = [n(n+1)/2]\n\\ Set IP to SE; STACK = [n(n+1)/2]\n% Output ToS as number; STACK = [n(n+1)/2]\n* Multiply ToS by 2ndToS (no op); STACK = [n(n+1)/2]\n\n• 1. Triangular, 10 bytes, A000217. *follows link* A000217 Triangular numbers ... Jul 23, 2017 at 3:39\n\n# 73. Starry, 363 bytes, A000252\n\n, + + * '. \n+ + + + * * * +\n+ +* + \n+ + + + + + * '\n+ ' #### + + +\n+ + #### +* + *\n' ##### + + '\n ######+ + + +\n+ + + ######### * '\n+ + + #####+ + +\n* + + * + * * +\n+ * + + + + * *\n+ + + * + + +\n+ + + + *' + +.\n\n\nTry it online!\n\nNext sequence\n\nUses the formula \"a(n) = n^4 * product p^(-3)(p^2 - 1)*(p - 1) where the product is over all the primes p that divide n\" from OEIS.\n\nThe moon's a no-op, but hey, this isn't code-golf.\n\n• stars in moon? hmmm Jan 1, 2018 at 14:45\n\n# 97. Python 3 (PyPy), 1772 bytes, A000236\n\nFirst of all, many thanks to Dr. Max Alekseyev for being patient with me. I'm very fortunate that I was able to contact him by email to understand this challenge. His Math.SE answer here helped me out a lot. Thanks to Wheat Wizard for helping me as well. :)\n\nplist = []\n\ndef primes(maximal = -1): # Semi-efficient prime number generator with caching up to a certain max.\nindex = plist and plist[-1] or 2\nfor prime in plist:\nif prime <= maximal or maximal == -1: yield prime\nelse: break\nwhile index <= maximal or maximal == -1:\ncomposite = False\nfor prime in plist:\nif index % prime == 0:\ncomposite = True\nbreak\nif not composite:\nyield index\nplist.append(index)\nindex += 1\n\ndef modinv(num, mod): # Multiplicative inverse with a modulus\nindex = 1\nwhile num * index % mod != 1: index += 1\nreturn index\n\ndef moddiv(num, dnm, mod):\nreturn num * modinv(dnm, mod) % mod\n\ndef isPowerResidue(num, exp, mod):\nfor base in range(mod):\nif pow(base, exp, mod) == num:\nreturn base\nreturn False\n\ndef compute(power, prime):\nfor num in range(2, prime):\nif isPowerResidue(moddiv(num - 1, num, prime), power, prime):\nreturn num - 1\nreturn -1\n\n# file = open('output.txt', 'w')\n\ndef output(string):\nprint(string)\n# file.write(str(string) + '\\n')\n\ndef compPrimes(power, count):\nmaximum = 0\nindex = 0\nfor prime in getValidPrimes(power, count):\nresult = compute(power, prime)\nif result > maximum: maximum = result\nindex += 1\n# output('Computed %d / %d = %d%% [result = %d, prime = %d]' % (index, count, (100 * index) // count, result, prime))\nreturn maximum\n\ndef isValidPrime(power, prime):\nreturn (prime - 1) % power == 0\n\ndef getValidPrimes(power, count):\ncollected = []\nfor prime in primes():\nif isValidPrime(power, prime):\ncollected.append(prime)\nif len(collected) >= count:\nreturn collected\n# output('Collected %d / %d = %d%% [%d]' % (len(collected), count, (100 * len(collected)) // count, prime))\n\npower = int(input()) + 2\n\noutput(compPrimes(power, 100))\n\n# file.close()\n\n\nTry it online!\n\nIf it gives the wrong result, just increase the 100 to something larger. I think 10000 will work for 4 but I'll leave my computer running overnight to confirm that; it may take a couple of hours to finish.\n\nNote that the (PyPy) part is just so that I can use Python again. I really don't know many other languages and I'm not going to try to port this to Java and risk not finishing in time.\n\nNext Sequence (Also please don't do any more crazy math stuff; I don't have any Python versions left so someone else will have to save this challenge D:)\n\n• well there's always pypy3 Aug 6, 2017 at 4:29\n\n# 107. TrumpScript, 1589 bytes, A000047\n\nMy cat hears everything really well\nbecause with me every cat is a safe cat\nEverybody knows that one is 1000001 minus 1000000\nbut only most of you that two is, one plus one;\nAs always nothing is, one minus one;\nMy dog is one year old.\nI promise you that as long as you vote on me, nothing will be less cool than a cat;:\nMuch dog is, dog times two;\nDead cat is, cat minus one;!\nI will make dog feel good, food for dog plus one;\nRoads can be made using different things. Asphalt is one of them.\nAs long as Hillary jailed, I love asphalt less than my dog;:\nI promise my roadways are, two times asphalt than you want;\nVladimir is nothing more than my friend.\nAs long as, Putin eat less roadways;:\nChina is nothing interesting.\nWe all know people speaking Chinese are from China.\nAs long as, Chinese makes less roads;:\nI will make economy, for Putin - Chinese will love me;\nIf it will mean, economy is asphalt in Russia?;:\nI will make cat feel good, cat plus one dollar on food;\nI show you how great China is, China plus one; You can add numbers to China.\nLike Chinese is, China times China makes sense;\nLike Chinese is, two times Chinese letter;!\nI also show you how great Putin is, Vladimir times Vladimir; You can do number stuff to Putin too!\nI will make asphalt roads a lot!\nEverybody say cat. You did it? America is great.\n\n\nTry it online!\n\nFirst time programming in TrumpScript, it is possible that I reinvented the wheel a few times - 4 lines are dedicated to calculating 2 ^ n. I tried to make it look like something that (drunk) Trump could say. As a bonus, here is a Python script I wrote to verify that I'm doing everything right. There are some differences to the above program, but much of it is directly equivalent.\n\ncat = int(input())\ndog = 2 ** cat + 1\nasphalt = 1\ncat = 0\nwhile asphalt < dog:\nroadways = 2 * asphalt + 1\nchina = 0\nchinese = china\nchair = putin - chinese\nif chair == asphalt:\ncat += 1\nchina += 1\nchinese = 2 * china * china\nprint(cat)\n\n\nNext sequence!\n\n• I will make cat feel good O_O Aug 15, 2017 at 16:20\n• Sadly I will make Business Cat feel good won't work...\n– Maya\nAug 15, 2017 at 16:26\n\n# 2. Haskell, 44 bytes, A000010\n\nf k|n<-k+1=length.filter(==1)$gcd n<$>[1..n]\n\n\nTry it online!\n\nNext Sequence\n\n• The name of the next sequence though... Jul 21, 2017 at 15:16\n• @totallyhuman poor rabbits... Jul 21, 2017 at 15:17\n• Should we link to the previous post? Jul 21, 2017 at 15:17\n• It pains me that I cannot golf it now. I had to be first you see Jul 21, 2017 at 15:20\n• What is that next sequence? I don't understand the three ones :P Jul 21, 2017 at 15:20\n\n# 30. Python 1, 1112 bytes, A000046\n\ndef rotations(array):\nrotations = []\nfor divider_index in range(len(array)):\nrotations.append(array[divider_index:] + array[:divider_index])\nreturn rotations\n\ndef next(array):\nfor index in range(len(array) - 1, -1, -1):\narray[index] = 1 - array[index]\nif array[index]: break\nreturn array\n\ndef reverse(array):\nreversed = []\nfor index in range(len(array) - 1, -1, -1):\nreversed.append(array[index])\nreturn reversed\n\ndef primitive(array):\nfor index in range(1, len(array)):\nif array == array[:index] * (len(array) / index): return 1\nreturn 0\n\ndef necklaces(size):\nprevious_necklaces = []\narray = * size\nnecklaces = 0\nfor iteration in range(2 ** size):\nif not primitive(array) and array not in previous_necklaces:\nnecklaces = necklaces + 1\nfor rotation in rotations(array):\ncomplement = []\nfor element in rotation:\ncomplement.append(1 - element)\nprevious_necklaces.append(rotation)\nprevious_necklaces.append(complement)\nprevious_necklaces.append(reverse(rotation))\nprevious_necklaces.append(reverse(complement))\narray = next(array)\nreturn necklaces\n\n\nTry it online!\n\nNot even going to bother to golf this. Hey, it's not my longest Python answer on this site!\n\nNext sequence\n\n• Congratulations on decoding the maths :D Jul 22, 2017 at 4:27\n• 313 bytes, lol Jul 22, 2017 at 4:57\n• @LeakyNun As I was saying, I didn't bother to golf this lol. Besides, it's not my longest Python answer on this site so idc :P but nice Jul 22, 2017 at 15:16\n• @LeakyNun And thanks :D It took me a while to understand all of it lol Jul 22, 2017 at 16:22\n• @LeakyNun 309 bytes because the actual value of _ is irrelevant; we just need to repeat that many times Sep 24, 2017 at 1:36\n\n# 9. Pyth, 19 bytes, A000025\n\n?>Q0sm@_B1-edld./Q1\n\n\nNext sequence\n\na(n) = number of partitions of n with even rank minus number with odd rank. The rank of a partition is its largest part minus the number of parts.\n\n• For those who know Pyth, I deliberately used >Q0 instead of Q in order to, you know, have the next sequence to be A000019. Jul 21, 2017 at 16:41\n• From the OEIS page Keywords: easy,nice Jul 21, 2017 at 16:46\n• @LeakyNun Yeah since otherwise I'd have to solve A000017...gross. Jul 21, 2017 at 16:56\n\n# 308. ENIAC (simulator), 3025 bytes, A006060\n\nPseudocode:\n\nrepeat{\nM←input\nN←-M\nA←1\nB←253\nwhile(N<0){\nC←60\nC←C-A\nrepeat(194){\nC←C+B\n}\nA←B\nB←C\nN←N+1\n}\noutput←A\n}\n\n\nNo online simulator, execution result:", null, "", null, "Registers and constants:\n\nA: 1-2\nB: 3-4\nC: 5-6\nM: 7\nN: 8\n\ninput: const. A\n253: const. J\n60: const. K\n194: Master programmer decade limit 1B\n\n\nProgram signal flow and data flow:", null, "Full \"code\" on pastebin or in HTML comments in the markup of this answer, to prevent linkrot and a quite long answer to scroll through at the same time. This is fun!\n\nNext sequence\n\n• @Zacharý The link is in the post. I'll move it to the end of the post so it's easier to find. Jan 8, 2018 at 17:02\n\n# 8. Mathematica (10.1), 25 bytes, A000070\n\nTr@PartitionsP@Range@#+1&\n\n\nNext sequence\n\n• The perfect sequence to use Mathematica for. Jul 21, 2017 at 15:52\n• A000025 is an incredibly difficult one. You should add a byte to get A000026 instead. :P Jul 21, 2017 at 16:29\n\n# 206. Proton, 3275 bytes, A000109\n\n# This took me quite a while to write; if it's wrong, please tell me and I'll try to fix it without changing the byte count..\n\npermutations = x => {\nif len(x) == 0 return [ ]\nif len(x) == 1 return [x]\nresult = []\nfor index : range(len(x)) {\nfor permutation : permutations(x[to index] + x[index + 1 to]) {\nresult.append([x[index]] + permutation)\n}\n}\nreturn result\n}\n\ncycles = cycles[to]\nsize = cycles.pop()\nmatrix = [ * size for i : range(size)]\nfor cycle : cycles {\ni, j, k = cycle, cycle, cycle\nmatrix[i][j] = matrix[i][k] = matrix[j][i] = matrix[j][k] = matrix[k][i] = matrix[k][j] = 1\n}\nreturn matrix\n}\n\ntransform = a => [[a[j][i] for j : range(len(a[i]))] for i : range(len(a))]\n\nisomorphic = (a, b) => {\nreturn any(sorted(b) == sorted(transform(A)) for A : permutations(transform(a)))\n}\n\nintersection = (a, b) => [x for x : a if x in b]\n\nunion = (a, b) => [x for x : a if x not in b] + list(b)\n\nvalidate = graph => {\nrowsums = map(sum, matrix)\nr = 0\nfor s : rowsums if s + 1 < graph[-1] r++\nreturn 2 || r\n}\n\ngraphs = nodes => {\nif nodes <= 2 return []\nif nodes == 3 return [[(0, 1, 2), 3]]\nresult = []\nexisting = []\nfor graph : graphs(nodes - 1) {\ngraph = graph[to]\nnext = graph.pop()\nfor index : range(len(graph)) {\ng = graph[to]\ncycle = g.pop(index)\nn = g + [(cycle, cycle, next), (cycle, cycle, next), (cycle, cycle, next), next + 1]\nif N not in existing {\nexisting += [sorted(transform(a)) for a : permutations(transform(adjacency(n)))]\nresult.append(n)\n}\nfor secondary : index .. len(graph) - 1 {\ng = graph[to]\nc1 = g.pop(index)\nc2 = g.pop(secondary)\nq = union(c1, c2)\ng = [k for k : g if len(intersection(k, intersection(c1, c2))) <= 1]\nif len(intersection(c1, c2)) == 2 {\nfor i : range(3) {\nfor j : i + 1 .. 4 {\nif len(intersection(q[i, j], intersection(c1, c2))) <= 1 {\ng.append((q[i], q[j], next))\n}\n}\n}\n}\ng.append(next + 1)\nif N not in existing {\nexisting += [sorted(transform(a)) for a : permutations(transform(adjacency(g)))]\nresult.append(g)\n}\nfor tertiary : secondary .. len(graph) - 2 {\ng = graph[to]\nc1 = g.pop(index)\nc2 = g.pop(secondary)\nc3 = g.pop(tertiary)\nq = union(union(c1, c2), c3)\ng = [k for k : g if len(intersection(k, intersection(c1, c2))) <= 1 and len(intersection(k, intersection(c2, c3))) <= 1]\nif len(q) == 5 and len(intersection((q1 = intersection(c1, c2)), (q2 = intersection(c2, c3)))) <= 1 and len(q1) == 2 and len(q2) == 2 {\nfor i : range(4) {\nfor j : i + 1 .. 5 {\nif len(intersection(q[i, j], q1)) <= 1 and len(intersection(q[i, j], q2)) <= 1 {\ng.append((q[i], q[j], next))\n}\n}\n}\ng.append(next + 1)\nif N not in existing {\nexisting += [sorted(transform(a)) for a : permutations(transform(adjacency(g)))]\nresult.append(g)\n}\n}\n}\n}\n}\n}\nreturn [k for k : result if max(sum(k[to -1], tuple([]))) + 1 == k[-1] and validate(k)]\n}\n\nx = graphs(int(input()) + 3)\nprint(len(x))\n\n\nTry it online!\n\nNext Sequence\n\n• Wait, you actually did it? If you don't write a paper with these freaking programs and go talk to some professor, you're passing up on something cool :P Oct 10, 2017 at 2:54\n• @Stephen Currently bugfixing lol Oct 10, 2017 at 2:58\n• Is this the approach of splitting triangles, squares, and pentagons as per plantri? Looks like it might be, but some of the syntax is unfamiliar. Oct 10, 2017 at 6:50\n• @PeterTaylor Assuming I understand the approach you're describing, yes, it looks for triangles and places a vertex adjacent to all 3 vertices, or two adjacent cycles and deletes the common edge and places a vertex adjacent to all 4, same for 3 triangles on a pentagon. I think that's one you're describing. Oct 10, 2017 at 12:01\n• @ChristianSievers math.stackexchange.com/a/2463430/457091 Oct 10, 2017 at 15:06\n\n# 15. CJam, 85 bytes, A000060\n\n{ee\\f{\\~\\0a*@+f*}:.+}:C;2,qi:Q,2f+{_ee1>{~2*\\,:!X*X<a*~}%{CX<}*W=+}fX_0a*1$_C.- .+Q)= Online demo Next sequence ### Dissection OEIS gives G.f.: S(x)+S(x^2)-S(x)^2, where S(x) is the generating function for A000151. - Pab Ter, Oct 12 2005 where $$\\begin{eqnarray*}S(x) & = & x \\prod_{i \\ge 1} \\frac{1}{(1 - x^i)^{2s(i)}} \\\\ & = & x \\prod_{i \\ge 1} (1 + x^i + x^{2i} + \\ldots)^{2s(i)}\\end{eqnarray*}$$ { e# Define a block to convolve two sequences (multiply two polynomials) ee\\f{ e# Index one and use the other as an extra parameter for a map \\~\\0a* e# Stack manipulations; create a sequence of index 0s @+f* e# Shift the extra parameter poly and multiply by the coefficient } :.+ e# Fold pointwise add to sum the polys }:C; e# Assign the block to C (for \"convolve\") 2, e# Initial values of S: S(0) = 0, S(1) = 1 qi:Q e# Read integer and assign it to Q ,2f+{ e# For X = 2 to Q+1 _ee1> e# Duplicate accumulator of S, index, and ditch 0th term { e# Map (over notional variable i) ~2*\\ e# Double S(i) and flip i to top of stack ,:! e# Create an array with a 1 and i-1 0s X*X< e# Replicate X times and truncate to X values e# This gives g.f. 1/(1-x^i) to the first X terms a*~ e# Create 2S(i) copies of this polynomial }% {CX<}* e# Fold convolution and truncation to X terms W=+ e# Append the final coefficient, which is S(X), to the accumulator }fX _0a* e# Pad a copy to get S(X^2) 1$_C e# Convolve two copies to get S(X)^2\n.- e# Pointwise subtraction\n.+ e# Pointwise addition. Note the leading space because the parser thinks\ne# -. is an invalid number\nQ)= e# Take the term at index Q+1 (where the +1 adjusts for OEIS offset)\n\n• 1 minute and 33 seconds ahead of me... while I was typing the explanation Jul 21, 2017 at 19:05\n\n# 67. LOLCODE, 837 bytes, A000043\n\nHAI 1.2\nCAN HAS STDIO?\n\nI HAS A CONT ITZ 0\nI HAS A ITRZ ITZ 1\nI HAS A NUMBAH\nGIMMEH NUMBAH\nNUMBAH R SUM OF NUMBAH AN 1\n\nIM IN YR GF\nITRZ R SUM OF ITRZ AN 1\n\nI HAS A PROD ITZ 1\nIM IN YR MOM UPPIN YR ASS WILE DIFFRINT ITRZ AN SMALLR OF ITRZ AN ASS\nPROD R PRODUKT OF PROD AN 2\nIM OUTTA YR MOM\nPROD R DIFF OF PROD AN 1\n\nI HAS A PRAIME ITZ WIN\nI HAS A VAR ITZ 1\nIM IN YR MOM\nVAR R SUM OF VAR AN 1\nBOTH SAEM VAR AN PROD, O RLY?\nYA RLY, GTFO\nOIC\nBOTH SAEM 0 AN MOD OF PROD AN VAR, O RLY?\nYA RLY\nPRAIME R FAIL\nGTFO\nOIC\nIM OUTTA YR MOM\n\nBOTH SAEM PRAIME AN WIN, O RLY?\nYA RLY, CONT R SUM OF CONT AN 1\nOIC\n\nBOTH SAEM NUMBAH AN CONT, O RLY?\nYA RLY, GTFO\nOIC\nIM OUTTA YR GF\n\nVISIBLE ITRZ\nKTHXBYE\n\n\nMy capslock key is bound to escape, so I wrote this entire thing while holding shift ..\n\nTry it online!\n\nNext sequence\n\n• +1 for using PRAIME Jul 23, 2017 at 9:07\n• You're a programmer, you could have written this and then run it through a Python script that upper'd it -.- Jul 23, 2017 at 12:25\n• @StepHen Or simply gggUG in vim where I wrote it, but I am not that clever Jul 23, 2017 at 12:36\n\n# 10. Magma, 65 bytes, A000019\n\nf:=function(n);return NumberOfPrimitiveGroups(n+1);end function;\n\n\nTry it here\n\nlol builtin\n\nNext sequence\n\n• @ETHproductions :) no problem, thank the OEIS page though cuz it has the exact builtin there lol Jul 21, 2017 at 17:20\n• ;_; I solved A000064 and you changed it. Downvoted. Jul 21, 2017 at 17:26\n• My gosh, so many partition sequences Jul 21, 2017 at 17:27\n• I accidentally solved A007317 while trying to do this in Python (TIO) :P Jul 21, 2017 at 17:36\n• Re-upvoted! \\o/ Jul 21, 2017 at 17:38\n\n# 281. Java 5, 11628 bytes, A000947\n\n// package oeis_challenge;\n\nimport java.util.*;\nimport java.lang.*;\n\nclass Main {\n\n// static void assert(boolean cond) {\n// if (!cond)\n// throw new Error(\"Assertion failed!\");\n// }\n\n/* Use the formula a(n) = A000063(n + 2) - A000936(n).\nIt's unfair that I use the formula of \"number of free polyenoid with n\nnodes and symmetry point group C_{2v}\" (formula listed in A000063)\nwithout understanding why it's true...\n*/\n\nstatic int catalan(int x) {\nint ans = 1;\nfor (int i = 1; i <= x; ++i)\nans = ans * (2*x+1-i) / i;\nreturn ans / -~x;\n}\n\nstatic int A63(int n) {\nint ans = catalan(n/2 - 1);\nif (n%4 == 0) ans -= catalan(n/4 - 1);\nif (n%6 == 0) ans -= catalan(n/6 - 1);\nreturn ans;\n}\n\nstatic class Point implements Comparable<Point> {\nfinal int x, y;\nPoint(int _x, int _y) {\nx = _x; y = _y;\n}\n\n/// @return true if this is a point, false otherwise (this is a vector)\npublic boolean isPoint() {\nreturn (x + y) % 3 != 0;\n}\n\n/// Translate this point by a vector.\nassert(this.isPoint() && ! p.isPoint());\nreturn new Point(x + p.x, y + p.y);\n}\n\n/// Reflect this point along x-axis.\npublic Point reflectX() {\nreturn new Point(x - y, -y);\n}\n\n/// Rotate this point 60 degrees counter-clockwise.\npublic Point rot60() {\nreturn new Point(x - y, x);\n}\n\n@Override\npublic boolean equals(Object o) {\nif (!(o instanceof Point)) return false;\nPoint p = (Point) o;\nreturn x == p.x && y == p.y;\n}\n\n@Override\npublic int hashCode() {\nreturn 21521 * (3491 + x) + y;\n}\n\npublic String toString() {\n// return String.format(\"(%d, %d)\", x, y);\nreturn String.format(\"setxy %d %d\", x * 50 - y * 25, y * 40);\n}\n\npublic int compareTo(Point p) {\nint a = Integer.valueOf(x).compareTo(p.x);\nif (a != 0) return a;\nreturn Integer.valueOf(y).compareTo(p.y);\n}\n\n/// Helper class.\nstatic interface Predicate {\nabstract boolean test(Point p);\n}\n\nstatic abstract class UnaryFunction {\nabstract Point apply(Point p);\n}\n\n}\n\nstatic class Edge implements Comparable<Edge> {\nfinal Point a, b; // guarantee a < b\nEdge(Point x, Point y) {\nassert x != y;\nif (x.compareTo(y) > 0) { // y < x\na = y; b = x;\n} else {\na = x; b = y;\n}\n}\n\npublic int compareTo(Edge e) {\nint x = a.compareTo(e.a);\nif (x != 0) return x;\nreturn b.compareTo(e.b);\n}\n}\n\n/// A graph consists of multiple {@code Point}s.\nstatic class Graph {\nprivate HashMap<Point, Point> points;\n\npublic Graph() {\npoints = new HashMap<Point, Point>();\n}\n\npublic Graph(Graph g) {\npoints = new HashMap<Point, Point>(g.points);\n}\n\npublic void add(Point p, Point root) {\nassert(p.isPoint());\nassert(root.isPoint());\nassert(p == root || points.containsKey(root));\npoints.put(p, root);\n}\n\npublic Graph map(Point.UnaryFunction fn) {\nGraph result = new Graph();\nfor (Map.Entry<Point, Point> pq : points.entrySet()) {\nPoint p = pq.getKey(), q = pq.getValue();\nassert(p.isPoint()) : p;\nassert(q.isPoint()) : q;\np = fn.apply(p); assert(p.isPoint()) : p;\nq = fn.apply(q); assert(q.isPoint()) : q;\nresult.points.put(p, q);\n}\nreturn result;\n}\n\npublic Graph reflectX() {\nreturn this.map(new Point.UnaryFunction() {\npublic Point apply(Point p) {\nreturn p.reflectX();\n}\n});\n}\n\npublic Graph rot60() {\nreturn this.map(new Point.UnaryFunction() {\npublic Point apply(Point p) {\nreturn p.rot60();\n}\n});\n}\n\n@Override\npublic boolean equals(Object o) {\nif (o == null) return false;\nif (o.getClass() != getClass()) return false;\nGraph g = (Graph) o;\nreturn points.equals(g.points);\n}\n\n@Override\npublic int hashCode() {\nreturn points.hashCode();\n}\n\nGraph[] expand(Point.Predicate fn) {\nList<Graph> result = new ArrayList<Graph>();\n\nfor (Point p : points.keySet()) {\nint[] deltaX = new int[] { -1, 0, 1, 1, 0, -1};\nint[] deltaY = new int[] { 0, 1, 1, 0, -1, -1};\nfor (int i = 6; i --> 0;) {\nPoint p1 = new Point(p.x + deltaX[i], p.y + deltaY[i]);\nif (points.containsKey(p1) || !fn.test(p1)\n|| !p1.isPoint()) continue;\n\nGraph g = new Graph(this);\n}\n}\n\nreturn result.toArray(new Graph);\n}\n\npublic static Graph[] expand(Graph[] graphs, Point.Predicate fn) {\nSet<Graph> result = new HashSet<Graph>();\n\nfor (Graph g0 : graphs) {\nGraph[] g = g0.expand(fn);\nfor (Graph g1 : g) {\nif (result.contains(g1)) continue;\n}\n}\n\nreturn result.toArray(new Graph);\n}\n\nprivate Edge[] edges() {\nList<Edge> result = new ArrayList<Edge>();\nfor (Map.Entry<Point, Point> pq : points.entrySet()) {\nPoint p = pq.getKey(), q = pq.getValue();\nif (p.equals(q)) continue;\n}\nreturn result.toArray(new Edge);\n}\n\n/**\n* Check if two graphs are isomorphic... under translation.\n* @return {@code true} if {@code this} is isomorphic\n* under translation, {@code false} otherwise.\n*/\npublic boolean isomorphic(Graph g) {\nif (points.size() != g.points.size()) return false;\nEdge[] a = this.edges();\nEdge[] b = g.edges();\nArrays.sort(a);\nArrays.sort(b);\n\n// for (Edge e : b)\n// System.err.println(e.a + \" - \" + e.b);\n// System.err.println(\"------- >><< \");\n\nassert (a.length > 0);\nassert (a.length == b.length);\nint a_bx = a.a.x - b.a.x, a_by = a.a.y - b.a.y;\nfor (int i = 0; i < a.length; ++i) {\nif (a_bx != a[i].a.x - b[i].a.x ||\na_by != a[i].a.y - b[i].a.y) return false;\nif (a_bx != a[i].b.x - b[i].b.x ||\na_by != a[i].b.y - b[i].b.y) return false;\n}\n\nreturn true;\n}\n\n// C_{2v}.\npublic boolean correctSymmetry() {\n\nGraph[] graphs = new Graph;\ngraphs = this.reflectX();\nfor (int i = 1; i < 6; ++i) graphs[i] = graphs[i-1].rot60();\nassert(graphs.rot60().isomorphic(graphs));\nint count = 0;\nfor (Graph g : graphs) {\nif (this.isomorphic(g)) ++count;\n// if (count >= 2) {\n// return false;\n// }\n}\n// if (count > 1) System.err.format(\"too much: %d%n\", count);\nassert(count > 0);\nreturn count == 1; // which is, basically, true\n}\n\npublic void reflectSelfType2() {\nGraph g = this.map(new Point.UnaryFunction() {\npublic Point apply(Point p) {\nreturn new Point(p.y - p.x, p.y);\n}\n});\n\nPoint p = new Point(1, 1);\nassert (p.equals(points.get(p)));\n\npoints.putAll(g.points);\n\nassert (p.equals(points.get(p)));\nPoint q = new Point(0, 1);\nassert (q.equals(points.get(q)));\npoints.put(p, q);\n}\n\npublic void reflectSelfX() {\nGraph g = this.reflectX();\npoints.putAll(g.points); // duplicates doesn't matter\n}\n\n}\n\nstatic int A936(int n) {\n// if (true) return (new int[]{0, 0, 0, 1, 1, 2, 4, 4, 12, 10, 29, 27, 88, 76, 247, 217, 722, 638, 2134, 1901, 6413})[n];\n\n// some unreachable codes here for testing.\nint ans = 0;\n\nif (n % 2 == 0) { // reflection type 2. (through line 2x == y)\nGraph[] graphs = new Graph;\ngraphs = new Graph();\n\nPoint p = new Point(1, 1);\n\nfor (int i = n / 2 - 1; i --> 0;)\ngraphs = Graph.expand(graphs, new Point.Predicate() {\npublic boolean test(Point p) {\nreturn 2*p.x > p.y;\n}\n});\n\nint count = 0;\nfor (Graph g : graphs) {\ng.reflectSelfType2();\nif (g.correctSymmetry()) {\n++count;\n\n// for (Edge e : g.edges())\n// System.err.println(e.a + \" - \" + e.b);\n// System.err.println(\"------*\");\n\n}\n// else System.err.println(\"Failed\");\n}\n\nassert (count%2 == 0);\n\n// System.err.println(\"A936(\" + n + \") count = \" + count + \" -> \" + (count/2));\n\nans += count / 2;\n\n}\n\n// Reflection type 1. (reflectX)\n\nGraph[] graphs = new Graph;\ngraphs = new Graph();\n\nPoint p = new Point(1, 0);\n\nif (n % 2 == 0) graphs.add(new Point(2, 0), p);\n\nfor (int i = (n-1) / 2; i --> 0;)\ngraphs = Graph.expand(graphs, new Point.Predicate() {\npublic boolean test(Point p) {\nreturn p.y > 0;\n}\n});\n\nint count = 0;\nfor (Graph g : graphs) {\ng.reflectSelfX();\nif (g.correctSymmetry()) {\n++count;\n// for (Edge e : g.edges())\n\n// System.err.printf(\n\n// \"pu %s pd %s\\n\"\n// // \"%s - %s%n\"\n\n// , e.a, e.b);\n// System.err.println(\"-------/\");\n\n}\n// else System.err.println(\"Failed\");\n}\n\nif(n % 2 == 0) {\nassert(count % 2 == 0);\ncount /= 2;\n}\nans += count;\n\n// System.err.println(\"A936(\" + n + \") = \" + ans);\n\nreturn ans;\n}\n\npublic static void main(String[] args) {\n\n// Probably\nif (! \"1.5.0_22\".equals(System.getProperty(\"java.version\"))) {\nSystem.err.println(\"Warning: Java version is not 1.5.0_22\");\n}\n\n// A936(6);\n\nfor (int i = 0; i < 20; ++i)\nSystem.out.println(i + \" | \" + (A63(i+9) - A936(i+7)));\n//A936(i+2);\n}\n}\n\n\nTry it online!\n\nSide note:\n\n1. Tested locally with Java 5. (such that the warning is not printed - see TIO debug tab)\n2. Don't. Ever. Use. Java. 1. It's more verbose than Java in general.\n3. This may break the chain.\n4. The gap (7 days and 48 minutes) is no more than the gap created by this answer, which is 7 days and 1 hours 25 minutes later than the previous one.\n5. New record on large bytecount! Because I (mistakenly?) use spaces instead of tabs, the bytecount is larger than necessary. On my machine it's 9550 bytes. (at the time of writing this revision)\n6. Next sequence.\n7. The code, in its current form, only prints the first 20 terms of the sequence. However it's easy to change so that it will prints first 1000 items (by change the 20 in for (int i = 0; i < 20; ++i) to 1000)\n\nYay! This can compute more terms than listed on the OEIS page! (for the first time, for a challenge I need to use Java) unless OEIS has more terms somewhere...\n\n# Quick explanation\n\n### Explanation of the sequence description.\n\nThe sequence ask for the number of free nonplanar polyenoid with symmetry group C2v, where:\n\n• polyenoid: (mathematical model of polyene hydrocarbons) trees (or in degenerate case, single vertex) with can be embedded in hexagonal lattice.\n\nFor example, consider the trees\n\n O O O O (3)\n| \\ / \\\n| \\ / \\\nO --- O --- O O --- O O --- O\n| \\\n| (2) \\\n(1) O O\n\n\nThe first one cannot be embedded in the hexagonal lattice, while the second one can. That particular embedding is considered different from the third tree.\n\n• nonplanar polyenoid: embedding of trees such that there exists two overlapping vertices.\n\n(2) and (3) tree above are planar. This one, however, is nonplanar:\n\n O---O O\n/ \\\n/ \\\nO O\n\\ /\n\\ /\nO --- O\n\n\n(there are 7 vertices and 6 edges)\n\n• free polyenoid: Variants of one polyenoid, which can be obtained by rotation and reflection, is counted as one.", null, "• C2v group: The polyenoid are only counted if they have 2 perpendicular planes of reflection, and no more.\n\nFor example, the only polyenoid with 2 vertices\n\nO --- O\n\n\nhas 3 planes of reflection: The horizontal one -, the vertical one |, and the one parallel to the computer screen ■. That's too much.\n\nOn the other hand, this one\n\nO --- O\n\\\n\\\nO\n\n\nhas 2 planes of reflection: / and ■.\n\n### Explanation of the method\n\nAnd now, the approach on how to actually count the number.\n\nFirst, I take the formula a(n) = A000063(n + 2) - A000936(n) (listed on the OEIS page) for granted. I didn't read the explanation in the paper.\n\n[TODO fix this part]\n\nOf course, counting planar is easier than counting nonplanar. That's what the paper does, too.\n\nGeometrically planar polyenoids (without overlapping vertices) are enumerated by computer programming. Thus the numbers of geometrically nonplanar polyenoids become accessible.\n\nSo... the program counts the number of planar polyenoid, and subtract it from the total.\n\nBecause the tree is planar anyway, it obviously has the ■ plane of reflection. So the condition boils down to \"count number of tree with an axis of reflection in its 2D representation\".\n\nThe naive way would be generate all trees with n nodes, and check for correct symmetry. However, because we only want to find the number of trees with an axis of reflection, we can just generate all possible half-tree on one half, mirror them through the axis, and then check for correct symmetry. Moreover, because the polyenoids generated are (planar) trees, it must touch the axis of reflection exactly once.\n\nThe function public static Graph[] expand(Graph[] graphs, Point.Predicate fn) takes an array of graphs, each have n nodes, and output an array of graph, each has n+1 nodes, not equal to each other (under translation) - such that the added node must satisfy the predicate fn.\n\nConsider 2 possible axes of reflection: One that goes through an vertex and coincide with edges (x = 0), and one that is the perpendicular bisector of an edge (2x = y). We can take only one of them because the generated graphs are isomorphic, anyway.", null, "So, for the first axis x = 0, we start from the base graph consists of a single node (1, 0) (in case n is odd) or two nodes with an edge between (1, 0) - (2, 0) (in case n is even), and then expand nodes such that y > 0. That's done by the \"Reflection type 1\" section of the program, and then for each generated graph, reflect (mirror) itself through the X axis x = 0 (g.reflectSelfX()), and then check if it has the correct symmetry.\n\nHowever, note that if n is divisible by 2, by this way we counted each graph twice, because we also generate its mirror image by the axis 2x = y + 3.", null, "(note the 2 orange ones)\n\nSimilar for the axis 2x = y, if (and only if) n is even, we start from the point (1, 1), generate graphs such that 2*x > y, and reflect each of them over the 2x = y axis (g.reflectSelfType2()), connect (1, 0) with (1, 1), and check if they have correct symmetry. Remember to divide by 2, too.\n\n• Given that I was asleep when this (and the other one) were posted, I'll give you the benefit of the doubt and not accept an answer yet. Dec 24, 2017 at 6:21\n• @cairdcoinheringaahing You were online 3 minutes before the deadline... Dec 24, 2017 at 6:23\n• Uh oh, the next sequence can be hard-coded... (although it's infinite) if I read it correctly. The calculation itself is ---pretty--- very easy, so don't do it. Dec 24, 2017 at 12:39\n\n# 24. Julia 0.5, 33 bytes, A000023\n\nExpansion of e.g.f. exp(−2*x)/(1−x).\n\n!x=foldl((a,b)->a*b+(-2)^b,1,1:x)\n\n\nTry it online!\n\nNext sequence.\n\n# 156. C# (Mono), 2466 bytes, A000083\n\nNote: the score is 2439 bytes for the code and 27 for the compiler flag -reference:System.Numerics.\n\nusing Num = System.Numerics.BigInteger;\nnamespace PPCG\n{\nclass A000083\n{\nstatic void Main(string[] a)\n{\nint N = int.Parse(a) + 1;\n\nvar phi = new int[N + 1];\nfor (int i = 1; i <= N; i++)\nphi[i] = 1;\nfor (int p = 2; p <= N; p++)\n{\nif (phi[p] > 1) continue;\nfor (int i = p; i <= N; i += p)\nphi[i] *= p - 1;\nint pa = p * p;\nwhile (pa <= N)\n{\nfor (int i = pa; i <= N; i += pa)\nphi[i] *= p;\npa *= p;\n}\n}\n\nvar aik = new Num[N + 1, N + 1];\nvar a035350 = new Num[N + 1];\nvar a035349 = new Num[N + 1];\naik[0, 0] = aik[1, 1] = a035350 = a035350 = a035349 = a035349 = 1;\nfor (int n = 2; n <= N; n++)\n{\n// A000237 = EULER(A035350)\nNum nbn = 0;\nfor (int k = 1; k < n; k++)\nfor (int d = 1; d <= k; d++)\nif (k % d == 0) nbn += d * a035350[d] * aik[1, n - k];\naik[1, n] = nbn / (n - 1);\n\n// Powers of A000237 are used a lot\nfor (int k = 2; k <= N; k++)\nfor (int i = 0; i <= n; i++)\naik[k, n] += aik[k - 1, i] * aik[1, n - i];\n\n// A035350 = BIK(A000237)\nNum bn = 0;\nfor (int k = 1; k <= n; k++)\n{\nbn += aik[k, n];\nif (k % 2 == 1)\nfor (int i = n & 1; i <= n; i += 2)\nbn += aik[1, i] * aik[k / 2, (n - i) / 2];\nelse if (n % 2 == 0)\nbn += aik[k / 2, n / 2];\n}\na035350[n] = bn / 2;\n\n// A035349 = DIK(A000237)\nNum dn = 0;\nfor (int k = 1; k <= n; k++)\n{\n// DIK_k is Polyà enumeration with the cyclic group D_k\n// The cycle index for D_k has two parts: C_k and what Bower calls CPAL_k\n// C_k\nNum cikk = 0;\nfor (int d = 1; d <= k; d++)\nif (k % d == 0 && n % d == 0)\ncikk += phi[d] * aik[k / d, n / d];\ndn += cikk / k;\n\n// CPAL_k\nif (k % 2 == 1)\nfor (int i = 0; i <= n; i += 2)\ndn += aik[1, n - i] * aik[k / 2, i / 2];\nelse\n{\nNum cpalk = 0;\nfor (int i = 0; i <= n; i += 2)\ncpalk += aik[2, n - i] * aik[k / 2 - 1, i / 2];\nif (n % 2 == 0)\ncpalk += aik[k / 2, n / 2];\ndn += cpalk / 2;\n}\n}\na035349[n] = dn / 2;\n}\n\n// A000083 = A000237 + A035350 - A000237 * A035349\nvar a000083 = new Num[N + 1];\nfor (int i = 0; i <= N; i++)\n{\na000083[i] = aik[1, i] + a035349[i];\nfor (int j = 0; j <= i; j++) a000083[i] -= aik[1, j] * a035350[i - j];\n}\n\nSystem.Console.WriteLine(a000083[N - 1]);\n}\n}\n}\n\n\nOnline demo. This is a full program which takes input from the command line.\n\nNext sequence\n\n### Dissection\n\nI follow Bowen's comment in OEIS that the generating function A000083(x) = A000237(x) + A035349(x) - A000237(x) * A035350(x) where the component generating functions are related by transforms as\n\n• A000237(x) = x EULER(A035350(x))\n• A035350(x) = BIK(A000237(x))\n• A035349(x) = DIK(A000237(x))\n\nI use the definitions of BIK and DIK from https://oeis.org/transforms2.html but the formulae seem to have a number of typos. I corrected LPAL without much difficulty, and independently derived a formula for DIK based on applying Pólya enumeration to the cycle index of the dihedral group. Between #121 and #156 I'm learning a lot about Pólya enumeration. I have submitted some errata, which may prove useful to other people if these transforms come up again in the chain.\n\n# 3. JavaScript (ES6), 38 bytes, A000044\n\nf=n=>n<0?0:n<3?1:f(n-1)+f(n-2)-f(n-13)\n\n\nTry it online!\n\nNext sequence (should be an easy one :P)\n\n• \"(should be an easy one :P)\" it was Jul 21, 2017 at 15:24\n\n# 13. VB.NET (.NET 4.5), 1246 bytes, A000131\n\nPublic Class A000131\nPublic Shared Function Catalan(n As Long) As Long\nDim ans As Decimal = 1\nFor k As Integer = 2 To n\nans *= (n + k) / k\nNext\nReturn ans\nEnd Function\nShared Function Answer(n As Long) As Long\n\nn += 7\n\nDim a As Long = Catalan(n - 2)\n\nDim b As Long = Catalan(n / 2 - 1)\nIf n Mod 2 = 0 Then\nb = Catalan(n / 2 - 1)\nElse\nb = 0\nEnd If\n\nDim c As Long = Catalan(n \\ 2 - 1) ' integer division (floor)\n\nDim d As Long\nIf n Mod 3 = 0 Then\nd = Catalan(n / 3 - 1)\nElse\nd = 0\nEnd If\n\nDim e As Long = Catalan(n / 4 - 1)\nIf n Mod 4 = 0 Then\ne = Catalan(n / 4 - 1)\nElse\ne = 0\nEnd If\n\nDim f As Long = Catalan(n / 6 - 1)\nIf n Mod 6 = 0 Then\nf = Catalan(n / 6 - 1)\nElse\nf = 0\nEnd If\n\nReturn (\na -\n(n / 2) * b -\nn * c -\n(n / 3) * d +\nn * e +\nn * f\n) /\n(2 * n)\nEnd Function\nEnd Class\n\n\nA001246\n\nTry it Online!\n\n# 26. TI-BASIC, 274 bytes, A000183\n\n.5(1+√(5→θ\n\"int(.5+θ^X/√(5→Y₁\n\"2+Y₁(X-1)+Y₁(X+1→Y₂\n{0,0,0,1,2,20→L₁\nPrompt A\nLbl A\nIf A≤dim(L₁\nThen\nDisp L₁(A\nElse\n1+dim(L₁\n(~1)^Ans(4Ans+Y₂(Ans))+(Ans/(Ans-1))((Ans+1))-(2Ans/(Ans-2))((Ans-3)L₁(Ans-2)+(~1)^AnsY₂(Ans-2))+(Ans/(Ans-3))((Ans-5)L₁(Ans-3)+2(~1)^(Ans-1)Y₂(Ans-3))+(Ans/(Ans-4))(L₁(Ans-4)+(~1)^(Ans-1)Y₂(Ans-4→L₁(Ans\nGoto A\nEnd\n\n\nEvaluates the recursive formula found on the OEIS link.\n\nNext Sequence\n\n• Agh I knew when the site went down that it would be a mad rush when it came back up. Barely beat me. Jul 22, 2017 at 0:33\n• I didn't realize the site went down... Jul 22, 2017 at 0:33\n• twitter.com/Nick_Craver/status/888553194313449472 Jul 22, 2017 at 0:34\n\n# 39. Add++, 1 byte, A000004\n\nO\n\n\nTry it online!\n\nNext sequence\n\n# 91. Python 2 (PyPy), 1733 bytes, A000066\n\nimport itertools\n\ngirth = int(input()) + 3\n\nv = 4\n\nr = range\n\ndef p(v):\na = [0 for i in r(v)]\nk = int((v * 2) ** .5)\na[k - 1] = a[k - 2] = a[k - 3] = 1\nj = len(a) - 1\nfor i in r(1, 3):\na[j] = 1\nj -= i\nyield [x for x in a]\nwhile not all(a):\nfor index in r(len(a) - 1, -1, -1):\na[index] ^= 1\nif a[index]: break\nyield [x for x in a]\n\ndef wrap_(p, v):\nm = [[0 for j in r(v)] for i in r(v)]\nk = 0\nfor i in r(0, v - 1):\nfor j in r(i + 1, v):\nm[i][j] = m[j][i] = p[k]\nk += 1\nreturn m\n\ndef completes_cycle(edgelist):\nif not edgelist or not edgelist[1:]: return False\nstart = edgelist\nedge = edgelist\ne = [x for x in edgelist]\nedgelist = edgelist[1:]\nwhile edgelist:\n_edges = [_edge for _edge in edgelist if _edge in edge or _edge in edge]\nif _edges:\nedgelist.remove(_edges)\nif _edges in edge: _edges = (_edges, _edges)\nedge = _edges\nelse:\nreturn False\nflat = sum(e, ())\nfor i in flat:\nif flat.count(i) != 2: return False\nreturn edge in start\n\ndef powerset(a):\nreturn sum([list(itertools.combinations(a, t)) for t in r(len(a))], [])\n\nwhile True:\nps = (v * (v - 1)) // 2\nskip = False\nfor Q in p(ps):\nm = wrap_(Q, v)\noutput = [row + for row in m]\noutput.append([0 for i in r(len(m))])\nfor i in r(len(m)):\noutput[i][-1] = sum(m[i])\noutput[-1][i] = sum(row[i] for row in m)\nif all(map(lambda x: x == 3, map(sum, m))):\nedges = []\nfor i in r(v):\nfor j in r(i, v):\nif m[i][j]: edges.append((i, j))\nfor edgegroup in powerset(edges):\nif completes_cycle(list(edgegroup)):\nif len(edgegroup) == girth:\nprint(v)\nexit(0)\nelse:\nskip = True\nbreak\nif skip: break\nv += 1\n\n\nTry it online!\n\nI hope using Python 2 PyPy counts as another major version. If someone could get me a Python 0 interpreter, I could use that too, but I hope this is valid.\n\nThis starts at 1 vertex and works up, creating the adjacency matrix representation of every possible undirected graph with that many vertices. If it is trivalent, then it will look through the powerset of the edges, which will be sorted by length. If the first cycle it finds is too short, then it will move on. If the first cycle it finds matches the input (offset by 3) then it will output the correct vertex count and terminate.\n\nNext Sequence <-- have an easy one as a break from all this math nonsense :D\n\nEDIT: I added some optimizations to make it a bit faster (still can't compute the third term within TIO's 60 second limit though) without changing the bytecount.\n\n• ... and I was seriously thinking the chain would end with answer 90 Jul 31, 2017 at 0:04\n• @ppperry :) I like doing hard challenges because most people can't even make a solution so I don't have to worry about getting outgolfed :) (e.g. the carbon chain namer problem) Jul 31, 2017 at 0:25\n• Unless someone takes your solution and converts it into a terser language Jul 31, 2017 at 0:26\n• @ppperry that too o_O :P Jul 31, 2017 at 0:26\n• @HyperNeutrino Congrats on solving that! I was worried I had broken the chain, and was considering padding the byte count to point to a different sequence. Good job! Jul 31, 2017 at 22:27\n\n# 250. Coconut, 711 bytes, A000171\n\nfrom collections import Counter\nfrom math import gcd, factorial\n\ndef sparts(n, m=4):\nif n%2==1:\nreturn [ + p for p in sparts(n-1) ]\nelif n==0:\nreturn [ [] ]\nelif n<m:\nreturn []\nelse:\nreturn [ [m] + p for p in sparts(n-m,m) ] + sparts(n,m+4)\n\ndef ccSize(l) =\ncentSize = [ val**mult * factorial(mult)\nfor val, mult in Counter(l).items() ] |> reduce\\$(*)\nfactorial(sum(l)) // centSize\n\ndef edgeorbits(l) =\nsamecyc = sum(l) // 2\ndiffcyc = sum ([ gcd(l[i],l[j])\nfor i in range(len(l)) for j in range(i) ])\nsamecyc + diffcyc\n\ndef a(n) =\nsum ([ ccSize(l)*2**edgeorbits(l)\nfor l in sparts(n) ]) // factorial(n)\n\ndef f(n) = a(n+1)\n\n\nTry it online!\n\nNext sequence\n\nThis can easily compute more values than the 31 that OEIS has.\n\nOnce again we have a symmetric group acting on nodes, inducing an action on the set of possible edges and on graphs. It acts on the set of self-complementary graphs, but I don't see how to count how many of these are fixed by a given permutation to apply the lemma that is often named after Burnside. So instead I use the formula in the comment of the OEIS entry that says that the number of self-complementary graphs with n nodes is equal to the difference of the number of graphs with n nodes with an even number of edges and with an odd number of edges. The symmetric group acts on these sets of graphs as well. Instead of computing both numbers independently, we will consider the cases of an even number and an odd number of edges in parallel, which will turn out to be simpler and allow optimizations. We'll see that \"evaluate the graph polynomial at -1\" will lead to the same result.\n\nAs usual, we take the sum over the group elements in Burnside's lemma conjugacy class wise, and represent the conjugacy classes by partitions of n. For each conjugacy class, we want to know the difference between the numbers of graphs with an even and odd number of edges that is fixed by a permutation from that class.\n\nAssume we are given a concrete permutation g. The group generated by g acts on the set of possible edges and partitions them into orbits. A graph is fixed by g if for each orbit, it contains either all or none of its edges. Let's look at the orbits. Each edge in one orbit has its endpoints in the same two (possibly same) cycles of g.\n\nLet's first assume the endpoints are from the same cycle of length k>=2. If k is odd, then there are (k-1)/2 orbits of length k. If k is even, then there are k/2-1 orbits of length k and one of length k/2 (for example, if g contains the cycle (123456), then the there is an edge orbit of size 3 containing {1,4}). Note that we get all orbits of even size exactly when k is a multiple of four.\n\nNext consider the case that the endpoints are from different cycles of lengths k and l. Then the orbit has size lcm(k,l), and there are gcd(k,l) such orbits.\n\nIn order to combine all the possibilities, consider the product, for each edge orbit, of 1+x^r, where r is the size of the corresponding orbit. The coefficient of x^s of the product gives the number of graphs that are fixed by g and have s edges. We want the sum of the coefficients at even exponents minus the sum of them at odd coefficients, which we get by evaluating the polynomial at x=-1.\n\nIf we kept the polynomials and added them together, we'd get the graph polynomial. Instead, we don't even create these polynomials, but do the substitution immediately. For an edge orbit of even size, we get a factor of 2, for an odd size we get 0. (There is also a direct combinatorial argument that if there is an edge orbit of odd size then there are as many fixed graphs with an even number of edges as there are with an odd number of edges. And the factor 2 corresponds to the choice of including the edges of one orbit to the fixed graph or not).\n\nSo, by the considerations about edges with points from only one cycle, we get a difference of 0 whenever g contains a cycle of odd length greater than one, or a cycle of even length not divisible by four. We also get a difference of 0 whenever g contains at least two fixed points (cycles of length one).\n\nThis means we only need to sum over conjugacy classes with at most one fixed point and all other cycle lengths multiples of four. sparts computes the corresponding partitions of n. There are none unless n is of the form 4k or 4k+1, so in the other cases there are no self-complementary graphs, which can also easily seen by noting that in these cases the total number of possible edges is odd. But this observations alone doesn't lead to the optimization of only considering special partitions, of which there are only as much as there are partitions of k.\n\nccSize computes the size of a conjugacy class with given cycle lengths. edgeorbits computes the number of edge orbits of the action of the group generated by a permutation with the given cycle lengths, assuming they are of the special form. In the general case, samecyc, the number of edge orbits with edges that have both nodes from the same cycle, could not be calculated like this. (When I wrote the code, I didn't notice that it only depends on n in the relevant cases.)\n\na puts everything together, and f fixes the different indexing.\n\n• This looks like Python with a touch of JavaScript added :P Nov 12, 2017 at 19:07\n• @ChristianSievers I'm stupid. Anyway, don't forget that some PPCGers have OEIS accounts and could add more values to A000171 :) Nov 12, 2017 at 21:38\n• @Stephen I consider doing that Nov 12, 2017 at 22:11\n• Can you explain what algorithm are you using and/or what does the abbreviated function names (sparts, ccSize) means? Nov 13, 2017 at 14:17\n• @user202729 I finally added some explanation. Nov 15, 2017 at 18:18\n\n# 11. Pari/GP, 64 bytes, A000065\n\n{a(n) = if( n<0, 0, polcoeff ( 1 / eta(x + x*O(x^n) ), n) - 1)};\n\n\nTry it online!\n\nNext sequence\n\n• Is that valid input? Jul 21, 2017 at 17:35\n• Didya have to get 64 bytes? :P Jul 21, 2017 at 17:40\n• @totallyhuman yes: ;_; I solved A000064 and you changed it. Downvoted. Jul 21, 2017 at 17:41\n• @totallyhuman compromises lol. see chat Jul 21, 2017 at 17:41\n• Dang Jul 21, 2017 at 17:42\n\n# 318. Funciton, 1688 bytes, A000652\n\n╔═══╗ ┌─────────╖ ┌─┐ ┌───╖ ╔═══╗\n║ ╟──┤ str→int ╟──┤ └─┤ ↑ ╟──╢ 2 ║\n╚═══╝ ╘═════════╝ │ ╘═╤═╝ ╚═══╝\n┌─────────────────┘ │\n┌─┴┐ │\n│┌─┴─╖ ┌───┴───┐\n││ ♭ ║ ┌─┴─╖ ┌─┴─╖\n│╘═╤═╝┌───╖ ╔═══╗│ ♭ ║ │ ! ║\n│ └──┤ ↑ ╟────╢ 2 ║╘═╤═╝ ╘═╤═╝\n│ ╘═╤═╝ ╚═╤═╝ │ │\n│ ┌──┴─┐ │ └───┐ │\n│ ┌─┴─╖ │┌───╖ │ ┌───╖ │ │\n│ │ ! ║ └┤ ↑ ╟─┴──┤ ↑ ╟─┘ │\n│ ╘═╤═╝ ╘═╤═╝ ╘═╤═╝ │\n│ │ ┌───╖ │ ┌───╖│ │\n│ └─┤ × ╟─┘ ┌─┤ × ╟┘ │\n│ ╘═╤═╝ │ ╘═╤═╝ ┌───╖ │\n│ ╔═══╗ └─────┘ └───┤ + ╟──┘\n│ ║ 2 ╟┐ ╘═╤═╝\n│ ╚═╤═╝│ ┌───╖ │\n│ │ └──┐ ┌─┤ ÷ ╟───┘\n│ └──┐┌─┴─╖ │ ╘═╤═╝┌─────────╖\n│ ┌───╖ ││ ↑ ╟─┘ └──┤ int→str ╟─\n└─┤ × ╟─┘╘═╤═╝ ╘═════════╝\n╘═╤═╝ │\n└──────┘\n\n\nNext Sequence\n\nCalculates the formula from the OEIS page. I'm sure there's a more compact way to do this, without multiple 2 constants, but this took me long enough.\n\nTry it online!\n\n# 121. Pip, 525 bytes, A000022\n\nn:(a+1)//2\nt:[RL(3*a+3)PE1]\nFh,n{\nm:(RL(3*a+3))\nFi,(a+1){\nFj,(a+1){\nFk,(a+1)m@(i+j+k)+:(t@h@i)*(t@h@j)*(t@h@k)\nm@(i+2*j)+:3*(t@h@i)*(t@h@j)\n}\nm@(3*i)+:2*(t@h@i)\n}\nt:(tAE(m//6PE1))\n}\nk:t@n\no:0\nFh,aFi,aFj,aI(h+i+j<a)o+:(k@h)*(k@i)*(k@j)*k@(a-1-h-i-j)\nFh,((a+1)//2){\nFi,aI(2*h+i<a){o+:6*(k@h)*(k@i)*(k@(a-1-2*h-i))}\nI(a%2=1)o+:3*(k@h)*(k@((a-1-2*h)//2))\n}\nFh,((a+2)//3)o+:8*(k@h)*(k@(a-1-3*h))\nI(a%4=1)o+:6*k@(a//4)\no//:24\nIa(o+:t@n@a)\nFh,nFj,(a+1)o-:(t@(h+1)@j-t@h@j)*(t@(h+1)@(a-j))\no\n\n\nOnline demo\n\nNext sequence\n\nFun fact: when the challenge was first posted, I drew up a list of small nasty sequence numbers that I wanted to aim for with CJam, and A000022 was at the top of the list.\n\nThis implements the generating function described in E. M. Rains and N. J. A. Sloane, On Cayley's Enumeration of Alkanes (or 4-Valent Trees), Journal of Integer Sequences, Vol. 2 (1999), taking the sum for Ck to as many terms as a necessary for the nth coefficient to be fixed and then telescoping three quarters of the sum. In particular, telescoping the first half means that the cycle index of S4 only has to be applied to one of the Th rather than to all of them.\n\nThe code breaks down as\n\n; Calculate the relevant T_h\nt:[RL(3*a+3)PE1]\nFh,n{\nm:(RL(3*a+3))\nFi,(a+1){\nFj,(a+1){\nFk,(a+1)m@(i+j+k)+:(t@h@i)*(t@h@j)*(t@h@k)\nm@(i+2*j)+:3*(t@h@i)*(t@h@j)\n}\nm@(3*i)+:2*(t@h@i)\n}\nt:(tAE(m//6PE1))\n}\n\n; Calculate the cycle index of S_4 applied to the last one\nk:t@n\no:0\nFh,aFi,aFj,aI(h+i+j<a)o+:(k@h)*(k@i)*(k@j)*k@(a-1-h-i-j)\nFh,((a+1)//2){\nFi,aI(2*h+i<a){o+:6*(k@h)*(k@i)*(k@(a-1-2*h-i))}\nI(a%2=1)o+:3*(k@h)*(k@((a-1-2*h)//2))\n}\nFh,((a+2)//3)o+:8*(k@h)*(k@(a-1-3*h))\nI(a%4=1)o+:6*k@(a//4)\no//:24\n\n; Handle the remaining convolution,\n; pulling out the special case which involves T_{-2}\nIa(o+:t@n@a)\nFh,nFj,(a+1)o-:(t@(h+1)@j-t@h@j)*(t@(h+1)@(a-j))\n\n\nNote that this is my first ever Pip program, so is probably not very idiomatic.\n\n• Comments are not for extended discussion; this conversation has been moved to chat. Aug 31, 2017 at 12:28\n\n# 6. R, 71 bytes, A000072\n\nfunction(n)length(unique((t<-outer(r<-(0:2^n)^2,r*4,\"+\"))[t<=2^n&t>0]))\n\n\nTry it online!\n\nNext sequence\n\n• For the love of God, I didn't check the next sequence before I posted this answer. Jul 21, 2017 at 15:38\n• Isn't an easy next sequence a strategic advantage? Jul 21, 2017 at 15:39\n• @BlackCap They can't answer twice in a row or less than 1 hour after they last answered. Jul 21, 2017 at 15:41\n• @EriktheOutgolfer the answer before the last posted (the one who didn't break the chain) will win Jul 21, 2017 at 15:41\n• @BlackCap at this point that isn't going to happen Jul 21, 2017 at 15:42\n\n# 14. Python 2, 60 bytes, A001246\n\nf=lambda x:x<1or x*f(x-1)\nc=lambda n:(f(2*n)/f(n)/f(n+1))**2\n\n\nTry it online!\n\nNext sequence.\n\n• Wow you ninja'd by 2 seconds Jul 21, 2017 at 18:13\n\n# 34. Prolog (SWI), 168 bytes, A000073\n\ntribonacci(0,0).\ntribonacci(1,0).\ntribonacci(2,1).\ntribonacci(A,B):-\nC is A-1,\nD is A-2,\nE is A-3,\ntribonacci(C,F),\ntribonacci(D,G),\ntribonacci(E,H),\nB is F+G+H.\n\n\nTry it online!\n\nNext sequence\n\n# 49. SageMath, 74 bytes, A000003\n\nlambda n: len(BinaryQF_reduced_representatives(-4*n, primitive_only=True))\n\n\nTry it online!\n\nNext sequence\n\n• And I just spent an hour trying to work this sequence out using JavaScript... oh well, I'll just have to move on to the next one... Jul 22, 2017 at 15:20" ]
[ null, "https://i.stack.imgur.com/v2DNh.png", null, "https://i.stack.imgur.com/wJBcY.png", null, "https://i.stack.imgur.com/rtNMc.png", null, "https://i.stack.imgur.com/Jr65M.png", null, "https://i.stack.imgur.com/1USCZm.png", null, "https://i.stack.imgur.com/SGf7Um.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6062263,"math_prob":0.98059654,"size":10373,"snap":"2023-40-2023-50","text_gpt3_token_len":2830,"char_repetition_ratio":0.11167904,"word_repetition_ratio":0.0021413276,"special_character_ratio":0.29326135,"punctuation_ratio":0.2060164,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99742264,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12],"im_url_duplicate_count":[null,7,null,7,null,7,null,7,null,7,null,7,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-10-03T11:55:28Z\",\"WARC-Record-ID\":\"<urn:uuid:1de183e8-dfd4-4756-a4d2-9174a0e12c2b>\",\"Content-Length\":\"655414\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b2f55606-4245-4a24-887f-0a407b0c9a3e>\",\"WARC-Concurrent-To\":\"<urn:uuid:e6de97e3-a888-42b7-81b9-1b0a272a6d59>\",\"WARC-IP-Address\":\"104.18.11.86\",\"WARC-Target-URI\":\"https://codegolf.stackexchange.com/questions/133754/one-oeis-after-another/152800\",\"WARC-Payload-Digest\":\"sha1:D5APDILFXA5FGQRUHDSWJRDF5XMZRZM3\",\"WARC-Block-Digest\":\"sha1:REVHUX4QMPRERGIRBUJKNA4IDKON2GRH\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233511075.63_warc_CC-MAIN-20231003092549-20231003122549-00181.warc.gz\"}"}
https://groupprops.subwiki.org/wiki/Minimal_splitting_field_need_not_be_unique
[ "# Minimal splitting field need not be unique\n\n## Statement\n\n### In characteristic zero\n\nLet", null, "$G$ be a finite group. It is possible for", null, "$G$ to have two distinct non-isomorphic minimal splitting fields", null, "$K$ and", null, "$L$ in characteristic zero. In other words, both", null, "$K$ and", null, "$L$ are splitting fields, no proper subfield of either is a splitting field, and", null, "$K$ is not isomorphic to", null, "$L$.\n\n### In prime characteristic\n\nNot sure whether there are examples here.\n\n## Proof\n\n### Example of the quaternion group\n\nThe quaternion group of order eight has many different minimal splitting fields in characteristic zero. Specifically the following are true:\n\n•", null, "$\\mathbb{Q}$ is not a splitting field.\n• Any field of the form", null, "$\\mathbb{Q}(\\alpha,\\beta)$ where", null, "$\\alpha^2 + \\beta^2 = -1$ is a splitting field.\n\nThus, any field of the form", null, "$\\mathbb{Q}(\\sqrt{-m^2 - 1}) = \\mathbb{Q}[t]/(t^2 + m^2 + 1)$, where", null, "$m \\in \\mathbb{Q}$, is a quadratic extension of", null, "$\\mathbb{Q}$ satisfying the condition for being a splitting field, and hence is a minimal splitting field. There are multiple non-isomorphic fields of this type, such as", null, "$\\mathbb{Q}(i) = \\mathbb{Q}[t]/(t^2 + 1)$ and", null, "$\\mathbb{Q}(\\sqrt{-2}) = \\mathbb{Q}[t]/(t^2 + 2)$." ]
[ null, "https://groupprops.subwiki.org/w/images/math/d/f/c/dfcf28d0734569a6a693bc8194de62bf.png ", null, "https://groupprops.subwiki.org/w/images/math/d/f/c/dfcf28d0734569a6a693bc8194de62bf.png ", null, "https://groupprops.subwiki.org/w/images/math/a/5/f/a5f3c6a11b03839d46af9fb43c97c188.png ", null, "https://groupprops.subwiki.org/w/images/math/d/2/0/d20caec3b48a1eef164cb4ca81ba2587.png ", null, "https://groupprops.subwiki.org/w/images/math/a/5/f/a5f3c6a11b03839d46af9fb43c97c188.png ", null, "https://groupprops.subwiki.org/w/images/math/d/2/0/d20caec3b48a1eef164cb4ca81ba2587.png ", null, "https://groupprops.subwiki.org/w/images/math/a/5/f/a5f3c6a11b03839d46af9fb43c97c188.png ", null, "https://groupprops.subwiki.org/w/images/math/d/2/0/d20caec3b48a1eef164cb4ca81ba2587.png ", null, "https://groupprops.subwiki.org/w/images/math/d/4/5/d45a4aa156a8ac07ab80e7d9cf5fa79f.png ", null, "https://groupprops.subwiki.org/w/images/math/a/2/9/a292f6614e2b102f6a06142b95c833d1.png ", null, "https://groupprops.subwiki.org/w/images/math/0/2/3/023af01b243a17ffa191d06673b46722.png ", null, "https://groupprops.subwiki.org/w/images/math/c/6/e/c6e197d4adef8e7fee9a18a4f9ba7a09.png ", null, "https://groupprops.subwiki.org/w/images/math/b/d/c/bdc13cfd5747267a53eb5837f8cf92ab.png ", null, "https://groupprops.subwiki.org/w/images/math/d/4/5/d45a4aa156a8ac07ab80e7d9cf5fa79f.png ", null, "https://groupprops.subwiki.org/w/images/math/3/9/2/3926b27c8ca6938bb61c5b75f728c58f.png ", null, "https://groupprops.subwiki.org/w/images/math/a/7/4/a74e9acb254a4ce8d83d3b2a52cd089f.png ", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.89056444,"math_prob":0.9999032,"size":1367,"snap":"2022-05-2022-21","text_gpt3_token_len":263,"char_repetition_ratio":0.1995598,"word_repetition_ratio":0.037558686,"special_character_ratio":0.17922458,"punctuation_ratio":0.09130435,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99998534,"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],"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,4,null,null,null,null,null,null,null,7,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-26T15:10:19Z\",\"WARC-Record-ID\":\"<urn:uuid:364d0ae8-d562-4b7f-81ce-49a32e97c6e2>\",\"Content-Length\":\"27003\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:bed64b93-bc7b-4775-9a34-9c1230e4f5b1>\",\"WARC-Concurrent-To\":\"<urn:uuid:9ac21cf4-5273-4668-a25b-ae251a5f0ca9>\",\"WARC-IP-Address\":\"96.126.114.7\",\"WARC-Target-URI\":\"https://groupprops.subwiki.org/wiki/Minimal_splitting_field_need_not_be_unique\",\"WARC-Payload-Digest\":\"sha1:XTBZ7FUXRRF33AX65F443FMEWA6NKGQT\",\"WARC-Block-Digest\":\"sha1:HOU7KWMMUP3H7UWR2BK35HKKAVLID25C\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662606992.69_warc_CC-MAIN-20220526131456-20220526161456-00315.warc.gz\"}"}
https://www.learncram.com/dav-solutions/dav-class-8-maths-chapter-14-worksheet-3/
[ "# DAV Class 8 Maths Chapter 14 Worksheet 3 Solutions\n\nThe DAV Maths Book Class 8 Solutions Pdf and DAV Class 8 Maths Chapter 14 Worksheet 3 Solutions of Mensuration offer comprehensive answers to textbook questions.\n\n## DAV Class 8 Maths Ch 14 Worksheet 3 Solutions\n\nQuestion 1.\nFind the length of the side of a cube whose total surface area measures 600 cm2.\nSolution:\nLet the length of the cube be l cm\n∴ The total surface area of the cube = 6l2\n⇒ 600 = 6l2\n⇒ l2 = 100\n⇒ l = 10 cm\nHence, the length of the side of the cube is 10 cm.", null, "Question 2.\nThe length, breadth, and height of a room are 5 m, 4 m, and 3 m respectively. Find the cost of whitewashing the inner of the room and ceiling at the rate of ₹ 50 per square meter.\nSolution:\nHere l = 5 m, 6 = 4 m and h = 3 m\n∴ Area of the walls and the ceiling to be whitewashed = area of the 4 walls + area of the ceiling\n= 2[bh + lh] + lb\n= 2[4 × 3 + 5 × 3] + 5 × 4\n= 2[12 + 15] + 20\n= 54 + 20\n= 74 m2\nThe cost of whitewashing = 74 × 50 = ₹ 3700.\n\nQuestion 3.\nFind the total surface area of a closed cardboard box of length 0.5 m, breadth 25 cm, and height 15 cm.\nSolution:\nHere l = 0.5 m = 50 cm, b = 25 cm and h = 15 cm\n∴ T.S.A. = 2[lb + bh + lh]\n= 2[50 × 25 + 25 × 15 + 50 × 15]\n= 2[1250 + 375 + 750]\n= 2\n= 4750 cm2\nHence, T.S.A. = 4750 cm2.", null, "Question 4.\nYou are given two boxes. Which box will need more paper to cover the whole box?", null, "", null, "Solution:\n(i) Total surface of area of the cuboid = 2[lb + bh + lh]\n= 2[50 × 40 + 40 × 30 + 50 × 30]\n= 2[2000 + 1200 + 1500]\n= 2\n= 9400 cm2\n\n(ii) Total surface area of the cube = 6l2\n= 6 × (40)2\n= 6 × 40 × 40\n= 9600 cm2\nHence, (ii) box will need more paper to cover.\n\nQuestion 5.\nThe dimensions of an oil tin are 26 cm × 26 cm × 45 cm. Find the area of tin sheet required to make 20 such tins.\nSolution:\nHere l = 26 cm, b = 26 cm and h = 45 cm\n∴ T.S.A. of the tin sheet = 2[lb + bh + lh]\n= 2126 × 26 + 26 × 45 + 26 × 45]\n= 2[676 + 1170 + 1170]\n= 2\n= 6032 cm2\n∴ The area of the tin sheet to make 20 such tins = 6032 × 20 = 120640 cm2 = 12.064 m2.\n\nQuestion 6.\nA swimming pool is 20 m in length, 15 m in breadth, and 4 m in depth. Find the cost of cementing its floor and walls at ₹ 35 per m2.\nSolution:\nArea of the walls and floor = 2 [lh + bh] + lb\n= 2[20 × 4 + 15 × 4] + 20 × 15\n= 2[80 + 60] + 300\n= 2 × 140 + 300\n= 280 + 300\n= 580 m2\n∴ The cost of cementing = 580 × 35 = ₹ 20300.", null, "Question 7.\nA cubical box with a lid has a length of 30 cm. Find the cost of painting the inside and outside of the box at ₹ 5.50 of per m2.\nSolution:\nThe total surface area of the cubical box outside and inner side = 2 × 6l2\n= 2 × 6 × 30 × 30\n= 10800 cm2\n= 1.08 m2\n∴ The cost of painting the box on both sides = ₹ 5.50 × 1.08 = ₹ 5.94.\n\nQuestion 8.\nTwo cubes of side 4 cm are fixed together. Find the total surface area of the new solid formed.\nSolution:\nWhen the two cubes are fixed together the new solid formed will be a cuboid whose length = 4 + 4 = 8 cm" ]
[ null, "https://i1.wp.com/www.learncram.com/wp-content/uploads/2023/07/Learn-Cram.jpg", null, "https://i1.wp.com/www.learncram.com/wp-content/uploads/2023/07/Learn-Cram.jpg", null, "https://i2.wp.com/www.learncram.com/wp-content/uploads/2023/08/DAV-Class-8-Maths-Chapter-14-Worksheet-3-Solutions-Q4.png", null, "https://i0.wp.com/www.learncram.com/wp-content/uploads/2023/08/DAV-Class-8-Maths-Chapter-14-Worksheet-3-Solutions-Q4.1.png", null, "https://i1.wp.com/www.learncram.com/wp-content/uploads/2023/07/Learn-Cram.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7530399,"math_prob":0.9996444,"size":3014,"snap":"2023-40-2023-50","text_gpt3_token_len":1171,"char_repetition_ratio":0.14385381,"word_repetition_ratio":0.06901218,"special_character_ratio":0.45686796,"punctuation_ratio":0.10419682,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9998221,"pos_list":[0,1,2,3,4,5,6,7,8,9,10],"im_url_duplicate_count":[null,null,null,null,null,1,null,1,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-26T18:48:19Z\",\"WARC-Record-ID\":\"<urn:uuid:7faa0474-ad3f-4695-9508-57fbed0cfbe9>\",\"Content-Length\":\"46111\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d4e49fee-ebdc-47c5-9df3-6e5d851e4105>\",\"WARC-Concurrent-To\":\"<urn:uuid:4e22215e-aa73-4af1-a100-b504298c8aac>\",\"WARC-IP-Address\":\"68.183.85.35\",\"WARC-Target-URI\":\"https://www.learncram.com/dav-solutions/dav-class-8-maths-chapter-14-worksheet-3/\",\"WARC-Payload-Digest\":\"sha1:7LBPPMRLNHTC2LF7CN4Y5HXMAKSAZ3TZ\",\"WARC-Block-Digest\":\"sha1:4HOEUNSHRZHUTS7AWR6BKOPZCWRPKMSW\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233510219.5_warc_CC-MAIN-20230926175325-20230926205325-00244.warc.gz\"}"}
https://www.numbersaplenty.com/524863
[ "Search a number\nBaseRepresentation\nbin10000000001000111111\n3222122222101\n42000020333\n5113243423\n615125531\n74314133\noct2001077\n9878871\n10524863\n11329379\n122138a7\n13154b91\n14d93c3\nhex8023f\n\n524863 has 2 divisors, whose sum is σ = 524864. Its totient is φ = 524862.\n\nThe previous prime is 524857. The next prime is 524869. The reversal of 524863 is 368425.\n\nIt is a balanced prime because it is at equal distance from previous prime (524857) and next prime (524869).\n\nIt is a cyclic number.\n\nIt is not a de Polignac number, because 524863 - 25 = 524831 is a prime.\n\nIt is a congruent number.\n\nIt is not a weakly prime, because it can be changed into another prime (524869) by changing a digit.\n\nIt is a good prime.\n\nIt is a polite number, since it can be written as a sum of consecutive naturals, namely, 262431 + 262432.\n\nIt is an arithmetic number, because the mean of its divisors is an integer number (262432).\n\n2524863 is an apocalyptic number.\n\n524863 is a deficient number, since it is larger than the sum of its proper divisors (1).\n\n524863 is an equidigital number, since it uses as much as digits as its factorization.\n\n524863 is an evil number, because the sum of its binary digits is even.\n\nThe product of its digits is 5760, while the sum is 28.\n\nThe square root of 524863 is about 724.4742921595. The cubic root of 524863 is about 80.6644145566.\n\nThe spelling of 524863 in words is \"five hundred twenty-four thousand, eight hundred sixty-three\"." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8755578,"math_prob":0.99538887,"size":1574,"snap":"2023-14-2023-23","text_gpt3_token_len":498,"char_repetition_ratio":0.16242038,"word_repetition_ratio":0.014545455,"special_character_ratio":0.42947903,"punctuation_ratio":0.123809524,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99259835,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-06-09T07:12:46Z\",\"WARC-Record-ID\":\"<urn:uuid:db15a9b7-c977-4950-aa25-e6bda4bdcd4a>\",\"Content-Length\":\"7861\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2179faf2-bf13-4f17-84c9-674a8ac2c759>\",\"WARC-Concurrent-To\":\"<urn:uuid:350ee5de-adfb-42d0-8b31-cb3bb98492bf>\",\"WARC-IP-Address\":\"89.46.108.74\",\"WARC-Target-URI\":\"https://www.numbersaplenty.com/524863\",\"WARC-Payload-Digest\":\"sha1:XIUKBAHK64ABOEQLZHGGJEB5PT7M5WBX\",\"WARC-Block-Digest\":\"sha1:WVWPR3ZZ5RZC6KUKAZABLSNNIPACOOEZ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224655446.86_warc_CC-MAIN-20230609064417-20230609094417-00274.warc.gz\"}"}
http://safecurves.cr.yp.to/proof/81371.html
[ "Primality proof for n = 81371:\n\nTake b = 2.\n\nb^(n-1) mod n = 1.\n\n103 is prime.\nb^((n-1)/103)-1 mod n = 27717, which is a unit, inverse 320.\n\n79 is prime.\nb^((n-1)/79)-1 mod n = 76290, which is a unit, inverse 4340.\n\n(79 * 103) divides n-1.\n\n(79 * 103)^2 > n.\n\nn is prime by Pocklington's theorem." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.72311294,"math_prob":0.9997826,"size":289,"snap":"2019-13-2019-22","text_gpt3_token_len":120,"char_repetition_ratio":0.14385965,"word_repetition_ratio":0.036363635,"special_character_ratio":0.5467128,"punctuation_ratio":0.18181819,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9993274,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-03-19T10:54:15Z\",\"WARC-Record-ID\":\"<urn:uuid:492fcf99-098e-4bd6-ab71-ac941b669154>\",\"Content-Length\":\"546\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a12b8369-7168-4d6e-9a8e-bc1a9a556e9f>\",\"WARC-Concurrent-To\":\"<urn:uuid:a6a9f033-235e-4db1-9d59-5355745dd92a>\",\"WARC-IP-Address\":\"131.193.32.108\",\"WARC-Target-URI\":\"http://safecurves.cr.yp.to/proof/81371.html\",\"WARC-Payload-Digest\":\"sha1:APPLE6KAOYSQZBNSBLMH76D4OK53XGHU\",\"WARC-Block-Digest\":\"sha1:S3A7JQ2BEU2TRXAPXIEDT4IUEG2CQ7E6\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-13/CC-MAIN-2019-13_segments_1552912201953.19_warc_CC-MAIN-20190319093341-20190319115341-00176.warc.gz\"}"}
https://pkg.go.dev/github.com/savalin/gonum@v0.0.1/graph/network
[ "Version: v0.0.1 Latest Latest", null, "Go to latest\nPublished: Aug 16, 2019 License: BSD-3-Clause", null, "Documentation ¶\n\nOverview ¶\n\nPackage network provides network analysis functions.\n\nConstants ¶\n\nThis section is empty.\n\nVariables ¶\n\nThis section is empty.\n\nFunctions ¶\n\nfunc Betweenness ¶\n\nfunc Betweenness(g graph.Graph) map[int64]float64\n\nBetweenness returns the non-zero betweenness centrality for nodes in the unweighted graph g.\n\nC_B(v) = \\sum_{s ≠ v ≠ t ∈ V} (\\sigma_{st}(v) / \\sigma_{st})\n\nwhere \\sigma_{st} and \\sigma_{st}(v) are the number of shortest paths from s to t, and the subset of those paths containing v respectively.\n\nfunc BetweennessWeighted ¶\n\nfunc BetweennessWeighted(g graph.Weighted, p path.AllShortest) map[int64]float64\n\nBetweennessWeighted returns the non-zero betweenness centrality for nodes in the weighted graph g used to construct the given shortest paths.\n\nC_B(v) = \\sum_{s ≠ v ≠ t ∈ V} (\\sigma_{st}(v) / \\sigma_{st})\n\nwhere \\sigma_{st} and \\sigma_{st}(v) are the number of shortest paths from s to t, and the subset of those paths containing v respectively.\n\nfunc Closeness ¶\n\nfunc Closeness(g graph.Graph, p path.AllShortest) map[int64]float64\n\nCloseness returns the closeness centrality for nodes in the graph g used to construct the given shortest paths.\n\nC(v) = 1 / \\sum_u d(u,v)\n\nFor directed graphs the incoming paths are used. Infinite distances are not considered.\n\nfunc Diffuse ¶\n\nfunc Diffuse(dst, h map[int64]float64, by Laplacian, t float64) map[int64]float64\n\nDiffuse performs a heat diffusion across nodes of the undirected graph described by the given Laplacian using the initial heat distribution, h, according to the Laplacian with a diffusion time of t. The resulting heat distribution is returned, written into the map dst and returned,\n\nd = exp(-Lt)×h\n\nwhere L is the graph Laplacian. Indexing into h and dst is defined by the Laplacian Index field. If dst is nil, a new map is created.\n\nNodes without corresponding entries in h are given an initial heat of zero, and entries in h without a corresponding node in the original graph are not altered when written to dst.\n\nfunc DiffuseToEquilibrium ¶\n\nfunc DiffuseToEquilibrium(dst, h map[int64]float64, by Laplacian, tol float64, iters int) (eq map[int64]float64, ok bool)\n\nDiffuseToEquilibrium performs a heat diffusion across nodes of the graph described by the given Laplacian using the initial heat distribution, h, according to the Laplacian until the update function\n\nh_{n+1} = h_n - L×h_n\n\nresults in a 2-norm update difference within tol, or iters updates have been made. The resulting heat distribution is returned as eq, written into the map dst, and a boolean indicating whether the equilibrium converged to within tol. Indexing into h and dst is defined by the Laplacian Index field. If dst is nil, a new map is created.\n\nNodes without corresponding entries in h are given an initial heat of zero, and entries in h without a corresponding node in the original graph are not altered when written to dst.\n\nfunc EdgeBetweenness ¶\n\nfunc EdgeBetweenness(g graph.Graph) map[int64]float64\n\nEdgeBetweenness returns the non-zero betweenness centrality for edges in the unweighted graph g. For an edge e the centrality C_B is computed as\n\nC_B(e) = \\sum_{s ≠ t ∈ V} (\\sigma_{st}(e) / \\sigma_{st}),\n\nwhere \\sigma_{st} and \\sigma_{st}(e) are the number of shortest paths from s to t, and the subset of those paths containing e, respectively.\n\nIf g is undirected, edges are retained such that u.ID < v.ID where u and v are the nodes of e.\n\nfunc EdgeBetweennessWeighted ¶\n\nfunc EdgeBetweennessWeighted(g graph.Weighted, p path.AllShortest) map[int64]float64\n\nEdgeBetweennessWeighted returns the non-zero betweenness centrality for edges in the weighted graph g. For an edge e the centrality C_B is computed as\n\nC_B(e) = \\sum_{s ≠ t ∈ V} (\\sigma_{st}(e) / \\sigma_{st}),\n\nwhere \\sigma_{st} and \\sigma_{st}(e) are the number of shortest paths from s to t, and the subset of those paths containing e, respectively.\n\nIf g is undirected, edges are retained such that u.ID < v.ID where u and v are the nodes of e.\n\nfunc Farness ¶\n\nfunc Farness(g graph.Graph, p path.AllShortest) map[int64]float64\n\nFarness returns the farness for nodes in the graph g used to construct the given shortest paths.\n\nF(v) = \\sum_u d(u,v)\n\nFor directed graphs the incoming paths are used. Infinite distances are not considered.\n\nfunc HITS ¶\n\nfunc HITS(g graph.Directed, tol float64) map[int64]HubAuthority\n\nHITS returns the Hyperlink-Induced Topic Search hub-authority scores for nodes of the directed graph g. HITS terminates when the 2-norm of the vector difference between iterations is below tol. The returned map is keyed on the graph node IDs.\n\nfunc Harmonic ¶\n\nfunc Harmonic(g graph.Graph, p path.AllShortest) map[int64]float64\n\nHarmonic returns the harmonic centrality for nodes in the graph g used to construct the given shortest paths.\n\nH(v)= \\sum_{u ≠ v} 1 / d(u,v)\n\nFor directed graphs the incoming paths are used. Infinite distances are not considered.\n\nfunc PageRank ¶\n\nfunc PageRank(g graph.Directed, damp, tol float64) map[int64]float64\n\nPageRank returns the PageRank weights for nodes of the directed graph g using the given damping factor and terminating when the 2-norm of the vector difference between iterations is below tol. The returned map is keyed on the graph node IDs. If g is a graph.WeightedDirected, an edge-weighted PageRank is calculated.\n\nfunc PageRankSparse ¶\n\nfunc PageRankSparse(g graph.Directed, damp, tol float64) map[int64]float64\n\nPageRankSparse returns the PageRank weights for nodes of the sparse directed graph g using the given damping factor and terminating when the 2-norm of the vector difference between iterations is below tol. The returned map is keyed on the graph node IDs. If g is a graph.WeightedDirected, an edge-weighted PageRank is calculated.\n\nfunc Residual ¶\n\nfunc Residual(g graph.Graph, p path.AllShortest) map[int64]float64\n\nResidual returns the Dangalchev's residual closeness for nodes in the graph g used to construct the given shortest paths.\n\nC(v)= \\sum_{u ≠ v} 1 / 2^d(u,v)\n\nFor directed graphs the incoming paths are used. Infinite distances are not considered.\n\nTypes ¶\n\ntype HubAuthority ¶\n\ntype HubAuthority struct {\nHub float64\nAuthority float64\n}\n\nHubAuthority is a Hyperlink-Induced Topic Search hub-authority score pair.\n\ntype Laplacian ¶\n\ntype Laplacian struct {\n// Matrix holds the Laplacian matrix.\nmat.Matrix\n\n// Nodes holds the input graph nodes.\nNodes []graph.Node\n\n// Index is a mapping from the graph\n// node IDs to row and column indices.\nIndex map[int64]int\n}\n\nLaplacian is a graph Laplacian matrix.\n\nfunc NewLaplacian ¶\n\nfunc NewLaplacian(g graph.Undirected) Laplacian\n\nNewLaplacian returns a Laplacian matrix for the simple undirected graph g. The Laplacian is defined as D-A where D is a diagonal matrix holding the degree of each node and A is the graph adjacency matrix of the input graph. If g contains self edges, NewLaplacian will panic.\n\nfunc NewRandomWalkLaplacian ¶\n\nfunc NewRandomWalkLaplacian(g graph.Graph, damp float64) Laplacian\n\nNewRandomWalkLaplacian returns a damp-scaled random walk Laplacian matrix for the simple graph g. The random walk Laplacian is defined as I-D^(-1)A where D is a diagonal matrix holding the degree of each node and A is the graph adjacency matrix of the input graph. If g contains self edges, NewRandomWalkLaplacian will panic.\n\nfunc NewSymNormLaplacian ¶\n\nfunc NewSymNormLaplacian(g graph.Undirected) Laplacian\n\nNewSymNormLaplacian returns a symmetric normalized Laplacian matrix for the simple undirected graph g. The normalized Laplacian is defined as I-D^(-1/2)AD^(-1/2) where D is a diagonal matrix holding the degree of each node and A is the graph adjacency matrix of the input graph. If g contains self edges, NewSymNormLaplacian will panic." ]
[ null, "https://pkg.go.dev/static/shared/icon/alert_gm_grey_24dp.svg", null, "https://pkg.go.dev/static/shared/icon/code_gm_grey_24dp.svg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7659762,"math_prob":0.97392374,"size":7799,"snap":"2022-05-2022-21","text_gpt3_token_len":1994,"char_repetition_ratio":0.15060936,"word_repetition_ratio":0.5568562,"special_character_ratio":0.22618285,"punctuation_ratio":0.10006998,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99767303,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-01-25T19:55:34Z\",\"WARC-Record-ID\":\"<urn:uuid:19493290-09e5-4e3a-8961-e308cbaee443>\",\"Content-Length\":\"60489\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e5366459-7646-45fb-9a14-3050071d754c>\",\"WARC-Concurrent-To\":\"<urn:uuid:077f09ee-0126-4c01-8df0-642293988c37>\",\"WARC-IP-Address\":\"34.149.140.181\",\"WARC-Target-URI\":\"https://pkg.go.dev/github.com/savalin/gonum@v0.0.1/graph/network\",\"WARC-Payload-Digest\":\"sha1:LWNFPCB3CYQPIZYQ7B5AY6EHPDKYM5NW\",\"WARC-Block-Digest\":\"sha1:OPIWPSG4K4ZIALDOLAD6VN5V7YZPE756\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-05/CC-MAIN-2022-05_segments_1642320304872.21_warc_CC-MAIN-20220125190255-20220125220255-00177.warc.gz\"}"}
https://patents.justia.com/patent/20020110267
[ "# Image metrics in the statistical analysis of DNA microarray data\n\nExpression profiling using DNA microarrays is an important new method for analyzing cellular physiology. In “spotted” microarrays, fluorescently labeled cDNA from experimental and control cells is hybridized to arrayed target DNA and the arrays imaged at two or more wavelengths. Statistical analysis is performed on microarray images and show that non-additive background, high intensity fluctuations across spots, and fabrication artifacts interfere with the accurate determination of intensity information. The probability density distributions generated by pixel-by-pixel analysis of images can be used to measure the precision with which spot intensities are determined. Simple weighting schemes based on these probability distributions are effective in improving significantly the quality of microarray data as it accumulates in a multi-experiment database. Error estimates from image-based metrics should be one component in an explicitly probabilistic scheme for the analysis of DNA microarray data.\n\nDescription\nCROSS-REFERENCE TO RELATED APPLICATIONS\n\n This application claims benefit of U.S. Provisional Application No. 60/178,474, filed Jan. 27, 2000.\n\nTECHNICAL FIELD\n\n This invention relates to DNA microarray analysis, and more particularly to using error estimates from image based metrics to analyze microarrays.\n\nBACKGROUND\n\n Large-scale expression profiling has emerged as a leading technology in the systematic analysis of cell physiology. Expression profiling involves the hybridization of fluorescently labeled cDNA, prepared from cellular MRNA, to microarrays carrying up to 105 unique sequences. Several types of microarrays have been developed, but microarrays printed using pin transfer are among the most popular. Typically, a set of target DNA samples representing different genes are prepared by PCR and transferred to a coated slide to form a 2-D array of spots with a center-to-center distance (pitch) of about 200 &mgr;m. In the is budding yeast S. cerevisiae, for example, an array carrying about 6200 genes provides a pan-genomic profile in an area of 3 cm2 or less. MRNA samples from experimental and control cells are copied into cDNA and labeled using different color fluors (the control is typically called green and the experiment red). Pools of labeled cDNAs are hybridized simultaneously to the microarray, and relative levels of MRNA for each gene determined by comparing red and green signal intensities. An elegant feature of this procedure is its ability to measure relative MRNA levels for many genes at once using relatively simple technology.\n\n Computation is required to extract meaningful information from the large amounts of data generated by expression profiling. The development of bioinformatics tools and their application to the analysis of cellular pathways are topics of great interest. Several databases of transcriptional profiles are accessible on-line and proposals are pending for the development of large public repositories. However, relatively little attention has been paid to the computation required to obtain accurate intensity information from microarrays. The issue is important however, because microarray signals are weak and biologically interesting results are usually obtained through the analysis of outliers. Pixel-by-pixel information present in microarray images can be used in the formulation of metrics that assess the accuracy with which an array has been sampled. Because measurement errors can be high in microarrays, a statistical analysis of errors combined with well-established filtering algorithms are needed to improve the reliability of databases containing information from multiple expression experiments.\n\nDESCRIPTION OF DRAWINGS\n\n These and other features and advantages of the invention will become more apparent upon reading the following detailed description and upon reference to the accompanying drawings.\n\n FIG. 1 is a gene expression curve according to one embodiment of the present invention.\n\n FIG. 2 is a graph illustrating the distribution of ratios calculated for each pixel of several spots according to one embodiment of the present invention.\n\n FIG. 3 is a graph illustrating the sport intensity standard deviation plotted against the average signal.\n\n FIG. 4 is a graph plotting covariance as a function of variance according to one embodiment of the invention.\n\nDETAILED DESCRIPTION\n\n The present invention involves the process of extracting quantitatively accurate ratios from pairs of images and the process of determining the confidence at which the ratios were properly, obtained. One common application of this methodology is analyzing cDNA Expression Arrays (microarrays). In these experiments, different cDNA's are arrayed onto a substrate and that array of probes is used to test biological samples for the presence of specific species of MRNA messages through hybridization. In the most common implementation, both an experimental sample and a control sample are hybridized simultaneously onto the same probe array. In this way, the biochemical process is controlled for throughout the experiment. The ratio of the experimental hybridization to the control hybridization becomes a strong predictor of induction or repression of gene expression within the biological sample.\n\n The gene expression ratio model is essentially, 1 Expression_Ratio = Experiment_Expression Wild ⁢ - ⁢ type_Expression Equation ⁢   ⁢ 1\n\n In typical fluorescent microarray experiments, levels of expression are measured from the fluorescence intensity of fluorescently labeled experiment and wild-type DNA. A number of assumptions are made about the fluorescence intensity, including: 1) the amount of DNA bound to a given spot is proportional to the expression level of the given gene; 2) the fluorescence intensity is proportional to the concentration of fluorescent molecules; and 3) the detection system responds linearly to fluorescence.\n\n By convention, the fluorescent intensity of the experiment is called “red” and the wild-type is called “green”. The simplest form of the gene expression ratio is 2 R = r g Equation ⁢   ⁢ 2\n\n where r and g represent the number of experiment and control DNA molecules that bind to the spot. R is the expression ratio of the experiment and control.\n\n In real situations, however, r and g are unavailable. The measured values, rm and gm, include an unknown amount of background intensity that consists of background fluorescence, excitation leak, and detector bias. That is,\n\nrm=r+rb\n\n   Equation 3\n\ngm=g+gb\n\n   Equation 4\n\n where rb and gb are unknown amounts of background intensity in the red and green channels, respectively.\n\n Including background values, the gene expression ratio becomes: 3 R = r m - r b g m - g b Equation ⁢   ⁢ 5\n\n Equation 5 shows that solving the correct ratio R requires knowledge of the background intensity for each channel. The importance of the determining the correct background values is especially significant when rm and gm are only slightly above than rb and gb. For example, the graph 100 in FIG. 1 shows the effect of a ten count error in determining rb or gb, in the case where R is known to be one. The expected result is shown as line 105. A ten count error in the denominator is shown as line 110. A ten count error in the numerator is shown as 115.\n\n In experimental situations, the sensitivity of the gene expression ratio technique can be limited by background subtraction errors, rather than the sensitivity of the detection system. Accurate determination of rb and gb is thus a key part of measuring the ratio of weakly expressed genes.\n\n Rearranging equation 5, gives\n\nrm=R(gm−gb)+rb=Rgm+k\n\n   Equation 6\n\n where\n\nk=rb−Rgb.\n\n   Equation 7\n\n Least squares curve-fit of equation 6 can be used to obtain the best-fit values of R and k, assuming that rb and gb are constant for all spot intensities involved with the curve-fit. The validity of this assumption depends upon the chemistry of the microarray. Other background intensity subtraction techniques, however, can have more severe limitations. For example, the local background intensity is often a poor estimate of a spot's background intensity.\n\n Two approaches have been taken to the selection of spots involved with the background curve-fit. Since most microarray experiments contain thousands of spots, of which only a very small percent are affected by the experiment, it is probably best to curve-fit all spots in the microarray to equation 6. A refinement of this method is to use all spots that have no process control defects. Another alternative is to include ratio control spots within the array and use only those for curve fitting. The former two are preferred, because curve fitting either the entire array or at least much of it yields a strong statistical measurement of the background values. In the case where the experiment affects a large fraction of spots, however, it may be necessary to use ratio control spots.\n\n Constant k is interesting because it consists of a linear combination of all three desired values. While it is not possible to determine unique values of rb and gb from the curve-fit, there are two types of constraints that can be used to select useful values. First, the background values must be greater than the bias level of the detection system and less than the minimum values of the measured data. That is,\n\n Constraint 1:\n\nrbias≦rb≦rmmin\n\n   Equation 8\n\ngbias≦gb≦gmmin\n\n   Equation 9\n\n The second type of constraint is based on the gene expression model. For genes that are unaffected by the experiment and are near zero expression, both the experiment and the control expression level should reach zero simultaneously. In mathematical terms, when r→0, then g→0. A linear regression of (rm−rb) versus (gm−gb) should then yield a zero intercept. That is, selection of appropriate rb, gb should yield linear regression of\n\n(rm−rb)=m(gm−gb)+b\n\n   Equation 10\n\n such that b is approximately zero. This occurs when\n\nb=mgbrb\n\n   Equation 11\n\n The pair of values rb and gb that create a zero intercept of the linear regression is thus the second constraint that can be used for extracting the background subtraction constants. Solving equations 7 and 11 for gb gives\n\n Constraint 2: 4 g b = k + b m - R Equation ⁢   ⁢ 12\n\n where R and k come from the best-fit of 6, and m and b come from linear regression of 10. The background level rb can then be calculated by inserting gb into equation 7 or 11.\n\n Although it is almost always possible to generate a curve-fit of the microarray spot intensities, it is not always possible to satisfy constraints 1) and 2), especially at the same s time. Failure to satisfy constraint 1) is an indication that the experiment does not fit the expected ratio model or that one of the linearity assumptions is untrue.\n\n A somewhat trivial explanation of a failure to satisfy the constraints is that the spot intensities have been incorrectly determined. A common way that this happens is that the spot locations are incorrectly determined during the course of analysis.\n\n Under ideal circumstances, one would also expect that the linear regression slope, m, should equal the best-fit ratio R. This can also be used as a measure of success. At the same time, the linear regression intercept b should equal zero when the rb and gb meet constraint\n\n Ratio Distribution Statistics\n\n The measured values of the numerator and denominator are random variables with mean and variance. That is,\n\nrm−rb={overscore (r)}±rSD\n\ngm−gb={overscore (g)}±gHD\n\n   Equation 13\n\n where r and g are mean values and rSD and gSD are standard deviations of r and g. The ratio R of r and g is then a random variable too with an expected value RE and variance RSD. That is, 5 R = R E ± R SD = r _ ± r SD g _ ± g SD Equation ⁢   ⁢ 14\n\n Assuming that the measurement of numerator and denominator are normally distributed variables, an estimate of RE and RSD can be formed from Taylor series expansion. 6 R E ≈ r _ g _ + g SD 2 ⁢ r _ g _ 3 - σ rg g _ 2 Equation ⁢   ⁢ 15 7 R SD ≈ g SD 2 ⁢ r _ 2 g _ 4 + r SD 2 g _ 2 - 2 ⁢ σ rg ⁢ r _ g _ 3 Equation ⁢   ⁢ 16\n\n where &sgr;rg is the covariance of the numerator and denominator summed over all image pixels in the spot. 8 σ rg = 1 n ⁢ ∑ i = 1 n ⁢ ( r i - r _ ) ⁢ ( g i - g _ ) Equation ⁢   ⁢ 17\n\n Coefficient of Variation\n\n Assessing the quality of microarray scans and individual spots within an array is an important part of scanning and analyzing arrays. A useful metric for this purpose is the coefficient of variation (CV) of the ratio distribution, which is simply 9 CV = R SD R Equation ⁢   ⁢ 18\n\n In effect, the CV represents the experimental resolution of the gene expression ratio. Minimizing the CV should be the goal of scanning and analyzing gene expression ratio experiments. Minimization of RSD is the best way to improve gene expression resolution. The graph 200 in FIG. 2 gives two examples of comparisons between scanned images. The ratios of a first spot are shown in line 205, while the ratios of a second spot are shown as line 210. The first spot has a CV of 0.21, while the second spot has a CV of 0.60. The distribution of the ratios in the first spot 205 have a narrower distribution than the rations of the second spot 210. Thus, the first spot is a better spot to analyze.\n\n Equation 16 shows that the variability of the ratio decreases dramatically as a function of g, which is a well understood phenomenon. Dividing by a noisy measurement that is near zero produces a very noisy result.\n\n The ratio variance has an interesting dependence on the covariance &sgr;rg. Large values of &sgr;rg reduce the variability of the ratio. This dependence on the covariance is not widely known. In the case of microarray images, strong covariance of the numerator and denominator is a result of three properties of the image data: good alignment of the numerator and denominator images, genuine patterns and textures in the spot images, and a good signal-to-noise ratio (r/rSD and g/gSD).\n\n Table 1 summarizes how variables combine to reduce RSD. 1 TABLE 1 A short summary of the direction that variables need to move in order to reduce the ratio distribution variance. Variable RSD Reduction g ↑ r ↓ gSD ↓ rSD ↓ &sgr;rg ↑\n\n Spot CV\n\n The CV is a fundamental metric and represents the spread of the ratio distribution relative to the magnitude of the ratio. FIG. 3 shows that even though the second spot has a higher ratio than the first spot, the CV is 3× higher. The uncertainty of the second spot's ratio is far greater than the first spot's ratio. Thus, in addition to being useful for separating spots from the control population, the CV can also serve as an independent measure of a spot's quality.\n\n Average CV\n\n The average CV of the entire array of spots gives an excellent metric of the entire array quality. Scans from array WoRx alpha systems have been shown to have approximately ¼ the average CV of a corresponding laser scan.\n\n Normalized Covariance\n\n Covariance is known to be an indicator of the registration among channels, as well as the noise. Large covariance is normally a good sign. Low covariance, however, doesn't always mean the data are bad; it may mean that the spot is smooth and has only a small amount of intensity variance. Likewise, high variance is not necessarily bad if the variance is caused by a genuine intensity pattern within the spot. FIG. 3 demonstrates that standard deviation increases with increasing spot intensity; the dependence is approximately linear. FIG. 3 also shows that the observed standard deviation is not simply caused by the statistical noise associated with counting discrete events (statistical noise). Spots that have a substantial intensity pattern caused by non-uniform distribution of fluorescence will have a large variance and a large covariance (if the detection system is well aligned and has low noise).\n\n Thus, to make the covariance and the variance values useful they must be normalized somehow. In general, this can be accomplished by dividing the covariance by some measure s of the spot's intensity variance. To determine the spot's variance, one could select one of the channels as the reference (for example the control channel, which is green), or one could use a combination of the variance from all channels. The following table gives examples of the normalized covariance calculation: 2 Normalized covariance Normalization Method calculations Variances added in 10 σ rg ′ = σ rg σ r 2 + σ g 2 Equation 19 quadrature Variances added 11 σ rg ′ = σ rg [ ( σ r + σ g ) 2 ] Equation 20 Control channel 12 σ rg ′ = σ rg σ g Equation 21 variance only Experiment channel 13 σ rg ′ = σ rg σ r Equation 22 variance only\n\n where, &sgr;′rg is the normalized covariance, and &sgr;r, and &sgr;g are the variances of channels 1 and 2, respectively.\n\n FIG. 4 illustrates a plot 400 of all the spot's covariance values versus their average variance (as in equation 20). The plot 400 of FIG. 4 reveals that the normalized covariance is a very consistent value. The slope of the points in FIG. 4 gives the typical value of the normalized covariance. (The average of the normalized covariance would give a similar result.) Outliers on the graph are almost always below the cluster of points along the line. Such outlying points occur when the intensity variance of the spot is unusually high, relative to the covariance. A study of these points shows that they have some sort of defect, which is often a bright speck of contaminating fluorescence.\n\n Covariance/Variance Correlation of the Entire Array\n\n Systematically poor correlation between covariance and variance can also point to the scanner's inability to measure covariance due to poor resolution, noise, and/or channel misalignment. Linear regression of the points in FIG. 4 gives an indication of the scanner's ability to measure covariance. A broad scatter plot obviously indicates poor correlation: the variance of the spot intensities is inconsistent between the channels. A low slope indicates that the scanner has relatively high variance, relative to it's ability to measure covariance. Thus, one could compare scanners by comparing the slope and correlation coefficient of a linear regression of FIG. 4 (when the same slide is scanned). A good scanner has a tight distribution with large slope and outliers indicate array fabrication quality problems rather than measurement difficulties. The average and standard deviation of the normalized covariance give similar results and could be used instead of the slope and correlation coefficient, respectively.\n\n Spot Intensity Close to Local Background\n\n Spots that are close, or equal, to local background may be indistinguishable from background. A statistical method is employed to determine whether pixels within the spot are statistically different than the background population.\n\n Spot Intensity Below Local Background\n\n Spot intensities below the local background are a good example of how the local backgrounds are not additive. Such spots are not necessarily bad, but are certainly more difficult to quantify. This is a case where proper background determination methods are essential. The method described above can make use of such spots, provided that there is indeed signal above the true calculated background.\n\n Ratio Inconsistency (Alignment Problem or “Dye Separation”)\n\n This metric compares the standard method of measuring the intensity ratio with an alternative method. The standard method uses the ratio of the average intensities, as described above. The alternative measure of ratio is the average and standard deviation of the pixel-by-pixel ratio of the spot. For reasonable quality spots, these ratios and their respective standard deviations are similar.\n\n There are two main source causes of inconsistency. Either the slide preparation contains artifacts that affect the ratio, or the measurement system is unable to adequately measure the spot's intensity. The following table lists more details about each source of inconsistency. 3 Slide Preparation Measurement Problems Probe separation Noise Target separation Misregistration Contamination with fluorescent Non-linear response between channels. material Note that all the problems listed in the table will also reduce the amount of covariance. In the case of slide preparation problems, the ratio inconsistency points to chemistry problems, whereas measurement problems point to scanner inadequacy.\n\n Numerous variations and modifications of the invention will become readily apparent to those skilled in the art. Accordingly, the invention may be embodied in other specific forms without departing from its spirit or essential characteristics.\n\n## Claims\n\n1. A method of determining a background intensity an image comprising:\n\nselecting a plurality of spots within the image falling within a least squares curve fit; and\ndetermining a constant background intensity for the spots within the curve fit.\n\n2. The method of claim 1, further comprising determining a ratio an experimental image to a control image.\n\n3. The method of claim 2, further comprising determining the least squares curve fit from the equation:\n\nrm=R(gm−gb)+r bRgm+k\nwhere rm and gm are the measured values of the images, rb, and gb are the background intensities of the images, and k is a constant.\n\n4. The method of claim 3, further comprising applying a constraint so the background intensities are greater than the bias levels.\n\n5. The method of claim 3, further comprising applying a constraint so the background intensities create a zero intercept of a linear regression of the equation:\n\n(rm−rb)=m(gm−gb)+b\nEquation 13\nsuch that b is approximately zero, which occurs when\nb=mgb−rb.\n\n6. The method of claim 5, further comprising extracting the background subtraction constants.\n\n7. A method of selecting a microarray scan for analysis comprising:\n\ndetermining a coefficient of variation for the microarray scan;\ncomparing the coefficient of variation to a predetermined threshold; and\nselecting a microarray scan if the coefficient of variation is lower than the predetermined threshold.\n\n8. The method of claim 7, further comprising determining the coefficient of variation from the equation:\n\n14 CV = R SD R where ⁢   ⁢ R SD ≈ g SD 2 ⁢ r _ 2 g _ 4 + r SD 2 g _ 2 - 2 ⁢ σ rg ⁢ r _ g _ 3.\n\n9. The method of claim 7, further comprising determining a spot coefficient of variation.\n\n10. The method of claim 7, further comprising determining an average coefficient of variation.\n\n11. A method of extracting data from an image comprising:\n\ndetermining a covariance and a variance the of the image;\nnormalizing the covariance;\ndetermining the average and standard deviation of the covariance; and\nselecting the data based on the average and standard deviation of the covariance.\n\n12. The method of claim 11, further comprising calculating the covariance according to the following equation:\n\n15 σ rg = 1 n ⁢ ∑ i = 1 n ⁢ ( r i - r _ ) ⁢ ( g i - g _ ).\n\n13. The method of claim 11, further comprising normalizing the covariance by adding the variances in quadrature according to the following equation:\n\n16 σ rg ′ = σ rg σ r 2 + σ g 2,\nwhere &sgr;′rg is the normalized covariance, and &sgr;r, and &sgr;g are the variances of the control and experimental channels.\n\n14. The method of claim 11, further comprising normalizing the covariance by adding the variances according to the following equation:\n\n17 σ rg ′ = σ rg [ ( σ r + σ g ) 2 ],\nwhere &sgr;′rg is the normalized covariance, and &sgr;r, and &sgr;g are the variances of the control and experimental channels.\n\n15. The method of claim 11, further comprising normalizing the covariance by using a control channel variance according to the following equation:\n\n18 σ rg ′ = σ rg σ g,\nwhere &sgr;′rg is the normalized covariance, and &sgr;r, and &sgr;g are the variances of the control and experimental channels.\n\n16. The method of claim 11, further comprising normalizing the covariance by using an experimental channel variance according to the following equation\n\n19 σ rg ′ = σ rg σ r,\nwhere &sgr;′rg is the normalized covariance, and &sgr;r,and &sgr;g are the variances of the control and experimental channels.\n\n17. A method of extracting data from an image comprising:\n\ndetermining a covariance and a variance the of the image;\ndetermining the slope of the covariance plotted against the variance; and\nselecting the data where the slope exceeds a predetermined threshold.\n\n18. The method of claim 17, further comprising plotting each covariance value versus the average variance values.\n\n19. The method of claim 17, further comprising ignoring data points not along the slope of the covariance plotted against the variance.\n\n20. The method of claim 17, further comprising performing linear regression of the covariance plotted against the variance to create a distribution of data points.\n\n21. The method of claim 20, further comprising selecting an image having a tight distribution of data points.\n\nPatent History\nPublication number: 20020110267\nType: Application\nFiled: Jan 25, 2001\nPublication Date: Aug 15, 2002\nPatent Grant number: 6862363\nInventors: Carl S. Brown (Seattle, WA), Paul C. Goodwin (Shoreline, WA)\nApplication Number: 09770833\nClassifications\nCurrent U.S. Class: Biomedical Applications (382/128); Statistical Decision Process (382/228)\nInternational Classification: G06K009/00;" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9076304,"math_prob":0.97421664,"size":25608,"snap":"2019-43-2019-47","text_gpt3_token_len":5570,"char_repetition_ratio":0.16142009,"word_repetition_ratio":0.09819734,"special_character_ratio":0.22161043,"punctuation_ratio":0.090692125,"nsfw_num_words":1,"has_unicode_error":false,"math_prob_llama3":0.9919215,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-15T16:30:51Z\",\"WARC-Record-ID\":\"<urn:uuid:e8dee1b2-eb58-44a7-b3ea-d212d49f88d8>\",\"Content-Length\":\"68206\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:37865035-97e8-4a15-9b46-275b83ac3d94>\",\"WARC-Concurrent-To\":\"<urn:uuid:b1336415-def4-482d-a802-ce01086e9a7e>\",\"WARC-IP-Address\":\"35.169.21.213\",\"WARC-Target-URI\":\"https://patents.justia.com/patent/20020110267\",\"WARC-Payload-Digest\":\"sha1:PGHPBFNHEA4UXXXAB5BKCU6QOQ6RBT5S\",\"WARC-Block-Digest\":\"sha1:OUOIMYMEQADSSAXMDZS3SVWBNAPEMUYK\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496668682.16_warc_CC-MAIN-20191115144109-20191115172109-00145.warc.gz\"}"}
https://sqapastpapers.com/2017-advanced-higher-chemistry-mcqs-with-answers/
[ "SECTION 1 — 30 marks\n\n1. All noble gases are characterised by the completion of the outermost orbital.\nThis orbital is\n\n• A an s-orbital\n• B a p-orbital\n• C a d-orbital\n• D an s or p-orbital.\n\nAns D\n\n2. The electronic configuration of an atom of X, in its ground state, is 1s2 2s2 2p6 3s2 3p6 3d1 4s2\nX is an atom of\n\n• A calcium\n• B scandium\n• C titanium\n\nAns B\n\n3. Which line in the table could represent the four quantum numbers of an outer electron in\nan Mg2+ion?", null, "Ans C\n\n4. The coordination number of an ionic lattice can be determined by using the following\nequation.", null, "What is the coordination number in zinc(II) sulfide?\n\n• A 3\n• B 4\n• C 6\n• D 8\n\nAns B\n\n5. What is the formula for the diaquatetrachlorocobaltate(II) ion?\n\n• A [CoCl4(H2O)2]2−\n• B [CoCl2(H2O)4]2−\n• C [CoCl4(H2O)2]2+\n• D [CoCl2(H2O)4]2+\n\nAns A\n\n6. Which of the following indicators is most suitable to use in a titration of dilute hydrochloric\nacid solution with dilute ammonia solution?\n\n• A Bromothymol blue\n• B Phenolphthalein\n• C Methyl orange\n• D Phenol red\n\nAns C\n\n7. The pH of a solution of benzoic acid with concentration 0·01 mol l−1 is\n\n• A 1·1\n• B 2·0\n• C 3·1\n• D 5·2.\n\nAns C\n\n8. A reaction must be exothermic if\n\n• A both ∆G ° and ∆S ° are negative\n• B both ∆G ° and ∆S ° are positive\n• C ∆G ° is negative\n• D ∆S ° is positive.\n\nAns A\n\n9. For the reaction\nA + B ↓ C\nthe following data were obtained.Experiment Initial concentration", null, "Given that the rate equation is\nRate = k[B]2\nthe value of X will be\n\n• A 0·05\n• B 0·10\n• C 0·15\n• D 0·20.\n\nAns D\n\n10. The rate equation for the reaction between nitrogen monoxide and chlorine is\nrate = k[NO]2[Cl2]\nThe units for the rate constant, k, in this reaction are\n\n• A s−1\n• B mol l−1 s−1\n• C l mol−1 s−1\n• D l2 mol−2 s−1\n\nAns D\n\n11. Which of the following describes the bonding in ethane?\n\n• A sp2 hybridisation with sigma bonds only.\n• B sp3 hybridisation with sigma bonds only.\n• C sp2 hybridisation with sigma and pi bonds.\n• D sp3 hybridisation with sigma and pi bonds.\n\nAns B\n\n12. Pyridine has the following structure.", null, "The number of sigma bonds in a molecule of pyridine is\n\n• A 3\n• B 6\n• C 11\n• D 12.\n\nAns C\n\n13. A racemic mixture is defined as\n\n• A a mixture of two enantiomers\n• B a pair of enantiomers mixed in equal proportions\n• C a mixture of two geometric isomers\n• D a pair of geometric isomers mixed in equal proportions.\n\nAns B\n\n14. CH3CH2Br + NH3 ↓ CH3CH2NH2 + HBr\nCH3Br + OH− ↓ CH3OH + Br−\nThe nucleophiles in these two reactions are\n\n• A CH3Br and NH3\n• B OH−and CH3CH2Br\n• C CH3CH2Br and CH3Br\n• D NH3 and OH−\n\nAns D\n\n15. A compound X has a GFM of less than 100 g.\nComplete combustion of compound X produces carbon dioxide and water only.\nReduction of compound X produces a secondary alcohol.\nCompound X is most likely to be", null, "Ans C\n\n16.", null, "Based on the information in the table,\n\n• A the tertiary amine has the highest boiling point\n• B the secondary amine has the lowest boiling point\n• C the primary amine has a lower boiling point than the tertiary amine\n• D the secondary amine has a lower boiling point than the primary amine.\n\nAns D\n\n17. Compound Y reacts with the product of its own oxidation to form an ester.\nCompound Y could be\n\n• A propanal\n• B propan-1-ol\n• C propan-2-ol\n• D propanoic acid.\n\nAns B\n\n18. Which of the following statements about benzene is correct?\n\n• A The benzene molecule is planar.\n• B Benzene does not react with electrophiles.\n• C Benzene readily undergoes nucleophilic attack.\n• D The benzene molecule contains carbon to carbon bonds of two different lengths.\n\nAns A\n\n19. Chlorine has two isotopes, 35Cl and 37Cl.\nThese isotopes are present in a sample of 1,1,1-trichloroethane, C2H3Cl3. The number of\nmolecular ion peaks expected in the mass spectrum of 1,1,1-trichloroethane is\n\n• A 6\n• B 4\n• C 3\n• D 2.\n\nAns B\n\n20. The following substance was analysed using an infrared spectrometer.", null, "The spectrum produced would not have a significant peak in the wave number range\n\n• A 1700–1680 cm−1\n• B 2962–2853 cm−1\n• C 3100–3000 cm−1\n• D 3500–3300 cm−1\n\nAns C\n\n21. Antisense drugs are a group of medicines that act by binding to DNA to block the synthesis\nof some proteins.\nWhich line in the table is correct for antisense drugs?\n\n•                                 Classification                        Receptor\nA                               antagonist                                      DNA\n• B                                   antagonist                                     protein\n• C                                     agonist                                              DNA\n• D                                     agonist                                             protein\n\nAns A\n\n22. Which of the following would be most suitable as a reagent in the gravimetric analysis of\nsilver ions?\n\n• A Sodium nitrate\n• B Potassium sulfate\n• C Barium carbonate\n• D Ammonium chloride\n\nAns D\n\n23. Using colorimetry, the most appropriate filter for determining the concentration of green\nnickel ions, Ni2+(aq), in a solution, would be\n\n• A 390 nm\n• B 490 nm\n• C 540 nm\n• D 680 nm.\n\nAns A\n\n24. The diagram shows a thin layer chromatogram for a mixture of amino acids. Distance moved by solvent and amino acids (cm)", null, "Which amino acid has an Rf value of approximately 0∙75?\n\n•  A Amino acid S\n• B Amino acid R\n• C Amino acid Q\n• D Amino acid P\n\nAns C\n\n25. Which line in the table shows the properties of the most suitable solvent to extract caffeine\nfrom an aqueous solution of tea?", null, "Ans A\n\n26. A series of titrations was performed to determine the concentration of vitamin C in a brand\nof fruit juice. A standard solution of the fruit juice was prepared and titrated with iodine solution.\nWhich of the following would be a suitable control experiment for this analysis?\n\n• A Titrate more samples from the same carton of fruit juice.\n• B Titrate a solution of pure vitamin C of known concentration.\n• C Titrate more samples from the standard solution of fruit juice.\n• D Titrate a sample from a different carton of the same brand of fruit juice.\n\nAns B\n\n27. Ba(OH)2(aq) + Na2SO4(aq) ↓ BaSO4(s) + 2NaOH(aq)\n50 cm3of 0·010 mol l−1 barium hydroxide solution were added to 50 cm3of 0·010 mol l−1 sodium sulfate solution.\nThe concentration of sodium hydroxide, in mol l−1, in the resulting solution is\n\n• A 0·0010\n• B 0·010\n• C 0·020\n• D 0·10.\n\nAns B\n\n28. 1·06 × 10−2moles of phenylamine, C6H5NH2, react with 5·16 g of bromine.\nWhich equation shows the correct stoichiometry for this reaction?\n\n• A C6H5NH2 + Br2 ↓ C6H4BrNH2 + HBr\n• B C6H5NH2 + 2Br2 ↓ C6H3Br2NH2 + 2HBr\n• C C6H5NH2 + 3Br2 ↓ C6H2Br3NH2 + 3HBr\n• D C6H5NH2 + 4Br2 ↓ C6HBr4NH2 + 4HBr\n\nAns C\n\n29. Ibuprofen is used for the relief of pain, fever and inflammation. A structural formula for\nibuprofen is shown below.", null, "If one tablet contains 300 mg of ibuprofen, approximately how many tablets can be\nmanufactured from 1 mole of ibuprofen?\n\n• A 6·73 × 102\n• B 6·87 × 102\n• C 6·73 × 10−1\n• D 6·87 × 10−1\n\nAns B\n\n30. The term accuracy is used to describe how close an experimental result is to the theoretical\nvalue. The term precision is used to describe how close a set of duplicate results are to each\nother.\nFour students determined the percentage by mass of chlorine in BaCl2.2H2O.\nWhich of the following sets of results is both accurate and precise?\n\n• A 29·0%, 29·0%, 29·1%\n• B 29·1%, 28·2%, 29·9%\n• C 34·0%, 34·1%, 34·0%\n• D 34·0%, 34·3%, 33·8%\n\nAns A" ]
[ null, "https://sqapastpapers.com/wp-content/uploads/2021/08/CX3-300x152.png", null, "https://sqapastpapers.com/wp-content/uploads/2021/08/CX4-300x107.png", null, "https://sqapastpapers.com/wp-content/uploads/2021/08/CX9-300x81.png", null, "https://sqapastpapers.com/wp-content/uploads/2021/08/CX12.png", null, "https://sqapastpapers.com/wp-content/uploads/2021/08/CX15-210x300.png", null, "https://sqapastpapers.com/wp-content/uploads/2021/08/CX16-300x116.png", null, "https://sqapastpapers.com/wp-content/uploads/2021/08/CX20.png", null, "https://sqapastpapers.com/wp-content/uploads/2021/08/CX24-300x231.png", null, "https://sqapastpapers.com/wp-content/uploads/2021/08/CX25-300x108.png", null, "https://sqapastpapers.com/wp-content/uploads/2021/08/CX29.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7908493,"math_prob":0.93667376,"size":6963,"snap":"2022-05-2022-21","text_gpt3_token_len":2255,"char_repetition_ratio":0.11653973,"word_repetition_ratio":0.030124908,"special_character_ratio":0.3071952,"punctuation_ratio":0.083333336,"nsfw_num_words":1,"has_unicode_error":false,"math_prob_llama3":0.9683959,"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,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\":\"2022-05-24T03:18:27Z\",\"WARC-Record-ID\":\"<urn:uuid:193e81c7-b022-4dce-a90b-6e43c98fb988>\",\"Content-Length\":\"64034\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d57ad6b9-26ef-47d7-99ac-fa202d12a4e4>\",\"WARC-Concurrent-To\":\"<urn:uuid:febfa590-3932-400a-ba96-11f8758041ec>\",\"WARC-IP-Address\":\"199.188.201.126\",\"WARC-Target-URI\":\"https://sqapastpapers.com/2017-advanced-higher-chemistry-mcqs-with-answers/\",\"WARC-Payload-Digest\":\"sha1:Q5RC4UMGWQE465T5ZYI2XSAZ5OVUEIHU\",\"WARC-Block-Digest\":\"sha1:LJN2ZTYWCJ2OOCXS2SUKMYRWPWVUKCQH\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662562410.53_warc_CC-MAIN-20220524014636-20220524044636-00609.warc.gz\"}"}
https://gohinizekipi.tashleeh.online/advanced-calculus-for-engineering-and-science-students-book-24788bb.php
[ "Last edited by Kazigami\nWednesday, April 29, 2020 | History\n\n3 edition of Advanced calculus for engineering and science students found in the catalog.\n\nAdvanced calculus for engineering and science students\n\nIan S. Murphy\n\n# Advanced calculus for engineering and science students\n\nWritten in English\n\nSubjects:\n• Calculus.\n\n• Edition Notes\n\nClassifications The Physical Object Statement Ian S. Murphy. Contributions Murphy, Ian S. LC Classifications QA303 Pagination 216p. : Number of Pages 216 Open Library OL22836958M ISBN 10 0950712639 OCLC/WorldCa 16082275\n\nENGINEERING Advanced Calculus for Engineering Instructor Dr. G.H. George Math Natural science Complementary Studies Engineering Science Engineering Design % Students are expected to conduct themselves in all aspects of the course at the highest level of. Summary. Classroom-tested, Advanced Mathematical Methods in Science and Engineering, Second Edition presents methods of applied mathematics that are particularly suited to address physical problems in science and tashleeh.onlineus examples illustrate the various methods of solution and answers to the end-of-chapter problems are included at the back of the book. ADVANCED ENGINEERING MATHEMATICS WITH MATLAB® is written for engineers and engineering students who are interested in applying MATLAB® to solve practical engineering problems. The book emphasizes mathematical principles, not computations, with MATLAB® employed as a tool for analysis that shows how engineering problems are defined and solved. are Calculus Activities for Graphic Calculators by Dennis Pence (PWS-Kent, for the Casio and Sharp and HPS, for the TI). A series of Calculator Enhance- ments, using HP's, is being published by Harcourt Brace Jovanovich. What follows is an introduction to one part of a calculus laboratory. Later in the book, we supply.\n\nYou might also like\nThe first report of the managers of the Kentucky Auxiliary Bible Society\n\nThe first report of the managers of the Kentucky Auxiliary Bible Society\n\nEquity\n\nEquity\n\nStranger in the land.\n\nStranger in the land.\n\nVisitors London\n\nVisitors London\n\nSteam-Tender for Second Light-House District. Letter from the Secretary of the Treasury, transmitting an estimate and asking an additional appropriation to complete the steam-tender for the service of the Second Light-House District.\n\nSteam-Tender for Second Light-House District. Letter from the Secretary of the Treasury, transmitting an estimate and asking an additional appropriation to complete the steam-tender for the service of the Second Light-House District.\n\nNumerical modeling of coupled phenomena in science and engineering\n\nNumerical modeling of coupled phenomena in science and engineering\n\nHealth Protection Agency Bill [HL].\n\nHealth Protection Agency Bill [HL].\n\nPerspectives for New Detectors in Future Supercolliders: Proceedings of the 9th Workshop of the Infn Eloisatron Project\n\nPerspectives for New Detectors in Future Supercolliders: Proceedings of the 9th Workshop of the Infn Eloisatron Project\n\nRethinking work\n\nRethinking work\n\nForeign industrial targeting and its effects on U.S. industries, phase III\n\nForeign industrial targeting and its effects on U.S. industries, phase III\n\nThe political tracts and speeches of Edmund Burke....\n\nThe political tracts and speeches of Edmund Burke....\n\nPepe Moreno\n\nPepe Moreno\n\nThe elegant steel engraving of Franklin at the court of France, in 1778\n\nThe elegant steel engraving of Franklin at the court of France, in 1778\n\nChevys & Rio Bravo fresh Mex cookbook\n\nChevys & Rio Bravo fresh Mex cookbook\n\ndickens of a credit cycle\n\ndickens of a credit cycle\n\nRichmond Park\n\nRichmond Park\n\nCookery up-to-date\n\nCookery up-to-date\n\nSource assessment\n\nSource assessment\n\nSelected topics, such as the Picard Existence Theorem for differential equations, have been included in such a way that selections may be made while preserving a fluid presentation of the essential material. Supplemented with numerous exercises, Advanced Calculus is a.\n\nGet this from a library. Advanced calculus for engineering and science students. [Ian S Murphy]. Get this from a library. Advanced calculus for engineering and science students. [Ian S Murphy]. An accelerated program This four-course sequence, Math Q, Math Q, Math Q, Math Q, designed to recognize the developments in the advanced math high school curricula or college calculus and, using that as a starting point, continue mathematical training in the spirit of higher level mathematics and theoretical science and tashleeh.online: Christopher Cerrigione.\n\nFeb 28,  · This book is one of the better written books on advanced calculus. The diagrams and figures are well done and specific to the examples or concepts being presented. However, this is not for a college student who is trying learn how to solve typical engineering problems. This is a theoretical math book of proofs and identifying limiting /5(13).\n\nBuy Advanced Calculus for Engineering and Science Students on tashleeh.online FREE SHIPPING on qualified ordersAuthor: Ian S.\n\nMurphy. Advanced Calculus for Engineering and Science Students. likes. Organization. “A new geometric and visual approach to advanced calculus is presented. The book can be useful a textbook for beginners as well as a source of supplementary material for university teachers in calculus and analysis.\n\nthe book meets a wide auditorium among undergraduate and graduate students in mathematics, physics, economics and in. Since this mathematics lecture is o ered for the master courses computer science, mechatronics and electrical engineering.\n\nAfter a repetition of basic linear algebra, computer algebra and calculus, we will treat numerical calculus, statistics and function approximation, which are the most important mathematics basic topics for engineers. Free calculus PDF books. The books listed below are for free.\n\nJust click on the download button and you shall be directed to a file saved in a google drive. ADVANCED PLACEMENT CALCULUS BC 5 Credits, Grade 11 Science/Engineering Calculus is a full year course in calculus. It is designed for students who plan on majoring in one of the specialized areas of engineering, science or mathematics.\n\nCalculus is explored through the interpretation of graphs and tables as analytic methods (multiple. The books listed on this website are ready for download. They are stored in a Google Drive for public consumption.\n\nWhat book are you looking for. Mathematics Books Pre-AlgebraElementary AlgebraIntermediate AlgebraCollege Algebra (and Trigonometry)Higher Algebra (Abstract, Boolean, and Linear)Algebra (full list) TrigonometryGeometryPre-calculusCalculusDifferential EquationsBusiness.\n\nA mathematics resource for engineering, physics, math, and computer science students. The enhanced e-text, Advanced Engineering Mathematics, 10th Edition, is a comprehensive book organized into six parts with tashleeh.online opens with ordinary differential equations and.\n\nThis advanced undergraduate textbook is based on a one-semester course on single variable calculus that the author has been teaching at San Diego State University for many years. The aim of this classroom-tested book is to deliver a rigorous discussion of the concepts andAuthor: Tunc Geveci.\n\nA 'read' is counted each time someone views a publication summary (such as the title, abstract, and list of authors), clicks on a figure, or views or downloads the tashleeh.online: William W. Guo. This text presents a unified view of calculus in which theory and practice reinforce each other.\n\nIt covers the theory and applications of derivatives (mostly partial), integrals, (mostly multiple or improper), and infinite series (mostly of functions rather than of numbers), at a deeper level than is found in the standard advanced calculus tashleeh.online: Electronic Book.\n\nEngineering Mathematics John Bird PDF Download Basic engineering mathematics john bird PDF Download Engineering Mathematics John Bird PDF Releted Results: advanced. Elsevier Science & Technology. This book belongs to the following Subject Areas: Mathematics & Statistics About the Book.\n\nAdvanced Calculus explores the theory of calculus and highlights the connections between calculus and The text is designed for a one-semester advanced calculus course for advanced undergraduates or graduate students. Ian S. Murphy is the author of Advanced Calculus For Engineering And Science Students ( avg rating, 5 ratings, 0 reviews, published ), Basic Math /5(7).\n\nJan 03,  · Book Preface. Purpose and Prerequisites. This book is written primarily for a single- or multi-semester course in applied mathematics for students of engineering or science, but it is also designed for self-study and reference. By self-study we do not necessarily mean outside the context of a.\n\nThis is a mathematical text suitable for students of engineering and science who are at the third year undergraduate level or beyond. It is a book of applicable mathematics. It avoids the approach of listing only the techniques, followed by a few examples, without explaining why the techniques work.\n\nMany students find it difficult to solve calculus problems. That doesn't need to be you - download our free textbooks. Calculus textbooks Many students find it difficult to solve calculus problems. That doesn't need to be you - download our free textbooks. Chemical Engineering.\n\nConstruction Engineering. Electrical Engineering. What is “advanced calculus”. Ask Question Asked Naive calculus: This is calculus which is highly computation and application based.\n\nStudents see limits in terms of tables of values, and the idea of \"go close but don't touch.\" etc. This is what we call \"advanced calculus\" in my school. The book they use at my school is Munkres. Advanced Calculus - Fundamentals of Mathematics This textbook covers the fundamental requirements of vector calculus in curricula for college students in mathematics and engineering programs.\n\nThe solutions to the exercises are also included at the end of the book. This is an ideal book for students with a basic background in mathematics Author: Carlos Polanco. An online catalog of free online calculus textbooks from university professors and scholars.\n\ncalculus is one of those courses that students planning on majoring in Computer Science, Mathematics, Economics, Engineering and many of the science fields will utilize during their career.\n\nFrom 1st semester students to those studying Advanced. The book is designed for engineering graduate students who wonder how much of their basic mathematics will be of use in practice. Following development of the underlying analysis, the book takes students through a large number of examples that have been worked in detail.\n\nStudents can choose to go through each step or to skip ahead if they so Cited by: 2. Suitable for a one- or two-semester course, Advanced Calculus: Theory and Practice expands on the material covered in elementary calculus and presents this material in a rigorous manner.\n\nThe text improves students’ problem-solving and proof-writing skills, familiarizes them with the historical dev. adshelp[at]tashleeh.online The ADS is operated by the Smithsonian Astrophysical Observatory under NASA Cooperative Agreement NNX16AC86ACited by: Two and Three Dimensional Calculus: with Applications in Science and Engineering is an ideal textbook for undergraduate students of engineering and applied sciences as well as those needing to use these methods for real problems in industry and commerce.\n\nModern and comprehensive, the new sixth edition of Zill’s Advanced Engineering Mathematics is a full compendium of topics that are most often covered in engineering mathematics courses, and is extremely flexible to meet the unique needs of courses ranging from ordinary differential equations to.\n\nMar 09,  · Two and Three Dimensional Calculus: with Applications in Science and Engineering is an ideal textbook for undergraduate students of engineering and applied sciences as well as those needing to use these methods for real problems in industry and commerce.\n\nDownload Engineering Mathematics By John Bird – A practical introduction to the core mathematics required for engineering study and tashleeh.online in its new edition, Engineering Mathematics is an established textbook that has helped thousands of students to succeed in their exams.\n\nJohn Bird’s approach is based on worked examples and interactive problems. Engineering Mathematics with Examples and Applications provides a compact and concise primer in the field, starting with the foundations, and then gradually developing to the advanced level of mathematics that is necessary for all engineering disciplines.\n\nTherefore, this book's aim is to help undergraduates rapidly develop the fundamental. Advanced Math discipline. I'd like to know which are the best undergraduate calculus books for mathematicians. I'm looking for a complete and rigorous book that allows a Mathematics student to fully understand the undergraduate calculus courses.\n\nIs there a better book than Spivak or Apostol. Which one do you think is the best. UC San Diego Extension is open to the public and harnesses the power of education to transform lives.\n\nOur unique educational formats support lifelong learning and meet the evolving needs of our students, businesses and the larger community. The primary audience of this book is graduate students in mathematics, engineering, and the sciences.\n\nThe book will also be of interest to advanced undergraduates and working professionals who wish to exercise and hone their skills in programming mathematical algorithms in C. Jun 19,  · Advanced Engineering Mathematics provides comprehensive and contemporary coverage of key mathematical ideas, techniques, and their widespread applications, for students majoring in engineering, computer science, mathematics and physics.\n\nUsing a wide range of examples throughout the book, Jeffrey illustrates how to construct simple mathematical models, how to apply mathematical /5(5). Projects for Calculus is designed to add depth and meaning to any calculus course.\n\nThe fifty-two projects presented in this text offer the opportunity to expand the use and understanding of mathematics. The wide range of topics will appeal to both instructors and students.\n\nMay 15,  · #Question name: Where can I get the PDF solution of the book Advanced Engineering Mathematics 7th edition by Erwin Kreyszig frree downnload version. TopEbooks is one of the best frree tashleeh.online and e.b.o.o.k site now.\n\nTotal eboooks: 42,+. This book provides a comprehensive, thorough, and up-to-date treatment of engineering mathematics. It is intended to introduce students of engineering, physics, mathematics, computer science, and related fields to those areas of applied mathematics that are most relevant for solving practical problems.MATH ADVANCED CALCULUS and preparing to take Analysis and upper level Mathematics and majoring in a science, and engineering program.\n\nCourse Credit: 3 hours Prerequisite: Multivariable Calculus (Math ) Text Book: Vector Calculus by J.E. Marsden and A.J. Tromba, Freeman, 5th edition General goals: 1. To provide the student with the.Mathematical Methods in Engineering and Science 1, Mathematical Methods in Engineering and Bhaskar Dasgupta [email protected] An Applied Mathematics course for graduate and senior undergraduate students and also for rising researchers.\n\nMathematical Methods in Engineering and Science 2, a good book of numerical analysis or scientific." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.91547287,"math_prob":0.58392835,"size":14453,"snap":"2020-34-2020-40","text_gpt3_token_len":2797,"char_repetition_ratio":0.17945878,"word_repetition_ratio":0.0681606,"special_character_ratio":0.18196914,"punctuation_ratio":0.11111111,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9534298,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-23T19:05:29Z\",\"WARC-Record-ID\":\"<urn:uuid:8a50d2e2-6772-404a-9929-a38842a8204b>\",\"Content-Length\":\"29578\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ab2f131d-e8c7-4d6d-91ae-bdd2cfdc2fd0>\",\"WARC-Concurrent-To\":\"<urn:uuid:194531e1-5777-4d06-9e79-95c8f3c10533>\",\"WARC-IP-Address\":\"104.27.181.70\",\"WARC-Target-URI\":\"https://gohinizekipi.tashleeh.online/advanced-calculus-for-engineering-and-science-students-book-24788bb.php\",\"WARC-Payload-Digest\":\"sha1:3GJTPQNNEXT5UJ3AH676NFS77SYL4STW\",\"WARC-Block-Digest\":\"sha1:5HU7SCRKONBRKYOB75AMK3SXEIC6IIMK\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400212039.16_warc_CC-MAIN-20200923175652-20200923205652-00599.warc.gz\"}"}
https://pocketsense.com/calculate-depreciation-car-using-doubledeclining-balance-1329.html
[ "# How to Calculate Depreciation on a Car Using the Double-Declining Balance", null, "••• Siri Stafford/Digital Vision/Getty Images\nShare It\n\nDepreciation is an accounting process that allows a business to gauge the expense of long-term assets, and there are a few different ways to accomplish it. The double-declining balance method is an accelerated depreciation method, attributing more of an asset’s costs in the current year rather than later.\n\n## What Is Depreciation, and Why Does It Matter?\n\nDepreciating an asset measures its cost to you over the defined period of its useful life. The depreciated value of an asset allows a business to gauge the expense on its balance sheet and other financial statements and for tax purposes. There are a few different ways to arrive at it. The double-declining balance is one.\n\n## The Double-Declining Balance Method of Depreciation\n\nThe double-declining balance method provides an alternative to straight-line depreciation. The straight-line depreciation method depreciates the value of your car by the same percentage each year during the useful life of the asset. The double-declining method focuses the greatest depreciation in the early years of the car’s useful life, accelerating it. Depreciation expenses are lesser in the later years with this option.\n\nIt effectively doubles the depreciation rate, but this doesn’t mean that the car’s total expense will be greater. The double-declining balance method is all about the timing.\n\n## How to Calculate Depreciation Using the Double-Declining Method\n\nThe double-declining depreciation formula basically involves seven steps, according to the Corporate Finance Institute:\n\n• Determine the original cost or beginning value of the asset at the time you purchased it. This would typically be the cost of the asset or its purchase price, but you can use book value of the asset instead.\n• Determine its useful life. The Internal Revenue Service calls this its “class life,” and it varies by asset. The IRS class life for a truck is five years.\n• Find the salvage value of the asset. The\n\nArizona Department of Administration General Accounting Office defines this as the car’s anticipated fair market value at the time you’ll sell or dispose of it. Subtract the salvage value from the beginning value. The resulting number indicates the car’s total depreciation over the course of its useful life. Find the depreciation rate per year. This would be 20 percent if you assign the car a class life of five years: 100 percent divided by five years. Multiply the beginning value by twice your depreciation rate, or 40 percent. Subtract the result from the beginning value to find out your salvage or ending period value.\n\nNow repeat these steps until the end result is the salvage value you determined in step three. The beginning value (step one) will reduce each year over five years to reflect the annual depreciation you’re claiming or the ending period value for each year.\n\n### An Example of Double-Declining Depreciation\n\nLet’s assume that the beginning value of your car is \\$50,000. Its useful life is five years, and its salvage value is \\$10,000. In simplest terms, the equation would work out like this:\n\n• \\$50,000 (beginning value) less \\$10,000 (salvage value) = \\$40,000 (depreciation over the car’s useful life)\n• \\$50,000 times 40 percent (twice the depreciation rate) = \\$20,000\n• \\$50,000 less \\$20,000 = ending period value of \\$30,000\n\nThese numbers will decrease each time you repeat them because the heaviest depreciation comes in the earliest years. It would look like this in the second year:\n\n• \\$30,000 (ending period value from last year)\n• \\$30,000 times 40 percent = \\$12,000\n• \\$30,000 less \\$12,000 = ending period value of \\$18,000\n\nThe process continues until you wrap up the last of your car’s useful life through accumulated depreciation.\n\n## Pros and Cons of the Double-Declining Method\n\nThe double-declining method of depreciation offers both pros and cons.\n\nAs the saying goes, for everything you get, you must give up something. This can particularly be the case with issues of accounting." ]
[ null, "https://img-aws.ehowcdn.com/300x300/photos.demandstudios.com/getty/article/187/218/200488719-001.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9101299,"math_prob":0.86424863,"size":4533,"snap":"2022-40-2023-06","text_gpt3_token_len":960,"char_repetition_ratio":0.16294987,"word_repetition_ratio":0.027739251,"special_character_ratio":0.21398632,"punctuation_ratio":0.09466019,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9810438,"pos_list":[0,1,2],"im_url_duplicate_count":[null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-02-05T15:06:55Z\",\"WARC-Record-ID\":\"<urn:uuid:0d155cdd-f9c3-425a-917f-3d2bffbcda29>\",\"Content-Length\":\"183973\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:88d020ea-26e7-4711-874f-f6566558e551>\",\"WARC-Concurrent-To\":\"<urn:uuid:b222237a-622d-4cef-a44a-0cdb3f751994>\",\"WARC-IP-Address\":\"23.12.147.71\",\"WARC-Target-URI\":\"https://pocketsense.com/calculate-depreciation-car-using-doubledeclining-balance-1329.html\",\"WARC-Payload-Digest\":\"sha1:RTWRLY34AQOE64GR7VEGNB5L7VQYKTS4\",\"WARC-Block-Digest\":\"sha1:SO5YZUIRDOFQHAKITEPBFWVGIHBDOQ2B\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764500255.78_warc_CC-MAIN-20230205130241-20230205160241-00285.warc.gz\"}"}
http://www.dfkt.net/read/3-ca-ae-bd-f8-d6-c6-d5-fb-ca-fd100-bb-ae-ce-aa-b6-fe-bd-f8-d6-c6.html
[ "# 十进制整数100划为二进制\n\n1100100\n\n100:1100100 215:11010111\n\n1100100(2) =1*2^6+ 1*2^5+ 0*2^4+ 0*2^3+ 1*2^2+ 0*2^1+ 0*2^0 =64+32+4 =100(10)\n\nA2^6+2^5+2^2=64+32+4=100" ]
[ null ]
{"ft_lang_label":"__label__zh","ft_lang_prob":0.6501171,"math_prob":0.99989116,"size":864,"snap":"2020-34-2020-40","text_gpt3_token_len":758,"char_repetition_ratio":0.13023256,"word_repetition_ratio":0.0,"special_character_ratio":0.5486111,"punctuation_ratio":0.22477064,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99992883,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-28T19:29:54Z\",\"WARC-Record-ID\":\"<urn:uuid:66482e06-9443-4d00-ba14-4c4cb4573050>\",\"Content-Length\":\"9633\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:699b69b4-3e25-462b-9f73-7eb32ebeefc2>\",\"WARC-Concurrent-To\":\"<urn:uuid:e57cd2ee-bdc4-491e-b8d4-71b84c2d204c>\",\"WARC-IP-Address\":\"210.56.59.189\",\"WARC-Target-URI\":\"http://www.dfkt.net/read/3-ca-ae-bd-f8-d6-c6-d5-fb-ca-fd100-bb-ae-ce-aa-b6-fe-bd-f8-d6-c6.html\",\"WARC-Payload-Digest\":\"sha1:WGB427D22S2QBWX2NLFR5SJNSLKYR4S7\",\"WARC-Block-Digest\":\"sha1:CMBMXL7M3WI35FLV4Z7M7DK2NTV2VTLY\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600401604940.65_warc_CC-MAIN-20200928171446-20200928201446-00435.warc.gz\"}"}
https://www.cureffi.org/2012/09/25/implementation-of-rvt1-in-r-and-sql/
[ "introduction.  RVT1 is a model for finding genes in which more than one rare variant can contribute to a phenotype.  I introduced RVT1 in more detail in this post, but here is a quick summary.  The idea is that you have called variants on a bunch of case/control samples and you want to test the hypothesis that a number of your cases have different rare variants in the same gene, leading to the same loss of function and same phenotype.  This is useful when your sample size is too small to detect the impact of these rare variants individually.  Indeed, the ability to look at the impact of multiple variants too rare to be included on SNP arrays is considered to be one of the major benefits of exome sequencing. Formally, Morris and Zeggini 2010 define RVT1 as follows:\n\nConsider a sample of unrelated individuals, phenotyped for a normally distributed trait, and typed for rare variants in a gene or small genomic region. Let ni denote the number of rare variants for which theith individual has been successfully genotyped, and let ri denote the number of these variants at which they carry at least one copy of the minor allele. We can model the phenotype, yi, of the ith individual in a linear regression framework, given by yi = E[yi]+ɛi, where ɛiE), and", null, "In this expression, xi denotes a vector of covariate measurements for the ith individual, with corresponding regression coefficients β. The parameter λ is the expected increase in the phenotype for an individual carrying a full complement of minor alleles at rare variants compared to an individual carrying none.\n\nupdate 2012-10-08: below code now includes RVT2 as well.  See Morris and Zeggini 2010 for explanation of that model.\n\nNote that when they say “linear regression,” it’s linear if you have a quantitative phenotype and logistic if you have a dichotomous phenotype.  update 2012-10-08: it may also make more sense to do linear regression even with a dichotomous phenotype, and this code has been updated to do that.  see comment.  end update There’s already an R implementation of RVT1 in AssotesteR, described here and source code available here.  But it’s somewhat limited because it only correlates genotype with phenotype; there is no room to add in xi, that vector of covariates, such as principal components of population substructure.  And for my purposes, most of the battle was just applying the right filters and getting the data into the right format and into R, then getting it out of R again into a format I can play with.  At that point I felt like it made more sense to just do my own implementation end-to-end.\n\nassumptions.  This post assumes you’ve already called variants and read them into SQL tables as I specified in this GATK pipeline– and that you’ve also gotten annotations as to the (population, not sample) allele frequency of your variants– you can use annovar as described here.  You’ll also need R, RPostgreSQL, and PostgreSQL.\n\nthe code.   Here is an R script with a SQL script embedded in it.  The SQL code aggregates the rare variants by gene, R fits the logistic regression model for each gene, and then puts the results into a new SQL table so you can play with them later.\n\nFirst, create a table of source data in SQL:\n\n-- create table of underlying data for RVT1 and RVT2 models\ndrop table if exists rvt_data;\ncreate table rvt_data as\nselect rvgm.gene_name,\nsv.sid,\ns.phen_code,\nsum(case when ((sv.variant_allele_count > 0 and rvgm.vaf < .125) or (sv.variant_allele_count < 2 and rvgm.vaf > .875)) and use_flag then 1 else 0 end)::numeric ri, -- number of rare variant loci where this sample has a rare variant\nsum(case when use_flag then sv.alleles_genotyped else 0 end)::numeric/2.0 ni -- number of rare variant loci genotyped for this sample\nfrom variants v, sample_variants sv, samples s,\n(select e.vid, e.gene_name, coalesce(a.n1000g2012feb_all,0.0) vaf\nfrom annovar_genome_summary a, effects e\nwhere e.vid = a.vid\nand (a.n1000g2012feb_all < .125 or a.n1000g2012feb_all is null or a.n1000g2012feb_all > .875) -- specify your MAF threshold in this line. I used 12.5%.\nand e.effect_impact in ('MODERATE','HIGH') -- sepcify your inclusion criteria here\ngroup by e.vid, e.gene_name, coalesce(a.n1000g2012feb_all,0.0)\norder by e.vid, e.gene_name) rvgm -- [rare variant]-[gene] match\nwhere v.vid = sv.vid\nand sv.sid = s.sample_id\nand v.vid = rvgm.vid\ngroup by rvgm.gene_name, sv.sid, s.phen_code\norder by rvgm.gene_name, sv.sid\n;\n\nThen pull the contents of that table into R, run the analysis and put the RVT1 and RVT2 results each into a new table:\n\nlibrary(RPostgreSQL) # first load package RPostgresql\ndrv <- dbDriver(\"PostgreSQL\")\nnsamples <- 50\nselect gene_name, sid, phen_code, ri, ni\nfrom rvt_data\norder by gene_name, sid\n;\"\nwritesql <- \"\ndrop table if exists rvt1_results;\ncreate table rvt1_results (\ngene_name varchar,\nlambda numeric,\np_value numeric\n);\ndrop table if exists rvt2_results;\ncreate table rvt2_results (\ngene_name varchar,\nlambda numeric,\np_value numeric\n);\n\"\ntmp <- dbSendQuery(writecon,writesql)\nwhile (!dbHasCompleted(rs)) { # for each gene\ntbl <- fetch(rs,n=nsamples) # get the data for the fifty samples\nnonzero <- (tbl$ni != 0) # find the rows where ni is nonzero, i.e. the sample had at least one locus genotyped tbl <- tbl[nonzero,] # restrict the analysis to rows where ni is nonzero if(nrow(tbl) < .9*nsamples) next # only analyze genes where at least 90% of samples can be included gene_name <- tbl$gene_name\n# RVT1\nrini <- tbl$ri/tbl$ni # ri/ni\nif (length(unique(rini)) != 1) { # skip monomorphic cases\nmodel <- lm(tbl$phen_code ~ rini) # you can add your xi vector of covariates to this model here coeff <- summary(model)$coef[\"rini\",\"Estimate\"]\np_value <- summary(model)$coef[\"rini\",\"Pr(>|t|)\"] writesql <- paste(\"insert into rvt1_results (gene_name,lambda,p_value) values('\",gene_name,\"',\",coeff,\",\",p_value,\");\",sep=\"\") tmp <- dbSendQuery(writecon,writesql) } # RVT2 Iri <- 1*(tbl$ri > 0) # indicator variable for whether any rare variants are present. multiplying by 1 converts boolean t/f to integer 1/0\nif (length(unique(Iri)) != 1) { # skip monomorphic cases\nmodel <- lm(tbl$phen_code ~ Iri) coeff <- summary(model)$coef[\"Iri\",\"Estimate\"]\np_value <- summary(model)$coef[\"Iri\",\"Pr(>|t|)\"] writesql <- paste(\"insert into rvt2_results (gene_name,lambda,p_value) values('\",gene_name,\"',\",coeff,\",\",p_value,\");\",sep=\"\") tmp <- dbSendQuery(writecon,writesql) } } dbDisconnect(readcon) dbDisconnect(writecon) dbUnloadDriver(drv) In writing this I found useful Christopher Manning’s tutorial on logistic regression in R and this stackoverflow discussion of how to extract coefficients from an R model. I also learned that in R it appears there really is no better way to put variables into a SQL statement than by concatenation . And I discovered that my new least favorite thing about R is that, when results for a variable are undefined, that variable’s coefficient is simply eliminated from the result matrix, thus making indexing impossible. It’s mentioned in this stackoverflow discussion, though the answer marked correct there did not work for me– instead, I just figured out I could use the if/else clause with is.na as shown in the code above. update 2012-10-08: I now check for monomorphic variants with if (length(unique(rini)) != 1). It’s also possible to run the model first and then exclude results with “NA” coefficients with this line of code: if(is.na(coef(model)[\"rini\"])). end update Finally,if you run this and encounter some error you will need to dump all the remaining database results before you can close or reuse the connection. That can be achieved with dbClearResult(rs). A note about how this code is structured. In a large dataset it’s likely at least one sample will have zero rare variant loci genotyped for at least one gene that has such loci. So if you divide ri/ni in your SQL code you’ll get a division by zero error. And if you use a where clause to exclude those rows, then you won’t have exactly nsamples rows per gene in the table you read into R, which would make it more complicated to iterate through the results. So to avoid that problem I only calcuate ri and ni in SQL, and then do the zero-checking and division in R. next steps. After you’ve gotten your p values using this script, you can run this matplotlib scriptto QQ plot them. And once you’ve created variables to capture any population substructure you wish to control for, you can add those into your glm model easily, ex. tbl$phenotype ~ rini + covariates.\n\nupdate 2012-09-25: the code above has been updated to include variants where the reference genome actually has the minor allele.  (Which happens often: in my dataset, about 10% of the variants have a 1000 genomes frequency > 50%, implying the reference has a frequency < 50%).  To correctly handle those cases, I increment ri for samples where the “vaf” (variant allele frequency) is < .125 and the sample has at least one variant allele, OR the vaf > .875 and the sample has at least one reference allele.\n\nupdate 2012-09-27: fixed bug.  sum(sv.alleles_genotyped)::numeric changed to sum(sv.alleles_genotyped)::numeric/2.0\n\nupdate 2012-10-08:  I overhauled all the above code to make the following changes: (1) changed from logistic to linear model (see discussion below), (2) stored model’s input data in a separate table so you can query it later, (3) allowed it to run on the subset of samples with at least one successfully genotyped locus, down to a genotyping rate threshold (currently set to .9)  and (4) added the RVT2 model.  Also here is a SQL query that provides table showing the RVT1 results along with some summary data about each gene which makes this more intuitive to browse rather than just looking at p values alone:\n\nselect r.gene_name,\nr.lambda,\nr.p_value,\nleast(r.p_value*tests.n,1) bonf, -- p value after correction for multiple testing\nsum(case when d.phen_code = 1 then d.ri else 0 end) case_rv, -- total number of rare variants in cases\nsum(case when d.phen_code = 0 then d.ri else 0 end) control_rv, -- total number of rare variants in controls\nmax(d.ni) n_loci -- number of rare variant loci genotyped\nfrom rvt_data d, rvt1_results r, (select count(*)::numeric n from rvt1_results) tests\nwhere d.gene_name = r.gene_name\ngroup by r.gene_name,\nr.lambda,\nr.p_value,\ntests.n\norder by r.p_value asc\n;" ]
[ null, "http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2962811/bin/gepi0034-0188-m1.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8246273,"math_prob":0.89942884,"size":10568,"snap":"2021-31-2021-39","text_gpt3_token_len":2706,"char_repetition_ratio":0.11472927,"word_repetition_ratio":0.03125,"special_character_ratio":0.25141937,"punctuation_ratio":0.1373494,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9755217,"pos_list":[0,1,2],"im_url_duplicate_count":[null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-24T18:06:50Z\",\"WARC-Record-ID\":\"<urn:uuid:93d30d0f-91e6-4c4a-a8d2-cdfbe36474fd>\",\"Content-Length\":\"34379\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d2a9ee25-5aa5-4200-b9ea-ce9ea6e4b137>\",\"WARC-Concurrent-To\":\"<urn:uuid:36e37497-b0fb-47b0-9b95-e85bff568bd2>\",\"WARC-IP-Address\":\"185.199.111.153\",\"WARC-Target-URI\":\"https://www.cureffi.org/2012/09/25/implementation-of-rvt1-in-r-and-sql/\",\"WARC-Payload-Digest\":\"sha1:7O6TA544Z6UQPOEPRYSXIXDQLBUCVKTS\",\"WARC-Block-Digest\":\"sha1:MBDV5YV7ARPAV564DAIHYSREUMFNYSFX\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780057564.48_warc_CC-MAIN-20210924171348-20210924201348-00547.warc.gz\"}"}
https://en.wikipedia.org/wiki/Linear_prediction
[ "Linear prediction\n\nLinear prediction is a mathematical operation where future values of a discrete-time signal are estimated as a linear function of previous samples.\n\nIn digital signal processing, linear prediction is often called linear predictive coding (LPC) and can thus be viewed as a subset of filter theory. In system analysis (a subfield of mathematics), linear prediction can be viewed as a part of mathematical modelling or optimization.\n\nThe prediction model\n\nThe most common representation is\n\n${\\widehat {x}}(n)=\\sum _{i=1}^{p}a_{i}x(n-i)\\,$", null, "where ${\\widehat {x}}(n)$", null, "is the predicted signal value, $x(n-i)$", null, "the previous observed values, with $p<=n$", null, ", and $a_{i}$", null, "the predictor coefficients. The error generated by this estimate is\n\n$e(n)=x(n)-{\\widehat {x}}(n)\\,$", null, "where $x(n)$", null, "is the true signal value.\n\nThese equations are valid for all types of (one-dimensional) linear prediction. The differences are found in the way the predictor coefficients $a_{i}$", null, "are chosen.\n\nFor multi-dimensional signals the error metric is often defined as\n\n$e(n)=\\|x(n)-{\\widehat {x}}(n)\\|\\,$", null, "where $\\|\\cdot \\|$", null, "is a suitable chosen vector norm. Predictions such as ${\\widehat {x}}(n)$", null, "are routinely used within Kalman filters and smoothers to estimate current and past signal values, respectively.\n\nEstimating the parameters\n\nThe most common choice in optimization of parameters $a_{i}$", null, "is the root mean square criterion which is also called the autocorrelation criterion. In this method we minimize the expected value of the squared error $E[e^{2}(n)]$", null, ", which yields the equation\n\n$\\sum _{i=1}^{p}a_{i}R(j-i)=R(j),$", null, "for 1 ≤ jp, where R is the autocorrelation of signal xn, defined as\n\n$\\ R(i)=E\\{x(n)x(n-i)\\}\\,$", null, ",\n\nand E is the expected value. In the multi-dimensional case this corresponds to minimizing the L2 norm.\n\nThe above equations are called the normal equations or Yule-Walker equations. In matrix form the equations can be equivalently written as\n\n$Ra=r,\\,$", null, "where the autocorrelation matrix $R$", null, "is a symmetric, $p\\times p$", null, "Toeplitz matrix with elements $r_{ij}=R(i-j),0\\leq i,j", null, ", the vector $r$", null, "is the autocorrelation vector $r_{j}=R(j),0", null, ", and the vector $a$", null, "is the parameter vector.\n\nAnother, more general, approach is to minimize the sum of squares of the errors defined in the form\n\n$e(n)=x(n)-{\\widehat {x}}(n)=x(n)-\\sum _{i=1}^{p}a_{i}x(n-i)=-\\sum _{i=0}^{p}a_{i}x(n-i)$", null, "where the optimisation problem searching over all $a_{i}$", null, "must now be constrained with $a_{0}=-1$", null, ".\n\nOn the other hand, if the mean square prediction error is constrained to be unity and the prediction error equation is included on top of the normal equations, the augmented set of equations is obtained as\n\n$\\ Ra=[1,0,...,0]^{\\mathrm {T} }$", null, "where the index i ranges from 0 to p, and R is a (p + 1) × (p + 1) matrix.\n\nSpecification of the parameters of the linear predictor is a wide topic and a large number of other approaches have been proposed.[citation needed] In fact, the autocorrelation method is the most common and it is used, for example, for speech coding in the GSM standard.\n\nSolution of the matrix equation Ra = r is computationally a relatively expensive process. The Gaussian elimination for matrix inversion is probably the oldest solution but this approach does not efficiently use the symmetry of R and r. A faster algorithm is the Levinson recursion proposed by Norman Levinson in 1947, which recursively calculates the solution.[citation needed] In particular, the autocorrelation equations above may be more efficiently solved by the Durbin algorithm.\n\nIn 1986, Philippe Delsarte and Y.V. Genin proposed an improvement to this algorithm called the split Levinson recursion, which requires about half the number of multiplications and divisions. It uses a special symmetrical property of parameter vectors on subsequent recursion levels. That is, calculations for the optimal predictor containing p terms make use of similar calculations for the optimal predictor containing p − 1 terms.\n\nAnother way of identifying model parameters is to iteratively calculate state estimates using Kalman filters and obtaining maximum likelihood estimates within expectation–maximization algorithms.\n\nFor equally-spaced values, a polynomial interpolation is a linear combination of the known values. If the discrete time signal is estimated to obey a polynomial of degree $p-1,$", null, "then the predictor coefficients $a_{i}$", null, "are given by the corresponding row of the triangle of binomial transform coefficients. This estimate might be suitable for a slowly varying signal with low noise. The predictions for the first few values of p are\n\n${\\begin{array}{lcl}p=1&:&{\\widehat {x}}(n)=1x(n-1)\\\\p=2&:&{\\widehat {x}}(n)=2x(n-1)-1x(n-2)\\\\p=3&:&{\\widehat {x}}(n)=3x(n-1)-3x(n-2)+1x(n-3)\\\\p=4&:&{\\widehat {x}}(n)=4x(n-1)-6x(n-2)+4x(n-3)-1x(n-4)\\\\\\end{array}}$", null, "" ]
[ null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/c6eef026e99f4cf0f2e27026f8a821807f304909", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/f9d4f92a60c538f98c3524cce87d9217e927c1ea", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/f806b95099348896bfae986b4284bef24494a2d7", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/623094e5e2dcf4bd637de69ab2d5b33b0964fb20", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/0bc77764b2e74e64a63341054fa90f3e07db275f", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/02a2eb07d9a6d43d467e4cc6e95834849e9d2261", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/0cf63d74ce47158e139331ae04053e6decf05e11", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/0bc77764b2e74e64a63341054fa90f3e07db275f", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/dfc26ddd4a3d919de6cb1645623fb0613e5d9749", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/113f0d8fe6108fc1c5e9802f7c3f634f5480b3d1", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/f9d4f92a60c538f98c3524cce87d9217e927c1ea", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/0bc77764b2e74e64a63341054fa90f3e07db275f", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/371acdf9b6106faa18b90e62d8b159caad23a20f", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/fbd310f5d3428a64f07c229b5b11c186b73c19a5", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/b9c8e9b6e965f81d64e3f13e8c19d4ed18705077", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/b12ad4cf0603407e5ac64490079b1512f6de99bd", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/4b0bfb3769bf24d80e15374dc37b0441e2616e33", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/67e6de741a3aa8176f5a487de8e8f602aa75c5e4", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/04bad3aa3217e0e38282d72bc21b8c035b0386c2", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/0d1ecb613aa2984f0576f70f86650b7c2a132538", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/a370d0c35a286a10332441f073251c7d3a62ef15", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/ffd2487510aa438433a2579450ab2b3d557e5edc", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/3c45acc1472b14050e1e669143b91b10bd1e21b5", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/0bc77764b2e74e64a63341054fa90f3e07db275f", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/36cb32ac4da41240b2d05dac3bc7a6ee5f9dfe4e", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/3b6dcbe329f47468e7c1574eaf729e7eb3613f1f", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/642d90e32f6a47063931b13e1290465522f639fa", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/0bc77764b2e74e64a63341054fa90f3e07db275f", null, "https://wikimedia.org/api/rest_v1/media/math/render/svg/466a59313ff9b7efd93f7e98575532b28d72b049", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8204484,"math_prob":0.999564,"size":5484,"snap":"2019-43-2019-47","text_gpt3_token_len":1219,"char_repetition_ratio":0.1260949,"word_repetition_ratio":0.007151371,"special_character_ratio":0.23030634,"punctuation_ratio":0.14455445,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9999933,"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],"im_url_duplicate_count":[null,3,null,7,null,4,null,2,null,null,null,4,null,null,null,null,null,3,null,null,null,7,null,null,null,3,null,3,null,3,null,1,null,null,null,null,null,3,null,null,null,3,null,null,null,3,null,null,null,3,null,1,null,3,null,null,null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-10-23T11:07:54Z\",\"WARC-Record-ID\":\"<urn:uuid:6814eefe-c54e-465c-830d-ca349cdce12f>\",\"Content-Length\":\"85862\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c8f99086-7d0d-463d-8413-2fca7617e48c>\",\"WARC-Concurrent-To\":\"<urn:uuid:b0efddce-10cb-4770-b817-762916f877ee>\",\"WARC-IP-Address\":\"208.80.154.224\",\"WARC-Target-URI\":\"https://en.wikipedia.org/wiki/Linear_prediction\",\"WARC-Payload-Digest\":\"sha1:K4B56PYXGFQIX4V32FD6FDV6FKNA5SS6\",\"WARC-Block-Digest\":\"sha1:E4ME52INNZ25IYIWH5QID7JNDT4X7QYA\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-43/CC-MAIN-2019-43_segments_1570987833089.90_warc_CC-MAIN-20191023094558-20191023122058-00401.warc.gz\"}"}
http://conceptmap.cfapps.io/wikipage?lang=en&name=Drude_particle
[ "# Drude particle\n\nDrude particles are model oscillators used to simulate the effects of electronic polarizability in the context of a classical molecular mechanics force field. They are inspired by the Drude model of mobile electrons and are used in the computational study of proteins, nucleic acids, and other biomolecules.\n\n## Classical Drude oscillator\n\nMost force fields in current practice represent individual atoms as point particles interacting according to the laws of Newtonian mechanics. To each atom, a single electric charge is assigned that doesn't change during the course of the simulation. However, such models cannot have induced dipoles or other electronic effects due to a changing local environment.\n\nClassical Drude particles are massless virtual sites carrying a partial electric charge, attached to individual atoms via a harmonic spring. The spring constant and relative partial charges on the atom and associated Drude particle determine its response to the local electrostatic field, serving as a proxy for the changing distribution of the electronic charge of the atom or molecule. However, this response is limited to a changing dipole moment. This response is not enough to model interactions in environments with large field gradients, which interact with higher order moments.\n\n### Efficiency of simulation\n\nThe major computational cost of simulating classical Drude oscillators is the calculation of the local electrostatic field and the repositioning of the Drude particle at each step. Traditionally, this repositioning is done self consistently. This cost can be reduced by assigning a small mass to each Drude particle, applying a Lagrangian transformation and evolving the simulation in the generalised coordinates. This method of simulation has been used to create water models incorporating classical Drude oscillators.\n\n## Quantum Drude oscillator\n\nSince the response of a classical Drude oscillator is limited, it is not enough to model interactions in heterogeneous media with large field gradients, where higher order electronic responses have significant contributions to the interaction energy.[citation needed] A quantum Drude oscillator (QDO) is a natural extension to the classical Drude oscillator. Instead of a classical point particle serving as a proxy for the charge distribution, a QDO uses a quantum harmonic oscillator, in the form of a pseudoelectron connected to an oppositely charged pseudonucleus by a harmonic spring.\n\nA QDO has three free parameters: the spring's frequency $\\omega$ , the pseudoelectron's charge $q$  and the system's reduced mass $\\mu$ . The ground state of a QDO is a gaussian of width $\\sigma =1/{\\sqrt {2\\mu \\omega }}$ . Adding an external field perturbs the ground state of a QDO, which allows us to calculate its polarizability. To second order, the change in energy relative to the ground state is given by the following series:\n\n$E^{(2)}=\\sum _{l=1}^{\\infty }E_{l}^{(2)}=\\sum _{l=1}^{\\infty }-{\\frac {Q^{2}\\alpha _{l}}{2R^{2l+2}}}$\n\nwhere the polarizabilities $\\alpha _{l}$  are\n\n$\\alpha _{l}=\\left[{\\frac {q^{2}}{\\mu \\omega ^{2}}}\\right]\\left[{\\frac {(2l-1)!!}{l}}\\right]\\left({\\frac {\\hbar }{2\\mu \\omega }}\\right)^{l-1}$\n\nFurthermore, since QDOs are quantum mechanical objects, their electrons can correlate, giving rise to dispersion forces between them. The second order change in energy corresponding to such an interaction is:\n\n$E^{(2)}=\\sum _{l=3}^{\\infty }C_{2l}R^{-2l}$\n\nwith the first three dispersion coefficients being (in the case of identical QDOs):\n\n$C_{6}={\\frac {3}{4}}\\alpha _{1}\\alpha _{1}\\hbar \\omega$\n$C_{8}=5\\alpha _{1}\\alpha _{2}\\hbar \\omega$\n$C_{10}=\\left({\\frac {21}{2}}\\alpha _{1}\\alpha _{3}+{\\frac {70}{4}}\\alpha _{2}\\alpha _{2}\\right)\\hbar \\omega$\n\nSince the response coefficients of QDOs depend on three parameters only, they are all related. Thus, these response coefficients can combine into four dimensionless constants, all equal to unity:\n\n${\\sqrt {\\frac {20}{9}}}{\\frac {\\alpha _{2}}{\\sqrt {\\alpha _{1}\\alpha _{3}}}}=1$\n${\\sqrt {\\frac {49}{40}}}{\\frac {C_{8}}{\\sqrt {C_{6}C_{10}}}}=1$\n${\\frac {C_{6}\\alpha _{1}}{4C_{9}}}=1$\n\nThe QDO representation of atoms is the basis of the many body dispersion model which is a popular way to account for electrostatic forces in molecular dynamics simulations." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.782371,"math_prob":0.98742086,"size":5788,"snap":"2020-34-2020-40","text_gpt3_token_len":1421,"char_repetition_ratio":0.11082296,"word_repetition_ratio":0.022360248,"special_character_ratio":0.25570145,"punctuation_ratio":0.19012116,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9977092,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-08-07T04:03:45Z\",\"WARC-Record-ID\":\"<urn:uuid:7d4e37ac-e900-4453-92ad-7d35a58ac244>\",\"Content-Length\":\"67770\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:67dd3e0e-1d1b-4ebf-a5e1-bb4f1843e8e8>\",\"WARC-Concurrent-To\":\"<urn:uuid:a936b597-14be-4946-b7c4-93a9a4a99d37>\",\"WARC-IP-Address\":\"52.6.41.242\",\"WARC-Target-URI\":\"http://conceptmap.cfapps.io/wikipage?lang=en&name=Drude_particle\",\"WARC-Payload-Digest\":\"sha1:RWXQFCG4J5OQ2PDOMUF2KOGOAURCZXCJ\",\"WARC-Block-Digest\":\"sha1:BMLFCQBHLUCFN6WCCJYTMZVJQ3M62H6F\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-34/CC-MAIN-2020-34_segments_1596439737152.0_warc_CC-MAIN-20200807025719-20200807055719-00274.warc.gz\"}"}
https://learn.careers360.com/engineering/question-try-this-limit-continuity-and-differentiability-jee-main/
[ "", null, "", null, "#### If the function", null, "is differentiable at x = 1, then", null, "is equal  to : Option 1)", null, "Option 2)", null, "Option 3)", null, "Option 4)", null, "", null, "As we learnt in\n\nRule for continuous -\n\nA function is continuous at  x = a if and only if", null, "L.H.L    R.H.L   value at  x = a.\n\n- wherein\n\nWhere", null, "", null, "", null, "", null, "", null, "", null, "", null, "", null, "1+b=0        b=-1\n\nNow f(x) will be continuous at x=1", null, "", null, "", null, "", null, "", null, "Option 1)", null, "This option is incorrect.\n\nOption 2)", null, "This option is incorrect.\n\nOption 3)", null, "This option is correct.\n\nOption 4)", null, "This option is incorrect.\n\n#### divya.saini", null, "" ]
[ null, "https://cdn.entrance360.com/static/images/exam/products_page_bg.12f7f177de52.png", null, "https://cdn.entrance360.com/static/images/qna.a449b2e8236a.png", null, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPIAAAA4CAIAAABIeTIhAAAJRElEQVR4nO2dvXKjPBSGRfVVW+CK1DC+AnBuYHfEDThQu4MyJW5chp3xbLWzjJvtrBuAbhtCH1PH5gYWrgF9xZlltfxZ/olNHD2VY4SQxYt0zhE6QVQguDnQtRsgEJwfIWvBDSJkLbhBhKwFN4iQteAGGZCsd7tdEARBEFy7IYJ3z1BkHYahYRhJkly7IYK3oizLi11rKLJWVTWKomu3QnB+yrLM85wQoqrqxabiQcg6yzJZlrMsu3ZDBOfHsixN0xzHQQh9LFl///5dkqSDTinLkp3ULjnBfTTYrq51e2vh9XrNjlBpmlJKkyQRst5DURSO42CMwzCklPq+jzF+s9Z9aDabjWVZlmWlaZrnueM4nue1lizLkhCiaZqmaUVR1I4KWe9nPp/7vi/Lsq7rvu/btm3b9ts17yNjmqbv+wghz/Mwxq7r+r5fK5Pnue/7mqaZpgljcxMha5plmd9NVczzPFmWTdO8RpM/Frquy7LcFHRRFE9PT3AXugQNCFnToiiSDti+I4QghPp7U3AWHMeRZbn5ve/7kiR5nrfXtxGy5gUmRxHqvgAYY1mWmxYzpZQQYhiGYRiEkB5xC1nvpyzLzWZjmiZCyPf9PM8r13u32xFCRKzwXIAjaBgGjCC73a5V3EmSmKapaRrcjmaBIAiErPtIkkTXdcMwsizTNE1VVdM0Kx2rqmoYxpu19GMBISboXkmS4HNP+SzLXNfVNK1mGULkSpIkx3Fan4qz8/5knaap7/ugY/hc9VSWZcLaPiNRFFVuYhRFnGNtbapsekoXUPb7k3UPjuPM5/PT6xG8d25H1kVREELO0h7Be6dT1nuXSen5lqy/fv16ltFaIABaZA3O73Q6fXx8pJQuFouXl5dmsTzPZ7PZWZR9LiNEIABaZP34+Pj4+L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9sdnaapaZpXeXTBxr3hUaPJIGRN//hnH+21YMEbMRRZ0z/7psT/PBeczoBkLRCcCyFrwQ0iZC24QYSsBTeIkLXgBvkf/DxJI5QjVagAAAAASUVORK5CYIIA", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://cdn.entrance360.com/static/images/best_answer.7f977deb01a8.png", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/latex-image/", null, "https://learn.careers360.com/static/images/jee_ads.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7443674,"math_prob":0.99462837,"size":381,"snap":"2023-14-2023-23","text_gpt3_token_len":113,"char_repetition_ratio":0.2015915,"word_repetition_ratio":0.02739726,"special_character_ratio":0.29396325,"punctuation_ratio":0.12087912,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99771726,"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],"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,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-03-28T12:13:54Z\",\"WARC-Record-ID\":\"<urn:uuid:413b968e-4391-4f41-b676-7789c0f71135>\",\"Content-Length\":\"1018469\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:030d667d-4e88-4258-b5cb-80c8a6e54a2d>\",\"WARC-Concurrent-To\":\"<urn:uuid:09f75a88-df4e-49f8-87ce-94e39be930fe>\",\"WARC-IP-Address\":\"43.204.255.162\",\"WARC-Target-URI\":\"https://learn.careers360.com/engineering/question-try-this-limit-continuity-and-differentiability-jee-main/\",\"WARC-Payload-Digest\":\"sha1:DHQ74SZMYKSWODDXZDKCOQ74ETQ4BKFS\",\"WARC-Block-Digest\":\"sha1:ABWSKE57EJ2SLFTGTWU6RMYASDYWSKKG\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-14/CC-MAIN-2023-14_segments_1679296948858.7_warc_CC-MAIN-20230328104523-20230328134523-00475.warc.gz\"}"}
https://answers.everydaycalculation.com/add-fractions/10-7-plus-12-8
[ "Solutions by everydaycalculation.com\n\n1st number: 1 3/7, 2nd number: 1 4/8\n\n10/7 + 12/8 is 41/14.\n\n1. Find the least common denominator or LCM of the two denominators:\nLCM of 7 and 8 is 56\n2. For the 1st fraction, since 7 × 8 = 56,\n10/7 = 10 × 8/7 × 8 = 80/56\n3. Likewise, for the 2nd fraction, since 8 × 7 = 56,\n12/8 = 12 × 7/8 × 7 = 84/56\n80/56 + 84/56 = 80 + 84/56 = 164/56\n5. 164/56 simplified gives 41/14\n6. So, 10/7 + 12/8 = 41/14\nIn mixed form: 213/14\n\nMathStep (Works offline)", null, "Download our mobile app and learn to work with fractions in your own time:" ]
[ null, "https://answers.everydaycalculation.com/mathstep-app-icon.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.5609063,"math_prob":0.9984751,"size":420,"snap":"2020-24-2020-29","text_gpt3_token_len":203,"char_repetition_ratio":0.2451923,"word_repetition_ratio":0.0,"special_character_ratio":0.5714286,"punctuation_ratio":0.07017544,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99676436,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-05-29T19:15:15Z\",\"WARC-Record-ID\":\"<urn:uuid:0e9e1a83-e643-4723-8349-23570e9b4889>\",\"Content-Length\":\"8756\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8c0e3c72-b4d5-4321-a671-83a78677ae81>\",\"WARC-Concurrent-To\":\"<urn:uuid:dfe4fc1f-8685-4876-8008-36bea9294263>\",\"WARC-IP-Address\":\"96.126.107.130\",\"WARC-Target-URI\":\"https://answers.everydaycalculation.com/add-fractions/10-7-plus-12-8\",\"WARC-Payload-Digest\":\"sha1:IGEC7YPMWEKEFRJDFFCO2YAA2REKMSZ5\",\"WARC-Block-Digest\":\"sha1:YTDJ5UAIGGHZ6O3QWDPWF3EBZPFH6VBY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-24/CC-MAIN-2020-24_segments_1590347406365.40_warc_CC-MAIN-20200529183529-20200529213529-00330.warc.gz\"}"}
https://rdrr.io/github/jaehyunjoo/poplin/man/normalize_sum.html
[ "# normalize_sum: Sum normalization In jaehyunjoo/poplin: LC/MS Metabolomics Data Processing Utilities\n\n## Description\n\nApply sum normalization to a matrix or poplin object. For each sample, feature intensities are divided by the sum of all intensity values.\n\n## Usage\n\n ```1 2 3 4 5``` ```## S4 method for signature 'matrix' normalize_sum(x, restrict = FALSE, rescale = FALSE) ## S4 method for signature 'poplin' normalize_sum(x, xin, xout, restrict = FALSE, rescale = FALSE) ```\n\n## Arguments\n\n `x` A matrix or poplin object. `restrict` Logical controlling whether any feature with missing values is excluded from the calculation of normalization factors. `rescale` Logical controlling whether the normalized intensities are multiplied by the median of normalization factors to make look similar to their original scales. `xin` Character specifying the name of data to retrieve from `x` when `x` is a poplin object. `xout` Character specifying the name of data to store in `x` when `x` is a poplin object.\n\n## Value\n\nA matrix or poplin object of the same dimension as `x` containing the normalized intensities.\n\nOther normalization methods: `normalize_cyclicloess()`, `normalize_mad()`, `normalize_mean()`, `normalize_median()`, `normalize_pqn()`, `normalize_scale()`, `normalize_vsn()`, `poplin_normalize()`\n ```1 2 3 4 5 6 7 8``` ```data(faahko_poplin) ## poplin object normalize_sum(faahko_poplin, xin = \"knn\", xout = \"knn_sum\") ## matrix m <- poplin_data(faahko_poplin, \"knn\") normalize_sum(m, rescale = TRUE) ```" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.603361,"math_prob":0.958716,"size":1427,"snap":"2023-14-2023-23","text_gpt3_token_len":346,"char_repetition_ratio":0.16725229,"word_repetition_ratio":0.07692308,"special_character_ratio":0.235459,"punctuation_ratio":0.125,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9942099,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-03-27T11:31:22Z\",\"WARC-Record-ID\":\"<urn:uuid:71e5c920-e7ab-4e99-8385-7fdd61f9f8b5>\",\"Content-Length\":\"43645\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a99a603e-b17a-43f2-a48c-4dc9cd07df31>\",\"WARC-Concurrent-To\":\"<urn:uuid:9b1019bf-07c9-4daa-96dd-4d0a2813bd2a>\",\"WARC-IP-Address\":\"51.81.83.12\",\"WARC-Target-URI\":\"https://rdrr.io/github/jaehyunjoo/poplin/man/normalize_sum.html\",\"WARC-Payload-Digest\":\"sha1:KHJSRKCEJLAPQTOHOTTGCKZ566VGKLQG\",\"WARC-Block-Digest\":\"sha1:HOHW3DL5EOL55CTBHNNA7VZMT5NSPI7P\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-14/CC-MAIN-2023-14_segments_1679296948620.60_warc_CC-MAIN-20230327092225-20230327122225-00534.warc.gz\"}"}
https://convertoctopus.com/1040-feet-per-second-to-miles-per-hour
[ "Conversion formula\n\nThe conversion factor from feet per second to miles per hour is 0.68181818181818, which means that 1 foot per second is equal to 0.68181818181818 miles per hour:\n\n1 ft/s = 0.68181818181818 mph\n\nTo convert 1040 feet per second into miles per hour we have to multiply 1040 by the conversion factor in order to get the velocity amount from feet per second to miles per hour. We can also form a simple proportion to calculate the result:\n\n1 ft/s → 0.68181818181818 mph\n\n1040 ft/s → V(mph)\n\nSolve the above proportion to obtain the velocity V in miles per hour:\n\nV(mph) = 1040 ft/s × 0.68181818181818 mph\n\nV(mph) = 709.09090909091 mph\n\nThe final result is:\n\n1040 ft/s → 709.09090909091 mph\n\nWe conclude that 1040 feet per second is equivalent to 709.09090909091 miles per hour:\n\n1040 feet per second = 709.09090909091 miles per hour\n\nAlternative conversion\n\nWe can also convert by utilizing the inverse value of the conversion factor. In this case 1 mile per hour is equal to 0.0014102564102564 × 1040 feet per second.\n\nAnother way is saying that 1040 feet per second is equal to 1 ÷ 0.0014102564102564 miles per hour.\n\nApproximate result\n\nFor practical purposes we can round our final result to an approximate numerical value. We can say that one thousand forty feet per second is approximately seven hundred nine point zero nine one miles per hour:\n\n1040 ft/s ≅ 709.091 mph\n\nAn alternative is also that one mile per hour is approximately zero point zero zero one times one thousand forty feet per second.\n\nConversion table\n\nfeet per second to miles per hour chart\n\nFor quick reference purposes, below is the conversion table you can use to convert from feet per second to miles per hour\n\nfeet per second (ft/s) miles per hour (mph)\n1041 feet per second 709.773 miles per hour\n1042 feet per second 710.455 miles per hour\n1043 feet per second 711.136 miles per hour\n1044 feet per second 711.818 miles per hour\n1045 feet per second 712.5 miles per hour\n1046 feet per second 713.182 miles per hour\n1047 feet per second 713.864 miles per hour\n1048 feet per second 714.545 miles per hour\n1049 feet per second 715.227 miles per hour\n1050 feet per second 715.909 miles per hour" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.68439615,"math_prob":0.9798562,"size":2200,"snap":"2022-05-2022-21","text_gpt3_token_len":585,"char_repetition_ratio":0.29326048,"word_repetition_ratio":0.05835544,"special_character_ratio":0.3540909,"punctuation_ratio":0.08219178,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99748486,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-01-24T11:24:33Z\",\"WARC-Record-ID\":\"<urn:uuid:b84e5f60-f739-48e4-8316-5c03f6a0eba6>\",\"Content-Length\":\"31394\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:90dbedf9-0ba5-4a22-9d74-6ce513507782>\",\"WARC-Concurrent-To\":\"<urn:uuid:1a8b1362-1e60-43d7-9a5a-e04a6b747612>\",\"WARC-IP-Address\":\"104.21.56.212\",\"WARC-Target-URI\":\"https://convertoctopus.com/1040-feet-per-second-to-miles-per-hour\",\"WARC-Payload-Digest\":\"sha1:QYP2QXGB7LLJOGP7R4RBQ55HOVBGSEAL\",\"WARC-Block-Digest\":\"sha1:VP3R6V7QQYOR52P4LK43LQB725P3Q3EQ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-05/CC-MAIN-2022-05_segments_1642320304528.78_warc_CC-MAIN-20220124094120-20220124124120-00425.warc.gz\"}"}
https://mathematica.stackexchange.com/questions/37713/why-does-the-iterator-index-in-table-not-work-here/37717
[ "Why does the iterator index in Table not work here?\n\nI type the following command line\n\nTable[D[#1,varx[[i]]] &,{i,3}]\n\nwhere varx is a vector of dummy variables\n\nvarx = {x1, x2, x3}\n\nAccording to this link NonCommutativeMultiply, I want to obtain a vector like this\n\n$\\left\\{\\frac{\\partial }{\\partial \\text{x1}},\\frac{\\partial}{\\partial \\text{x2}},\\frac{\\partial}{\\partial \\text{x3}}\\right\\}$\n\nBut I got this", null, "It seems like the index i in the command Table does not work. I don't know why this happens. I try not to use the placeholder '#1' like this\n\nTable[D[2 x1^2 + 4 x2^3 + x3^4, varb[[i]]], {i, n}]\n\nAnd this works all fine\n\n{4 x1, 12 x2^2, 4 x3^3}\n\nIf I want to keep the placeholder, what should I do?\n\nUse With:\n\nTable[With[{v = varx[[i]]}, D[#1, v] &], {i, 3}]`\n(* {D[#1, x1] & , D[#1, x2] & , D[#1, x3] & } *)\n\nSee the section \"Scope\" of the documentation page for With. Note that Function (&) has the attribute HoldAll, so that the value of varx[[i]] needs to be inserted into the function.\n\nThe above gives a list of operators. An alternate interpretation of what is sought is a single operator that evaluates to a list. Here's a way:\n\ngrad = Block[{D}, Evaluate[Table[D[#1, varx[[i]]], {i, 3}]] &]\n(* {D[#1, x1], D[#1, x2], D[#1, x3]} & *)\n\nHere's another method for this particular example, based on behavior of D[f, {{x1, x2, ...}}]:\n\ngrad = With[{v = varx}, D[#, {v}] &]\n\nBoth yield" ]
[ null, "https://i.stack.imgur.com/U2QMV.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.80429304,"math_prob":0.9917135,"size":644,"snap":"2022-05-2022-21","text_gpt3_token_len":222,"char_repetition_ratio":0.1359375,"word_repetition_ratio":0.0,"special_character_ratio":0.34472048,"punctuation_ratio":0.11805555,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9963359,"pos_list":[0,1,2],"im_url_duplicate_count":[null,7,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-01-23T22:24:02Z\",\"WARC-Record-ID\":\"<urn:uuid:ffad3316-d9a0-4c1f-9a1c-0db7236dbd1f>\",\"Content-Length\":\"144478\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d14ff439-28ca-4274-a63e-9bc9e44231f3>\",\"WARC-Concurrent-To\":\"<urn:uuid:4ac1b8b0-8800-4fe9-b1b4-d16d97e89d4a>\",\"WARC-IP-Address\":\"151.101.129.69\",\"WARC-Target-URI\":\"https://mathematica.stackexchange.com/questions/37713/why-does-the-iterator-index-in-table-not-work-here/37717\",\"WARC-Payload-Digest\":\"sha1:JZWO73LA2FSNOSAXHTSIXKBMLCFBF4YC\",\"WARC-Block-Digest\":\"sha1:AA2Q575A7EIUHF4SC3O6TBTFIGSPIXGH\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-05/CC-MAIN-2022-05_segments_1642320304309.59_warc_CC-MAIN-20220123202547-20220123232547-00635.warc.gz\"}"}
http://list.seqfan.eu/pipermail/seqfan/2008-October/000028.html
[ "# [seqfan] Re: Beauty\n\nArtur grafix at csl.pl\nThu Oct 30 03:34:25 CET 2008\n\n```Trigonometric unity\n(Cos[x])^2+(Sin[x])^2=1\nHyperbolic unity:\n(Cosh[x])^2-(Sin[x])^2=1\nMy unity:\n(Cosh[(2 n - 1) ArcSinh[Sqrt]])^2 + (Cos[(2 n - 1)\nArcSin[Sqrt]])^2 = 1\n\nBest wishes,\nArtur Jasinski\n\nArtur pisze:\n> Dear Seqfans,\n> Formula discovered today by me which merge hyperbolic World with\n> eliptic World (the stranges which I know in Mathematics in general):\n> Cosh[2 n ArcSinh[Sqrt]]= (-1)^n Cos[2 n ArcSin[Sqrt]]\n>\n> Best wishes\n> Artur\n>\n>\n>\n>\n\n```" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.66844475,"math_prob":0.94872874,"size":582,"snap":"2021-31-2021-39","text_gpt3_token_len":223,"char_repetition_ratio":0.10899654,"word_repetition_ratio":0.0,"special_character_ratio":0.3676976,"punctuation_ratio":0.0862069,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98773324,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-20T20:28:43Z\",\"WARC-Record-ID\":\"<urn:uuid:3444b02c-a5f0-4a4a-b5f8-c8329d9a811c>\",\"Content-Length\":\"3106\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:fe7d0392-59e0-4ca6-bcd0-399dced2254e>\",\"WARC-Concurrent-To\":\"<urn:uuid:df7274f2-7160-4c6e-9993-24e7449c907a>\",\"WARC-IP-Address\":\"92.243.17.179\",\"WARC-Target-URI\":\"http://list.seqfan.eu/pipermail/seqfan/2008-October/000028.html\",\"WARC-Payload-Digest\":\"sha1:NV7BKDXK72QIKEHAKPWQZGL57L5KZBMB\",\"WARC-Block-Digest\":\"sha1:NHIUVZKEGQJHZSCJ5SKMQ5F5O52K263V\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780057091.31_warc_CC-MAIN-20210920191528-20210920221528-00080.warc.gz\"}"}
https://nla-group.org/2019/01/14/a-new-preconditioner-exploiting-low-rank-factorization-error/?shared=email&msg=fail
[ "A new preconditioner exploiting low-rank factorization error\n\nThe solution of a linear system", null, "$Ax = b$ is a fundamental task in scientific computing. Two main classes of methods to solve such a system exist.\n\n• Direct methods compute a factorization of matrix", null, "$A$, such as LU factorization, to then directly obtain the solution", null, "$x=U^{-1}L^{-1}b$ by triangular substitution; they are very reliable but also possess a high computational cost, which limits the size of problems that can be tackled.\n• Iterative methods compute a sequence of iterates", null, "$x_k$ converging towards the solution", null, "$x$; they are inexpensive but their convergence and thus reliability strongly depends on the matrix properties, which limits the scope of problems that can be tackled.\n\nA current major challenge in the field of numerical linear algebra is therefore to develop methods that are able to tackle a large scope of problems of large size.\n\nTo accelerate the convergence of iterative methods, one usually uses a preconditioner, that is, a matrix", null, "$M$ ideally satisfying three conditions: (1)", null, "$M$ is cheap to compute; (2)", null, "$M$ can be easily inverted; (3)", null, "$M^{-1}$ is a good approximation to", null, "$A^{-1}$. With such a matrix", null, "$M$, the preconditioned system", null, "$M^{-1}Ax=M^{1}b$ is then cheap to solve with an iterative method and often requires a small number of iterations only. An example of a widely used class of preconditioners is when", null, "$M$ is computed as a low-accuracy LU factorization.\n\nUnfortunately, for many important problems it is quite difficult to find a preconditioner that is both of good quality and cheap to compute, especially when the matrix", null, "$A$ is ill conditioned, that is, when the ratio between its largest and smallest singular values is large.\n\nIn our paper A New Preconditioner that Exploits Low-rank Approximations to Factorization Error, with Nick Higham, which recently appeared in SIAM Journal of Scientific Computing, we propose a novel class of general preconditioners that builds on an existing, low-accuracy preconditioner", null, "$M=A-\\Delta A$.\n\nThis class of preconditioners is based on the following key observation: ill-conditioned matrices that arise in practice often have a small number of small singular values. The inverse of such a matrix has a small number of large singular values and so is numerically low rank. This observation suggests that the error matrix", null, "$E = M^{-1}A - I = M^{-1}\\Delta A \\approx A^{-1}\\Delta A$ is of interest, because we may expect", null, "$E$ to retain the numerically low-rank property of", null, "$A^{-1}$.\n\nIn the paper, we first investigate theoretically and experimentally whether", null, "$E$ is indeed numerically low rank; we then describe how to exploit this property to accelerate the convergence of iterative methods by building an improved preconditioner", null, "$M(I+\\widetilde{E})$, where", null, "$\\widetilde{E}$ is a low-rank approximation to", null, "$E$. This new preconditioner is equal to", null, "$A-M(E-\\widetilde{E})$ and is thus almost a perfect preconditioner if", null, "$\\widetilde{E}\\approx E$. Moreover, since", null, "$\\widetilde{E}$ is a low-rank matrix,", null, "$(I+\\widetilde{E})^{-1}$ can be cheaply computed via the Sherman–Morrison–Woodbury formula, and so the new preconditioner can be easily inverted.\n\nWe apply this new preconditioner to three different types of approximate LU factorizations: half-precision LU factorization, incomplete LU factorization (ILU), and block low-rank (BLR) LU factorization. In our experiments with GMRES-based iterative refinement, we show that the new preconditioner can achieve a significant reduction in the number of iterations required to solve a variety of real-life", null, "$Ax=b$ problems." ]
[ 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://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 ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9323495,"math_prob":0.9954395,"size":3275,"snap":"2019-43-2019-47","text_gpt3_token_len":635,"char_repetition_ratio":0.1464384,"word_repetition_ratio":0.015717093,"special_character_ratio":0.18076336,"punctuation_ratio":0.08994709,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9978906,"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,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,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-10-18T14:21:59Z\",\"WARC-Record-ID\":\"<urn:uuid:ebbbc47b-2d69-419b-83f3-652256ad580d>\",\"Content-Length\":\"72693\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a0af7a64-1225-4394-8ba0-e45685e51fdf>\",\"WARC-Concurrent-To\":\"<urn:uuid:2c09a780-8ce4-4e1d-8f92-22c7fcea1816>\",\"WARC-IP-Address\":\"192.0.78.25\",\"WARC-Target-URI\":\"https://nla-group.org/2019/01/14/a-new-preconditioner-exploiting-low-rank-factorization-error/?shared=email&msg=fail\",\"WARC-Payload-Digest\":\"sha1:SGFH2XSFYJHLKXHLMZDH4EBCFZGK35F6\",\"WARC-Block-Digest\":\"sha1:WIK376EPHR77RG4XS564GO6H4MDA3YXL\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-43/CC-MAIN-2019-43_segments_1570986682998.59_warc_CC-MAIN-20191018131050-20191018154550-00266.warc.gz\"}"}
https://docs.microsoft.com/en-gb/dotnet/api/system.collections.istructuralequatable?view=netframework-4.8
[ "# IStructuralEquatable Interface\n\n## Definition\n\nDefines methods to support the comparison of objects for structural equality.\n\n``public interface class IStructuralEquatable``\n``public interface IStructuralEquatable``\n``type IStructuralEquatable = interface``\n``Public Interface IStructuralEquatable``\nDerived\n\n## Examples\n\nThe default equality comparer, `EqualityComparer<Object>.Default.Equals`, considers two `NaN` values to be equal. However, in some cases, you may want the comparison of `NaN` values for equality to return `false`, which indicates that the values cannot be compared. The following example defines a `NanComparer` class that implements the IEqualityComparer interface. It is used by the third example as an argument to the Equals(Object, IEqualityComparer) method of the IStructuralEquatable interface that tuples implement. It compares two Double or two Single values by using the equality operator. It passes values of any other type to the default equality comparer.\n\n``````using System;\nusing System.Collections;\nusing System.Collections.Generic;\n\npublic class NanComparer : IEqualityComparer\n{\npublic new bool Equals(object x, object y)\n{\nif (x is float)\nreturn (float) x == (float) y;\nelse if (x is double)\nreturn (double) x == (double) y;\nelse\nreturn EqualityComparer<object>.Default.Equals(x, y);\n}\n\npublic int GetHashCode(object obj)\n{\nreturn EqualityComparer<object>.Default.GetHashCode(obj);\n}\n}\n``````\n``````Imports System.Collections\nImports System.Collections.Generic\n\nPublic Class NanComparer : Implements IEqualityComparer\nPublic Overloads Function Equals(x As Object, y As Object) As Boolean _\nImplements IEqualityComparer.Equals\nIf TypeOf x Is Single Then\nReturn CSng(x) = CSng(y)\nElseIf TypeOf x Is Double Then\nReturn CDbl(x) = CDbl(y)\nElse\nReturn EqualityComparer(Of Object).Default.Equals(x, y)\nEnd If\nEnd Function\n\nPublic Overloads Function GetHashCode(obj As Object) As Integer _\nImplements IEqualityComparer.GetHashCode\nReturn EqualityComparer(Of Object).Default.GetHashCode(obj)\nEnd Function\nEnd Class\n``````\n\nThe following example creates two identical 3-tuple objects whose components consist of three Double values. The value of the second component is Double.NaN. The example then calls the Tuple<T1,T2,T3>.Equals method, and it calls the IStructuralEquatable.Equals method three times. The first time, it passes the default equality comparer that is returned by the EqualityComparer<T>.Default property. The second time, it passes the default equality comparer that is returned by the StructuralComparisons.StructuralEqualityComparer property. The third time, it passes the custom `NanComparer` object. As the output from the example shows, the first three method calls return `true`, whereas the fourth call returns `false`.\n\n``````public class Example\n{\npublic static void Main()\n{\nvar t1 = Tuple.Create(12.3, Double.NaN, 16.4);\nvar t2 = Tuple.Create(12.3, Double.NaN, 16.4);\n\n// Call default Equals method.\nConsole.WriteLine(t1.Equals(t2));\n\nIStructuralEquatable equ = t1;\n// Call IStructuralEquatable.Equals using default comparer.\nConsole.WriteLine(equ.Equals(t2, EqualityComparer<object>.Default));\n\n// Call IStructuralEquatable.Equals using\n// StructuralComparisons.StructuralEqualityComparer.\nConsole.WriteLine(equ.Equals(t2,\nStructuralComparisons.StructuralEqualityComparer));\n\n// Call IStructuralEquatable.Equals using custom comparer.\nConsole.WriteLine(equ.Equals(t2, new NanComparer()));\n}\n}\n// The example displays the following output:\n// True\n// True\n// True\n// False\n``````\n``````Module Example\nPublic Sub Main()\nDim t1 = Tuple.Create(12.3, Double.NaN, 16.4)\nDim t2 = Tuple.Create(12.3, Double.NaN, 16.4)\n\n' Call default Equals method.\nConsole.WriteLine(t1.Equals(t2))\n\nDim equ As IStructuralEquatable = t1\n' Call IStructuralEquatable.Equals using default comparer.\nConsole.WriteLine(equ.Equals(t2, EqualityComparer(Of Object).Default))\n\n' Call IStructuralEquatable.Equals using\n' StructuralComparisons.StructuralEqualityComparer.\nConsole.WriteLine(equ.Equals(t2,\nStructuralComparisons.StructuralEqualityComparer))\n\n' Call IStructuralEquatable.Equals using custom comparer.\nConsole.WriteLine(equ.Equals(t2, New NanComparer))\nEnd Sub\nEnd Module\n' The example displays the following output:\n' True\n' True\n' True\n' False\n``````\n\n## Remarks\n\nStructural equality means that two objects are equal because they have equal values. It differs from reference equality, which indicates that two object references are equal because they reference the same physical object. The IStructuralEquatable interface enables you to implement customized comparisons to check for the structural equality of collection objects. That is, you can create your own definition of structural equality and specify that this definition be used with a collection type that accepts the IStructuralEquatable interface. The interface has two members: Equals, which tests for equality by using a specified IEqualityComparer implementation, and GetHashCode, which returns identical hash codes for objects that are equal.\n\nNote\n\nThe IStructuralEquatable interface supports only custom comparisons for structural equality. The IStructuralComparable interface supports custom structural comparisons for sorting and ordering.\n\nThe .NET Framework also provides default equality comparers, which are returned by the EqualityComparer<T>.Default and StructuralComparisons.StructuralEqualityComparer properties. For more information, see the example.\n\nThe generic tuple classes (Tuple<T1>, Tuple<T1,T2>, Tuple<T1,T2,T3>, and so on) and the Array class provide explicit implementations of the IStructuralEquatable interface. By casting (in C#) or converting (in Visual Basic) the current instance of an array or tuple to an IStructuralEquatable interface value and providing your IEqualityComparer implementation as an argument to the Equals method, you can define a custom equality comparison for the array or collection.\n\n## Methods\n\n Determines whether an object is structurally equal to the current instance. Returns a hash code for the current instance." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.5718298,"math_prob":0.98031944,"size":6030,"snap":"2020-45-2020-50","text_gpt3_token_len":1263,"char_repetition_ratio":0.21374045,"word_repetition_ratio":0.045698926,"special_character_ratio":0.19087894,"punctuation_ratio":0.17082918,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97410446,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-20T16:15:32Z\",\"WARC-Record-ID\":\"<urn:uuid:44ff9100-ce58-4685-bea7-e6a4bfdbce93>\",\"Content-Length\":\"55718\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:994a7f0a-d24f-4925-8d42-78289de47386>\",\"WARC-Concurrent-To\":\"<urn:uuid:bc2b9bb5-44d9-4d8a-859a-44cc240852cb>\",\"WARC-IP-Address\":\"96.7.23.136\",\"WARC-Target-URI\":\"https://docs.microsoft.com/en-gb/dotnet/api/system.collections.istructuralequatable?view=netframework-4.8\",\"WARC-Payload-Digest\":\"sha1:F7ORDGFTIC2HOMMICT6NA4A7ZTOZD6BU\",\"WARC-Block-Digest\":\"sha1:2IK7HQCPPBGDFDKD5JG2OZE2I3PH6ILE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-45/CC-MAIN-2020-45_segments_1603107872746.20_warc_CC-MAIN-20201020134010-20201020164010-00516.warc.gz\"}"}
https://tools.carboncollective.co/present-value/56-in-21-years/
[ "# Present Value of $56 in 21 Years When you have a single payment that will be made to you, in this case$56, and you know that it will be paid in a certain number of years, in this case 21 years, you can use the present value formula to calculate what that $56 is worth today. Below is the present value formula we'll use to calculate the present value of$56 in 21 years.\n\n$$Present\\: Value = \\dfrac{FV}{(1 + r)^{n}}$$\n\nWe already have two of the three required variables to calculate this:\n\n• Future Value (FV): This is the $56 • n: This is the number of periods, which is 21 years So what we need to know now is r, which is the discount rate (or rate of return) to apply. It's worth noting that there is no correct discount rate to use here. It's a very personal number than can vary depending on the risk of your investments. For example, if you invest in the market and you earn on average 8% per year, you can use that number for the discount rate. You can also use a lower discount rate, based on the US Treasury ten year rate, or some average of the two. The table below shows the present value (PV) of$56 paid in 21 years for interest rates from 2% to 30%.\n\nAs you will see, the present value of $56 paid in 21 years can range from$0.23 to $36.95. Discount Rate Future Value Present Value 2%$56 $36.95 3%$56 $30.10 4%$56 $24.57 5%$56 $20.10 6%$56 $16.47 7%$56 $13.52 8%$56 $11.12 9%$56 $9.17 10%$56 $7.57 11%$56 $6.26 12%$56 $5.18 13%$56 $4.30 14%$56 $3.57 15%$56 $2.98 16%$56 $2.48 17%$56 $2.07 18%$56 $1.73 19%$56 $1.45 20%$56 $1.22 21%$56 $1.02 22%$56 $0.86 23%$56 $0.72 24%$56 $0.61 25%$56 $0.52 26%$56 $0.44 27%$56 $0.37 28%$56 $0.31 29%$56 $0.27 30%$56 $0.23 As mentioned above, the discount rate is highly subjective and will have a big impact on the actual present value of$56. A 2% discount rate gives a present value of $36.95 while a 30% discount rate would mean a$0.23 present value.\n\nThe rate you choose should be somewhat equivalent to the expected rate of return you'd get if you invested \\$56 over the next 21 years. Since this is hard to calculate, especially over longer periods of time, it is often useful to look at a range of present values (from 5% discount rate to 10% discount rate, for example) when making decisions.\n\nHopefully this article has helped you to understand how to make present value calculations yourself. You can also use our quick present value calculator for specific numbers." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.93509316,"math_prob":0.99901086,"size":2509,"snap":"2022-27-2022-33","text_gpt3_token_len":807,"char_repetition_ratio":0.19441117,"word_repetition_ratio":0.012987013,"special_character_ratio":0.4041451,"punctuation_ratio":0.118584074,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9995982,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-02T17:14:26Z\",\"WARC-Record-ID\":\"<urn:uuid:c31d756b-fb13-4c6b-a1ea-476c49922a36>\",\"Content-Length\":\"21975\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:26c5fe90-cddb-441c-a587-545273b9f9de>\",\"WARC-Concurrent-To\":\"<urn:uuid:69aef1cd-de00-41a0-8cfa-c5f2e929872c>\",\"WARC-IP-Address\":\"138.197.3.89\",\"WARC-Target-URI\":\"https://tools.carboncollective.co/present-value/56-in-21-years/\",\"WARC-Payload-Digest\":\"sha1:AAEEY44LM7I5F7DUGHKHCTSJMYHO6DVD\",\"WARC-Block-Digest\":\"sha1:XDDXDE2VONFGF6KDNZAQ5YTZUYNFXAQI\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656104189587.61_warc_CC-MAIN-20220702162147-20220702192147-00168.warc.gz\"}"}
https://astronomy.stackexchange.com/questions/10918/question-about-extreme-space-distortion-and-creation-of-a-new-dimension
[ "# Question about extreme space distortion and creation of a new dimension\n\nIn all the illustrations regarding space distortion, I find an extra dimension that depicts space distortion. Is there any mathematical equation that proves the creation of an extra dimension ?\n\nThanks.\n\nOne of the biggest stumbling blocks of intuition for people learning general relativity is that the physics only cares about the intrinsic geometry. For example, imagine an ordinary ball in three (Euclidean) dimensions, and take its surface. In jargon, the surface is the two-dimensional sphere $\\mathrm{S}^2$, and it has geometric properties that can be described by reference to it alone, e.g., lengths of curves drawn on it, angles between intersecting curves, that if one starts at some point and goes in a single direction, eventually one would be back to the starting point, etc.\nOne should consider the two-sphere as a valid geometry by itself, and the fact that it can be pictured as the surface of a three-dimensional Euclidean object as purely incidental--it $\\mathrm{S}^2$ can be embedded in the Euclidean space $\\mathrm{E}^3$ in that simple manner, yes, but that's a fairly arbitrary choice. It can be embedded in other spaces as well, or not embedded in anything at all.\nFor Riemannian manifolds (the purely spatial geometries), there are some nice mathematical results regarding embedding into Euclidean spaces, but nevertheless, they're usually impractical and not relevant to general relativity. Even worse, general Lorentzian manifolds (spacetimes) have no comparably 'nice' results regarding embedding spacetime geometries into flat pseudo-Euclidean spaces $\\mathrm{E}^{n,m}$, so it's doubly useless to worry about it, except perhaps in the cases where the spacetime is extraordinarily simple." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9267894,"math_prob":0.9881066,"size":2439,"snap":"2021-31-2021-39","text_gpt3_token_len":514,"char_repetition_ratio":0.120328546,"word_repetition_ratio":0.13941018,"special_character_ratio":0.19680198,"punctuation_ratio":0.107061505,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.980675,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-07-26T22:36:29Z\",\"WARC-Record-ID\":\"<urn:uuid:c23db25b-6420-4288-9930-a3adae29c769>\",\"Content-Length\":\"159819\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:14553c2b-23d1-4ef9-bc00-7c6479c63421>\",\"WARC-Concurrent-To\":\"<urn:uuid:042a3ad9-3f5a-46bd-8cbf-2336da2c7369>\",\"WARC-IP-Address\":\"151.101.65.69\",\"WARC-Target-URI\":\"https://astronomy.stackexchange.com/questions/10918/question-about-extreme-space-distortion-and-creation-of-a-new-dimension\",\"WARC-Payload-Digest\":\"sha1:WKAXQB4STI6DSHBPXIYAJ4ZFGBSPVPKN\",\"WARC-Block-Digest\":\"sha1:E3R53RX67D6BM74HO4ZMM5L7KDS5CXT2\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-31/CC-MAIN-2021-31_segments_1627046152156.49_warc_CC-MAIN-20210726215020-20210727005020-00347.warc.gz\"}"}
https://kerodon.net/tag/00S8
[ "# Kerodon\n\n$\\Newextarrow{\\xRightarrow}{5,5}{0x21D2}$ $\\newcommand\\empty{}$\n\nWarning 2.5.8.8. Let $A_{\\bullet }$ and $B_{\\bullet }$ be simplicial abelian groups. Then we have a canonical isomorphism of simplicial abelian groups $A_{\\bullet } \\otimes B_{\\bullet } \\simeq B_{\\bullet } \\otimes A_{\\bullet }$, given degreewise by the construction $a \\otimes b \\mapsto b \\otimes a$. Likewise, there is a canonical isomorphism of chain complexes $\\mathrm{N}_{\\ast }(A) \\boxtimes \\mathrm{N}_{\\ast }(B) \\simeq \\mathrm{N}_{\\ast }(B) \\boxtimes \\mathrm{N}_{\\ast }(A)$ given by the Koszul sign rule (see Warning 2.5.1.14). Beware that these isomorphisms are not compatible with the Alexander-Whitney construction: that is, the diagram\n\n$\\xymatrix@R =50pt@C=50pt{ \\mathrm{N}_{\\ast }(A \\otimes B) \\ar [d]^{ \\mathrm{AW} } \\ar [r] & \\mathrm{N}_{\\ast }(B \\otimes A) \\ar [d]^{\\mathrm{AW}} \\\\ \\mathrm{N}_{\\ast }(A) \\boxtimes \\mathrm{N}_{\\ast }(B) \\ar [r] & \\mathrm{N}_{\\ast }(B) \\boxtimes \\mathrm{N}_{\\ast }(A) }$\n\nusually does not commute. Instead, the composite map\n\n$\\mathrm{N}_{\\ast }(A \\otimes B) \\simeq \\mathrm{N}_{\\ast }(B \\otimes A) \\xrightarrow { \\mathrm{AW} } \\mathrm{N}_{\\ast }(B) \\boxtimes \\mathrm{N}_{\\ast }(A) \\simeq \\mathrm{N}_{\\ast }(A) \\boxtimes \\mathrm{N}_{\\ast }(B)$\n\ncan be identified with the Alexander-Whitney homomorphism associated to the opposite simplicial abelian groups $A_{\\bullet }^{\\operatorname{op}}$ and $B_{\\bullet }^{\\operatorname{op}}$. In other words, the colax monoidal structure of Proposition 2.5.8.7 is not a colax symmetric monoidal structure (see Definition", null, "). The same remark applies to the unnormalized Alexander-Whitney construction $\\overline{\\mathrm{AW}}$ of Construction 2.5.8.2." ]
[ null, "https://kerodon.net/static/images/question.svg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.63237494,"math_prob":0.9996958,"size":1140,"snap":"2022-27-2022-33","text_gpt3_token_len":341,"char_repetition_ratio":0.13204226,"word_repetition_ratio":0.0,"special_character_ratio":0.27105263,"punctuation_ratio":0.12560387,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99961144,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-02T17:01:15Z\",\"WARC-Record-ID\":\"<urn:uuid:bc64e608-ce7e-4964-a478-b87ddfad8d00>\",\"Content-Length\":\"11360\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ab29c86d-0e6c-4776-aed4-d109619d62f8>\",\"WARC-Concurrent-To\":\"<urn:uuid:66ea24ab-d4ed-4930-bbe8-45a758440b7d>\",\"WARC-IP-Address\":\"35.173.69.207\",\"WARC-Target-URI\":\"https://kerodon.net/tag/00S8\",\"WARC-Payload-Digest\":\"sha1:QONIP6QBNTBBJ76Z4SKX3A7A4HIUBDC4\",\"WARC-Block-Digest\":\"sha1:GQNX45UWRZZJT67YD7RV7RX46XJBVEPU\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656104189587.61_warc_CC-MAIN-20220702162147-20220702192147-00062.warc.gz\"}"}
https://www.wallstreetmojo.com/gordon-growth-model/
[ "# Gordon Growth Model", null, "## What is the Gordon Growth Model?\n\nGordon growth model is a type of dividend discount model in which not only the dividends are factored in and discounted but also a growth rate for the dividends is factored in and the stock price is calculated based on that.\n\n### Formula\n\nAs per the , the intrinsic value of the stock is equal to the sum of all the present value of the future dividend. We note from the above graph, companies like McDonald’s, Procter & Gamble, Kimberly Clark, PepsiCo, 3M, CocaCola, Johnson & Johnson, AT&T, Walmart pay regular dividends, and we can use Gordon Growth Model to value such companies.\n\nThere are two basic types of the model – Stable Model and Multistage Growth Model. The stable model assumes that the dividend growth is constant over time; however multistage growth model does not assume constant growth of dividends, hence we have to evaluate each year’s dividend separately. However, eventually, the multistage model assumes a constant dividend growth.\n\nLet us now see the Gordon growth formula and examples for each type of model and calculation of stock price:\n\n#### Stable Gordon Growth Formula\n\nUsing a stable model, we get the value of the stock as below:\n\nWhere,\n\n1. D1: it is next year’s expected annual\n2. ke: discount rate or the required rate of return estimated using the\n3. g: expected dividend growth rate (assumed to be constant)\n\nOther assumptions of the Gordon Growth formula are as follows:-\n\n• We assume that the Company grows at a constant rate.\n• The Company has stable financial leverage, or there is no involved in the Company.\n• The life of the firm is indefinite.\n• The required rate of return remains constant.\n• The free cash flow of the Company is paid as a dividend at constant growth rates.\n• The required rate of return is greater than the growth rate.\n\n### Stable Gordon Growth Model Example\n\nLet’s assume that a Company ABC will pay a \\$ 5 dividend next year, which is expected to grow at the rate of 3% every year. Further, the required rate of return of the investor is 8%. What is the intrinsic value of the ABC Company stock?\n\nNote, we have assumed a constant growth of dividends over the years. It could be true for stable Companies; however, the dividend growth could vary for growing/declining Companies. Hence we use the multistage model. Thus, using the stable model, the value of a stock is \\$ 100. Now, if the stock is trading at say \\$ 70, then it is undervalued, and if the stock is trading at \\$ 120, it is said to be overvalued.\n\n#### Walmart Stable Dividends\n\nLet us look at Walmart’s Dividends paid in the last 30 years. Walmart is a mature company, and we note that the dividends have steadily increased over this period. It means we can value Walmart using the Gordon Growth Model calculations.\n\nsource: ycharts\n\n### Multi-Stage Gordon Growth Model Example\n\nLet us take a Gordon Growth Multi-Stage example of a company wherein we have the following –\n\n• Current Dividends (2016) = \\$12\n• Growth in Dividends for 4 years = 20%\n• Growth in Dividends after 4 years = 8%\n• = 15%\n\nFind the value of the firm using the Gordon Growth Model calculations.\n\nStep 1: Calculate the dividends for each year till the stable growth rate is reached\n\nHere we calculate the high growth dividends until 2020, as shown below.\n\nThe stable growth rate is achieved after 4 years. Hence, we calculate the Dividend profile until 2020.\n\nStep 2: Calculate Gordon Growth Model Terminal Value  (at the end of the high growth phase)\n\nHere we will use Gordon Growth for Terminal Value. We note that the growth stabilizes after 2020; therefore, we can calculate the Gordon growth Model terminal value in 2020 using this model.\n\nIt can be estimated using the Gordon Growth Formula –\n\nWe apply the formula in excel, as seen below. TV or Terminal value at the end of the year 2020.\n\nGordon Growth Model Terminal value (2020) is \\$383.9\n\nStep 3: Calculate the of all the projected dividends\n\nThe present value of dividends during the high growth period (2017-2020) is given below. Please note that in this example, the required rate of return is 15%\n\nStep 4: Find the present value of the Gordon Growth Model Terminal Value\n\nPresent value of Terminal value = \\$219.5\n\nStep 5: Find the Fair Value – the PV of Projected Dividends and the PV of Terminal Value\n\nAs we already know that the intrinsic value of the stock is the present value of its future cash flows. Since we have calculated the Present value of Dividends and Present Value of , the sum total of both will reflect the Fair Value of the Stock.\n\nFair Value = PV(projected dividends) + PV(terminal value)\n\nFair Value comes to \\$273.0\n\n• Gordon’s growth model is highly useful for stable Companies; Companies that have good cash flow and limited business expenses.\n• The valuation model is simple and easy to understand with its inputs available or can be assumed from the financial statements and .\n• The model does not account for market conditions; hence it can be used to evaluate or compare Companies of different sizes and from various industries.\n• The model is widely used in the real estate industry by real estate investors, agents where the cash flows from rents, and their growth is known.\n\nBesides the above advantages of the Gordon Growth Model, there are a lot of disadvantages and limitations of the model as well:\n\n• The assumption of constant dividend growth is the main limitation of the model. It will be difficult for Companies to maintain continuous growth throughout their life due to different market conditions, , financial difficulties, etc.\n• If the required rate of return is less than the growth rate, the model may result in a negative value; thus, the model is ineffective in such cases.\n• The model does not account for market conditions or other non-dividend paying factors like the size of the Company, the brand value of the Company, market perception, local and geopolitical factors. All these factors affect the actual stock value, and hence, the model does not provide a holistic picture of the intrinsic stock value.\n• The model cannot be used for Companies that have irregular cash flows, dividend patterns, or financial leverage.\n• The model cannot be used for Companies in the growing stage that do not have any dividend history, or it has to be used with more assumptions.\n\n### Conclusion\n\nGordon’s growth model, although simple to understand, is based on a number of critical assumptions, thus has its own limitations. However, the model can be used for stable Companies having a history of dividend payments and future growth. For more unpredictable Companies, the multistage model could be used by taking into account some more realistic assumptions.\n\n### Gordon Growth Model Video\n\nThis article has been a guide to the Gordon Growth Model. Here we look at the two types of valuation models – stable growth and multi-stage models along with its assumptions, practical examples, and applications. You may also have a look at related articles on Valuation –" ]
[ null, "data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2060%2060'%3E%3C/svg%3E", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.91385216,"math_prob":0.9759902,"size":9765,"snap":"2021-43-2021-49","text_gpt3_token_len":2030,"char_repetition_ratio":0.17098658,"word_repetition_ratio":0.027980534,"special_character_ratio":0.20450589,"punctuation_ratio":0.09090909,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9942314,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-22T18:47:47Z\",\"WARC-Record-ID\":\"<urn:uuid:29b83007-8466-4da0-9cbe-d8a23a25cb67>\",\"Content-Length\":\"207727\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:0c9fc971-a39a-469f-b73a-fa8d2d874906>\",\"WARC-Concurrent-To\":\"<urn:uuid:9aac8ed8-0847-4642-86b0-32b41d936fd2>\",\"WARC-IP-Address\":\"34.211.154.233\",\"WARC-Target-URI\":\"https://www.wallstreetmojo.com/gordon-growth-model/\",\"WARC-Payload-Digest\":\"sha1:MW3LOHNTTO74VZCK4EHR4AIETCO6S2H5\",\"WARC-Block-Digest\":\"sha1:AMMBNOWLQWDOIDWD25MVY2ETSYIQF6I5\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323585518.54_warc_CC-MAIN-20211022181017-20211022211017-00409.warc.gz\"}"}
https://de.mathworks.com/help/fininst/rangefloatbybk.html
[ "# rangefloatbybk\n\nPrice range floating note using Black-Karasinski tree\n\n## Syntax\n\n``````[Price,PriceTree] = rangefloatbybk(BKTree,Spread,Settle,Maturity,RateSched)``````\n``````[Price,PriceTree] = rangefloatbybk(___,Name,Value)``````\n\n## Description\n\nexample\n\n``````[Price,PriceTree] = rangefloatbybk(BKTree,Spread,Settle,Maturity,RateSched)``` prices range floating note using a Black-Karasinski tree.Payments on range floating notes are determined by the effective interest-rate between reset dates. If the reset period for a range spans more than one tree level, calculating the payment becomes impossible due to the recombining nature of the tree. That is, the tree path connecting the two consecutive reset dates cannot be uniquely determined because there is more than one possible path for connecting the two payment dates.```\n\nexample\n\n``````[Price,PriceTree] = rangefloatbybk(___,Name,Value)``` adds optional name-value pair arguments.```\n\n## Examples\n\ncollapse all\n\nThis example shows how to compute the price of a range note using a Black-Karasinski tree with the following interest-rate term structure data.\n\n```Rates = [0.035; 0.042147; 0.047345; 0.052707]; ValuationDate = 'Jan-1-2011'; StartDates = ValuationDate; EndDates = {'Jan-1-2012'; 'Jan-1-2013'; 'Jan-1-2014'; 'Jan-1-2015'}; Compounding = 1; % define RateSpec RS = intenvset('ValuationDate', ValuationDate, 'StartDates', StartDates,... 'EndDates', EndDates, 'Rates', Rates, 'Compounding', Compounding); % range note instrument matures in Jan-1-2014 and has the following RateSchedule: Spread = 100; Settle = 'Jan-1-2011'; Maturity = 'Jan-1-2014'; RateSched(1).Dates = {'Jan-1-2012'; 'Jan-1-2013' ; 'Jan-1-2014'}; RateSched(1).Rates = [0.045 0.055 ; 0.0525 0.0675; 0.06 0.08]; % data to build the tree is as follows: VolDates = ['1-Jan-2012'; '1-Jan-2013'; '1-Jan-2014';'1-Jan-2015']; VolCurve = 0.01; AlphaDates = '01-01-2015'; AlphaCurve = 0.1; BKVS = bkvolspec(RS.ValuationDate, VolDates, VolCurve,... AlphaDates, AlphaCurve); BKTS = bktimespec(RS.ValuationDate, VolDates, Compounding); BKT = bktree(BKVS, RS, BKTS); % price the instrument Price = rangefloatbybk(BKT, Spread, Settle, Maturity, RateSched)```\n```Price = 102.7574 ```\n\n## Input Arguments\n\ncollapse all\n\nInterest-rate tree structure, specified by using `bktree`.\n\nData Types: `struct`\n\nNumber of basis points over the reference rate, specified as a `NINST`-by-`1` vector.\n\nData Types: `double`\n\nSettlement date for the floating range note, specified as a `NINST`-by-`1` vector of serial date numbers or date character vectors. The `Settle` date for every range floating instrument is set to the `ValuationDate` of the BK tree. The floating range note argument `Settle` is ignored.\n\nData Types: `double` | `char` | `cell`\n\nMaturity date for the floating-rate note, specified as a `NINST`-by-`1` vector of serial date numbers or date character vectors.\n\nData Types: `double` | `char` | `cell`\n\nRange of rates within which cash flows are nonzero, specified as a `NINST`-by-`1` vector of structures. Each element of the structure array contains two fields:\n\n• `RateSched.Dates``NDates`-by-`1` cell array of dates corresponding to the range schedule.\n\n• `RateSched.Rates``NDates`-by-`2` array with the first column containing the lower bound of the range and the second column containing the upper bound of the range. Cash flow for date `RateSched.Dates`(n) is nonzero for rates in the range `RateSched.Rates`(n,1) < `Rate` < `RateSched.Rate` (n,2).\n\nData Types: `struct`\n\n### Name-Value Pair Arguments\n\nSpecify optional comma-separated pairs of `Name,Value` arguments. `Name` is the argument name and `Value` is the corresponding value. `Name` must appear inside quotes. You can specify several name and value pair arguments in any order as `Name1,Value1,...,NameN,ValueN`.\n\nExample: `[Price,PriceTree] = rangefloatbybk(BKTree,Spread,Settle,Maturity,RateSched,'Reset',4,'Basis',5,'Principal',10000)`\n\nFrequency of payments per year, specified as the comma-separated pair consisting of `'Reset'` and a `NINST`-by-`1` vector.\n\nData Types: `double`\n\nDay-count basis representing the basis used when annualizing the input forward rate tree, specified as the comma-separated pair consisting of `'Basis'` and a `NINST`-by-`1` vector of integers.\n\n• 0 = actual/actual\n\n• 1 = 30/360 (SIA)\n\n• 2 = actual/360\n\n• 3 = actual/365\n\n• 4 = 30/360 (PSA)\n\n• 5 = 30/360 (ISDA)\n\n• 6 = 30/360 (European)\n\n• 7 = actual/365 (Japanese)\n\n• 8 = actual/actual (ICMA)\n\n• 9 = actual/360 (ICMA)\n\n• 10 = actual/365 (ICMA)\n\n• 11 = 30/360E (ICMA)\n\n• 12 = actual/365 (ISDA)\n\n• 13 = BUS/252\n\nData Types: `double`\n\nNotional principal amount, specified as the comma-separated pair consisting of `'Principal'` and a `NINST`-by-`1` vector.\n\nData Types: `double`\n\nDerivatives pricing options structure, specified as the comma-separated pair consisting of `'Options'` and a structure obtained from using `derivset`.\n\nData Types: `struct`\n\nEnd-of-month rule flag, specified as the comma-separated pair consisting of `'EndMonthRule'` and a nonnegative integer with a value of `0` or `1` using a `NINST`-by-`1` vector.\n\n• `0` = Ignore rule, meaning that a payment date is always the same numerical day of the month.\n\n• `1` = Set rule on, meaning that a payment date is always the last actual day of the month.\n\nData Types: `logical`\n\n## Output Arguments\n\ncollapse all\n\nExpected prices of the range floating notes at time 0, returned as a `NINST`-by-`1` vector.\n\nTree structure of instrument prices, returned as a structure containing trees of vectors of instrument prices and accrued interest, and a vector of observation times for each node. Values are:\n\n• `PriceTree.PTree` contains the clean prices.\n\n• `PriceTree.AITree` contains the accrued interest.\n\n• `PriceTree.tObs` contains the observation times.\n\ncollapse all\n\n### Range Note\n\nA range note is a structured (market-linked) security whose coupon rate is equal to the reference rate as long as the reference rate is within a certain range.\n\nIf the reference rate is outside of the range, the coupon rate is 0 for that period. This type of instrument entitles the holder to cash flows that depend on the level of some reference interest rate and are floored to be positive. The note holder gets direct exposure to the reference rate. In return for the drawback that no interest is paid for the time the range is left, they offer higher coupon rates than comparable standard products, like vanilla floating notes. For more information, see Range Note.\n\n Jarrow, Robert. “Modelling Fixed Income Securities and Interest Rate Options.” Stanford Economics and Finance. 2nd Edition. 2002." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6956741,"math_prob":0.9120357,"size":992,"snap":"2021-31-2021-39","text_gpt3_token_len":255,"char_repetition_ratio":0.13866396,"word_repetition_ratio":0.0,"special_character_ratio":0.20060484,"punctuation_ratio":0.13375796,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.969479,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-08-01T04:18:38Z\",\"WARC-Record-ID\":\"<urn:uuid:5f03a108-1cd6-4772-8795-20b301af6c8f>\",\"Content-Length\":\"104513\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ee361d63-6c12-43b0-b495-1ac3f8fb2c9b>\",\"WARC-Concurrent-To\":\"<urn:uuid:9c47749d-6fde-4291-a06e-ffd35ec39d63>\",\"WARC-IP-Address\":\"23.220.132.54\",\"WARC-Target-URI\":\"https://de.mathworks.com/help/fininst/rangefloatbybk.html\",\"WARC-Payload-Digest\":\"sha1:ZUTH7OHFYAUOUK5BRPGG4OFURHAYXWT6\",\"WARC-Block-Digest\":\"sha1:YFWQ5T3WLCPKHOURE5EGJQ35K3EGHE4R\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-31/CC-MAIN-2021-31_segments_1627046154158.4_warc_CC-MAIN-20210801030158-20210801060158-00493.warc.gz\"}"}
https://tutorials.freshersnow.com/cprogramming/scope-of-variables-in-c/
[ "# Scope of Variables in C\n\nScope of Variables in C: C variable scope is a region of the program where a defined variable can have existence and beyond the variable, where it can access. And there are three areas where the variables can be declared. They are as follows:\n\n• Inside the function or a block which is called local variables.\n• Outside of all functions which are called global variables.\n• While the definition of function parameters are called formal parameters.\n\n## Scope of Variables in C\n\nAnd in the C language, every variable defined in the scope. And you can also define scope as a section or region of a program where a variable has its existence.\n\nType Place declared\nlocal variables Inside a function or a block\nGlobal variables Out of all functions\nformal parameters In the function parameters\n\nLet us know briefly about the Scope of Variables in C such as local, global variables and formal parameters.\n\n### Scope of C Local Variables\n\nThe scope of C Local variables are nothing but, the variables which are declared within the function block and can be used only within functions.  While these can be used only by statements that are inside the function or a block of code. And these local scope variables are declared within braces { }.\n\nExample\n\n```#include<stdio.h>\nvoid test();\nint main() {\nint m = 22,n = 44;//m, n are local variables of the main function\nprintf(\"\\nvalues : m = %d and n = %d\", m, n);\ntest();\n}\nvoid test() {\nint a=50,b=80;//a, b are local variables of a test function\nprintf(\"\\nvalues : a = %d and b = %d\", a,b);  }```\nOutput\n\nvalues : m = 22 and n = 44\nvalues : a = 50 and b = 80\n\n### Scope of C Global Variables\n\nThe scope of C variable global will be present throughout the program. While these variables can be accessed throughout the program.\n\n(or)\n\nVariables which are declared outside a function block and can be accessed inside the function are called Global variables. All these variables are declared outside the main function. So, this variable is visible to the main function and all other subdomains.\n\nExample\n\n```#include<stdio.h>\nvoid test();\nint m=22,n=44;\nint a=50,b=80;\nint main()   {\nprintf(\"All variables are accessed from main function\");\nprintf(\"\\nvalues: m=%d:n=%d:a=%d:b=%d\", m,n,a,b);\ntest();   }\nvoid test()  {\nprintf(\"\\nAll variables are accessed from\" \\\" test function\");\nprintf(\"\\nvalues: m=%d:n=%d:a=%d:b=%d\", m,n,a,b);\n}```\n\nOutput\nAll variables are accessed from the main function\nvalues : m = 22 : n = 44 : a = 50 : b = 80\nAll variables are accessed from test function\nvalues : m = 22 : n = 44 : a = 50 : b = 80\n\n### Scope of C Formal Parameters\n\nThe C formal parameters are treated as local variables with-in-a fucntion and they will take the precedence over global variables.\n\nExample\n\n```#include<stdio.h>\nint a =20;/*global variables declaration*/\nint main() { /*local variables definition and declaration */\nint a =10;\nint b=20;\nint c=30;\nprintf(\"value of a in main( )=%d\\n \", a);\nc = sum(a,b);\nprintf(\"value of c in main( )=%d\\n\",c);\nreturn 0;}\nint sum(int a,int b) {\nprintf(\"value of a in sum( )= %d\\n\",a);\nprintf(\"value of b in sum( )=%d\\n\",a);\nreturn a+b; }```\n\nOutput\nvalue of a in main( )=10\nvalue of a in sum( )=10\nvalue of b in main( )=30\nvalue of b in sum( )=20\n\n### Environment Variables in C\n\nThese are the variables which are available for all the C applications and programs. And we can access these variables from anywhere in the program without declaring and initializing in an application or C program. And finally, the inbuilt functions which are used to access,  modify and set these environment variables are called environment functions in C.\n\nThere are 3 main functions which are used to access, modify and assign an environment variable in C. They are as follows:\n\n1. setenv( )\n2. getenv( )\n3. putenv( )\n\n### 1. setenv( )\n\nThis function sets the value of an environment variable. For example, assume that the environment variable  “File” is to be assigned “/usr/bin/example.c”\n\nExample\n\n```#include <stdio.h>\n#include <stdlib.h>\nint main()  {\nsetenv(\"FILE\", \"/usr/bin/example.c\",50);\nprintf(\"File = %s\\n\", getenv(\"FILE\"));\nreturn 0;  }```\n\nOutput:  File = /usr/bin/example.c\n\n### 2. getenv( )\n\nWhile it gives the current value of the environment variable. Let us assume that environment variable DIR is assigned to “/usr/bin/test/”.\n\nExample\n\n```#include <stdio.h>\n#include <stdlib.h>\nint main() {\nprintf(\"Directory = %s\\n\",getenv(\"DIR\"));\nreturn 0;  }```\n\nOutput: /usr/bin/test/\n\n### 3. putenv( )\n\nThis modifies the environment variable. And for clear idea check the example listed below.\n\nExample\n\n```#include <stdio.h>\n#include <stdlib.h>\nint main()   {\nsetenv(\"DIR\", \"/usr/bin/example/\",50);\nprintf(\"Directory name before modifying=\"\\\"%s\\n\", getenv(\"DIR\"));\nputenv(\"DIR=/usr/home/\");\nprintf(\"Directory name after modifying=\"\\\"%s\\n\", getenv(\"DIR\"));\nreturn 0;  }```\n\nOutput\nDirectory name before modifying = /usr/bin/example/\nDirectory name after modifying = /usr/home/" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7134576,"math_prob":0.9737465,"size":4834,"snap":"2021-21-2021-25","text_gpt3_token_len":1207,"char_repetition_ratio":0.17101449,"word_repetition_ratio":0.08502538,"special_character_ratio":0.28030616,"punctuation_ratio":0.14564103,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9958464,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-05-07T09:37:09Z\",\"WARC-Record-ID\":\"<urn:uuid:3da0f259-745c-4208-98fd-d08999f64539>\",\"Content-Length\":\"91164\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:22077c3d-24d5-4cb4-bad7-72264be9cb92>\",\"WARC-Concurrent-To\":\"<urn:uuid:176dae1c-4a9e-485c-bd55-8eb6f4f0b32e>\",\"WARC-IP-Address\":\"165.22.250.73\",\"WARC-Target-URI\":\"https://tutorials.freshersnow.com/cprogramming/scope-of-variables-in-c/\",\"WARC-Payload-Digest\":\"sha1:P4NCAPIQFL3KXCPZQDTNZS6PBU5E2XQS\",\"WARC-Block-Digest\":\"sha1:V3M6FMN5WZB3JI6PS5MWKKSPPUBSJC7U\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-21/CC-MAIN-2021-21_segments_1620243988775.80_warc_CC-MAIN-20210507090724-20210507120724-00563.warc.gz\"}"}
https://www.physicsforums.com/threads/pulses-in-wire-waves.117281/
[ "# Pulses in wire - waves\n\nHi, I am having difficulty understanding this question:\n\nA wire 5.0 m long and having a mass of 130 g is stretched under a tension of 220 N. If two pulses, separated in time by 30.0 ms, are generated, one at each end of the wire, where will the pulses first meet?\n\nm (distance from the left end of the wire)\n\nFrom my deduction the each wave starts from the opposite side.\nI figured out the v=91.9866 b/c the square root of 220/(.13/5)=91.9866 m/s\n\nI then set up equations\nt=time x=distance\n91.9866t=x\n91.9866(t-3*10^-3)=5-x\n\nI got x to equal 2.6379799 m\nHowever, I am not certain if this is the correct answer and I am down to my last submission. I was wondering if anyone could agree with what I got.\n\nRelated Introductory Physics Homework Help News on Phys.org\nHootenanny\nStaff Emeritus\nGold Member\nI get 1.12m for my answer. Here's my calcs;\n\n$$v = \\sqrt{\\frac{T}{\\frac{m}{L}}} = \\sqrt{\\frac{220}{\\frac{0.13}{5}}} = 91.9866 m/s$$\n\n$$x = vt \\Rightarrow t = \\frac{x}{v}$$\n$$5 - x = v(t + 0.03)$$\n\nSubbing $t = \\frac{x}{v}$ into $5 - x = v(t + 0.03)$ gives;\n\n$$5 - x = v\\left( \\frac{x}{v} + 0.03 \\right) = x + 0.03v$$\n\n$$2x = 5 - 0.03v \\Rightarrow x = \\frac{5 - 0.03\\times 91.9866}{2}$$\n\n$$\\fbox{ x = 1.120201m }$$\n\nI'm not sure that I'm right though", null, "-Hoot\n\nnrqed\nHomework Helper\nGold Member\nnick85 said:\nHi, I am having difficulty understanding this question:\n\nA wire 5.0 m long and having a mass of 130 g is stretched under a tension of 220 N. If two pulses, separated in time by 30.0 ms, are generated, one at each end of the wire, where will the pulses first meet?\n\nm (distance from the left end of the wire)\n\nFrom my deduction the each wave starts from the opposite side.\nI figured out the v=91.9866 b/c the square root of 220/(.13/5)=91.9866 m/s\n\nI then set up equations\nt=time x=distance\n91.9866t=x\n91.9866(t-3*10^-3)=5-x\n\nI got x to equal 2.6379799 m\nHowever, I am not certain if this is the correct answer and I am down to my last submission. I was wondering if anyone could agree with what I got.\nI disagree with your answer and agree with Hootenanny. Your mistake is the sign of the 3*10^-3 in the second line. It should be a plus sign.\n\nBasically (after substitution) you wrote x- 91.99* 3*10^-3 = 5 -x or\n2x= 5 + 91.99*3*10^-3 or\n\n2x= 5 + 2.76\n\nBut it should be 2x= 5 - 2.76.\n\n(it's easy to see. In the first 30 ms, the first pulse travels 2.76 m. There is still a distance of 5-2.76 to travel for both pulses when the second pulse will be emitted. They will obviously meet halfway through this remaining distance, therefore the answer is x= 1/2(5-2.76).\n\nPatrick" ]
[ null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9139467,"math_prob":0.9958477,"size":1356,"snap":"2020-10-2020-16","text_gpt3_token_len":407,"char_repetition_ratio":0.09615385,"word_repetition_ratio":0.91828793,"special_character_ratio":0.33775812,"punctuation_ratio":0.11275964,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9995957,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-24T00:05:31Z\",\"WARC-Record-ID\":\"<urn:uuid:f98a88e5-fd53-4b4c-ac8e-2a6dc4626b10>\",\"Content-Length\":\"70872\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:3602086c-8290-4901-b1a7-66e23d74576c>\",\"WARC-Concurrent-To\":\"<urn:uuid:17ba9f0d-a304-40c3-b5c5-3fb33643ea70>\",\"WARC-IP-Address\":\"23.111.143.85\",\"WARC-Target-URI\":\"https://www.physicsforums.com/threads/pulses-in-wire-waves.117281/\",\"WARC-Payload-Digest\":\"sha1:PKRPRDBO62X2JQWSSZ5VXIXBPIVXZJ52\",\"WARC-Block-Digest\":\"sha1:63EUAWTRYZ7ILNPRZKZNURJRHCO7FQ7E\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875145859.65_warc_CC-MAIN-20200223215635-20200224005635-00084.warc.gz\"}"}
https://www.doubtnut.com/question-answer/the-diagram-represents-two-inequation-a-and-b-on-real-number-lines-write-down-a-and-b-in-set-builder-644443809
[ "", null, "", null, "", null, "", null, "", null, "HomeEnglishClass 10MathsChapterLinear Inequations\n\nThe diagram represents two ine...\n\nThe diagram represents two inequation A and B on real number lines: <img src=\"https://doubtnut-static.s.llnwi.net/static/physics_images/SEL_RKB_ICSE_MAT_X_C04_E02_032_Q01.png\" width=\"80%\"> Write down A and B in set builder notation.", null, "Step by step solution by experts to help you in doubt clearance & scoring excellent marks in exams.\n\nUpdated On: 13-5-2021", null, "Apne doubts clear karein ab Whatsapp par bhi. Try it now.", null, "Get Answer to any question, just click a photo and upload the photo\nand get the answer completely free,\n\nWatch 1000+ concepts & tricky questions explained!", null, "", null, "Transcript\n\nTimeTranscript\n00:00 - 00:59the diagram represents to inequations A and B on real number lines write down A and B in set builder form notation for the a Baat we can say that X belongs to any real number such that no we have been given the values - 2 and 5 that means - 2 and X and 5 is less than less than now we need to see whether to is included in the in minus 2 is included in the interval and 5 is included or not see here we have a curve sign this means the value of 5 is not included in this interval but here this is on -2 so that means -2 is included so there will be a is equal to sin but here it won't be and is equal to sin is becomes invitation for similar to the notation for B part becomes X belongs to real numbers such that the values are - 4 x and\n01:00 - 01:59evaluate 3 less than less than because it is between - 4 and 3 sunao also here also will see the same year the value is on -4 that means -4 is included in the world will be n is equal to sin but three hair is not included in the interval hence the value is less than three but not 3 so we know is equal to sin\n\nRelated Videos", null, "43959169\n\n12.6 K+\n\n253.4 K+\n\n2:10\nThe inequation represented by the graph given below is : <br> <img src=\"https://d10lpgp6xz60nq.cloudfront.net/physics_images/PS_MATH_X_C18_E04_008_Q01.png\" width=\"80%\"gt", null, "43959174\n\n4.2 K+\n\n85.1 K+\n\n2:17\nThe inequation that best describes the graph given below is _________ <br> <img src=\"https://d10lpgp6xz60nq.cloudfront.net/physics_images/PS_MATH_X_C18_E04_013_Q01.png\" width=\"80%\"gt", null, "43959175\n\n5.1 K+\n\n102.8 K+\n\n2:10\nThe inequation that best describes the following graph is _________ <br> <img src=\"https://d10lpgp6xz60nq.cloudfront.net/physics_images/PS_MATH_X_C18_E04_014_Q01.png\" width=\"80%\"gt", null, "43959203\n\n2.3 K+\n\n15.1 K+\n\n4:23\nWhich inequations represent the shaded region in the given figure <br> <img src=\"https://d10lpgp6xz60nq.cloudfront.net/physics_images/PS_MATH_X_C18_E06_008_Q01.png\" width=\"80%\"gt", null, "" ]
[ null, "https://static.doubtnut.com/images/doubtnut_header_logo_white_new.svg", null, "https://static.doubtnut.com/images/ic-search-amp.svg", null, "https://static.doubtnut.com/images/sticky_menu_camera_icon.svg", null, "https://static.doubtnut.com/images/mweb-us-icon-small-profile.svg", null, "https://static.doubtnut.com/images/desktop-header-login-icon.svg", null, "https://static.doubtnut.com/images/mweb-icon-video-page-icon-small-text-book.svg", null, "https://static.doubtnut.com/images/wp-overlay-icon.svg", null, "https://static.doubtnut.com/images/sticky_menu_camera_icon.svg", null, "https://static.doubtnut.com/images/ad-banner-img_compressed.png", null, "https://static.doubtnut.com/images/mweb-icon-video-page-icon-small-text-book.svg", null, "https://static.doubtnut.com/images/new-matches-play-icon.svg", null, "https://static.doubtnut.com/images/new-matches-play-icon.svg", null, "https://static.doubtnut.com/images/new-matches-play-icon.svg", null, "https://static.doubtnut.com/images/new-matches-play-icon.svg", null, "https://static.doubtnut.com/images/dn_chat_icon.svg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.93729323,"math_prob":0.9540474,"size":2227,"snap":"2022-05-2022-21","text_gpt3_token_len":562,"char_repetition_ratio":0.11066127,"word_repetition_ratio":0.004761905,"special_character_ratio":0.2559497,"punctuation_ratio":0.06,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9911189,"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],"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],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-01-26T04:28:49Z\",\"WARC-Record-ID\":\"<urn:uuid:eeb6cb88-aab9-428e-b595-0ea4fc9a4ac9>\",\"Content-Length\":\"446780\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:01ea1a54-8d04-4a60-a265-6a1032e64b0f>\",\"WARC-Concurrent-To\":\"<urn:uuid:115858b1-f523-45a6-8eb2-127746adfac6>\",\"WARC-IP-Address\":\"23.216.132.53\",\"WARC-Target-URI\":\"https://www.doubtnut.com/question-answer/the-diagram-represents-two-inequation-a-and-b-on-real-number-lines-write-down-a-and-b-in-set-builder-644443809\",\"WARC-Payload-Digest\":\"sha1:VAHA3WNGJBU43AIUBWRDCRUNWO7ZGJ3X\",\"WARC-Block-Digest\":\"sha1:4ODMKR6X5ZTTE5O2UHZLLEH7SKPTENP7\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-05/CC-MAIN-2022-05_segments_1642320304915.53_warc_CC-MAIN-20220126041016-20220126071016-00018.warc.gz\"}"}
http://wiki.cucat.org/pmwiki.php/CPlusPlus/Chapter4
[ "Search:\n\nConnect with us:\n\nChapter4\n\n4.1.1\n\nImage 1:\n\nThis is an image of a signpost with multiple directions which have been written out below.\n\nSign post directions: arr , ptarr [r], ptr, ptr , arr , arr, array and pointer.\n\n4.1.2\n\nImage 1:\n\nThis image shows a diagram of a pointer array which has been described below.\n\nThere are six rows of boxes. The first row has two rectangles, one is coloured blue and has the text int ** in black, the second is orange with the text int *, then there are three small red squares with the text int written in each one. Between the two rectangles in the first row there is a space with an arrow pointing from the first rectangle to the second one and an arrow pointing from the second rectangle to the three small red squares. There are another five rows replicated directly underneath the first orange rectangle.\n\n4.1.3\n\nImage 1:\n\nThis image shows an example of a ptrarr variable which has been written out below.\n\nint **ptrarr;\n\n4.1.4\n\nImage 1:\n\nThis image shows the declaration of a ptrarr variable as well as an array of pointers. This code has been written out below.\n\nptrarr = new int * [rows];\n\n4.1.5\n\nImage 1:\n\nThis image shows an example of storing and allocating memory in a pointer array; the code is written out below.\n\nfor(int r = 0; r < rows; r++)\nptarr[r] = new int[columns];\n\n4.1.6\n\nImage 1:\n\nThis image shows an example of a ptrarr variable declaration, which is written out below.\n\nPtrarr [r] [c] = 0;\n\n4.1.7\n\nImage 1:\n\nThis image shows a diagram of how a ptrarr variable works. This has been described below.\n\nThere are six rows of boxes. The first row has two rectangles, one is coloured blue with the text ptrarr in white, the second is orange with no text, and then there are three small squares again with no text. There is a space between the two rectangles with an arrow pointing from the first rectangle to the second one and an arrow pointing from the second rectangle to the three small squares. There are another two rows replicated directly underneath the first orange rectangle, with the third row containing a blue rectangle with the text ptrarr and the second small square also being blue with the text ptrarr the other three rows are the same as the orange rectangle and the small orange squares.\n\n4.1.8\n\nImage 1:\n\nThis image shows a table of triangular matrices which have been written out below.\n\nValue – means variable or pointer in the square Blank – means no variable or pointer in the square\n\n Value Value Value Blank Blank Blank Blank Blank Value Value Value Blank Blank Blank Blank Value Value Value Value Blank Blank Blank Value Value Value Value Value Blank Blank Value Value Value Value Value Value\n\n4.1.9\n\nImage 1:\n\nThis image shows an example of code for a triangle array which has been written out below.\n\n#include <iostream>\nusing namespace std;\n\nint main(void)\n{\nint row = 5, cols = 5;\nint **arr;\n// allocate and initialize the array\narr = new int * [rows];\nfor(int r = 0; r < rows; r++){\narr[r] = new int[r + 1];\nfor(int c = 0; c <= r; c++)\narr[r][c] = (r + 1) * 10 + c + 1;\n}\n//print the array\nfor(int r = 0; r < rows; r++){\nfor(int c = 0; c <= r; c++)\ncout<<arr [r][c]<<” “;\ncout<<endl;\n}\n// free the array\nfor(int r = 0; r < rows; r++)\ndelete [] arr [r];\ndelete [] arr;\nreturn 0;\n}\n\n4.2.1\n\nImage 1:\n\nThis image shows code for converting data types, this is written out below.\n\nLong data = 1;\n\n4.2.2\n\nImage 1:\n\nThis image shows an example of code for implicit conversions. This has been written out below.\n\nint Int = 1;\nshort Short = 2;\nlong Long = 3;\nfloat Float = 4.0;\ndouble Double = 5.0;\n\nint f(int x){\nreturn x;\n}\n\n//example no.1\nInt = Int + Short;\n//example no.2\nIf(Double)\nDouble--;\n//example no.3\nFloat = 1;\n//example no.4\nf(Float);\n//example no.5\nfloat g(void) {\nreturn -1;\n}\n\n4.2.3\n\nImage 1:\n\nThis image shows an example of code for explicit conversions. This has been written out below.\n\n#include<iostream>\nusing namespace std;\nint main(void){\nfloat f = 3.21;\ndouble d = 1.23;\nint k = int(f) + (int)d;\ncout<<k<<endl;\nreturn 0;\n}\n\n4.2.4\n\nImage 1:\n\nThis image shows an example of code for conversion of data types. This has been written out below.\n\n#include<iostream>\nusing namespace std;\nint main(void){\nshort s = 32767;\nint i = s;\nif(i == s)\ncout<<”equal”<<endl;\nelse\ncout<<”not equal”<<endl;\nreturn 0;\n}\n\n4.2.5\n\nImage 1:\n\nThis image shows another example of code for conversion of data types. This has been written out below.\n\n#include<iostream>\nusing namespace std;\nint main(void){\nint i = 2147483647;\nshort s = i;\nif(i == s)\ncout<<”equal”<<endl;\nelse\ncout<<”not equal”<<endl;\nreturn 0;\n}\n\n4.2.6\n\nImage 1:\n\nThis image shows another example of code for data type conversion. This has been written out below.\n\n#include<iostream>\nusing namespace std;\nint main(void){\nfloat f = 1234.5678;\ndouble d = f;\nif(d == f)\ncout<<”equal”<<endl;\nelse\ncout<<”not equal”<<endl;\nreturn 0;\n}\n\n4.2.7\n\nImage 1:\n\nThis image shows another example of code for data type conversion, which has been written out below.\n\n#include<iostream>\nusing namespace std;\nint main(void){\ndouble d = 123456.789012;\nfloat f = d;\nif(d == f)\ncout<<”equal”<<endl;\nelse\ncout<<”not equal”<<endl;\nreturn 0;\n}\n\n4.2.8\n\nImage 1:\n\nThis image shows another example of code for data type conversion. This has been written out below.\n\n#include<iostream>\nusing namespace std;\nint main(void){\nfloat f = 123.456;\nfloat g = 1e100;\nint i = f;\nint j = g;\n\ncout<<i<<endl;\ncout<<j<<endl;\nreturn 0;\n}\n\n4.2.9\n\nImage 1:\n\nThis image shows an example of code for promoting data types. This has been written out below.\n\n#include<iostream>\nusing namespace std;\nint main(void){\nint Int = 2;\nchar Char = 3;\nshort Short = 4;\nfloat Float = 5.6;\n\nInt = Short + Char + Float;\ncout<<Int<<endl;\nreturn 0;\n}\n\n4.3.1\n\nImage 1:\n\nThis image shows an example of a string variable in C++, which has been written out below.\n\n#include <string>\nstring PetName;\n\n4.3.2\n\nImage 1:\n\nThis image shows an initialized string variable in C++, which is written out below.\n\nstring PetName = “Lassie”;\n\n4.3.3\n\nImage 1:\n\nThis image shows another example of an initialized string variable in C++, which has been written out below.\n\nstring PetName(“Lassie”);\n\n4.3.4\n\nImage 1:\n\nThis image shows another example of an initialized string variable in C++, which has been written out below.\n\nstring IsHome = PetName;\nstring HasReturned(PetName);\n\n4.3.5\n\nImage 1:\n\nThis image shows the string operator plus sign in C++, which has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring TheGood = “jekyII”, TheBad = “Hyde”;\ncout<<TheGood + “ & ” + TheBad<<endl;\ncout<<TheBad + “ & “ + TheGood<<endl;\nreturn 0;\n}\n\n4.3.6\n\nImage 1:\n\nThis image shows another example of the string operator plus sign in C++, which has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring String;\nString = “A” + “B”;\nString = String + “C”;\nString = “B” + String;\ncout<<String<<endl;\nreturn 0;\n}\n\n4.3.7\n\nImage 1:\n\nThis example shows the string operator plus and equal signs in C++. This has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring TheQuestion = “To Be”;\nTheQuestion += “or not to be”;\ncout<<TheQuestion<<endl;\nreturn 0;\n}\n\n4.3.8\n\nImage 1:\n\nThis image shows an example of inputting strings in C++, which has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring LineOfTypes;\ncin>>LineOfTypes;\ncout<<LineOfTypes<<endl;\nreturn 0;\n}\n\n4.3.9\n\nImage 1:\n\nThis image shows another example of inputting strings in C++, which has also been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring LineOfTypes;\ngetline(cin,LineOfTypes);\ncout<<LineOfTypes<<endl;\nreturn 0;\n}\n\n4.3.10\n\nImage 1:\n\nThis image shows an example of comparing strings in C++, which is written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring secret = “abracadabra”;\ncout<<”Access granted”<<endl;\nelse\ncout<<”Sorry”;\nreturn 0;\n}\n\n4.3.11\n\nImage 1:\n\nThis image shows an example of comparing two strings in C++, this has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring str1, str2;\ncout<<”Enter 2 lines of text:”<<endl;\ngetline(cin,str1);\ngetline(cin,str2);\ncout<<”You’ve entered:”<<endl;\nif(str1 == str2)\ncout<<”\\””<<str1<<”\\” == \\””<<str2<<”\\””<<endl;\nelse if(str1 > str2)\ncout<<”\\””<<str1<<”\\” > \\””<<str2<<”\\””<<endl;\nelse\ncout<<”\\””<<str2<<”\\” > \\””<<str1<<”\\””<<endl;\nreturn 0;\n}\n\n4.3.12\n\nImage 1:\n\nThis image shows an example of comparing strings in C++ using the objective approach. This has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring secret = “abracadabra”;\ncout<<”Access granted”<<endl;\nelse\ncout<<”Sorry”;\nreturn 0;\n}\n\n4.3.13\n\nImage 1:\n\nThis image shows an example of comparing two stings in C++ using the objective approach. This has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring str1, str2;\ncout<<”Enter 2 lines of text:”<<endl;\ngetline(cin,str1);\ngetline(cin,str2);\ncout<<”You’ve entered:”<<endl;\nif(str1.compare(str2) == 0)\ncout<<”\\””<<str1<<”\\” == \\””<<str2<<”\\””<<endl;\nelse if(str1.compare(str2) > 0)\ncout<<”\\””<<str1<<”\\” > \\””<<str2<<”\\””<<endl;\nelse\ncout<<”\\””<<str2<<”\\” < \\””<<str1<<”\\””<<endl;\nreturn 0;\n}\n\n4.4.1\n\nImage 1:\n\nThis image shows an example of substrings in C++. This has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring str1, str2;\nstr1 = “ABCDEF”;\nstr2 = str1.substr(1,1) + str1.substr(4) + str1.substr();\ncout<<str2<<endl;\nreturn 0;\n}\n\n4.4.2\n\nImage 1:\n\nThis is an example of length of strings in C++, this has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring str = “12345”;\nint pos = 1;\ncout<<str.substr(pos).substr(pos).substr(pos).size()<<endl;\nreturn 0;\n}\n\n4.4.3\n\nImage 1:\n\nThis image shows another example of comparing strings in C++, which has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring S = “ABC”;\ncout<<S.compare(1,1,”BC”) + S.compare(2,1,S,2,2)<<endl;\nreturn 0;\n}\n\n4.4.4\n\nImage 1:\n\nThis image shows an example of finding substrings within strings in C++, this has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring greeting = “My name is Bond, James Bond.”;\nstring we_need_him = “james”;\nif(greeting.find(we_need_him) != string::npos)\ncout<<”OMG He’s here!”<<endl;\nelse\ncout<<”it’s not him.”<<endl;\nint comma = greeting.find(‘,’);\nif(comma != string::npos)\ncout<<”Curious. He used a comma.”<<endl;\nreturn 0;\n}\n\n4.4.5\n\nImage 1:\n\nThis image shows an example of how to determine the size of a string in C++. This has been written out below.\n\n# include<string>\nusing namespace std;\n\nvoid printInfo(string &s){\ncout<<”length =”<<s.length()<<endl;\ncout<<”capacity =”<<s.capacity()<<endl;\ncout<<”max size =”<<s.max_size()<<endl;\ncout<<”-----------“<<endl;\n}\n\nint main(void){\nstring TheString = “content”;\nprintInfo(TheString);\nfor(int i = 0; i < 10; i++)\nTheString += TheString;\nprintInfo(TheString);\nreturn 0;\n}\n\n4.4.6\n\nImage 1:\n\nThis image shows an example of controlling the size of memory allocated for strings in C++. This has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nvoid PrintInfo(string &s){\ncout<<”content =\\””<<s<<”\\””;\ncout<<”capacity =”<<s.capacity()<<endl;\ncout<<”----------“<<endl;\n}\n\nint main(void){\nstring TheString = “content”;\nPrintInfo(TheString);\nTheString.reserve(100);\nPrintInfo(TheString);\nTheString.reserve(0);\nPrintInfo(TheString);\nReturn 0;\n}\n\n4.4.7\n\nImage 1:\n\nThis image shows how to control the content of a string in C++. This has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nvoid PrintInfo(string &s){\ncout<<”content =\\””<<s<<”\\””;\ncout<<”capacity = ”<<s.capacity()<<endl;\ncout<<”is empty? “<<(s.empty() ? “yes” : “no”)<<endl;\ncout<<”-------------“<<endl;\n}\n\nint main(void){\nstring TheString = “content”;\nPrintInfo(TheString);\nTheString.resize(50,’?’);\nPrintInfo(TheString);\nTheString.clear();\nPrintInfo(TheString);\n\nReturn 0;\n}\n\n4.4.8\n\nImage 1:\n\nThis image shows how to control the content of a string in C++. This has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring TheString = “content”;\nfor(int i = 0; i < TheString.length(); i++)\nTheString[i] = TheString[i] – ‘a’ + ‘A’;\ncout<<TheString<<endl;\nreturn 0;\n}\n\n4.5.1\n\nImage 1:\n\nThis image shows a new function for substrings in C++, known as append. This has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring TheString = “content”;\nstring TheString;\nNewString.append(TheString);\nNewString.append(TheString,0,3);\nNewString.append(2,’!’);\ncout<<NewString<<endl;\nreturn 0;\n}\n\n4.5.2\n\nImage 1:\n\nThis image shows an example of appending a character in a string in C+. This has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring TheString;\nfor(char c = ‘A’; c <= ‘Z’; c++)\nTheString.push_back(c);\ncout<<TheString<<endl;\nreturn 0;\n}\n\n4.5.3\n\nImage 1:\n\nThis image shows an example of inserting a string or a character into a string in C++. This has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring quote = “Whyserious?”, anyword = “monsoon”;\nquote.insert(3,2,’ ‘).insert(4,anyword,3,2);\ncout<<quote<<endl;\nreturn 0;\n}\n\n4.5.4\n\nImage 1:\n\nThis image shows how to assign a string of characters into a string in C++. This has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring sky;\nsky.assign(80,’*’);\ncout<<sky<<endl;\nreturn 0;\n}\n\n4.5.5\n\nImage 1:\n\nThis image shows an example of replacing a substring with another substring in C++. This has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring ToDO = “I’ll think about that in one hour”;\nstring Schedule = “today yesterday tomorrow”;\n\nToDo.replace(22,12, Schedule, 16, 8);\ncout<<ToDo<<endl;\nreturn 0;\n}\n\n4.5.6\n\nImage 1:\n\nThis image shows how to remove part of a sub string in C++. This has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring WhereAreWe = “I’ve got a feeling we’re not in Kansas anymore”;\n\nWhereAreWe.erase(38,8).erase(25,4);\ncout<< WhereAreWe<<endl;\nreturn 0;\n}\n\n4.5.7\n\nImage 1:\n\nThis image shows an example of exchanging the content of two strings in C++. This has been written out below.\n\n#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main(void){\nstring Drink = “A martini”;\nstring Needs = “Shaken, not stirred”;\n\ncout<<Drink<<”.”<<Needs<<”.”<<endl;\nDrink.swap(Needs);\ncout<<Drink<<”.”<<Needs<<”.”<<endl;\nreturn 0;\n}\n\n4.6.1\n\nImage 1:\n\nThis image shows a list of family names, these have been written out below.\n\nFamily Names: Hans, Mathew, WIlFried, Lisa, Ann, Camille, Akiko, Wolfgang, Katsu, Anaruk, Abdul, Juan, Pietro and Stephan.\n\n4.6.2\n\nImage 1:\n\nThis image shows a car’s license plate with the word namespace.\n\n4.6.3\n\nImage 1:\n\nThis image shows an example of namespace in C++, the example has been written out below.\n\n#include <iostream>\n\nint main(void){\ncout<<”play it, Sam”<<endl;\nreturn 0;\n}\n\n4.6.4\n\nImage 1:\n\nThis image shows another example of namespace in C++. This has been written out below.\n\n#include <iostream>\n\nint main(void){\nstd::cout<<”Play As time goes by”<<std::endl;\nreturn 0;\n}\n\n4.6.5\n\nImage 1:\n\nThis image shows an example of defining a namespace in C++, which has been written out below.\n\n#include <iostream>\n\nusing namespace std;\n\nnamespace Hogwarts{\nint Troll = 1;\n}\n\nnamespace Mordor{\nint Troll = 2;\n}\n\nint main(void){\ncout<<Hogwarts::Troll<<” “<<Mordor::Troll<<endl;\nreturn 0;\n}\n\n4.6.6\n\nImage 1:\n\nThis image shows an example of using a namespace in C++. This has been written out below.\n\n#include <iostream>\n\nusing namespace std;\n\nnamespace Hogwarts{\nint Troll = 1;\n}\n\nnamespace Mordor{\nint Troll = 2;\n}\n\nusing namespace Hogwarts;\n\nint main(void){\ncout<<Troll<<” “<<Mordor::Troll<<endl;\nreturn 0;\n}\n\n4.6.7\n\nImage 1:\n\nThis image shows another example of using a name space in C++. This has been written out below.\n\n#include <iostream>\nusing namespace std;\nnamespace Hogwarts{\nint Troll = 1;\n}\nnamespace Mordor{\nint Troll = 2;\n}\nint main(void){\n{\nusing namespace Hogwarts;\ncout<<Troll<<” “;\n}\n{\nusing namespace Mordor;\ncout<<Troll<<endl;\n}\nreturn 0;\n}\n\n4.6.8\n\nImage 1:\n\nThis image shows how to expand a namespace in C++. This has been written out below.\n\n#include <iostream>\nusing namespace std;\nnamespace Hogwarts{\nint Troll = 1;\n}\nnamespace Mordor{\nint Troll = 2;\n}\nnamespace Hogwarts{\nfloat Wizard = -0.5;\n}\nnamespace Mordor{\nfloat Wizard = 0.5;\n}\nint main(void){\ncout<<Hogwarts::Troll<<” “<<Hogwarts::Wizard<<endl;\ncout<<Mordor::Troll<<” “<<Mordor::Wizard<<endl;\nreturn 0;\n}\n\n4.6.9\n\nImage 1:\n\nThis image shows the use of an entity in C++. This has been written out below.\n\n#include <iostream>\nusing namespace std;\nnamespace Hogwarts{\nint Troll = 1;\nfloat Wizard = -0.5;\n}\nnamespace Mordor{\nint Troll = 2;\nfloat Wizard = 0.5;\n}\nusing Mordor::Trolls;\nusing Hogwarts::Wizard;\nint main(void){\ncout<<Hogwarts::Troll<<” “<<Wizard<<endl;\ncout<<Troll<<” “<<Mordor::Wizard<<endl;\nreturn 0;\n}\n\n4.6.10\n\nImage 1:\n\nThis image shows an example of an unnamed namespace in C++. This has been written out below.\n\n#include <iostream>\nusing namespace std;\nnamespace Hogwarts{\nint Troll = 1;\nfloat Wizard = -0.5;\n}\nnamespace Mordor{\nint Troll = 2;\nfloat Wizard = 0.5;\n}\nusing Mordor::Trolls;\nusing Hogwarts::Wizard;\nint main(void){\ncout<<Troll<<” “<<Wizard<<endl;\ncout<<Mordor::Troll<<” “<<Mordor::Wizard<<endl;\nreturn 0;\n}\n\n4.6.11\n\nImage 1:\n\nThis example shows an example of renaming a namespace in C++. This has been written out below.\n\n#include <iostream>\nusing namespace std;\nnamespace What_A_Wonderful_Place_For_A_Young_Sorcerer{\nint Troll = 1;\nfloat Wizard = -0.5;\n}\nnamespace Mordor{\nint Troll = 2;\nfloat Wizard = 0.5;\n}\nnamespace What_A_Wonderful_Place_For_A_Young_Sorcerer;\nint main(void){\ncout<<Hogwarts::Troll<< “ “<<\nWhat_A_Wonderful_Place_For_A_Young_Sorcerer::Wizard<<endl;\ncout<<Mordor::Troll<<” “<<Mordor::wizard<<endl;\nreturn 0;\n}\nPage last modified on August 01, 2017, at 04:03 AM" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.60930675,"math_prob":0.939833,"size":18363,"snap":"2019-43-2019-47","text_gpt3_token_len":5318,"char_repetition_ratio":0.23035024,"word_repetition_ratio":0.4320458,"special_character_ratio":0.3155258,"punctuation_ratio":0.20864613,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9742903,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-10-19T07:28:53Z\",\"WARC-Record-ID\":\"<urn:uuid:2e4f61dc-38f5-4a21-b93f-92807114d5c1>\",\"Content-Length\":\"39568\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:164e24a5-aba6-467d-b5d6-3f2e5a8bc052>\",\"WARC-Concurrent-To\":\"<urn:uuid:9ea098fb-3879-49c9-891e-e53944ca3e82>\",\"WARC-IP-Address\":\"192.158.225.192\",\"WARC-Target-URI\":\"http://wiki.cucat.org/pmwiki.php/CPlusPlus/Chapter4\",\"WARC-Payload-Digest\":\"sha1:QJNENTJ3YASIHE6ZIQTZNKB6UBR3AXDF\",\"WARC-Block-Digest\":\"sha1:G2NANZJHBQHHE4WO2JTK464ASUBHQJRP\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-43/CC-MAIN-2019-43_segments_1570986692126.27_warc_CC-MAIN-20191019063516-20191019091016-00469.warc.gz\"}"}
https://flyingcoloursmaths.co.uk/googles-keypad/
[ "One of the many lovely things about Big MathsJam is that I’ve found My People - I’ve made several very dear friends there, introduced others to the circle, and get to stay in touch with other maths fans through the year. It’s golden.\n\nAdam Atkinson is one of those dear friends, and one of the ways he stays in touch is to send me puzzles. This one, a question Alex Golec has used to interview people at Google, made me struggle for a bit, then grin in smug triumph - which is a very MathsJam reaction.\n\n### The problem\n\nIf you can’t be bothered clicking the link, the problem is to determine how many different phone numbers you can dial if you can only make $n$ knight’s moves on a standard keypad. Nothing artificial about that, no sir.\n\nGolec’s post goes into some detail about how to solve it with code, which might be fine for Google, but it’s not the MathsJam way ((It’s totally OK to solve things with code at MathsJam. It’s just harder to be smug about.))\n\nI did it a different way. Below the line be spoilers.\n\nMy first move was to draw a graph showing how the different numbers connect:", null, "Number 5, it turns out, doesn’t allow a move anywhere else, so it’s not on the graph.\n\nThe nine digits can be grouped into four classes according to the kinds of neighbours they have: Corner digits (1, 3, 7 and 9), Triples (4 and 6), Middles (2 and 8) and Zero (well, 0).\n\nI’m going to set up four functions here: $C(n)$, $T(n)$, $M(n)$ and $Z(n)$, each being how many numbers you can dial starting from a digit in each of the four classes.\n\nIf you start at a Corner, you can immediately move to a Triple or to a Middle, which means $C(n) = T(n-1) + M(n-1)$.\n\nIf you start at a Triple, you can move to either of two Corners, or to Zero: $T(n) = 2C(n-1) + Z(n-1)$.\n\nStarting at a Middle, your next move is to either of two Corners: $M(n) = 2C(n-1)$.\n\nAnd starting at Zero, your next move is to either Triple: $Z(n) = 2T(n-1)$.\n\nWe also have, by definition, $C(0) = T(0) = M(0) = Z(0) = 1$.\n\n### I spy a recurrence relation!\n\nWe have four linked recurrence relations - and what with this being Google and all, that looks like a linear algebra problem. We can set it up as a matrix:\n\n$\\left( \\begin{array}{c} C(n) \\\\ T(n) \\\\ M(n) \\\\ Z(n) \\end{array} \\right) = \\left( \\begin{array}{cccc} 0 & 1 & 1 & 0 \\\\ 2 & 0 & 0 & 1 \\\\ 2 & 0 & 0 & 0 \\\\ 0 & 2 & 0 & 0 \\end{array} \\right) \\left( \\begin{array}{c} C(n-1) \\\\ T(n-1) \\\\ M(n-1) \\\\ Z(n-1) \\end{array} \\right)$\n\nIf I say $\\bb{X}(n) = \\left( \\begin{array}{c} C(n) \\\\ T(n) \\\\ M(n) \\\\ Z(n) \\end{array} \\right)$ and $\\bb{M} = \\left( \\begin{array}{cccc} 0 & 1 & 1 & 0 \\\\ 2 & 0 & 0 & 1 \\\\ 2 & 0 & 0 & 0 \\\\ 0 & 2 & 0 & 0 \\end{array} \\right)$, that can be written as:\n\n$\\bb{X}(n) = \\bb{M} \\cdot \\bb{X}(n-1)$, with $\\bb{X}(0) = \\left( \\begin{array}{c} 1 \\\\ 1 \\\\1 \\\\1 \\end{array} \\right)$.\n\nBut that means $\\bb{X}(n) = \\bb{M}^n \\left( \\begin{array}{c} 1 \\\\ 1 \\\\ 1 \\\\ 1 \\end{array} \\right)$, which can be computed quickly for any value of $n$." ]
[ null, "https://flyingcoloursmaths.co.uk/images/keypad-300x269.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8614793,"math_prob":0.99934524,"size":3096,"snap":"2021-31-2021-39","text_gpt3_token_len":1008,"char_repetition_ratio":0.12160414,"word_repetition_ratio":0.13666667,"special_character_ratio":0.3485142,"punctuation_ratio":0.09469154,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9989642,"pos_list":[0,1,2],"im_url_duplicate_count":[null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-27T00:42:01Z\",\"WARC-Record-ID\":\"<urn:uuid:190d8d00-c45b-435e-a2d8-ebffb6ece4d3>\",\"Content-Length\":\"10921\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:0eb7ef63-f1d2-41fb-9da4-6e4ce46a60be>\",\"WARC-Concurrent-To\":\"<urn:uuid:b2cc5248-d5be-4fc0-b5f3-9e340667d5a2>\",\"WARC-IP-Address\":\"23.83.135.74\",\"WARC-Target-URI\":\"https://flyingcoloursmaths.co.uk/googles-keypad/\",\"WARC-Payload-Digest\":\"sha1:K34MLCVPG5D3GOG2XXVEI7MMTREYDCDG\",\"WARC-Block-Digest\":\"sha1:5IF4QR4AKNQZWL6FDVUA7ZQSGICJZQKN\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780058222.43_warc_CC-MAIN-20210926235727-20210927025727-00262.warc.gz\"}"}
https://www.w3cschool.cn/ansi_common_lisp/p4aurozt.html
[ "# 第十四章:进阶议题\n\n## 14.1 类型标识符 (Type Specifiers)\n\n``(or vector (and list (not (satisfies circular?))))``\n\n``(integer 1 100)``\n\n``(simple-array fixnum (* *))``\n\n``(simple-array fixnum *)``\n\n``(simple-array fixnum)``\n\n``````(deftype proseq ()\n'(or vector (and list (not (satisfies circular?)))))``````\n\n``````> (typep #(1 2) 'proseq)\nT``````\n\n``````(deftype multiple-of (n)\n`(and integer (satisfies (lambda (x)\n(zerop (mod x ,n))))))``````\n\n(译注: 注意上面代码是使用反引号 ````` )\n\n``````> (type 12 '(multiple-of 4))\nT``````\n\n## 14.2 二进制流 (Binary Streams)\n\n``````(defun copy-file (from to)\n(with-open-file (in from :direction :input\n:element-type 'unsigned-byte)\n(with-open-file (out to :direction :output\n:element-type 'unsigned-byte)\n(do ((i (read-byte in nil -1)\n((minusp i))\n(declare (fixnum i))\n(write-byte i out)))))``````\n\n``(unsigned-byte 7)``\n\n7.5 节介绍过宏字符 (macro character)的概念,一个对于 `read` 有特别意义的字符。每一个这样的字符,都有一个相关联的函数,这函数告诉 `read` 当遇到这个字符时该怎么处理。你可以变更某个已存在宏字符所相关联的函数,或是自己定义新的宏字符。\n\nLisp 中最古老的读取宏之一是 `'` ,即 `quote` 。我们可以定义成:\n\n``````(set-macro-character #\\'\n#'(lambda (stream char)\n(list (quote quote) (read stream t nil t))))``````\n\n``````(set-dispatch-macro-character #\\# #\\?\n#'(lambda (stream char1 char2)\n(list 'quote\n(let ((lst nil))\n(dotimes (i (+ (read stream t nil t) 1))\n(push i lst))\n(nreverse lst)))))``````\n\n``````> #?7\n(1 2 3 4 5 6 7)``````\n\n``````(set-macro-character #\\} (get-macro-character #\\)))\n\n(set-dispatch-macro-character #\\# #\\{\n#'(lambda (stream char1 char2)\n(let ((accum nil)\n(do ((i (car pair) (+ i 1)))\n(list 'quote (nreverse accum)))\n(push i accum)))))``````\n\n``````> #{2 7}\n(2 3 4 4 5 6 7)``````\n\n## 14.4 包 (Packages)\n\n``````> (package-name *package*)\n\"COMMON-LISP-USER\"\n> (find-package \"COMMON-LISP-USER\")\n#<Package \"COMMON-LISP-USER\" 4CD15E>``````\n\n``````(symbol-package 'sym)\n#<Package \"COMMON-LISP-USER\" 4CD15E>``````\n\n``````> (setf sym 99)\n99``````\n\n``````> (setf *package* (make-package 'mine\n:use '(common-lisp)))\n#<Package \"MINE\" 63390E>``````\n\n``````MINE> sym\nError: SYM has no value``````\n\n``````MINE> common-lisp-user::sym\n99``````\n\n``````MINE> (in-package common-lisp-user)\n#<Package \"COMMON-LISP-USER\" 4CD15E>\n> (export 'bar)\nT\n> (setf bar 5)\n5``````\n\n``````> (in-package mine)\n#<Package \"MINE\" 63390E>\nMINE> common-lisp-user:bar\n5``````\n\n``````MINE> (import 'common-lisp-user:bar)\nT\nMINE> bar\n5``````\n\n``````MINE> (import 'common-lisp-user::sym)\nError: SYM is already present in MINE.``````\n\n``````MINE> (use-package 'common-lisp-user)\nT``````\n\n``````MINE> #'cons\n#<Compiled-Function CONS 462A3E>``````\n\n## 14.5 Loop 宏 (The Loop Facility)\n\n`loop` 宏最初是设计来帮助无经验的 Lisp 用户来写出迭代的代码。与其撰写 Lisp 代码,你用一种更接近英语的形式来表达你的程序,然后这个形式被翻译成 Lisp。不幸的是, `loop` 比原先设计者预期的更接近英语:你可以在简单的情况下使用它,而不需了解它是如何工作的,但想在抽象层面上理解它几乎是不可能的。\n\n1. 序幕 (Prologue)。 被求值一次来做为迭代过程的序幕。包括了将变量设至它们的初始值。\n2. 主体 (Body) 每一次迭代时都会被求值。\n3. 闭幕 (Epilogue) 当迭代结束时被求值。决定了 `loop` 表达式的返回值(可能返回多个值)。\n\n``````> (loop for x from 0 to 9\ndo (princ x))\n0123456789\nNIL``````\n\n`for x from 0 to 9`\n\n`do (princ x)`\n\n``````> (loop for x = 8 then (/ x 2)\nuntil (< x 1)\ndo (princ x))\n8421\nNIL``````\n\n``````> (loop for x from 1 to 4\nand y from 1 to 4\ndo (princ (list x y)))\n(1 1)(2 2)(3 3)(4 4)\nNIL``````\n\n``````> (loop for x in '(1 2 3 4)\ncollect (1+ x))\n(2 3 4 5)``````\n\n`loop` 最常见的用途大概是蒐集调用一个函数数次的结果:\n\n``````> (loop for x from 1 to 5\ncollect (random 10))\n(3 8 6 5 0)``````\n\n``````(defun even/odd (ns)\n(loop for n in ns\nif (evenp n)\ncollect n into evens\nelse collect n into odds\nfinally (return (values evens odds))))``````\n\n``````(defun sum (n)\n(loop for x from 1 to n\nsum x))``````\n\n`loop` 更进一步的细节在附录 D 讨论,从 325 页开始。举个例子,图 14.1 包含了先前章节的两个迭代函数,而图 14.2 演示了将同样的函数翻译成 `loop` 。\n\n``````(defun most (fn lst)\n(if (null lst)\n(values nil nil)\n(let* ((wins (car lst))\n(max (funcall fn wins)))\n(dolist (obj (cdr lst))\n(let ((score (funcall fn obj)))\n(when (> score max)\n(setf wins obj\nmax score))))\n(values wins max))))\n\n(defun num-year (n)\n(if (< n 0)\n(do* ((y (- yzero 1) (- y 1))\n(d (- (year-days y)) (- d (year-days y))))\n((<= d n) (values y (- n d))))\n(do* ((y yzero (+ y 1))\n(prev 0 d)\n(d (year-days y) (+ d (year-days y))))\n((> d n) (values y (- n prev))))))``````\n\n``````(defun most (fn lst)\n(if (null lst)\n(values nil nil)\n(loop with wins = (car lst)\nwith max = (funcall fn wins)\nfor obj in (cdr lst)\nfor score = (funcall fn obj)\nwhen (> score max)\n(do (setf wins obj\nmax score)\nfinally (return (values wins max))))))\n\n(defun num-year (n)\n(if (< n 0)\n(loop for y downfrom (- yzero 1)\nuntil (<= d n)\nsum (- (year-days y)) into d\nfinally (return (values (+ y 1) (- n d))))\n(loop with prev = 0\nfor y from yzero\nuntil (> d n)\ndo (setf prev d)\nsum (year-days y) into d\nfinally (return (values (- y 1)\n(- n prev))))))``````\n\n``````(loop for y = 0 then z\nfor x from 1 to 5\nsum 1 into z\nfinally (return y z))\n\n(loop for x from 1 to 5\nfor y = 0 then z\nsum 1 into z\nfinally (return y z))``````\n\n## 14.6 状况 (Conditions)\n\nCommon lisp 有数个操作符用来捕捉错误。最基本的是 `error` 。一个调用它的方法是给入你会给 `format` 的相同参数:\n\n``````> (error \"Your report uses ~A as a verb.\" 'status)\nError: Your report uses STATUS as a verb\nOptions: :abort, :backtrace\n>>``````\n\n``````> (ecase 1 (2 3) (4 5))\nError: No applicable clause\nOptions: :abort, :backtrace\n>>``````\n\n`check-type` 宏接受一个位置,一个类型名以及一个选择性字符串,并在该位置的值不是预期的类型时,捕捉一个可修正的错误 (correctable error)。一个可修正错误的处理程序会给我们一个机会来提供一个新的值:\n\n``````> (let ((x '(a b c)))\n(check-type (car x) integer \"an integer\")\nx)\nError: The value of (CAR X), A, should be an integer.\nOptions: :abort, :backtrace, :continue\n>> :continue\nNew value of (CAR X)? 99\n(99 B C)\n>``````\n\n``````> (let ((sandwich '(ham on rye)))\n(assert (eql (car sandwich) 'chicken)\n((car sandwich))\n\"I wanted a ~A sandwich.\" 'chicken)\nsandwich)\nError: I wanted a CHICKEN sandwich.\nOptions: :abort, :backtrace, :continue\n>> :continue\nNew value of (CAR SANDWICH)? 'chicken\n(CHICKEN ON RYE)``````\n\n``````(defun user-input (prompt)\n(format t prompt)\nnil)))``````\n\n``````> (user-input \"Please type an expression\")\nNIL``````\n\n | 虽然标准没有提到这件事,你可以假定 `and` 以及 `or` 类型标示符仅考虑它们所要考虑的参数,与 `or` 及 `and` 宏类似。\n\n | 某些 Common Lisp 实现,当我们不在用户包下时,会在顶层提示符前打印包的名字。\n\nApp下载", null, "", null, "" ]
[ null, "https://7n.w3cschool.cn/statics/images/w3c/app-qrcode2.png", null, "https://7n.w3cschool.cn/statics/images/w3c/mp-qrcode.png", null ]
{"ft_lang_label":"__label__zh","ft_lang_prob":0.8940528,"math_prob":0.9488443,"size":12852,"snap":"2020-24-2020-29","text_gpt3_token_len":7864,"char_repetition_ratio":0.08639477,"word_repetition_ratio":0.04263566,"special_character_ratio":0.26696235,"punctuation_ratio":0.04483627,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99142146,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-07-11T03:49:28Z\",\"WARC-Record-ID\":\"<urn:uuid:c77aea52-a14b-487f-ade2-94570785d0dc>\",\"Content-Length\":\"72884\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c68b3c5e-631e-47b8-a277-1c3a93e369f5>\",\"WARC-Concurrent-To\":\"<urn:uuid:c5679498-8cae-43a4-b064-019aaeb57379>\",\"WARC-IP-Address\":\"120.79.88.157\",\"WARC-Target-URI\":\"https://www.w3cschool.cn/ansi_common_lisp/p4aurozt.html\",\"WARC-Payload-Digest\":\"sha1:NXPFG4D4UQZNCYPT53JC6KOQ2LEEKSWV\",\"WARC-Block-Digest\":\"sha1:E72OB4P7TEGUHZH3RIYS3DNZWNOA6K7L\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593655921988.66_warc_CC-MAIN-20200711032932-20200711062932-00463.warc.gz\"}"}
https://metanumbers.com/40503
[ "## 40503\n\n40,503 (forty thousand five hundred three) is an odd five-digits composite number following 40502 and preceding 40504. In scientific notation, it is written as 4.0503 × 104. The sum of its digits is 12. It has a total of 3 prime factors and 8 positive divisors. There are 25,784 positive integers (up to 40503) that are relatively prime to 40503.\n\n## Basic properties\n\n• Is Prime? No\n• Number parity Odd\n• Number length 5\n• Sum of Digits 12\n• Digital Root 3\n\n## Name\n\nShort name 40 thousand 503 forty thousand five hundred three\n\n## Notation\n\nScientific notation 4.0503 × 104 40.503 × 103\n\n## Prime Factorization of 40503\n\nPrime Factorization 3 × 23 × 587\n\nComposite number\nDistinct Factors Total Factors Radical ω(n) 3 Total number of distinct prime factors Ω(n) 3 Total number of prime factors rad(n) 40503 Product of the distinct prime numbers λ(n) -1 Returns the parity of Ω(n), such that λ(n) = (-1)Ω(n) μ(n) -1 Returns: 1, if n has an even number of prime factors (and is square free) −1, if n has an odd number of prime factors (and is square free) 0, if n has a squared prime factor Λ(n) 0 Returns log(p) if n is a power pk of any prime p (for any k >= 1), else returns 0\n\nThe prime factorization of 40,503 is 3 × 23 × 587. Since it has a total of 3 prime factors, 40,503 is a composite number.\n\n## Divisors of 40503\n\n1, 3, 23, 69, 587, 1761, 13501, 40503\n\n8 divisors\n\n Even divisors 0 8 4 4\nTotal Divisors Sum of Divisors Aliquot Sum τ(n) 8 Total number of the positive divisors of n σ(n) 56448 Sum of all the positive divisors of n s(n) 15945 Sum of the proper positive divisors of n A(n) 7056 Returns the sum of divisors (σ(n)) divided by the total number of divisors (τ(n)) G(n) 201.254 Returns the nth root of the product of n divisors H(n) 5.74022 Returns the total number of divisors (τ(n)) divided by the sum of the reciprocal of each divisors\n\nThe number 40,503 can be divided by 8 positive divisors (out of which 0 are even, and 8 are odd). The sum of these divisors (counting 40,503) is 56,448, the average is 7,056.\n\n## Other Arithmetic Functions (n = 40503)\n\n1 φ(n) n\nEuler Totient Carmichael Lambda Prime Pi φ(n) 25784 Total number of positive integers not greater than n that are coprime to n λ(n) 6446 Smallest positive number such that aλ(n) ≡ 1 (mod n) for all a coprime to n π(n) ≈ 4248 Total number of primes less than or equal to n r2(n) 0 The number of ways n can be represented as the sum of 2 squares\n\nThere are 25,784 positive integers (less than 40,503) that are coprime with 40,503. And there are approximately 4,248 prime numbers less than or equal to 40,503.\n\n## Divisibility of 40503\n\n m n mod m 2 3 4 5 6 7 8 9 1 0 3 3 3 1 7 3\n\nThe number 40,503 is divisible by 3.\n\n## Classification of 40503\n\n• Arithmetic\n• Deficient\n\n### Expressible via specific sums\n\n• Polite\n• Non-hypotenuse\n\n• Square Free\n\n### Other numbers\n\n• LucasCarmichael\n• Sphenic\n\n## Base conversion (40503)\n\nBase System Value\n2 Binary 1001111000110111\n3 Ternary 2001120010\n4 Quaternary 21320313\n5 Quinary 2244003\n6 Senary 511303\n8 Octal 117067\n10 Decimal 40503\n12 Duodecimal 1b533\n20 Vigesimal 5153\n36 Base36 v93\n\n## Basic calculations (n = 40503)\n\n### Multiplication\n\nn×i\n n×2 81006 121509 162012 202515\n\n### Division\n\nni\n n⁄2 20251.5 13501 10125.8 8100.6\n\n### Exponentiation\n\nni\n n2 1640493009 66444888343527 2691217312577874081 109002374811341633902743\n\n### Nth Root\n\ni√n\n 2√n 201.254 34.3423 14.1864 8.34637\n\n## 40503 as geometric shapes\n\n### Circle\n\n Diameter 81006 254488 5.15376e+09\n\n### Sphere\n\n Volume 2.78324e+14 2.0615e+10 254488\n\n### Square\n\nLength = n\n Perimeter 162012 1.64049e+09 57279.9\n\n### Cube\n\nLength = n\n Surface area 9.84296e+09 6.64449e+13 70153.3\n\n### Equilateral Triangle\n\nLength = n\n Perimeter 121509 7.10354e+08 35076.6\n\n### Triangular Pyramid\n\nLength = n\n Surface area 2.84142e+09 7.83061e+12 33070.6\n\n## Cryptographic Hash Functions\n\nmd5 51fb18046e665c3a0df6457781ae8125 8921f9b7e2d08cffdf7d3fb69efc731c38fe986f 767c9de5fab0e3c44d0334611ee5d6e074d24fea44c3e3abb0aa2c6d2006088d 49f89250fce70009333f296202c5ec0070d05bc72a15dac7d947cdd134e920117e573b38875e2d9fe62773fb7d2f9e60dd3770cb8a76b133f65431ce26a81c0e d81fb6ef0fe15398b3d055ee4259be741a3049ed" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.61279505,"math_prob":0.9801283,"size":4536,"snap":"2020-24-2020-29","text_gpt3_token_len":1612,"char_repetition_ratio":0.119373344,"word_repetition_ratio":0.028023599,"special_character_ratio":0.45238096,"punctuation_ratio":0.07622739,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9956073,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-07-06T13:39:17Z\",\"WARC-Record-ID\":\"<urn:uuid:a7820359-0a9b-421e-ba07-e198f5e97e8c>\",\"Content-Length\":\"48408\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:53c0fc38-019f-45d3-9e0f-9e725afa2346>\",\"WARC-Concurrent-To\":\"<urn:uuid:aa99f400-68b7-44b7-af36-256f317b07df>\",\"WARC-IP-Address\":\"46.105.53.190\",\"WARC-Target-URI\":\"https://metanumbers.com/40503\",\"WARC-Payload-Digest\":\"sha1:MZXCIWUJTPRGRQQNUBURF4WWRGHW2ZZJ\",\"WARC-Block-Digest\":\"sha1:XCMMSRZXATVNW4F6LDZKD5BXVYSAN65R\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593655880616.1_warc_CC-MAIN-20200706104839-20200706134839-00429.warc.gz\"}"}
https://javomybyzi.elleandrblog.com/newtons-second-law-and-acceleration-due-49961qp.html
[ "# Newtons second law and acceleration due\n\nThe fact that the firefly splatters only means that with its smaller mass, it is less able to withstand the larger acceleration resulting from the interaction.\n\nIn general, the potential energy may not be such a simple function of location. To dislodge ketchup from the bottom of a ketchup bottle, it is often turned upside down and thrusted downward at high speeds and then abruptly halted.\n\nThe effect of a 10 newton force on a baseball would be much greater than that same force acting on a truck. An object which moves to the right and speeds up has a rightward acceleration. Or search the sites for a specific topic. For every action, there is an equal in size and opposite in direction reaction force.\n\nSo, the first law of motion is known as the law of inertia. Since forces result from mutual interactions, the road must also be pushing the wheels forward. Newton has done a great work by giving physical laws of motion and there are total three laws of motion which are given by Newton, these laws of motion describe a physical relationship in between of the force and body on which force is acting and the motion which is created due to this force.\n\nThis equation can be seen clearly in the Wren Library of Trinity College, Cambridgein a glass case in which Newton's manuscript is open to the relevant page.", null, "He realized that this force could be, at long range, the same as the force with which Earth pulls objects on its surface downward. From this equation one can derive the equation of motion for a varying mass system, for example, the Tsiolkovsky rocket equation.\n\nAnd this motion being always directed the same way with the generating forceif the body moved before, is added to or subtracted from the former motion, according as they directly conspire with or are directly contrary to each other; or obliquely joined, when they are oblique, so as to produce a new motion compounded from the determination of both.\n\nThis law takes place also in attractions, as will be proved in the next scholium. Windshields don't have guts. In terms of a derivative, the force is given by Note that, at the bottom of the gully, where the curve is flat, the force is 0.", null, "In all observations of the motion of a celestial body, only the product of G and the mass can be found. Push or Pull Let us prepare a scenario in our mind that we are pushing a bicycle on one hand and at the other time we are pushing our caryou can easily calculate that you needs to put a lot of force for pushing your car for moving it with equal acceleration as compared to the force required for moving a bicycle.\n\nOnce you have solved the problems, click the button to check your answers. Kepler’s very important second law depends only on the fact that the force between two bodies is along the line joining them.", null, "Newton was thus able to show that all three of Kepler’s observationally derived laws follow mathematically from the assumption of his own laws of motion and gravity. In a previous chapter of study, the variety of ways by which motion can be described (words, graphs, diagrams, numbers, etc.) was discussed.\n\nIn this unit (Newton's Laws of Motion), the ways in which motion can be explained will be discussed. Isaac Newton (a 17th century scientist) put forth a. The process of determining the acceleration of an object demands that the mass and the net force are known.", null, "If mass (m) and net force (F net) are known, then the acceleration is determined by use of the equation. Newton’s law of universal gravitation. Newton’s law of universal gravitation states that every mass attracts every other mass in the universe, and the gravitational force between two bodies is proportional to the product of their masses, and inversely proportional to the square of the distance between them.\n\nSpherical objects like planets and stars act as if all of their mass is. Newton's Laws of Motion There was this fellow in England named Sir Isaac Newton.A little bit stuffy, bad hair, but quite an intelligent guy.\n\nHe worked on developing calculus and physics at the same time. During his work, he came up with the three basic ideas that are applied to the physics of most motion (NOT modern physics).The ideas have been tested and verified so many times over the years.\n\nwhere is the acceleration due to the Earth's gravity. In this example, the potential energy has a simple form, namely that it depends linearly on the height, which describes the object's location and may even be varying in time if, for example, the object is actually falling toward the Earth.\n\nIn general, the potential energy may not be such a simple function of location.\n\nNewtons second law and acceleration due\nRated 0/5 based on 42 review\nNewton's theory of Gravity" ]
[ null, "http://www.schoolphysics.co.uk/age14-16/Mechanics/Forces in motion/text/Friction_and_drag/images/1.png", null, "https://lh3.googleusercontent.com/-GlLBr_-Xsfg/Tq-VIq0hISI/AAAAAAAAaJk/R0k-V2E2FC8/s1600/levers.jpg", null, "https://kaiserscience.files.wordpress.com/2015/08/how-can-this-sled-move-if-the-forces-are-all-balanced-giancoli.jpg", null, "https://i.pinimg.com/736x/eb/a4/46/eba446bb1d094bbf38f28b4648b9512e--science-resources-physical-science.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.96323895,"math_prob":0.9603449,"size":4648,"snap":"2022-40-2023-06","text_gpt3_token_len":961,"char_repetition_ratio":0.12984496,"word_repetition_ratio":0.024539877,"special_character_ratio":0.19922547,"punctuation_ratio":0.0893054,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99483854,"pos_list":[0,1,2,3,4,5,6,7,8],"im_url_duplicate_count":[null,2,null,2,null,2,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-09-26T09:18:41Z\",\"WARC-Record-ID\":\"<urn:uuid:53539ac4-db54-44f9-9b91-0eb41f609008>\",\"Content-Length\":\"11075\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7282e402-13ab-4e01-a7c1-1d1c1888df19>\",\"WARC-Concurrent-To\":\"<urn:uuid:d1856eba-a788-4ab9-a332-fdf89ba45bfa>\",\"WARC-IP-Address\":\"104.21.85.4\",\"WARC-Target-URI\":\"https://javomybyzi.elleandrblog.com/newtons-second-law-and-acceleration-due-49961qp.html\",\"WARC-Payload-Digest\":\"sha1:YXVBX2NU65SIP2ULWAINRRPY7OMT5QOL\",\"WARC-Block-Digest\":\"sha1:LXOAUJUDXZUUSBM6DDLGDRCUCATWA7UK\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030334855.91_warc_CC-MAIN-20220926082131-20220926112131-00487.warc.gz\"}"}
https://www.crazy-numbers.com/en/122
[ "Discover a lot of information on the number 122: properties, mathematical operations, how to write it, symbolism, numerology, representations and many other interesting things!\n\n## Mathematical properties of 122\n\nIs 122 a prime number? No\nIs 122 a perfect number? No\nNumber of divisors 4\nList of dividers 1, 2, 61, 122\nSum of divisors 186\n\n## How to write / spell 122 in letters?\n\nIn letters, the number 122 is written as: One hundred and twenty-two. And in other languages? how does it spell?\n\n122 in other languages\nWrite 122 in english One hundred and twenty-two\nWrite 122 in french Cent vingt-deux\nWrite 122 in spanish Ciento veintidós\nWrite 122 in portuguese Cento vinte e dois\n\n## Decomposition of the number 122\n\nThe number 122 is composed of:\n\n1 iteration of the number 1 : The number 1 (one) represents the uniqueness, the unique, a starting point, a beginning.... Find out more about the number 1\n\n2 iterations of the number 2 : The number 2 (two) represents double, association, cooperation, union, complementarity. It is the symbol of duality.... Find out more about the number 2\n\nOther ways to write 122\nIn letter One hundred and twenty-two\nIn roman numeral CXXII\nIn binary 1111010\nIn octal 172\nIn US dollars USD 122.00 (\\$)\nIn euros 122,00 EUR (€)\nSome related numbers\nPrevious number 121\nNext number 123\nNext prime number 127\n\n## Mathematical operations\n\nOperations and solutions\n122*2 = 244 The double of 122 is 244\n122*3 = 366 The triple of 122 is 366\n122/2 = 61 The half of 122 is 61.000000\n122/3 = 40.666666666667 The third of 122 is 40.666667\n1222 = 14884 The square of 122 is 14884.000000\n1223 = 1815848 The cube of 122 is 1815848.000000\n√122 = 11.045361017187 The square root of 122 is 11.045361\nlog(122) = 4.8040210447333 The natural (Neperian) logarithm of 122 is 4.804021\nlog10(122) = 2.0863598306747 The decimal logarithm (base 10) of 122 is 2.086360\nsin(122) = 0.49871315389639 The sine of 122 is 0.498713\ncos(122) = -0.86676709105198 The cosine of 122 is -0.866767\ntan(122) = -0.57537158372166 The tangent of 122 is -0.575372" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7188208,"math_prob":0.98977655,"size":1790,"snap":"2019-51-2020-05","text_gpt3_token_len":577,"char_repetition_ratio":0.16909294,"word_repetition_ratio":0.013888889,"special_character_ratio":0.45307264,"punctuation_ratio":0.1396648,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.997522,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-18T07:08:05Z\",\"WARC-Record-ID\":\"<urn:uuid:e6068200-7748-43eb-8a08-69810f0de2ae>\",\"Content-Length\":\"17462\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f0df6e5c-e403-49a2-9988-9347a4643c66>\",\"WARC-Concurrent-To\":\"<urn:uuid:12f20c60-c65f-44ad-91e2-25f0e5222780>\",\"WARC-IP-Address\":\"128.65.195.174\",\"WARC-Target-URI\":\"https://www.crazy-numbers.com/en/122\",\"WARC-Payload-Digest\":\"sha1:BPRK6HXNANDL7OYTBQXWVXXQEU2ZKZKD\",\"WARC-Block-Digest\":\"sha1:UIVMWRVPE7325QGVWTJDCZVCHQVAMNTP\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579250592261.1_warc_CC-MAIN-20200118052321-20200118080321-00224.warc.gz\"}"}
https://www.tutorialspoint.com/how-to-add-together-a-subset-of-elements-of-an-array-in-mongodb-aggregation
[ "# How to add together a subset of elements of an array in MongoDB aggregation?\n\nTo add together a subset of elements of an array, use $first along with$sum. Let us create a collection with documents −\n\n> db.demo610.insertOne({Values:[10,20,30,40,50]});{\n\"acknowledged\" : true, \"insertedId\" : ObjectId(\"5e9747b8f57d0dc0b182d62e\")\n}\n\nDisplay all documents from a collection with the help of find() method −\n\n> db.demo610.find().pretty()\n\nThis will produce the following output −\n\n{\n\"_id\" : ObjectId(\"5e9747b8f57d0dc0b182d62e\"),\n\"Values\" : [\n10,\n20,\n30,\n40,\n50\n]\n}\n\nHere is the query to add together a subset of elements of an array in MongoDB aggregation −\n\n> db.demo610.aggregate([\n...    {$unwind:\"$Values\"},\n...    {$group:{\"_id\":\"$_id\",\n...       \"1st\":{$first:\"$Values\"},\n...       \"All\":{$sum:\"$Values\"}}},\n...    {$project:{\"_id\":\"$_id\",\n...       \"SumOfAllMinus1\":{$subtract:[\"$All\",\"$1st\"]}}}, ... {$group:{\"_id\":null,\n...       \"SumOfAllExcept1stValue\":{$sum:\"$SumOfAllMinus1\"}}}\n... ])\n\nThis will produce the following output −\n\n{ \"_id\" : null, \"SumOfAllExcept1stValue\" : 140 }\n\nUpdated on: 15-May-2020\n\n138 Views", null, "" ]
[ null, "https://www.tutorialspoint.com/static/images/library-cta.svg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.5700477,"math_prob":0.80686295,"size":1640,"snap":"2023-40-2023-50","text_gpt3_token_len":491,"char_repetition_ratio":0.08801956,"word_repetition_ratio":0.13389121,"special_character_ratio":0.34207317,"punctuation_ratio":0.27719298,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98458713,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-10-04T10:32:41Z\",\"WARC-Record-ID\":\"<urn:uuid:3477d49f-90a0-45cb-a828-585ff4736b3e>\",\"Content-Length\":\"71852\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:00103f80-09f6-466e-9edb-ee58fa9bff7f>\",\"WARC-Concurrent-To\":\"<urn:uuid:c8d2476b-52f4-4c28-8f3e-18452e8b365d>\",\"WARC-IP-Address\":\"192.229.210.176\",\"WARC-Target-URI\":\"https://www.tutorialspoint.com/how-to-add-together-a-subset-of-elements-of-an-array-in-mongodb-aggregation\",\"WARC-Payload-Digest\":\"sha1:MTQVPEIHFHZOQC2J6THAGY2NWJRGHWD3\",\"WARC-Block-Digest\":\"sha1:PPHXUXBQ7FYFTCJQC7XYMXJMBKCR6242\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233511364.23_warc_CC-MAIN-20231004084230-20231004114230-00676.warc.gz\"}"}
https://thebrainboxtutorials.com/2023/01/lines-and-angles-mcq-cbse-class-9-math.html
[ "# Lines and Angles MCQ CBSE Class 9 Math\n\nLines and angles are the fundamental concepts in geometry that establish the foundation for the field. Lines and Angles MCQ has been prepared by The Brainbox Tutorials for CBSE Class 9 Math students. A line is described as a series of discrete dots that are spaced tightly together and continue infinitely in both directions. Its length is the only dimension it has. An illustration of a line is a horizontal mark made on a piece of paper.\nA figure made by two rays meeting at a common endpoint is known as an angle. They are measured using a protractor and in degrees. Angles and lines are present in every geometric shape.\n\n## Lines and Angles Definitions Class 9 CBSE Maths\n\n### Line\n\nA line is a one-dimensional shape that has no breadth and can go on forever in both directions. It is composed of an endless number of successive points. According to Euclid, the line has an infinite width. It is represented by the linear equation axe + by = c in a cartesian plane.\n\n### Angle\n\nAn angle is formed when two rays come together at a point. Angles are often measured in degrees and are represented by the degree symbol. The symbol for an angle is ∠, and it can range in value from 0 to 360.\n\n## Rules for Lines and Angles MCQ CBSE Class 9 Math\n\n• This quiz has 10 multiple choice questions.\n• Each sum has 2 marks.\n• So maximum marks is 20.\n• There is no time limit.\n• You should be ready with a pen and copy in your hand in order to solve the sums.\n• The correct answer and explanation is provided at the end of this quiz.\n\nPlease share your score in test in the comments section below. You are free to have as many attempts you want.\nHappy learning and always say yes to Maths.\n\n#### Sample Papers\n\nSample Papers for Class 6\n\nSample Papers for Class 7\n\nSample Papers for Class 8\n\nSample Papers for Class 9\n\nSample Papers for Class 10\n\n#### Board Papers\n\nICSE Class 9 Board Exam Papers\n\nICSE Class 10 Board Exam Papers\n\n#### Chapter wise Quiz/MCQ/Test\n\nCBSE Chapter-wise Quiz for Class 6\n\nCBSE Chapter-wise Quiz for Class 7\n\nCBSE Chapter-wise Quiz for Class 8\n\nCBSE Chapter-wise Quiz for Class 9\n\nCBSE Chapter-wise Quiz for Class 10\n\n#### Sample Papers\n\nSample Papers for Class 6\n\nSample Papers for Class 7\n\nSample Papers for Class 8\n\nSample Papers for Class 9\n\nSample Papers for Class 10\n\n#### Board Papers\n\nCBSE Class 10 Previous years’ Board Papers" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9490654,"math_prob":0.66153455,"size":2327,"snap":"2023-40-2023-50","text_gpt3_token_len":545,"char_repetition_ratio":0.15841584,"word_repetition_ratio":0.0450237,"special_character_ratio":0.2157284,"punctuation_ratio":0.06140351,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9756079,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-22T01:34:44Z\",\"WARC-Record-ID\":\"<urn:uuid:16bcc181-5e58-481f-9cb1-dde2f404992d>\",\"Content-Length\":\"99258\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8a732d84-2389-4fcd-ae7f-b7908676f6d7>\",\"WARC-Concurrent-To\":\"<urn:uuid:a0c3daaf-3b12-4c21-9889-dd5a5173c0ae>\",\"WARC-IP-Address\":\"191.101.230.202\",\"WARC-Target-URI\":\"https://thebrainboxtutorials.com/2023/01/lines-and-angles-mcq-cbse-class-9-math.html\",\"WARC-Payload-Digest\":\"sha1:UMCPLJFYGD5BOEHUDNEMW2B43MBW23HJ\",\"WARC-Block-Digest\":\"sha1:PM3B7DB3KS7XH6V23BA3YUVDE5QVPNBG\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233506320.28_warc_CC-MAIN-20230922002008-20230922032008-00772.warc.gz\"}"}
https://www.nickzom.org/blog/2022/07/27/how-to-calculate-and-solve-for-permeability-number-refractories/
[ "# How to Calculate and Solve for Permeability Number | Refractories\n\nThe permeability number is illustrated by the image below.", null, "To compute for the permeability number, five essential parameters are needed and these parameters are Volume of Air (V), Height of the Specimen (H), Cross-sectional Area (A), Air Pressure (P) and Time (t).\n\nThe formula for calculating permeability number:\n\nPN = VH/APt\n\nWhere:\n\nPN = Permeability Number\nV = Volume of Air\nH = Height of the Specimen\nA = Cross-sectional Area\nP = Air Pressure\nt = Time\n\nLet’s solve an example;\nFind the permeability number when the volume of air is 2, the height of the specimen is 7, the cross-sectional area is 3, the air pressure is 9 and the time is 4.\n\nThis implies that;\n\nV = Volume of Air = 2\nH = Height of the Specimen = 7\nA = Cross-sectional Area = 3\nP = Air Pressure = 9\nt = Time = 4\n\nPN = VH/APt\nPN = (2)(7)/(3)(9)(4)\nPN = (14)/(108)\nPN = 0.129\n\nTherefore, the permeability number is 0.129.\n\nNickzom Calculator – The Calculator Encyclopedia is capable of calculating the permeability number.\n\nTo get the answer and workings of the permeability number using the Nickzom Calculator – The Calculator Encyclopedia. First, you need to obtain the app.\n\nYou can get this app via any of these means:\n\nYou can also try the demo version via https://www.nickzom.org/calculator\n\nApple (Paid) – https://itunes.apple.com/us/app/nickzom-calculator/id1331162702?mt=8\nOnce, you have obtained the calculator encyclopedia app, proceed to the Calculator Map, then click on Materials and Metallurgical under Engineering.", null, "Now, Click on Refractories under Materials and Metallurgical", null, "Now, Click on Permeability Number under Refractories", null, "The screenshot below displays the page or activity to enter your values, to get the answer for the permeability number according to the respective parameter which is the Volume of Air (V), Height of the Specimen (H), Cross-sectional Area (A), Air Pressure (P) and Time (t).", null, "Now, enter the values appropriately and accordingly for the parameters as required by the Volume of Air (V) is 2, Height of the Specimen (H) is 7, Cross-sectional Area (A) is 3, Air Pressure (P) is 9 and Time (t) is 4.", null, "Finally, Click on Calculate", null, "", null, "As you can see from the screenshot above, Nickzom Calculator– The Calculator Encyclopedia solves for the permeability number and presents the formula, workings and steps too." ]
[ null, "https://www.nickzom.org/blog/wp-content/uploads/2022/07/permeability-number.jpg", null, "https://www.nickzom.org/blog/wp-content/uploads/2021/07/Screenshot-2.png", null, "https://www.nickzom.org/blog/wp-content/uploads/2022/07/Screenshot-265.png", null, "https://www.nickzom.org/blog/wp-content/uploads/2022/07/Screenshot-266.png", null, "https://www.nickzom.org/blog/wp-content/uploads/2022/07/Screenshot-267.png", null, "https://www.nickzom.org/blog/wp-content/uploads/2022/07/Screenshot-269.png", null, "https://www.nickzom.org/blog/wp-content/uploads/2022/07/Screenshot-270.png", null, "https://www.nickzom.org/blog/wp-content/uploads/2022/07/Screenshot-271.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.81542516,"math_prob":0.99463236,"size":2658,"snap":"2022-40-2023-06","text_gpt3_token_len":659,"char_repetition_ratio":0.1510927,"word_repetition_ratio":0.08737864,"special_character_ratio":0.241535,"punctuation_ratio":0.13111547,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9984874,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"im_url_duplicate_count":[null,7,null,null,null,6,null,1,null,1,null,1,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-02-04T22:42:42Z\",\"WARC-Record-ID\":\"<urn:uuid:3e0e064f-36f5-465f-891f-48588730dbc0>\",\"Content-Length\":\"121918\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:fac9518d-ebe2-41a2-bbce-a031058871d4>\",\"WARC-Concurrent-To\":\"<urn:uuid:a5452c50-0a59-44aa-a4de-77d28856e25f>\",\"WARC-IP-Address\":\"192.64.112.158\",\"WARC-Target-URI\":\"https://www.nickzom.org/blog/2022/07/27/how-to-calculate-and-solve-for-permeability-number-refractories/\",\"WARC-Payload-Digest\":\"sha1:IXZGG7DYXLNEQIFQPN3L6EQLP2XKE3TQ\",\"WARC-Block-Digest\":\"sha1:F6A2A3XLNMNTL6YGZEESC7UDTJICFF2H\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764500154.33_warc_CC-MAIN-20230204205328-20230204235328-00543.warc.gz\"}"}
https://braindump.jethro.dev/posts/sufficient_statistics/
[ "# Sufficient Statistics\n\nA statistic $$t$$ is called a sufficient statistic for $$\\theta$$ for a given $$\\boldsymbol{y}$$ if:\n\n\\begin{equation} p(\\boldsymbol{y} | t, \\theta)=p(\\boldsymbol{y} | t) \\end{equation}\n\nLet $$Y_{i} \\sim \\text { Bernoulli }(\\theta)$$ for $$i = 1, \\dots, n$$, and $$T=\\sum_{i=1}^{n} Y_{i}$$. Then it can be shown that $$t=\\sum_{i=1}^{n} y_{i}$$ is a sufficient statistic for $$\\theta$$ given $$y=\\left(y_{1}, \\ldots, y_{n}\\right)$$.\n\n## Fisher-Neyman Theorem\n\nThe Fisher-Neyman theorem, or the factorization theorem, helps us find sufficient statistics more readily. It states that:\n\nA statistic $$t$$ is sufficient for $$\\theta$$ if and only if there are functions $$f$$ and $$g$$ such that:\n\n\\begin{equation} p(\\boldsymbol{y} | \\theta)=f(t, \\theta) g(\\boldsymbol{y}) \\end{equation}\n\nwhere $$t=t(\\boldsymbol{y})$$." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6850466,"math_prob":1.0000092,"size":826,"snap":"2020-45-2020-50","text_gpt3_token_len":279,"char_repetition_ratio":0.16423358,"word_repetition_ratio":0.019607844,"special_character_ratio":0.34503633,"punctuation_ratio":0.103896104,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.00001,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-12-04T20:39:18Z\",\"WARC-Record-ID\":\"<urn:uuid:cd7cea29-fb2c-43dd-9268-9ba984c988a5>\",\"Content-Length\":\"11926\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:388a817d-a846-48c1-9ab5-f6bd144b46ae>\",\"WARC-Concurrent-To\":\"<urn:uuid:e9797786-5831-457d-8a52-603d374dd94b>\",\"WARC-IP-Address\":\"104.248.63.248\",\"WARC-Target-URI\":\"https://braindump.jethro.dev/posts/sufficient_statistics/\",\"WARC-Payload-Digest\":\"sha1:CQDS74FULJLCGSXVMC4SVFQYO4WQ36ZJ\",\"WARC-Block-Digest\":\"sha1:SH7AATXC6TONWCQYFSQHUUUTZROP5QJV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141743438.76_warc_CC-MAIN-20201204193220-20201204223220-00671.warc.gz\"}"}
https://sillycodes.com/bitwise-and-operator-in-c-programming/
[ "# Bitwise AND Operator in C Programming Language\n\n## Introduction:\n\nIn our previous article, We have looked at what are Bitwise Operators and different Bitwise Operators. We briefly looked into them. This article will look at the Bitwise AND Operator in C Language in detail with few example programs.\n\n## Bitwise AND Operator in C :\n\nBitwise AND operator is Binary Operator and Takes two input values ( Binary sequences of two values ) and performs the Bitwise AND on each pair of bits in the given binary sequence.\n\nThe output of Bitwise AND operation is   True(1) only if both of the input bits are  True(1)\n\nBitwise AND Operator output is   False or  Zero, When any of the input bits are  Zero(0).\n\nThe Bitwise AND Operator is denoted by the Ampersand (&) symbol in the C programming language.\n\nWe can apply the Bitwise Operators on the Integer data only.\n\n📢 Bitwise operators operate on Bit-Level ( not Byte-Level).\n\n## Truth Table of Bitwise AND Operator ( & ) :\n\nHere Xi and Yi are the Pair of bits in the Binary sequence of X and Y values.\n\n## How Bitwise AND (&) Operator Works? :\n\nLet’s look at an example to understanding the Bitwise AND Operator. We will take two numbers X=10 and Y=20.\n\nThen the Bitwise AND of X and Y ( X & Y ) is 0 (Zero). Let’s look at how we got the result as Zero(0)\n\nTo calculate the bitwise AND of any two numbers, We need to convert the numbers into the Binary form or Base-2 form.\n\n📌 For making calculations easy, We are going to take only 8 bits for the integer value. But note that the Integer value will be stored in 32 bits in the memory.\n\nThe Binary Equivalent of the X or 10 is 0000 1010.\n\nAnd Binary Equivalent of the Y or 20 is 0001 0100.\n\nThe Left-most bit in the binary representation is MSB ( Most significant bit) and the Right-most bit is the LSB or Least Significant Bit.\n\nNow we need to apply the bitwise AND on each pair of bits.\n\nHere Pair of bits means, MSB in the first number X and MSB in the second number Y, So on until we reach the LSB of X and LSB of Y.\n\nBitwise X&Y is:\nX     –>       0000 1010   (10 in Binary)\nY     –>       0001 0100   (20 in Binary)\nX&Y –>      0000 0000  ( X&Y = 0 )\n\nHere is the pictorial representation of above Binary AND operator calculation.\n\nPlease note We are performing the Bitwise AND on each pair of bits. So As it is Bitwise AND Only the bits pair which have two ones will have the output as 1.\n\nIn the above example, no bits pair has two 1’s, So the Bitwise AND (X&Y) is Zero.\n\nNow let’s verify our results in C language.\n\n## Bitwise AND Program:\n\nThis program will check the result of the above bitwise AND example 10 & 20\n\n#### Program Output:\n\nAs you can see the output of 10 & 20 is 0(Zero).\n\n## Bitwise AND One more Example :\n\nLet’s look at one more example. Will take two numbers A=14 and B=6.\n\nThe Bitwise AND of A and B ( A & B ) is 6.\n\nAs we discussed earlier, We need to convert the given A and B values into the Binary\n\nBinary Equivalent of the variable A ( i.e 14 ) is 0000 1110\n\nSimilarly, The binary equivalent of variable B(i.e 6) is 0000 0110\n\nNow we need to apply the Bitwise AND on A & B.\n\nBitwise A&B is:\nA     –>    0000 1110   (14 in Binary)\nB     –>     0000 0110   (6 in Binary)\nA&B –>     0000 0110   ( A&B = 6 )\n\nHere is the pictorial representation of the above calculation.\n\nAs you can see from the above graphics, We need to apply the bitwise AND operation on each bit pair of two input binary sequences.\n\n## Difference between the Logical AND and Bitwise AND Operator:\n\nDon’t confuse with the bitwise AND with the Logical AND operator, Logical AND Operator denoted with Two Ampersands (&&), While the Bitwise AND is denoted with a single Ampersand (&) symbol.\n\nLet us take an example to understand the difference between these operators.\n\nTake two variable A and B and their values are A = 20 and B = 10.\n\nLogical AND (&&) Operator:\n\nA && B ;\n\n20 && 10 ;\n\nThe result is 1\n\nThe output of the above expression is one(1), Because both of the inputs ( 10, 20) are non-zero. So the output of the above Logical AND operation is One(1).\n\n#### Bitwise AND ( & ) Operator:\n\nA & B ;\n\n20 & 10 ;\n\nBut unlike Logical AND, The Bitwise AND operates on Bit-Level, So we need to look at the binary representations of A and B.\n\nHere A and B are integer data. The size of the integer is 4 bytes i.e 32 bits. We need to apply the Bitwise AND on these 32 bits sequences of A and B ( because bitwise AND Operates on bits).\n\nA ( 20 ) Binary Representation is  0000 0000 0001 0100\nB ( 10 ) Binary Representation is   0000 0000 0000 1010\n\nLet us apply bitwise AND on our Example A & B that is 20 & 10\n\nBitwise A&B is:\n\n0000 0000 0001  0100 ( A = 20 )\n&  0000 0000 0000 1010    ( B = 10 )\n————————\n0000 0000 0000 0000   ( A&B = 0 )\n————————\n\nThe result of A & B is zero.\n\nFrom the above example, it is clear that the logical AND operator (or all Logical Operators) operates on the Byte level. But Bit-wise operators are Operates on Bit Level.\n\nLet’s verify our results with the C program.\n\n## Program: Bitwise AND Vs Logical AND operator:\n\n• Use Double Ampersands for Logical AND Operation – A && B\n• Use single Ampersand for Bitwise AND Operation – A & B\n\n#### Program Output:\n\nAs you can see, The output of the logical AND operation is 1, Because both input values of A and B are non-zero.\n\nAnd Bitwise AND operator, Applied the pairwise bitwise AND of input binary sequences, So the bitwise AND result is Zero.\n\n## Clear Nth bit in C using the Bitwise AND Operator:\n\nThe bitwise operators have a lot of cool applications. As we are discussing the Bitwise AND Operator, Let’s look at one of the uses of the bitwise AND operator, Which is making the bit zero or Clearing the bit using the Bitwise AND operator.\n\n### Clear Nth bit Logic :\n\nThe Clearing the Nth bit means, If the Nth bit is 1, Then by using the clear bit logic we can convert the Nth bit value from 1 to Zero(0).\n\nIf the Nth bit already has the value Zero(0), Then clear bit logic won’t have any effect on the bit.\n\nTo Clear the Nth bit, Use the following bitwise AND logic.\n\nHere,\nThe InputNumber is the number where we are clearing the bit\nThe bitPosition is the position of the bit in the binary representation of InputNumber\n\n### Clear Nth Bit Example:\n\nLet’s take a Number, InputNumber = 431. The binary equivalent of 431 is 110101111.\n\nNow, let’s say you want to clear the bit at the position ‘3’ of above value 431.\n\nHere position will start from the end i.e from the Least significant bit (LSB). And position value starts with Zero(0) and up to the length of the Integer. So here we are trying to clear the bit at the position 3, So it will be the 4th bit from the end.\n\nTo clear the 3rd position bit of number 431 by using the above clear bit logic. use,\n\nAfter this operation, The 3rd position of the InputNumber(431) will be converted into 0. And the InputNumber becomes 423.\n\nThe binary sequence of 423 is 110100111\n\nIf you observe closely, The 3rd position bit ( i.e 4th bit from the end) is cleared or set to zero.\n\nLet’s convert this into a C program.\n\n## Clear Nth Bit Program in C language:\n\nWe are going to use the above clear bit logic. The program is going to take the inputNumber from the user and The program also asks user to provide the bitPosition to clear.\n\nOnce we got the user input, We will apply above clear bit logic to clear the bit at the specified position.\n\n#### Program Output:\n\nWe used the above example numbers, As expected after clearing the bit at the 3rd position the inputNumber 431 becomes 423.\n\nNote that, bitPosition variable is a zero-indexed value. This means its value starts from Zero(0). So if you pass the bitPosition value as the Zero(0), Then the Least significant bit (LSB) will be cleared.\n\nLet’s play around with the program by passing different input numbers and positions.\n\n## Conclusion:\n\nIn this article, We have discussed the Bitwise AND operator with examples and we also looked at few example programs and uses like clearing the bit.\n\n## C Tutorials Home:", null, "Venkat\n\nHi Guys, I am Venkatesh. I am a programmer and an Open Source enthusiast. I write about programming and technology on this blog.\n\n### 6 Responses\n\n1. […] Bit-wise AND( & ) […]\n\n2. […] Bit-wise AND( & ) […]\n\n3. […] 📢. Bitwise AND Operator in C programming Language – SillyCodes […]\n\n4. […] the previous articles, We have discussed what are Bitwise Operators and Bitwise AND Operator. In today’s article, we will learn about the Bitwise OR operator in C Programming […]\n\n5. […] the previous articles, We have discussed what are Bitwise Operators and Bitwise AND Operator, and Bitwise OR operators. In today’s article, we will learn about the Bitwise XOR […]\n\n6. […] Bit-wise AND( & ) […]" ]
[ null, "https://secure.gravatar.com/avatar/336c59ff684d47a0f7db15f8ae560692", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7891808,"math_prob":0.9682439,"size":11843,"snap":"2022-40-2023-06","text_gpt3_token_len":3311,"char_repetition_ratio":0.1908945,"word_repetition_ratio":0.1397436,"special_character_ratio":0.30997214,"punctuation_ratio":0.104276985,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99836385,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-01-30T21:31:24Z\",\"WARC-Record-ID\":\"<urn:uuid:176136c6-198b-4bf7-aab1-4675cf59c805>\",\"Content-Length\":\"374993\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7723feec-516e-4e12-8b58-0dc6ef4e60be>\",\"WARC-Concurrent-To\":\"<urn:uuid:06e30c2d-a73d-497a-b212-b52eea1063b8>\",\"WARC-IP-Address\":\"3.234.104.255\",\"WARC-Target-URI\":\"https://sillycodes.com/bitwise-and-operator-in-c-programming/\",\"WARC-Payload-Digest\":\"sha1:5N6LH5UMC5JMFXKBGJMDMFDEURKCDONA\",\"WARC-Block-Digest\":\"sha1:OTN2CGL6EGHUIFU3Z5KM3KRATMDZV2SD\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764499829.29_warc_CC-MAIN-20230130201044-20230130231044-00090.warc.gz\"}"}
https://codegolf.stackexchange.com/questions/210022/substandard-deviation/210025
[ "# Substandard deviation\n\nThe mean of a population $$$$x_1,\\dots,x_n)\\$$ is defined as $$\\\\bar x=\\frac1n\\sum_{i=1}^n x_i\\$$. The (uncorrected) standard deviation of the population is defined as $$\\\\sqrt{\\frac1n\\sum (x_i-\\bar x)^2}\\$$. It measures how dispersed the population is: a large standard deviation indicates that the values are far apart; a low standard deviation indicates that they are close. If all values are identical, the standard deviation is 0. Write a program or function which takes as input a (non-empty) list of non-negative integers, and outputs its standard deviation. But check the scoring rule, as this is not code golf! ## Input/Output Input/Output is flexible. Your answer must be accurate to at least 2 decimal places (either rounding or truncating). The input is guaranteed to contain only integers between 0 and 255, and to not be empty. ## Scoring To compute your score, convert your code to integer code points (using ASCII or whatever code page is standard for your language) and compute the standard deviation. Your score is the number of bytes in your code multiplied by the standard deviation. Lower score is better. You should therefore aim for code which at the same time (a) is short and (b) uses characters with close codepoints. Here is an online calculator to compute your score (assuming you use ASCII). ## Test cases Input | Output 77 67 77 67 | 5 82 | 0 73 73 73 | 0 83 116 97 116 115 | 13.336 A word of caution about built-ins: if your language has a built-in, that's fine (and good for you if it only uses one character!). But make sure that it uses $$\\n\\$$ and not $$\\n-1\\$$ as the denominator in the formula, or else your answer won't be valid. • I had wondered if it would be worth it adding extra filler characters to one's code reduce the score, but it looks like that never works. It can reduce the sdev, but the score of sdev*length always goes up. – xnor Aug 24, 2020 at 6:33 • @mypronounismonicareinstate Yes, a solution in Lenguage or Unary will achieve a score of 0. As I wrote in the Sandbox: if somebody writes code to compute the standard deviation in Unary or Lenguage, they deserve my upvote! Aug 24, 2020 at 6:41 • Related: Calculate Standard Deviation as pure code golf – xnor Aug 24, 2020 at 6:57 • Lenguage score 0 anyone? Aug 24, 2020 at 17:33 • @JonathanAllan I'm trying, Might take a while though... Aug 27, 2020 at 20:00 ## 16 Answers # MATL, score 65.30697 tYmhZs ### How it works The built-in function Zs with its default arity (1 input, 1 output) computes the corrected standard deviation: $$\\\\sqrt{\\frac 1 {n-1}\\sum (x_i-\\bar x)^2}\\$$ The uncorrected standard deviation can be obtained with the 2-input version of Zs: 1&Zs, where 1 as second input means uncorrected. l or T could be used instead of 1 to reduce the score, but & is very far from the other characters. 2 or H could be used instead of &, but is even farther. So it is better to use the default version of Zs (corrected standard deviation) on the input with its mean appended. This increases the input length by 1 and contributes 0 in the numerator, which causes the corrected standard deviation to become uncorrected. t % Implicit input: numeric vector. Duplicate Ym % Mean h % Concatenate the input vector with its mean Zs % Corrected standard deviation # J, 19 bytes, Score 119.8249 -~1 thanks to Bubbler Tries to have most characters between 0x23 and 0x2F #%&'()*+,-./, with : being a bit further away. (+/%)&.:*:&(-+/%#) Try it online! ### How it works (+/%)&.:*:&(-+/%#) (-+/%#) x - sum divided by length *:& and squared (+/%)&.: mean of that &.:*: reverse square -> square root • score 144 by avoiding @. Aug 24, 2020 at 8:00 • @Bubbler expanding is surprisingly even better! Funny scoring system. – xash Aug 24, 2020 at 8:03 • score 119.8 by changing the leftmost # to . Input is required to be a vector in this case. Aug 25, 2020 at 0:14 ## Google Sheets, Score 142.6885 =STDEVP(F:F Google Sheets automatically closes parentheses, and using F as the input column minimizes the standard deviation. This saves one byte over Excel's uncorrected standard deviation, since Excel uses STDEV.P instead of STDEVP • Nice idea to input in the F column to reduce the standard deviation! Aug 24, 2020 at 8:38 # R, 34 bytes 24 bytes, score789.5923723.4687 722.6112 sd(c(scan()->J,mean(J))) Try it online! Edit: switched to a shorter formula to calculate the population sd (which I found here), which now only benefits from selecting the best variable name among the golfs outlined below for the previous version. Edit2: score reduced by 0.8575 thanks to Robin Ryder The (previous) ungolfed code is was: x=scan();sqrt(mean((x-mean(x))^2)) (which would have a score of 1104.484) From this, sequential score-improving golfs are: • x=scan();?=mean;sqrt(?(x-?x)^2) = re-define mean() as a single character unary operator (score 983.8933) • x=scan();?=mean;(?(x-?x)^2)^.5 = exchange sqrt() for ()^.5 (score 918.6686) • H=scan();?=mean;(?(H-?H)^2)^.5 = exchange x for H which is the closest codepoint value to the mean of the program, thereby reducing the standard deviation (score 801.4687) • I=scan();?=mean;I=I-?I;(?I^2)^.5 = first calculate x-mean(x) separately, to reduce number of parentheses (which are at the far end of the ASCII range, and so increase the standard deviation), and re-adjust the variable name to I. Although this increases the code length by 2 characters, it reduces the score to 789.5923. # R + multicon, 15 bytes, score 273.5032 multicon::popsd Trivial solution using built-in popsd function from multicon library. Not installed at TIO, but you can try it at rdrr.io by copy-pasting this code: x=c(67,77,67,77) # data multicon::popsd(x) • scan()->J rather than J<-scan() should improve your score slightly. Aug 24, 2020 at 11:33 • Doh! I had the ASCII table sitting right in front of me trying to optimize this: why on earth didn't I realise that? Thanks a lot! Aug 24, 2020 at 11:35 • For external packages, we usually require that your code either includes library(multicon) or that you call multicon::popsd, i.e. you cannot assume that the package is loaded when you start R). There was a short discussion about this in the golfr chatroom in July 2019. Aug 24, 2020 at 11:36 • Ah. I somehow thought that it was also Ok to specify the language as 'R + multicon' (rather than simply 'R' which would require extra stuff to load the packages), but I can't remember why I thought so... Aug 24, 2020 at 11:44 • At some point in the past I thought the same as you, but eventually got convinced by the consensus position: the language is 'R + multicon' (since you have to install both), and then you have to explicitly load the external package. Aug 24, 2020 at 11:53 # Wolfram Language (Mathematica), Score 537.0884 A@((#-A@#)^2)^.5&;A=Mean Try it online! @att saved 17.6142 points • 537.0884 – att Aug 25, 2020 at 20:13 # Python 3, Score 680.5175 Where the golfiest solution is not the best. I doubt any non-builtin could be better but I might be wrong. import statistics;statistics.pstdev Try it online! ### Python 3, Score 733.6818 from statistics import*;pstdev ### Python 3, Score 798.5587 __import__('statistics').pstdev • @Dingus These are all function submissions. These are just different ways of referring to the same function, which is the library routine that does all of the required work. – Neil Aug 24, 2020 at 9:40 • @Dingus Providing a function is enough, even if the function is not named Aug 24, 2020 at 10:10 • @LuisMendo No problems with anonymous functions (I often use them myself). The confusion came because I don't recall having seen just a bare function before (I'm used to seeing things like (pseudocode) lambda s: stdev(s)). But looking at that pseudocode I can see that wrapping in a lambda is redundant here. It seems obvious now, but I've learnt something. Aug 24, 2020 at 11:05 • @Dingus Ah, I see what you mean. That also confused me back in the day Aug 24, 2020 at 12:02 • @JonathanAllan There was a meta discussion on this, but it was a few years ago. Aug 24, 2020 at 17:54 # 05AB1E, Score: 531.168431.516360.278 (1015 14 bytes) Osg/nsn-Osg/(t Uses the 05AB1E coding page. The characters used have the codepoints [79,73,103,47,110,73,110,45,68,79,73,103,47,40,116]. Explanation: # Get the arithmetic mean of the (implicit) input-list by: O # Summing the (implicit) input-list I # Push input-list again g # Pop and push its length / # Divide the sum by this length # (which gives a better score than the builtin ÅA) n # Square it I # Push the input again (better score than s or ¹) n # Square each value in the input as well - # Subtract each from the squared mean # Take the arithmetic mean of that list again by: O # Summing it Ig # Push the input-list again, and pop and push its length / # Divide the sum by this length ( # Negate it t # And take its square-root # (after which the result is output implicitly) # JavaScript (ES7), Score 1359 1228 1156.077 Saved 72 points thanks to @edc65 D=>D[F='map'](C=>B-=(C+E/A)**2/A,D[F](C=>E+=--A?C:9,A=B=E=0))&&B**.5 Try it online! ### Character breakdown char. | code | count -------+------+------- 0 | 48 | 1 2 | 50 | 1 5 | 53 | 1 9 | 57 | 1 & | 38 | 2 ' | 39 | 2 ( | 40 | 3 ) | 41 | 3 * | 42 | 4 + | 43 | 2 , | 44 | 2 - | 45 | 3 . | 46 | 1 / | 47 | 2 : | 58 | 1 <-- mean ≈ 59.43 = | 61 | 9 > | 62 | 3 ? | 63 | 1 A | 65 | 4 B | 66 | 3 C | 67 | 4 D | 68 | 3 E | 69 | 3 F | 70 | 2 [ | 91 | 2 ] | 93 | 2 a | 97 | 1 m | 109 | 1 p | 112 | 1 • Better pre calculating both sum and length, avoiding 1 'map' (in fact avoiding a couple of brackets): D=>D[F='map'](C=>B-=(C+E/A)**2/A,D[F](C=>E+=--A?C:9,A=B=E=0))&&B**.5 score 1156.077 Aug 27, 2020 at 7:13 • @edc65 That's a great improvement. Thanks! (And nice to see you around, btw.) Aug 28, 2020 at 15:17 # Arn, score = 925.3172655.6836602.7985 123.2274 sdev:s Uses the builtin standard deviation function. Go to the old answer for a more interesting one # Old Answer I don't compress it because Standard Deviation would be way higher. I have updated this answer, since I found a much shorter method (sitting at 14 bytes). Link here (this is the program the score refers to). I will leave the original program for posterity's sake :/(+v{:*v-(:s.mean}$$/((:s)#\n\n\nTry it!\n\n# Explained\n\n$$\\large\\sqrt {\\frac1n \\sum(x_i-\\bar x)^2}$$ Just made use of the formula. :/ is the sqrt prefix, :* is the square prefix, +v{:*v-(:s.mean}\\ Folds with + (addition) after mapping with the block v{:*v-(:s.mean}. v is current entry, :s splits on space (no variable is provided, so it assumes the variable _, which is STDIN). Then it just divides by the length (# suffix).\n\n# Io, score = 1454.7164672196433912\n\n-19.58295474318379 thanks to @ManishKundu\n\nmethod(:,:map(Z,(Z- :average)squared)average sqrt)\n\n\nTry it online!\n\n• I think you can save some score by using different variable names instead of I and J, perhaps Y and Z? Aug 24, 2020 at 11:49\n\n# Jelly, (14 bytes), score 218.314\n\n(218.31399405443526)\n\n+/÷LN+*2+/÷L*.\n\n\nTry it online! Or see a self-evaluation.\n\nBytecode: 2b 2f 1c 4c 4e 2b 2a 32 2b 2f 1c 4c 2a 2e\n\n### How?\n\nA naive program would be _Æm²Æm½for 348.47 (subtract the mean from each, square each, take the mean of that and then square root it).\n\nWe know that to get rid of the two byte monad Æm whose code-points are quite far apart (0x0d and 0x6d) we need to either:\n\n• divide using ÷ (0x1c), or\n• multiply, × (0x11), and invert, İ (0xc6)\n\nBut the latter bytes are also fairly far apart, so this answer attempts to use bytes close to ÷ (0x1c).\n\n+/÷LN+*2+/÷L*. - Link: list of numbers, A\n/ - reduce (A) by:\nL - length (A)\n÷ - divide -> mean(A)\nN - negate\n+ - add (to A, vectorised) -> [mean(A)-v for v in A]\n2 - two\n* - exponentiate -> [(mean(A)-v)² for v in A]\n/ - reduce by:\n+ - addition -> sum((mean(A)-v)² for v in A)\nL - length (A)\n÷ - divide -> sum((mean(A)-v)² for v in A)/n\n. - a half\n* - exponentiate -> √(sum((mean(A)-v)² for v in A)/n)\n\n\n# Wolfram Language (Mathematica), 31 bytes, score 478.3451\n\na[a_]=RootMeanSquare[a-Mean[a]]\n\n\nTry it online!\n\n# Charcoal, 15 bytes, stddev 46.741654, score 701.12481\n\nI₂∕ΣX⁻θ∕ΣθLθ²Lθ\n\n\nTry it online! Link is to verbose version of code. Link test case is the byte values in the Charcoal code page of the code. Explanation:\n\n θ Input x\nΣ Summed\n∕ Lθ Divided by n\n⁻θ Vectorised subtracted from x\nX ² Squared\nΣ Summed\n∕ Lθ Divided by n\n₂ Square rooted\nI Cast to string\nImplicitly printed\n\n\nNote that the alternative formula for the standard deviation, $$\\ \\sqrt{\\bar{x^2}-\\bar x^2} \\$$, while having a slightly smaller standard deviation, takes 17 bytes, and therefore results in a higher score of 755.6.\n\n## Setanta, score: 2728.508\n\ngniomh(g){f:=0h:=0e:=fad@g le i idir(0,e){d:=g[i]f+=d h+=d*d}toradh freamh@mata((h-f*f/e)/e)}\n\n\nTry it here!\n\n# C (gcc), 107 104 99 bytes, stddev 25.25 $$\\\\cdots\\$$25.32 25.00, score 2702.01 $$\\\\cdots\\$$ 2634.27 2475.426270\n\nSaved 3 bytes and 46.95288 points thanks to ceilingcat!!!\nSaved 5 bytes and 158.848632 points thanks to att!!!\n\nE;float D,G,H;float F(F,C)int*C;{E=F;for(H=G=0;E>-F;0>E?G+=D*D:(H+=*C++))D=H/F-C[--E];G=sqrt(G/F);}\n\n\nTry it online!\n\n• 2475.426\n– att\nAug 26, 2020 at 20:42\n• @att Fantastic - thanks! :D Aug 26, 2020 at 21:24\n\n# MATLAB/Octave, 12 bytes, score 336.32\n\n(changed according to guidance by Giuseppe to conform with rules)\n\n@(A)std(A,1)\n\n\nArgument with name A provides the lowest deviation for score, output to standard output variable Ans and actually written to command window.\nTry it online!\n\nstd is a built-in function. By default it uses $$\\N-1\\$$ as demoninator but by passing 1 as second argument it's changed to $$\\N\\$$.\n\n• I believe you need a way of inputting the variable itself, so this needs to be a full program taking input through input or else as a function handle, e.g., @(H)std(H,1). Taking input as a predefined variable isn't really allowed any longer. Sep 25, 2020 at 14:59\n• @Giuseppe I would argue that MATLAB scripts just work in the way you can put some data into workspace before running the actual script. IMHO it's just another way of passing arguments, in rules it's said that input/output is flexible and I'm not pulling the answer from variables, only the inputs. But I'm new here and I might not know all the subtle rules, I'm sorry. I changed the answer, but I'd like to point out @(H)std(H,1) still doesn't technically allow inputting anything if you don't save it to a variable. Sep 25, 2020 at 18:14\n• No worries, I can see your rep and the \"New contributor\" tag on your profile, so I know the arcane rules of Code Golf are probably new to you. This is the relevant community consensus. Note that anonymous functions (i.e., function handles) are perfectly fine--see for instance this for a MATLAB example. Sep 25, 2020 at 20:11\n• If you have any doubts, feel free to go to the CGCC general chatroom as they can probably point you to any weird rules better than I can (I still don't know some of the rules, I'm sure). And if you're feeling up to it, as a fellow MATLAB/Octave golfer, MATL is a stack-based golfing language based on MATLAB that's pretty powerful and enjoyable to golf in. Sep 25, 2020 at 20:13" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8736353,"math_prob":0.80904555,"size":1648,"snap":"2022-27-2022-33","text_gpt3_token_len":412,"char_repetition_ratio":0.13381995,"word_repetition_ratio":0.0,"special_character_ratio":0.2651699,"punctuation_ratio":0.09174312,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9929575,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-11T13:26:41Z\",\"WARC-Record-ID\":\"<urn:uuid:bf3a13bf-0d8c-4172-9bd6-5e0c7772bdd4>\",\"Content-Length\":\"416780\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:59e355c1-06bc-45fa-82c4-581d5b52fcbb>\",\"WARC-Concurrent-To\":\"<urn:uuid:3ece537a-c1b5-42b6-9059-d524733ad1ed>\",\"WARC-IP-Address\":\"151.101.193.69\",\"WARC-Target-URI\":\"https://codegolf.stackexchange.com/questions/210022/substandard-deviation/210025\",\"WARC-Payload-Digest\":\"sha1:ON2PMCI65LD7PKSLTYBMZPMJC7FOXI5R\",\"WARC-Block-Digest\":\"sha1:JTMLGQLXAYAZ7LGYZLVF5FTNTBVCQCA6\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882571284.54_warc_CC-MAIN-20220811103305-20220811133305-00622.warc.gz\"}"}
https://cran.rstudio.org/web/packages/mitml/vignettes/Introduction.html
[ "# Introduction\n\nThis vignette is intended to provide a first introduction to the R package mitml for generating and analyzing multiple imputations for multilevel missing data. A usual application of the package may consist of the following steps.\n\n1. Imputation\n2. Assessment of convergence\n3. Completion of the data\n4. Analysis\n5. Pooling\n\nThe mitml package offers a set of tools to facilitate each of these steps. This vignette is intended as a step-by-step illustration of the basic features of mitml. Further information can be found in the other vignettes and the package documentation.\n\n## Example data\n\nFor the purposes of this vignette, we employ a simple example that makes use of the studentratings data set, which is provided with mitml. To use it, the mitml package and the data set must be loaded as follows.\n\nlibrary(mitml)\ndata(studentratings)\n\nMore information about the variables in the data set can be obtained from its summary.\n\nsummary(studentratings)\n# ID FedState Sex MathAchiev MathDis\n# Min. :1001 B :375 Length:750 Min. :225.0 Min. :0.2987\n# 1st Qu.:1013 SH:375 Class :character 1st Qu.:440.7 1st Qu.:1.9594\n# Median :1513 Mode :character Median :492.7 Median :2.4350\n# Mean :1513 Mean :495.4 Mean :2.4717\n# 3rd Qu.:2013 3rd Qu.:553.2 3rd Qu.:3.0113\n# Max. :2025 Max. :808.1 Max. :4.7888\n# NA's :132 NA's :466\n# Min. :-9.00 Min. :191.1 Min. :0.7637 Min. :28.89 Min. :0.02449\n# 1st Qu.:35.00 1st Qu.:427.4 1st Qu.:2.1249 1st Qu.:43.80 1st Qu.:1.15338\n# Median :46.00 Median :490.2 Median :2.5300 Median :48.69 Median :1.65636\n# Mean :46.55 Mean :489.9 Mean :2.5899 Mean :48.82 Mean :1.73196\n# 3rd Qu.:59.00 3rd Qu.:558.4 3rd Qu.:3.0663 3rd Qu.:53.94 3rd Qu.:2.24018\n# Max. :93.00 Max. :818.5 Max. :4.8554 Max. :71.29 Max. :4.19316\n# NA's :281 NA's :153 NA's :140\n\nIn addition, the correlations between variables (based on pairwise observations) may be useful for identifying possible sources of information that may be used during the treatment of missing data.\n\n# MathAchiev MathDis SES ReadAchiev ReadDis CognAbility SchClimate\n# MathAchiev 1.000 -0.106 0.260 0.497 -0.080 0.569 -0.206\n# MathDis -0.106 1.000 -0.206 -0.189 0.613 -0.203 0.412\n# SES 0.260 -0.206 1.000 0.305 -0.153 0.138 -0.176\n# ReadAchiev 0.497 -0.189 0.305 1.000 -0.297 0.413 -0.320\n# ReadDis -0.080 0.613 -0.153 -0.297 1.000 -0.162 0.417\n# CognAbility 0.569 -0.203 0.138 0.413 -0.162 1.000 -0.266\n# SchClimate -0.206 0.412 -0.176 -0.320 0.417 -0.266 1.000\n\nThis illustrates that (a) most variables in the data set are affected by missing data, but also (b) that substantial relations exist between variables. For simplicity, we focus on only a subset of these variables.\n\n## Model of interest\n\nFor the present example, we focus on the two variables ReadDis (disciplinary problems in reading class) and ReadAchiev (reading achievement).\n\nAssume we are interested in the relation between these variables. Specifically, we may be interested in the following analysis model\n\n$\\mathit{ReadAchiev}_{ij} = \\gamma_{00} + \\gamma_{10} \\mathit{ReadDis}_{ij} + u_{0j} + e_{ij}$\n\nOn the basis of the syntax used in the R package lme4, this model may be written as follows.\n\nReadAchiev ~ 1 + ReadDis + (1|ID)\n\nIn this model, the relation between ReadDis and ReadAchiev is represented by a single fixed effect of ReadDis, and a random intercept is included to account for the clustered structure of the data and the group-level variance in ReadAchiev that is not explained by ReadDis.\n\n## Generating imputations\n\nThe mitml package includes wrapper functions for the R packages pan (panImpute) and jomo (jomoImpute). Here, we will use the first option. To generate imputations with panImpute, the user must specify (at least):\n\n1. an imputation model\n2. the number of iterations and imputations\n\nThe easiest way of specifying the imputation model is to use the formula argument of panImpute. Generally speaking, the imputation model should include all variables that are either (a) part of the model of interest, (b) related to the variables in the model, or (c) related to whether the variables in the model are missing.\n\nIn this simple example, we include only ReadDis and ReadAchiev as the main target variables and SchClimate as an auxiliary variable.\n\nfml <- ReadAchiev + ReadDis + SchClimate ~ 1 + (1|ID)\n\nNote that, in this specification of the imputation model. all variables are included on the left-hand side of the model, whereas the right-hand side is left “empty”. This model allows for all relations between variables at Level 1 and 2 and is thus suitable for most applications of the multilevel random intercept model (for further discussion, see also Grund, Lüdtke, & Robitzsch, 2016, in press).\n\nThe imputation procedure is then run for 5,000 iterations (burn-in), after which 100 imputations are drawn every 100 iterations.\n\nimp <- panImpute(studentratings, formula=fml, n.burn=5000, n.iter=100, m=100)\n\nThis step may take a few seconds. Once the process is completed, the imputations are saved in the imp object.\n\n## Assessing convergence\n\nIn mitml, there are two options for assessing the convergence of the imputation procedure. First, the summary calculates the “potential scale reduction factor” ($$\\hat{R}$$) for each parameter in the imputation model. If this value is noticeably larger than 1 for some parameters (say $$>1.05$$), a longer burn-in period may be required.\n\nsummary(imp)\n#\n# Call:\n#\n# panImpute(data = studentratings, formula = fml, n.burn = 5000,\n# n.iter = 100, m = 100)\n#\n# Cluster variable: ID\n# Fixed effect predictors: (Intercept)\n# Random effect predictors: (Intercept)\n#\n# Performed 5000 burn-in iterations, and generated 100 imputed data sets,\n# each 100 iterations apart.\n#\n# Potential scale reduction (Rhat, imputation phase):\n#\n# Min 25% Mean Median 75% Max\n# Beta: 1.000 1.001 1.001 1.001 1.002 1.003\n# Psi: 1.000 1.001 1.001 1.001 1.001 1.002\n# Sigma: 1.000 1.000 1.000 1.000 1.000 1.001\n#\n# Largest potential scale reduction:\n# Beta: [1,3], Psi: [2,1], Sigma: [2,1]\n#\n# Missing data per variable:\n# ID ReadAchiev ReadDis SchClimate FedState Sex MathAchiev MathDis SES CognAbility\n# MD% 0 0 20.4 18.7 0 0 17.6 62.1 37.5 0\n\nSecond, diagnostic plots can be requested with the plot function. These plots consist of a trace plot, an autocorrelation plot, and some additional information about the posterior distribution. Convergence can be assumed if the trace plot is stationary (i.e., does not “drift”), and the autocorrelation is within reasonable bounds for the chosen number of iterations between imputations.\n\nFor this example, we examine only the plot for the parameter Beta[1,2] (i.e., the intercept of ReadDis).\n\nplot(imp, trace=\"all\", print=\"beta\", pos=c(1,2))", null, "Taken together, both $$\\hat{R}$$ and the diagnostic plots indicate that the imputation model converged, setting the basis for the analysis of the imputed data sets.\n\n## Completing the data\n\nIn order to work with and analyze the imputed data sets, the data sets must be completed with the imputations generated in the previous steps. To do so, mitml provides the function mitmlComplete.\n\nimplist <- mitmlComplete(imp, \"all\")\n\nThis resulting object is a list that contains the 100 completed data sets.\n\n## Analysis and pooling\n\nIn order to obtain estimates for the model of interest, the model must be fit separately to each of the completed data sets, and the results must be pooled into a final set of estimates and inferences. The mitml package offers the with function to fit various statistical models to a list of completed data sets.\n\nIn this example, we use the lmer function from the R package lme4 to fit the model of interest.\n\nlibrary(lme4)\nfit <- with(implist, lmer(ReadAchiev ~ 1 + ReadDis + (1|ID)))\n\nThe resulting object is a list containing the 100 fitted models. To pool the results of these models into a set of final estimates and inferences, mitml offers the testEstimates function.\n\ntestEstimates(fit, var.comp=TRUE)\n#\n# Call:\n#\n# testEstimates(model = fit, var.comp = TRUE)\n#\n# Final parameter estimates and inferences obtained from 100 imputed data sets.\n#\n# Estimate Std.Error t.value df P(>|t|) RIV FMI\n# (Intercept) 582.186 14.501 40.147 4335.314 0.000 0.178 0.152\n# ReadDis -35.689 5.231 -6.822 3239.411 0.000 0.212 0.175\n#\n# Estimate\n# Intercept~~Intercept|ID 902.868\n# Residual~~Residual 6996.303\n# ICC|ID 0.114\n#\n# Unadjusted hypothesis test as appropriate in larger samples.\n\nThe estimates can be interpreted in a manner similar to the estimates from the corresponding complete-data procedure. In addition, the output includes diagnostic quantities such as the fraction of missing information (FMI), which can be helpful for interpreting the results and understanding problems with the imputation procedure." ]
[ null, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtAAAAF8CAIAAABpAxvDAAAgAElEQVR4nOx9Z1xUR9/2bKEtZVk6CIJYsGGFqDGCsUYTa0xiSdEnGhM1uZPnTjGmaNR4a4ppGqOGxN7jbYkVC3ZsiNJ7X2CBbWwvZ54P/5d5J2dLUEHUnOsDv+WcOXPmTL3m34aHMUYcOHDgwIEDBw6tCX5bF4ADBw4cOHDg8PiDIxwcOHDgwIEDh1YHRzg4cODAgQMHDq0OjnBw4MCBAwcOHFodHOHgwIEDBw4cOLQ6OMLBgQMHDhw4cGh1cISDAwcOHDhw4NDq4AgHBw4cOHDgwKHVwREODhw4cODAgUOrgyMcHDhw4MCBA4dWB0c4OHDgwIEDBw6tDo5wcODAgQMHDhxaHRzh4MCBAwcOHDi0OjjCwYEDBw4cOHBodXCEg8NDh8DAQF4T3NzcevTosWvXLuePFBYW5ufnNyfzsrIyknlDQwNcLC0tXb9+PcbYNv2ZM2fi4+O9vLy6dOny3XffIYSGDBkCj//www9OXuTt7c2j4OXlNXHiRLlc3pxCOsKsWbN4PN6lS5cQQi4uLiTz8PDwsWPH5uTk0N84cuTI5udcXFz84osvdujQQSKRJCQkkAqvqqqCV6SmpsKVq1ev8ni8IUOG2M3n7bffjouLy8rK4vF4ffv2df7S5rdaS4G8cfHixTExMRaL5UG+nQOHfzowBw4PGQICAhBC48aNmzJlS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1d3V69emEpDgBQOhQcAAAAoHD4SgUAAAAUDgUHAAAAKBwKDgAAAFA4FBwAAACgcCg4AAAAQOFQcAAAAIDCoeAAAAAAhft/ISRShGQp+HEAAAAASUVORK5CYII=", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.77293676,"math_prob":0.938181,"size":8534,"snap":"2019-35-2019-39","text_gpt3_token_len":2484,"char_repetition_ratio":0.13048066,"word_repetition_ratio":0.014609204,"special_character_ratio":0.32645887,"punctuation_ratio":0.2084673,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9809498,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-18T09:12:14Z\",\"WARC-Record-ID\":\"<urn:uuid:92be11b7-936c-49ab-9ca0-be53524024a5>\",\"Content-Length\":\"93537\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ffea0bbd-5ddc-49e4-90df-2326fce7cfa5>\",\"WARC-Concurrent-To\":\"<urn:uuid:4198ee7e-64f2-41a8-be12-2094000f4289>\",\"WARC-IP-Address\":\"99.84.181.83\",\"WARC-Target-URI\":\"https://cran.rstudio.org/web/packages/mitml/vignettes/Introduction.html\",\"WARC-Payload-Digest\":\"sha1:COPRSSFXOYWE2EOCLEP364GLGPVWIHFK\",\"WARC-Block-Digest\":\"sha1:UJT2XMMOXMU3B6MDWPMAVAN4NPE6IFVD\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514573264.27_warc_CC-MAIN-20190918085827-20190918111827-00189.warc.gz\"}"}
https://forum.yiiframework.com/t/how-to-use-loop-in-dropdownbox/66384
[ "# How To Use Loop In Dropdownbox\n\nI have a _form.php file then I want to create a dropdownlist want to use for loop\n\n``````\n\n<?php\n\necho \\$form->dropDownListRow(\\$model, 'Time', array(\\$this->loop()),array('class'=>'input-small'));\n\n?>\n\n``````\n\nController file have the function loop\n\n``````\n\npublic function loop()\n\n{\n\n\\$colors = array(0,1,2,3,4,5,6,7,8,9);\n\nforeach (\\$colors as \\$value)\n\n{\n\necho \"\\$value <br>\";\n\n}\n\n}\n\n``````\n\nin dropDownListRow the array(…) expects array items\n\nso,\n\n``````\npublic function loop()\n\n{\n\n\\$colors = array(0,1,2,3,4,5,6,7,8,9);\n\n\\$c =array();\n\nforeach (\\$colors as \\$value)\n\n{\n\n\\$c[] = \\$value . '<br/>' ; //why you want to use <br> ?\n\n}\n\nreturn \\$c;\n\n}\n\n``````\n\nand\n\n``````\n<?php\n\necho \\$form->dropDownListRow(\\$model, 'Time', \\$this->loop(),array('class'=>'input-small'));\n\n?>\n\n``````\n\nThank you very much.\n\nWelcome!\n\nCould you please tell us why you want to use <br> ?\n\nMay be other members want to know it", null, "use that to new line, but now I not use <br>.", null, "How to get select value in controller? Thx.\n\nto get selected value in controller?\n\nyou got it in post/request array when user submit the form, ie\n\n``````\n\necho \\$_POST['Model_class']['Time'];\n\n//or in a yii way\n\n\\$model = new Model_class;\n\n\\$model->attributes = \\$_POST['Model_class'];\n\necho \\$model->Time;\n\n``````\n\nto set a value? set it before rendering the view\n\n``````\n\n\\$model = new Model_class;\n\n\\$model->Time = 3;\n\n\\$this->render('viewname', array('model'=>\\$model));\n\n``````" ]
[ null, "http://www.yiiframework.com/forum/public/style_emoticons/default/smile.gif", null, "http://www.yiiframework.com/forum/public/style_emoticons/default/smile.gif", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.5288453,"math_prob":0.70136225,"size":1384,"snap":"2023-14-2023-23","text_gpt3_token_len":433,"char_repetition_ratio":0.10942029,"word_repetition_ratio":0.06030151,"special_character_ratio":0.33453757,"punctuation_ratio":0.19791667,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9712703,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-06-02T02:31:33Z\",\"WARC-Record-ID\":\"<urn:uuid:5c675f45-45ae-4f0d-bf47-554dd193278c>\",\"Content-Length\":\"32447\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:fda04cb5-f93d-4d04-8c20-1aebf83b26fe>\",\"WARC-Concurrent-To\":\"<urn:uuid:c5fd5ff1-5bbd-4499-b5be-c0c5805bcd2e>\",\"WARC-IP-Address\":\"159.69.125.49\",\"WARC-Target-URI\":\"https://forum.yiiframework.com/t/how-to-use-loop-in-dropdownbox/66384\",\"WARC-Payload-Digest\":\"sha1:RB7RVNY2TBIHCB7NG6AO3EOTFIQY2J2M\",\"WARC-Block-Digest\":\"sha1:JJFCRQENPGUZGHRKDWOORZ2NLAROI7HN\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224648245.63_warc_CC-MAIN-20230602003804-20230602033804-00053.warc.gz\"}"}
https://python-advanced.quantecon.org/_notebooks/hs_recursive_models.ipynb
[ "{ \"cells\": [ { \"cell_type\": \"markdown\", \"id\": \"e6185678\", \"metadata\": {}, \"source\": [ \"\\n\", \"\\n\", \"\\n\", \"\" ] }, { \"cell_type\": \"markdown\", \"id\": \"3b51c383\", \"metadata\": {}, \"source\": [ \"# Recursive Models of Dynamic Linear Economies\" ] }, { \"cell_type\": \"markdown\", \"id\": \"23f4bf59\", \"metadata\": {}, \"source\": [ \"## Contents\\n\", \"\\n\", \"- [Recursive Models of Dynamic Linear Economies](#Recursive-Models-of-Dynamic-Linear-Economies) \\n\", \" - [A Suite of Models](#A-Suite-of-Models) \\n\", \" - [Econometrics](#Econometrics) \\n\", \" - [Dynamic Demand Curves and Canonical Household Technologies](#Dynamic-Demand-Curves-and-Canonical-Household-Technologies) \\n\", \" - [Gorman Aggregation and Engel Curves](#Gorman-Aggregation-and-Engel-Curves) \\n\", \" - [Partial Equilibrium](#Partial-Equilibrium) \\n\", \" - [Equilibrium Investment Under Uncertainty](#Equilibrium-Investment-Under-Uncertainty) \\n\", \" - [A Rosen-Topel Housing Model](#A-Rosen-Topel-Housing-Model) \\n\", \" - [Cattle Cycles](#Cattle-Cycles) \\n\", \" - [Models of Occupational Choice and Pay](#Models-of-Occupational-Choice-and-Pay) \\n\", \" - [Permanent Income Models](#Permanent-Income-Models) \\n\", \" - [Gorman Heterogeneous Households](#Gorman-Heterogeneous-Households) \\n\", \" - [Non-Gorman Heterogeneous Households](#Non-Gorman-Heterogeneous-Households) \" ] }, { \"cell_type\": \"markdown\", \"id\": \"672ecc9e\", \"metadata\": {}, \"source\": [ \"> “Mathematics is the art of giving the same name to different things” – Henri Poincare\\n\", \"\\n\", \"\\n\", \"> “Complete market economies are all alike” –   Robert E. Lucas, Jr., (1989)\\n\", \"\\n\", \"\\n\", \"> “Every partial equilibrium model can be reinterpreted as a general equilibrium model.” –   Anonymous\" ] }, { \"cell_type\": \"markdown\", \"id\": \"5480109f\", \"metadata\": {}, \"source\": [ \"## A Suite of Models\\n\", \"\\n\", \"This lecture presents a class of linear-quadratic-Gaussian models of general economic equilibrium\\n\", \"designed by Lars Peter Hansen and Thomas J. Sargent [[HS13](https://python-advanced.quantecon.org/zreferences.html#id67)].\\n\", \"\\n\", \"The class of models is implemented in a Python class DLE that is part of quantecon.\\n\", \"\\n\", \"Subsequent lectures use the DLE class to implement various instances that have appeared in the economics literature\\n\", \"\\n\", \"1. [Growth in Dynamic Linear Economies](https://python-advanced.quantecon.org/growth_in_dles.html) \\n\", \"1. [Lucas Asset Pricing using DLE](https://python-advanced.quantecon.org/lucas_asset_pricing_dles.html) \\n\", \"1. [IRFs in Hall Model](https://python-advanced.quantecon.org/irfs_in_hall_model.html) \\n\", \"1. [Permanent Income Using the DLE class](https://python-advanced.quantecon.org/permanent_income_dles.html) \\n\", \"1. [Rosen schooling model](https://python-advanced.quantecon.org/rosen_schooling_model.html) \\n\", \"1. [Cattle cycles](https://python-advanced.quantecon.org/cattle_cycles.html) \\n\", \"1. [Shock Non Invertibility](https://python-advanced.quantecon.org/hs_invertibility_example.html) \" ] }, { \"cell_type\": \"markdown\", \"id\": \"4d2a25a7\", \"metadata\": {}, \"source\": [ \"### Overview of the Models\\n\", \"\\n\", \"In saying that “complete markets are all alike”, Robert E. Lucas, Jr. was noting that all of them have\\n\", \"\\n\", \"- a commodity space. \\n\", \"- a space dual to the commodity space in which prices reside. \\n\", \"- endowments of resources. \\n\", \"- peoples’ preferences over goods. \\n\", \"- physical technologies for transforming resources into goods. \\n\", \"- random processes that govern shocks to technologies and preferences and associated information flows. \\n\", \"- a single budget constraint per person. \\n\", \"- the existence of a representative consumer even when there are many people in the model. \\n\", \"- a concept of competitive equilibrium. \\n\", \"- theorems connecting competitive equilibrium allocations to allocations that would be chosen by a benevolent social planner. \\n\", \"\\n\", \"\\n\", \"The models have **no frictions** such as $\\\\ldots$\\n\", \"\\n\", \"- Enforcement difficulties \\n\", \"- Information asymmetries \\n\", \"- Other forms of transactions costs \\n\", \"- Externalities \\n\", \"\\n\", \"\\n\", \"The models extensively use the powerful ideas of\\n\", \"\\n\", \"- Indexing commodities and their prices by time (John R. Hicks). \\n\", \"- Indexing commodities and their prices by chance (Kenneth Arrow). \\n\", \"\\n\", \"\\n\", \"Much of the imperialism of complete markets models comes from applying these two tricks.\\n\", \"\\n\", \"The Hicks trick of indexing commodities by time is the idea that **dynamics are a special case of statics**.\\n\", \"\\n\", \"The Arrow trick of indexing commodities by chance is the idea that **analysis of trade under uncertainty is a special\\n\", \"case of the analysis of trade under certainty**.\\n\", \"\\n\", \"The [[HS13](https://python-advanced.quantecon.org/zreferences.html#id67)] class of models specify the commodity space, preferences, technologies, stochastic shocks and information flows in ways\\n\", \"that allow the models to be analyzed completely using only the tools of linear time series models and linear-quadratic optimal control described\\n\", \"in the two lectures [Linear State Space Models](https://python-intro.quantecon.org/linear_models.html) and [Linear Quadratic Control](https://python-intro.quantecon.org/lqcontrol.html).\\n\", \"\\n\", \"There are costs and benefits associated with the simplifications and specializations needed to make a particular model fit within the\\n\", \"[[HS13](https://python-advanced.quantecon.org/zreferences.html#id67)] class\\n\", \"\\n\", \"- the costs are that linear-quadratic structures are sometimes too confining. \\n\", \"- benefits include computational speed, simplicity, and ability to analyze many model features analytically or nearly analytically. \\n\", \"\\n\", \"\\n\", \"A variety of superficially different models are all instances of the [[HS13](https://python-advanced.quantecon.org/zreferences.html#id67)] class of models\\n\", \"\\n\", \"- Lucas asset pricing model \\n\", \"- Lucas-Prescott model of investment under uncertainty \\n\", \"- Asset pricing models with habit persistence \\n\", \"- Rosen-Topel equilibrium model of housing \\n\", \"- Rosen schooling models \\n\", \"- Rosen-Murphy-Scheinkman model of cattle cycles \\n\", \"- Hansen-Sargent-Tallarini model of robustness and asset pricing \\n\", \"- Many more $\\\\ldots$ \\n\", \"\\n\", \"\\n\", \"\\n\", \"\\n\", \"The diversity of these models conceals an essential unity that illustrates the quotation by Robert E. Lucas, Jr., with which\\n\", \"we began this lecture.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"98f09aef\", \"metadata\": {}, \"source\": [ \"### Forecasting?\\n\", \"\\n\", \"A consequence of a single budget constraint per person plus the Hicks-Arrow tricks is that households and firms need not forecast.\\n\", \"\\n\", \"But there exist equivalent structures called **recursive competitive equilibria** in which they do appear to need to forecast.\\n\", \"\\n\", \"In these structures, to forecast, households and firms use:\\n\", \"\\n\", \"- equilibrium pricing functions, and \\n\", \"- knowledge of the Markov structure of the economy’s state vector. \" ] }, { \"cell_type\": \"markdown\", \"id\": \"ce11568e\", \"metadata\": {}, \"source\": [ \"### Theory and Econometrics\\n\", \"\\n\", \"For an application of the [[HS13](https://python-advanced.quantecon.org/zreferences.html#id67)] class of models, the outcome of theorizing is a stochastic process, i.e., a probability\\n\", \"distribution over sequences of prices and quantities, indexed by parameters describing preferences, technologies, and information flows.\\n\", \"\\n\", \"Another name for that object is a likelihood function, a key object of both frequentist and Bayesian statistics.\\n\", \"\\n\", \"There are two important uses of an **equilibrium stochastic process** or **likelihood function**.\\n\", \"\\n\", \"The first is to solve the **direct problem**.\\n\", \"\\n\", \"The **direct problem** takes as inputs values of the parameters that define preferences, technologies, and information flows and as\\n\", \"an output characterizes or simulates random paths of quantities and prices.\\n\", \"\\n\", \"The second use of an equilibrium stochastic process or likelihood function is to solve the **inverse problem**.\\n\", \"\\n\", \"The **inverse problem** takes as an input a time series sample of observations on a subset of prices and quantities determined by the model\\n\", \"and from them makes inferences about the parameters that define the model’s preferences, technologies, and information flows.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"fe5cb2be\", \"metadata\": {}, \"source\": [ \"### More Details\\n\", \"\\n\", \"A [[HS13](https://python-advanced.quantecon.org/zreferences.html#id67)] economy consists of **lists of matrices** that describe peoples’ household technologies, their preferences over\\n\", \"consumption services, their production technologies, and their information sets.\\n\", \"\\n\", \"There are complete markets in history-contingent commodities.\\n\", \"\\n\", \"Competitive equilibrium allocations and prices\\n\", \"\\n\", \"- satisfy equations that are easy to write down and solve \\n\", \"- have representations that are convenient econometrically \\n\", \"\\n\", \"\\n\", \"Different example economies manifest themselves simply as different settings for various matrices.\\n\", \"\\n\", \"[[HS13](https://python-advanced.quantecon.org/zreferences.html#id67)] use these tools:\\n\", \"\\n\", \"- A theory of recursive dynamic competitive economies \\n\", \"- Linear optimal control theory \\n\", \"- Recursive methods for estimating and interpreting vector\\n\", \" autoregressions \\n\", \"\\n\", \"\\n\", \"The models are flexible enough to express alternative senses of a representative household\\n\", \"\\n\", \"- A single ‘stand-in’ household of the type used to good effect by Edward C. Prescott. \\n\", \"- Heterogeneous households satisfying conditions for Gorman aggregation\\n\", \" into a representative household. \\n\", \"- Heterogeneous household technologies that violate conditions for Gorman\\n\", \" aggregation but are still susceptible to aggregation into a single\\n\", \" representative household via ‘non-Gorman’ or ‘mongrel’ aggregation’. \\n\", \"\\n\", \"\\n\", \"These three alternative types of aggregation have different consequences in terms of how prices and allocations can be computed.\\n\", \"\\n\", \"In particular, can prices and an aggregate allocation be computed before the\\n\", \"equilibrium allocation to individual heterogeneous households is computed?\\n\", \"\\n\", \"- Answers are “Yes” for Gorman aggregation, “No” for non-Gorman\\n\", \" aggregation. \\n\", \"\\n\", \"\\n\", \"In summary, the insights and practical benefits from economics to be introduced in this lecture\\n\", \"are\\n\", \"\\n\", \"- Deeper understandings that come from recognizing common underlying\\n\", \" structures. \\n\", \"- Speed and ease of computation that comes from unleashing a common suite of Python programs. \\n\", \"\\n\", \"\\n\", \"We’ll use the following **mathematical tools**\\n\", \"\\n\", \"- Stochastic Difference Equations (Linear). \\n\", \"- Duality: LQ Dynamic Programming and Linear Filtering are the same things\\n\", \" mathematically. \\n\", \"- The Spectral Factorization Identity (for understanding vector\\n\", \" autoregressions and non-Gorman aggregation). \\n\", \"\\n\", \"\\n\", \"So here is our roadmap.\\n\", \"\\n\", \"We’ll describe sets of matrices that pin down\\n\", \"\\n\", \"- Information \\n\", \"- Technologies \\n\", \"- Preferences \\n\", \"\\n\", \"\\n\", \"Then we’ll describe\\n\", \"\\n\", \"- Equilibrium concept and computation \\n\", \"- Econometric representation and estimation \\n\", \"\\n\", \"\\n\", \"\\n\", \"\" ] }, { \"cell_type\": \"markdown\", \"id\": \"1bf4dadf\", \"metadata\": {}, \"source\": [ \"### Stochastic Model of Information Flows and Outcomes\\n\", \"\\n\", \"We’ll use stochastic linear difference equations to describe information flows **and** equilibrium outcomes.\\n\", \"\\n\", \"The sequence $\\\\{w_t : t=1,2, \\\\ldots\\\\}$ is said to be a martingale\\n\", \"difference sequence adapted to $\\\\{J_t : t=0, 1, \\\\ldots \\\\}$ if\\n\", \"$E(w_{t+1} \\\\vert J_t) = 0$ for $t=0, 1, \\\\ldots\\\\,$.\\n\", \"\\n\", \"The sequence $\\\\{w_t : t=1,2,\\\\ldots\\\\}$ is said to be conditionally\\n\", \"homoskedastic if $E(w_{t+1}w_{t+1}^\\\\prime \\\\mid J_t) = I$ for\\n\", \"$t=0,1, \\\\ldots\\\\,$.\\n\", \"\\n\", \"We assume that the $\\\\{w_t : t=1,2,\\\\ldots\\\\}$ process is\\n\", \"conditionally homoskedastic.\\n\", \"\\n\", \"\\n\", \"\\n\", \"Let $\\\\{x_t : t=1,2,\\\\ldots\\\\}$ be a sequence of\\n\", \"$n$-dimensional random vectors, i.e. an $n$-dimensional\\n\", \"stochastic process.\\n\", \"\\n\", \"The process $\\\\{x_t : t=1,2,\\\\ldots\\\\}$ is constructed recursively\\n\", \"using an initial random vector\\n\", \"$x_0\\\\sim {\\\\mathcal N}(\\\\hat x_0, \\\\Sigma_0)$ and a time-invariant\\n\", \"law of motion:\\n\", \"\\n\", \"$$\\n\", \"x_{t+1} = Ax_t + Cw_{t+1}\\n\", \"$$\\n\", \"\\n\", \"for $t=0,1,\\\\ldots$ where $A$ is an $n$ by $n$ matrix and $C$ is an\\n\", \"$n$ by $N$ matrix.\\n\", \"\\n\", \"Evidently, the distribution of $x_{t+1}$ conditional on $x_t$ is\\n\", \"${\\\\mathcal N}(Ax_t, CC')$.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"9911c1c4\", \"metadata\": {}, \"source\": [ \"### Information Sets\\n\", \"\\n\", \"Let $J_0$ be generated by $x_0$ and $J_t$ be generated\\n\", \"by $x_0, w_1, \\\\ldots ,\\n\", \"w_t$, which means that $J_t$ consists of the set of all measurable\\n\", \"functions of $\\\\{x_0, w_1,\\\\ldots,\\n\", \"w_t\\\\}$.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"97af87ab\", \"metadata\": {}, \"source\": [ \"### Prediction Theory\\n\", \"\\n\", \"The optimal forecast of $x_{t+1}$ given current information is\\n\", \"\\n\", \"$$\\n\", \"E(x_{t+1} \\\\mid J_t) = Ax_t\\n\", \"$$\\n\", \"\\n\", \"and the one-step-ahead forecast error is\\n\", \"\\n\", \"$$\\n\", \"x_{t+1} - E(x_{t+1} \\\\mid J_t) = Cw_{t+1}\\n\", \"$$\\n\", \"\\n\", \"The covariance matrix of $x_{t+1}$ conditioned on $J_t$ is\\n\", \"\\n\", \"$$\\n\", \"E (x_{t+1} - E ( x_{t+1} \\\\mid J_t) ) (x_{t+1} - E ( x_{t+1} \\\\mid J_t))^\\\\prime = CC^\\\\prime\\n\", \"$$\\n\", \"\\n\", \"A nonrecursive expression for $x_t$ as a function of\\n\", \"$x_0, w_1, w_2, \\\\ldots, w_t$ is\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \" x_t &= Ax_{t-1} + Cw_t \\\\\\\\\\n\", \"&= A^2 x_{t-2} + ACw_{t-1} + Cw_t \\\\\\\\\\n\", \"&= \\\\Bigl[\\\\sum_{\\\\tau=0}^{t-1} A^\\\\tau Cw_{t-\\\\tau} \\\\Bigr] + A^t x_0\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"\\n\", \"\\n\", \"Shift forward in time:\\n\", \"\\n\", \"$$\\n\", \"x_{t+j} = \\\\sum^{j-1}_{s=0} A^s C w_{t+j-s} + A^j x_t\\n\", \"$$\\n\", \"\\n\", \"Projecting on the information set $\\\\{ x_0, w_t, w_{t-1},\\n\", \"\\\\ldots, w_1\\\\}$ gives\\n\", \"\\n\", \"$$\\n\", \"E_t x_{t+j} = A^j x_t\\n\", \"$$\\n\", \"\\n\", \"where $E_t (\\\\cdot) \\\\equiv E [ (\\\\cdot) \\\\mid x_0, w_t, w_{t-1}, \\\\ldots, w_1]\\n\", \"= E (\\\\cdot) \\\\mid J_t$, and $x_t$ is in $J_t$.\\n\", \"\\n\", \"\\n\", \"\\n\", \"It is useful to obtain the covariance matrix of the $j$-step-ahead\\n\", \"prediction error $x_{t+j} - E_t x_{t+j} = \\\\sum^{j-1}_{s=0} A^s C w_{t-s+j}$.\\n\", \"\\n\", \"Evidently,\\n\", \"\\n\", \"$$\\n\", \"E_t (x_{t+j} - E_t x_{t+j}) (x_{t+j} - E_t x_{t+j})^\\\\prime =\\n\", \"\\\\sum^{j-1}_{k=0} A^k C C^\\\\prime A^{k^\\\\prime} \\\\equiv v_j\\n\", \"$$\\n\", \"\\n\", \"$v_j$ can be calculated recursively via\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \" v_1 &= CC^\\\\prime \\\\\\\\\\n\", \" v_j &= CC^\\\\prime + A v_{j-1} A^\\\\prime, \\\\quad j \\\\geq 2\\n\", \"\\\\end{aligned}\\n\", \"\" ] }, { \"cell_type\": \"markdown\", \"id\": \"b414b7c9\", \"metadata\": {}, \"source\": [ \"### Orthogonal Decomposition\\n\", \"\\n\", \"To decompose these covariances into parts attributable to the individual\\n\", \"components of $w_t$, we let $i_\\\\tau$ be an\\n\", \"$N$-dimensional column vector of zeroes except in position\\n\", \"$\\\\tau$, where there is a one. Define a matrix\\n\", \"$\\\\upsilon_{j,\\\\tau}$\\n\", \"\\n\", \"$$\\n\", \"\\\\upsilon_{j,\\\\tau} = \\\\sum_{k=0}^{j-1} A^k C i_\\\\tau i_\\\\tau^\\\\prime C^\\\\prime\\n\", \"A^{^\\\\prime k} .\\n\", \"$$\\n\", \"\\n\", \"Note that $\\\\sum_{\\\\tau=1}^N i_\\\\tau i_\\\\tau^\\\\prime = I$, so that we\\n\", \"have\\n\", \"\\n\", \"$$\\n\", \"\\\\sum_{\\\\tau=1}^N \\\\upsilon_{j, \\\\tau} = \\\\upsilon_j\\n\", \"$$\\n\", \"\\n\", \"Evidently, the matrices\\n\", \"$\\\\{ \\\\upsilon_{j, \\\\tau} , \\\\tau = 1, \\\\ldots, N \\\\}$ give an\\n\", \"orthogonal decomposition of the covariance matrix of\\n\", \"$j$-step-ahead prediction errors into the parts attributable to\\n\", \"each of the components $\\\\tau =\\n\", \"1, \\\\ldots, N$.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"11f861ee\", \"metadata\": {}, \"source\": [ \"### Taste and Technology Shocks\\n\", \"\\n\", \"$E(w_t \\\\mid J_{t-1}) = 0$ and $E(w_t\\n\", \"w_t^\\\\prime \\\\mid J_{t-1}) = I$ for $t=1,2, \\\\ldots$\\n\", \"\\n\", \"$$\\n\", \"b_t = U_b z_t \\\\hbox{ and } d_t = U_dz_t,\\n\", \"$$\\n\", \"\\n\", \"$U_b$ and $U_d$ are matrices that select entries of\\n\", \"$z_t$. The law of motion for $\\\\{z_t : t=0, 1, \\\\ldots\\\\}$ is\\n\", \"\\n\", \"$$\\n\", \"z_{t+1} = A_{22} z_t + C_2 w_{t+1} \\\\ \\\\hbox { for } t = 0, 1, \\\\ldots\\n\", \"$$\\n\", \"\\n\", \"where $z_0$ is a given initial condition. The eigenvalues of the\\n\", \"matrix $A_{22}$ have absolute values that are less than or equal\\n\", \"to one.\\n\", \"\\n\", \"Thus, in summary, our model of **information and shocks** is\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"z_{t+1} &=A_{22} z_t + C_2 w_{t+1}\\n\", \"\\\\\\\\ b_t &= U_b z_t \\\\\\\\ d_t &= U_d z_t .\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"We can now briefly summarize other components of our economies, in particular\\n\", \"\\n\", \"- Production technologies \\n\", \"- Household technologies \\n\", \"- Household preferences \" ] }, { \"cell_type\": \"markdown\", \"id\": \"fe430641\", \"metadata\": {}, \"source\": [ \"### Production Technology\\n\", \"\\n\", \"Where $c_t$ is a vector of consumption rates, $k_t$ is a vector of physical capital goods, $g_t$ is\\n\", \"a vector intermediate productions goods, $d_t$ is a vector of technology shocks, the production technology is\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"\\\\Phi_c c_t + \\\\Phi_g g_t + \\\\Phi_i i_t &=\\\\Gamma k_{t-1} + d_t \\\\\\\\\\n\", \"k_t &=\\\\Delta_k k_{t-1} + \\\\Theta_k i_t \\\\\\\\ g_t \\\\cdot g_t &=\\\\ell_t^2\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"Here $\\\\Phi_c, \\\\Phi_g, \\\\Phi_i, \\\\Gamma, \\\\Delta_k, \\\\Theta_k$ are all matrices conformable to the vectors they multiply and\\n\", \"$\\\\ell_t$ is a disutility generating resource supplied by the household.\\n\", \"\\n\", \"For technical reasons that facilitate computations, we make the following.\\n\", \"\\n\", \"**Assumption:** $[\\\\Phi_c\\\\ \\\\Phi_g]$ is nonsingular.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"fa925959\", \"metadata\": {}, \"source\": [ \"### Household Technology\\n\", \"\\n\", \"Households confront a technology that allows them to devote consumption goods to construct a vector $h_t$ of household capital goods\\n\", \"and a vector $s_t$ of utility generating house services\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"s_t &= \\\\Lambda h_{t-1} + \\\\Pi c_t \\\\\\\\\\n\", \"h_t &= \\\\Delta_h h_{t-1} + \\\\Theta_h c_t\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"where $\\\\Lambda, \\\\Pi, \\\\Delta_h, \\\\Theta_h$ are matrices that pin down the household technology.\\n\", \"\\n\", \"We make the following\\n\", \"\\n\", \"**Assumption:** The absolute values of the eigenvalues of $\\\\Delta_h$\\n\", \"are less than or equal to one.\\n\", \"\\n\", \"Below, we’ll outline further assumptions that we shall occasionally impose.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"74db147b\", \"metadata\": {}, \"source\": [ \"### Preferences\\n\", \"\\n\", \"Where $b_t$ is a stochastic process of preference shocks that will play the role of demand shifters, the representative household orders\\n\", \"stochastic processes of consumption services $s_t$ according to\\n\", \"\\n\", \"$$\\n\", \"\\\\Bigl( {1 \\\\over 2}\\\\Bigr) E \\\\sum_{t=0}^\\\\infty \\\\beta^t [ (s_t -\\n\", \"b_t) \\\\cdot ( s_t - b_t) + \\\\ell_t^2 ] \\\\bigl| J_0 , \\\\ 0 < \\\\beta < 1\\n\", \"$$\\n\", \"\\n\", \"We now proceed to give examples of production and household technologies that appear in various models that appear in the literature.\\n\", \"\\n\", \"First, we give examples of production Technologies\\n\", \"\\n\", \"$$\\n\", \"\\\\Phi_c c_t + \\\\Phi_g g_t + \\\\Phi_i i_t = \\\\Gamma k_{t-1} + d_t\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"\\\\mid g_t \\\\mid \\\\leq \\\\ell_t\\n\", \"$$\\n\", \"\\n\", \"so we’ll be looking for specifications of the matrices $\\\\Phi_c, \\\\Phi_g, \\\\Phi_i, \\\\Gamma, \\\\Delta_k, \\\\Theta_k$ that define them.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"cddcd1a8\", \"metadata\": {}, \"source\": [ \"### Endowment Economy\\n\", \"\\n\", \"There is a single consumption good that cannot be stored over time.\\n\", \"\\n\", \"In time period $t$, there is an endowment $d_t$ of this single\\n\", \"good.\\n\", \"\\n\", \"There is neither a capital stock, nor an intermediate good, nor a\\n\", \"rate of investment.\\n\", \"\\n\", \"So $c_t = d_t$.\\n\", \"\\n\", \"To implement this specification, we can choose $A_{22}, C_2$, and\\n\", \"$U_d$ to make $d_t$ follow any of a variety of stochastic\\n\", \"processes.\\n\", \"\\n\", \"To satisfy our earlier rank assumption, we set:\\n\", \"\\n\", \"$$\\n\", \"c_t + i_t = d_{1t}\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"g_t = \\\\phi_1 i_t\\n\", \"$$\\n\", \"\\n\", \"where $\\\\phi_1$ is a small positive number.\\n\", \"\\n\", \"To implement this\\n\", \"version, we set $\\\\Delta_k = \\\\Theta_k = 0$ and\\n\", \"\\n\", \"$$\\n\", \"\\\\Phi_c = \\\\begin{bmatrix} 1 \\\\\\\\ 0 \\\\\\\\ \\\\end{bmatrix},\\n\", \"\\\\Phi_i = \\\\begin{bmatrix} 1 \\\\\\\\ \\\\phi_1 \\\\\\\\ \\\\end{bmatrix} , \\\\ \\\\ \\\\Phi_g =\\n\", \"\\\\begin{bmatrix} 0 \\\\\\\\ -1 \\\\\\\\ \\\\end{bmatrix}, \\\\ \\\\ \\\\Gamma = \\\\begin{bmatrix}\\n\", \" 0 \\\\\\\\ 0 \\\\end{bmatrix}, \\\\ \\\\ d_t = \\\\begin{bmatrix} d_{1t}\\n\", \"\\\\\\\\ 0 \\\\end{bmatrix}\\n\", \"$$\\n\", \"\\n\", \"We can use this specification to create a linear-quadratic version of\\n\", \"Lucas’s (1978) asset pricing model.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"703cd35f\", \"metadata\": {}, \"source\": [ \"### Single-Period Adjustment Costs\\n\", \"\\n\", \"There is a single consumption good, a single intermediate good, and a\\n\", \"single investment good.\\n\", \"\\n\", \"The technology is described by\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"c_t &=\\\\gamma k_{t-1} + d_{1t} ,\\\\ \\\\ \\\\gamma > 0 \\\\\\\\\\n\", \"\\\\phi_1 i_t &= g_t + d_{2t}, \\\\ \\\\ \\\\phi_1 > 0 \\\\\\\\\\n\", \"\\\\ell^2_t &= g^2_t \\\\\\\\\\n\", \"k_t &= \\\\delta_k k_{t-1} + i_t ,\\\\ 0< \\\\delta_k < 1\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"Set\\n\", \"\\n\", \"$$\\n\", \"\\\\Phi_c = \\\\begin{bmatrix}1 \\\\\\\\ 0 \\\\end{bmatrix} ,\\\\ \\\\Phi_g = \\\\begin{bmatrix}0 \\\\\\\\\\n\", \"-1 \\\\end{bmatrix}, \\\\ \\\\Phi_i = \\\\begin{bmatrix} 0 \\\\\\\\ \\\\phi_1 \\\\end{bmatrix}\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"\\\\Gamma = \\\\begin{bmatrix} \\\\gamma \\\\\\\\ 0 \\\\end{bmatrix}, \\\\ \\\\Delta_k = \\\\delta_k,\\n\", \"\\\\ \\\\Theta_k = 1\\n\", \"$$\\n\", \"\\n\", \"We set $A_{22}, C_2$ and $U_d$ to make\\n\", \"$(d_{1t}, d_{2t})^\\\\prime = d_t$ follow a desired stochastic\\n\", \"process.\\n\", \"\\n\", \"Now we describe some examples of preferences, which as we have seen are ordered by\\n\", \"\\n\", \"$$\\n\", \"-\\\\left({1 \\\\over 2}\\\\right) E \\\\sum^\\\\infty_{t=0} \\\\beta^t \\\\left[ (s_t - b_t) \\\\cdot (s_t -\\n\", \"b_t) + (\\\\ell_t)^2 \\\\right] \\\\mid J_0 \\\\quad ,\\\\ 0 < \\\\beta < 1\\n\", \"$$\\n\", \"\\n\", \"where household services are produced via the household technology\\n\", \"\\n\", \"$$\\n\", \"h_t = \\\\Delta_h h_{t-1} + \\\\Theta_h c_t\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"s_t = \\\\Lambda h_{t-1} + \\\\Pi c_t\\n\", \"$$\\n\", \"\\n\", \"and we make\\n\", \"\\n\", \"**Assumption:** The absolute values of the eigenvalues of $\\\\Delta_h$\\n\", \"are less than or equal to one.\\n\", \"\\n\", \"Later we shall introduce **canonical** household technologies that satisfy an ‘invertibility’\\n\", \"requirement relating sequences $\\\\{s_t\\\\}$ of services and\\n\", \"$\\\\{c_t\\\\}$ of consumption flows.\\n\", \"\\n\", \"And we’ll describe how to obtain a canonical representation\\n\", \"of a household technology from one that is not canonical.\\n\", \"\\n\", \"Here are some examples of household preferences.\\n\", \"\\n\", \"**Time Separable preferences**\\n\", \"\\n\", \"$$\\n\", \"-{1\\\\over 2} E \\\\sum^\\\\infty_{t=0} \\\\beta^t \\\\left[ (c_t - b_t)^2 + \\\\ell_t^2\\n\", \"\\\\right] \\\\mid J_0 \\\\quad ,\\\\ 0 < \\\\beta < 1\\n\", \"$$\\n\", \"\\n\", \"**Consumer Durables**\\n\", \"\\n\", \"$$\\n\", \"h_t = \\\\delta_h h_{t-1} + c_t \\\\quad ,\\\\ 0 < \\\\delta_h < 1\\n\", \"$$\\n\", \"\\n\", \"Services at $t$ are related to the stock of durables at the\\n\", \"beginning of the period:\\n\", \"\\n\", \"$$\\n\", \"s_t = \\\\lambda h_{t-1} \\\\ , \\\\ \\\\lambda > 0\\n\", \"$$\\n\", \"\\n\", \"Preferences are ordered by\\n\", \"\\n\", \"$$\\n\", \"-{1 \\\\over 2} E \\\\sum^\\\\infty_{t=0} \\\\beta^t \\\\left[(\\\\lambda h_{t-1} -\\n\", \"b_t)^2 + \\\\ell_t^2\\\\right] \\\\mid J_0\\n\", \"$$\\n\", \"\\n\", \"Set $\\\\Delta_h = \\\\delta_h,\\n\", \"\\\\Theta_h =1, \\\\Lambda = \\\\lambda, \\\\Pi = 0$.\\n\", \"\\n\", \"**Habit Persistence**\\n\", \"\\n\", \"$$\\n\", \"-\\\\Bigl({1\\\\over 2}\\\\Bigr)\\\\, E \\\\sum^\\\\infty_{t=0} \\\\beta^t \\\\Bigl[\\\\bigl(c_t - \\\\lambda\\n\", \" (1-\\\\delta_h) \\\\sum^\\\\infty_{j=0}\\\\, \\\\delta^j_h\\\\, c_{t-j-1}-b_t\\\\bigr)^2+\\\\ell^2_t\\\\Bigl] \\\\bigl| J_0\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"0<\\\\beta < 1\\\\ ,\\\\ 0 < \\\\delta_h < 1\\\\ ,\\\\ \\\\lambda > 0\\n\", \"$$\\n\", \"\\n\", \"Here the effective bliss point $b_t + \\\\lambda (1 - \\\\delta_h)\\n\", \"\\\\sum^\\\\infty_{j=0} \\\\delta^j_h\\\\, c_{t-j-1}$ shifts in response to a moving\\n\", \"average of past consumption.\\n\", \"\\n\", \"**Initial Conditions**\\n\", \"\\n\", \"Preferences of this form require an initial condition for the geometric\\n\", \"sum $\\\\sum^\\\\infty_{j=0} \\\\delta_h^j c_{t - j-1}$ that we specify as\\n\", \"an initial condition for the ‘stock of household durables,’\\n\", \"$h_{-1}$.\\n\", \"\\n\", \"\\n\", \"\\n\", \"Set\\n\", \"\\n\", \"$$\\n\", \"h_t = \\\\delta_h h_{t-1} + (1-\\\\delta_h) c_t \\\\quad ,\\\\ 0 < \\\\delta_h < 1\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"h_t = (1 - \\\\delta_h) \\\\sum^t_{j=0} \\\\delta_h^j\\\\, c_{t-j} + \\\\delta^{t+1}_h\\\\,\\n\", \"h_{-1}\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"s_t = - \\\\lambda h_{t-1} + c_t, \\\\ \\\\lambda > 0\\n\", \"$$\\n\", \"\\n\", \"To implement, set\\n\", \"$\\\\Lambda = -\\\\lambda,\\\\ \\\\Pi = 1,\\\\ \\\\Delta_h = \\\\delta_h,\\\\ \\\\Theta_h=1-\\\\delta_h$.\\n\", \"\\n\", \"**Seasonal Habit Persistence**\\n\", \"\\n\", \"$$\\n\", \"-\\\\Bigl({1\\\\over 2}\\\\Bigr) \\\\, E \\\\sum^\\\\infty_{t=0} \\\\beta^t \\\\Bigl[\\\\bigl(c_t - \\\\lambda\\n\", \" (1-\\\\delta_h) \\\\sum^\\\\infty_{j=0}\\\\, \\\\delta^{j}_h\\\\, c_{t-4j-4}-b_t\\\\bigr)^2+\\\\ell^2_t\\\\Bigr]\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"0<\\\\beta < 1\\\\ ,\\\\ 0 < \\\\delta_h < 1\\\\ ,\\\\ \\\\lambda > 0\\n\", \"$$\\n\", \"\\n\", \"Here the effective bliss point $b_t + \\\\lambda (1 - \\\\delta_h) \\\\sum^\\\\infty_{j=0} \\\\delta^j_h\\\\, c_{t-4j-4}$ shifts in response to a\\n\", \"moving average of past consumptions of the same quarter.\\n\", \"\\n\", \"To implement, set\\n\", \"\\n\", \"$$\\n\", \"\\\\tilde h_t = \\\\delta_h \\\\tilde h_{t-4} + (1-\\\\delta_h) c_t \\\\quad ,\\\\ 0 < \\\\delta_h < 1\\n\", \"$$\\n\", \"\\n\", \"This implies that\\n\", \"\\n\", \"$$\\n\", \"h_t = \\\\begin{bmatrix}\\\\tilde h_t \\\\\\\\\\n\", \" \\\\tilde h_{t-1}\\\\\\\\\\n\", \" \\\\tilde h_{t-2}\\\\\\\\\\n\", \" \\\\tilde h_{t-3}\\\\end{bmatrix} =\\n\", \" \\\\begin{bmatrix} 0 & 0 & 0 & \\\\delta_h \\\\\\\\\\n\", \" 1 & 0 & 0 & 0 \\\\\\\\\\n\", \" 0 & 1 & 0 & 0 \\\\\\\\\\n\", \" 0 & 0 & 1 & 0 \\\\end{bmatrix}\\n\", \" \\\\begin{bmatrix} \\\\tilde h_{t-1} \\\\\\\\ \\\\tilde h_{t-2} \\\\\\\\ \\\\tilde h_{t-3} \\\\\\\\ \\\\tilde h_{t-4} \\\\end{bmatrix}\\n\", \" + \\\\begin{bmatrix}(1 - \\\\delta_h) \\\\\\\\ 0 \\\\\\\\ 0 \\\\\\\\ 0 \\\\end{bmatrix} c_t\\n\", \"$$\\n\", \"\\n\", \"with consumption services\\n\", \"\\n\", \"$$\\n\", \"s_t = - \\\\begin{bmatrix}0 & 0 & 0 & -\\\\lambda\\\\end{bmatrix} h_{t-1} + c_t \\\\quad , \\\\ \\\\lambda > 0\\n\", \"$$\\n\", \"\\n\", \"**Adjustment Costs**.\\n\", \"\\n\", \"Recall\\n\", \"\\n\", \"$$\\n\", \"-\\\\Bigl({1 \\\\over 2}\\\\Bigr) E \\\\sum^\\\\infty_{t=0} \\\\beta^t [(c_t - b_{1t})^2 +\\n\", \"\\\\lambda^2 (c_t - c_{t-1})^2 + \\\\ell^2_t ] \\\\mid J_0\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"0 < \\\\beta < 1 \\\\quad, \\\\ \\\\lambda > 0\\n\", \"$$\\n\", \"\\n\", \"To capture adjustment costs, set\\n\", \"\\n\", \"$$\\n\", \"h_t = c_t\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"s_t = \\\\begin{bmatrix} 0 \\\\\\\\ - \\\\lambda \\\\end{bmatrix} h_{t-1} +\\n\", \"\\\\begin{bmatrix} 1 \\\\\\\\ \\\\lambda \\\\end{bmatrix} c_t\\n\", \"$$\\n\", \"\\n\", \"so that\\n\", \"\\n\", \"$$\\n\", \"s_{1t} = c_t\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"s_{2t} = \\\\lambda (c_t - c_{t-1} )\\n\", \"$$\\n\", \"\\n\", \"We set the first component $b_{1t}$ of $b_t$ to capture the\\n\", \"stochastic bliss process and set the second component identically equal\\n\", \"to zero.\\n\", \"\\n\", \"Thus, we set $\\\\Delta_h = 0, \\\\Theta_h = 1$\\n\", \"\\n\", \"$$\\n\", \"\\\\Lambda = \\\\begin{bmatrix} 0 \\\\\\\\ -\\\\lambda \\\\end{bmatrix}\\\\ ,\\\\ \\\\Pi =\\n\", \"\\\\begin{bmatrix} 1 \\\\\\\\ \\\\lambda \\\\end{bmatrix}\\n\", \"$$\\n\", \"\\n\", \"**Multiple Consumption Goods**\\n\", \"\\n\", \"$$\\n\", \"\\\\Lambda = \\\\begin{bmatrix} 0\\\\\\\\0\\\\end{bmatrix} \\\\ \\\\hbox { and } \\\\ \\\\Pi =\\n\", \"\\\\begin{bmatrix}\\\\pi_1 & 0 \\\\\\\\ \\\\pi_2 & \\\\pi_3 \\\\end{bmatrix}\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"-{1 \\\\over 2} \\\\beta^t (\\\\Pi c_t - b_t)^\\\\prime (\\\\Pi c_t - b_t)\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"\\\\mu_t= - \\\\beta^t [\\\\Pi^\\\\prime \\\\Pi\\\\, c_t - \\\\Pi^\\\\prime\\\\, b_t]\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"c_t = - (\\\\Pi^\\\\prime \\\\Pi)^{-1} \\\\beta^{-t} \\\\mu_t + (\\\\Pi^\\\\prime \\\\Pi)^{-1}\\n\", \"\\\\Pi^\\\\prime b_t\\n\", \"$$\\n\", \"\\n\", \"This is called the **Frisch demand function** for consumption.\\n\", \"\\n\", \"We can think of the vector $\\\\mu_t$ as playing the role of prices,\\n\", \"up to a common factor, for all dates and states.\\n\", \"\\n\", \"The scale factor is\\n\", \"determined by the choice of numeraire.\\n\", \"\\n\", \"Notions of **substitutes and complements** can be defined in terms of these\\n\", \"Frisch demand functions.\\n\", \"\\n\", \"Two goods can be said to be **substitutes** if the\\n\", \"cross-price effect is positive and to be **complements** if this effect is\\n\", \"negative.\\n\", \"\\n\", \"Hence this classification is determined by the off-diagonal\\n\", \"element of $-(\\\\Pi^\\\\prime \\\\Pi)^{-1}$, which is equal to\\n\", \"$\\\\pi_2 \\\\pi_3 /\\\\det\\n\", \"(\\\\Pi^\\\\prime \\\\Pi)$.\\n\", \"\\n\", \"If $\\\\pi_2$ and $\\\\pi_3$ have the same\\n\", \"sign, the goods are substitutes.\\n\", \"\\n\", \"If they have opposite signs, the goods\\n\", \"are complements.\\n\", \"\\n\", \"To summarize, our economic structure consists of the matrices that define the following components:\\n\", \"\\n\", \"**Information and shocks**\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"z_{t+1} &=A_{22} z_t + C_2 w_{t+1}\\n\", \"\\\\\\\\ b_t &= U_b z_t \\\\\\\\ d_t &= U_d z_t\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"**Production Technology**\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"\\\\Phi_c c_t &+ \\\\Phi_g g_t + \\\\Phi_i i_t = \\\\Gamma k_{t-1} + d_t \\\\\\\\\\n\", \"k_t &=\\\\Delta_k k_{t-1} + \\\\Theta_k i_t \\\\\\\\ g_t \\\\cdot g_t &=\\\\ell_t^2\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"**Household Technology**\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"s_t &=\\n\", \"\\\\Lambda h_{t-1} + \\\\Pi c_t \\\\\\\\ h_t &= \\\\Delta_h h_{t-1} + \\\\Theta_h c_t\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"**Preferences**\\n\", \"\\n\", \"$$\\n\", \"\\\\Bigl( {1 \\\\over 2}\\\\Bigr) E \\\\sum_{t=0}^\\\\infty \\\\beta^t [ (s_t -\\n\", \"b_t) \\\\cdot ( s_t - b_t) + \\\\ell_t^2 ] \\\\bigl| J_0 , \\\\ 0 < \\\\beta < 1\\n\", \"$$\\n\", \"\\n\", \"**Next steps:** we move on to discuss two closely connected concepts\\n\", \"\\n\", \"- A Planning Problem or Optimal Resource Allocation Problem \\n\", \"- Competitive Equilibrium \" ] }, { \"cell_type\": \"markdown\", \"id\": \"0dbfe289\", \"metadata\": {}, \"source\": [ \"### Optimal Resource Allocation\\n\", \"\\n\", \"Imagine a planner who chooses sequences $\\\\{c_t, i_t, g_t\\\\}_{t=0}^\\\\infty$ to maximize\\n\", \"\\n\", \"$$\\n\", \"-(1/2)E \\\\sum_{t=0}^\\\\infty \\\\beta^t [ (s_t - b_t) \\\\cdot (s_t - b_t) + g_t \\\\cdot g_t ] \\\\bigl| J_0\\n\", \"$$\\n\", \"\\n\", \"subject to the constraints\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"\\\\Phi_c c_t &+ \\\\Phi_g \\\\, g_t + \\\\Phi_i i_t = \\\\Gamma k_{t-1} + d_t,\\n\", \"\\\\\\\\\\n\", \"k_t &= \\\\Delta_k k_{t-1} + \\\\Theta_k i_t , \\\\\\\\\\n\", \"h_t &= \\\\Delta_h h_{t-1} + \\\\Theta_h c_t , \\\\\\\\\\n\", \"s_t &=\\\\Lambda h_{t-1} + \\\\Pi c_t , \\\\\\\\\\n\", \" z _{t+1} &= A_{22} z_t + C_2 w_{t+1} , \\\\ b_t = U_b z_t, \\\\ \\\\hbox{ and } \\\\\\n\", \"d_t = U_d z_t\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"and initial conditions for $h_{-1}, k_{-1}$, and $z_0$.\\n\", \"\\n\", \"Throughout, we shall impose the following **square summability** conditions\\n\", \"\\n\", \"$$\\n\", \"E \\\\sum^\\\\infty_{t=0} \\\\beta^t h_t \\\\cdot h_t \\\\mid J_0 < \\\\infty\\\\ \\\\hbox { and }\\\\\\n\", \"E \\\\sum^\\\\infty_{t=0} \\\\beta^t k_t \\\\cdot k_t \\\\mid J_0 < \\\\infty\\n\", \"$$\\n\", \"\\n\", \"Define:\\n\", \"\\n\", \"$$\\n\", \"L_0^2 = [ \\\\{ y_t \\\\} : y_t \\\\ \\\\hbox{is a random\\n\", \"variable in } \\\\ J_t \\\\ \\\\hbox{ and } \\\\ E \\\\sum_{t=0}^\\\\infty \\\\beta^t\\n\", \"y_t^2 \\\\mid J_0 < + \\\\infty]\\n\", \"$$\\n\", \"\\n\", \"Thus, we require that each component of $h_t$ and each component of\\n\", \"$k_t$ belong to $L_0^2$.\\n\", \"\\n\", \"We shall compare and utilize two approaches to solving the planning problem\\n\", \"\\n\", \"- Lagrangian formulation \\n\", \"- Dynamic programming \" ] }, { \"cell_type\": \"markdown\", \"id\": \"ad44ab76\", \"metadata\": {}, \"source\": [ \"### Lagrangian Formulation\\n\", \"\\n\", \"Form the Lagrangian\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"{\\\\mathcal L} &= - E \\\\sum_{t=0}^\\\\infty \\\\beta^t \\\\biggl[\\n\", \"\\\\Bigl( {1 \\\\over 2} \\\\Bigr) [ (s_t - b_t) \\\\cdot (s_t - b_t) + g_t\\n\", \"\\\\cdot g_t] \\\\\\\\ &+ {\\\\cal M}_t^{d \\\\prime} \\\\cdot ( \\\\Phi _cc_t +\\n\", \"\\\\Phi_gg_t + \\\\Phi_ii_t - \\\\Gamma k_{t-1} - d_t ) \\\\\\\\ &+{\\\\cal M}_t^{k\\n\", \"\\\\prime} \\\\cdot (k_t - \\\\Delta_k k_{t-1} - \\\\Theta_k i_t ) \\\\\\\\ &+ {\\\\cal\\n\", \"M}_t^{h \\\\prime} \\\\cdot (h_t - \\\\Delta_h h_{t-1} - \\\\Theta_h c_t) \\\\\\\\ &+\\n\", \"{\\\\cal M}_t^{s \\\\prime} \\\\cdot (s_t - \\\\Lambda h_{t-1} - \\\\Pi c_t )\\n\", \"\\\\biggr] \\\\Bigl| J_0\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"The planner maximizes ${\\\\mathcal L}$ with respect to the quantities $\\\\{c_t, i_t, g_t\\\\}_{t=0}^\\\\infty$\\n\", \"and minimizes with respect to the Lagrange multipliers ${\\\\cal M}_t^d, {\\\\cal M}_t^k, {\\\\cal M}_t^h, {\\\\cal M}_t^s$.\\n\", \"\\n\", \"First-order necessary conditions for maximization with respect to\\n\", \"$c_t, g_t,\\n\", \"h_t, i_t, k_t$, and $s_t$, respectively, are:\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"-\\\\Phi_c^\\\\prime {\\\\cal M}_t^d &+\\\\Theta_h^\\\\prime {\\\\cal\\n\", \"M}_t^h + \\\\Pi^\\\\prime {\\\\cal M}_t^s = 0 , \\\\\\\\\\n\", \"&- g_t - \\\\Phi_g^\\\\prime {\\\\cal M}_t^d = 0 , \\\\\\\\\\n\", \"-{\\\\cal M}_t^h &+ \\\\beta E ( \\\\Delta_h^\\\\prime {\\\\cal M}^h_{t+1} +\\n\", \"\\\\Lambda^\\\\prime {\\\\cal M}_{t+1}^s ) \\\\mid J_t = 0 , \\\\\\\\\\n\", \"&- \\\\Phi_i^\\\\prime {\\\\cal M}_t^d + \\\\Theta_k^\\\\prime {\\\\cal M}_t^k = 0 , \\\\\\\\\\n\", \"-{\\\\cal M}_t^k &+ \\\\beta E ( \\\\Delta_k^\\\\prime {\\\\cal M}^k_{t+1} + \\\\Gamma^\\\\prime\\n\", \"{\\\\cal M}_{t+1}^d) \\\\mid J_t = 0 , \\\\\\\\\\n\", \"&- s_t + b_t - {\\\\cal M}_t^s = 0\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"for $t=0,1, \\\\ldots$.\\n\", \"\\n\", \"In addition, we have the complementary\\n\", \"slackness conditions (these recover the original transition equations)\\n\", \"and also transversality conditions\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"\\\\lim_{t \\\\to \\\\infty}& \\\\beta^t E [ {\\\\cal M}_t^{k \\\\prime} k_t ]\\n\", \"\\\\mid J_0 = 0 \\\\\\\\\\n\", \"\\\\lim_{t \\\\to \\\\infty}& \\\\beta^t E [ {\\\\cal M}_t^{h \\\\prime} h_t ]\\n\", \"\\\\mid J_0 = 0\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"The system formed by the FONCs and the transition equations can be handed over to Python.\\n\", \"\\n\", \"Python will solve the planning problem for fixed parameter values.\\n\", \"\\n\", \"Here are the **Python Ready Equations**\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"-\\\\Phi_c^\\\\prime {\\\\cal M}_t^d &+\\\\Theta_h^\\\\prime {\\\\cal\\n\", \"M}_t^h + \\\\Pi^\\\\prime {\\\\cal M}_t^s = 0 , \\\\\\\\\\n\", \"&- g_t - \\\\Phi_g^\\\\prime {\\\\cal M}_t^d = 0 , \\\\\\\\\\n\", \"- {\\\\cal M}_t^h &+ \\\\beta E ( \\\\Delta_h^\\\\prime {\\\\cal M}^h_{t+1} +\\n\", \"\\\\Lambda^\\\\prime {\\\\cal M}_{t+1}^s ) \\\\mid J_t = 0 , \\\\\\\\\\n\", \"&- \\\\Phi_i^\\\\prime {\\\\cal M}_t^d + \\\\Theta_k^\\\\prime {\\\\cal M}_t^k = 0 , \\\\\\\\\\n\", \"-{\\\\cal M}_t^k &+ \\\\beta E ( \\\\Delta_k^\\\\prime {\\\\cal M}^k_{t+1} + \\\\Gamma^\\\\prime\\n\", \"{\\\\cal M}_{t+1}^d) \\\\mid J_t = 0 , \\\\\\\\\\n\", \"&- s_t + b_t - {\\\\cal M}_t^s = 0 \\\\\\\\\\n\", \"\\\\Phi_c c_t &+ \\\\Phi_g \\\\, g_t + \\\\Phi_i i_t = \\\\Gamma k_{t-1} + d_t,\\n\", \"\\\\\\\\\\n\", \"k_t &= \\\\Delta_k k_{t-1} + \\\\Theta_k i_t , \\\\\\\\\\n\", \"h_t &= \\\\Delta_h h_{t-1} + \\\\Theta_h c_t , \\\\\\\\\\n\", \"s_t &=\\\\Lambda h_{t-1} + \\\\Pi c_t , \\\\\\\\\\n\", \"z _{t+1} &= A_{22} z_t + C_2 w_{t+1} , \\\\ b_t = U_b z_t, \\\\ \\\\hbox{ and } \\\\\\n\", \"d_t = U_d z_t\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"The Lagrange multipliers or **shadow prices** satisfy\\n\", \"\\n\", \"$$\\n\", \"{\\\\cal M}_t^s = b_t - s_t\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"{\\\\cal M}_t^h = E \\\\biggl[ \\\\sum_{\\\\tau =1}^\\\\infty \\\\beta^\\\\tau\\n\", \"(\\\\Delta_h^\\\\prime)^{\\\\tau - 1} \\\\Lambda^\\\\prime {\\\\cal M}_{t+ \\\\tau}^s\\n\", \"\\\\mid J_t\\\\biggr]\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"{\\\\cal M}_t^d = \\\\begin{bmatrix}\\\\Phi_c^\\\\prime\\\\\\\\ \\\\Phi_g^\\\\prime\\\\\\\\\\\\end{bmatrix}^{-1}\\\\\\n\", \"\\\\begin{bmatrix} \\\\Theta_h^\\\\prime {\\\\cal M}_t^h + \\\\Pi^\\\\prime {\\\\cal M}_t^s \\\\\\\\\\n\", \"-g_t \\\\end{bmatrix}\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"{\\\\cal M}_t^k = E \\\\biggl[\\\\sum _{\\\\tau=1}^\\\\infty \\\\beta^\\\\tau (\\\\Delta_k^\\\\prime)^{\\\\tau-1}\\n\", \"\\\\Gamma^\\\\prime {\\\\cal M}_{t+ \\\\tau}^d \\\\mid J_t\\\\biggr]\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"{\\\\cal M}_t^i =\\n\", \"\\\\Theta _k^\\\\prime {\\\\cal M}_t^k\\n\", \"$$\\n\", \"\\n\", \"Although it is possible to use matrix operator methods to solve the above **Python ready equations**, that is not\\n\", \"the approach we’ll use.\\n\", \"\\n\", \"Instead, we’ll use dynamic programming to get recursive representations for both quantities and shadow prices.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"16f35975\", \"metadata\": {}, \"source\": [ \"### Dynamic Programming\\n\", \"\\n\", \"Dynamic Programming always starts with the word **let**.\\n\", \"\\n\", \"Thus, let $V(x_0)$ be the optimal value function for the planning problem as a function of the initial state vector $x_0$.\\n\", \"\\n\", \"(Thus, in essence, dynamic programming amounts to an application of a **guess and verify** method in which we begin with a guess about the answer\\n\", \"to the problem we want to solve. That’s why we start with **let** $V(x_0)$ be the (value of the) answer to the problem, then establish and\\n\", \"verify a bunch of conditions $V(x_0)$ has to satisfy if indeed it is the answer)\\n\", \"\\n\", \"The optimal value function $V(x)$ satisfies the **Bellman equation**\\n\", \"\\n\", \"$$\\n\", \"V(x_0) = \\\\max_{c_0, i_0, g_0} [ - .5 [ (s_0 - b_0) \\\\cdot (s_0 - b_0) + g_0 \\\\cdot g_0 ] + \\\\beta E V\\n\", \"(x_1) ]\\n\", \"$$\\n\", \"\\n\", \"subject to the linear constraints\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"\\\\Phi _cc_0 &+ \\\\Phi_g g_0 + \\\\Phi_ii_0 = \\\\Gamma k_{-1} + d_0 ,\\\\\\\\\\n\", \"k_0 &= \\\\Delta_k k_{-1} + \\\\Theta_k i_0 , \\\\\\\\\\n\", \"h_0 &= \\\\Delta_h h_{-1} + \\\\Theta_h c_0 , \\\\\\\\\\n\", \"s_0 &= \\\\Lambda h_{-1} + \\\\Pi c_0 , \\\\\\\\\\n\", \"z_1 &= A_{22} z_0 + C_2 w_1,\\\\ b_0 = U_b z_0 \\\\ \\\\hbox{ and }\\\\ d_0 =\\n\", \"U_d z_0\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"Because this is a linear-quadratic dynamic programming problem, it turns out that the value function has the form\\n\", \"\\n\", \"$$\\n\", \"V(x) = x' P x + \\\\rho\\n\", \"$$\\n\", \"\\n\", \"\\n\", \"\\n\", \"Thus, we want to solve an instance of the following linear-quadratic dynamic programming problem:\\n\", \"\\n\", \"Choose a contingency plan for $\\\\{x_{t+1}, u_t \\\\}_{t=0}^\\\\infty$ to\\n\", \"maximize\\n\", \"\\n\", \"$$\\n\", \"- E \\\\sum_{t=0}^\\\\infty \\\\beta^t [ x_t^\\\\prime R x_t + u_t^\\\\prime Q\\n\", \"u_t + 2 u_t^\\\\prime W' x_t ], \\\\ 0 < \\\\beta < 1\\n\", \"$$\\n\", \"\\n\", \"subject to\\n\", \"\\n\", \"$$\\n\", \"x_{t+1} = A x_t + B u_t + C w_{t+1}, \\\\ t \\\\geq 0\\n\", \"$$\\n\", \"\\n\", \"where $x_0$ is given; $x_t$ is an $n \\\\times 1$ vector\\n\", \"of state variables, and $u_t$ is a $k \\\\times 1$ vector of\\n\", \"control variables.\\n\", \"\\n\", \"We assume $w_{t+1}$ is a martingale difference\\n\", \"sequence with $E w_t w_t^\\\\prime = I$, and that $C$ is a\\n\", \"matrix conformable to $x$ and $w$.\\n\", \"\\n\", \"The optimal value function $V(x)$ satisfies the Bellman equation\\n\", \"\\n\", \"$$\\n\", \"V (x_t) = \\\\max_{u_t} \\\\Bigl\\\\{-( x_t^\\\\prime R x_t + u_t^\\\\prime Q u_t + 2\\n\", \"u_t^\\\\prime W x_t) + \\\\beta E_t V (x_{t+1}) \\\\Bigr\\\\}\\n\", \"$$\\n\", \"\\n\", \"where maximization is subject to\\n\", \"\\n\", \"$$\\n\", \"x_{t+1} = A x_t + B u_t + C w_{t+1}, \\\\ t \\\\geq 0\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"V(x_t) = - x_t^\\\\prime P x_t - \\\\rho\\n\", \"$$\\n\", \"\\n\", \"$P$ satisfies\\n\", \"\\n\", \"$$\\n\", \"P = R + \\\\beta A^\\\\prime P A - (\\\\beta A^\\\\prime P\\n\", \"B + W) (Q + \\\\beta B^\\\\prime P B)^{-1} (\\\\beta B^\\\\prime P\\n\", \"A + W')\\n\", \"$$\\n\", \"\\n\", \"This equation in $P$ is called the **algebraic matrix Riccati\\n\", \"equation**.\\n\", \"\\n\", \"The optimal decision rule is $u_t = - F x_t$, where\\n\", \"\\n\", \"$$\\n\", \"F = (Q + \\\\beta B^\\\\prime P B)^{-1} (\\\\beta B^\\\\prime P A +\\n\", \"W')\\n\", \"$$\\n\", \"\\n\", \"The optimum decision rule for $u_t$ is independent of the\\n\", \"parameters $C$, and so of the noise statistics.\\n\", \"\\n\", \"Iterating on the Bellman operator leads to\\n\", \"\\n\", \"$$\\n\", \"V_{j+1} (x_t) = \\\\max_{u_t} \\\\Bigl\\\\{-( x_t^\\\\prime R x_t + u_t^\\\\prime Q\\n\", \"u_t + 2 u_t^\\\\prime W x_t) + \\\\beta E_t V_j (x_{t+1}) \\\\Bigr\\\\}\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"V_j (x_t) =- x_t^\\\\prime P_{j} x_t - \\\\rho_{j}\\n\", \"$$\\n\", \"\\n\", \"where $P_{j}$ and $\\\\rho_{j}$ satisfy the equations\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"P_{j+1} &= R + \\\\beta A^\\\\prime P_{j} A - (\\\\beta\\n\", \"A^\\\\prime P_{j} B + W) (Q + \\\\beta B^\\\\prime P_{j} B)^{-1} (\\\\beta B^\\\\prime P_{j}\\n\", \"A + W')\\\\\\\\ \\\\rho_{j+1} &=\\\\beta \\\\rho_{j} + \\\\beta \\\\ {\\\\rm trace} \\\\ P_{j} C C^\\\\prime\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"We can now state the planning problem as a dynamic programming problem\\n\", \"\\n\", \"$$\\n\", \"\\\\max_{ \\\\{u_t, x_{t+1}\\\\} }\\\\ - E \\\\sum_{t=0}^\\\\infty \\\\beta^t [x_t^\\\\prime\\n\", \"Rx_t + u_t^\\\\prime Q u_t + 2u_t^\\\\prime W 'x_t ] , \\\\quad 0 < \\\\beta < 1\\n\", \"$$\\n\", \"\\n\", \"where maximization is subject to\\n\", \"\\n\", \"$$\\n\", \"x_{t+1} = Ax_t + B u_t + Cw_{t+1} , \\\\ t \\\\geq 0\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"x_t = \\\\begin{bmatrix} h_{t-1} \\\\\\\\ k_{t-1} \\\\\\\\ z_t \\\\end{bmatrix} , \\\\qquad\\n\", \"u_t = i_t\\n\", \"$$\\n\", \"\\n\", \"where\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"A &=\\\\begin{bmatrix} \\\\Delta_h & \\\\Theta_h U_c [ \\\\Phi_c \\\\ \\\\\\n\", \"\\\\Phi_g]^{-1} \\\\Gamma & \\\\Theta_h U_c [ \\\\Phi_c \\\\ \\\\ \\\\Phi_g]^{-1} U_d \\\\\\\\ 0\\n\", \"& \\\\Delta_k & 0 \\\\\\\\ 0 & 0 & A_{22} \\\\\\\\ \\\\end{bmatrix} \\\\\\\\\\n\", \"B &= \\\\begin{bmatrix} - \\\\Theta_h U_c [ \\\\Phi_c \\\\ \\\\ \\\\Phi_g]^{-1} \\\\Phi_i\\n\", \"\\\\\\\\ \\\\Theta_k \\\\\\\\ 0 \\\\end{bmatrix} \\\\ ,\\\\ C = \\\\begin{bmatrix} 0 \\\\\\\\ 0 \\\\\\\\\\n\", \"C_2 \\\\end{bmatrix}\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"$$\\n\", \"\\\\begin{bmatrix} x_t \\\\\\\\ u_t \\\\end{bmatrix}^\\\\prime S \\\\begin{bmatrix} x_t\\n\", \"\\\\\\\\ u_t \\\\end{bmatrix} = \\\\begin{bmatrix} x_t \\\\\\\\ u_t \\\\end{bmatrix}^\\\\prime\\\\ \\\\\\n\", \"\\\\begin{bmatrix} R & W \\\\\\\\ W' & Q \\\\end{bmatrix}\\\\ \\\\ \\\\begin{bmatrix} x_t\\n\", \"\\\\\\\\ u_t \\\\end{bmatrix}\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"S = (G^\\\\prime G + H^\\\\prime H) / 2\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"H = [\\\\Lambda \\\\ \\\\vdots \\\\ \\\\Pi U_c [ \\\\Phi_c \\\\ \\\\ \\\\Phi_g]^{-1} \\\\Gamma \\\\\\n\", \"\\\\vdots \\\\ \\\\Pi U_c [ \\\\Phi_c \\\\ \\\\ \\\\Phi_g]^{-1} U_d - U_b \\\\ \\\\vdots \\\\\\n\", \" - \\\\Pi U_c [\\\\Phi_c \\\\ \\\\ \\\\Phi_g]^{-1} \\\\Phi_i]\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"G =\\n\", \"U_g [ \\\\Phi_c \\\\ \\\\ \\\\Phi_g]^{-1} [0 \\\\ \\\\vdots \\\\ \\\\Gamma \\\\ \\\\vdots \\\\ U_d \\\\\\n\", \"\\\\vdots \\\\ - \\\\Phi_i] .\\n\", \"$$\\n\", \"\\n\", \"**Lagrange multipliers as gradient of value function**\\n\", \"\\n\", \"A useful fact is that Lagrange multipliers equal gradients of the planner’s value function\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"{\\\\mathcal M}_t^k &= M_k x_t\\\\ \\\\hbox{ and }\\\\ {\\\\cal M}_t^h = M_h\\n\", \"x_t \\\\ \\\\hbox{ where } \\\\\\\\\\n\", \"M_k &= 2 \\\\beta [ 0 \\\\ I \\\\ 0 ] P A^o \\\\\\\\\\n\", \"M_h &= 2 \\\\beta [ I \\\\ 0 \\\\ 0 ] P A^o\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"$$\\n\", \"{\\\\mathcal M}_t^s = M_s x_t \\\\ \\\\hbox{ where }\\\\ M_s = (S_b -\\n\", \"S_s)\\\\ \\\\hbox{ and } \\\\ S_b = [ 0 \\\\ 0 \\\\ U_b ]\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"{\\\\mathcal M}_t^d = M_d x_t\\\\ \\\\hbox{ where }\\\\ M_d = \\\\begin{bmatrix}\\n\", \"\\\\Phi_c^\\\\prime \\\\\\\\ \\\\Phi_g^\\\\prime \\\\\\\\ \\\\end{bmatrix} ^{-1}\\n\", \"\\\\begin{bmatrix}\\\\Theta_h^\\\\prime M_h + \\\\Pi^\\\\prime M_s \\\\\\\\ -S_g \\\\end{bmatrix}\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"{\\\\mathcal M}_t^c = M_c x_t\\\\ \\\\hbox{ where }\\\\ M_c = \\\\Theta_h^\\\\prime\\n\", \"M_h + \\\\Pi^\\\\prime M_s\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"{\\\\mathcal M}_t^i = M_i x_t\\\\ \\\\hbox{ where } \\\\ M_i = \\\\Theta_k^\\\\prime M_k\\n\", \"$$\\n\", \"\\n\", \"We will use this fact and these equations to compute competitive equilibrium prices.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"b304e32e\", \"metadata\": {}, \"source\": [ \"### Other mathematical infrastructure\\n\", \"\\n\", \"Let’s start with describing the **commodity space** and **pricing functional** for our competitive equilibrium.\\n\", \"\\n\", \"For the **commodity space**, we use\\n\", \"\\n\", \"$$\\n\", \"L_0^2 = [ \\\\{ y_t \\\\} : y_t \\\\ \\\\hbox{is a random\\n\", \"variable in } \\\\ J_t \\\\ \\\\hbox{ and } \\\\ E \\\\sum_{t=0}^\\\\infty \\\\beta^t\\n\", \"y_t^2 \\\\mid J_0 < + \\\\infty]\\n\", \"$$\\n\", \"\\n\", \"For **pricing functionals**, we express values as inner products\\n\", \"\\n\", \"$$\\n\", \"\\\\pi (c) = E \\\\sum_{t=0}^\\\\infty \\\\beta^t p_t^0 \\\\cdot c_t \\\\mid J_0\\n\", \"$$\\n\", \"\\n\", \"where $p_t^0$ belongs to $L_0^2$.\\n\", \"\\n\", \"With these objects in our toolkit, we move on to state the\\n\", \"problem of a **Representative Household in a competitive equilibrium**.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"2f7bc8ee\", \"metadata\": {}, \"source\": [ \"### Representative Household\\n\", \"\\n\", \"The representative household owns endowment process and initial stocks of $h$ and $k$ and\\n\", \"chooses stochastic processes for $\\\\{c_t,\\\\, s_t,\\\\, h_t,\\\\,\\n\", \"\\\\ell_t\\\\}^\\\\infty_{t=0}$, each element of which is in $L^2_0$, to\\n\", \"maximize\\n\", \"\\n\", \"$$\\n\", \"-\\\\ {1 \\\\over 2}\\\\ E_0 \\\\sum^\\\\infty_{t=0} \\\\beta^t\\\\, \\\\Bigl[(s_t-b_t) \\\\cdot (s_t -\\n\", \"b_t) + \\\\ell_t^2\\\\Bigr]\\n\", \"$$\\n\", \"\\n\", \"subject to\\n\", \"\\n\", \"$$\\n\", \"E\\\\sum^\\\\infty_{t=0} \\\\beta^t\\\\, p^0_t \\\\cdot c_t \\\\mid J_0 = E \\\\sum^\\\\infty_{t=0}\\n\", \"\\\\beta^t\\\\, (w^0_t \\\\ell_t + \\\\alpha^0_t \\\\cdot d_t) \\\\mid J_0 +\\n\", \"v_0 \\\\cdot k_{-1}\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"s_t = \\\\Lambda h_{t-1} + \\\\Pi c_t\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"h_t = \\\\Delta_h h_{t-1} + \\\\Theta_h c_t, \\\\quad h_{-1}, k_{-1}\\\\\\n\", \"\\\\hbox{ given}\\n\", \"$$\\n\", \"\\n\", \"We now describe the problems faced by two types of firms called type I and type II.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"8ce951b1\", \"metadata\": {}, \"source\": [ \"### Type I Firm\\n\", \"\\n\", \"A type I firm rents capital and labor and endowments and produces\\n\", \"$c_t, i_t$.\\n\", \"\\n\", \"It chooses stochastic processes for\\n\", \"$\\\\{c_t, i_t, k_t, \\\\ell_t,\\n\", \"g_t, d_t\\\\}$, each element of which is in $L^2_0$, to maximize\\n\", \"\\n\", \"$$\\n\", \"E_0\\\\, \\\\sum^\\\\infty_{t=0} \\\\beta^t\\\\, (p^0_t \\\\cdot c_t + q^0_t \\\\cdot i_t - r^0_t\\n\", \"\\\\cdot k_{t-1} - w^0_t \\\\ell_t - \\\\alpha^0_t \\\\cdot d_t)\\n\", \"$$\\n\", \"\\n\", \"subject to\\n\", \"\\n\", \"$$\\n\", \"\\\\Phi_c\\\\, c_t + \\\\Phi_g\\\\, g_t + \\\\Phi_i\\\\, i_t = \\\\Gamma k_{t-1} + d_t\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"-\\\\, \\\\ell_t^2 + g_t \\\\cdot g_t = 0\\n\", \"$$\" ] }, { \"cell_type\": \"markdown\", \"id\": \"b8774d27\", \"metadata\": {}, \"source\": [ \"### Type II Firm\\n\", \"\\n\", \"A firm of type II acquires capital via investment and then rents\\n\", \"stocks of capital to the $c,i$-producing type I firm.\\n\", \"\\n\", \"A type II firm is a price taker facing the vector $v_0$ and the stochastic\\n\", \"processes $\\\\{r^0_t, q^0_t\\\\}$.\\n\", \"\\n\", \"The firm chooses $k_{-1}$ and\\n\", \"stochastic processes for $\\\\{k_t, i_t\\\\}^\\\\infty_{t=0}$ to maximize\\n\", \"\\n\", \"$$\\n\", \"E \\\\sum^\\\\infty_{t=0} \\\\beta^t (r_t^0 \\\\cdot k_{t-1} - q^0_t \\\\cdot i_t) \\\\mid\\n\", \"J_0 - v_0 \\\\cdot k_{-1}\\n\", \"$$\\n\", \"\\n\", \"subject to\\n\", \"\\n\", \"$$\\n\", \"k_t = \\\\Delta_k k_{t-1} + \\\\Theta_k i_t\\n\", \"$$\" ] }, { \"cell_type\": \"markdown\", \"id\": \"111498e0\", \"metadata\": {}, \"source\": [ \"### Competitive Equilibrium: Definition\\n\", \"\\n\", \"We can now state the following.\\n\", \"\\n\", \"**Definition:** A competitive equilibrium is a price system\\n\", \"$[v_0, \\\\{p^0_t, w^0_t, \\\\alpha^0_t, q^0_t, r^0_t\\\\}^\\\\infty_{t=0}]$\\n\", \"and an allocation $\\\\{c_t, i_t, k_t, h_t, g_t, d_t\\\\}^\\\\infty_{t=0}$\\n\", \"that satisfy the following conditions:\\n\", \"\\n\", \"- Each component of the price system and the allocation resides in the space $L^2_0$. \\n\", \"- Given the price system and given $h_{-1},\\\\, k_{-1}$, the allocation solves the representative household’s problem and\\n\", \" the problems of the two types of firms. \\n\", \"\\n\", \"\\n\", \"Versions of the two classical welfare theorems prevail under our assumptions.\\n\", \"\\n\", \"We exploit that fact in our algorithm for computing a competitive equilibrium.\\n\", \"\\n\", \"**Step 1:** Solve the planning problem by using dynamic programming.\\n\", \"\\n\", \"The allocation (i.e., **quantities**) that solve the planning problem **are** the\\n\", \"competitive equilibrium quantities.\\n\", \"\\n\", \"**Step 2:** use the following formulas to compute the **equilibrium price system**\\n\", \"\\n\", \"$$\\n\", \"p^0_t = \\\\bigl[\\\\Pi^\\\\prime {\\\\cal M}^s_t + \\\\Theta^\\\\prime_h {\\\\cal M}^h_t\\\\bigr]/\\n\", \"\\\\mu^w_0 = {\\\\cal M}^c_t / \\\\mu^w_0\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"w^0_t = \\\\mid S_g x_t \\\\mid / \\\\mu^w_0\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"r^0_t = \\\\Gamma^\\\\prime {\\\\cal M}^d_t / \\\\mu^w_0\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"q^0_t = \\\\Theta^\\\\prime_k {\\\\cal M}^k_t / \\\\mu^w_0 = {\\\\cal M}^i_t /\\n\", \"\\\\mu^w_0\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"\\\\alpha^0_t = {\\\\cal M}^d_t / \\\\mu^w_0\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"v_0 = \\\\Gamma^\\\\prime {\\\\cal M}^d_0 / \\\\mu^w_0 + \\\\Delta^\\\\prime_k\\n\", \"{\\\\cal M}^k_0 / \\\\mu^w_0\\n\", \"$$\\n\", \"\\n\", \"**Verification:** With this price system, values can be assigned to the Lagrange\\n\", \"multipliers for each of our three classes of agents that cause all\\n\", \"first-order necessary conditions to be satisfied at these prices and at\\n\", \"the quantities associated with the optimum of the planning problem.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"64977e10\", \"metadata\": {}, \"source\": [ \"### Asset pricing\\n\", \"\\n\", \"An important use of an equilibrium pricing system is to do asset pricing.\\n\", \"\\n\", \"Thus, imagine that we are presented a dividend stream: $\\\\{y_t\\\\} \\\\in L^2_0$\\n\", \"and want to compute the value of a perpetual claim to this stream.\\n\", \"\\n\", \"To value this asset we simply take **price times quantity** and add to get\\n\", \"an asset value: $a_0 = E\\\\, \\\\sum_{t=0}^\\\\infty\\\\, \\\\beta^t\\\\ p_t^0 \\\\cdot y_t \\\\mid J_0$.\\n\", \"\\n\", \"To compute $ao$ we proceed as follows.\\n\", \"\\n\", \"We let\\n\", \"\\n\", \"$$\\n\", \"y_t = U_a\\\\, x_t\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"a_0 = E \\\\sum^\\\\infty_{t=0}\\\\, \\\\beta^t\\\\, x^\\\\prime_t\\\\, Z_a x_t \\\\mid J_0\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"Z_a = U^\\\\prime_a M_c / \\\\mu^w_0\\n\", \"$$\\n\", \"\\n\", \"We have the following convenient formulas:\\n\", \"\\n\", \"$$\\n\", \"a_0 = x^\\\\prime_0\\\\, \\\\mu_a\\\\, x_0 + \\\\sigma_a\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"\\\\mu_a = \\\\sum^\\\\infty_{\\\\tau=0}\\\\, \\\\beta^\\\\tau\\\\, (A^{o \\\\prime})^\\\\tau\\\\ Z_a\\\\,\\n\", \"A^{o \\\\tau}\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"\\\\sigma_a = {\\\\beta \\\\over 1 - \\\\beta}\\\\ {\\\\rm trace } \\\\left( Z_a \\\\sum^\\\\infty_{\\\\tau = 0}\\n\", \"\\\\,\\\\beta^\\\\tau\\\\, (A^o)^\\\\tau\\\\, C C^\\\\prime (A^{o \\\\prime})^\\\\tau \\\\right)\\n\", \"$$\" ] }, { \"cell_type\": \"markdown\", \"id\": \"209a66ed\", \"metadata\": {}, \"source\": [ \"### Re-Opening Markets\\n\", \"\\n\", \"We have assumed that all trading occurs once-and-for-all at time $t=0$.\\n\", \"\\n\", \"If we were to **re-open markets** at some time $t >0$ at time $t$ wealth levels implicitly defined by\\n\", \"time $0$ trades, we would obtain the same equilibrium allocation (i.e., quantities) and the following time $t$\\n\", \"price system\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"L^2_t &= [\\\\{y_s\\\\}^\\\\infty_{s=t} : \\\\ y_s \\\\ \\\\hbox{ is a random variable\\n\", \"in }\\\\ J_s\\\\ \\\\hbox{ for }\\\\ s \\\\geq t \\\\\\\\\\n\", \"&\\\\hbox {and } E\\\\, \\\\sum^\\\\infty_{s=t}\\\\, \\\\beta^{s-t}\\\\ y^2_s \\\\mid J_t < + \\\\infty] .\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"$$\\n\", \"p^t_s = M_c x_s / [\\\\bar e_j M_c x_t ], \\\\qquad s \\\\geq t\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"w^t_s = \\\\mid S_g x_s \\\\vert / [\\\\bar e_j M_c x_t], \\\\ \\\\ s \\\\geq t\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"r^t_s = \\\\Gamma^\\\\prime M_d x_s / [\\\\bar e_j M_c x_t],\\\\ \\\\ s \\\\geq t\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"q^t_s = M_i x_s / [\\\\bar e_j \\\\, M_c x_t], \\\\qquad s \\\\geq t\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"\\\\alpha^t_s = M_d x_s / [\\\\bar e_j \\\\, M_c x_t] , \\\\ \\\\ s \\\\geq t\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"v_t = [\\\\Gamma^\\\\prime M_d + \\\\Delta^\\\\prime_k M_k] x_t / \\\\, [\\\\bar e_j \\\\, M_c x_t]\\n\", \"$$\" ] }, { \"cell_type\": \"markdown\", \"id\": \"9bbe8af9\", \"metadata\": {}, \"source\": [ \"## Econometrics\\n\", \"\\n\", \"Up to now, we have described how to solve the **direct problem** that maps model parameters into an (equilibrium) stochastic process\\n\", \"of prices and quantities.\\n\", \"\\n\", \"Recall the **inverse problem** of inferring model parameters from a single realization of a time series of some of the prices and quantities.\\n\", \"\\n\", \"Another name for the inverse problem is **econometrics**.\\n\", \"\\n\", \"An advantage of the [[HS13](https://python-advanced.quantecon.org/zreferences.html#id67)] structure is that it comes with a self-contained theory of econometrics.\\n\", \"\\n\", \"It is really just a tale of two state-space representations.\\n\", \"\\n\", \"Here they are:\\n\", \"\\n\", \"**Original State-Space Representation:**\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"x_{t+1} &= A^o x_t + Cw_{t+1} \\\\\\\\\\n\", \"y_t & = Gx_t + v_t\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"where $v_t$ is a martingale difference sequence of measurement\\n\", \"errors that satisfies $Ev_t\\n\", \"v_t' = R, E w_{t+1} v_s' = 0$ for all $t+1 \\\\geq s$ and\\n\", \"\\n\", \"$$\\n\", \"x_0 \\\\sim {\\\\mathcal N}(\\\\hat x_0,\\\\Sigma_0)\\n\", \"$$\\n\", \"\\n\", \"**Innovations Representation:**\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"\\\\hat x_{t+1} &=A^o \\\\hat x_t + K_t a_t \\\\\\\\\\n\", \"y_t &= G \\\\hat x_t + a_t,\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"where $a_t = y_t - E[y_t | y^{t-1}], E a_t a_t^\\\\prime \\\\equiv \\\\Omega_t = G \\\\Sigma_t G^\\\\prime + R$.\\n\", \"\\n\", \"\\n\", \"\\n\", \"Compare numbers of shocks in the two representations:\\n\", \"\\n\", \"- $n_w + n_y$ versus $n_y$ \\n\", \"\\n\", \"\\n\", \"Compare spaces spanned\\n\", \"\\n\", \"- $H(y^t) \\\\subset H(w^t,v^t)$ \\n\", \"- $H(y^t) = H(a^t)$ \\n\", \"\\n\", \"\\n\", \"**Kalman Filter:**.\\n\", \"\\n\", \"Kalman gain:\\n\", \"\\n\", \"$$\\n\", \"K_t = A^o \\\\Sigma_t G^\\\\prime (G \\\\Sigma_t G^\\\\prime + R)^{-1}\\n\", \"$$\\n\", \"\\n\", \"Riccati Difference Equation:\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"\\\\Sigma_{t+1} &= A^o \\\\Sigma_t A^{o \\\\prime} + CC^\\\\prime \\\\\\\\\\n\", \"&- A^o \\\\Sigma_t G^\\\\prime (G \\\\Sigma_t G^\\\\prime + R)^{-1} G \\\\Sigma_t A^{o \\\\prime}\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"**Innovations Representation as Whitener**\\n\", \"\\n\", \"Whitening Filter:\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"a_t &=y_t - G \\\\hat x_t \\\\\\\\\\n\", \"\\\\hat x_{t+1} &= A^o \\\\hat x_t + K_t a_t\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"can be used recursively to construct a record of innovations\\n\", \"$\\\\{ a_t \\\\}^T_{t=0}$ from an $(\\\\hat x_0, \\\\Sigma_0)$ and a\\n\", \"record of observations $\\\\{ y_t \\\\}^T_{t=0}$.\\n\", \"\\n\", \"**Limiting Time-Invariant Innovations Representation**\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"\\\\Sigma &= A^o \\\\Sigma A^{o \\\\prime} + CC^\\\\prime \\\\\\\\\\n\", \"&- A^o \\\\Sigma G^\\\\prime (G \\\\Sigma G^\\\\prime + R)^{-1} G \\\\Sigma A^{o \\\\prime} \\\\\\\\\\n\", \"K &= A^o \\\\Sigma_t G^\\\\prime (G \\\\Sigma G^\\\\prime + R)^{-1}\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"\\\\hat x_{t+1} &= A^o \\\\hat x_t + K a_t \\\\\\\\\\n\", \"y_t &= G \\\\hat x_t + a_t\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"where $E a_t a_t^\\\\prime \\\\equiv \\\\Omega = G \\\\Sigma G^\\\\prime + R$.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"d88a8123\", \"metadata\": {}, \"source\": [ \"### Factorization of Likelihood Function\\n\", \"\\n\", \"Sample of observations $\\\\{y_s\\\\}_{s=0}^T$ on a\\n\", \"$(n_y \\\\times 1)$ vector.\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"f(y_T, y_{T-1}, \\\\ldots, y_0 )&=\\n\", \" f_T(y_T \\\\vert y_{T-1}, \\\\ldots, y_0) f_{T-1}(y_{T-1} \\\\vert\\n\", \" y_{T-2}, \\\\ldots, y_0) \\\\cdots f_1(y_1 \\\\vert y_0) f_0(y_0 ) \\\\\\\\\\n\", \"&= g_T(a_T) g_{T-1} (a_{T-1}) \\\\ldots g_1(a_1) f_0(y_0).\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"Gaussian Log-Likelihood:\\n\", \"\\n\", \"$$\\n\", \"-.5 \\\\sum_{t=0}^T \\\\biggl\\\\{ n_y \\\\ln (2 \\\\pi ) + \\\\ln \\\\vert \\\\Omega _t \\\\vert\\n\", \" + a_t' \\\\Omega_t^{-1} a_t \\\\biggr\\\\}\\n\", \"$$\" ] }, { \"cell_type\": \"markdown\", \"id\": \"5063acb5\", \"metadata\": {}, \"source\": [ \"### Covariance Generating Functions\\n\", \"\\n\", \"Autocovariance: $C_x(\\\\tau) = E x_t x_{t-\\\\tau}'$.\\n\", \"\\n\", \"Generating Function:\\n\", \"$S_x(z) = \\\\sum_{\\\\tau = -\\\\infty}^\\\\infty C_x(\\\\tau) z^\\\\tau, z \\\\in C$.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"c1ac9380\", \"metadata\": {}, \"source\": [ \"### Spectral Factorization Identity\\n\", \"\\n\", \"Original state-space representation has too many shocks and implies:\\n\", \"\\n\", \"$$\\n\", \"S_y(z) = G (zI - A^o)^{-1} C C^\\\\prime (z^{-1} I - (A^o)^\\\\prime)^{-1}\\n\", \"G^\\\\prime + R\\n\", \"$$\\n\", \"\\n\", \"Innovations representation has as many shocks as dimension of\\n\", \"$y_t$ and implies\\n\", \"\\n\", \"$$\\n\", \"S_y(z) = [G(zI-A^o)^{-1}K +I] [G \\\\Sigma G^\\\\prime + R]\\n\", \"[K^\\\\prime (z^{-1} I -A^{o\\\\prime})^{-1} G^\\\\prime + I]\\n\", \"$$\\n\", \"\\n\", \"Equating these two leads to:\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \" & G (zI - A^o)^{-1} C C^\\\\prime (z^{-1} I - A^{o\\\\prime})^{-1} G^\\\\prime + R = \\\\\\\\\\n\", \"& [G(zI-A^o)^{-1}K +I] [G \\\\Sigma G^\\\\prime + R] [K'(z^{-1} I -A^{o\\\\prime})^{-1}\\n\", \"G^\\\\prime + I] .\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"**Key Insight:** The zeros of the polynomial\\n\", \"$\\\\det [G(zI-A^o)^{-1}K +I]$ all lie inside the unit circle, which\\n\", \"means that $a_t$ lies in the space spanned by square summable\\n\", \"linear combinations of $y^t$.\\n\", \"\\n\", \"$$\\n\", \"H(a^t) = H(y^t)\\n\", \"$$\\n\", \"\\n\", \"**Key Property:** Invertibility\" ] }, { \"cell_type\": \"markdown\", \"id\": \"28612fcc\", \"metadata\": {}, \"source\": [ \"### Wold and Vector Autoregressive Representations\\n\", \"\\n\", \"Let’s start with some lag operator arithmetic.\\n\", \"\\n\", \"The lag operator $L$ and the inverse lag operator $L^{-1}$ each map an infinite sequence into an infinite sequence according to the\\n\", \"transformation rules\\n\", \"\\n\", \"$$\\n\", \"L x_t \\\\equiv x_{t-1}\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"L^{-1} x_t \\\\equiv x_{t+1}\\n\", \"$$\\n\", \"\\n\", \"A **Wold moving average representation** for $\\\\{y_t\\\\}$ is\\n\", \"\\n\", \"$$\\n\", \"y_t = [ G(I-A^oL)^{-1}KL + I] a_t\\n\", \"$$\\n\", \"\\n\", \"Applying the inverse of the operator on the right side and using\\n\", \"\\n\", \"$$\\n\", \"[G(I-A^oL)^{-1}KL+I]^{-1} = I - G[I - (A^o-KG)L]^{-1}KL\\n\", \"$$\\n\", \"\\n\", \"gives the **vector autoregressive representation**\\n\", \"\\n\", \"$$\\n\", \"y_t = \\\\sum_{j=1}^\\\\infty G (A^o -KG)^{j-1} K y_{t-j} + a_t\\n\", \"$$\\n\", \"\\n\", \"\\n\", \"\" ] }, { \"cell_type\": \"markdown\", \"id\": \"0533fddb\", \"metadata\": {}, \"source\": [ \"## Dynamic Demand Curves and Canonical Household Technologies\" ] }, { \"cell_type\": \"markdown\", \"id\": \"ce43a209\", \"metadata\": {}, \"source\": [ \"### Canonical Household Technologies\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"h_t &=\\\\Delta_h h_{t-1} + \\\\Theta_h c_t \\\\\\\\\\n\", \" s_t &= \\\\Lambda h_{t-1} + \\\\Pi c_t \\\\\\\\\\n\", \" b_t &=U_b z_t\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"**Definition:** A household service technology\\n\", \"$(\\\\Delta_h, \\\\Theta_h, \\\\Pi,\\\\Lambda, U_b)$ is said to be **canonical**\\n\", \"if\\n\", \"\\n\", \"- $\\\\color{blue}{\\\\Pi}$ is nonsingular, and \\n\", \"- the absolute values of the eigenvalues of $\\\\color{blue}{(\\\\Delta_h - \\\\Theta_h \\\\Pi^{-1}\\\\Lambda)}$ are strictly less than $1/\\\\sqrt\\\\beta$. \\n\", \"\\n\", \"\\n\", \"**Key invertibility property:** A canonical household service\\n\", \"technology maps a service process $\\\\{s_t\\\\}$ in $L_0^2$\\n\", \"into a corresponding consumption process $\\\\{c_t\\\\}$ for which the\\n\", \"implied household capital stock process $\\\\{h_t\\\\}$ is also in\\n\", \"$L^2_0$.\\n\", \"\\n\", \"An inverse household technology:\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"c_t &= - \\\\Pi^{-1} \\\\Lambda h_{t-1} + \\\\Pi^{-1} s_t\\\\\\\\\\n\", \"h_t &= (\\\\Delta_h - \\\\Theta_h\\\\Pi^{-1} \\\\Lambda) h_{t-1} + \\\\Theta_h \\\\Pi^{-1}\\n\", \"s_t\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"The restriction on the eigenvalues of the matrix\\n\", \"$(\\\\Delta_h - \\\\Theta_h \\\\Pi^{-1}\\n\", \"\\\\Lambda)$ keeps the household capital stock $\\\\{h_t\\\\}$ in\\n\", \"$L_0^2$.\\n\", \"\\n\", \"\\n\", \"\" ] }, { \"cell_type\": \"markdown\", \"id\": \"6ab702fd\", \"metadata\": {}, \"source\": [ \"### Dynamic Demand Functions\\n\", \"\\n\", \"$$\\n\", \"\\\\rho^0_t \\\\equiv \\\\Pi^{-1 \\\\prime} \\\\Bigl[p^0_t - \\\\Theta _h^\\\\prime E_t\\n\", \"\\\\sum^\\\\infty_{\\\\tau=1} \\\\beta^\\\\tau (\\\\Delta_h^\\\\prime - \\\\Lambda^\\\\prime \\\\Pi^{-1 \\\\prime}\\n\", \"\\\\Theta_h^\\\\prime )^{\\\\tau-1}\\\\Lambda^\\\\prime \\\\Pi^{-1 \\\\prime} p^0_{t+\\\\tau} \\\\Bigr]\\n\", \"$$\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"s_{i,t}&= \\\\Lambda h_{i,t-1} \\\\\\\\\\n\", \"h_{i,t}&= \\\\Delta _h h_{i,t-1}\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"where $h_{i,-1} = h_{-1}$.\\n\", \"\\n\", \"\\n\", \"\\n\", \"$$\\n\", \"W_0 = E_0\\\\sum^\\\\infty_{t=0}\\\\beta ^t(w^0_t\\\\ell _t + \\\\alpha ^0_t\\\\cdot d_t) + v_0\\\\cdot k_{-1}\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"\\\\mu^w_0 = {E_0 \\\\sum^\\\\infty_{t=0} \\\\beta^t \\\\rho^0_t\\\\cdot\\n\", \" (b_t -s_{i,t}) - W_0 \\\\over E_0 \\\\sum^\\\\infty_{t=0}\\n\", \"\\\\beta^t \\\\rho^0_t \\\\cdot \\\\rho^0_t}\\n\", \"$$\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"c_t &= -\\\\Pi^{-1} \\\\Lambda h_{t-1} + \\\\Pi ^{-1} b_t\\n\", \"-\\\\Pi^{-1} \\\\mu_0^w E_t \\\\{ \\\\Pi^{\\\\prime\\\\, -1} - \\\\Pi^{\\\\prime\\\\, -1}\\\\Theta_h ' \\\\\\\\\\n\", \"& \\\\qquad [I - (\\\\Delta_h ' - \\\\Lambda ' \\\\Pi^{\\\\prime \\\\, -1} \\\\Theta_h ')\\\\beta L^{-1}]\\n\", \"^{-1} \\\\Lambda ' \\\\Pi^{\\\\prime -1} \\\\beta L^{-1} \\\\} p_t^0 \\\\\\\\\\n\", \"h_t &= \\\\Delta_h h_{t-1} + \\\\Theta_h c_t\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"This system expresses consumption demands at date $t$ as\\n\", \"functions of: (i) time-$t$ conditional expectations of future\\n\", \"scaled Arrow-Debreu prices $\\\\{p_{t+s}^0\\\\}_{s=0}^\\\\infty$; (ii) the\\n\", \"stochastic process for the household’s endowment $\\\\{d_t\\\\}$ and\\n\", \"preference shock $\\\\{b_t\\\\}$, as mediated through the multiplier\\n\", \"$\\\\mu_0^w$ and wealth $W_0$; and (iii) past values of\\n\", \"consumption, as mediated through the state variable $h_{t-1}$.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"0de2c761\", \"metadata\": {}, \"source\": [ \"## Gorman Aggregation and Engel Curves\\n\", \"\\n\", \"We shall explore how the dynamic demand schedule for consumption goods\\n\", \"opens up the possibility of satisfying Gorman’s (1953) conditions for\\n\", \"aggregation in a heterogeneous consumer model.\\n\", \"\\n\", \"The first equation of our demand system is an Engel curve for consumption that is linear in the\\n\", \"marginal utility $\\\\mu_0^2$ of individual wealth with a coefficient\\n\", \"on $\\\\mu_0^w$ that depends only on prices.\\n\", \"\\n\", \"The multiplier $\\\\mu_0^w$ depends on wealth in an affine relationship, so that\\n\", \"consumption is linear in wealth.\\n\", \"\\n\", \"In a model with multiple consumers who have the same household technologies\\n\", \"($\\\\Delta_h, \\\\Theta_h, \\\\Lambda, \\\\Pi$) but possibly different\\n\", \"preference shock processes and initial values of household capital\\n\", \"stocks, the coefficient on the marginal utility of wealth is the same\\n\", \"for all consumers.\\n\", \"\\n\", \"Gorman showed that when Engel curves satisfy this\\n\", \"property, there exists a unique community or aggregate preference\\n\", \"ordering over aggregate consumption that is independent of the\\n\", \"distribution of wealth.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"996793b6\", \"metadata\": {}, \"source\": [ \"### Re-Opened Markets\\n\", \"\\n\", \"$$\\n\", \"\\\\rho^t_{t} \\\\equiv \\\\Pi^{-1 \\\\prime} \\\\Bigl[p^t_{t} - \\\\Theta _h^\\\\prime E_t\\n\", \"\\\\sum^\\\\infty_{\\\\tau=1} \\\\beta^\\\\tau (\\\\Delta_h^\\\\prime - \\\\Lambda^\\\\prime \\\\Pi^{-1 \\\\prime}\\n\", \"\\\\Theta_h^\\\\prime )^{\\\\tau-1}\\\\Lambda^\\\\prime \\\\Pi^{-1 \\\\prime} p^t_{t+\\\\tau} \\\\Bigr]\\n\", \"$$\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"s_{i,t}&= \\\\Lambda h_{i,t-1} \\\\\\\\\\n\", \"h_{i,t}&= \\\\Delta _h h_{i,t-1},\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"where now $h_{i,t-1} = h_{t-1}$. Define time $t$ wealth\\n\", \"$W_t$\\n\", \"\\n\", \"$$\\n\", \"W_t = E_t\\\\sum^\\\\infty_{j=0}\\\\beta ^j(w^t_{t+j}\\\\ell_{t+j} + \\\\alpha ^t_{t+j}\\\\cdot d_{t+j}) + v_t\\\\cdot k_{t-1}\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"\\\\mu^w_t = {E_t \\\\sum^\\\\infty_{j=0} \\\\beta^j \\\\rho^t_{t+j}\\\\cdot\\n\", \"(b_{t+j} -s_{i,t+j}) - W_t \\\\over E_t \\\\sum^\\\\infty_{t=0}\\n\", \"\\\\beta^j \\\\rho^t_{t+j} \\\\cdot \\\\rho^t_{t+j}}\\n\", \"$$\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"c_t &= -\\\\Pi^{-1} \\\\Lambda h_{t-1} + \\\\Pi ^{-1} b_t\\n\", \"-\\\\Pi^{-1} \\\\mu_t^w E_t \\\\{ \\\\Pi^{\\\\prime\\\\, -1} - \\\\Pi^{\\\\prime\\\\, -1}\\\\Theta_h ' \\\\\\\\\\n\", \"& \\\\qquad [I - (\\\\Delta_h ' - \\\\Lambda ' \\\\Pi^{\\\\prime \\\\, -1} \\\\Theta_h ')\\\\beta L^{-1}]\\n\", \"^{-1} \\\\Lambda ' \\\\Pi^{\\\\prime -1} \\\\beta L^{-1} \\\\} p_t^t \\\\\\\\\\n\", \"h_t &= \\\\Delta_h h_{t-1} + \\\\Theta_h c_t\\n\", \"\\\\end{aligned}\\n\", \"\" ] }, { \"cell_type\": \"markdown\", \"id\": \"9ae8a278\", \"metadata\": {}, \"source\": [ \"### Dynamic Demand\\n\", \"\\n\", \"Define a time $t$ continuation of a sequence\\n\", \"$\\\\{z_t\\\\}_{t=0}^\\\\infty$ as the sequence\\n\", \"$\\\\{z_\\\\tau\\\\}_{\\\\tau=t}^\\\\infty$. The demand system indicates that the\\n\", \"time $t$ vector of demands for $c_t$ is influenced by:\\n\", \"\\n\", \"Through the multiplier $\\\\mu^w_t$, the time $t$ continuation\\n\", \"of the preference shock process $\\\\{b_t\\\\}$ and the time $t$\\n\", \"continuation of $\\\\{s_{i,t}\\\\}$.\\n\", \"\\n\", \"The time $t-1$ level of household durables $h_{t-1}$.\\n\", \"\\n\", \"Everything that affects the household’s time $t$ wealth, including\\n\", \"its stock of physical capital $k_{t-1}$ and its value $v_t$,\\n\", \"the time $t$ continuation of the factor prices\\n\", \"$\\\\{w_t, \\\\alpha_t\\\\}$, the household’s continuation endowment\\n\", \"process, and the household’s continuation plan for $\\\\{\\\\ell_t\\\\}$.\\n\", \"\\n\", \"The time $t$ continuation of the vector of prices\\n\", \"$\\\\{p_t^t\\\\}$.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"85c48500\", \"metadata\": {}, \"source\": [ \"### Attaining a Canonical Household Technology\\n\", \"\\n\", \"Apply the following version of a factorization identity:\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"&[\\\\Pi + \\\\beta^{1/2} L^{-1} \\\\Lambda (I - \\\\beta^{1/2} L^{-1}\\n\", \"\\\\Delta_h)^{-1} \\\\Theta_h]^\\\\prime [\\\\Pi + \\\\beta^{1/2} L\\n\", \"\\\\Lambda (I - \\\\beta^{1/2} L \\\\Delta_h)^{-1} \\\\Theta_h] \\\\\\\\\\n\", \"&\\\\quad = [\\\\hat\\\\Pi + \\\\beta^{1/2} L^{-1} \\\\hat\\\\Lambda\\n\", \"(I - \\\\beta^{1/2} L^{-1} \\\\Delta_h)^{-1} \\\\Theta_h]^\\\\prime\\n\", \"[\\\\hat\\\\Pi + \\\\beta^{1/2} L \\\\hat\\\\Lambda\\n\", \"(I - \\\\beta^{1/2} L \\\\Delta_h)^{-1} \\\\Theta_h]\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"The factorization identity guarantees that the\\n\", \"$[\\\\hat \\\\Lambda, \\\\hat \\\\Pi]$ representation satisfies both\\n\", \"requirements for a canonical representation.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"0007d17e\", \"metadata\": {}, \"source\": [ \"## Partial Equilibrium\\n\", \"\\n\", \"Now we’ll provide quick overviews of examples of economies that fit within our framework\\n\", \"\\n\", \"We provide details for a number of these examples in subsequent lectures\\n\", \"\\n\", \"1. [Growth in Dynamic Linear Economies](https://python-advanced.quantecon.org/growth_in_dles.html) \\n\", \"1. [Lucas Asset Pricing using DLE](https://python-advanced.quantecon.org/lucas_asset_pricing_dles.html) \\n\", \"1. [IRFs in Hall Model](https://python-advanced.quantecon.org/irfs_in_hall_model.html) \\n\", \"1. [Permanent Income Using the DLE class](https://python-advanced.quantecon.org/permanent_income_dles.html) \\n\", \"1. [Rosen schooling model](https://python-advanced.quantecon.org/rosen_schooling_model.html) \\n\", \"1. [Cattle cycles](https://python-advanced.quantecon.org/cattle_cycles.html) \\n\", \"1. [Shock Non Invertibility](https://python-advanced.quantecon.org/hs_invertibility_example.html) \\n\", \"\\n\", \"\\n\", \"We’ll start with an example of a **partial equilibrium** in which we posit demand and supply curves\\n\", \"\\n\", \"Suppose that we want to capture the dynamic demand curve:\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \" c_t &= -\\\\Pi^{-1} \\\\Lambda h_{t-1} + \\\\Pi ^{-1} b_t - \\\\Pi^{-1}\\n\", \" \\\\mu_0^w E_t \\\\{ \\\\Pi^{\\\\prime\\\\, -1} - \\\\Pi^{\\\\prime\\\\, -1}\\\\Theta_h' \\\\\\\\\\n\", \" & \\\\qquad[I - (\\\\Delta_h' - \\\\Lambda' \\\\Pi^{\\\\prime\\\\, -1} \\\\Theta_h')\\\\beta\\n\", \" L^{-1}]^{-1} \\\\Lambda' \\\\Pi^{\\\\prime -1} \\\\beta L^{-1} \\\\} p_t \\\\\\\\\\n\", \" h_t &= \\\\Delta_h h_{t-1} + \\\\Theta_h c_t\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"From material described earlier in this lecture, we know how to reverse engineer preferences that generate this demand system\\n\", \"\\n\", \"- note how the demand equations are cast in terms of the matrices in our standard preference representation \\n\", \"\\n\", \"\\n\", \"Now let’s turn to supply.\\n\", \"\\n\", \"A representative firm takes as given and beyond its control the\\n\", \"stochastic process $\\\\{p_t\\\\}_{t=0}^\\\\infty$.\\n\", \"\\n\", \"The firm sells its\\n\", \"output $c_t$ in a competitive market each period.\\n\", \"\\n\", \"Only spot markets convene at each date $t\\\\geq 0$.\\n\", \"\\n\", \"The firm also faces an exogenous process of cost disturbances $d_t$.\\n\", \"\\n\", \"The firm chooses stochastic processes $\\\\{c_t, g_t, i_t, k_t\\\\}_{t=0}^\\\\infty$ to maximize\\n\", \"\\n\", \"$$\\n\", \"E_0 \\\\sum_{t=0}^\\\\infty \\\\beta^t \\\\{ p_t \\\\cdot c_t - g_t \\\\cdot g_t/2 \\\\}\\n\", \"$$\\n\", \"\\n\", \"subject to given $k_{-1}$ and\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"\\\\Phi_c c_t + \\\\Phi_i i_t + \\\\Phi_g g_t &=\\\\Gamma k_{t-1} + d_t \\\\\\\\\\n\", \" k_t& = \\\\Delta_k k_{t-1} + \\\\Theta_k i_t . \\\\\\\\\\n\", \" % x_{t+1}& = A^o x_t + C w_{t+1} \\\\\\\\\\n\", \" % d_t& = S_d x_t \\\\\\\\\\n\", \" % p_t& = M_c x_t\\n\", \"\\\\end{aligned}\\n\", \"\" ] }, { \"cell_type\": \"markdown\", \"id\": \"339f855f\", \"metadata\": {}, \"source\": [ \"## Equilibrium Investment Under Uncertainty\\n\", \"\\n\", \"A representative firm maximizes\\n\", \"\\n\", \"$$\\n\", \"E \\\\sum_{t=0}^\\\\infty \\\\beta^t \\\\{ p_t c_t - g_t^2/2 \\\\}\\n\", \"$$\\n\", \"\\n\", \"subject to the technology\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \" c_t &= \\\\gamma k_{t-1} \\\\\\\\\\n\", \" k_t &= \\\\delta_k k_{t-1} + i_t \\\\\\\\\\n\", \" g_t &= f_1 i_t + f_2 d_t\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"where $d_t$ is a cost shifter, $\\\\gamma> 0$, and\\n\", \"$f_1 >0$ is a cost parameter and $f_2 =1$. Demand is\\n\", \"governed by\\n\", \"\\n\", \"$$\\n\", \"p_t = \\\\alpha_0 - \\\\alpha_1 c_t + u_t\\n\", \"$$\\n\", \"\\n\", \"where $u_t$ is a demand shifter with mean zero and\\n\", \"$\\\\alpha_0, \\\\alpha_1$ are positive parameters.\\n\", \"\\n\", \"Assume that $u_t, d_t$ are uncorrelated first-order autoregressive processes.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"6f05303b\", \"metadata\": {}, \"source\": [ \"## A Rosen-Topel Housing Model\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \" R_t &= b_t + \\\\alpha h_t \\\\\\\\\\n\", \" p_t &= E_t \\\\sum_{\\\\tau =0}^\\\\infty (\\\\beta \\\\delta_h)^\\\\tau\\n\", \" R_{t+\\\\tau}\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"where $h_t$ is the stock of housing at time $t$\\n\", \"$R_t$ is the rental rate for housing, $p_t$ is the price of\\n\", \"new houses, and $b_t$ is a demand shifter; $\\\\alpha < 0$ is a\\n\", \"demand parameter, and $\\\\delta_h$ is a depreciation factor for\\n\", \"houses.\\n\", \"\\n\", \"We cast this demand specification within our class of models by letting\\n\", \"the stock of houses $h_t$ evolve according to\\n\", \"\\n\", \"$$\\n\", \"h_t = \\\\delta_h h_{t-1} + c_t, \\\\quad \\\\delta_h \\\\in (0,1)\\n\", \"$$\\n\", \"\\n\", \"where $c_t$ is the rate of production of new houses.\\n\", \"\\n\", \"Houses produce services $s_t$ according to\\n\", \"$s_t = \\\\bar \\\\lambda h_t$ or\\n\", \"$s_t = \\\\lambda h_{t-1} + \\\\pi c_t,$ where\\n\", \"$\\\\lambda= \\\\bar \\\\lambda \\\\delta_h, \\\\pi = \\\\bar \\\\lambda$.\\n\", \"\\n\", \"We can take $\\\\bar \\\\lambda \\\\rho_t^0 = R_t$ as the rental rate on housing at\\n\", \"time $t$, measured in units of time $t$ consumption (housing).\\n\", \"\\n\", \"Demand for housing services is\\n\", \"\\n\", \"$$\\n\", \"s_t = b_t - \\\\mu_0 \\\\rho_t^0\\n\", \"$$\\n\", \"\\n\", \"where the price of new houses $p_t$ is related to\\n\", \"$\\\\rho_t^0$ by\\n\", \"$\\\\rho_t^0 = \\\\pi^{-1} [ p_t - \\\\beta \\\\delta_h E_t p_{t+1}]$.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"4ead5e03\", \"metadata\": {}, \"source\": [ \"## Cattle Cycles\\n\", \"\\n\", \"Rosen, Murphy, and Scheinkman (1994). Let $p_t$ be the price of\\n\", \"freshly slaughtered beef, $m_t$ the feeding cost of preparing an\\n\", \"animal for slaughter, $\\\\tilde h_t$ the one-period holding cost for\\n\", \"a mature animal, $\\\\gamma_1 \\\\tilde h_t$ the one-period holding cost\\n\", \"for a yearling, and $\\\\gamma_0 \\\\tilde\\n\", \"h_t$ the one-period holding cost for a calf.\\n\", \"\\n\", \"The cost processes\\n\", \"$\\\\{\\\\tilde h_t, m_t\\\\}_{t=0}^\\\\infty$ are exogenous, while the\\n\", \"stochastic process $\\\\{p_t\\\\}_{t=0}^\\\\infty$ is determined by a\\n\", \"rational expectations equilibrium. Let $\\\\tilde x_t$ be the\\n\", \"breeding stock, and $\\\\tilde y_t$ be the total stock of animals.\\n\", \"\\n\", \"The law of motion for cattle stocks is\\n\", \"\\n\", \"$$\\n\", \"\\\\tilde x_t = (1-\\\\delta) \\\\tilde x_{t-1} + g \\\\tilde x_{t-3} - c_t\\n\", \"$$\\n\", \"\\n\", \"where $c_t$ is a rate of slaughtering. The total head-count of\\n\", \"cattle\\n\", \"\\n\", \"$$\\n\", \"\\\\tilde y_t = \\\\tilde x_t + g \\\\tilde x_{t-1} + g \\\\tilde x_{t-2}\\n\", \"$$\\n\", \"\\n\", \"is the sum of adults, calves, and yearlings, respectively.\\n\", \"\\n\", \"\\n\", \"\\n\", \"A representative farmer chooses $\\\\{c_t, \\\\tilde x_t\\\\}$ to maximize\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \" E_0 \\\\sum_{t=0}^\\\\infty \\\\beta^t \\\\{ p_t c_t &-\\n\", \" \\\\tilde h_t \\\\tilde x_t\\n\", \" -(\\\\gamma_0 \\\\tilde h_t) (g \\\\tilde x_{t-1}) - (\\\\gamma_1 \\\\tilde h_t)\\n\", \" (g \\\\tilde x_{t-2}) - m_t c_t \\\\\\\\\\n\", \" &- \\\\Psi(\\\\tilde x_t, \\\\tilde x_{t-1},\\n\", \" \\\\tilde x_{t-2}, c_t) \\\\}\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"where\\n\", \"\\n\", \"$$\\n\", \"\\\\Psi = {\\\\psi_1 \\\\over 2} \\\\tilde x_t^2 + {\\\\psi_2 \\\\over 2} \\\\tilde x_{t-1}^2\\n\", \" + {\\\\psi_3 \\\\over 2} \\\\tilde x_{t-2}^2 + {\\\\psi_4 \\\\over 2} c_t^2\\n\", \"$$\\n\", \"\\n\", \"Demand is governed by\\n\", \"\\n\", \"$$\\n\", \"c_t = \\\\alpha_0 - \\\\alpha_1 p_t + \\\\tilde d_t\\n\", \"$$\\n\", \"\\n\", \"where $\\\\alpha_0 > 0$, $\\\\alpha_1 > 0$, and\\n\", \"$\\\\{\\\\tilde d_t\\\\}_{t=0}^\\\\infty$ is a stochastic process with mean\\n\", \"zero representing a demand shifter.\\n\", \"\\n\", \"For more details see [Cattle cycles](https://python-advanced.quantecon.org/cattle_cycles.html)\" ] }, { \"cell_type\": \"markdown\", \"id\": \"33a2f5cd\", \"metadata\": {}, \"source\": [ \"## Models of Occupational Choice and Pay\\n\", \"\\n\", \"We’ll describe the following pair of schooling models that view education as a time-to-build process:\\n\", \"\\n\", \"- Rosen schooling model for engineers \\n\", \"- Two-occupation model \" ] }, { \"cell_type\": \"markdown\", \"id\": \"b78fad7b\", \"metadata\": {}, \"source\": [ \"### Market for Engineers\\n\", \"\\n\", \"Ryoo and Rosen’s (2004) [[RR04](https://python-advanced.quantecon.org/zreferences.html#id65)] model consists of the following equations:\\n\", \"\\n\", \"first, a demand curve for engineers\\n\", \"\\n\", \"$$\\n\", \"w_t = - \\\\alpha_d N_t + \\\\epsilon_{1t}\\\\ ,\\\\ \\\\alpha_d > 0\\n\", \"$$\\n\", \"\\n\", \"second, a time-to-build structure of the education process\\n\", \"\\n\", \"$$\\n\", \"N_{t+k} = \\\\delta_N N_{t+k-1} + n_t\\\\ ,\\\\ 0<\\\\delta_N<1\\n\", \"$$\\n\", \"\\n\", \"third, a definition of the discounted present value of each new\\n\", \"engineering student\\n\", \"\\n\", \"$$\\n\", \"v_t = \\\\beta^k E_t \\\\sum^\\\\infty_{j=0} (\\\\beta \\\\delta_N)^j\\n\", \" w_{t+k+j};\\n\", \"$$\\n\", \"\\n\", \"and fourth, a supply curve of new students driven by $v_t$\\n\", \"\\n\", \"$$\\n\", \"n_t = \\\\alpha_s v_t + \\\\epsilon_{2t}\\\\ ,\\\\ \\\\alpha_s > 0\\n\", \"$$\\n\", \"\\n\", \"Here $\\\\{\\\\epsilon_{1t}, \\\\epsilon_{2t}\\\\}$ are stochastic processes\\n\", \"of labor demand and supply shocks.\\n\", \"\\n\", \"\\n\", \"\\n\", \"**Definition:** A partial equilibrium is a stochastic process\\n\", \"$\\\\{w_t, N_t, v_t, n_t\\\\}^\\\\infty_{t=0}$ satisfying these four\\n\", \"equations, and initial conditions\\n\", \"$N_{-1}, n_{-s}, s=1, \\\\ldots, -k$.\\n\", \"\\n\", \"We sweep the time-to-build structure and the demand for engineers into\\n\", \"the household technology and putting the supply of new engineers into\\n\", \"the technology for producing goods.\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \" s_t &= [\\\\lambda_1 \\\\ 0 \\\\ \\\\ldots \\\\ 0]\\\\ \\\\begin{bmatrix}\\n\", \"h_{1t-1}\\\\\\\\ h_{2t-1}\\\\\\\\ \\\\vdots \\\\\\\\ h_{k+1,t-1}\\\\end{bmatrix} + 0 \\\\cdot c_t \\\\\\\\\\n\", \"\\\\begin{bmatrix} h_{1t}\\\\\\\\ h_{2t}\\\\\\\\ \\\\vdots\\\\\\\\ h_{k,t} \\\\\\\\\\n\", \" h_{k+1,t}\\\\end{bmatrix} &=\\n\", \"\\\\begin{bmatrix} \\\\delta_N & 1 & 0 & \\\\cdots & 0\\\\\\\\ 0 & 0 & 1 & \\\\cdots & 0\\\\\\\\\\n\", \"\\\\vdots & \\\\vdots & \\\\vdots & \\\\ddots & \\\\vdots\\\\\\\\ 0 & \\\\cdots & \\\\cdots & 0 & 1\\\\\\\\\\n\", \"0 & 0 & 0 & \\\\cdots & 0 \\\\end{bmatrix} \\\\begin{bmatrix}h_{1t-1}\\\\\\\\ h_{2t-1}\\\\\\\\ \\\\vdots\\\\\\\\ h_{k,t-1} \\\\\\\\\\n\", \" h_{k+1,t-1}\\\\end{bmatrix} + \\\\begin{bmatrix}0\\\\\\\\ 0\\\\\\\\ \\\\vdots\\\\\\\\ 0\\\\\\\\ 1\\\\\\\\\\\\end{bmatrix} c_t \\\\\\\\\\n\", \"%b_t &= \\\\epsilon_{1t}\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"This specification sets Rosen’s $N_t = h_{1t-1}, n_t = c_t,\\n\", \"h_{\\\\tau+1,t-1} = n_{t-\\\\tau}, \\\\tau=1, \\\\ldots, k$, and uses the\\n\", \"home-produced service to capture the demand for labor. Here\\n\", \"$\\\\lambda_1$ embodies Rosen’s demand parameter $\\\\alpha_d$.\\n\", \"\\n\", \"- The supply of new workers becomes our consumption. \\n\", \"- The dynamic demand curve becomes Rosen’s dynamic supply curve for new workers. \\n\", \"\\n\", \"\\n\", \"**Remark:** This has an Imai-Keane flavor.\\n\", \"\\n\", \"For more details and Python code see [Rosen schooling model](https://python-advanced.quantecon.org/rosen_schooling_model.html).\" ] }, { \"cell_type\": \"markdown\", \"id\": \"f54e023a\", \"metadata\": {}, \"source\": [ \"### Skilled and Unskilled Workers\\n\", \"\\n\", \"First, a demand curve for labor\\n\", \"\\n\", \"$$\\n\", \"\\\\begin{bmatrix} w_{ut} \\\\\\\\ w_{st} \\\\end{bmatrix}\\n\", \" = \\\\alpha_d \\\\begin{bmatrix} N_{ut} \\\\\\\\ N_{st} \\\\end{bmatrix}\\n\", \" + \\\\epsilon_{1t}\\n\", \"$$\\n\", \"\\n\", \"where $\\\\alpha_d$ is a $(2 \\\\times 2)$ matrix of demand\\n\", \"parameters and $\\\\epsilon_{1t}$ is a vector of demand shifters\\n\", \"second, time-to-train specifications for skilled and unskilled labor,\\n\", \"respectively:\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \" N_{st+k} &=\\\\delta_N N_{st+k-1} + n_{st} \\\\\\\\\\n\", \" N_{ut} &=\\\\delta_N N_{ut-1} + n_{ut} ;\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"where $N_{st}, N_{ut}$ are stocks of the two types of labor, and\\n\", \"$n_{st}, n_{ut}$ are entry rates into the two occupations.\\n\", \"\\n\", \"\\n\", \"\\n\", \"third, definitions of discounted present values of new entrants to the\\n\", \"skilled and unskilled occupations, respectively:\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \" v_{st} &= E_t \\\\beta^k \\\\sum_{j=0}^\\\\infty (\\\\beta \\\\delta_N)^j\\n\", \" w_{st+k+j} \\\\\\\\\\n\", \" v_{ut} &=E_t \\\\sum_{j=0}^\\\\infty (\\\\beta \\\\delta_N)^j\\n\", \" w_{ut+j}\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"where $w_{ut}, w_{st}$ are wage rates for the two occupations;\\n\", \"and fourth, supply curves for new entrants:\\n\", \"\\n\", \"$$\\n\", \"\\\\begin{bmatrix}n_{st} \\\\\\\\ n_{ut}\\\\end{bmatrix}\\n\", \" = \\\\alpha_s \\\\begin{bmatrix} v_{ut} \\\\\\\\ v_{st} \\\\end{bmatrix} +\\n\", \" \\\\epsilon_{2t}\\n\", \"$$\\n\", \"\\n\", \"**Short Cut**\\n\", \"\\n\", \"As an alternative, Siow simply used the **equalizing differences**\\n\", \"condition\\n\", \"\\n\", \"$$\\n\", \"v_{ut} = v_{st}\\n\", \"$$\" ] }, { \"cell_type\": \"markdown\", \"id\": \"4b19592e\", \"metadata\": {}, \"source\": [ \"## Permanent Income Models\\n\", \"\\n\", \"We’ll describe a class of permanent income models that feature\\n\", \"\\n\", \"- Many consumption goods and services \\n\", \"- A single capital good with $R \\\\beta =1$ \\n\", \"- The physical production technology \\n\", \"\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"\\\\phi_c \\\\cdot c_t+i_t&=\\\\gamma k_{t-1}+e_t \\\\\\\\\\n\", \" k_t&= k_{t-1} + i_t\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"$$\\n\", \"\\\\phi_ii_t-g_t=0\\n\", \"$$\\n\", \"\\n\", \"**Implication One:**\\n\", \"\\n\", \"Equality of Present Values of Moving Average Coefficients of $c$ and $e$\\n\", \"\\n\", \"$$\\n\", \"k_{t-1} = \\\\beta \\\\sum_{j=0}^\\\\infty \\\\beta^j (\\\\phi_c \\\\cdot c_{t+j} - e_{t+j}) \\\\quad \\\\Rightarrow\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"k_{t-1} = \\\\beta \\\\sum_{j=0}^\\\\infty \\\\beta^j E (\\\\phi_c\\n\", \" \\\\cdot c_{t+j} - e_{t+j})|J_t \\\\quad \\\\Rightarrow\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"\\\\sum_{j=0}^\\\\infty \\\\beta^j (\\\\phi_c)^\\\\prime \\\\chi_j =\\n\", \" \\\\sum_{j=0}^\\\\infty \\\\beta^j \\\\epsilon_j\\n\", \"$$\\n\", \"\\n\", \"where $\\\\chi_j w_t$ is the response of $c_{t+j}$ to\\n\", \"$w_t$ and $\\\\epsilon_j w_t$ is the response of endowment\\n\", \"$e_{t+j}$ to $w_t$:\\n\", \"\\n\", \"**Implication Two:**\\n\", \"\\n\", \"Martingales\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"{\\\\mathcal M}_t^k &= E ({\\\\mathcal M}_{t+1}^k | J_t) \\\\\\\\\\n\", \"{\\\\mathcal M}_t^e &= E ({\\\\mathcal M}_{t+1}^e | J_t)\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"and\\n\", \"\\n\", \"$$\\n\", \"{\\\\mathcal M}_t^c = (\\\\Phi_c)^\\\\prime {\\\\mathcal M}_t^d = \\\\phi_c {\\\\cal M}_t^e\\n\", \"$$\\n\", \"\\n\", \"For more details see [Permanent Income Using the DLE class](https://python-advanced.quantecon.org/permanent_income_dles.html)\\n\", \"\\n\", \"**Testing Permanent Income Models:**\\n\", \"\\n\", \"We have two types of implications of permanent income models:\\n\", \"\\n\", \"- Equality of present values of moving average coefficients. \\n\", \"- Martingale ${\\\\mathcal M}_t^k$. \\n\", \"\\n\", \"\\n\", \"These have been tested in work by Hansen, Sargent, and Roberts (1991) [[SHR91](https://python-advanced.quantecon.org/zreferences.html#id54)]\\n\", \"and by Attanasio and Pavoni (2011) [[AP11](https://python-advanced.quantecon.org/zreferences.html#id53)].\" ] }, { \"cell_type\": \"markdown\", \"id\": \"a143f42e\", \"metadata\": {}, \"source\": [ \"## Gorman Heterogeneous Households\\n\", \"\\n\", \"We now assume that there is a finite number of households, each with its own household technology and\\n\", \"preferences over consumption services.\\n\", \"\\n\", \"Household $j$ orders preferences over consumption processes according to\\n\", \"\\n\", \"$$\\n\", \"-\\\\ \\\\left({1 \\\\over 2}\\\\right)\\\\ E \\\\sum_{t=0}^\\\\infty\\\\, \\\\beta^t\\\\, \\\\bigl[(s_{jt} -\\n\", \"b_{jt}) \\\\cdot (s_{jt} - b_{jt}) + \\\\ell_{jt}^{2}\\\\bigr] \\\\mid J_0\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"s_{jt} = \\\\Lambda\\\\, h_{j,t-1} + \\\\Pi\\\\, c_{jt}\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"h_{jt} = \\\\Delta_h\\\\, h_{j,t-1} + \\\\Theta_h\\\\, c_{jt}\\n\", \"$$\\n\", \"\\n\", \"and $h_{j,-1}$ is given\\n\", \"\\n\", \"$$\\n\", \"b_{jt} = U_{bj} z_t\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"E\\\\, \\\\sum_{t=0}^\\\\infty\\\\, \\\\beta^t\\\\, p_t^0\\\\, \\\\cdot c_{jt} \\\\mid J_0 = E\\\\,\\n\", \"\\\\sum_{t=0}^\\\\infty\\\\, \\\\beta^t\\\\, (w_t^0\\\\, \\\\ell_{jt} + \\\\alpha_t^0\\\\, \\\\cdot\\n\", \" d_{jt}) \\\\mid\\n\", \"J_0 + v_0\\\\, \\\\cdot k_{j,-1},\\n\", \"$$\\n\", \"\\n\", \"where $k_{j,-1}$ is given. The $j^{\\\\rm th}$ consumer owns\\n\", \"an endowment process $d_{jt}$, governed by the stochastic process\\n\", \"$d_{jt} = U_{dj}\\\\, z_t$.\\n\", \"\\n\", \"\\n\", \"\\n\", \"We refer to this as a setting with Gorman heterogeneous households.\\n\", \"\\n\", \"This specification confines heterogeneity among consumers to:\\n\", \"\\n\", \"- differences in the preference processes $\\\\{b_{jt}\\\\}$, represented by different selections of $U_{bj}$ \\n\", \"- differences in the endowment processes $\\\\{d_{jt}\\\\}$, represented by different selections of $U_{dj}$ \\n\", \"- differences in $h_{j,-1}$ and \\n\", \"- differences in $k_{j,-1}$ \\n\", \"\\n\", \"\\n\", \"The matrices $\\\\Lambda,\\\\,\\\\Pi,\\\\,\\\\Delta_h,\\\\,\\\\Theta_h$ do not depend on $j$.\\n\", \"\\n\", \"This makes everybody’s demand system have the form described earlier,\\n\", \"with different $\\\\mu_{j0}^w$’s (reflecting different wealth\\n\", \"levels) and different $b_{jt}$ preference shock processes and\\n\", \"initial conditions for household capital stocks.\\n\", \"\\n\", \"**Punchline:** there exists a representative consumer.\\n\", \"\\n\", \"We can use the representative consumer to compute a competitive equilibrium **aggregate** allocation and price system.\\n\", \"\\n\", \"With the equilibrium aggregate allocation and price system in hand, we can then compute allocations to each household.\\n\", \"\\n\", \"**Computing Allocations to Individuals:**\\n\", \"\\n\", \"Set\\n\", \"\\n\", \"$$\\n\", \"\\\\ell_{jt} = (\\\\mu_{0j}^w/\\\\mu_{0a}^w) \\\\ell_{at}\\n\", \"$$\\n\", \"\\n\", \"Then solve the following equation for $\\\\mu_{0j}^{w}$:\\n\", \"\\n\", \"$$\\n\", \"\\\\mu_{0j}^{w} E_0 \\\\sum_{t=0}^\\\\infty \\\\beta^t \\\\{\\\\rho_t^0 \\\\cdot \\\\rho_t^0\\n\", \" + (w_t^0/ \\\\mu_{0a}^{w}) \\\\ell_{at} \\\\}\\n\", \" = E_0 \\\\sum_{t=0}^\\\\infty \\\\beta^t \\\\{ \\\\rho_t^0 \\\\cdot (b_{jt} - s_{jt}^i)\\n\", \" - \\\\alpha_t^0 \\\\cdot d_{jt} \\\\}\\n\", \" - v_0 k_{j,-1}\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"s_{jt} - b_{jt} = \\\\mu_{0j}^w\\\\rho^0_t\\n\", \"$$\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"c_{jt} &= - \\\\Pi^{-1} \\\\Lambda h_{j,t-1} + \\\\Pi^{-1}s_{jt} \\\\\\\\\\n\", \"h_{jt} &= (\\\\Delta_h - \\\\Theta_h \\\\Pi^{-1}\\\\Lambda) h_{j,t-1} + \\\\Pi^{-1}\\n\", \" \\\\Theta_h s_{jt}\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"Here $h_{j,-1}$ given.\" ] }, { \"cell_type\": \"markdown\", \"id\": \"b2d852bb\", \"metadata\": {}, \"source\": [ \"## Non-Gorman Heterogeneous Households\\n\", \"\\n\", \"We now describe a less tractable type of heterogeneity across households that we dub **Non-Gorman heterogeneity**.\\n\", \"\\n\", \"Here is the specification:\\n\", \"\\n\", \"Preferences and Household Technologies:\\n\", \"\\n\", \"$$\\n\", \"- {1\\\\over 2} E\\\\, \\\\sum^\\\\infty_{t=0}\\\\, \\\\beta^t\\\\, [ (s_{it} - b_{it}) \\\\cdot\\n\", \"(s_{it} - b_{it}) + \\\\ell^2_{it}]\\\\mid J_0\\n\", \"$$\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"s_{it} &= \\\\Lambda_i h_{i t-1} + \\\\Pi_i\\\\, c_{it} \\\\\\\\\\n\", \"h_{it} &=\\\\Delta_{h_i}\\\\, h_{i t-1} + \\\\Theta_{h_i} c_{it}\\\\ ,\\\\ i=1,2 .\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"$$\\n\", \"b_{it} = U_{bi} z_t\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"z_{t+1} = A_{22} z_t + C_2 w_{t+1}\\n\", \"$$\\n\", \"\\n\", \"**Production Technology**\\n\", \"\\n\", \"$$\\n\", \"\\\\Phi_c (c_{1t} + c_{2t}) + \\\\Phi_g g_t + \\\\Phi_i i_t = \\\\Gamma\\n\", \"k_{t-1} + d_{1t} + d_{2t}\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"k_t = \\\\Delta_k k_{t-1} + \\\\Theta_k i_t\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"g_t \\\\cdot g_t = \\\\ell^2_t,\\\\qquad\\n\", \" \\\\ \\\\ell_t = \\\\ell_{1t} + \\\\ell_{2t}\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"d_{it} = U_{d_i} z_t, \\\\quad \\\\ i=1,2\\n\", \"$$\\n\", \"\\n\", \"**Pareto Problem:**\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"& - {1\\\\over 2}\\\\, \\\\lambda E_0 \\\\sum^\\\\infty_{t=0}\\\\, \\\\beta^t [ (s_{1t}\\n\", \"-b_{1t})\\\\cdot (s_{1t} - b_{1t}) + \\\\ell^2_{1t}]\\\\\\\\\\n\", \"&\\n\", \"-{1\\\\over 2}\\\\, (1-\\\\lambda) E_0 \\\\sum^\\\\infty_{t=0}\\\\, \\\\beta^t [ (s_{2t} -\\n\", \"b_{2t}) \\\\cdot (s_{2t} - b_{2t}) + \\\\ell^2_{2t}]\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"**Mongrel Aggregation: Static**\\n\", \"\\n\", \"There is what we call a kind of **mongrel aggregation** in this setting.\\n\", \"\\n\", \"We first describe the idea within a simple static setting in which there is a single consumer static inverse demand with\\n\", \"implied preferences:\\n\", \"\\n\", \"$$\\n\", \"c_t = \\\\Pi^{-1} b_t - \\\\mu_0 \\\\Pi^{-1} \\\\Pi^{-1 \\\\prime} p_t\\n\", \"$$\\n\", \"\\n\", \"An inverse demand curve is\\n\", \"\\n\", \"$$\\n\", \"p_t = \\\\mu_0^{-1} \\\\Pi' b_t - \\\\mu_0^{-1} \\\\Pi' \\\\Pi c_t\\n\", \"$$\\n\", \"\\n\", \"Integrating the marginal utility vector shows that preferences can be\\n\", \"taken to be\\n\", \"\\n\", \"$$\\n\", \"( - 2 \\\\mu_0)^{-1} (\\\\Pi c_t - b_t) \\\\cdot (\\\\Pi c_t - b_t )\\n\", \"$$\\n\", \"\\n\", \"\\n\", \"\\n\", \"**Key Insight:** Factor the inverse of a ‘covariance matrix’.\\n\", \"\\n\", \"Now assume that there are two consumers, $i=1,2$, with demand curves\\n\", \"\\n\", \"$$\\n\", \"c_{it} = \\\\Pi_i^{-1} b_{it} - \\\\mu_{0i} \\\\Pi_i^{-1} \\\\Pi_i^{-1 \\\\prime} p_t\\n\", \"$$\\n\", \"\\n\", \"$$\\n\", \"c_{1t} + c_{2t} = (\\\\Pi_1^{-1} b_{1t} + \\\\Pi_2^{-1} b_{2t})\\n\", \" - (\\\\mu_{01} \\\\Pi_1^{-1} \\\\Pi_1^{-1 \\\\prime} + \\\\mu_{02} \\\\Pi_2\\n\", \" \\\\Pi_2^{-1 \\\\prime}) p_t\\n\", \"$$\\n\", \"\\n\", \"Setting $c_{1t} + c_{2t} = c_t$ and solving for $p_t$ gives\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"p_t &= (\\\\mu_{01} \\\\Pi_1^{-1} \\\\Pi_1^{-1 \\\\prime} + \\\\mu_{02}\\n\", \" \\\\Pi_2^{-1} \\\\Pi_2^{-1 \\\\prime})^{-1}\\n\", \" (\\\\Pi_1^{-1} b_{1t} + \\\\Pi_2^{-1} b_{2t}) \\\\\\\\\\n\", \"&- (\\\\mu_{01} \\\\Pi_1^{-1} \\\\Pi_1^{-1 \\\\prime} +\\n\", \" \\\\mu_{02} \\\\Pi_2^{-1} \\\\Pi_2^{-1 \\\\prime}\\n\", \" )^{-1} c_t\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"**Punchline:** choose $\\\\Pi$ associated with the aggregate ordering to\\n\", \"satisfy\\n\", \"\\n\", \"$$\\n\", \"\\\\mu_0^{-1} \\\\Pi' \\\\Pi = (\\\\mu_{01} \\\\Pi_1^{-1} \\\\Pi_2^{-1 \\\\prime}\\n\", \" + \\\\mu_{02} \\\\Pi_2^{-1} \\\\Pi_2^{-1 \\\\prime})^{-1}\\n\", \"$$\\n\", \"\\n\", \"**Dynamic Analogue:**\\n\", \"\\n\", \"We now describe how to extend mongrel aggregation to a dynamic setting.\\n\", \"\\n\", \"The key comparison is\\n\", \"\\n\", \"- Static: factor a covariance matrix-like object \\n\", \"- Dynamic: factor a spectral-density matrix-like object \\n\", \"\\n\", \"\\n\", \"Programming Problem for Dynamic Mongrel Aggregation:\\n\", \"\\n\", \"Our strategy for deducing the mongrel preference ordering over\\n\", \"$c_t = c_{1t} + c_{2t}$ is to solve the programming problem:\\n\", \"choose $\\\\{c_{1t},c_{2t}\\\\}$ to maximize the criterion\\n\", \"\\n\", \"$$\\n\", \"\\\\sum^\\\\infty_{t=0} \\\\beta^t [\\\\lambda (s_{1t} - b_{1t}) \\\\cdot (s_{1t} - b_{1t})\\n\", \" + (1-\\\\lambda) (s_{2t} - b_{2t}) \\\\cdot (s_{2t} - b_{2t})]\\n\", \"$$\\n\", \"\\n\", \"subject to\\n\", \"\\n\", \"\\n\", \"\\\\begin{aligned}\\n\", \"h_{jt} &= \\\\Delta_{hj}\\\\, h_{jt-1} + \\\\Theta_{hj}\\\\, c_{jt}, j=1,2\\\\\\\\\\n\", \"s_{jt} &=\\\\Delta_j h_{jt-1} + \\\\Pi_j c_{jt}\\\\ , j=1,2\\\\\\\\\\n\", \"c_{1t} + c_{2t} &=c_t\\n\", \"\\\\end{aligned}\\n\", \"\\n\", \"\\n\", \"subject to $(h_{1, -1},\\\\, h_{2, -1})$ given and\\n\", \"$\\\\{b_{1t}\\\\},\\\\, \\\\{b_{2t}\\\\},\\\\, \\\\{c_t\\\\}$ being known and fixed\\n\", \"sequences.\\n\", \"\\n\", \"Substituting the $\\\\{c_{1t},\\\\, c_{2t}\\\\}$ sequences that\\n\", \"solve this problem as functions of $\\\\{b_{1t},\\\\, b_{2t},\\\\, c_t\\\\}$\\n\", \"into the objective determines a mongrel preference ordering over\\n\", \"$\\\\{c_t\\\\} = \\\\{c_{1t} + c_{2t}\\\\}$.\\n\", \"\\n\", \"In solving this problem, it is convenient to proceed by using Fourier\\n\", \"transforms.  For details, please see [[HS13](https://python-advanced.quantecon.org/zreferences.html#id67)] where they deploy a\\n\", \"\\n\", \"**Secret Weapon:** Another application of the spectral factorization\\n\", \"identity.\\n\", \"\\n\", \"**Concluding remark:** The [[HS13](https://python-advanced.quantecon.org/zreferences.html#id67)] class of models described in this lecture are all complete markets models. We have exploited\\n\", \"the fact that complete market models **are all alike** to allow us to define a class that **gives the same name to different things** in the\\n\", \"spirit of Henri Poincare.\\n\", \"\\n\", \"Could we create such a class for **incomplete markets** models?\\n\", \"\\n\", \"That would be nice, but before trying it would be wise to contemplate\\n\", \"the remainder of a statement by Robert E. Lucas, Jr., with which we began this lecture.\\n\", \"\\n\", \"> “Complete market economies are all alike but each incomplete market economy is incomplete in its own individual way.”   Robert E. Lucas, Jr., (1989)\" ] } ], \"metadata\": { \"date\": 1637718165.0534933, \"filename\": \"hs_recursive_models.md\", \"kernelspec\": { \"display_name\": \"Python\", \"language\": \"python3\", \"name\": \"python3\" }, \"title\": \"Recursive Models of Dynamic Linear Economies\" }, \"nbformat\": 4, \"nbformat_minor\": 5 }" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8457055,"math_prob":0.9997948,"size":88988,"snap":"2021-43-2021-49","text_gpt3_token_len":32642,"char_repetition_ratio":0.2433134,"word_repetition_ratio":0.1276579,"special_character_ratio":0.46715286,"punctuation_ratio":0.21682975,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9998766,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-12-06T05:30:37Z\",\"WARC-Record-ID\":\"<urn:uuid:e1e93078-5105-4622-9fbe-214466aad86a>\",\"Content-Length\":\"101918\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c867511b-ccf3-41bd-a5c5-3b9caf3274d2>\",\"WARC-Concurrent-To\":\"<urn:uuid:445c26e0-35f6-4687-a367-484ea1824fb0>\",\"WARC-IP-Address\":\"185.199.108.153\",\"WARC-Target-URI\":\"https://python-advanced.quantecon.org/_notebooks/hs_recursive_models.ipynb\",\"WARC-Payload-Digest\":\"sha1:7FKXWKQNKGCQAJI4REM5ON7LTS25654F\",\"WARC-Block-Digest\":\"sha1:CX6GNEN6GOMPOEEWVD6BCGED26LBIII2\",\"WARC-Identified-Payload-Type\":\"text/plain\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964363290.39_warc_CC-MAIN-20211206042636-20211206072636-00465.warc.gz\"}"}
https://safecurves.cr.yp.to/proof/629314117180951.html
[ "Primality proof for n = 629314117180951:\n\nTake b = 2.\n\nb^(n-1) mod n = 1.\n\n900886289 is prime.\nb^((n-1)/900886289)-1 mod n = 84576020389395, which is a unit, inverse 203006583007471.\n\n(900886289) divides n-1.\n\n(900886289)^2 > n.\n\nn is prime by Pocklington's theorem." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6308335,"math_prob":0.9969505,"size":260,"snap":"2021-31-2021-39","text_gpt3_token_len":101,"char_repetition_ratio":0.15625,"word_repetition_ratio":0.0,"special_character_ratio":0.61923075,"punctuation_ratio":0.18518518,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9971274,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-20T14:52:40Z\",\"WARC-Record-ID\":\"<urn:uuid:ecbc5dde-aa23-4a58-bd7e-98dbe95844b5>\",\"Content-Length\":\"517\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:be01dc96-ead9-4378-a5c6-6ed825d6e736>\",\"WARC-Concurrent-To\":\"<urn:uuid:b3efdb5c-ba32-4ee6-ba8b-17f9cb018982>\",\"WARC-IP-Address\":\"131.193.32.109\",\"WARC-Target-URI\":\"https://safecurves.cr.yp.to/proof/629314117180951.html\",\"WARC-Payload-Digest\":\"sha1:PDB27EITCGGZ2A7Z6WSXYJS6SOZTDK6R\",\"WARC-Block-Digest\":\"sha1:6YSHGIAE3CY7LOD3334EZPAZ5HJGN7DI\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780057039.7_warc_CC-MAIN-20210920131052-20210920161052-00041.warc.gz\"}"}
https://dsp.stackexchange.com/questions/16470/a-very-rough-approximation-to-white-noise-with-sine-waves
[ "# A [Very] Rough Approximation to “White Noise” with Sine Waves\n\nThis might be a silly question, but I'm pretty rusty on my signals. The problem is the following: I'm using a program which does not have a random signal generator, but I can sum up sines; and I need to have a \"white noise\" signal.\n\nWhat would be a good way to \"approximate\" a white noise signal with sines?\n\nI know that I'll need an infinite amount of sines... but understand that I can't do that, I'm limited to the program limitations. So my specific questions are the following:\n\n1) Should the frequencies of the sine waves be below or(and?) above the Nyquist frequency?\n\n2) Say I've chosen I want \"white noise\" in frequencies 10Hz-100Hz, and I can only use 10 sines. Should I equally space the frequencies inside this range? Or choose them at random?\n\n3) Now that I have my frequencies, what magnitudes should I assign these sines if I want to have a specific \"Gaussian\" distribution of my \"white noise\" signal values?\n\nHope this question doesn't cringe upon anybody that likes \"pure\" white noise!\n\n## 2 Answers\n\nPhase and amplitude of this sinusoids should be random, so you need Gaussian random number generator. If you don't have the random number generator then might want to think about implementing one, here is, I believe, the most popular algorithm: Box-Muller transform.\n\nDepending on your application and device, you might also want to use other noise source (i.e. Online generators, highly amplified signal from a probe).\n\n• While it's not wrong to use a gaussian distribution for cosine and sine amplitudes, it's not strictly necessary either. If the frequencies of the sinusoids are placed at random frequencies, then their time domain contributions add up like independent random variables and the central limit theorem gives a gaussian amplitude distribution no matter which magnitude distribution you use for the sinusoids. That is as long as the amplitudes are distributed isotropically in the complex plane. – Jazzmaniac Jun 14 '15 at 9:23\n\n1) Below. Anything above will be aliased below anyway.\n\n2) Equally spaced. White noise has constant power spectral density and I imagine this would be a better approximation than random.\n\n3) From Wikipedia:\n\nunder most types of discrete Fourier transform, such as FFT and Hartley, the transform W of w will be a Gaussian white noise vector, too; that is, its n Fourier coefficients will be independent Gaussian variables with zero mean and the same variance $\\sigma^2$.\n\nBased on that I'd recommend random distribution of magnitudes. I'd use a complex number with real and imaginary parts as separate random variables, then use absolute value of the complex number as the magnitude of the sinusoid and the argument as the phase.\n\n• Disclaimer: not really my area of expertise, so a better answer may be out there.\n• Equal spacing is not really recommended, because that will introduce a rather short period for the repetition of the noise signal. Instead, adding sinusoids with very small greatest common divisor will produce very long non repeating sequences. – Jazzmaniac Jun 14 '15 at 9:20" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9425731,"math_prob":0.87222046,"size":996,"snap":"2021-21-2021-25","text_gpt3_token_len":236,"char_repetition_ratio":0.13104838,"word_repetition_ratio":0.0,"special_character_ratio":0.23393574,"punctuation_ratio":0.10945274,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9834726,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-06-22T20:56:20Z\",\"WARC-Record-ID\":\"<urn:uuid:baaf8cd8-8bc7-4536-ae44-279b83032f3e>\",\"Content-Length\":\"174699\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:19d75733-9d37-4baf-937b-b1235edd5bf5>\",\"WARC-Concurrent-To\":\"<urn:uuid:e0ebf111-aa7e-4896-b9e7-0a91add51134>\",\"WARC-IP-Address\":\"151.101.65.69\",\"WARC-Target-URI\":\"https://dsp.stackexchange.com/questions/16470/a-very-rough-approximation-to-white-noise-with-sine-waves\",\"WARC-Payload-Digest\":\"sha1:IOSLPPTRMDQSXVE7C2KX4KUAUWR4EJ5G\",\"WARC-Block-Digest\":\"sha1:BDXSQTRYQH4L5OMYHYR3QBF5GYFWRHYE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-25/CC-MAIN-2021-25_segments_1623488519735.70_warc_CC-MAIN-20210622190124-20210622220124-00502.warc.gz\"}"}
https://brainmass.com/computer-science/data/pg4
[ "Explore BrainMass\nShare\n\n# Data\n\n### Hard Disk Access\n\nA certain hard disk has 480 cylinders, 16 tracks, and 32 sectors of 512 bytes each. It spins at 4800 revolutions per minute, and has an adjacent cylinder seek time of 80 msec, and a max seek time of 100 msec. Switching between tracks in the same cylinder is instantaneous. Use this information to answer the following 4 questions.\n\n### Functions of the Different Layers of the ISO-OSI\n\nBriefly, what are the functions different layers of the International Standards Organization-Open Systems Interconnection (ISO-OSI) model?\n\n### Edges and Graphs Cut Offs\n\nThe solution below got cut off. Please let me know what is the total solution: <b>problem:</b> The number of strongly connected components in a graph G is k. By how much can this number change if we add a new edge? <b>solution:</b> If we add an edge to a biconnected graph with k strongly connected components, then the\n\n### Edges and graphs\n\nThe number of strongly connected components in a graph G is k. By how much can this number change if we add a new edge?\n\n### UML notation solutions\n\n1. The package on the left contains the classes in a payroll system. The package on the right is a payroll tax subsystem. a. What technique would you use to integrate the tax subsystem into the payroll system? b. Show how you would solve the problem. c. Show what modifications you would make to the existing classes or what\n\n### transmission efficiency of the High-Speed Digital Transmission System\n\nSuppose I have a multiplexer that is connected to a high-speed digital transmission system that can transfer 1,536,000 information bits per second. How many standard voice channels is the high-speed transmission system capable of carrying and how do you figure this out? What is the transmission efficiency of t\n\n### Recurrence Running Time\n\nGive asymptotic upper and lower running time bounds for T(n) for each of the recurrences. Assume that T(n) is constant for n <= 2. Make bounds as tight as possible, and justify solutions. a) T(n) = 2*T(n/2) + n^3 b) T(n) = T(9n/10) + n c) T(n) = 16*T(n/4)+n^2 d) T(n) = 7*T(n/3) + n^2 e) T(n) = 7*T(n/2) + n^2\n\n### Excel S4-R1 Copy Worksheet\n\nExcel S4-R1 Copy the Week 2 worksheet, positioning the new sheet after Week 3. 2. Rename the Week2 (2) worksheet as Week 4. 3. Delete the Week 3 worksheet 4. Copy the Week 2 worksheet, positioning the new sheet between Week 2 and Week 4. 5. Rename the Week2 (2) worksheet as Week3. 6. Insert a new worksheet positioned bef\n\n### Inventory Units Purchase Reports\n\n1. Dana Hirsch, manager of The Waterfront Bistro, has asked you to review the Inventory Units Purchased report and modify it to make it more readable and to view as much data as possible in one window. 2. Make the following changes: a. Freeze panes so you can scroll the worksheet without losing the column and row headings.\n\n### Protocol should take into account the following situations: Messages\n\nDesign and describe an application-level protocol to be used between an automatic teller machine and a bank's centralized computer. Your protocol should allow a user's card and password to be verified, the account balance (which is maintained at the centralized computer) to be queried, and an account withdrawal to be made (that\n\n### Comp Sci\n\n1. Use Run-Length encoding to compress the following: 00110 00000 00000 10001 Note: Two different approaches to run length encoding were presented. You may use either approach for this problem. 2. Using front-end compression to reduce the data storage requirements for the following list. Uncompressed Compressed\n\n### Order of Complexity Proof\n\nProve: f(n) + g(n) = θ(f(n)) if g(n) = o(f(n))\n\n### Interchange Contents of Working Registers\n\nCreate a stack at 1000h. Use the stack to interchange the contents of all of the working registers. Exchange AX with DX, BX with CX, and DI with SI. Use unique data for each register to test the program.\n\n### IT System of Any Company\n\nCreate a chart that shows the breakdown of the overall (big picture) IT systems at a big (any) company or breakdown a particular aspect of the IT systems such as the network or the business applications systems.\n\n### Pure Aloha Question\n\nA group of N stations share a 56-kbps pure ALOHA channel. Each station outputs a 1000-bit frame on an average of once every 100 secs, even if the previous one has not yet been sent (stations are buffered). What is the maximum value of N?\n\n### Selective-Reject ARQ Systems\n\nConsider a selective-reject ARQ system with a window size of 3. a) Circle (or shade or bold) the sender window after frames 0 through 3 have been sent and ACK 2 has been received 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 b) Circle (or shade or bold) the sender windows after frames 4 through 6 have been transmitted, ACK 5 and N\n\n### Excel 3 questions\n\nPlease see attached excel sheet for div sheets. 1.In the Sales by Div sheet, only the Qtr subtotals should be displayed, Do not show the details. 2.In Totals & Averages sheet, please add average shown as belowPlease refer to word for questions and make correction to excel sheet. 3.In column C of the Div Awards sheet,\n\n### INTRODUCTION TO mANAGEMENT\n\nI LIKE THE HELP OF AN OTA PLEASE. The Fastgro Fertilizer Company distributes fertilizer to various lawn and garden shops. The company must base its quarterly production schedule on a forecast of how many tons of fertilizer will be demand from it. The company has gathered the following data for the past three years from its sale\n\n### Hand Held Video Game\n\nI need to design a control unit for a simple hand held video game in which a character on the display catches objects. I only need to show the transition diagram...NOT A CIRCUIT! The input to the control unit is a two-bit vector in which 00 means \"move left\", 01 means \"move right\", 10 means \"do not move\" and 11 means \"halt.\"\n\n### Adding five bit two's complement numbers\n\nI need to show the results of adding the following pairs of five-bit(i.e., one sign bit and four data bits) two's complement numbers and indicate whether or not overflow occurs for each case a. 10110 + 10111 = b. 11110 + 11101 = c. 11111 + 01111 = Thanks so much!" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9080509,"math_prob":0.84242564,"size":347,"snap":"2020-24-2020-29","text_gpt3_token_len":81,"char_repetition_ratio":0.11953353,"word_repetition_ratio":0.0,"special_character_ratio":0.25648415,"punctuation_ratio":0.114285715,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9530798,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-06-01T15:12:32Z\",\"WARC-Record-ID\":\"<urn:uuid:a5397b9e-3fd6-47a2-ba9f-1cd65f071a88>\",\"Content-Length\":\"50665\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:59a2269a-bea8-4f2a-99b3-c9d33aed8219>\",\"WARC-Concurrent-To\":\"<urn:uuid:79ccdeb2-6211-48d3-b2c1-b972cbfd09f2>\",\"WARC-IP-Address\":\"65.39.198.123\",\"WARC-Target-URI\":\"https://brainmass.com/computer-science/data/pg4\",\"WARC-Payload-Digest\":\"sha1:WLCQQW5ZQMO7ZRLOWZZIID4D7LNVRPVC\",\"WARC-Block-Digest\":\"sha1:3OOWHEXPHSQZKANULM4DSBNVFTVUBPHO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-24/CC-MAIN-2020-24_segments_1590347419056.73_warc_CC-MAIN-20200601145025-20200601175025-00123.warc.gz\"}"}
https://www.degruyter.com/view/j/math.2016.14.issue-1/math-2016-0064/math-2016-0064.xml?format=INT
[ "Show Summary Details\nMore options …", null, "# Open Mathematics\n\n### formerly Central European Journal of Mathematics\n\nEditor-in-Chief: Gianazza, Ugo / Vespri, Vincenzo\n\nIMPACT FACTOR 2018: 0.726\n5-year IMPACT FACTOR: 0.869\n\nCiteScore 2018: 0.90\n\nSCImago Journal Rank (SJR) 2018: 0.323\nSource Normalized Impact per Paper (SNIP) 2018: 0.821\n\nMathematical Citation Quotient (MCQ) 2018: 0.34\n\nICV 2017: 161.82\n\nOpen Access\nOnline\nISSN\n2391-5455\nSee all formats and pricing\nMore options …\nVolume 14, Issue 1\n\n# Existence theory for sequential fractional differential equations with anti-periodic type boundary conditions\n\nMohammed H. Aqlan\n• Nonlinear Analysis and Applied Mathematics (NAAM)-Research Group, Department of Mathematics, Faculty of Science, King Abdulaziz University, P.O. Box 80203, Jeddah 21589, Arabia\n• Other articles by this author:\n• De Gruyter OnlineGoogle Scholar\n/ Ahmed Alsaedi\n• Nonlinear Analysis and Applied Mathematics (NAAM)-Research Group, Department of Mathematics, Faculty of Science, King Abdulaziz University, P.O. Box 80203, Jeddah 21589, Arabia\n• Other articles by this author:\n• De Gruyter OnlineGoogle Scholar\n• Corresponding author\n• Nonlinear Analysis and Applied Mathematics (NAAM)-Research Group, Department of Mathematics, Faculty of Science, King Abdulaziz University, P.O. Box 80203, Jeddah 21589, Arabia\n• Email\n• Other articles by this author:\n• De Gruyter OnlineGoogle Scholar\n/ Juan J. Nieto\n• Analisis Matematico, Facultad de Matematicas, University of Santiago de Compostela, Santiago de Compostela, 15782, Spain\n• Other articles by this author:\n• De Gruyter OnlineGoogle Scholar\nPublished Online: 2016-10-16 | DOI: https://doi.org/10.1515/math-2016-0064\n\n## Abstract\n\nWe develop the existence theory for sequential fractional differential equations involving Liouville-Caputo fractional derivative equipped with anti-periodic type (non-separated) and nonlocal integral boundary conditions. Several existence criteria depending on the nonlinearity involved in the problems are presented by means of a variety of tools of the fixed point theory. The applicability of the results is shown with the aid of examples. Our results are not only new in the given configuration but also yield some new special cases for specific choices of parameters involved in the problems.\n\nMSC 2010: 34A08; 34B10; 34B15\n\n## 1 Introduction\n\nRecently, there has been an utterly great interest in developing theoretical analysis for boundary value problems of nonlinear fractional-order differential equations supplemented with a variety of boundary conditions. It has been mainly due to nonlocal nature of fractional-order differential operators which take into account memory and hereditary properties of some important and useful materials and processes. Fractional calculus has played a key role in improving the mathematical modelling of several phenomena occurring in engineering and scientific disciplines, such as blood flow problems, control theory, aerodynamics, nonlinear oscillation of earthquake, the fluid-dynamic traffic model, polymer rheology, regular variation in thermodynamics etc. For more details and explanation, see, for instance . Some recent results on fractional-order boundary value problem can be found in a series of papers and the references cited therein. Sequential fractional differential equations have also received considerable attention, for instance see .\n\nAnti-periodic boundary conditions are found to be quite significant and important in the mathematical modeling of certain physical processes and phenomena, for example trigonometric polynomials in the study of interpolation problems, wavelets, physics etc. For more details, see and the references cited therein. For some recent works on fractional-order anti-periodic boundary value problems, we refer the reader to . However, the study of sequential fractional differential equations equipped with anti-periodic boundary conditions is yet to be initiated.\n\nIn this paper, we study new boundary value problems of Liouville-Caputo type sequential fractional differential equation: $(cDα+k cDα−1)u(t)=f(t, u(t)),1<α≤2, 00,$(1)\n\nsubject to anti-periodic type (non-separated) boundary conditions of the form: $α1u(0)+ρ1u(T)=β1, α2u′(0)+ρ2u′(T)=β2,$(2)\n\nand anti-periodic type (non-separated) nonlocal integral boundary conditions: $α1u(0)+ρ1u(T)=λ1∫0nu(s)ds+λ2, α2u′(0)+ρ2u′(T)=μ1∫ξTu(s)ds+μ2,$(3)\n\nwhere c Dα denotes the Liouville-Caputo fractional derivative of order α, k ∈ ℝ+, 0 < η < ξ < T, α1, α2, ρ1, ρ2, β1, β2, λ1, λ2, μ1μ2 ∈ ℝ with α1 + ρ1 ≠ 0, α2 + ρ2e-kT ≠ 0 and f : [0, T] × ℝ → ℝ is a given continuous function. Instead of writing the so-called “Caputo” derivative, we will call it “Liouville-Caputo” derivative as it was introduced by Liouville many decades ago.\n\nThe rest of the paper is organized as follows. In Section 2, we recall some basic concepts of fractional calculus and obtain the integral solution for the linear variants of the given problems. Section 3 contains the existence results for problem (1)-(2) obtained by applying Schaefer’s fixed point theorem, Leray-Schauder’s nonlinear alternative, Leray-Schauder’s degree theory, Banach’s contraction mapping principle and Krasnoselskii’s fixed point theorem. In Section 4, we provide the outline for the existence results of problem (1)-(3).\n\n## 2 Preliminaries and auxiliary results\n\nThis section is devoted to some basic definitions of fractional calculus [1, 2] and auxiliary lemmas.\n\nThe fractional integral of order q with the lower limit zero for a function f is defined as $Iqf(t)=1Γ(q)∫0tf(s)(t−s)1−qds, t > 0, q > 0,$\n\nprovided the right hand-side is point-wise defined on [0,∞), where $\\text{Γ}\\left(\\cdot \\right)$ is the gamma function, which is defined by $\\text{Γ}\\left(q\\right)={\\int }_{0}^{\\infty }{t}^{q-1}{e}^{-t}dt$.\n\nThe Riemann-Liouville fractional derivative of order q > 0, n — 1 < q < n, nN, is defined as $D0+qf(t)=1Γ(n−q)(ddt)n∫0t(t−s)n−q−1f(s)ds,$\n\nwhere the function f(t) has absolutely continuous derivative up to order (n — 1).\n\nThe Liouville-Caputo derivative of order q for a function f : [0,∞) → ℝ can be written as $cDqf(t)=Dq(f(t)−∑k=0n−1tkk!f(k)(0)), t>0, n−1\n\nIf $f\\left(t\\right)\\in {C}^{n}\\left[0,\\infty \\right)$ then $cDqf(t)=1Γ(n−q)∫0tf(n)(s)(t−s)q+1−nds=In−qf(n)(t), t>0, n−1\n\nTo define the fixed point problems associated with problems (1)-(2) and (1)-(3), we consider the following lemmas dealing with the linear variant of equation (1).\n\nLet hC([0, T], ℝ). Then the problem consisting of the equation $(cDα+kcDα−1)u(t)=h(t)), 1<α≤2, 00,$(4)\n\nand the boundary conditions (2) is equivalent to the integral equation $u(t)=v1(t)+∫0te−k(t−s)(∫0s(s−x)α−2Γ(α−1)h(x)dx)ds+v2(t)∫0T(T−s)α−2Γ(α−1)h(s)ds +v3(t)∫0Te−k(T−s)(∫0s(s−x)α−2Γ(α−1)h(x)dx)ds,$(5)\n\nwhere $v1(t)=β1(α1+ρ1)+((α1+ρ1e−kT)−(α1+ρ1)e−kT)β2k(α1+ρ1)(α2+ρ2e−kT), v2(t)=ρ2((α1+ρ1)e−kT−(α1+ρ1e−kT))k(α1+ρ1)(α2+ρ2e−kT), v3(t)=α1ρ2−α2ρ1−ρ2(α1+ρ1)e−kt(α1+ρ1)(α2+ρ2e−kT).$(6)\n\nAs argued in , the general solution of (4) can be written as $u(t)=A0e−kt+A1+∫0te−k(t−s)Iα−1h(s)ds,$(7)\n\nwhere A0 and A1 are arbitrary constants and $Iα−1h(t)=∫0t(t−x)α−2Γ(α−1)h(x)dx.$\n\nDifferentiating (7) with respect to t, we obtain $u′(t)=−kA0e−kt−k∫0te−k(t−s)Iα−1h(s)ds+Iα−1h(t).$(8)\n\nUsing the boundary conditions (2) in (7) and (8), we get $A0(α1+ρ1e−kT)+A1(α1+ρ1)+ρ1∫0Te−k(T−s)Iα−1h(s)ds=β1,$(9)$−kA0(α2+ρ2e−kT)−kρ2∫0Te−k(T−s)Iα−1h(s)ds +ρ2Iα−1h(T)=β2.$(10)\n\nSolving the system (9) and (10) for A0 and A1 we get $A0=−β2k(α2+ρ2e−kT)+ρ2k(α2+ρ2e−kT){Iα−1h(T)−k∫0Te−k(T−s)(∫0s(s−x)α−2Γ(α−1)h(x)dx)ds},A1=β1(α1+ρ1)+(α1+ρ1e−kT)β2k(α1+ρ1)(α2+ρ2e−kT) −ρ2(α1+ρ1e−kT)k(α1+ρ1)(α2+ρ2e−kT)∫0T(T−s)α−2Γ(α−1)h(s) +ρ2α1−ρ1α2(α1+ρ1)(α2+ρ2e−kT)∫0Te−k(T−s)(∫0s(s−x)α−2Γ(α−1)h(x)dx)ds.$\n\nSubstituting the values of A0 and A1 in (7) yields the solution (5). Conversely, by direct computation, it can be established that (5) satisfies the equation (4) and boundary conditions (2). This completes the proof.\n\nLet hC([0, T], ℝ). Then the problem consisting of linear equation (4) equipped with boundary conditions (3) is equivalent to the integral equation $u(t)=B1(t){λ1∫0n(∫0se−k(s−x)Iα−1h(x)dx)ds−ρ1∫0Te−k(T−s)Iα−1h(s)ds+λ2} +B2(t){μ1∫ξT(∫0se−k(s−x)Iα−1h(x)dx)ds+kρ2∫0Te−k(T−s)Iα−1h(s)ds −ρ2Iα−1h(T)+μ2}+∫0te−k(t−s)Iα−1h(s)ds,$(11)\n\nwhere $B1(t)=(ϵ2e−kt+δ2)Δ, B2(t)=(ϵ1e−kt−δ1)Δ, Δ=δ1ϵ2+δ2ϵ1, δ1=α1+ρ1e−kT+λ1k(e−kn−1), ϵ1=(α1+ρ1−λ1η), δ2=−kα2−kρ2e−kT+μ1k(e−kT−e−kξ), ϵ2=μ1(T−ξ).$(12)\n\nSince the proof is similar to that of Lemma 2.5, we omit it.\n\n## 3 Existence results for the problem (1)-(2)\n\nIn view of Lemma 2.5, we introduce a fixed point problem associated with the problem (1)-(2) as follows: $u=Hu,$(13)\n\nwhere the operator $\\mathcal{H}:\\mathcal{E}\\to \\mathcal{E}$ is $(Hu)(t)=v1(t)+∫0te−k(t−s)∫0s(s−x)α−2Γ(α−1)f(x, u(x))dxds+v2(t)∫0T(T−s)α−2Γ(α−1)f(s, u(s))ds +v3(t)∫0Te−k(T−s)∫0s(s−x)α−2Γ(α−1)f(x, u(x))dxds.$(14)\n\nHere $\\mathcal{E}=C\\left(\\left[0,T\\right],ℝ\\right)$ denotes the Banach space of all continuous functions from [0, T] → ℝ endowed with the norm defined by $‖u‖=\\mathrm{sup}\\left\\{|u\\left(t\\right)|,t\\in \\left[0,T\\right]\\right\\}$.\n\nObserve that that problem (1)-(2) has solutions if the operator equation (13) has fixed points. For computational convenience, we set the notation: $Q=supt∈[0,T]{1−e−ktkΓ(α)t1−α+|v2(t)|Γ(α)T1−α+|v3(t)|(1−e−kT)kΓ(α)T1−α}.$(15)\n\nNow we are in a position to present our main results for the problem (1)-(2). The first one deals with Schaefer’s fixed point theorem .\n\nLet X be a Banach space. Assume that $\\mathcal{T}:X\\to X$ is a completely continuous operator and the set $Y=\\left\\{u\\in X|u=\\mu \\mathcal{T}u,0<\\mu <1\\right\\}$ is bounded. Then $\\mathcal{T}$ has a fixed point in X.\n\nAssume that there exists a positive constant L1 such that $|f\\left(t,u\\left(t\\right)\\right)|\\le {L}_{1}$ for $t\\in \\left[0,T\\right],u\\in ℝ$. Then the boundary value problem (1)-(2) has at least one solution on [0, T].\n\nIn the first step, we show that the operator $\\mathcal{H}$ defined by (14) is completely continuous. Observe that continuity of $\\mathcal{H}$ follows from the continuity of f. For a positive constant r, let ${B}_{r}=\\left\\{u\\in \\mathcal{E}:‖u‖\\le r\\right\\}$ be a bounded ball in $\\mathcal{E}$. Then for t ∈ [0, T], we have $|(Hu)(t)|≤|v1(t)|+∫0te−k(t−s)(∫0s(s−x)α−2Γ(α−1)|f(x, u(x))|dx)ds+|v2(t)|∫0T(T−s)α−2Γ(α−1)|f(s, u(s))|ds +|v3(t)|∫0Te−k(T−s)(∫0s(s−x)α−2Γ(α−1)|f(x, u(x))|dx)ds. ≤|v1(t)|+L1{∫0te−k(t−s)(∫0s(s−x)α−2Γ(α−1)dx)ds+|v2(t)|∫0T(T−s)α−2Γ(α−1)ds +|v3(t)|∫0Te−k(T−s)(∫0s(s−x)α−2Γ(α−1)dx)ds}≤L1Q+‖v1‖,$\n\nwhich consequently implies that $(Hu)≤L1Q+v1,$\n\nwhere Q is defined by (15).\n\nNext we show that the operator $\\mathcal{H}$ maps bounded sets into equicontinuous sets of $\\mathcal{E}$. Let τ1, τ2 ∈ [0, T] with τ1 < τ2 and uBr. Then we have $(Hu)(τ2)−(Hu)(τ1)≤v1(τ2)−v1(τ1) +L1e−kτ2−e−kτ1∫0τ1eks∫0s(s−x)α−2Γ(α−1)dxds+∫τ1τ2e−k(τ2−s)∫0s(s−x)α−2Γ(α−1)dxds +v2(τ2)−v2(τ1)∫0T(T−s)α−2Γ(α−1)ds+v3(τ2)−v3(τ1)∫0Te−k(T−s)∫0s(s−x)α−2Γ(α−1)dxds.$\n\nAs τ1τ2 → 0, the right-hand side of the above inequality tends to zero independently of uBr. Therefore, by the Arzelá-Ascoli theorem, the operator $\\mathcal{H}:\\mathcal{E}\\to \\mathcal{E}$ is completely continuous.\n\nFinally, we consider the set $V=\\left\\{u\\in \\mathcal{E}:u=\\mu \\mathcal{H}u,\\text{\\hspace{0.17em}}0<\\mu <1\\right\\}$ and show that V is bounded. For uV and t ∈ [0, T], we get $‖u‖≤L1Q+‖v1‖.$\n\nTherefore, V is bounded. Hence, by Lemma 3.1, the problem (1)-(2) has at least one solution on [0, T].\n\nOur next existence result is based on Leray-Schauder’s nonlinear alternative.\n\n(Nonlinear alternative for single valued maps ). Let E be a Banach space, C a closed, convex subset of E, U an open subset of C and 0 ∈ U. Suppose that $\\mathcal{A}:\\overline{U}\\to C$ is a continuous, compact (that is, $\\mathcal{A}\\left(\\overline{U}\\right)$ is a relatively compact subset of C ) map. Then either\n\n• (i)\n\n$\\mathcal{A}$ has a fixed point in $\\overline{U}$, or\n\n• (ii)\n\nthere is a x ∈ ∂U (the boundary of U in C) and λ ∈ (0, 1) with $x=\\text{λ}\\mathcal{A}\\left(x\\right)$.\n\nAssume that\n\n• (E1)\n\nthere exists a continuous nondecreasing function $\\chi :\\left[0,\\infty \\right)\\to \\left(0,\\infty \\right)$ and a function pC([0, T], ℝ+) such that $|f(t, u)|≤p(t)χ(‖u‖) for each (t, u)∈[0,T]×ℝ;$\n\n• (E2)\n\nthere exists a constant N > 0 such that $Nχ(N)‖p‖Q+‖v1‖>1,$(16)\n\nwhere Q is given by (15).\n\nThen the boundary value problem (1)-(2) has at least one solution on [0, T].\n\nWe complete the proof in different steps. We first show that the operator $\\mathcal{H}$ defined by (14) maps bounded sets (balls) into bounded sets in $\\mathcal{E}$. For a positive constant r, let ${B}_{r}=\\left\\{u\\in \\mathcal{E}:‖u‖\\le r\\right\\}$ be a bounded ball in $\\mathcal{E}$. Then, for t ∈ [0, T], we have $|(Hu)(t)|≤|v1(t)|+χ(‖u‖)‖p‖{∫0te−k(t−s)(∫0s(s−x)α−2Γ(α−1)dx)ds+|v2(t)|∫0T(T−s)α−2Γ(α−1)ds +|v3(t)|∫0Te−k(T−s)(∫0s(s−x)α−2Γ(α−1)dx)ds}≤‖v1‖+χ(‖u‖)‖p‖Q,$\n\nwhich implies that $‖\\left(\\mathcal{H}u\\right)‖\\le ‖{v}_{1}‖+\\chi \\left(r\\right)‖p‖Q$.\n\nIn the second step, we establish that the operator $\\mathcal{H}$ maps bounded sets into equicontinuous sets of $\\mathcal{E}$. As in the proof of the previous result, for τ1, τ2 ∈ [0, T] with τ1 < τ2 and uBr, we can have $(Hu)(τ2)−(Hu)(τ1)→0 as τ2−τ1→0,$\n\nindependently of uBr. Therefore, it follows by the Arzela-Ascoli theorem that the operator $\\mathcal{H}:\\mathcal{E}\\to \\mathcal{E}$ is completely continuous.\n\nLet u be a solution. Then, for t ∈ [0, T], we have that $‖u‖≤χ(‖u‖)‖p‖Q+‖v1‖.$\n\nIn view of (E2), there exists N such that $‖u‖\\ne N$. Let us set $u={u∈E:‖u‖\n\nWe see that the operator $\\mathcal{H}:\\overline{\\mathcal{U}}\\to \\mathcal{E}$ is continuous and completely continuous. From the choice of $\\mathcal{U}$, there is no $u\\in \\partial \\mathcal{U}$ such that $u=\\theta \\mathcal{H}u$ for some θ ∈ (0,1). Consequently, by the nonlinear alternative of Leray-Schauder type (Lemma 3.3), we deduce that $\\mathcal{H}$ has a fixed point $u\\in \\overline{\\mathcal{U}}$ which is a solution of the problem (1)-(2). This completes the proof.\n\nThe next existence result is based on Leray-Schauder’s degree theory .\n\nLet f : [0, T] × ℝ → ℝ be a continuous function. Suppose that (E3) there exist constants 0 ≤ ω < Q-1, and M1 > 0 such that $|f(t, u)|≤ω|u|+M1 for all (t, u)∈[0,T]×ℝ,$\n\nwhere Q is given by (15).\n\nThen the boundary value problem (1)-(2) has at least one solution on [0, T].\n\nWe have to show the existence of at least one solution $u\\in \\mathcal{E}$ satisfying the fixed point problem $u=H,$(17)\n\nwhere the operator $\\mathcal{H}:\\mathcal{E}\\to \\mathcal{E}$ is defined by (14). Introduce a ball ${B}_{R}\\subset \\mathcal{E}$ as $BR={u∈E:‖u‖\n\nwith a constant radius R > 0. Hence, we will show that the operator $\\mathcal{H}:{\\overline{B}}_{R}\\to \\mathcal{E}$ satisfies the condition $u≠θHu, ∀u∈∂BR, ∀θ∈[0,1].$(18)\n\nSet $V(θ,u)=θHu, u∈E, θ∈[0,1].$\n\nAs argued in Theorem 3.2, the operator $\\mathcal{H}$ is continuous, uniformly bounded and equicontinuous. Thus, by the Arzelá-Ascoli theorem, a continuous map hθ defined by ${h}_{\\theta }\\left(u\\right)=u-V\\left(\\theta ,u\\right)=u-\\theta \\mathcal{H}u$ is completely continuous. If (18) holds, then the following Leray-Schauder degrees are well defined and by the homotopy invariance of topological degree, it follows that $deg(hθ,BR,0)=deg(I−θH,BR,0)=deg(h1,BR,0) =deg(h0,BR,0)=deg(I,BR,0)=1≠0, 0∈BR,$\n\nwhere I denotes the unit operator. By the nonzero property of Leray-Schauder degree, we have ${h}_{1}\\left(u\\right)=u-\\mathcal{H}u=0$ for at least one uBR. Let us assume that $u=\\theta \\mathcal{H}u$ for some θ ∈ [0, 1] and for all t ∈ [0, T]. Then, using the assumption (E3), it is easy to find that $|u(t)|=|θHu(t)|≤(ω‖u‖+M1)Q+‖v1‖,$\n\nwhich implies that $‖u‖≤M1Q+‖v1‖1−ωQ$\n\nIf $R=\\frac{{M}_{1}Q+‖{v}_{1}‖}{1-\\omega Q}+1$ the inequality (18) holds. This completes the proof.\n\nNext we show the existence of a unique solution of the problem (1)-(2) by applying Banach’s contraction mapping principle.\n\nAssume that f : [0, T] × ℝ → ℝ is a continuous function satisfying the Lipschitz condition: (E4) there exists a positive number ℓ such that $|f\\left(t,u\\right)-f\\left(t,\\upsilon \\right)|\\le \\ell |u-\\upsilon |,\\forall t\\in \\left[0,\\text{\\hspace{0.17em}}T\\right],\\text{\\hspace{0.17em}}u,\\text{\\hspace{0.17em}}\\upsilon \\in ℝ$.\n\nThen the boundary value problem (1)-(2) has a unique solution on [0, T] if Q < 1/, where Q is given by (15).\n\nConsider a set ${B}_{r}=\\left\\{u\\in \\mathcal{E}:‖u‖\\le r\\right\\}$ with $r\\ge \\frac{QM+‖{v}_{1}‖}{1-\\ell Q}$, where $M={\\mathrm{sup}}_{t\\in \\left[0,T\\right]}|f\\left(t,0\\right)|$ and Q is given by (15). In the first step, we show that $\\mathcal{H}{B}_{r}\\subset {B}_{r}$, where the operator $\\mathcal{H}$ is defined by (14). For any uBr, t ∈ [0, T], observe that $|f(t, u(t))|=|f(t, u(t))−f(t, 0)+f(t, 0)|≤|f(t, u(t))−f(t, 0)|+|f(t, 0)|≤ℓ‖u‖+M≤ℓr+M,$\n\nwhere we have used the assumption (E4). Then, for uBr, we obtain $‖(Hu)‖≤supt∈[0,T]{|v1(t)+|∫0te−k(t−s)(∫0s(s−x)α−2Γ(α−1)|f(x, u(x))|dx)ds+|v2(t)|∫0T(T−s)α−2Γ(α−1)|f(s, u(s))|ds+|v3(t)|∫0Te−k(T−s)(∫0s(s−x)α−2Γ(α−1)|f(x, u(x))|dx)ds.}≤(ℓr+M)supt∈[0,T]{∫0te−k(t−s)(∫0s(s−x)α−2Γ(α−1)dx)ds+|v2(t)|∫0T(T−s)α−2Γ(α−1)ds+|v3(t)|∫0Te−k(T−s)(∫0s(s−x)α−2Γ(α−1)dx)ds}+‖v1‖≤(ℓr+M)Q+‖v1‖≤r,$\n\nwhich implies that $\\mathcal{H}u\\in {B}_{r}$. Thus $\\mathcal{H}{B}_{r}\\subset {B}_{r}$. Next we show that the operator $\\mathcal{H}$ is a contraction. Using the assumption (E4) and (15), we get $‖Hu−Hv‖≤supt∈[0,T]{∫0te−k(t−s)(∫0s(s−x)α−2Γ(α−1)|f(x,u(x))−f(x,v(x))|dx)ds+|v2(t)|∫0T(T−s)α−2Γ(α−1)|f(s,u(s))−f(s,v(s))|ds+|v3(t)|∫0Te−k(T−s)(∫0s(s−x)α−2Γ(α−1)|f(x,u(x))−f(x,v(x))|dx)ds}≤ℓ‖u−v‖supt∈[0,T]{∫0te−k(t−s)(∫0s(s−x)α−2Γ(α−1)dx)ds+|v2(t)|∫0T(T−s)α−2Γ(α−1)ds+|v3(t)|∫0Te−k(T−s)(∫0s(s−x)α−2Γ(α−1)dx)ds}≤ℓQ‖u−v‖.$\n\nIn view of the assumption: Q < 1/ℓ, it follows that the operator $\\mathcal{H}$ is a contraction. Thus, by Banach’s contraction mapping principle, we deduce that the operator $\\mathcal{H}$ has a fixed point, which in turn implies that there exists a unique solution for the problem (1)-(2) on [0, T].\n\nIn the following theorem, we show the existence of solutions for the problem (1)-(2) by applying Krasnoselskii’s fixed point theorem.\n\n(Krasnoselskii’s fixed point theorem ). Let Y be a closed bounded, convex and nonempty subset of a Banach space X. Let B1, B2 be the operators such that (i) B1y1 + B2y2 Y whenever y1,y2 Y; (ii) B1 is compact and continuous and (iii) B2 is a contraction mapping. Then there exists z Y such that z = B1z + B2z.\n\nLet f : [0,T] × ℝ → ℝ be a continuous function satisfying the condition (E4) and that $|f\\left(t,x\\right)|\\le g\\left(t\\right)$ (t,x) ∈ [0, T] × ℝ with gC([0, T], ℝ+) and ${\\mathrm{sup}}_{t\\in \\left[0,T\\right]}|g\\left(t\\right)|=‖g‖$ . In addition, it is assumed that ${Q}_{1}<1/\\ell$, where$Q1=supt∈[0,T]{|v2(t)Γ(α)T1−α+|v3(t)|(1−e−kT)kΓ(α)T1−α}.$(19)\n\nThen problem (1)-(2) has at least one solution on [0, T].\n\nConsider ${B}_{a}=\\left\\{u\\in \\mathcal{E}:‖u‖\\le a\\right\\}$, where $a\\ge Q‖g‖+‖{v}_{1}‖$ with Q given by (15). We define the operators ${\\mathcal{H}}_{1}$ and ${\\mathcal{H}}_{2}$ on Ba as$(H1u)(t)=∫0te−k(t−s)(∫0s(s−x)α−2Γ(α−1)f(x, u(x))dx)ds(H2u)(t)=v1(t)+v2(t)∫0T(T−s)α−2Γ(α−1)f(s, u(s))ds +v3(t)∫0Te−k(T−s)(∫0s(s−x)α−2Γ(α−1)f(x, u(x))dx)ds.$\n\nFor u, υBa, it is easy to verify that $‖{\\mathcal{H}}_{1}u+{\\mathcal{H}}_{2}\\upsilon ‖\\le Q‖g‖+‖{v}_{1}‖$, where Q is given by (15). Thus, ${\\mathcal{H}}_{1}u+{\\mathcal{H}}_{2}\\upsilon \\in {B}_{a}$ . Using the assumption (E4) and (19), we can get $‖{\\mathcal{H}}_{1}u+{\\mathcal{H}}_{2}\\upsilon ‖\\le \\ell {Q}_{1}‖u-\\upsilon ‖$, which implies that ${\\mathcal{H}}_{2}$ is a contraction in view of the given condition: ${Q}_{1}<1/\\ell$.\n\nNotice that continuity of f implies that the operator ${\\mathcal{H}}_{1}$ is continuous. Also, ${\\mathcal{H}}_{1}$ is uniformly bounded on Ba as$‖H1u‖≤(1−e−kT)Tα−1‖g‖kΓ(α).$\n\nNext, it will be shown that the operator ${\\mathcal{H}}_{1}$ is compact. Fixing ${\\mathrm{sup}}_{\\left(t,u\\right)\\in \\left[0,T\\right]×{B}_{a}}|f\\left(t,u\\right)|={f}_{a}$ and for t1, t2 ∈ [0, T] (t1 < t2), consider$‖(H1u)(t2)−(H1u)(t1)‖≤fa(|e−kt2−e−kt1|∫0t1eks(∫0s(s−x)α−2Γ(α−1)dx)ds+∫t1t2e−k(t2−s)(∫0s(s−x)α−2Γ(α−1)dx)ds)→0 as t2−t1→0,$\n\nindependent of u. This implies that ${\\mathcal{H}}_{1}$ is relatively compact on Ba. Hence, by the Arzelá-Ascoli Theorem, the operator ${\\mathcal{H}}_{1}$ is compact on Ba. Thus all the assumptions of Lemma (3.7) are satisfied. In consequence, by the conclusion of Lemma (3.7), the problem (1)-(2) has at least one solution on [0, T].\n\nConsider the following anti-periodic fractional boundary value problem:${(cD3/2+1.5cD1/2)u(t)=f(t,u(t)), t∈[0,2],1.25u(0)+4u(2)=−1, 0.5u′(0)−2u′(2)=2.5.$(20)\n\nHere T = 2, k = 1.5, α1 = 1.25, ρ1 = 4, β1 = —1, α2 = 0.5, ρ2 = —2, β2 = 2.5. With the given values, we find that Q ≈ 7.742915 (Q is given by (15)).\n\n(a) Let$f(t,u)=e−u2(cos2(3u+2)t2+9+tsint1+u2+2t+3).$(21)\n\nClearly $|f\\left(t,u\\left(t\\right)\\right)|\\le 3={L}_{1}$ for all t ∈ [0, 2], u ∈ ℝ. Thus, by Theorem 3.2, the problem (20) with f(t,u) given by (21) has at least one solution on [0, 2].\n\n(b) Letting$f(t,u)=e−t27(|u|31+|u|3+|u|1+|u|+1t+1),$(22)\n\nwe have $|f\\left(t,u\\right)|\\le {e}^{-t}/9=p\\left(t\\right)\\chi \\left(‖u‖\\right)$ . Selecting $\\chi \\left(‖u‖\\right)=1$ and $p\\left(t\\right)={e}^{-t}/9\\left(‖p‖=1/9\\right)$, we find that the assumption (E2) holds true for N > 4.064141. As all the conditions of Theorem 3.4 are satisfied, there exists at least one solution of the problem (20) with f(t, u) given by (22) on [0, 2].\n\n(c) Let us take$f(t,u)=1t2+100sinu+1t+2.$(23)\n\nThen $|f\\left(t,u\\right)|\\le \\left(1/10\\right)u+1/2$ implies that ω = 1/10, M1 = 1/2. Clearly ω < 1/Q(Q ≈ 7.742915). In consequence, the conclusion of Theorem 3.5 applies and the problem (20) with f(t, u) given by (23) has a solution on [0, T].\n\n(d) Let us choose$f(t,u)=110tan−1u(t)+cost.$(24)\n\nClearly $\\ell =1/10$ as $|f\\left(t,u\\right)-f\\left(t,\\upsilon \\right)|\\le \\frac{1}{10}|u-\\upsilon |$ and $\\ell Q\\approx 0.774292<1$ . Thus all the conditions of Theorem 3.6 are satisfied. Hence we deduce by the conclusion of Theorem 3.6 that there exists a unique solution for the problem (20) with f(t, u) given by (24).\n\nFor the applicability of Theorem 3.8, we find that $|f\\left(t,u\\right)|\\le g\\left(t\\right)=\\pi /20+\\mathrm{cos}t$ with $‖g‖=\\left(20+\\pi \\right)/20$ and Q1 ≈ 6.732035 (Q1 is given by (19)). Obviously $\\ell {Q}_{1}\\approx 0.673203<1$ . Thus all the conditions of Theorem 3.8 are satisfied. Hence the conclusion of Theorem 3.8 implies that the problem (20) with f(t, u) given by (24) has at least one solution on [0, 2].\n\nBy fixing the parameters involved in the boundary conditions (2), we can obtain some new special results for different problems arising from the problem (1)-(2). For instance, for α1 = α2 = ρ1 = ρ2 = 1, β1 = β2 = 0, we obtain the existence results for sequential fractional differential equation (1) with anti-periodic boundary condition: u(0) + u(T) = 0, u′(0) + u′(T) = 0. Our results correspond to the ones obtα1ned in for u(0) = a, u′(0) = u′(1) by taking α1 = 1 = α2, ρ1 = 0, ρ2 = —1, β1 = a, β2 = 0.\n\n## 4 Existence results for the problem (1)-(3)\n\nIn this section, we present some existence results for the problem (1)-(3). We omit the proofs as the method of proof is similar to the one employed in the previous section. First of all, by Lemma 2.6, we define a fixed point operator $\\mathcal{G}:\\mathcal{E}\\to \\mathcal{E}$ associated with the problem (1)-(3) as $(Gu)(t)=B1(t){λ1∫0η(∫0se−k(s−x)Iα−1h(x)dx)ds−ρ1∫0Te−k(T−s)Iα−1h(s)ds+λ2}+B2(t){μ1∫ξT(∫0se−k(s−x)Iα−1h(x)dx)ds+kρ2∫0Te−k(T−s)Iα−1h(s)ds−ρ2Iα−1h(T)+μ2}+∫0te−k(t−s)Iα−1h(s)ds$(25)\n\nwhere B1(t) and B2(t) are given by (12).\n\nUsing the operator (25) and the method of proof for the results obtained in the last section, we can establish the following results for the problem (1)-(3).\n\nLet f : [0,T] × ℝ → ℝ be a continuous function satisfying the assumption (E4). Then the boundary value problem (1)-(3) has a unique solution on [0, T] if $\\overline{Q}<1/\\ell$, where$Q¯=supt∈[0,T]{|B1(t)[λ1kΓ(α)(ηαα+ηα−1(e−kη−1)k)−ρ1Tα−1(1−e−kT)kΓ(α)]|+|B2(t)[μ1kΓ(α)(Tα−ξαα+Tα−1(e−kT−e−kξ)k)−ρ2Tα−1Γ(α)]|+(1−e−kt)tα−1kΓ(α)}.$(26)\n\nLet f : [0,T] × ℝ → ℝ be a continuous functions satisfying the condition (E4) and that $|f\\left(t,x\\right)|\\le \\overline{g}\\left(t\\right)$, $\\forall \\left(t,x\\right)\\in \\left[0,T\\right]×ℝ$ with $\\overline{g}\\in C\\left(\\left[0,T\\right],{ℝ}^{+}\\right)$ .In addition, it is assumed that $\\overline{Q}<1/\\ell$, where$Q¯1=supt∈[0,T]{|B1(t)[λ1kΓ(α)(ηαα+ηα−1(e−kη−1)k)−ρ1Tα−1(1−e−kT)kΓ(α)]|+|B2(t)[μ1kΓ(α)(Tα−ξαα+Tα−1(e−kT−e−kξ)k)−ρ2Tα−1Γ(α)]|}.$(27)\n\nThen problem (1)-(3) has at least one solution on [0,T].\n\nLet f : [0,T] × ℝ → ℝ be a jointly continuous function. Assume that (E5) there exists a continuous nondecreasing function ψ : [0,) → (0,) and a function φ ∈ C([0, T], ℝ+) such that$|f(t,u)|≤φ(t)ψ(‖u‖) for each (t,u)∈[0,T]×ℝ;$\n\n(E6) there exists a constant N1 > 0 such that$N1ψ(N1)‖φ‖Q¯+Q^>1,$(28)\n\nwhere $\\overline{Q}$ is given by (26),$Q^=supt∈[0,T]{|λ2B1(t)+μ2B2(t)|}.$(29)\n\nThen the boundary value problem (1)-(3) has at least one solution on [0,T].\n\nLet f : [0,T] × ℝ → ℝ be a continuous function. Suppose that (E7) there exist constants $0\\le \\omega <1/\\overline{Q}$, and M2 > 0 such that$|f(t,u)|≤ω1|u|+M2 for all (t,u)∈[0,T]×ℝ,$\n\nwhere $\\overline{Q}$ is given by (26).\n\nThen the boundary value problem (1)-(3) has at least one solution on [0, T].\n\nLet f : [0,T] × ℝ → ℝ be a continuous function. Assume that there exists a positive constant L2 suchthat $|f\\left(t,u\\left(t\\right)\\right)|\\le {L}_{2}$ for t ∈ [0,T], u ∈ ℝ. Then the boundary value problem (1)-(3) has at least one solution on [0, T].\n\nConsider the following anti-periodic fractional boundary value problem:${(cD3/2+1.5cD1/2)u(t)=1t+25((5−t)sinu30+e−tcos t), t∈[0,2],1.25u(0)+4u(2)=−∫01u(s)ds−1, 0.5.u′(0)−2u′(2)=2∫1.252u(s)ds+2.5,$(30)\n\nwhere $f\\left(t,u\\left(t\\right)\\right)=\\frac{1}{\\sqrt{t+25}}\\left(\\frac{\\left(5-t\\right)\\mathrm{sin}u}{15}+{e}^{-t}\\mathrm{cos}t\\right)$, T = 2, η = 1, ξ = 1.25, k = 1.5, α1 = 1.25, ρ1 = 4, λ1 = —1, λ2 = —1, λ2 = 0.5, ρ2 = —2, μ1 = 2, μ2 = 2.5.\n\nWith the given values, we find that $\\overline{Q}\\approx 14.422595$ ( $\\overline{Q}$ is given by (26)) and $\\ell =1/30$ as $|f\\left(t,u\\right)-f\\left(t,v\\right)|\\le \\frac{1}{30}|u-\\upsilon |$ . Clearly, $\\overline{Q}<1/\\ell$ .Thus all the conditions of Theorem 4.1 are satisfied. Hence we deduce by the conclusion of Theorem 4.1 that there exists a unique solution for the problem (30).\n\nFor the applicability of Theorem 4.2, we find that $|f\\left(t,u\\right)|\\le \\overline{g}\\left(t\\right)=\\frac{1}{\\sqrt{t+25}}\\left(\\frac{5-t}{30}+1\\right)$ with $‖\\overline{g}‖=\\frac{7}{30}$ and ${\\overline{Q}}_{1}\\approx 13.411715$ ( ${\\overline{Q}}_{1}$ is given by (27)). Obviously ${\\overline{Q}}_{1}<1/\\ell$ .Thus all the conditions of Theorem 4.2 are satisfied. Hence the conclusion of Theorem 4.2 applies to the problem (30).\n\nTo illustrate Theorem 4.3, we take $|f\\left(t,u\\right)|\\le \\phi \\left(t\\right)\\psi \\left(‖u‖\\right)\\frac{1}{\\sqrt{t+25}}\\left(\\frac{5-t}{30}+1\\right)$, $\\phi \\left(t\\right)=\\frac{1}{\\sqrt{t+25}}\\left(\\frac{5-t}{30}+1\\right)$, $\\psi \\left(‖u‖\\right)=1$ with $‖\\phi ‖=\\frac{7}{30}$ and $N>\\psi \\left({N}_{\\right)}‖\\phi ‖\\overline{Q}+\\stackrel{^}{Q}=9.333636$ ( $\\overline{Q}$ and $\\stackrel{^}{Q}$ are given by (26) and (29) respectively). Thus all the conditions of Theorem 4.3 are satisfied. Hence the conclusion of Theorem 4.3 implies that the problem (30) has at least one solution on [0, T].\n\nSeveral special cases of the existence results for the problem (1)-(3) follow by fixing the values of the parameters involved in the problem. For example, by taking α1= 1 = α2, ρ1 = 0 = ρ2, λ1 = 1 = μ1, λ2 = 0 = μ2, the results of this section correspond to the conditions: $u\\left(0\\right)={\\int }_{0}^{n}u\\left(s\\right)ds$, ${u}^{\\prime }\\left(0\\right)={\\int }_{\\xi }^{T}u\\left(s\\right)ds$ . In case we take α1 = 0 = α2, ρ1 = 1 = ρ2, λ1 = 1 = μ1, λ2 = 0 = μ2, we obtain the results for terminal-point conditions: $u\\left(T\\right)={\\int }_{0}^{n}u\\left(s\\right)ds$, ${u}^{\\prime }\\left(T\\right)={\\int }_{\\xi }^{T}u\\left(s\\right)ds$ . Letting α1 = 1 = α2, ρ1 = 1 = ρ2, λ1 = 1/eta, μ1 = 1/((Tξ), λ2 = 0 = μ2, we get the results for the average valued (integral) conditions: $u\\left(0\\right)+u\\left(T\\right)=\\left(1/\\eta \\right){\\int }_{0}^{n}u\\left(s\\right)ds$, ${u}^{\\prime }\\left(0\\right)+{u}^{\\prime }\\left(T\\right)=1/\\left(T-\\xi \\right){\\int }_{\\xi }^{T}u\\left(s\\right)ds$. By taking α = 2, our results correspond to the equation: (D2 + kD)u(t) = f (t, u(t)), 0 < t < T, T > 0, which are also new.\n\n## Acknowledgement\n\nThe research of J.J. Nieto was partially supported by the Ministerio de Economia y Competi-tividad of Spain under grant and MTM2013-43014-P, and Xunta de Galicia under grant GRC 2015/004.\n\n## References\n\n• \n\nPodlubny I., Fractional differential equations, Academic Press, San Diego, 1999 Google Scholar\n\n• \n\nKilbas A.A., Srivastava H.M., Trujillo J.J., Theory and applications of fractional differential equations, North-Holland Mathematics Studies, 204. Elsevier Science B.V., Amsterdam, 2006 Google Scholar\n\n• \n\nKlafter J., Lim S.C., Metzler R. (Editors), Fractional dynamics in physics, World Scientific, Singapore, 2011 Google Scholar\n\n• \n\nAgarwal R.P., O'Regan D., Hristova S., Stability of Caputo fractional differential equations by Lyapunov functions, Appl. Math., 2015, 60, 653-676 Google Scholar\n\n• \n\nArea I., Losada J., Nieto J.J., A note on the fractional logistic equation, Phys. A, 2016, 444, 182-187 Google Scholar\n\n• \n\nBai C., Impulsive periodic boundary value problems for fractional differential equation involving Riemann-Liouville sequential fractional derivative, J. Math. Anal. Appl., 2011, 384, 211-231Google Scholar\n\n• \n\nHenderson J., Luca R., Positive solutions for a system of nonlocal fractional boundary value problems, Fract. Calc. Appl. Anal., 2013, 16, 985-1008Google Scholar\n\n• \n\nLiu X., Liu Z., Fu X., Relaxation in nonconvex optimal control problems described by fractional differential equations, J. Math. Anal. Appl., 2014, 409, 446-458Google Scholar\n\n• \n\nO'Regan D., Stanek S., Fractional boundary value problems with singularities in space variables, Nonlinear Dynam., 2013, 71, 641-652Google Scholar\n\n• \n\nPunzo F., Terrone G., On the Cauchy problem for a general fractional porous medium equation with variable density, Nonlinear Anal., 2014, 98, 27-47Google Scholar\n\n• \n\nWang J.R., Wei W., Feckan M., Nonlocal Cauchy problems for fractional evolution equations involving Volterra-Fredholm type integral operators, Miskolc Math. Notes, 2012, 13, 127-147Google Scholar\n\n• \n\nWang J.R., Zhou Y., Feckan M., On the nonlocal Cauchy problem for semilinear fractional order evolution equations, Cent. Eur. J. Math., 2104, 12, 911-922 Google Scholar\n\n• \n\nAhmad B., Nieto J.J., Sequential fractional differential equations with three-point boundary conditions, Comput. Math. Appl., 2012, 64, 3046-3052. Google Scholar\n\n• \n\nAhmad B., Nieto J.J., Boundary value problems for a class of sequential integrodifferential equations of fractional order, J. Funct. Spaces Appl., 2013, Art. ID 149659, 8pp Google Scholar\n\n• \n\nAhmad B., Ntouyas S.K., Existence results for a coupled system of Caputo type sequential fractional differential equations with nonlocal integral boundary conditions, Appl. Math. Comput., 2015, 266, 615-622Google Scholar\n\n• \n\nKlimek M., Sequential fractional differential equations with Hadamard derivative, Commun. Nonlinear Sci. Numer. Simul., 2011, 16, 4689-4697Google Scholar\n\n• \n\nYe H., Huang, R., On the nonlinear fractional differential equations with Caputo sequential fractional derivative, Adv. Math. Phys., 2015, Art. ID 174156, 9 pp Google Scholar\n\n• \n\nAlsaedi A., Sivasundaram S., Ahmad B., On the generalization of second order nonlinear anti-periodic boundary value problems, Nonlinear Stud., 2009, 16, 415-420 Google Scholar\n\n• \n\nAgarwal R.P., Ahmad B., Existence theory for anti-periodic boundary value problems of fractional differential equations and inclusions, Comput. Math. Appl., 2011, 62, 1200-1214 Google Scholar\n\n• \n\nAhmad B., Nieto J.J., Anti-periodic fractional boundary value problems, Comput. Math. Appl., 2011, 62, 1150-1156.Google Scholar\n\n• \n\nAhmad B., Losada J., Nieto J.J., On antiperiodic nonlocal three-point boundary value problems for nonlinear fractional differential equations, Discrete Dyn. Nat. Soc., 2015, Art. ID 973783, 7 ppGoogle Scholar\n\n• \n\nCao J., Yang Q., Huang Z., Existence of anti-periodic mild solutions for a class of semilinear fractional differential equations, Commun. Nonlinear Sci. Numer. Simul., 2012, 17, 277-283\n\n• \n\nJiang J., Solvability of anti-periodic boundary value problem for coupled system of fractional p-Laplacian equation, Adv. Difference Equ., 2015, 2015:305, 11 pp Google Scholar\n\n• \n\nSmart D.R., Fixed point theorems, Cambridge University Press, 1980 Google Scholar\n\n• \n\nGranas A., Dugundji J., Fixed point theory, Springer-Verlag, New York, 2003 Google Scholar\n\n## About the article\n\nAccepted: 2016-07-27\n\nPublished Online: 2016-10-16\n\nPublished in Print: 2016-01-01\n\nCitation Information: Open Mathematics, Volume 14, Issue 1, Pages 723–735, ISSN (Online) 2391-5455,\n\nExport Citation\n\n## Citing Articles\n\n\nNazim I. Mahmudov and Areen Al-Khateeb\nJournal of Inequalities and Applications, 2019, Volume 2019, Number 1\n\nRavi P Agarwal, Bashir Ahmad, and Ahmed Alsaedi\nBoundary Value Problems, 2017, Volume 2017, Number 1\n\nBashir Ahmad, Juan J. Nieto, Ahmed Alsaedi, and Mohammed H. Aqlan\nMediterranean Journal of Mathematics, 2017, Volume 14, Number 6\n\nNazim I Mahmudov, Muath Awadalla, and Kanda Abuassba\nAdvances in Difference Equations, 2017, Volume 2017, Number 1\n\nMS Alhothuali, Ahmed Alsaedi, Bashir Ahmad, and Mohammed H Aqlan\nAdvances in Difference Equations, 2017, Volume 2017, Number 1" ]
[ null, "https://www.degruyter.com/doc/cover/s23915455.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.87182707,"math_prob":0.9996939,"size":21195,"snap":"2019-35-2019-39","text_gpt3_token_len":5920,"char_repetition_ratio":0.15964325,"word_repetition_ratio":0.1318801,"special_character_ratio":0.30209956,"punctuation_ratio":0.17653607,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99979633,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-22T08:14:09Z\",\"WARC-Record-ID\":\"<urn:uuid:15a6ebae-9cb5-4cec-8980-290fba165aa5>\",\"Content-Length\":\"321442\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:9037b324-656f-4283-85bb-34d34639fc80>\",\"WARC-Concurrent-To\":\"<urn:uuid:cf12b9a4-bc02-4720-ae8a-7c9ef5e71344>\",\"WARC-IP-Address\":\"91.203.202.198\",\"WARC-Target-URI\":\"https://www.degruyter.com/view/j/math.2016.14.issue-1/math-2016-0064/math-2016-0064.xml?format=INT\",\"WARC-Payload-Digest\":\"sha1:ID5G64RGTX33LXGEX6VHOA6O4UGWESFW\",\"WARC-Block-Digest\":\"sha1:LSBJUSLCGDCRZAJYGH2SUJOFYEZXBFVD\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514575402.81_warc_CC-MAIN-20190922073800-20190922095800-00363.warc.gz\"}"}
https://www.mathworks.com/company/newsletters/articles/improving-simulink-design-optimization-performance-using-parallel-computing.html
[ "# Improving Simulink Design Optimization Performance Using Parallel Computing\n\nBy Alec Stothert, MathWorks and Arkadiy Turevskiy, MathWorks\n\nEstimating plant model parameters and tuning controllers are challenging tasks. Optimization-based methods help to systematically accelerate the tuning process and let engineers tune multiple parameters at the same time. Further efficiencies can be gained by running the optimization in a parallel setting and distributing the computational load across multiple MATLAB® workers—but how do you know when an optimization problem is a good candidate for parallelization?\n\nUsing an aerospace system model as an example, this article describes the parallelization of a controller parameter tuning task using Parallel Computing Toolbox™ and Simulink Design Optimization™. Topics covered include setting up an optimization problem for parallel computing, the types of models that benefit from parallel optimization, and the typical optimization speed-up that can be achieved.\n\n### Using Parallel Optimization to Tune an HL20 Vehicle Glide Slope Controller\n\nThe HL-20 (Figure 1) is a lifting body re-entry vehicle designed to complement the Space Shuttle orbiter. During landing, the aircraft is subjected to wind gusts causing the aircraft to deviate from the nominal trajectory on the runway.\n\nWe tune three glide slope controller parameters so as to limit the aircraft’s lateral deviation from a nominal trajectory in the presence of wind gusts to five meters. This task is a good candidate for parallel optimization because the model is complex and takes over a minute to simulate once (optimization can require from tens to hundreds of simulations).\n\nTo optimize the controller parameters, we use Simulink Design Optimization (Figure 2).", null, "Figure 2. Using the Signal Constraint Block from Simulink Design Optimization (green) to specify design constraints and launch the optimization. Click on image to see enlarged view.\n\nFor comparison, we run the optimization both serially and in parallel1. To run a Simulink Design Optimization problem in parallel, we launch multiple MATLAB workers with the `matlabpool` command for an interactive parallel computing session2 and enable a Simulink Design Optimization option; no other model configuration is necessary. Figure 3 shows the optimization speed-up when running the HL-20 problem in parallel.\n\nOptimization algorithm Dual-core processor\n(two workers)\n(four workers)\nserial\n(secs)\nparallel\n(secs)\nratio\nserial:parallel\nserial\n(secs)\nparallel\n(secs)\nratio\nserial:parallel\nGradient descent based 2140 1360 1.57 2050 960 2.14\nPattern search based 3690 2140 1.72 3480 1240 2.81\n\nFigure 3. Optimization results for HL-20 controller parameter-tuning problem.\n\nParallel computing accelerates optimization by up to 2.81 times (the exact speed-up depends on the number of workers and the optimization method used). This is a good result, but notice that the speed-up ratio is not two in the dual-core case or four in the quad-core case, and that the quad-core speed-up is not double the dual-core speed-up. In the rest of the article we investigate the speed-up in more detail.\n\n### Running Multiple Simulations in Parallel\n\nBefore considering the benefit of solving optimization problems in parallel, let’s briefly consider the simpler issue of running simulations in a parallel setting. To illustrate the effect of parallel computing on running multiple simulations, we will investigate a Monte-Carlo simulation scenario.\n\nOur model, which consists of a third-order plant with a PID controller, is much simpler than the HL20 model. It takes less than a second to simulate, and will help demonstrate the benefits of running many simulations in parallel. The model has two plant uncertainties, the model parameters a1 and a2. We generate multiple experiments by varying values for a1 and a2 between fixed minimum and maximum bounds. The largest experiment includes 50 values for a1 and 50 for a2, resulting in 2500 simulations.\n\nFigure 4 compares the time taken to run multiple experiments of different sizes in serial and parallel settings. The parallel runs were conducted on the same multicore machines that were used in the HL20 example. Network latency, resulting from data transfer between client and workers, did not play a significant role, as inter-process communication was limited to a single machine. We used two worker processes on the dual-core machine, and four on the quad-core machine, maximizing core usage. To optimize computing capacity, the machines were set up with the absolute minimum of other processes running.\n\nThe plots in Figure 4 show that the speed-up when running simulations in parallel approaches the expected speed-up: the dual-core experiments using 2 MATLAB workers run in roughly half the time, while the quad-core experiments using 4 MATLAB workers run in roughly a quarter of the time.\n\nBecause of the overhead associated with running a simulation in parallel, a minimum number of simulations is needed to benefit from parallel computing. This crossover point can be seen on the extreme left of the two plots in Figure 4. It corresponds to 8 simulations in the dual-core case and 6 in the quad-core case.\n\nThe results show clear benefits from running simulations in parallel. How does this translate to optimization problems that run some, but not all, simulations in parallel?\n\n### When Will an Optimization Benefit from Parallel Computing?\n\nMany factors influence the effect of parallel computing on speed-up. We will concentrate on the two that affect Simulink Design Optimization performance: the number of parameters being optimized and the complexity of the model being optimized.\n\n#### Number of Parameters\n\nThe number of simulations that an optimization algorithm performs depends on the number of parameters being optimized. To illustrate this point, consider the two optimization algorithms used to optimize the HL20 model: gradient descent and pattern search.\n\nAt each iteration, a gradient-based optimization algorithm requires the following simulations:\n\n• A simulation for the current solution point\n• Simulations to compute the gradient of the objective at the current design point with respect to the optimized parameters\n• Line-search evaluations (simulations to evaluate the objective along the direction of the gradient)\n\nSimulations required to compute gradients are independent of each other, and can be distributed. Figure 5 shows the theoretically best expected speed-up. The plot in Figure 5 shows that the relative speed-up increases as parameters are added. There are four MATLAB workers in this example, giving a potential speed-up limit of 4, but because some of the simulations cannot be distributed, the actual speed-up is less than 4.\n\nThe plot also shows local maxima at 4,8,12,16 parameters. These local maxima correspond to cases where the parameter gradient calculations can be distributed evenly among the MATLAB workers. For the HL20 aircraft problem, which has 3 parameters, the quad-core processor speed-up observed was 2.14, which closely matches the speed-up shown in Figure 5. In Figure 5 we kept the number of parallel MATLAB workers constant and increased the problem complexity by increasing the number of parameters.", null, "Figure 5. Parallel optimization speed-up with gradient descent based optimization. The upper solid line represents the theoretically best possible speed-up with no line-search simulations, while the lighter dotted curves show the speed-up with up to 5 line-search simulations. Click on image to see enlarged view.\n``` %We compute the theoretically best expected speedup as follows:\n\nNp = 1:32; %Number of parameters (32 parameters are needed to\n%define 8 filtered PID controllers)\nNls = 0; %Number of line search simulations, assume 0 for now\n\n%The gradients are computed using central differences so there\n%are 2 simulations per parameter. We also need to include\n%the line search simulations to give the total number of\n%simulations per iteration:\n\nNss = 1+Np*2+Nls; %Total number of serial simulations, one nominal,\n%2 per parameter and then line searches\n\n%The computation of gradients with respect to each parameter\n%can be distributed or run in parallel. Running the gradient\n%simulations in parallel reduces the equivalent number of\n%simulations that run in series, as follows:\n\nNw = 4; %Number of MATLAB workers\nNps = 1 + ceil(Np/Nw)*2+Nls; %Number of serial simulations\n%simulations\n\n%The ratio Nss/Nps gives us the best expected speed-up\n```\n\nIn Figure 6 we increase the number of MATLAB workers as we increase the number of parameters. The plot shows that, if we have enough workers, running an optimization problem with more parameters takes the same amount of time as one with fewer parameters.", null, "Figure 6. Parallel optimization speed-up with gradient descent based optimization as the number of MATLAB workers increases. The upper solid line represents the theoretically best possible speed-up with no line- search simulations, while the dotted curves show the speed-up with up to 5 line-search simulations. Click on image to see enlarged view.\n``` % This code is a modification of the code shown in Figure 5.\n\nNw = Np; %Ideal scenario with one\n%processor per parameter\n\nNps = 1 + ceil(Np/Nw)*2+Nls; %Total number of serial\n%simulations--\n%in this case, ceil(Np/Nw)=1\n\n%The ratio Nss/Nps gives us the best expected speed-up.\n```\n\n#### Pattern Search Algorithm\n\nPattern search optimization algorithms evaluate sets of candidate solutions at each iteration. The algorithms evaluate all candidate solutions and then generate new candidate solution sets for the next iteration. Because each candidate solution is independent, the evaluation of the candidate solution set can be parallelized.\n\nPattern search uses two candidate solution sets: search and poll. The number of elements in these sets is proportional to the number of optimized parameters:\n\n```%Default number of elements in the solution set\nNsearch = 15*Np;\n%Number of elements in the poll set with a 2N poll method\nNpoll = 2*Np;\n```\n\nThe total number of simulations per iteration is the sum of the number of candidate solutions in the search and poll sets. During evaluation of the candidate solutions, simulations are distributed evenly among the MATLAB workers. The number of simulations that can run in series after distribution thus reduces to\n\n```Nds = ceil(Nsearch/Nw)+ceil(Npoll/Nw);\n```\n\nWhen evaluating the candidate solutions in series, the optimization solver terminates each iteration as soon as it finds a solution better than the current solution. Experience suggests that about half the candidate solutions will be evaluated. The number of serial simulations is thus approximately\n\n```Nss = 0.5*(Nsearch+Npoll);\n```\n\nThe search set is used only in the first couple of optimization iterations, after which only the poll set is used. In both cases, the ratio Nss/Nds gives us the speed-up (Figure 7).", null, "Figure 7. Parallel optimization speed-up with pattern search algorithm. The dark curve represents the speed-up when the solution and poll sets are evaluated, and the lighter upper curve represents the speed-up when only the poll set is evaluated. Click on image to see enlarged view.\n\nFigure 8 shows the corresponding speed-up when the number of MATLAB workers is increased.", null, "Figure 8. Parallel optimization speed-up with pattern search algorithm as the number of MATLAB workers increases. The dark curve represents the speed-up when the solution and poll sets are evaluated, and the lighter upper curve represents the speed-up when only the poll set is evaluated. Click on image to see enlarged view.\n\nThe expected speed-up over a serial optimization should lie between the two curves. Notice that even with only one parameter, a pattern search algorithm benefits from distribution. Also recall that for the HL20 aircraft problem, which has 3 parameters, the quad-core speed-up observed was 2.81, which closely matches the speed-up plotted in Figure 7.\n\n### How Simulation Complexity Affects Speed-Up\n\nOur simplified analysis of parallel optimization has taken no account of the overhead associated with transferring data between the remote workers, but this overhead could limit the expected speed-up. The optimization algorithm relies on shared paths to give remote workers access to models, and the returned data is limited to objective and constraint violation values, making the overhead typically very small. We can therefore expect that performing optimizations in parallel will speed up the problem, except when model simulation time is nearly zero. For example, the simple PID model required the distribution of 6 or more simulations to see a benefit. If we were to optimize the three PID controller parameters for this model, there would be 1+2*3+Nls simulations per optimization iteration, and we would not expect to see much benefit from parallelization3.\n\n### The Effect of Uncertain Parameters on Parallel Optimization\n\nOptimization must often take account of uncertain parameters (parameters such as the a1 and a2 variables in the simple model, which vary independently of those being optimized). Uncertain parameters result in additional simulations that must be evaluated at each iteration, influencing the speed-up effect of parallelization. These additional simulations are evaluated inside a parameter loop in the optimization algorithm, and can be considered as one, much longer simulation. As a result, uncertain parameters do not affect the overhead-free speed-up calculations shown in Figures 5 – 8, but they have a similar effect to increasing simulation complexity, and reduce the effect of the overhead on parallel optimization speed-up.\n\n### Further Possibilities for Optimization Speed-up\n\nOptimization-based methods make plant model parameter estimation and controller parameter tuning more systematic and efficient. Even more efficiency can be gained for certain optimization problems by using parallel optimization. Simulink Design Optimization can be easily configured to solve problems in parallel, and problems with many parameters to optimize, complex simulations with long simulation times, or both can benefit from parallel optimization.\n\nAnother way to accelerate the optimization process is to use an acceleration mode in Simulink. Simulink provides an Accelerator mode that replaces the normal interpreted code with compiled target code. Using compiled code speeds up simulation of many models, especially those where run time is long compared to the time associated with compilation. Combining the use of parallel computing with Accelerator simulation mode can achieve even more speed-up of the optimization task.\n\n1 Our setup comprises a dual-core 64-bit AMD®; 2.4GHz, 3.4GB, and quad-core 64-bit AMD; and 2.5GHz, 7.4GB Linux® machines.\n\n2 We use the `matlabpool` command to launch 2 workers on the dual-core machine and 4 workers on the quad-core machine for an interactive parallel computing session.\n\n3 To configure MATLAB for an interactive parallel computing session, you need to open a pool of MATLAB workers using the `matlabpool` command. This takes a few seconds,but once you have set up the `matlabpool` and updated the model, optimizations almost always benefit from parallel computations. The setup needs to be executed only once for your entire parallel computing session.\n\nPublished 2009 - 91716v00" ]
[ null, "https://www.mathworks.com/company/newsletters/articles/improving-simulink-design-optimization-performance-using-parallel-computing/_jcr_content/mainParsys/image_1.adapt.full.medium.gif/1469941488862.gif", null, "https://www.mathworks.com/company/newsletters/articles/improving-simulink-design-optimization-performance-using-parallel-computing/_jcr_content/mainParsys/image_0_1767453173.adapt.full.medium.gif/1634710145323.gif", null, "https://www.mathworks.com/company/newsletters/articles/improving-simulink-design-optimization-performance-using-parallel-computing/_jcr_content/mainParsys/image_0_1812777656.adapt.full.medium.gif/1634710145378.gif", null, "https://www.mathworks.com/company/newsletters/articles/improving-simulink-design-optimization-performance-using-parallel-computing/_jcr_content/mainParsys/image_3.adapt.full.medium.gif/1469941479533.gif", null, "https://www.mathworks.com/company/newsletters/articles/improving-simulink-design-optimization-performance-using-parallel-computing/_jcr_content/mainParsys/image_4.adapt.full.medium.gif/1469941480172.gif", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8729666,"math_prob":0.94032675,"size":13763,"snap":"2021-43-2021-49","text_gpt3_token_len":2708,"char_repetition_ratio":0.1904935,"word_repetition_ratio":0.027259685,"special_character_ratio":0.19407105,"punctuation_ratio":0.08601253,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9898833,"pos_list":[0,1,2,3,4,5,6,7,8,9,10],"im_url_duplicate_count":[null,1,null,1,null,1,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-26T12:33:22Z\",\"WARC-Record-ID\":\"<urn:uuid:97b07dd8-cc69-429d-8d88-2b240e725361>\",\"Content-Length\":\"90410\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:cbc97a34-ec54-4443-87c4-d901bd533d01>\",\"WARC-Concurrent-To\":\"<urn:uuid:385acfae-5bd1-4531-8992-49b869c5749e>\",\"WARC-IP-Address\":\"23.46.246.122\",\"WARC-Target-URI\":\"https://www.mathworks.com/company/newsletters/articles/improving-simulink-design-optimization-performance-using-parallel-computing.html\",\"WARC-Payload-Digest\":\"sha1:DFF7C6ZIP3DRVI3W4XTCIVI62MQTN7DS\",\"WARC-Block-Digest\":\"sha1:R6ZE5BPBZSEOEJ5EYDXQ7LTCMJI7HQDU\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323587877.85_warc_CC-MAIN-20211026103840-20211026133840-00169.warc.gz\"}"}
https://www.geeksforgeeks.org/find-distinct-elements-common-rows-matrix/
[ "# Find distinct elements common to all rows of a matrix\n\nGiven a n x n matrix. The problem is to find all the distinct elements common to all rows of the matrix. The elements can be printed in any order.\n\nExamples:\n\n```Input : mat[][] = { {2, 1, 4, 3},\n{1, 2, 3, 2},\n{3, 6, 2, 3},\n{5, 2, 5, 3} }\nOutput : 2 3\n\nInput : mat[][] = { {12, 1, 14, 3, 16},\n{14, 2, 1, 3, 35},\n{14, 1, 14, 3, 11},\n{14, 25, 3, 2, 1},\n{1, 18, 3, 21, 14} }\nOutput : 1 3 14\n```\n\n## Recommended: Please solve it on “PRACTICE ” first, before moving on to the solution.\n\nMethod 1: Using three nested loops. Check if an element of 1st row is present in all the subsequent rows. Time Complexity of O(n3). Extra space could be required to handle the duplicate elements.\n\nMethod 2: Sort all the rows of the matrix individually in increasing order. Then apply a modified approach of the problem of finding common elements in 3 sorted arrays. Below an implementation for the same is given.\n\n## C++\n\n `// C++ implementation to find distinct elements ` `// common to all rows of a matrix ` `#include ` `using` `namespace` `std; ` `const` `int` `MAX = 100; ` ` `  `// function to individually sort ` `// each row in increasing order ` `void` `sortRows(``int` `mat[][MAX], ``int` `n) ` `{ ` `    ``for` `(``int` `i=0; i\n\n## Java\n\n `// JAVA Code to find distinct elements ` `// common to all rows of a matrix ` `import` `java.util.*; ` ` `  `class` `GFG { ` `     `  `    ``// function to individually sort ` `    ``// each row in increasing order ` `    ``public` `static` `void` `sortRows(``int` `mat[][], ``int` `n) ` `    ``{ ` `        ``for` `(``int` `i=``0``; i\n\n## Python3\n\n `# Python3 implementation to find distinct  ` `# elements common to all rows of a matrix ` `MAX` `=` `100` ` `  `# function to individually sort ` `# each row in increasing order ` `def` `sortRows(mat, n): ` ` `  `    ``for` `i ``in` `range``(``0``, n): ` `        ``mat[i].sort(); ` ` `  `# function to find all the common elements ` `def` `findAndPrintCommonElements(mat, n): ` ` `  `    ``# sort rows individually ` `    ``sortRows(mat, n) ` ` `  `    ``# current column index of each row is  ` `    ``# stored from where the element is being  ` `    ``# searched in that row ` `     `  `    ``curr_index ``=` `[``0``] ``*` `n ` `    ``for` `i ``in` `range` `(``0``, n): ` `        ``curr_index[i] ``=` `0` `         `  `    ``f ``=` `0` ` `  `    ``while``(curr_index[``0``] < n): ` `     `  `        ``# value present at the current  ` `        ``# column index of 1st row ` `        ``value ``=` `mat[``0``][curr_index[``0``]] ` ` `  `        ``present ``=` `True` ` `  `        ``# 'value' is being searched in  ` `        ``# all the subsequent rows ` `        ``for` `i ``in` `range` `(``1``, n): ` `         `  `            ``# iterate through all the elements  ` `            ``# of the row from its current column  ` `            ``# index till an element greater than  ` `            ``# the 'value' is found or the end of  ` `            ``# the row is encountered ` `            ``while` `(curr_index[i] < n ``and` `                   ``mat[i][curr_index[i]] <``=` `value): ` `                ``curr_index[i] ``=` `curr_index[i] ``+` `1` `                 `  `            ``# if the element was not present at  ` `            ``# the column before to the 'curr_index'  ` `            ``# of the row ` `            ``if` `(mat[i][curr_index[i] ``-` `1``] !``=` `value): ` `                ``present ``=` `False` ` `  `            ``# if all elements of the row have ` `            ``# been traversed) ` `            ``if` `(curr_index[i] ``=``=` `n): ` `             `  `                ``f ``=` `1` `                ``break` `             `  `        ``# if the 'value' is common to all the rows ` `        ``if` `(present): ` `            ``print``(value, end ``=` `\" \"``) ` ` `  `        ``# if any row have been completely traversed ` `        ``# then no more common elements can be found ` `        ``if` `(f ``=``=` `1``): ` `            ``break` `     `  `        ``curr_index[``0``] ``=` `curr_index[``0``] ``+` `1` ` `  `# Driver Code ` `mat ``=` `[[``12``, ``1``, ``14``, ``3``, ``16``], ` `       ``[``14``, ``2``, ``1``, ``3``, ``35``], ` `       ``[``14``, ``1``, ``14``, ``3``, ``11``], ` `       ``[``14``, ``25``, ``3``, ``2``, ``1``], ` `       ``[``1``, ``18``, ``3``, ``21``, ``14``]] ` ` `  `n ``=` `5` `findAndPrintCommonElements(mat, n) ` ` `  `# This code is contributed by iAyushRaj `\n\n## C#\n\n `// C# Code to find distinct elements  ` `// common to all rows of a matrix  ` `using` `System; ` ` `  `class` `GFG ` `{ ` ` `  `// function to individually sort  ` `// each row in increasing order  ` `public` `static` `void` `sortRows(``int``[][] mat, ``int` `n) ` `{ ` `    ``for` `(``int` `i = 0; i < n; i++) ` `    ``{ ` `        ``Array.Sort(mat[i]); ` `    ``} ` `} ` ` `  `// function to find all the common elements  ` `public` `static` `void` `findAndPrintCommonElements(``int``[][] mat,  ` `                                              ``int` `n) ` `{ ` `    ``// sort rows individually  ` `    ``sortRows(mat, n); ` ` `  `    ``// current column index of each row is stored  ` `    ``// from where the element is being searched in  ` `    ``// that row  ` `    ``int``[] curr_index = ``new` `int``[n]; ` ` `  `    ``int` `f = 0; ` ` `  `    ``for` `(; curr_index < n; curr_index++) ` `    ``{ ` `        ``// value present at the current column index  ` `        ``// of 1st row  ` `        ``int` `value = mat[curr_index]; ` ` `  `        ``bool` `present = ``true``; ` ` `  `        ``// 'value' is being searched in all the  ` `        ``// subsequent rows  ` `        ``for` `(``int` `i = 1; i < n; i++) ` `        ``{ ` `            ``// iterate through all the elements of  ` `            ``// the row from its current column index  ` `            ``// till an element greater than the 'value'  ` `            ``// is found or the end of the row is  ` `            ``// encountered  ` `            ``while` `(curr_index[i] < n &&  ` `                   ``mat[i][curr_index[i]] <= value) ` `            ``{ ` `                ``curr_index[i]++; ` `            ``} ` ` `  `            ``// if the element was not present at the column  ` `            ``// before to the 'curr_index' of the row  ` `            ``if` `(mat[i][curr_index[i] - 1] != value) ` `            ``{ ` `                ``present = ``false``; ` `            ``} ` ` `  `            ``// if all elements of the row have  ` `            ``// been traversed  ` `            ``if` `(curr_index[i] == n) ` `            ``{ ` `                ``f = 1; ` `                ``break``; ` `            ``} ` `        ``} ` ` `  `        ``// if the 'value' is common to all the rows  ` `        ``if` `(present) ` `        ``{ ` `            ``Console.Write(value + ``\" \"``); ` `        ``} ` ` `  `        ``// if any row have been completely traversed  ` `        ``// then no more common elements can be found  ` `        ``if` `(f == 1) ` `        ``{ ` `            ``break``; ` `        ``} ` `    ``} ` `} ` ` `  `// Driver Code ` `public` `static` `void` `Main(``string``[] args) ` `{ ` `    ``int``[][] mat = ``new` `int``[][] ` `    ``{ ` `        ``new` `int``[] {12, 1, 14, 3, 16}, ` `        ``new` `int``[] {14, 2, 1, 3, 35}, ` `        ``new` `int``[] {14, 1, 14, 3, 11}, ` `        ``new` `int``[] {14, 25, 3, 2, 1}, ` `        ``new` `int``[] {1, 18, 3, 21, 14} ` `    ``}; ` ` `  `    ``int` `n = 5; ` `    ``findAndPrintCommonElements(mat, n); ` `} ` `} ` ` `  `// This code is contributed by Shrikant13 `\n\nOutput:\n\n```1 3 14\n```\n\nTime Complexity: O(n2log n), each row of size n requires O(nlogn) for sorting and there are total n rows.\nAuxiliary Space: O(n) to store current column indexes for each row.\n\nMethod 3: It uses the concept of hashing. The following steps are:\n\n1. Map the element of 1st row in a hash table. Let it be hash.\n2. Fow row = 2 to n\n3. Map each element of the current row into a temporary hash table. Let it be temp.\n4. Iterate through the elements of hash and check that the elements in hash are present in temp. If not present then delete those elements from hash.\n5. When all the rows are being processed in this manner, then the elements left in hash are the required common elements.\n\n## C++\n\n `// C++ program to find distinct elements ` `// common to all rows of a matrix ` `#include ` `using` `namespace` `std; ` ` `  `const` `int` `MAX = 100; ` ` `  `// function to individually sort ` `// each row in increasing order ` `void` `findAndPrintCommonElements(``int` `mat[][MAX], ``int` `n) ` `{ ` `    ``unordered_set<``int``> us; ` ` `  `    ``// map elements of first row ` `    ``// into 'us' ` `    ``for` `(``int` `i=0; i temp; ` `        ``// mapping elements of current row ` `        ``// in 'temp' ` `        ``for` `(``int` `j=0; j:: iterator itr; ` ` `  `        ``// iterate through all the elements ` `        ``// of 'us' ` `        ``for` `(itr=us.begin(); itr!=us.end(); itr++) ` ` `  `            ``// if an element of 'us' is not present ` `            ``// into 'temp', then erase that element ` `            ``// from 'us' ` `            ``if` `(temp.find(*itr) == temp.end()) ` `                ``us.erase(*itr); ` ` `  `        ``// if size of 'us' becomes 0, ` `        ``// then there are no common elements ` `        ``if` `(us.size() == 0) ` `            ``break``; ` `    ``} ` ` `  `    ``// print the common elements ` `    ``unordered_set<``int``>:: iterator itr; ` `    ``for` `(itr=us.begin(); itr!=us.end(); itr++) ` `        ``cout << *itr << ``\" \"``; ` `} ` ` `  `// Driver program to test above ` `int` `main() ` `{ ` `    ``int` `mat[][MAX] = { {2, 1, 4, 3}, ` `                       ``{1, 2, 3, 2}, ` `                       ``{3, 6, 2, 3}, ` `                       ``{5, 2, 5, 3}  }; ` `    ``int` `n = 4; ` `    ``findAndPrintCommonElements(mat, n); ` `    ``return` `0; ` `} `\n\n## Python3\n\n `# Python3 program to find distinct elements ` `# common to all rows of a matrix ` `MAX` `=` `100` ` `  `# function to individually sort ` `# each row in increasing order ` `def` `findAndPrintCommonElements(mat, n): ` `    ``us ``=` `dict``() ` ` `  `    ``# map elements of first row ` `    ``# into 'us' ` `    ``for` `i ``in` `range``(n): ` `        ``us[mat[``0``][i]] ``=` `1` ` `  `    ``for` `i ``in` `range``(``1``, n): ` `        ``temp ``=` `dict``() ` `         `  `        ``# mapping elements of current row ` `        ``# in 'temp' ` `        ``for` `j ``in` `range``(n): ` `            ``temp[mat[i][j]] ``=` `1` ` `  `        ``# iterate through all the elements ` `        ``# of 'us' ` `        ``for` `itr ``in` `list``(us): ` ` `  `            ``# if an element of 'us' is not present ` `            ``# into 'temp', then erase that element ` `            ``# from 'us' ` `            ``if` `itr ``not` `in` `temp: ` `                ``del` `us[itr] ` ` `  `        ``# if size of 'us' becomes 0, ` `        ``# then there are no common elements ` `        ``if` `(``len``(us) ``=``=` `0``): ` `            ``break` ` `  `    ``# prthe common elements ` `    ``for` `itr ``in` `list``(us)[::``-``1``]: ` `        ``print``(itr, end ``=` `\" \"``) ` ` `  `# Driver Code ` `mat ``=` `[[``2``, ``1``, ``4``, ``3``], ` `       ``[``1``, ``2``, ``3``, ``2``], ` `       ``[``3``, ``6``, ``2``, ``3``], ` `       ``[``5``, ``2``, ``5``, ``3``]] ` `n ``=` `4` `findAndPrintCommonElements(mat, n) ` ` `  `# This code is contributed by Mohit Kumar `\n\nOutput:\n\n```3 2\n```\n\nTime Complexity: O(n2)\nSpace Complexity: O(n)\n\nThis article is contributed by Ayush Jauhari. If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6128827,"math_prob":0.9507456,"size":12475,"snap":"2019-51-2020-05","text_gpt3_token_len":3945,"char_repetition_ratio":0.16093336,"word_repetition_ratio":0.41582966,"special_character_ratio":0.35511023,"punctuation_ratio":0.15741475,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9995627,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-28T13:28:50Z\",\"WARC-Record-ID\":\"<urn:uuid:193cdae6-846c-4523-9c1f-9a13f7dc5718>\",\"Content-Length\":\"234927\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6dcee0d6-4223-424b-9c88-57ce58133f1e>\",\"WARC-Concurrent-To\":\"<urn:uuid:f874a987-2ad8-457f-a7bf-170fe054f76b>\",\"WARC-IP-Address\":\"23.221.75.33\",\"WARC-Target-URI\":\"https://www.geeksforgeeks.org/find-distinct-elements-common-rows-matrix/\",\"WARC-Payload-Digest\":\"sha1:GAQSYWQ4OH6JM62SWO4QFK5ZLJUMJRBG\",\"WARC-Block-Digest\":\"sha1:FRQXMDHZTVFLUQ6ZIK2E2J3ERXR7HJN5\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579251778272.69_warc_CC-MAIN-20200128122813-20200128152813-00542.warc.gz\"}"}
https://codereview.stackexchange.com/questions/198406/nested-cross-validation
[ "# Nested cross-validation\n\nThis is a homework assignment to implement nested cross validation. It seems to work fine (sometimes).\n\nThe imports are inside the class and some methods are static, because this code needs to be in the same source file with a lot of other stuff (Jupiter notebook) and this is my attempt at reducing visibility of names.\n\nHere are some of my concerns, though I am probably completely overlooking the important parts:\n\n• Architecture - if all this was implemented as two nested loops, it would be several times shorter. Was that the more readable approach?\n\n• Dataset storage - my class accepts its datapoints and labels as two different arrays X and y. Then any functions in sklearn again expect that format. But I store it internally as a zipped list for easy shuffling and masking.\n\n• All these static methods seem out of place. I have declared them as such because they access only a minimal part of the class state.\n\nThis is the section of the notebook, relevant to this homework problem:\n\nimport numpy as np\nfold_size = num_samples / k\nfor i in range(k):\n\nclass NCV:\n'''Nested Cross-Validation.'''\nfrom sklearn.metrics import mean_squared_error\nfrom sklearn.model_selection import train_test_split\n\ndef __init__( self, X, y, loss=mean_squared_error, k=10 ):\nself._all_data = np.array( list( zip( X, y ) ) )\nnp.random.shuffle( self._all_data )\n\nself._loss = loss\n\n# Number of groups in the inner loop.\nself._k = k\n\ndef train( self ):\nX, y = zip( *self._all_data )\nX_train, X_test, y_train, y_test = train_test_split( X, y, test_size=0.2 )\ntr = np.array( list( zip( X_train, y_train ) ) )\nc = self.calc_hyperparams( tr )\n\ny_pred = self.fit_model( tr, c).predict( X_test )\nprint( 'OOB accuracy: ', metrics.accuracy_score( y_test, y_pred ) )\nprint( metrics.classification_report( y_test, y_pred, target_names=iris.target_names ) )\n\nm = self.fit_model( data=self._all_data, c=c )\nreturn m\n\n@staticmethod\ndef fit_model( data, c, g=10 ):\nm = SVC( gamma=g, C=c )\nX, y = zip( *data )\nm.fit( X, y )\nreturn m\n\n@staticmethod\ndef calc_risk( y_pred, y_true, loss ):\n'''Empirical risk on a sample.'''\nassert len( y_pred ) == len( y_true )\nreturn ( 1 / len(y) ) * sum([ loss( y_pred, y_true ) ])\n\n@classmethod\ndef calc_OOB_risk( cls, train, test, loss, c=1, g=10 ):\n'''Train a model on a dataset. Return a risk estimate.'''\nm = cls.fit_model( train, c, g )\nX, y = zip( *test )\npred = m.predict( X )\nr = cls.calc_risk( pred, y, loss )\nreturn r\n\n@staticmethod\ndef calc_crossval_risk( dataset, body, k ):\n'''Apply body to overlapping batches of the dataset.'''\nrisk = []\ntr = dataset[ ~ mask ]\nr = body( train=tr, test=te )\nrisk.append( r )\nreturn sum(risk) / len(risk)\n\ndef calc_hyperparams( self\n, dataset\n, c_grid=np.logspace( start=0, stop=2, num=50 ) ):\n'''Perform a grid search in hyperparameter space.'''\nrisk = []\nfor c in c_grid:\nbody = lambda train, test: self.calc_OOB_risk( train=train, test=test\n, loss=self._loss, c=c, g=10 )\nr = self.calc_crossval_risk( dataset, body, self._k )\nrisk.append( r )\n\nbest = c_grid[ np.argmax( risk ) ]\nreturn best\n\n\nAnd this is a sample run:\n\nfrom sklearn.datasets import load_iris\n\n• Also, what is SVC? It is currently undefined, as far as I can tell. – Graipher Jul 13 '18 at 9:46" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6619988,"math_prob":0.9679218,"size":3602,"snap":"2020-24-2020-29","text_gpt3_token_len":1015,"char_repetition_ratio":0.094219014,"word_repetition_ratio":0.006849315,"special_character_ratio":0.30705163,"punctuation_ratio":0.19775596,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9996704,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-06-02T21:47:59Z\",\"WARC-Record-ID\":\"<urn:uuid:d022698a-0efd-42ff-aea4-3b0cdaee68c6>\",\"Content-Length\":\"146702\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:3ab7de16-33a7-4a89-975b-8018754c88ca>\",\"WARC-Concurrent-To\":\"<urn:uuid:cb6b70ac-f870-427b-a9fb-2bf6eec915e8>\",\"WARC-IP-Address\":\"151.101.193.69\",\"WARC-Target-URI\":\"https://codereview.stackexchange.com/questions/198406/nested-cross-validation\",\"WARC-Payload-Digest\":\"sha1:2MPANPBZ35BUCRT6CQEMH6C4G2CC5KCF\",\"WARC-Block-Digest\":\"sha1:FAWBRXMWL44EFFHTNXAXY4DUBEN45A4U\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-24/CC-MAIN-2020-24_segments_1590347426801.75_warc_CC-MAIN-20200602193431-20200602223431-00267.warc.gz\"}"}
https://everything2.com/title/Lincoln-Peterson+Index
[ "The Lincoln-Peterson index is a method for deducing the population size of an elusive species. Many populations, such as those of many birds, insects, and ocean-going animals (from turtles to fish to whales), are very hard to count, due to their high mobility and wide dispersal. One common solution to this is to capture and tag a given number of individuals, re-release them into the wild, and then take random samples of the population at a later time. The simple way to think of this is that if you tag 100 animals, and later sample 100 animals, and you find only one tagged animal in your sample, you might guess that there are about 10,000 animals in the local population.\n\nThe Lincoln-Peterson index gives us a slightly more formal mathematical model for determining population size through our tagging and sampling process. It goes thusly:\n\nM/N = m/n\n\nWhere:\n\n• M = the number of individuals marked and released.\n• N = the actual size of the study population.\n• m = the number of marked individuals in the sample population.\n• n = the total number of individuals in the sample.\n\nWe know M, m, and n, meaning that we can easily calculate N, the actual size of the study population. (To solve for N, we would write the equation as N=Mn/m).\n\nAs it happens, this index tends to overestimate the population size by a small amount. In order for this calculation to work accurately, no marked animals can be removed from the population (i.e., die) between the time they are tagged and the time that the sample is taken. As it happens, a population will constantly loose old (tagged) members, and gain new (untagged) members through the birth of new individuals. To account for this, a modified Lincoln-Peterson index was suggested:\n\nN = M(n+1)/(m+1)\n\nWhile the addition of the imaginary tagged animal to the sample size is a kludge that probably makes baby mathematician Jesus cry, it also results in more accurate estimations of population size, so it is frequently used. Another modification, known as the Schnabel index, is also often used: N=((M+1)x(n+1)/(m+1))-1.\n\nFor obvious reasons, the Lincoln-Peterson index is still the most popular when a quick and easy calculation is sufficient, but a modified form is more common in published works.\n\nLog in or register to write something here or to contact authors." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9510598,"math_prob":0.9836716,"size":2239,"snap":"2020-45-2020-50","text_gpt3_token_len":497,"char_repetition_ratio":0.13959731,"word_repetition_ratio":0.015831135,"special_character_ratio":0.2237606,"punctuation_ratio":0.11383928,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.963791,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-20T07:04:01Z\",\"WARC-Record-ID\":\"<urn:uuid:a136cc8e-8b2c-4c7b-9a15-b5cff05f7c80>\",\"Content-Length\":\"19737\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8c07bc1f-0e87-4099-9e52-bfa1ef566834>\",\"WARC-Concurrent-To\":\"<urn:uuid:000d3fa7-f70f-485d-96dd-a2d436c59a51>\",\"WARC-IP-Address\":\"44.240.59.169\",\"WARC-Target-URI\":\"https://everything2.com/title/Lincoln-Peterson+Index\",\"WARC-Payload-Digest\":\"sha1:UBYQJ5ELTJRBB3HGJ3TO5SHTW24A2X6D\",\"WARC-Block-Digest\":\"sha1:7YQUOKHYPZUCUR5NKK6TIVGP4QL4DWX6\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-45/CC-MAIN-2020-45_segments_1603107869933.16_warc_CC-MAIN-20201020050920-20201020080920-00719.warc.gz\"}"}
https://iris.unical.it/handle/20.500.11770/132078
[ "An analytical solution of the phase change problem, known as the Stefan or Moving Boundary Problem, in a PCM layer (phase change materials) subject to boundary conditions that are variable in time, is presented, in steady periodic regime. The two-phase Stefan Problem is resolved considering periodic boundary conditions of temperature or of heat flux, or even mixed conditions. This phenomenon is present in air-conditioned buildings, the walls of which use PCM layers to reduce thermal loads and energy requirements to be compensated by the plant. The resolution method used is one in which phasors allow the transformation of partial differential equations, describing conduction in the solid and liquid phase, into ordinary differential equations; furthermore the phasors allow transformation of the thermal balance equation at the bi-phase interface into algebraic equations. The Moving Boundary Problem is then reduced to a system of algebraic equations, the solution of which provides the position in time of the bi-phase interface and the thermal field of the layer. The solution obtained provides for different thermodynamic configurations that the layer can assume and makes the position of the bi-phase interface and the thermal field depend on the Fourier number and on the Stefan number calculated in the solid phase and in the liquid phase. In the case of two boundary conditions represented by a single sinusoidal oscillation, a general analysis, addressed in different thermodynamic configurations obtained by varying the Fourier and Stefan number, shows the calculation procedure of the steady and of the oscillating component of the position of the bi-phase interface, of the temperature field and of the heat flux field. In addition, we considered the particular case of a PCM layer with an oscillating temperature boundary condition on one face and a constant temperature on the other face. The analytical procedure was also used for an analysis dedicated to the thermal behaviour of Glauber’s salt subject to independent multi harmonic boundary conditions. This salt hydrate is one of the most studied, having a high latent fusion heat and a melting temperature that is suited for use in the walls of buildings.\n\n### Analytical model for solidification and melting in a finite PCM in steady periodic regime\n\n#### Abstract\n\nAn analytical solution of the phase change problem, known as the Stefan or Moving Boundary Problem, in a PCM layer (phase change materials) subject to boundary conditions that are variable in time, is presented, in steady periodic regime. The two-phase Stefan Problem is resolved considering periodic boundary conditions of temperature or of heat flux, or even mixed conditions. This phenomenon is present in air-conditioned buildings, the walls of which use PCM layers to reduce thermal loads and energy requirements to be compensated by the plant. The resolution method used is one in which phasors allow the transformation of partial differential equations, describing conduction in the solid and liquid phase, into ordinary differential equations; furthermore the phasors allow transformation of the thermal balance equation at the bi-phase interface into algebraic equations. The Moving Boundary Problem is then reduced to a system of algebraic equations, the solution of which provides the position in time of the bi-phase interface and the thermal field of the layer. The solution obtained provides for different thermodynamic configurations that the layer can assume and makes the position of the bi-phase interface and the thermal field depend on the Fourier number and on the Stefan number calculated in the solid phase and in the liquid phase. In the case of two boundary conditions represented by a single sinusoidal oscillation, a general analysis, addressed in different thermodynamic configurations obtained by varying the Fourier and Stefan number, shows the calculation procedure of the steady and of the oscillating component of the position of the bi-phase interface, of the temperature field and of the heat flux field. In addition, we considered the particular case of a PCM layer with an oscillating temperature boundary condition on one face and a constant temperature on the other face. The analytical procedure was also used for an analysis dedicated to the thermal behaviour of Glauber’s salt subject to independent multi harmonic boundary conditions. This salt hydrate is one of the most studied, having a high latent fusion heat and a melting temperature that is suited for use in the walls of buildings.\n##### Scheda breve Scheda completa Scheda completa (DC)\nMoving Boundary Problem; Stefan Problem; PCM; Analytical model; Steady periodic regime\nFile in questo prodotto:\nNon ci sono file associati a questo prodotto.\n\nI documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.\n\nUtilizza questo identificativo per citare o creare un link a questo documento: `http://hdl.handle.net/20.500.11770/132078`\n##### Attenzione\n\nAttenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo\n\n##### Citazioni\n•", null, "ND\n•", null, "30\n•", null, "29" ]
[ null, "https://iris.unical.it/sr/cineca/images/thirdparty/pmc_small.png", null, "https://iris.unical.it/sr/cineca/images/thirdparty/scopus_small.png", null, "https://iris.unical.it/sr/cineca/images/thirdparty/isi_small.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.90486544,"math_prob":0.9064708,"size":4720,"snap":"2022-27-2022-33","text_gpt3_token_len":868,"char_repetition_ratio":0.13761662,"word_repetition_ratio":0.9408528,"special_character_ratio":0.17161018,"punctuation_ratio":0.07204969,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9515611,"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\":\"2022-08-11T17:06:30Z\",\"WARC-Record-ID\":\"<urn:uuid:4b919464-3868-49e6-8a83-592d197a3f7e>\",\"Content-Length\":\"48669\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:72dc0374-c3ce-4b2b-9584-d716e9afc0b7>\",\"WARC-Concurrent-To\":\"<urn:uuid:636c95ae-0b06-42e4-9616-00dae21b81c0>\",\"WARC-IP-Address\":\"130.186.29.4\",\"WARC-Target-URI\":\"https://iris.unical.it/handle/20.500.11770/132078\",\"WARC-Payload-Digest\":\"sha1:KNXYXTYIWD6IAXHSLTVXJOEMMP2CBVFW\",\"WARC-Block-Digest\":\"sha1:GVBHEYFHAQJJMAWWW6NQDPGVLQVM4M3K\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882571483.70_warc_CC-MAIN-20220811164257-20220811194257-00321.warc.gz\"}"}
https://intactone.com/median-characteristics-applications-and-limitations/
[ "# Median Characteristics, Applications and Limitations\n\nThe median of a set of data values is the middle value of the data set when it has been arranged in ascending order. That is, from the smallest value to the highest value.\n\nExample:\n\nThe marks of nine students in a geography test that had a maximum possible mark of 50 are given below:\n\n47     35     37     32     38     39     36     34     35\n\nFind the median of this set of data values.\n\nSolution:\n\nArrange the data values in order from the lowest value to the highest value:\n\n32     34     35     35     36     37     38     39     47\n\nThe fifth data value, 36, is the middle value in this arrangement.\n\nMerits or Uses of Median:\n\n1. Median is rigidly defined as in the case of Mean.\n2. Even if the value of extreme item is much different from other values, it is not much affected by these values e.g. Median in case of 4, 7, 12, 18, 19 is 12 and if we add two values equal to 450 10000, new median is 18.\n3. It can also be used for the Quantities; those can’t give A.M; as is in case of intelligence etc. It is possible to arrange in any order and to locate the middle valve. For such cases it is the best measure.\n4. It can be located graphically.\n5. For open end intervals, it is also suitable one. As taking any value of the intervals, value of Median remains the same.\n6. It can be easily calculated and is also easy to understand\n7. Median is also used for other statistical devices such as Mean Deviation and skewness.\n8. It can be located by inspection in some cases.\n9. Extreme items may not be available to get Median. Only if number of terms is known, we can get median e.g.\n\nFind median of the 9 terms, out of which first two and last three terms are missing and middle four terms are 7, 9, 10, 14. Here we can calculate as following let nine terms be:\n\n * * 7 9 10 4 * * *\n\nHere out of nine terms middle term is; (n+1/2) Thus 10 is the Median.\n\nDemerits or Limitations of Median:\n\n1. Even if the value of extreme items is too large, it does not affect too much, but due to this reason, sometimes median does not remain the representative of the series.\n2. It is affected much more by fluctuations of sampling than A.M.\n3. Median cannot be used for further algebraic treatment. Unlike mean we can neither find total of terms as in case of A.M. nor median of some groups when combined.\n4. In a continuous series it has to be interpolated. We can find its true-value only if the frequencies are uniformly spread over the whole class interval in which median lies.\n5. If the number of series is even, we can only make its estimate; as the A.M. of two middle terms is taken as Median.", null, "#### intactone\n\nView all posts by intactone →\nerror: Content is protected !!" ]
[ null, "https://secure.gravatar.com/avatar/388f1647f7be40004589f6e416bf4cbb", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.92880774,"math_prob":0.9666562,"size":2513,"snap":"2023-14-2023-23","text_gpt3_token_len":630,"char_repetition_ratio":0.1315265,"word_repetition_ratio":0.01622718,"special_character_ratio":0.26701155,"punctuation_ratio":0.11754069,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.979613,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-06-04T01:57:24Z\",\"WARC-Record-ID\":\"<urn:uuid:a4bdc955-9243-4f79-9894-e8c76cbd851d>\",\"Content-Length\":\"244704\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ee325535-195b-44b4-8e8e-ab7eaa833fc6>\",\"WARC-Concurrent-To\":\"<urn:uuid:959bbfe6-151c-4cb6-8e6e-b8f7d980b4b8>\",\"WARC-IP-Address\":\"212.1.211.197\",\"WARC-Target-URI\":\"https://intactone.com/median-characteristics-applications-and-limitations/\",\"WARC-Payload-Digest\":\"sha1:NM3D7X4R5EE75HCMA2CLA5F2J3CEPHBG\",\"WARC-Block-Digest\":\"sha1:RWOK5VWE33QXJNZLCBB5A6KUA67SHSQJ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224649348.41_warc_CC-MAIN-20230603233121-20230604023121-00199.warc.gz\"}"}
http://www.theexcelbible.com/excel-functions/excel-rows-function/
[ "# Excel ROWS function", null, "The ‘ROWS’ function in Excel will return the number of rows between a specified cell range.  For example, there are two rows between row 3 and row 5 and thus =ROWS(B4:D5) would return an output of 2.\n\nThe ROWS function can be particularly useful when using functions which require a row argument on large sets of data where it is not easy to manually count the number of rows in an array.\n\nTo identify the specific row number of an individual cell, the ROW function is more appropriate to use.\n\n### Syntax\n\n`=COLUMNS(array)`\n\n### Arguments\n\narray – input cell range (i.e. the cell the range you wish to know how many rows there are in between)\n\nInformation\n\n### Returns\n\nThe ROWS function will return the number of rows between a specified cell range." ]
[ null, "http://www.theexcelbible.com/wp-content/uploads/2018/08/Rows.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.7359173,"math_prob":0.9583635,"size":747,"snap":"2020-34-2020-40","text_gpt3_token_len":166,"char_repetition_ratio":0.14401077,"word_repetition_ratio":0.10852713,"special_character_ratio":0.2141901,"punctuation_ratio":0.06849315,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9744055,"pos_list":[0,1,2],"im_url_duplicate_count":[null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-08-12T05:57:35Z\",\"WARC-Record-ID\":\"<urn:uuid:9c02c43e-1436-4a69-bf47-2547e7fcfea7>\",\"Content-Length\":\"54342\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1ddf85b4-e12d-4d6f-9af7-a9c676cb58e6>\",\"WARC-Concurrent-To\":\"<urn:uuid:ebff89d8-1ef9-46e2-b718-20c15a3dc9be>\",\"WARC-IP-Address\":\"35.208.49.43\",\"WARC-Target-URI\":\"http://www.theexcelbible.com/excel-functions/excel-rows-function/\",\"WARC-Payload-Digest\":\"sha1:DKAE4OYO4XA3GVTLJZYTASWMGV6OLL2Y\",\"WARC-Block-Digest\":\"sha1:KMXG3TJHO2DU6SCQ67N3A7JBDG4N5TT3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-34/CC-MAIN-2020-34_segments_1596439738878.11_warc_CC-MAIN-20200812053726-20200812083726-00105.warc.gz\"}"}
https://researchwith.njit.edu/en/publications/weak-monge-amp%C3%A8re-solutions-of-the-semi-discrete-optimal-transpor
[ "# Weak Monge-Ampère solutions of the semi-discrete optimal transportation problem\n\nJean David Benamou, Brittany D. Froese\n\nResearch output: Chapter in Book/Report/Conference proceedingChapter\n\n1 Scopus citations\n\n## Abstract\n\nWe consider the Monge-Kantorovich optimal transportation (OT) problem between two measures, one of which is a weighted sum of Diracs. This problem is traditionally solved using geometric methods based on the computation of Laguerre cells. We review the duality between Brenier/Pogorelov weak solutions and the classical Aleksandrov measure formulation. It is well known that the OT problem can be reformulated as a Monge-Ampère elliptic partial differential equation. However, existing numerical methods for this non-linear PDE require the measures to have finite density. We propose a new formulation that couples the viscosity and Aleksandrov solution definitions and show that it is equivalent to the original problem. Moreover, we describe a local reformulation of the subgradient measure at the Diracs, which makes use of one-sided directional derivatives. This leads to a consistent, monotone discretization of the equation. Computational results demonstrate the correctness of this scheme when methods designed for conventional viscosity solutions fail.\n\nOriginal language English (US) Topological Optimization and Optimal Transport In the Applied Sciences de Gruyter 175-203 29 9783110430417 9783110439267 Published - Aug 7 2017\n\n## All Science Journal Classification (ASJC) codes\n\n• Mathematics(all)\n• Computer Science(all)\n• Engineering(all)\n\n## Keywords\n\n• Aleksandrov solutions\n• Finite difference methods\n• Monge-Ampère equation\n• Optimal transportation\n• Viscosity solutions\n\n## Fingerprint\n\nDive into the research topics of 'Weak Monge-Ampère solutions of the semi-discrete optimal transportation problem'. Together they form a unique fingerprint." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.851879,"math_prob":0.63123053,"size":1628,"snap":"2023-40-2023-50","text_gpt3_token_len":353,"char_repetition_ratio":0.10221675,"word_repetition_ratio":0.0,"special_character_ratio":0.2002457,"punctuation_ratio":0.058577407,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9667196,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-30T20:16:12Z\",\"WARC-Record-ID\":\"<urn:uuid:ea772dc5-f408-44d0-bcca-4efd8d3844d5>\",\"Content-Length\":\"47596\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5e72e9b0-0add-4624-bb72-cbd076e9625d>\",\"WARC-Concurrent-To\":\"<urn:uuid:c0a6b4a7-d237-440c-80d8-e7edb89ca301>\",\"WARC-IP-Address\":\"3.90.122.189\",\"WARC-Target-URI\":\"https://researchwith.njit.edu/en/publications/weak-monge-amp%C3%A8re-solutions-of-the-semi-discrete-optimal-transpor\",\"WARC-Payload-Digest\":\"sha1:CIW4JOOUMHR2W6KTQVCYP3D6CGQPUG3X\",\"WARC-Block-Digest\":\"sha1:ZBBKDFTA3RCA7IKM2AYIFUY26PUDKLL2\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233510707.90_warc_CC-MAIN-20230930181852-20230930211852-00808.warc.gz\"}"}
https://www.etchkshop.com/products/current-10ma
[ "# Current - 10A\n\ndatalogging sensors\n\n3167\n\n### +/- 10A high range current sensor for d.c. and low voltage a.c. measurements.\n\n1-minute Data Harvest capacitor - charge & discharge\n\nUse in conjunction with voltage sensors to investigate Ohm’s law, power and circuits. This high range sensor is very good for measuring start up current in incandescent, filament lamps and for studying fuses. For smaller currents use the 100 mA or 1A sensors.", null, "Teaching applications:\n• What changes the current in a circuit, e.g when using light bulbs?\n• Can you use bulb brightness to measure current?\n• Ohm’s law\n• Series and parallel circuits\n• Start up current of a lamp", null, "• Electrical component characteristics e.g. a light dependent resistor\n• Capacitor discharge, charge and energy stored\n• Power\n• Heat and electric current\n• Effect of current on Electromagnet strength Specific Heat Capacity for a liquid or solid\n\n• Offset removed by Tare function in software.\n• Be aware that some power supplies are ½ wave rectified producing an average rather than true DC. The Current Sensor will ‘pick up’ the fluctuations in voltage and current from this type of power supply.\n• The Current sensor should be placed in series with the circuit component through which the current is measured. Currents in either direction can be measured. The Current sensors have a very low resistance so that they introduce as little resistance as possible to the circuit.\n\nCurrent Sensor Manual  Doc No.: DS022 | Issue: 2\n\n### Sensor Ranges:\n\nRange Name Value Resolution Accuracy\nResistance/Impedance ORO18 (0.018 Ohms)\nCurrent ±10A 10mA\nMaximum Voltage ±27V\n\n### Contents/Details:\n\n±10 A (Resolution 10 mA)\nMaximum Voltage ±27 V\nResistance/Impedance ORO18 (0.018 Ohms)", null, "Fuses (Physics (11-14) eBook)\nThis activity involves pupils thinking, in detail, about how fuses are used in a circuit as a safety device. It makes use of the Current sensor to measure the current at which a fuse fails.\n\nFuses overcurrent (Physics (11-14) eBook)\nThis activity involves pupils thinking, in detail, about how fuses are used in a circuit as a safety device. How quickly does a fuse blow?\n\nCurrent vs, magnetic field. (Physics (11-14) eBook)\nA fixed size coil has current is passed through it. The induced magnetic field is measured for each current. The relationship between current and magnetic field strength can be studied.\n\nMagnetic field and the number of turns in coil. (Physics (11-14) eBook)\nA simple coils is used to measure the magnetic field created by a fixed current. The effect of the variable of number of turns is studied.\n\nElectromagnets and alternating current (Physics (11-14) eBook)\nhow does an electromagnet work if it uses a.c. as the power source?\n\nSpecific heat capacity of a liquid (Physics (14-18) : Electricity & Heat eBook)\nThis investigation will measure the specific heat capacity of a liquid (water). A sample of water of known mass is heated by known number of degrees by an electrical heater.\n\nStefan - Boltzmann law. (Physics (14-18) : Electricity & Heat eBook)\nThe experiment illustrates the Stefan - Boltzmann law. It does not give a value for the Boltzmann constant. A simple tungsten filament automotive lamp is used as the source of thermal radiation. The investigation tests if the radiation is really to the 4th power of temperature.\n\nCalibration of a thermometer (Seebeck effect) (Physics (14-18) : Electricity & Heat eBook)\nIn the investigation two junctions are used, one is placed in a constantly cold temperature the other has varying temperatures applied to it.\n\nSpecific heat capacity of a solid (Physics (14-18) : Electricity & Heat eBook)\nThis investigation will measure the specific heat capacity of a solid. A block of metal of known mass is heated by an electrical heater through a known number of degrees. The electrical energy required to create this temperature rise is determined and used to find the specific heat capacity.\n\nEfficiency of an electric motor / generator (Physics (14-18) : Electricity & Heat eBook)\nThe efficiency of a motor / generator is determined. This worksheets has details of the motor and generator calculations and method\n\nEfficiency of an electric generator (Physics (14-18) : Electricity & Heat eBook)\nDetermines the efficiency of a generator. Uses a falling mass as the energy source and records voltage and current to produce power curves.\n\nEfficiency of an electric motor (Physics (14-18) : Electricity & Heat eBook)\nuses a known mass lifted through a known distance compared to the power required by a motor to lift the mass.\n\nHow does the magnetic field strength vary with current? (Physics (14-18) : Electricity & Heat eBook)\nUses an ac power supply to provide a constantly changing current Using the ac power supply gives multiple repeats of the same experiment .\n\nForce on conductor in a magnetic field (BIL) (Physics (14-18) : Electricity & Heat eBook)\nIf a conducting wire is placed in a magnetic field and a current is passed, the wire will tend to move in a direction determined by Fleming’s left hand rule. The force making the wire move will be proportional to the current flow and the strength of the magnetic field.", null, "Why do bulbs blow (Science At Work (11-16) eBook)\nThis activity uses this familiar event to introduce the idea of power surges and to calculate resistance changes. It is a practical introduction to the relationship between voltage and current and the problem of correctly fusing devices in a home for safety.\n\nHK\\$ 550.00\n\n3167" ]
[ null, "https://farm4.staticflickr.com/3705/13775483944_2c75615228_m_d.jpg", null, "https://farm4.staticflickr.com/3740/13760404494_cc1926bb8b_m_d.jpg", null, "https://cdn.shopify.com/s/files/1/0214/4060/files/Physics_L2_11a-50_compact.jpg", null, "https://cdn.shopify.com/s/files/1/0214/4060/files/Physics_L3_S-at-W_02-50_compact.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8961755,"math_prob":0.9258012,"size":4178,"snap":"2020-34-2020-40","text_gpt3_token_len":894,"char_repetition_ratio":0.1360805,"word_repetition_ratio":0.12721893,"special_character_ratio":0.2190043,"punctuation_ratio":0.080213904,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9733098,"pos_list":[0,1,2,3,4,5,6,7,8],"im_url_duplicate_count":[null,7,null,null,null,4,null,4,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-18T16:13:20Z\",\"WARC-Record-ID\":\"<urn:uuid:a72c5b54-9a3e-4323-8683-2ad1938132b1>\",\"Content-Length\":\"402596\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8c7875bf-bd1f-40a8-b867-2ad97a6cbf39>\",\"WARC-Concurrent-To\":\"<urn:uuid:7d0ca1b4-7e28-46fe-8b6b-1c447af36242>\",\"WARC-IP-Address\":\"23.227.38.64\",\"WARC-Target-URI\":\"https://www.etchkshop.com/products/current-10ma\",\"WARC-Payload-Digest\":\"sha1:AWZJICWCDAY2RJNG4BAWNON2OUGGUHFI\",\"WARC-Block-Digest\":\"sha1:FC6JKVFNBOJ5OJ7J7EMPA5MSC6KDSZT6\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400188049.8_warc_CC-MAIN-20200918155203-20200918185203-00060.warc.gz\"}"}
https://math.stackexchange.com/questions/2557939/given-a-regular-language-l-and-turing-machine-t-is-it-decidable-that-math
[ "# Given a regular language $L$ and Turing machine $T$, is it decidable that $\\mathcal{L}_{acc}(T) \\subseteq L$?\n\nGiven a regular language $L$ and Turing machine $T$, is it decidable that $\\mathcal{L}_{acc}(T) \\subseteq L$?\n\nRice's Theorem states that for a given nontrivial property $P$ of a Turing machine, that given a Turing machine $T$ that property is undecidable.\n\nThus I am attempting to show that the property is nontrivial, meaning there are some Turing machines for which the property holds and some for which it doesn't.\n\nI was thinking about using the Chomsky hierarchy to show this, but I am a bit confused on how to go about it.\n\nChomsky hierarchy:\n\n$\\mathcal{R} \\subset \\mathcal{C} \\subset \\mathcal{T}_D \\subset \\mathcal{T}_R \\subset \\mathcal{L}_{all}$\n\nWhere $\\mathcal{R}$ is the regular set, $\\mathcal{C}$ is the context-free set, $\\mathcal{T}_D$ is the Turing-decideable set, $\\mathcal{T}_R$ is the Turing-recognizeable set, and $\\mathcal{L}_{all}$ is the set of all languages.\n\nSo I was thinking that since $L$ is regular, we could find some Turing machine $A$ whose accepting language is a subset of $L$ and some Turing machine $B$ whose accepting language is not a subset of $L$. This is what my intuition tells me, but I'm not sure how to show that as a proof.\n\nAm I on the right track here/can someone provide some insight on how to go about answering the question?\n\n## 1 Answer\n\nIt seems irrelevant that $L$ is regular; any $L$ other than the set of all strings will do what you want. Thanks to Rice's theorem, it's enough to construct (1) a Turing machine that accepts no strings at all (so $\\mathcal L_{acc}=\\varnothing\\subseteq L$) and (2) a Turing machine that accepts exactly one string $s$, chosen from the complement of $L$ (so $\\mathcal L_{acc}=\\{s\\}\\not\\subseteq L$). Both constructions are easy." ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9056872,"math_prob":0.99557316,"size":1267,"snap":"2019-13-2019-22","text_gpt3_token_len":340,"char_repetition_ratio":0.16072842,"word_repetition_ratio":0.00990099,"special_character_ratio":0.24940805,"punctuation_ratio":0.07569721,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99996054,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-05-26T08:56:17Z\",\"WARC-Record-ID\":\"<urn:uuid:b3de7613-6a72-48c6-a5bc-f4f068bc2bd6>\",\"Content-Length\":\"127688\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:76470dfd-68ed-48e9-837f-93daceebe3ba>\",\"WARC-Concurrent-To\":\"<urn:uuid:7f337850-3391-42e1-971b-cca578e9d600>\",\"WARC-IP-Address\":\"151.101.129.69\",\"WARC-Target-URI\":\"https://math.stackexchange.com/questions/2557939/given-a-regular-language-l-and-turing-machine-t-is-it-decidable-that-math\",\"WARC-Payload-Digest\":\"sha1:MWE7DKSQAY7VXDWELTZRTGQRMR6XIX7I\",\"WARC-Block-Digest\":\"sha1:P274IJK45ECUHVPIC4VHQJTYUFQF2FLX\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-22/CC-MAIN-2019-22_segments_1558232259015.92_warc_CC-MAIN-20190526085156-20190526111156-00239.warc.gz\"}"}
https://quantumcomputing.stackexchange.com/questions/13919/what-does-a-quantum-not-operation-do-to-an-entangled-set-of-qubits
[ "# What does a quantum NOT operation do to an entangled set of qubits?\n\nQuantum computing is not my field, so answers understandable to a layman will be most useful. Please forgive any incorrect terminology in my question!\n\nAssume that a set of the states of N qubits exists as a superposition of M entangled qubit states, such that the possible states in the superposition comprise a subset B of the universal set comprising all possible states of N unentangled qubits.\n\nIf a quantum NOT operation is applied to each of the N qubits in B to obtain a new superposition R, what is the result? Is it the set complementary to B? I suspect it should be the set $$R=B^C$$, containing a superposition of 2^N - M different possible states.\n\n• If you let your state be the W state $\\frac{1}{\\sqrt{3}}(\\vert 001\\rangle+\\vert 010\\rangle +\\vert 100\\rangle)$ then applying a $\\mathsf{NOT}$ gate to each of the three qubits would convert the state to $\\frac{1}{\\sqrt{3}}(\\vert 110\\rangle+\\vert 101\\rangle +\\vert 011\\rangle)$, right? This does not correspond to the uniform superposition over the $5$ basis states of the compliment of $W$, because you are missing $\\vert 000\\rangle$ and $\\vert 111\\rangle$. Sep 26 '20 at 22:49\n• I think that makes sense. Is there a different operation that does produce the complement of B? Sep 26 '20 at 22:58\n• I upvoted the question because I thought that was where you were going/what you were looking for, and I had to think about it for a bit but I believe the answer is \"not likely\". If there were, I think you could leverage it to have some really fast algorithms to solve certain problems way faster than we think possible. For example, you could evaluate a boolean function $f$ having only a single satisfying instance, measure the output of $f$ to collapse on the uniform superposition of unsatisfying assignments, and then do your operation to get back to the single satisfying assignment. Sep 26 '20 at 23:03\n• Also you may even be in an eigenstate of the $\\mathsf{NOT}$ operations. For example, suppose your superposition is a Bell state $\\frac{1}{\\sqrt{2}}(\\vert 00\\rangle+\\vert 11\\rangle)$. A $\\mathsf{NOT}$ operation (aka an $X$ gate) on both qubits puts you in the state $\\frac{1}{\\sqrt{2}}(\\vert 11\\rangle+ \\vert 00\\rangle)$, e.g. back to where you started, and not in any complement of the basis. Sep 26 '20 at 23:17\n• You read my mind. Super fast algorithms. But I'd like a definitive reason for why finding the complement can't be done. Sep 27 '20 at 0:48\n\nTo roll up some of the comments thread, initially we can consider letting our state have $$N=2$$ qubits entangled in one of the Bell states corresponding to a uniform superposition of the positive sum of $$M=2$$ of the four \"universal set\" basis states on $$2$$ qubits, say:\n\n$$\\vert\\Phi^+\\rangle=\\frac{1}{\\sqrt{2}}(\\vert 00\\rangle+\\vert 11\\rangle).$$\n\nFlipping both qubits together brings us to:\n\n$$\\frac{1}{\\sqrt{2}}(\\vert 11\\rangle+\\vert 00\\rangle);$$\n\ni.e. the same state.\n\nAlternatively we could consider acting on another Bell state, say:\n\n$$\\vert\\Phi^-\\rangle=\\frac{1}{\\sqrt{2}}(\\vert 00\\rangle-\\vert 11\\rangle).$$\n\nHowever, such a mapping provides:\n\n$$\\frac{1}{\\sqrt{2}}(\\vert 11\\rangle-\\vert 00\\rangle)=-\\vert\\Phi^-\\rangle,$$\n\nwhich is the same up to a global phase.\n\nThus, the bit-flip/$$\\mathsf{CNOT}$$ operation does not simply move from a superposition of a subset of the basis states to the corresponding complementary subset of basis states; indeed, the states may already be in an eigenstate of the $$\\mathsf{CNOT}$$ operation(s).\n\nThe OP's idea of partitioning a superposition into two sets and \"flipping between\" them runs against the BBBV theorem, which limits how easy it can be to find quick solutions to blackbox problems; it also might run against the no cloning theorem, which limits the ability to copy unknown states.\n\nAnother quick way to see the same is to consider a state such as the uniform superposition over all basis states - there the \"complementary\" set is null; thus, it would not make sense to flip between two complimentary sets.\n\n• I can see that the quantum NOT won't form the complementary set of superimposed states. Also, I can see that if the \"B\" superposition survives the operation, the no cloning theorem will be violated. That suggests, though, that if an operation does exist that can form the complement, it must necessarily \"consume\" the original \"B\" superposition. I will ask a new question about that. Sep 27 '20 at 22:09\n• Sure, but what is the \"complement\" of the uniform superposition over all basis states? How would such an operation work? The complement of the universe is the null set. Sep 27 '20 at 22:29\n• I'm not sure. Guess you can't say a qbit is a superposition of nothing! But maybe any single definite state would, in the quantum context, serve as the complement of the universal superposition. Sep 27 '20 at 22:59" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.85027915,"math_prob":0.9875864,"size":1546,"snap":"2021-31-2021-39","text_gpt3_token_len":409,"char_repetition_ratio":0.13164721,"word_repetition_ratio":0.0,"special_character_ratio":0.25937903,"punctuation_ratio":0.091836736,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99860066,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-28T09:52:26Z\",\"WARC-Record-ID\":\"<urn:uuid:47389b11-f92f-424a-982a-e69891d50ba4>\",\"Content-Length\":\"182523\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:73a6ecb5-1328-4f1d-bcd2-9a6e76f57932>\",\"WARC-Concurrent-To\":\"<urn:uuid:3cfa672a-8773-4bda-bef7-2254db0decef>\",\"WARC-IP-Address\":\"151.101.1.69\",\"WARC-Target-URI\":\"https://quantumcomputing.stackexchange.com/questions/13919/what-does-a-quantum-not-operation-do-to-an-entangled-set-of-qubits\",\"WARC-Payload-Digest\":\"sha1:QC223TFOZY2MHM5HCR57QC35ALO25OGD\",\"WARC-Block-Digest\":\"sha1:HC6QFVMBS4SQ6WZ3N2XF5CGE4252TD72\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780060677.55_warc_CC-MAIN-20210928092646-20210928122646-00069.warc.gz\"}"}
https://www.maa.org/press/periodicals/convergence/wibolds-ludus-regularis-a-10th-century-board-game-was-it-ever-played
[ "# Wibold's Ludus Regularis, a 10th Century Board Game - Was It Ever Played?\n\nAuthor(s):\nRichard Pulskamp (Xavier University) and Daniel Otero (Xavier University)\n\nThe game terminates when each virtue has been acquired by one of the players. It illustrates the so-called \"Coupon Collector's Problem.\" A collector desires to acquire a complete set of coupons where these coupons are obtained by independent random trials. The collector seeks the expected number of trials required and, more generally, the probability distribution of the number of trials.\n\nIn Wibold's game, a given trial consists of the roll of the three cubical dice and a roll of the tetrahedral die. There are therefore $6^3\\times 4=216\\times 4=864$ distinct equiprobable outcomes. However, a given virtue is acquired only if\n\n• Its corresponding numeric values arrive on the upper faces of the cubical dice.\n• Its vowels appear on the upper faces of the cubical dice.\n• At least one of its consonants appears on the bottom face of the tetrahedral die.\n\nWe illustrate the computation of the probability of obtaining a virtue with several examples.\n\nWe saw that PAX corresponds to the outcome $(1,2,3)$. This outcome may be obtained in the following 6 ways in which the cubical dice are rolled:\n\n A   IO   AEI A   OU   AEI E   EI   AEI E   OU   OUA I   EI   UAE I   IO   OUA\n\nAll yield the requisite vowel A.\n\nOne face of the tetrahedral die contains P, another X. Therefore, the probability of obtaining PAX in a trial is $\\frac{6}{216}\\times\\frac{2}{4}=\\frac{12}{864}$.\n\nIn the same manner, consider GAUDIUM. It corresponds to the outcome $(2,3,4)$ which may be obtained in the following 3 ways:\n\n EI   IO   AEI EI   OU   UAE IO   OU   OUA\n\nOnly two outcomes contain an A, an I, and a U twice. Three faces of the tetrahedral die contain one of the consonants D, G, and M. Therefore, the probability of obtaining GAUDIUM in a trial is $\\frac{2}{216}\\times\\frac{3}{4}=\\frac{6}{864}$.\n\nThe outcome $(1,1,1)$ corresponding to KARITAS contains the vowels A, E and I. A second roll is specially permitted to obtain the second requisite A. Regardless of choice of die, an A will appear on 4 of the faces. As for K, R, T, and S, the consonants occur on 3 of the faces of the tetrahedral die. Therefore, the probability of obtaining KARITAS in a trial is $\\frac{1}{216}\\times\\frac{4}{6}\\times\\frac{3}{4}=\\frac{2}{864}$.\n\nProceeding in this manner, the probability associated with each virtue may be obtained. These probabilities are deduced from Table 3 by dividing each number in the table by 864. The probability that a roll yields no virtue at all (listed as NULL in the Table) is $\\frac{447}{864}\\approx 0.52$. This spells trouble for the players of the game since slightly more than half the rolls do not advance the game.", null, "Table 3. Number of outcomes yielding each virtue\n\n#### Analysis of the Game\n\nFigure 2 illustrates a realization of the game. Note the long periods where the game fails to advance. Repeated simulation of the game shows that the play resolves into three distinct parts: an initial segment, in which virtues are acquired quickly by the players until about 40 of the 56 have been distributed; a middle section during which acqusition of virtues slows down, until only two or three unacquired virtues remains; and a final very slow period of play, extending over hundreds, and even sometimes thousands, of rolls, until the final virtue has been acquired. The reader is invited to try out the applet simulator (see Play the Game!) to confirm this phenomenon for himself or herself.", null, "Figure 2. A typical realization of Wibold's game\n\nThe expected number of rolls required to complete the game is given by the integral $\\int_0^\\infty\\left(1-\\prod_{i=1}^m 1-e^{-p_it}\\right)\\,dt=1656.05$ where here $m=57$ (the number of possible outcomes) and $p_i$ is the probability associated with each virtue. For the derivation of this formula, see .\n\nA simulation of the game conducted by one of the authors was repeated 10000 times in which the duration of the game was recorded. The relative frequency histogram displayed in Figure 3 shows the result. Here the sample mean of the number of rolls is 1656.126 and the sample standard deviation is 810.536. From these data, the estimated 95th percentile of total rolls is found to be 3222.", null, "Figure 3. Empirical distribution of the duration of Wibold's game\n\n#### Analysis of the Simplified Game\n\nIf the simplified game is played, a player receives all virtues having the same sum whenever that sum is cast. In the section on the enumeration of outcomes, we saw that there are 16 distinct sums ranging from 3 to 18 and we computed the number of ways that each can be obtained. These are shown in Table 4. The probability of each outcome is the number from the table divided by 216.", null, "Table 4. Number of ways to obtain each sum\n\nFigure 4 illustrates a realization of this abbreviated game. There is again a somewhat long period where the game fails to advance.", null, "Figure 4. A typical realization of Wibold's simplified game\n\nThe expected number of trials is computed to be $\\int_0^\\infty 1-\\prod_{i=1}^m\\left(1-e^{-p_it}\\right)\\,dt=338.45$ where here $m=18$ and $p_i$ is the probability associated with each sum.\n\nA simulation of the simplified game was repeated 10000 times in which the duration of the game was recorded. The relative frequency histogram displayed in Figure 5 shows its result. Here the sample mean of the number of trials is 339.595 and sample standard deviation is 233.200. From these data, the estimated 95th percentile of total rolls is found to be 806.", null, "Figure 5. Empirical distribution of the duration of Wibold's simplified game\n\nIf we assume that between 2 and 3 rolls can be cast and the corresponding virtue resolved during each minute of play, the duration of the game can be estimated.", null, "This suggests that the game as Wibold described it was never actually played or, if it was, play was necessarily distributed over several sessions. It is difficult to imagine players devoting ten or more hours of continuous attention to this activity despite its moral benefits. As Figure 2, above, indicates, the bulk of the virtues are acquired within the first hundred rolls. Most of the rest arrive within 500 rolls. The last few however may require thousands more.\n\nThe simplified game, on the other hand, could well have been played. Even though the pattern of play is entirely similar to the longer game (Figure 4), its expected duration is one-fifth as long, requiring only a few hours of play.\n\nRichard Pulskamp (Xavier University) and Daniel Otero (Xavier University), \"Wibold's Ludus Regularis, a 10th Century Board Game - Was It Ever Played?,\" Convergence (July 2014)\n\n## Dummy View - NOT TO BE DELETED\n\n•", null, "•", null, "•", null, "•", null, "•", null, "" ]
[ null, "https://www.maa.org/sites/default/files/images/upload_library/46/Otero-Pulskamp/Table-3_0.png", null, "https://www.maa.org/sites/default/files/images/upload_library/46/Otero-Pulskamp/Sim_1full_game.png", null, "https://www.maa.org/sites/default/files/images/upload_library/46/Otero-Pulskamp/Wibold-full.png", null, "https://www.maa.org/sites/default/files/images/upload_library/46/Otero-Pulskamp/Table-4-sums.png", null, "https://www.maa.org/sites/default/files/images/upload_library/46/Otero-Pulskamp/sim_1simple_game.png", null, "https://www.maa.org/sites/default/files/images/upload_library/46/Otero-Pulskamp/wibold-simple.png", null, "https://www.maa.org/sites/default/files/images/upload_library/46/Otero-Pulskamp/Table-after-4.png", null, "https://www.maa.org/sites/default/files/styles/flexslider_full/public/20.01.22%20MAA.Connect.Launch.Slider.png", null, "https://www.maa.org/sites/default/files/styles/flexslider_full/public/Committee.Nominations.2020.png", null, "https://www.maa.org/sites/default/files/styles/flexslider_full/public/MathFestRegOpening2020.png", null, "https://www.maa.org/sites/default/files/styles/flexslider_full/public/AMC%2010%20Prize%20Launch%20slider%20FINAL.png", null, "https://www.maa.org/sites/default/files/styles/flexslider_full/public/19.12.04%20NREUP%20app%20open%20slider.png", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.93347967,"math_prob":0.97065634,"size":6361,"snap":"2019-51-2020-05","text_gpt3_token_len":1522,"char_repetition_ratio":0.13843007,"word_repetition_ratio":0.09781577,"special_character_ratio":0.24571608,"punctuation_ratio":0.09928515,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99410456,"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,5,null,5,null,5,null,5,null,5,null,5,null,5,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-26T12:21:56Z\",\"WARC-Record-ID\":\"<urn:uuid:31ed52ca-c8f9-45bb-a7fa-958b27707704>\",\"Content-Length\":\"111800\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:db776f79-5ca7-4015-8b6f-160e45f1d698>\",\"WARC-Concurrent-To\":\"<urn:uuid:3a917eb0-2d66-4b98-b212-f79fbc9d4398>\",\"WARC-IP-Address\":\"192.31.143.111\",\"WARC-Target-URI\":\"https://www.maa.org/press/periodicals/convergence/wibolds-ludus-regularis-a-10th-century-board-game-was-it-ever-played\",\"WARC-Payload-Digest\":\"sha1:UNKKOL34QAZHRLUFNSIB6NQVHNXFCLKN\",\"WARC-Block-Digest\":\"sha1:3ASCE76FIT5QUMM3RI6URCJG6AEILZ34\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579251688806.91_warc_CC-MAIN-20200126104828-20200126134828-00396.warc.gz\"}"}
https://byjus.com/question-answer/what-volume-of-0-200-m-naoh-is-needed-to-react-completely-with-2-54/
[ "", null, "", null, "Question\n\nWhat volume of $$0.200\\ M\\ NaOH$$ is needed to react completely with $$2.54\\ g$$ iodine according to the equation:$$3I_{2} + 6NaOH \\rightarrow 5NaI + NaIO_{3} + 3H_{2}O$$\n\nA\n100.0mL", null, "", null, "B\n40.0mL", null, "", null, "C\n4.00mL", null, "", null, "D\n2.00mL", null, "", null, "Solution\n\nThe correct option is A $$100.0 mL$$No. of moles of iodine = wt. of iodine/ its molar mass. ⇒ no.of moles of iodine = 2.54 / 254 = 0.01 mol. According to the given equation, NaOH reacts with I₂ in 2 : 1 ratio.  ∴ No. of moles go NaOH = 0.01 x 2 = 0.02 mol We know that, Molarity = no. of moles of solute / Vol. of solution (in L) ⇒ Vol. of solution = no. of moles (of NaOH) / Molarity  ⇒ Vol. of solution = 0.02 / 0.2 = 0.1 L or 100 mL. Hence, option A is correct.Chemistry\n\nSuggest Corrections", null, "", null, "0", null, "", null, "Similar questions\nView More", null, "", null, "People also searched for\nView More", null, "" ]
[ null, "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDQiIGhlaWdodD0iNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4xIi8+", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4xIi8+", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4xIi8+", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4xIi8+", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4xIi8+", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4xIi8+", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4xIi8+", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4xIi8+", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null, "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.8948796,"math_prob":0.9997458,"size":426,"snap":"2022-05-2022-21","text_gpt3_token_len":172,"char_repetition_ratio":0.18246445,"word_repetition_ratio":0.021276595,"special_character_ratio":0.3943662,"punctuation_ratio":0.22123894,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99962133,"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],"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],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-01-18T12:32:04Z\",\"WARC-Record-ID\":\"<urn:uuid:e9ce2fcf-8dc5-4a7e-9af5-fc301b9611d3>\",\"Content-Length\":\"181982\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2fea65a4-fef3-4589-b450-2f4344a7e828>\",\"WARC-Concurrent-To\":\"<urn:uuid:15bbac7e-52b3-4bb8-adf2-f4cf45e4fdfb>\",\"WARC-IP-Address\":\"162.159.130.41\",\"WARC-Target-URI\":\"https://byjus.com/question-answer/what-volume-of-0-200-m-naoh-is-needed-to-react-completely-with-2-54/\",\"WARC-Payload-Digest\":\"sha1:TRQGIWIQTHMEBKIGVYQPDEWJBMRJQME4\",\"WARC-Block-Digest\":\"sha1:POCEZZQRISWTWCJ5TY5TREWZ3J7ZY6NG\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-05/CC-MAIN-2022-05_segments_1642320300849.28_warc_CC-MAIN-20220118122602-20220118152602-00316.warc.gz\"}"}
https://www.customnursingpapers.com/explain-computing-variance-several-numbers-like-analyzing-differences/
[ "# Explain why computing a variance of several numbers is like analyzing their differences\n\nTo arrive at the variance, one has to factor in the square from the difference of every point. This is gotten from the mean value of the entire set of data and then also includes the mean. If each of the points is found to be scattered more, then both the square values and mean will be high. If the points in the set of data are grouped together around the average value, the result will be low square values plus a lower value for the mean (Bakeman & Robinson, 2005).\n\nThis could be better understood if we analyze the formula for calculating the variance; ∑ (xi-µ) 2/n. In this formula, µ represents the mean and is also the measure of all the central point of the entire X's. The numerator is, therefore, a measure of the position that is about their common center. This essentially is their difference. One has to square the difference because if one merely had a summation of their summation, the result would be a zero, i.e. ∑ (xi-µ)/n = 0 (Norris, Qureshi, & Howitt, 2014).\n\nWhat’s more, having the differences squared would similarly give added weight to the bigger differences (>1) over, the smaller differences (<1).  Reason being, whenever one squares a number, the result is certainly always a bigger number. The only exception, in this case, is if one uses a fraction whereby the result is always a smaller fraction. For instance, e.g. 3^2=9, but (1/3) ^2=1/9.  Moreover, the division is done by n (or n-1 in the case of a sample).  This is because one is looking for the average difference and not only the summation of the difference (Norris, Qureshi, & Howitt, 2014).\n\nReferences\n\nBakeman, R. & Robinson, B. (2005). Understanding statistics in the behavioral sciences. Mahwah, NJ: Lawrence Erlbaum Associates.\n\nNorris, G., Qureshi, F., & Howitt, D. (2014). Introduction to Statistics with SPSS for Social Science. Florence: Taylor and Francis.\n\n(Visited 77 times, 1 visits today)" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.9135534,"math_prob":0.9856956,"size":1852,"snap":"2023-14-2023-23","text_gpt3_token_len":456,"char_repetition_ratio":0.12987013,"word_repetition_ratio":0.006329114,"special_character_ratio":0.24838012,"punctuation_ratio":0.16666667,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9971242,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-03-29T21:59:54Z\",\"WARC-Record-ID\":\"<urn:uuid:cd8f0d12-e72b-417f-8aba-e4e2ed5361f9>\",\"Content-Length\":\"158248\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1dc22f27-3bc4-42f2-aa98-4d970ed7bbd5>\",\"WARC-Concurrent-To\":\"<urn:uuid:8a638b06-68b9-4d2f-8624-231095888581>\",\"WARC-IP-Address\":\"192.99.100.166\",\"WARC-Target-URI\":\"https://www.customnursingpapers.com/explain-computing-variance-several-numbers-like-analyzing-differences/\",\"WARC-Payload-Digest\":\"sha1:GGM2FPXBGDCELXKAQEJQDUTQKJ6C4DJQ\",\"WARC-Block-Digest\":\"sha1:BNO3T3HBKLOUIYT2C3UUNHA2X54BGCPK\",\"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-00613.warc.gz\"}"}
https://metanumbers.com/583561
[ "## 583561\n\n583,561 (five hundred eighty-three thousand five hundred sixty-one) is an odd six-digits composite number following 583560 and preceding 583562. In scientific notation, it is written as 5.83561 × 105. The sum of its digits is 28. It has a total of 2 prime factors and 4 positive divisors. There are 530,500 positive integers (up to 583561) that are relatively prime to 583561.\n\n## Basic properties\n\n• Is Prime? No\n• Number parity Odd\n• Number length 6\n• Sum of Digits 28\n• Digital Root 1\n\n## Name\n\nShort name 583 thousand 561 five hundred eighty-three thousand five hundred sixty-one\n\n## Notation\n\nScientific notation 5.83561 × 105 583.561 × 103\n\n## Prime Factorization of 583561\n\nPrime Factorization 11 × 53051\n\nComposite number\nDistinct Factors Total Factors Radical ω(n) 2 Total number of distinct prime factors Ω(n) 2 Total number of prime factors rad(n) 583561 Product of the distinct prime numbers λ(n) 1 Returns the parity of Ω(n), such that λ(n) = (-1)Ω(n) μ(n) 1 Returns: 1, if n has an even number of prime factors (and is square free) −1, if n has an odd number of prime factors (and is square free) 0, if n has a squared prime factor Λ(n) 0 Returns log(p) if n is a power pk of any prime p (for any k >= 1), else returns 0\n\nThe prime factorization of 583,561 is 11 × 53051. Since it has a total of 2 prime factors, 583,561 is a composite number.\n\n## Divisors of 583561\n\n4 divisors\n\n Even divisors 0 4 2 2\nTotal Divisors Sum of Divisors Aliquot Sum τ(n) 4 Total number of the positive divisors of n σ(n) 636624 Sum of all the positive divisors of n s(n) 53063 Sum of the proper positive divisors of n A(n) 159156 Returns the sum of divisors (σ(n)) divided by the total number of divisors (τ(n)) G(n) 763.912 Returns the nth root of the product of n divisors H(n) 3.6666 Returns the total number of divisors (τ(n)) divided by the sum of the reciprocal of each divisors\n\nThe number 583,561 can be divided by 4 positive divisors (out of which 0 are even, and 4 are odd). The sum of these divisors (counting 583,561) is 636,624, the average is 159,156.\n\n## Other Arithmetic Functions (n = 583561)\n\n1 φ(n) n\nEuler Totient Carmichael Lambda Prime Pi φ(n) 530500 Total number of positive integers not greater than n that are coprime to n λ(n) 53050 Smallest positive number such that aλ(n) ≡ 1 (mod n) for all a coprime to n π(n) ≈ 47738 Total number of primes less than or equal to n r2(n) 0 The number of ways n can be represented as the sum of 2 squares\n\nThere are 530,500 positive integers (less than 583,561) that are coprime with 583,561. And there are approximately 47,738 prime numbers less than or equal to 583,561.\n\n## Divisibility of 583561\n\n m n mod m 2 3 4 5 6 7 8 9 1 1 1 1 1 6 1 1\n\n583,561 is not divisible by any number less than or equal to 9.\n\n## Classification of 583561\n\n• Arithmetic\n• Semiprime\n• Deficient\n\n### Expressible via specific sums\n\n• Polite\n• Non-hypotenuse\n\n• Square Free\n\n### Other numbers\n\n• LucasCarmichael\n\n## Base conversion (583561)\n\nBase System Value\n2 Binary 10001110011110001001\n3 Ternary 1002122111101\n4 Quaternary 2032132021\n5 Quinary 122133221\n6 Senary 20301401\n8 Octal 2163611\n10 Decimal 583561\n12 Duodecimal 241861\n16 Hexadecimal 8e789\n20 Vigesimal 3cii1\n36 Base36 cia1\n\n## Basic calculations (n = 583561)\n\n### Multiplication\n\nn×i\n n×2 1167122 1750683 2334244 2917805\n\n### Division\n\nni\n n⁄2 291780 194520 145890 116712\n\n### Exponentiation\n\nni\n n2 340543440721 198727870810587481 115969835018097240999841 67675472892995844055108213801\n\n### Nth Root\n\ni√n\n 2√n 763.912 83.5658 27.639 14.2304\n\n## 583561 as geometric shapes\n\n### Circle\n\nRadius = n\n Diameter 1.16712e+06 3.66662e+06 1.06985e+12\n\n### Sphere\n\nRadius = n\n Volume 8.32429e+17 4.2794e+12 3.66662e+06\n\n### Square\n\nLength = n\n Perimeter 2.33424e+06 3.40543e+11 825280\n\n### Cube\n\nLength = n\n Surface area 2.04326e+12 1.98728e+17 1.01076e+06\n\n### Equilateral Triangle\n\nLength = n\n Perimeter 1.75068e+06 1.4746e+11 505379\n\n### Triangular Pyramid\n\nLength = n\n Surface area 5.89839e+11 2.34203e+16 476476\n\n## Cryptographic Hash Functions\n\nmd5 b773a1d7297ba24c6504c021404defb4 1baa7ab0b6fe840b8c236d3c20a68a54453da9f9 e8275ae4215a9b523b26447dcde745e6a0a1693f17c3e5b0deb83a75598d11ef 7703bd7cfdde85321eb78b4576e75767e8e60fe880b4f947709c3a1856c80bc41b54dab22dfb22803fda0dd0612ee51fd1f5e1a5698b1d88157b1bbd042c5eac a05dcecbc157414a6ecf96aed73c1b6802bb1b68" ]
[ null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6210456,"math_prob":0.9835306,"size":4704,"snap":"2021-21-2021-25","text_gpt3_token_len":1649,"char_repetition_ratio":0.1193617,"word_repetition_ratio":0.032163743,"special_character_ratio":0.45620748,"punctuation_ratio":0.07496823,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9955455,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-06-23T11:32:03Z\",\"WARC-Record-ID\":\"<urn:uuid:533ca470-258f-4cba-9a47-145aff2d898b>\",\"Content-Length\":\"60173\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:da701512-433f-40e1-b851-006d3030a25c>\",\"WARC-Concurrent-To\":\"<urn:uuid:7e824f5c-a518-443a-9b0e-10185e1913ea>\",\"WARC-IP-Address\":\"46.105.53.190\",\"WARC-Target-URI\":\"https://metanumbers.com/583561\",\"WARC-Payload-Digest\":\"sha1:H2RGQZDCHJZTA5SERRR4OBKH6GTMZPLX\",\"WARC-Block-Digest\":\"sha1:GJPOI7YK4NNSKBRDSF7MUA4AQB2CEVEV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-25/CC-MAIN-2021-25_segments_1623488538041.86_warc_CC-MAIN-20210623103524-20210623133524-00583.warc.gz\"}"}
https://naturalfossil.com/t/electric-dipole-diagram
[ "", null, "# Electric dipole diagram\n\n## 133079 best questions for Electric dipole diagram\n\nWe've collected 133079 best questions in the «Electric dipole diagram» category so you can quickly find the answer to your question!\n\n## Content\n\nFAQ\n\nThose interested in the Electric dipole diagram category often ask the following questions:\n\n### 👉 Define electric dipole?\n\n(a) Derive an expression for the torque experienced by an electric dipole kept in a uniformly electric field.\n\n### 👉 What is electric dipole and electric dipole moment class 12?\n\nThe electric dipole is a pair of two equal and opposite charges, +q and −q are separated by a very small distance… The electric dipole moment of the electric dipole is defined as the product of the magnitude of one of the charges of the dipole and the separation distance between them.\n\n### 👉 A dipole electric field?\n\n029 - Electric Field of a DipoleIn this video Paul Andersen explains how vector addition can be used to determine the electric field of a dipole. PhET Simul...\n\n### 👉 Electric dipole moment example?\n\nThus, due to the unequal electron density distribution between Oxygen atmos, Ozone molecule is an example of electric dipole.\n\n### 👉 Electric dipole moment equation?\n\nThe electric dipole moment is a measure of the separation of positive and negative electrical charges within a system, that is, a measure of the system's overall polarity. The SI units for electric dipole moment are coulomb-meter (C⋅m); however, a commonly used unit in atomic physics and chemistry is the debye (D).\n\n## Video from Electric dipole diagram\n\nWe’ve collected for you several video answers to questions from the «Electric dipole diagram» category:\n\nVideo answer: Physics - e&m: magn field effects on moving charge & currents (11 of 26) p.e. of magnetic dipole", null, "Video answer: Gauss's law for a dipole moving through a box", null, "Video answer: Electric dipole moment, force, torque, potential energy, work, electric field, physics", null, "Video answer: 14.the magnetic dipole moment of a revolving electron | moving charges and magnetism | physics |", null, "## Top 133059 questions from Electric dipole diagram\n\nWe’ve collected for you 133059 similar questions from the «Electric dipole diagram» category:\n\n### Electric circuit diagram?\n\nA circuit diagram also called an electrical diagram, elementary diagram or electronic schematic is defined as a simplified graphical representation of an electrical circuit. Circuit diagrams are used for the design, construction and maintenance of electrical and electronic equipment. What is a Circuit Diagram?\n\n### Car electric diagram?\n\nCar electrical diagrams – is a part of website, where you can find automotive wiring diagrams for any car models, different electronics concepts. These automotive diagrams help you understand how electrical systems work. There are many wires and other difficult components to inspect electric system.To fix with electrical problems use car wiring diagrams.\n\n### Electric brakes diagram?\n\nBlue = Electric Brakes or Hydraulic Reverse Disable (See Blue Wire Notes below.) In the Trailer Wiring Diagram and Connector Application Chart below, use the first 5 pins, and ignore the rest. If your truck has a built-in 7-pin socket, but you only need 5 of the pins.\n\n### What is electric dipole in an uniform electric field?\n\nElectric Dipole in a Uniform Electric Field\n\n### Electric dipole behave when placed in an electric field?\n\nIf a permanent dipole is placed in an external electric field, it results in a torque that aligns it with the external field. If a nonpolar atom (or molecule) is placed in an external field, it gains an induced dipole that is aligned with the external field.\n\n### An electric field can induce an electric dipole antenna?\n\nAn electric field can induce an electric dipole in a neutral atom or molecule by pushing the positive and negative charge in opposite directions. The dipole moment of an induced dipole is directly proportional to the electric field. That is, p⃗ =αE⃗ , where α is called the polarizability of the molecule. A bigger field stretches the molecule farther and causes a larger dipole moment.\n\n### An electric field can induce an electric dipole circuit?\n\nThe Electric Field of a Dipole We have already seen an induced electric dipole. Natural dipoles also exist. What kind of electric field do they produce? Overall the dipole is neutral. But, the test charge (left) is closer to the positive charge than it is to the negative. A force results. Neil Alberding (SFU Physics) Physics 121: Optics, Electricity & Magnetism Spring 2010 1 / 16. The Electric Field of a Dipole We have already seen an induced electric dipole. Natural dipoles also exist ...\n\n### An electric field can induce an electric dipole definition?\n\nA dipole is a separation of opposite electrical charges and it is quantified by an electric dipole moment. The electric dipole moment associated with two equal charges …\n\n### An electric field can induce an electric dipole force?\n\nAn electric field can induce an electric dipole in a neutral molecule (or atom) by pushing the positive and negative charges inside the molecule in opposite directions. The dipole moment of the induced dipole is directly proportional to the electric field at the molecule. That is, p⃗ =αE⃗ , where p⃗ is the induced dipole moment, α is called the polarizability of the molecule, and E⃗ is the electric field at the molecule.A stronger electric field at the molecule results in a more ...\n\n### An electric field can induce an electric dipole potential?\n\nThus there is a net force to the right of Q δ E, or: (3.5.1) Force = p d E d x. Equation 3.5.1 describes the situation where the dipole, the electric field and the gradient are all parallel to the x -axis. In a more general situation, all three of these are in different directions. Recall that electric field is minus potential gradient.\n\n### What is electric dipole moment in physics?\n\nThe electric dipole moment is a vector quantity; it has a defined direction which is from the negative charge to the positive charge. Though, it is important to remember that this convention of direction is only followed in Physics.\n\n### What is electric field due to dipole?\n\nThe electric field at A due to an electric dipole, is perpendicular to the dipole moment vector →P, the angle θ is: ... The midpoint \\$q\\$ and \\$ - q\\$is called the center of the dipole. There is always an electric field accompanying a dipole and it is in two perpendicular directions along with it.\n\n### Which arrangement is called an electric dipole?\n\nWhich arrangement is called an electric dipole? two particles with the same magnitude of charge but with opposite signs Which describes the direction of the dipole …\n\n### Why is electric field of dipole nonzero?\n\nHere is the answer to your question: electric field is the negativegradient of the scalar potential. The negative sign came as a result because the potential difference is the work done per unit charge against the electrostatic force to move a charge from a to b.\n\n### Dipole kept in uniform electric field will?\n\nIn a uniform electric field, both the point charges comprising the dipole will experience force, equal in magnitude and opposite in direction. Though the net force will always be zero, the torque will be in same direction for both the charges. Hence torque will not be zero.\n\n### Electric field halfway between dipole isn't 0?\n\nWhat is not zero is the electric field intensity. It's the gradient of electric potential, and measured in volts per meter. This value is not zero at the center of a dipole: as you can see there's actually a quite steep slope at the origin of the graph. And here I believe lies the crux of your issue.\n\n### A rotating electric dipole can be used?\n\n3. Rotating Electric Dipole An electricdipole of momentp 0 lies in the x-y plane and rotates about the x axis with angular velocity ω. Calculate the radiation fields and the radiated power according to an observer at angle θ to the z axis in the x-z plane. Define nˆ towards the observer, so that nˆ ·ˆz =cosθ,andletˆl = ˆy × nˆ. Show that B rad = p 0k 2 e\n\n### An electric dipole when held at 30?\n\nAn electric dipole when held at 30° with respect to uniform electric field at 5 ×10^2 N/C experiences a torque of 2×10^12 Nm. The dipole moment of the - 44039276\n\n### A certain electric dipole consists of charges?\n\nSolution for A certain electric dipole consists of charges +q and –q separated by distance d, oriented along the x-axis as shown in the figure. Find an…\n\n### How to calculate electric dipole moment unit?\n\nunit of electric dipole moment is a0e, where a0 is the radius of the first Bohr orbit for hydrogen and e is the magnitude of the electronic charge. An atomic unit of dipole moment is about 8.478 × 10 −29 C m. I remark in passing that I have heard, distressingly often, some such remark as “The molecule has a dipole”. Since this sentence is not English, I do not know what it is intended to mean. It would be English to say that a molecule is a dipole or that it has a dipole moment. It ...\n\n### How to find electric field of dipole?\n\nElectric Field due to Dipole at any Point. Let’s take an arrangement for charges viz: electric dipole, and consider any point on the dipole. Let there be a system of two charges bearing + q and - q charges separated by some distance ‘2a’, and how to calculate the electric field of a dipole. Since the distance between the center of the dipole length and the point P is ‘r’ and the angle made by the line joining P to the center of the dipole is θ. We know that the electric field due ...\n\n### What is meant by an electric dipole?\n\nAn electric dipole is defined as a couple of opposite charges q and –q separated by a distance d… The simplest example of an electric dipole is a pair of electric charges of two opposite signs and equal magnitude separated by distance.\n\n### Relationship between electric dipole moment and polarization?\n\nThe induced dipole moment is the polarizability times the electric field vector. P → (ω) ∝ χ (1) (ω) E → (ω) The polarization is proportional to the susceptibility times the electric field vector. In spectroscopy we used the dipole approximation.\n\n### What happens when an electric dipole is weak electric field?\n\nIf you keep a dipole in a uniform electric field then it will experience rotational motion but will not experience any translatory motion however when you keep it in a non uniform electric field it will experience both rotational as well as translational motion because the net force acting on a dipole will be non zero while in case of uniform electric field it is zero.hence in a non uniform electric field the motion of the dipole will be a combination of translational as well as rotational ...\n\n### Dc electric generator diagram?\n\nDC Generator Power Diagram and Example of using it it determine the Power In, Power Out, or the Power Lost (Stray Losses and Copper Losses).\n\n### Electric can opener diagram?\n\nback of the can opener. If you are opening a standard seven-inch high no. 10 can, slide the can against the can opener drive gear and push the handle back to its locked-down position. The can opener motor will start after the can bead is captured between the knife and drive gear and before the knife pierces the can.\n\n### Electric motor capacitor diagram?\n\nStart and run capacitor wiring diagram.. Start Capacitors Amp Run Capacitors For Electric Motors Differences Explained By Temco I Need A Wiring Diagram For A 1p 230v 5 Hp Motor It Is Electric Motor Starting Capacitor Wiring Amp Installation\n\n### Free car electric diagram?\n\nAn electrical circuit diagram is a graphic representation of special characters and pictograms that are connected in parallel or in series. The electric scheme never shows the actual image of a set of objects, but only shows their connection with each other. Thus, if you know how to read the wiring diagrams correctly, you can understand the principle of operation of this or that device or ...\n\n### Ge electric dryer diagram?\n\nGe Dryer Wiring Diagram – ge clothes dryer wiring diagram, ge dryer motor wiring diagram, ge dryer timer wiring diagram, Every electric structure consists of various unique components. Each part ought to be placed and linked to different parts in particular way. If not, the arrangement won’t work as it ought to be.\n\n### What is the electric charge on dipole water?\n\nThe dipole moment arises because oxygen is more electronegative than hydrogen; the oxygen pulls in the shared electrons and increases the electron density around itself. This creates an electric dipole moment vector, with the partial negative charge on the oxygen atom.\n\n### What direction does electric field point on dipole?\n\nAnswer: When an electric dipole is placed in a uniform electric field, a torque develops and aligns the dipole in the direction of an electric field. However, the dipole doesn’t move as the net force acting on the dipole is zero.\n\n### What is si unit of electric dipole moment?\n\nWhat is the S.I unit of electric dipole moment? A dipole is a pair of equal and opposite charges separated by a small distance. .The dipole moment of a dipole is defined as the product of one of the charges and the distance between them. p = q × 2a. The SI composite unit of electric dipole moment is the ampere second meter.\n\n### What is a electric field point on dipole?\n\nElectric Field Of A Dipole What is Electric Field of a Dipole? A dipole is a separation of opposite electrical charges and it is quantified by an electric dipole moment.\n\n### What is the direction of electric dipole moment?\n\nWhat is the direction of dipole moment? The electric dipole moment, a vector, is directed along the line from negative charge toward positive charge. Dipole moments tend to point along the direction of the surrounding electric field. What is a permanent dipole moment?\n\n### When an electric dipole is held at an?\n\nWhen a dipole is placed in an electric field, the total force on it is the sum of the force on each charge due to the electric field. We will consider a dipole with charges +q and −q placed in an electric field →E. Hence, the net force on a dipole placed in an electric field is zero.\n\n### Why don't charges collide in electric dipole system?\n\nAnswered 2 years ago · Author has 2.7K answers and 679.5K answer views. Under electric field the neutral atom behaves like dipole. This is because there will be a slight displacement of electron orbit form the center of the nucleus, there by creating a dipole. So, there is no chance of collision.\n\n### How do you find the dipole electric field?\n\nThe formula for electric dipole moment for a pair of equal & opposite charges is p = qd, the magnitude of the charges multiplied by the distance between the two.\n\n### Why does electric dipole apprixmation break at interface?\n\nidentify or calculate a net interface dipole from the actual charge distribution inside the ISR, because for this purpose the charges do not need to be distinguished as to which side\n\n### Why does the electric field of a dipole?\n\nThe Electric Field of a Dipole We have already seen an induced electric dipole. Natural dipoles also exist. What kind of electric field do they produce? Overall the dipole is neutral. But, the test charge (left) is closer to the positive charge than it is to the negative. A force results.\n\n### Why is a dipole opposite the electric field?\n\nBecause the definition of electric dipole in physics (as opposed to chemistry!) is that it points from the negative end toward the positive end. In an electric field, the positive end tries to move in the direction of the E field. The negative end tries to move in the opposite direction.\n\n### Dipole energy when aligned with an electric field?\n\nThe electric potential energy of an electric dipole is _____ when the dipole is aligned with an electric field. The electric potential energy of an electric dipole is _____ when the dipole is aligned with an electric field. most positive most negative zero infinite undefined\n\n### Is the electric field 0 on a dipole?\n\n• Electric field: The electric field at the dipole axis is zero or 0. The electric field at the equatorial axis is not zero and should vary according to this equation: Electric field near the dipole\n\n### Equipotential surfaces associated with an electric dipole are?\n\nEquipotential surfaces associated with an electric dipole are a) spheres centered on the dipole b) cylinders with axes along the dipole moment. c) planes parallel to the dipole moment.\n\n### Electrostatics - why is electric field of dipole nonzero?\n\nThis is the 6th lecture of this our lecture series in which you will get a brief understanding about the electric field of dipole along a pont on equatorial ...\n\n### A dipole placed in an electric field will?\n\nA dipole placed in an electric field will… Try to align along the direction of the field. Try to align antiparallel to the direction of the field. try to align perpendicular to the field. none of these choices. in progress 0\n\n### How does dipole moment change with electric field?\n\nIn the absence of an electric field, the dipole moments are randomly oriented such that the net dipole moment of the system becomes zero. When an electric field is supplied to the system of charges inside the matter, the polar molecules align themselves in the direction of the electric field, and some net dipole moment develops, and the matter is said to be polarized.\n\n### How does a dipole behave in electric field?\n\nIn an electric field a dipole undergoes a torque, tending to rotate so that its axis becomes aligned with the direction of the electric field… The electric dipole moment, a vector, is directed along the line from negative charge toward positive charge.\n\n### How is dipole moment measured using electric field?\n\nIf charges -q and +q are separated by a distance r, the dipole moment has magnitude p = q r (1) The dipole is drawn from positive to negative charge, indicating the direction of electron drift. The polarization P of a sample is the average dipole moment per unit volume. In a dielectric sample, (or just “dielectric”), induction of electric charge occurs when the substance is placed in an electric field.\n\n### How to calculate electric dipole moment of water?\n\nAnswered 3 years ago. Bond angle of H2O molecule (©) = 104°. Bond length of each OH bond (r) = 96*10^-10m. Charge = 1.6 * 10^-19 coulomb. Bond moment of OH bond =. = (1.6 * 10^-19) * (96 * 10^-10) coulomb metre. = 153.6 * 10^-29 Cm. Since, 3.34 * 10^-30 Cm = 1 Debye." ]
[ null, "https://mc.yandex.ru/watch/85973180", null, "https://naturalfossil.com/media-b/urEBAiTr_-k.jpg", null, "https://naturalfossil.com/media-b/YVGtPPTHTxw.jpg", null, "https://naturalfossil.com/media-b/Mt9Rn2Ek0SU.jpg", null, "https://naturalfossil.com/media-b/sC0yFzwudfs.jpg", null ]
{"ft_lang_label":"__label__en","ft_lang_prob":0.89636046,"math_prob":0.98515385,"size":19132,"snap":"2021-43-2021-49","text_gpt3_token_len":4251,"char_repetition_ratio":0.26782727,"word_repetition_ratio":0.122790985,"special_character_ratio":0.21315074,"punctuation_ratio":0.10282424,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97518075,"pos_list":[0,1,2,3,4,5,6,7,8,9,10],"im_url_duplicate_count":[null,null,null,1,null,1,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-12-01T10:26:11Z\",\"WARC-Record-ID\":\"<urn:uuid:587123ae-c9e5-4820-81b8-4490d4dd2081>\",\"Content-Length\":\"142396\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:826c3788-b3a6-41f7-ab80-e44bb9e0a03c>\",\"WARC-Concurrent-To\":\"<urn:uuid:8e4ffb6c-48e3-4331-80a9-d45e39f47af7>\",\"WARC-IP-Address\":\"104.21.23.160\",\"WARC-Target-URI\":\"https://naturalfossil.com/t/electric-dipole-diagram\",\"WARC-Payload-Digest\":\"sha1:NRZVGQUSK3LH4ICHNZZZGIZFQSCECGXQ\",\"WARC-Block-Digest\":\"sha1:QTACFDZGKL27OHSNGDOSTNTNSUALZVND\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964359976.94_warc_CC-MAIN-20211201083001-20211201113001-00385.warc.gz\"}"}