URL
stringlengths 15
1.68k
| text_list
listlengths 1
199
| image_list
listlengths 1
199
| metadata
stringlengths 1.19k
3.08k
|
---|---|---|---|
https://www.dynamictutorialsandservices.org/2019/05/gauhati-university-question-papers_1.html | [
"## Monday, May 20, 2019",
null,
"2015\nFINANCIAL MANAGEMENT\nFull Marks: 80\nTime: 3 hours\n(The figures in the margin indicate full marks for the questions)\n1. Answer the following as directed: 1x10=10\na) In respect of raising finance from new issue market, companies are prohibited from issuing shares at a discount except in the case of issue of sweat equity shares. (State true or false)\nb) Key financial functions of a firm include the following except:\n1) Investment decision.\n3) Dividend decision.\n4) Financial decision.\nc) Use of debt capital to gain is known as:\n1) Financial leverage.\n2) Operating leverage.\n3) Financial operating leverage.\n4) Position and operating ratio.\nd) When fluctuations in sales are accompanied by disproportionate fluctuations in operating profit, it result, in:\n1) Operating leverage.\n2) Financial operating leverage.\n3) Fixed capital turnover.\n4) Capital operating turnover.\ne) In a capital budgeting decision, where a number of alternatives are competing for selection in terms of profitability, opportunity to accept and whether it is more desirable than an alternative opportunity, it is necessary:\n1) To make decision whether to accept or reject a given investment proposal.\n2) To rank them in order of profitability.\n3) To rank them in order of sensitive index.\n4) Both (1) and (3).\nf) Which is the correct description of the situation of a firm after conversion of debentures into equity?\n1) Increase in debt equity ratio and increase in the risk factor.\n2) Increase in debt equity ratio and decrease in the risk factor.\n3) Decrease debt equity ratio and increase in the risk factor.\n4) Decrease in debt equity ratio and decrease in the risk factor.\ng) The capital employed as working capital constantly, changes its form to drive the ‘business wheel’, it is known as the:\n1) Gross working capital.\n2) Circulating capital.\n3) Operating working capital.\n4) Fluctuating working capital.\nh) Current assets are twice the current liabilities. If the working capital is Rs. 20,000, current assets would be:\n1) Rs. 10,000.\n2) Rs. 40,000.\n3) Rs. 80,000.\n4) Rs. 20,000.\ni) Tandon Committee and Chore Committee recommendations related to\n1) Bank finance for working capital requirements.\n2) Guidelines from ministry of corporate affairs on working capital finance.\n3) SEBI guidelines for long term capital finance.\n4) RBI direction on SLR and CRR.\nj) The Profitability Index (PI) or Benefit Cost Ratio is the relation between the present value of future net cash flows and the initial cash outlay. (State true or false)\na) State the meaning of net working capital.\nb) State the sources of finance.\nc) State the meaning of financial leverage.\nd) State the meaning of pay-back period.\ne) State the use of credit policy in determining working capital level.\n3. Answer the following within 150-200 words each: 5x4=20\n(a) Define net present value. How is it computed in a capital budgeting decision?\nOr\nDiscuss the use of Internal Rate of Return (IRR).\n(b) Discuss the procedure for calculation of cost preference share capital.\nOr\nExamine the difference between financial leverage and operating leverage.\n(c) State the use of EBIT-EPS analysis in financial decisions.\nOr\nWhat is a wealth or value maximization objective or goal of an entity?\n(d) What is cost of capital? How is it ascertained?\n(a) Elaborate the determinants of capital structure of a corporate entity and the benefits of a balanced capital structure.\nOr\nWhat is over-capitalization? Discuss the consequences of over capitalization.\n(b) Explain the residual theory of dividend.\nOr\nExplain the measurement and interpretation of operating leverage with examples.\n(c) From the following details, estimate the working capital requirement of Sarbogh Manufacturing Company which is working at 60% capacity: 10\nProduction at 100% capacity: 24,000 unit p.a.\nSelling price: Rs. 100 per unit\nRaw material: Rs. 30 per unit\nLabour: Rs. 20 per unit.\nOverheads Rs. 14,000 per month including Rs. 2,000 as depreciation per month.\nProcessing time: One month\nInventory holding: One month\nRaw material: One month\nFinished goods: Two months\n\n-000-"
]
| [
null,
"https://3.bp.blogspot.com/-mqdbvGZUL9o/XOKuoBE1fvI/AAAAAAAAELw/7wxM8lUMEGEY6SsFsw2YXDGnz_MrrX4XQCLcBGAs/s1600/pco.png",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.8455937,"math_prob":0.9097752,"size":4290,"snap":"2020-34-2020-40","text_gpt3_token_len":978,"char_repetition_ratio":0.13485767,"word_repetition_ratio":0.047895502,"special_character_ratio":0.23636363,"punctuation_ratio":0.136419,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9630543,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-01T23:22:09Z\",\"WARC-Record-ID\":\"<urn:uuid:ebf688fb-e4b5-4f74-86cd-bcb369b9cd8b>\",\"Content-Length\":\"219015\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e09bd545-1a53-4e90-9d00-2183adf728b6>\",\"WARC-Concurrent-To\":\"<urn:uuid:8e08f2aa-9862-4ff5-9334-8dd6d3123218>\",\"WARC-IP-Address\":\"172.217.2.115\",\"WARC-Target-URI\":\"https://www.dynamictutorialsandservices.org/2019/05/gauhati-university-question-papers_1.html\",\"WARC-Payload-Digest\":\"sha1:X4YPHWJGWVO6X7QAJXZ62ZNJZLZ2RIHC\",\"WARC-Block-Digest\":\"sha1:3Z6BFP5RIGLHM3UUW22UJXNRH5J7LDSW\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600402132335.99_warc_CC-MAIN-20201001210429-20201002000429-00722.warc.gz\"}"} |
https://www.codecademy.com/courses/learn-data-structures-and-algorithms-with-python/lessons/recursion-python/exercises/recursion-python-big-o | [
"Learn\n\nExcellent job writing your first recursive function. Our next task may seem familiar so there won’t be as much guidance.\n\nWe’d like a function `factorial` that, given a positive integer as input, returns the product of every integer from 1 up to the input. If the input is less than 2, return 1.\n\nFor example:\n\n``````factorial(4)\n# 4 * 3 * 2 * 1\n# 24``````\n\nSince this function is similar to the previous problem, we’ll add an additional wrinkle. You’ll need to evaluate the big O runtime of the function.\n\nNote that if this is the first time you’re seeing Big O notation, this might be a bit confusing. You can learn much more about this topic in the Asymptotic Notation section of the Computer Science path. That being said, it is also fine to just continue working through this course and learn more about Big O later!\n\nWith an iterative function, we would consider how the number of iterations grows in relation to the size of the input.\n\nFor example you may ask yourself, are we looping once more for each new element in the list?\n\nThat’s linear or `O(N)`.\n\nAre we looping an additional number of elements in the list for each new element in the list?\n\nThat’s quadratic or `O(N^2)`.\n\nWith recursive functions, the thought process is similar but we’re replacing loop iterations with recursive function calls.\n\nIn other words, are we recursing once more for each new element in the list?\n\nThat’s linear or `O(N)`.\n\nLet’s analyze our previous function, `sum_to_one()`.\n\n``````sum_to_one(4)\n# recursive call to sum_to_one(3)\n# recursive call to sum_to_one(2)\n# recursive call to sum_to_one(1)\n\n# Let's increase the input...\n\nsum_to_one(5)\n# recursive call to sum_to_one(4)\n# recursive call to sum_to_one(3)\n# recursive call to sum_to_one(2)\n# recursive call to sum_to_one(1)``````\n\nWhat do you think? We added one to the input, how many more recursive calls were necessary?\n\nTalk through a few more inputs and then start coding when you’re ready to move on.\n\n### Instructions\n\n1.\n\nDefine the `factorial` function with one parameter: `n`.\n\nSet up a base case.\n\nThink about the input(s) that wouldn’t need a recursive call for your function.\n\nReturn the appropriate value.\n\n2.\n\nNow let’s consider the recursive step for `factorial()`.\n\nIf we’re in the recursive step that means `factorial()` has been invoked with an integer of at least 2.\n\nWe need to return the current input value multiplied by the return value of the recursive call.\n\nStructure the recursive call so it invokes `factorial()` with an argument one less than the current input.\n\n3.\n\nNice work, test out your function by printing the result of calling `factorial()` with 12 as an input.\n\nNow, change the input to a really large number, think big, and run the code.\n\nIf you chose an input large enough, you should see a `RecursionError`."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.8364673,"math_prob":0.94335157,"size":2713,"snap":"2021-31-2021-39","text_gpt3_token_len":625,"char_repetition_ratio":0.17054264,"word_repetition_ratio":0.10191083,"special_character_ratio":0.23516403,"punctuation_ratio":0.10037175,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9939511,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-16T21:28:59Z\",\"WARC-Record-ID\":\"<urn:uuid:8d3dcaef-85db-40b3-9d65-ba3428d3f876>\",\"Content-Length\":\"126770\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:da4caac7-085f-4c77-847d-637d7fe7c121>\",\"WARC-Concurrent-To\":\"<urn:uuid:1bd963f1-41f4-4f32-951d-f358adc83084>\",\"WARC-IP-Address\":\"104.18.199.63\",\"WARC-Target-URI\":\"https://www.codecademy.com/courses/learn-data-structures-and-algorithms-with-python/lessons/recursion-python/exercises/recursion-python-big-o\",\"WARC-Payload-Digest\":\"sha1:TMJFR4IAK2ZWGMLUQQMYMFCGLFFZJEFP\",\"WARC-Block-Digest\":\"sha1:NWGDJHVW22RLIAXFRVMW3VLACJQ5M4VF\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780053759.24_warc_CC-MAIN-20210916204111-20210916234111-00220.warc.gz\"}"} |
https://ipv6.snipplr.com/view/90681/a-pathfinding-example | [
"# Posted By\n\nnulldev on 02/18/15\n\n# Statistics\n\nViewed 245 times\nFavorited by 0 user(s)\n\n# A* Pathfinding Example\n\n/ Published in: Java",
null,
"",
null,
"An A* pathfinding algorithm in Java, taken from: http://software-talk.org/blog/2012/01/a-star-java/\n\nCopy this code and paste it in your HTML\n`/** * The main A Star Algorithm in Java. * * finds an allowed path from start to goal coordinates on this map. * <p> * This method uses the A Star algorithm. The hCosts value is calculated in * the given Node implementation. * <p> * This method will return a LinkedList containing the start node at the * beginning followed by the calculated shortest allowed path ending * with the end node. * <p> * If no allowed path exists, an empty list will be returned. * <p> * <p> * x/y must be bigger or equal to 0 and smaller or equal to width/hight. * * @param oldX x where the path starts * @param oldY y where the path starts * @param newX x where the path ends * @param newY y where the path ends * @return the path as calculated by the A Star algorithm */ public final List<T> findPath(int oldX, int oldY, int newX, int newY) { openList = new LinkedList<T>(); closedList = new LinkedList<T>(); openList.add(nodes[oldX][oldY]); // add starting node to open list done = false; T current; while (!done) { current = lowestFInOpen(); // get node with lowest fCosts from openList closedList.add(current); // add current node to closed list openList.remove(current); // delete current node from open list if ((current.getxPosition() == newX) && (current.getyPosition() == newY)) { // found goal return calcPath(nodes[oldX][oldY], current); } // for all adjacent nodes: List<T> adjacentNodes = getAdjacent(current); for (int i = 0; i < adjacentNodes.size(); i++) { T currentAdj = adjacentNodes.get(i); if (!openList.contains(currentAdj)) { // node is not in openList currentAdj.setPrevious(current); // set current node as previous for this node currentAdj.sethCosts(nodes[newX][newY]); // set h costs of this node (estimated costs to goal) currentAdj.setgCosts(current); // set g costs of this node (costs from start to this node) openList.add(currentAdj); // add node to openList } else { // node is in openList if (currentAdj.getgCosts() > currentAdj.calculategCosts(current)) { // costs from current node are cheaper than previous costs currentAdj.setPrevious(current); // set current node as previous for this node currentAdj.setgCosts(current); // set g costs of this node (costs from start to this node) } } } if (openList.isEmpty()) { // no path exists return new LinkedList<T>(); // return empty list } } return null; // unreachable }`",
null,
"Subscribe to comments"
]
| [
null,
"https://ipv6.snipplr.com/img/icon_sav.png",
null,
"https://ipv6.snipplr.com/img/loader.gif",
null,
"https://ipv6.snipplr.com/images/rss.png",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.6487825,"math_prob":0.7539979,"size":2772,"snap":"2020-34-2020-40","text_gpt3_token_len":740,"char_repetition_ratio":0.15498555,"word_repetition_ratio":0.12997903,"special_character_ratio":0.30555555,"punctuation_ratio":0.13163482,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.991543,"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\":\"2020-09-29T18:08:03Z\",\"WARC-Record-ID\":\"<urn:uuid:18d566b7-c740-493b-b46c-ab47a6b5f711>\",\"Content-Length\":\"35220\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:86e75fb0-869f-430b-8452-1701cee33712>\",\"WARC-Concurrent-To\":\"<urn:uuid:b33151b9-e19a-4db0-9b5a-2c86efdd3699>\",\"WARC-IP-Address\":\"104.25.39.44\",\"WARC-Target-URI\":\"https://ipv6.snipplr.com/view/90681/a-pathfinding-example\",\"WARC-Payload-Digest\":\"sha1:DBGE5Q5HU34UESKXKYJFEWP2CGC7WZJP\",\"WARC-Block-Digest\":\"sha1:LUWHJ2EPC3A6AOXNXHEHQNM6SX5MDRRE\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400202418.22_warc_CC-MAIN-20200929154729-20200929184729-00275.warc.gz\"}"} |
https://studylib.net/doc/13211059/a-find-the-3rd-degree-taylor-polynomial-t--x--that-approx... | [
"# a)Find the 3rd degree Taylor polynomial T (x) that approximates the",
null,
"```a)Find the 3rd degree Taylor polynomial T3 (x) that approximates the\nfunction f (x) = x−2 about the point a = 1.\nb) Us the Taylor inequality to estimate the accuracy of the approximation\nf (x) ∼ T3 (x) when .8 ≤ x ≤ 1.1.\nc) Write the Taylor Sereis expansion of f (x) = x−2 at a = 1. Write the result\nusing summation notation.\nd) For what values does the series found in part c) converge?\n1)\na) Solve for y in terms of x: ln(y 2 − 1) − ln(y − 1) = ln(sin x)).\nb) Evaluate the expression cos(arcsin( √x22 +4 )).\nc) For what values of x does the expression in b) make sense?\n2)\na) Simplify i27 .\n√\n√\nb) Write the complex number 8 2 − 8 2i in polar form.\nc) express e3+iπ/6 in the form a + bi.\nd) Compute the three cube roots of −1.\n3)\n4)\nCalculate the following integrals. Show your work.\nZ\nZ\nZ\nZ\nxe3x dx\n1\ndx\n(1 − x2 )3/2\n1\ndx\nx2 − 1\nZ 1/2\n0\nZ\nln(2x)dx\n√\n1\ndx\n1 − x2\nsin3 (2x) cos2 (2x)dx\n√\nZ\nx+4\ndx\nx2 + 5x − 6\nZ 1\n4\ne x\n√ dx\nx\na) Find the formula for the n-th term of the sequence −2/5, 4/25,\n−8/125, 16/625,...\ncos(nπ)\nb) Compute n→∞\nlim\nif the limit exists.\n2n + 1\n3 ln n\nc) Compute n→∞\nlim\nif the limit exists.\nln(n2 )\n5)\n1\nDetermine whether the series is absolutely convergent, conditionally convergent or divergent. If it is a gemoetric series find the limit. Justify your\n2n\n∞\n∞ n2 + 5n + 1\nX\nX\nn2\n(−1) n\n5\n5 − 2n2\nn=1\nn=1\n∞ 2n + 1\n∞\nX\nX\neπ π −n en\nn\n3\nn=1\nn=1\n6)\n(−1)n−1\n√\nn+1\nn=1\n3n3 + 2n2 + 3n4\n5\n2\nn=1 3n + 3n − 3n\n∞\nX\n∞\nX\na) Sketch the curve of the parametric equation x = t2 − 2t, y = t + 1,\n−1 ≤ t ≤ 3 and indicate with arrows the direction.\nb) Find points on the curve where the tangent is horizontal or vertical.\nc) Find the tangent to the curve at point (0, 3).\nd) Calculate the length of the curve.\n7)\nSketch the region that lies inside the curve r = 1 − cos θ and outside the\ncurve r = 3/2. Find the area.\n8)\n9)\nt).\nIf\ndy\n= 2yt and y(0) = 50, find y as a function of t (assume y > 0 for all\ndt\nLet f (x) = 2x + 12 cos(2x) for 0 ≤ x ≤ 4π.\na) Determine whether f is invertible.\nb) Give domain and range for f and f −1 .\ndf −1\nc) Calculate\n(x) 1 . (Note that f (π) =\nx= 2 +2π\ndx\n10)\n11)\nCalculate ii .\n2\n1\n2\n+ 2π.)\n```"
]
| [
null,
"https://s2.studylib.net/store/data/013211059_1-0ce8ff2a0aeb1c4dd7ec581ab001ac77-768x994.png",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.64041895,"math_prob":0.9997377,"size":2137,"snap":"2022-27-2022-33","text_gpt3_token_len":842,"char_repetition_ratio":0.108298175,"word_repetition_ratio":0.012048192,"special_character_ratio":0.413664,"punctuation_ratio":0.09021113,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9998497,"pos_list":[0,1,2],"im_url_duplicate_count":[null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-12T05:13:04Z\",\"WARC-Record-ID\":\"<urn:uuid:cfe3e4be-95e1-4883-9e3a-c2d14ce34a12>\",\"Content-Length\":\"41773\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:284235a8-83f0-420c-b0ba-fe71d0ffc519>\",\"WARC-Concurrent-To\":\"<urn:uuid:3707b751-33c0-4b56-a96f-73fe6af24331>\",\"WARC-IP-Address\":\"104.21.72.58\",\"WARC-Target-URI\":\"https://studylib.net/doc/13211059/a-find-the-3rd-degree-taylor-polynomial-t--x--that-approx...\",\"WARC-Payload-Digest\":\"sha1:HG7JYBCIZ6IIJSHJNDKT4DENNRXGWPGL\",\"WARC-Block-Digest\":\"sha1:TDK6HE7RNFMQKVLY36SOGUTSOZVXNV2O\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882571584.72_warc_CC-MAIN-20220812045352-20220812075352-00214.warc.gz\"}"} |
https://codegolf.stackexchange.com/questions/74789/vandermonde-determinant | [
"# Vandermonde Determinant\n\nGiven a vector of $$\\n\\$$ values $$\\(x_1,x_2,x_3,\\ldots,x_n)\\$$ return the determinant of the corresponding Vandermonde matrix\n\n$$\\V(x_1, x_2, \\ldots, x_n) = \\begin{bmatrix}1 & x_1 & x_1^2 & x_1^3 & \\ldots &x_1^{n-1} \\\\1 & x_2 & x_2^2 & x_2^3 & \\ldots &x_2^{n-1} \\\\ \\vdots & & & \\vdots & & \\vdots \\\\ 1 & x_n & x_n^2 & x_n^3 & \\ldots & x_n^{n-1}\\end{bmatrix}\\$$.\n\nThis determinant can be written as:\n\n$$\\\\det V(x_1, x_2, \\ldots x_n) = \\prod_\\limits{1 \\leqslant i < j \\leqslant n} (x_j - x_i)\\$$\n\n### Details\n\nYour program/function has to accept a list of floating point numbers in any convenient format that allows for a variable length, and output the specified determinant.\n\nYou can assume that the input as well as the output is within the range of the values your language supports. If you language does not support floating point numbers, you may assume integers.\n\n### Some test cases\n\nNote that whenever there are two equal entries, the determinant will be 0 as there are two equal rows in the corresponding Vandermonde matrix. Thanks to @randomra for pointing out this missing testcase.\n\n[1,2,2,3] 0\n[-13513] 1\n[1,2] 1\n[2,1] -1\n[1,2,3] 2\n[3,2,1] -2\n[1,2,3,4] 12\n[1,2,3,4,5] 288\n[1,2,4] 6\n[1,2,4,8] 1008\n[1,2,4,8,16] 20321280\n[0, .1, .2,...,1] 6.6586e-028\n[1, .5, .25, .125] 0.00384521\n[.25, .5, 1, 2, 4] 19.3798828\n\n• Can we assume the input is at least of length 2? Mar 4, 2016 at 21:00\n• @Pietu1998 No, see the first test case. Mar 4, 2016 at 21:02\n• Important test case: [1,2,2,3] => 0: two equal elements in the array, to test if the code checks self-difference (xi-xi) just by comparing to 0. Mar 5, 2016 at 11:10\n• @randomra Thank you, I totally forgot to include one of those. Whenever two entries are equal, the determinant will be 0 as there are two times the same row. Mar 7, 2016 at 20:39\n• @flawr The expected output was clear from your specs. I suggested the test case so answers not prepared for equal numbers could find their mistakes more easily. Mar 7, 2016 at 21:19\n\n# Jelly, 5 bytes\n\nœc2IP\n\n\nœc2 gets all combinations without replacement of length 2. I computes the difference list of each of those pairs, yielding a list like [, , , ..., ]. We take the Product.\n\nTry it here!\n\nIn modern Jelly, Œc works as a short form of œc2, so ŒcIP is a 4-byte solution.\n\n# Mathematica, 30 bytes\n\n1##&@@(#2-#&@@@#~Subsets~{2})&\n\n\nThis is an anonymous function.\n\nExpanded by Mathematica, it is equivalent to (1 ##1 & ) @@ Apply[#2 - #1 & , Subsets[#1, {2}], {1}] &. 1##& is an equivalent for Times (thanks tips page), which is applied to each distinct pair of elements from the input list, generated by Subsets[list, {2}]. Note that Subsets does not check for uniqueness of elements.\n\n# Ruby, 49 47 bytes\n\n->x{eval(x.combination(2).map{|a,b|b-a}*?*)||1}\n\n\nThis is a lambda function that accepts a real valued, one-dimensional array and returns a float or an integer depending on the type of the input. To call it, assign it to a variable then do f.call(input).\n\nWe get all combinations of size 2 using .combination(2) and get the differences for each pair using .map {|a, b| b - a}. We join the resulting array into a string separated by *, then eval this, which returns the product. If the input has length 1, this will be nil, which is falsey in Ruby, so we can just ||1 at the end to return 1 in this situation. Note that this still works when the product is 0 because for whatever reason 0 is truthy in Ruby.\n\nVerify all test cases online\n\nSaved 2 bytes thanks to Doorknob!\n\n## J, 13 bytes\n\n-/ .*@(^/i.)#\n\n\nThis is a monadic function that takes in an array and returns a number. Use it like this:\n\n f =: -/ .*@(^/i.)#\nf 1 2 4\n6\n\n\n## Explanation\n\nI explicitly construct the Vandermonde matrix associated with the input array, and then compute its determinant.\n\n-/ .*@(^/i.)# Denote input by y\n# Length of y, say n\ni. Range from 0 to n - 1\n^/ Direct product of y with the above range using ^ (power)\nThis gives the Vandermonde matrix\n1 y0 y0^2 ... y0^(n-1)\n1 y1 y1^2 ... y1^(n-1)\n...\n1 y(n-1) y(n-1)^2 ... y(n-1)^(n-1)\n-/ .* Evaluate the determinant of this matrix\n\n• I thought whitespace was non-crucial in J... Mar 5, 2016 at 18:02\n• @CᴏɴᴏʀO'Bʀɪᴇɴ The determinant is a special case that requires a separating space, since . is also a modifier character. Same for : on its own. Mar 5, 2016 at 18:29\n• Oh! That's cool. Mar 5, 2016 at 18:30\n• @CᴏɴᴏʀO'Bʀɪᴇɴ Actually, I think that is exactly what makes J uncool. J stands for Jot, i.e. a dot or little ring (APL's ∘), as in jotting with J... The incredibly overloaded . and : (which again is visually the same as two stacked .s) makes J hard to read (for me). How much more so when whitespace next to the dots determine meaning! J's . must be the most overloaded symbol in all of computing history: I count 53 distinct meanings of . and 43 (61 if you count all of _9: to 9:) distinct meanings of :. Yukk. ;-)\nMar 7, 2016 at 13:28\n• @Nᴮᶻ it may help to think of the . as its own token; thus, it could, without a white space, be mistaken for another operator. If J is not for you, however, that's understandable. Mar 7, 2016 at 17:50\n\n# MATL, 9\n\n!G-qZRQpp\n\n\nTry it online!\n\nThis computes a matrix of all differences and then keeps only the part below the main diagonal, making the other entries 1 so they won't affect the product. The lower triangular function makes the unwanted elements 0, not 1. So we subtract 1, take the lower triangular part, and add 1 back. Then we can take the product of all entries.\n\nt % take input. Transpose\nG % push input again\n- % subtract with broadccast: matrix of all pairwise differences\nq % subtract 1\nZR % make zero all values on the diagonal and above\np % product of all columns\np % product of all those products\n\n• It's unfortunate but 2Xn!dp only seems to work with single values when the value is greater than or equal to 2... I had written it myself trying to beat Jelly :P Mar 4, 2016 at 21:42\n• @FryAmTheEggman Awww. You are right. Thanks for the heads-up! Mar 4, 2016 at 21:48\n• Yeah, I figured that was the problem. I'd consider trying something like adding a wrapper when you get Xn to do a check like if size(arg) == [1,1] ... or something. I'm too lazy to look trough the source, but (hopefully) it shouldn't be that difficult. Mar 4, 2016 at 21:52\n• @FryAmTheEggman In fact I'm not sure that's the problem (that's why I quickly edited my comment). If the first input is a number then the second input should be 1 or 0 and then it makes no difference if the first input is interpreted as array or as a number. The real problem is, second input can't exceed the array size. \"How many ways are there to choose 2 elements out of 1 element\". In this case the array/number difference matters: if first input is an array return [](empty array), if it's a number return 0. I guess I'll return [], because then p forces the other interpretation Mar 4, 2016 at 22:01\n• @FryAmTheEggman I think I'll split the function in two versions. Thanks again! Mar 4, 2016 at 22:44\n\n## Pyth, 151312 11 bytes\n\n*F+1-M.c_Q2\n\n Q take input (in format [1,2,3,...])\n_ reverse the array: later we will be subtracting, and we want to\nsubtract earlier elements from later elements\n.c 2 combinations of length 2: this gets the correct pairs\n-M map a - a over each subarray\n+1 prepend a 1 to the array: this does not change the following\nresult, but prevents an error on empty array\n*F fold over multiply (multiply all numbers in array)\n\n\nThanks to @FryAmTheEggman and @Pietu1998 for a byte each!\n\n• *F on an empty array should really be 1. Mar 6, 2016 at 16:28\n\n# Mathematica, 32 bytes\n\nDet@Table[#^j,{j,0,Length@#-1}]&\n\n\nI was surprised not to find a builtin for Vandermonde stuff. Probably because it's so easy to do it oneself.\n\nThis one explicitly constructs the transpose of a VM and takes its determinant (which is of course the same as the original's). This method turned out to be significantly shorter than using any formula I know of.\n\n• Does not work if the list contains a zero element (giving 0^0 for j=0). Oct 7, 2020 at 12:24\n• \"I was surprised not to find a builtin for Vandermonde stuff.\" There is, but is somewhat hidden (and undocumented). Moreover, it does not make it shorter ;) : Det@*LinearAlgebraPrivateVandermondeMatrix. Oct 11, 2020 at 12:33\n\nf(h:t)=f t*product[x-h|x<-t]\nf _=1\n\n\nA recursive solution. When a new element h is prepended to the front, the expression is multiplied by the product of x-h for each element x of the list. Thanks to Zgarb for 1 byte.\n\n# APL (Dyalog Extended), 19 bytes\n\n{×/-∊(⍳≢⍵)↓¨↓∘.-⍨⍵}\n\n\nDfn producing the pairs, then taking the product.\n\n↓∘.-⍨⍵ all pairs (with repeats)\n\n(⍳≢⍵) range from 1 to the length of the input\n\n↓¨ drop 1 2 3 4... elements to avoid repeats\n\n-∊ flatten and negate\n\n×/ take the product\n\nTry it online!\n\n• ↓∘.-⍨⍵ -> ⍵-⊂⍵ and train: ×/∘∊⍳∘≢↓¨⊂-⊢\n– ngn\nOct 6, 2020 at 21:48\n• That's pretty clever, should I update my post? Oct 7, 2020 at 9:07\n• thanks. sure, update and explain it if you want. i have no intention of posting separately.\n– ngn\nOct 7, 2020 at 13:52\n\n# Husk, 12 9 8 bytes\n\nΠṁhṠzM-ḣ\n\n\nTry it online!\n\n(Apparently the only one of the three which was correct)\n\n-3 bytes by calculating difference instead of pairs.\n\n-1 from Jo King\n\n## Explanation\n\nΠṁhṠzM-ḣ\nṠz zip the input with\nḣ prefixes\nM- subtract the input from each\nṁh remove first element of each, join\nΠ product\n\n• @Shaggy the longest one was the correct one :P Oct 6, 2020 at 16:02\n• 8 bytes through using prefixes instead\n– Jo King\nOct 7, 2020 at 4:35\n\n# Matlab, 26 bytes\n\n(noncompeting)\n\nStraightforward use of builtins. Note that (once again) Matlab's vander creates Vandermonde matrices but with the order of the rows flipped.\n\n@(v)det(fliplr(vander(v)))\n\n• Why noncompeting? Mar 4, 2016 at 20:35\n• Because I'm the one who made this challenge, I just wanted to provide this so people can try their own examples. Mar 4, 2016 at 20:36\n• Isn't Det(flipped rows) = (-1)^n Det(original)? Mar 4, 2016 at 21:22\n• I'm not quite sure, as the determinant switches sign whenever you switch two columns or rows. Mar 4, 2016 at 22:24\n• @hYPotenuser - Replace n with n+1. All you're doing is multiplying by a matrix P which is all zeros except for the diagonal going from the bottom left to top right (so you want det(P * vander(v))= det(P) det(vander(v))). By expansion along the first column or whatever, you'll see det(P) = (-1)^(n+1). Apr 24, 2018 at 2:39\n\n# Perl, 38 41 bytes\n\nInclude +1 for -p\n\nGive the numbers on a line on STDIN. So e.g. run as\n\nperl -p vandermonde.pl <<< \"1 2 4 8\"\n\n\nUse an evil regex to get the double loop:\n\nvandermonde.pl:\n\n$n=1;/(^| ).* (??{$n*=$'-$&;A})/;*_=n\n\n\n# Pari/GP, 35 bytes\n\na->matdet(matrix(#a,,i,j,a[i]^j--))\n\n\nTry it online!\n\n## Rust, 86 bytes\n\n|a:Vec<f32>|(0..a.len()).flat_map(|x|(x+1..a.len()).map(move|y|y-x)).fold(1,|a,b|a*b);\n\n\nRust, verbose as usual...\n\nExplanation will come later (it's pretty straightforward, though).\n\n f x=product[x!!j-x!!i|j<-[1..length x-1],i<-[0..j-1]]\n\n\nUsage example: f [1,2,4,8,16] -> 20321280.\n\nGo through the indices j and i in a nested loop and make a list of the differences of the elements at position j and i. Make the product of all elements in the list.\n\nOther variants that turned out to be slightly longer:\n\nf x=product[last l-i|l<-scanl1(++)$pure<$>x,i<-init l], 54 bytes\n\nimport Data.List;f i=product[y-x|[x,y]<-subsequences i], 55 bytes\n\n## CJam, 16 bytes\n\n1l~{)1$f-@+:*\\}h In response to A Simmons' post, despite CJam's lack of a combinations operator, yes it is possible to do better :) -1 byte thanks to @MartinBüttner. 1 Push 1 to kick off product l~ Read and evaluate input V { }h Do-while loop until V is empty ) Pop last element of V 1$ Copy the prefix\nf- Element-wise subtract each from the popped element\n@+ Add the current product to the resulting array\n:* Take product to produce new product\n\\ Swap, putting V back on top\n\n\n## JavaScript (ES6), 61 bytes\n\na=>a.reduce((p,x,i)=>a.slice(0,i).reduce((p,y)=>p*(x-y),p),1)\n\n\nI tried an array comprehension (Firefox 30-57) and it was 5 bytes longer:\n\na=>[for(i of a.keys(p=1))for(j of Array(i).keys())p*=a[i]-a[j]]&&p\n\n\nThe boring nested loop is probably shorter though.\n\n# 05AB1E, 6 bytes\n\nη-€¨˜P\n\n\nTry it online!\n\nCommented:\n\nη # prefixes of the input\n- # subtract those from the input\n€ # for each sublist:\n¨ # remove the last element (i=j)\n˜ # flatten the list\nP # take the product\n\n\nThere are a few alternatives at the same length, such as ηõš-˜P.\n\n# Desmos, 10+39=49 bytes\n\nn=a.length\n\\prod_{i=1}^n\\prod_{j=i+1}^n(a[j]-a[i])\n\n\nView it in Desmos\n\nThere's not a lot to be golfed here other than \"caching\" a.length in an array, but I would like to point out that Desmos can handle the ... notation in arrays!\n\n# Japt v1.4.5, 8 bytes\n\nà2 ®rnÃ×\n\n\nTry it (includes all test cases)\n\nà2 ®raÃ× :Implicit input of array\nà2 :Combinations of length 2 (using v1.4.5 avoids a bug here in later versions)\n® :Map\nr : Reduce by\nn : Inverse subtraction\nà :End map\n× :Reduce by multiplication\n\n• [-13513] returns -13513. Oct 6, 2020 at 14:16\n• I cobbled this together based on other solutions, @Razetime, 'cause I don't \"speak\" mathematical notation*; other than the fact that the a should be an n, though (which wouldn't affect this test case), I can't figure out what the fix should be. The insomnia probably isn't helping. (*I really wish people would stop relying on it as the sole means of defining their spec). Oct 6, 2020 at 15:40\n• can relate very much to that. Oct 6, 2020 at 15:41\n• Figured it out: Japt v1.4.6 introduced a bug whereby attempting to get the combinations of length n of an array with length less than n returns the original array instead of the empty array so I was able to \"fix\" it by downgrading to v1.4.5. Thanks, @Razetime Oct 6, 2020 at 15:55\n• Nice work done! +1 Oct 6, 2020 at 15:57\n\n# Python 3, 91 bytes (does NOT work yet)\n\nlambda x:eval(\"*\".join([str(b-a) for a,b in combinations(x,2)]))or 1\nfrom itertools import*\n\n\nTry it online!\n\nFixing currently.\n\n• you don't ned the brackets and you dont need the space between ) and for Jan 1 at 14:54\n\n# Factor + math.matrices math.matrices.laplace, 45 bytes\n\n[ dup length vandermonde-matrix determinant ]\n\n\nAttempt This Online!\n\n1q~La\\{1$f++}/{,2=},{~-}%~]La-:* I'm sure someone can golf this better in CJam... The main issue is that I can't see a good way of getting the subsets so that uses up most of my bytes. This generates the power set (using an idea by Martin Büttner) and then selects the length-2 elements. # R, 41 bytes function(v)det(outer(v,1:sum(v|1)-1,\"^\")) Try it online! I was surprised not to see an R answer here! # Perl 5-pa, 36 bytes $\\=1;map$\\*=$q-$_,@F while$q=pop@F}{\n\n\nTry it online!\n\n# Arn, 27 bytes\n\nùW®š¡'‡ùHÓáâ§○iò;êñ⁺bì&B\"\\$7\n\n\nTry it!\n\n# Explained\n\nUnpacked: *{*v{v-:{}\\.{}\\[_ _{.{}->--((:s)#\n\n* ... \\ % Fold with multiplication after mapping\n{ % Begin block\n* ... \\\nv{ % Block with key of v\nv % Variable with identifier v\n- % Minus\n_ % Variable intialized to STDIN; implied\n} % End block\n_ % Implied\n}\n[ % Begin sequence\n_ % Entry equal to STDIN\n_{ % Block with key of _ (needed otherwise the first _ will be grabbed)\n_ % Last entry; implied\n}\n-> % Of length\n-- % Reduced by one\n( % Begin expression\n(\n_ % Implied\n:s % Split on spaces\n) % End expression\n# % Length\n) % Implied\n] % End of sequence; implied\n\n\nHad to fix a few major bugs I only found because of this challenge! Also made me consider adding a few quality of life features (including an upgrade to precedence and # automatically casting to a vector).\n\nSpeaking of bugs, I am 100% certain this works on the downloadable version, and it should be working on the online version very soon."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.61354244,"math_prob":0.92563796,"size":1434,"snap":"2023-40-2023-50","text_gpt3_token_len":569,"char_repetition_ratio":0.10769231,"word_repetition_ratio":0.0,"special_character_ratio":0.4344491,"punctuation_ratio":0.21203439,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9831603,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-06T12:13:29Z\",\"WARC-Record-ID\":\"<urn:uuid:6df97efb-702e-497a-a32f-851bbe201965>\",\"Content-Length\":\"472384\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:56fba450-4862-46d0-9ab0-5e04a7c82617>\",\"WARC-Concurrent-To\":\"<urn:uuid:c65bca29-031d-45cb-9198-fe14b1b89c02>\",\"WARC-IP-Address\":\"172.64.144.30\",\"WARC-Target-URI\":\"https://codegolf.stackexchange.com/questions/74789/vandermonde-determinant\",\"WARC-Payload-Digest\":\"sha1:RMHOHBIS3XCYYALSE7LRTGBFSUTXWGSY\",\"WARC-Block-Digest\":\"sha1:IN7YR6BVA2DAAS3SMTFGUW52UKJYXNYB\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100593.71_warc_CC-MAIN-20231206095331-20231206125331-00645.warc.gz\"}"} |
https://cavale.enseeiht.fr/redmine/projects/lustrec-tests/repository/lustrec-tests/revisions/c3af303290bdd0d060ff28352063282fd6a4def9/annotate/tests/cocospec/StopwatchSpec.lus | [
"### Profile\n\n1 2 3 fd5381b7 Bourbouh ```------------------------- ``` ```-- Auxiliary operators -- ``` ```------------------------- ``` ```node Even (N: int) returns (B: bool) ; ``` ```let ``` ``` B = (N mod 2 = 0) ; ``` ```tel ``` ```node ToInt (X: bool) returns (N: int) ; ``` ```let ``` ``` N = if X then 1 else 0 ; ``` ```tel ``` ```node Count (X: bool) returns (N: int) ; ``` ```let ``` ``` N = ToInt(X) -> ToInt(X) + pre N ; ``` ```tel ``` ```node Sofar ( X : bool ) returns ( Y : bool ) ; ``` ```let ``` ``` Y = X -> (X and (pre Y)) ; ``` ```tel ``` ```node Since ( X, Y : bool ) returns ( Z : bool ) ; ``` ```let ``` ``` Z = X or (Y and (false -> pre Z)) ; ``` ```tel ``` ```node SinceIncl ( X, Y : bool ) returns ( Z : bool ) ; ``` ```let ``` ``` Z = Y and (X or (false -> pre Z)) ; ``` ```tel ``` ```node Increased (N: int) returns (B: bool) ; ``` ```let ``` ``` B = true -> N > pre N ; ``` ```tel ``` ```node Stable (N: int) returns (B: bool) ; ``` ```let ``` ``` B = true -> N = pre N ; ``` ```tel ``` ```------------------------------- ``` ```-- Stopwatch high-level spec -- ``` ```------------------------------- ``` 6c964a9b ploc c3af3032 Bourbouh fd5381b7 Bourbouh ```contract stopwatchSpec ( toggle, reset : bool ) returns ( time : int ) ; ``` ```let ``` ``` -- the watch is activated initially if the toggle button is pressed ``` ``` -- afterwards, it is activated iff ``` ``` -- it was activated before and the toggle button is unpressed or ``` ``` -- it was not activated before and the toggle button is pressed ``` ``` var on: bool = toggle -> (pre on and not toggle) ``` ``` or (not pre on and toggle) ; ``` ``` ``` ``` -- we can assume that the two buttons are never pressed together ``` ``` assume not (toggle and reset) ; ``` ``` ``` ``` -- the elapsed time starts at 1 or 0 depending ``` ``` -- on whether the watch is activated or not ``` ``` guarantee (on => time = 1) -> true ; ``` ``` guarantee (not on => time = 0) -> true ; ``` ``` -- the elapsed time is always non-negative ``` ``` guarantee time >= 0 ; ``` ``` ``` ``` -- if there is no reset now and there was an even number of counts since the last reset ``` ``` -- then the current elapsed time is the same as the previous one ``` ``` guarantee not reset and Since(reset, Even(Count(toggle))) ``` ``` => Stable(time) ; ``` ``` -- if there is no reset now and there was an odd number of counts since the last reset ``` ``` -- then the current elapsed time is greater than previous one ``` ``` guarantee not reset and Since(reset, not Even(Count(toggle))) ``` ``` => Increased(time) ; ``` ```-- guarantee true -> not Even(Count(toggle)) and Count(reset) = 0 => time > pre time ; ``` ``` ``` ``` -- the watch is in resetting mode if the reset button is pressed ``` ``` -- while in that mode, the elapsed time is 0 ``` ``` mode resetting ( ``` ``` require reset ; ``` ``` ensure time = 0 ; ``` ``` ) ; ``` ``` -- the watch is in running mode if is activated and ``` ``` -- the reset button is unpressed. ``` ``` -- while in that mode, the elapsed time increases by 1 ``` ``` mode running ( ``` ``` require on ; ``` ``` require not reset ; ``` ``` ensure true -> time = pre time + 1 ; ``` ``` ) ; ``` ``` -- the watch is in stopped mode if is not activated and ``` ``` -- the reset button is unpressed ``` ``` -- while in that mode, the elapsed time remains the same ``` ``` mode stopped ( ``` ``` require not reset ; ``` ``` require not on ; ``` ``` ensure true -> time = pre time ; ``` ``` ) ; ``` ```tel ``` c3af3032 Bourbouh fd5381b7 Bourbouh ```------------------------------ ``` ```-- Stopwatch low-level spec -- ``` ```------------------------------ ``` ```node stopwatch ( toggle, reset : bool ) returns ( count : int ); ``` ```(*@contract import stopwatchSpec(toggle, reset ) returns (count) ; *) ``` ``` var running : bool; ``` ```let ``` ``` running = (false -> pre running) <> toggle ; ``` ``` count = ``` ``` if reset then 0 ``` ``` else if running then 1 -> pre count + 1 ``` ``` else 0 -> pre count ; ``` ```tel ```"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.5353984,"math_prob":0.9471627,"size":4488,"snap":"2022-05-2022-21","text_gpt3_token_len":1651,"char_repetition_ratio":0.24487065,"word_repetition_ratio":0.1650655,"special_character_ratio":0.54567736,"punctuation_ratio":0.10623229,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9972028,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-20T09:54:16Z\",\"WARC-Record-ID\":\"<urn:uuid:7e654287-51e2-4bb3-97a2-cf016f4cd490>\",\"Content-Length\":\"55931\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:37fc90c8-3156-4be2-a7fe-17ecde5e755b>\",\"WARC-Concurrent-To\":\"<urn:uuid:52388389-d462-46b4-a133-96b0cff188bb>\",\"WARC-IP-Address\":\"147.127.176.50\",\"WARC-Target-URI\":\"https://cavale.enseeiht.fr/redmine/projects/lustrec-tests/repository/lustrec-tests/revisions/c3af303290bdd0d060ff28352063282fd6a4def9/annotate/tests/cocospec/StopwatchSpec.lus\",\"WARC-Payload-Digest\":\"sha1:IB3AFVD56KKEVMZBKFINZW7XPMXZ5W5I\",\"WARC-Block-Digest\":\"sha1:VXSLMUQ2X7PRJLM5RB7Z66KTI3T7TEF6\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662531779.10_warc_CC-MAIN-20220520093441-20220520123441-00394.warc.gz\"}"} |
https://pro.arcgis.com/es/pro-app/2.9/arcpy/spatial-analyst/fuzzylinear-class.htm | [
"# FuzzyLinear\n\nDisponible con una licencia de Spatial Analyst.\n\n## Resumen\n\nDefines a fuzzy membership function through a linear transformation between the user-specified minimum value, a membership of 0, to the user-defined maximum value, which is assigned a membership of 1.\n\n## Debate\n\nThe tool that uses the FuzzyLinear object: Fuzzy Membership.\n\nThe Linear function is useful when the smaller values linearly increase in membership to the larger values for a positive slope and opposite for a negative slope.\n\nThe Linear function does not work with negative numbers.\n\n## Sintaxis\n\n` FuzzyLinear (minimum, maximum)`\n Parámetro Explicación Tipo de datos minimum The value that will have a membership of 0. If the minimum value is less than the maximum, the linear function will have a positive slope. If the minimum value is greater than the maximum, the linear function will have a negative slope.(El valor predeterminado es Minimum of the input) Double maximum The value that will have a membership of 1. If the maximum value is greater than the minimum, the linear function will have a positive slope. If the maximum value is less than the minimum, the linear function will have a negative slope.(El valor predeterminado es Maximum of the input) Double\n\n Propiedad Explicación Tipo de datos minimum(Lectura y escritura) The value that will have a membership of 0. If the minimum value is less than the maximum, the linear function will have a positive slope. If the minimum value is greater than the maximum, the slope will have a negative slope. Double maximum(Lectura y escritura) The value that will have a membership of 1. If the maximum value is greater than the minimum, the linear function will have a positive slope. If the maximum value is less than the minimum, the slope will have a negative slope. Double\n\n## Muestra de código\n\nFuzzyLinear example 1 (Python window)\n\nDemonstrates how to create a FuzzyLinear class and use it in the FuzzyMembership tool within the Python window.\n\n``````import arcpy\nfrom arcpy.sa import *\nfrom arcpy import env\nenv.workspace = \"c:/sapyexamples/data\"\noutFzyMember = FuzzyMembership(\"as_std\", FuzzyLinear(12, 16))\noutFzyMember.save(\"c:/sapyexamples/fzyline\")``````\nFuzzyLinear example 2 (stand-alone script)\n\nPerforms a FuzzyMembership using the FuzzyLinear class.\n\n``````# Name: FuzzyLinear_Ex_02.py\n# Description: Scales input raster data into values ranging from zero to one\n# indicating the strength of a membership in a set.\n# Requirements: Spatial Analyst Extension\n\n# Import system modules\nimport arcpy\nfrom arcpy import env\nfrom arcpy.sa import *\n\n# Set environment settings\nenv.workspace = \"C:/sapyexamples/data\"\n\n# Set local variables\ninRaster = \"as_std\"\n\n# Create the FuzzyLinear algorithm object\nmin = 19\nmax = 22\nmyFuzzyAlgorithm = FuzzyLinear(min, max)\n\n# Execute FuzzyMembership\noutFuzzyMember = FuzzyMembership(inRaster, myFuzzyAlgorithm)\n\n# Save the output\noutFuzzyMember.save(\"c:/sapyexamples/fzyline2\")``````"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.67620593,"math_prob":0.94295603,"size":2846,"snap":"2023-40-2023-50","text_gpt3_token_len":674,"char_repetition_ratio":0.17874736,"word_repetition_ratio":0.38228437,"special_character_ratio":0.20379479,"punctuation_ratio":0.10472279,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9933352,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-10-04T23:46:31Z\",\"WARC-Record-ID\":\"<urn:uuid:5893435f-d2af-4d51-97f4-ab641a72d134>\",\"Content-Length\":\"21933\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:eec245f5-ca69-4cc9-8111-25306e356597>\",\"WARC-Concurrent-To\":\"<urn:uuid:bf6b758f-768f-49bf-9d8c-c9b78c8b25dd>\",\"WARC-IP-Address\":\"198.102.60.60\",\"WARC-Target-URI\":\"https://pro.arcgis.com/es/pro-app/2.9/arcpy/spatial-analyst/fuzzylinear-class.htm\",\"WARC-Payload-Digest\":\"sha1:D65F4NOCCK3KXNU5K6RBOY7CL2JJHOUX\",\"WARC-Block-Digest\":\"sha1:BVHEFNNNSCCCH7E3PXJGLFTBDLTCTH27\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233511424.48_warc_CC-MAIN-20231004220037-20231005010037-00446.warc.gz\"}"} |
https://py4u.org/questions/452104/ | [
"# Is it worth using Python's re.compile?\n\n## Question:\n\nIs there any benefit in using compile for regular expressions in Python?\n\n``````h = re.compile('hello')\nh.match('hello world')\n``````\n\nvs\n\n``````re.match('hello', 'hello world')\n``````\n\nRegular Expressions are compiled before being used when using the second version. If you are going to executing it many times it is definatly better to compile it first. If not compiling every time you match for one off’s is fine.\n\nMy understanding is that those two examples are effectively equivalent. The only difference is that in the first, you can reuse the compiled regular expression elsewhere without causing it to be compiled again.\n\nHere’s a reference for you: http://diveintopython3.ep.io/refactoring.html\n\nCalling the compiled pattern object’s search function with the string ‘M’ accomplishes the same thing as calling re.search with both the regular expression and the string ‘M’. Only much, much faster. (In fact, the re.search function simply compiles the regular expression and calls the resulting pattern object’s search method for you.)\n\nFWIW:\n\n``````\\$ python -m timeit -s \"import re\" \"re.match('hello', 'hello world')\"\n100000 loops, best of 3: 3.82 usec per loop\n\n\\$ python -m timeit -s \"import re; h=re.compile('hello')\" \"h.match('hello world')\"\n1000000 loops, best of 3: 1.26 usec per loop\n``````\n\nso, if you’re going to be using the same regex a lot, it may be worth it to do `re.compile` (especially for more complex regexes).\n\nThe standard arguments against premature optimization apply, but I don’t think you really lose much clarity/straightforwardness by using `re.compile` if you suspect that your regexps may become a performance bottleneck.\n\nUpdate:\n\nUnder Python 3.6 (I suspect the above timings were done using Python 2.x) and 2018 hardware (MacBook Pro), I now get the following timings:\n\n``````% python -m timeit -s \"import re\" \"re.match('hello', 'hello world')\"\n1000000 loops, best of 3: 0.661 usec per loop\n\n% python -m timeit -s \"import re; h=re.compile('hello')\" \"h.match('hello world')\"\n1000000 loops, best of 3: 0.285 usec per loop\n\n% python -m timeit -s \"import re\" \"h=re.compile('hello'); h.match('hello world')\"\n1000000 loops, best of 3: 0.65 usec per loop\n\n% python --version\nPython 3.6.5 :: Anaconda, Inc.\n``````\n\nI also added a case (notice the quotation mark differences between the last two runs) that shows that `re.match(x, ...)` is literally [roughly] equivalent to `re.compile(x).match(...)`, i.e. no behind-the-scenes caching of the compiled representation seems to happen.\n\nI’ve had a lot of experience running a compiled regex 1000s of times versus compiling on-the-fly, and have not noticed any perceivable difference. Obviously, this is anecdotal, and certainly not a great argument against compiling, but I’ve found the difference to be negligible.\n\nEDIT:\nAfter a quick glance at the actual Python 2.5 library code, I see that Python internally compiles AND CACHES regexes whenever you use them anyway (including calls to `re.match()`), so you’re really only changing WHEN the regex gets compiled, and shouldn’t be saving much time at all – only the time it takes to check the cache (a key lookup on an internal `dict` type).\n\nFrom module re.py (comments are mine):\n\n``````def match(pattern, string, flags=0):\nreturn _compile(pattern, flags).match(string)\n\ndef _compile(*key):\n\n# Does cache check at top of function\ncachekey = (type(key),) + key\np = _cache.get(cachekey)\nif p is not None: return p\n\n# ...\n# Does actual compilation on cache miss\n# ...\n\n# Caches compiled regex\nif len(_cache) >= _MAXCACHE:\n_cache.clear()\n_cache[cachekey] = p\nreturn p\n``````\n\nI still often pre-compile regular expressions, but only to bind them to a nice, reusable name, not for any expected performance gain.\n\nThis is a good question. You often see people use re.compile without reason. It lessens readability. But sure there are lots of times when pre-compiling the expression is called for. Like when you use it repeated times in a loop or some such.\n\nIt’s like everything about programming (everything in life actually). Apply common sense.\n\nFor me, the biggest benefit to `re.compile` is being able to separate definition of the regex from its use.\n\nEven a simple expression such as `0|[1-9][0-9]*` (integer in base 10 without leading zeros) can be complex enough that you’d rather not have to retype it, check if you made any typos, and later have to recheck if there are typos when you start debugging. Plus, it’s nicer to use a variable name such as num or num_b10 than `0|[1-9][0-9]*`.\n\nIt’s certainly possible to store strings and pass them to re.match; however, that’s less readable:\n\n``````num = \"...\"\n# then, much later:\nm = re.match(num, input)\n``````\n\nVersus compiling:\n\n``````num = re.compile(\"...\")\n# then, much later:\nm = num.match(input)\n``````\n\nThough it is fairly close, the last line of the second feels more natural and simpler when used repeatedly.\n\nInterestingly, compiling does prove more efficient for me (Python 2.5.2 on Win XP):\n\n``````import re\nimport time\n\nrgx = re.compile('(w+)s+[0-9_]?s+w*')\nstr = \"average 2 never\"\na = 0\n\nt = time.time()\n\nfor i in xrange(1000000):\nif re.match('(w+)s+[0-9_]?s+w*', str):\n#~ if rgx.match(str):\na += 1\n\nprint time.time() - t\n``````\n\nRunning the above code once as is, and once with the two `if` lines commented the other way around, the compiled regex is twice as fast\n\nIn general, I find it is easier to use flags (at least easier to remember how), like `re.I` when compiling patterns than to use flags inline.\n\n``````>>> foo_pat = re.compile('foo',re.I)\n>>> foo_pat.findall('some string FoO bar')\n['FoO']\n``````\n\nvs\n\n``````>>> re.findall('(?i)foo','some string FoO bar')\n['FoO']\n``````\n\nor anything else for that matter —\n\n``````\"\"\" Re.py: Re.match = re.match + cache\nefficiency: re.py does this already (but what's _MAXCACHE ?)\nreadability, inline / separate: matter of taste\n\"\"\"\n\nimport re\n\ncache = {}\n_re_type = type( re.compile( \"\" ))\n\ndef match( pattern, str, *opt ):\n\"\"\" Re.match = re.match + cache re.compile( pattern )\n\"\"\"\nif type(pattern) == _re_type:\ncpat = pattern\nelif pattern in cache:\ncpat = cache[pattern]\nelse:\ncpat = cache[pattern] = re.compile( pattern, *opt )\nreturn cpat.match( str )\n\n# def search ...\n``````\n\nA wibni, wouldn’t it be nice if: cachehint( size= ), cacheinfo() -> size, hits, nclear …\n\nI ran this test before stumbling upon the discussion here. However, having run it I thought I’d at least post my results.\n\nI stole and bastardized the example in Jeff Friedl’s “Mastering Regular Expressions”. This is on a macbook running OSX 10.6 (2Ghz intel core 2 duo, 4GB ram). Python version is 2.6.1.\n\nRun 1 – using re.compile\n\n``````import re\nimport time\nimport fpformat\nRegex1 = re.compile('^(a|b|c|d|e|f|g)+\\$')\nRegex2 = re.compile('^[a-g]+\\$')\nTimesToDo = 1000\nTestString = \"\"\nfor i in range(1000):\nTestString += \"abababdedfg\"\nStartTime = time.time()\nfor i in range(TimesToDo):\nRegex1.search(TestString)\nSeconds = time.time() - StartTime\nprint \"Alternation takes \" + fpformat.fix(Seconds,3) + \" seconds\"\n\nStartTime = time.time()\nfor i in range(TimesToDo):\nRegex2.search(TestString)\nSeconds = time.time() - StartTime\nprint \"Character Class takes \" + fpformat.fix(Seconds,3) + \" seconds\"\n\nAlternation takes 2.299 seconds\nCharacter Class takes 0.107 seconds\n``````\n\nRun 2 – Not using re.compile\n\n``````import re\nimport time\nimport fpformat\n\nTimesToDo = 1000\nTestString = \"\"\nfor i in range(1000):\nTestString += \"abababdedfg\"\nStartTime = time.time()\nfor i in range(TimesToDo):\nre.search('^(a|b|c|d|e|f|g)+\\$',TestString)\nSeconds = time.time() - StartTime\nprint \"Alternation takes \" + fpformat.fix(Seconds,3) + \" seconds\"\n\nStartTime = time.time()\nfor i in range(TimesToDo):\nre.search('^[a-g]+\\$',TestString)\nSeconds = time.time() - StartTime\nprint \"Character Class takes \" + fpformat.fix(Seconds,3) + \" seconds\"\n\nAlternation takes 2.508 seconds\nCharacter Class takes 0.109 seconds\n``````\n\nI just tried this myself. For the simple case of parsing a number out of a string and summing it, using a compiled regular expression object is about twice as fast as using the `re` methods.\n\nAs others have pointed out, the `re` methods (including `re.compile`) look up the regular expression string in a cache of previously compiled expressions. Therefore, in the normal case, the extra cost of using the `re` methods is simply the cost of the cache lookup.\n\nHowever, examination of the code, shows the cache is limited to 100 expressions. This begs the question, how painful is it to overflow the cache? The code contains an internal interface to the regular expression compiler, `re.sre_compile.compile`. If we call it, we bypass the cache. It turns out to be about two orders of magnitude slower for a basic regular expression, such as `r'w+s+([0-9_]+)s+w*'`.\n\nHere’s my test:\n\n``````#!/usr/bin/env python\nimport re\nimport time\n\ndef timed(func):\ndef wrapper(*args):\nt = time.time()\nresult = func(*args)\nt = time.time() - t\nprint '%s took %.3f seconds.' % (func.func_name, t)\nreturn result\nreturn wrapper\n\nregularExpression = r'w+s+([0-9_]+)s+w*'\ntestString = \"average 2 never\"\n\n@timed\ndef noncompiled():\na = 0\nfor x in xrange(1000000):\nm = re.match(regularExpression, testString)\na += int(m.group(1))\nreturn a\n\n@timed\ndef compiled():\na = 0\nrgx = re.compile(regularExpression)\nfor x in xrange(1000000):\nm = rgx.match(testString)\na += int(m.group(1))\nreturn a\n\n@timed\ndef reallyCompiled():\na = 0\nrgx = re.sre_compile.compile(regularExpression)\nfor x in xrange(1000000):\nm = rgx.match(testString)\na += int(m.group(1))\nreturn a\n\n@timed\ndef compiledInLoop():\na = 0\nfor x in xrange(1000000):\nrgx = re.compile(regularExpression)\nm = rgx.match(testString)\na += int(m.group(1))\nreturn a\n\n@timed\ndef reallyCompiledInLoop():\na = 0\nfor x in xrange(10000):\nrgx = re.sre_compile.compile(regularExpression)\nm = rgx.match(testString)\na += int(m.group(1))\nreturn a\n\nr1 = noncompiled()\nr2 = compiled()\nr3 = reallyCompiled()\nr4 = compiledInLoop()\nr5 = reallyCompiledInLoop()\nprint \"r1 = \", r1\nprint \"r2 = \", r2\nprint \"r3 = \", r3\nprint \"r4 = \", r4\nprint \"r5 = \", r5\n</pre>\nAnd here is the output on my machine:\n<pre>\n\\$ regexTest.py\nnoncompiled took 4.555 seconds.\ncompiled took 2.323 seconds.\nreallyCompiled took 2.325 seconds.\ncompiledInLoop took 4.620 seconds.\nreallyCompiledInLoop took 4.074 seconds.\nr1 = 2000000\nr2 = 2000000\nr3 = 2000000\nr4 = 2000000\nr5 = 20000\n``````\n\nThe ‘reallyCompiled’ methods use the internal interface, which bypasses the cache. Note the one that compiles on each loop iteration is only iterated 10,000 times, not one million.\n\ni’d like to motivate that pre-compiling is both conceptually and ‘literately’ (as in ‘literate programming’) advantageous. have a look at this code snippet:\n\n``````from re import compile as _Re\n\nclass TYPO:\n\ndef text_has_foobar( self, text ):\nreturn self._text_has_foobar_re_search( text ) is not None\n_text_has_foobar_re_search = _Re( r\"\"\"(?i)foobar\"\"\" ).search\n\nTYPO = TYPO()\n``````\n\n``````from TYPO import TYPO\nprint( TYPO.text_has_foobar( 'FOObar ) )\n``````\n\nthis is about as simple in terms of functionality as it can get. because this is example is so short, i conflated the way to get `_text_has_foobar_re_search` all in one line. the disadvantage of this code is that it occupies a little memory for whatever the lifetime of the `TYPO` library object is; the advantage is that when doing a foobar search, you’ll get away with two function calls and two class dictionary lookups. how many regexes are cached by `re` and the overhead of that cache are irrelevant here.\n\ncompare this with the more usual style, below:\n\n``````import re\n\nclass Typo:\n\ndef text_has_foobar( self, text ):\nreturn re.compile( r\"\"\"(?i)foobar\"\"\" ).search( text ) is not None\n``````\n\nIn the application:\n\n``````typo = Typo()\nprint( typo.text_has_foobar( 'FOObar ) )\n``````\n\nI readily admit that my style is highly unusual for python, maybe even debatable. however, in the example that more closely matches how python is mostly used, in order to do a single match, we must instantiate an object, do three instance dictionary lookups, and perform three function calls; additionally, we might get into `re` caching troubles when using more than 100 regexes. also, the regular expression gets hidden inside the method body, which most of the time is not such a good idea.\n\nbe it said that every subset of measures—targeted, aliased import statements; aliased methods where applicable; reduction of function calls and object dictionary lookups—can help reduce computational and conceptual complexity.\n\nHere’s a simple test case:\n\n``````~\\$ for x in 1 10 100 1000 10000 100000 1000000; do python -m timeit -n \\$x -s 'import re' 're.match(\"[0-9]{3}-[0-9]{3}-[0-9]{4}\", \"123-123-1234\")'; done\n1 loops, best of 3: 3.1 usec per loop\n10 loops, best of 3: 2.41 usec per loop\n100 loops, best of 3: 2.24 usec per loop\n1000 loops, best of 3: 2.21 usec per loop\n10000 loops, best of 3: 2.23 usec per loop\n100000 loops, best of 3: 2.24 usec per loop\n1000000 loops, best of 3: 2.31 usec per loop\n``````\n\nwith re.compile:\n\n``````~\\$ for x in 1 10 100 1000 10000 100000 1000000; do python -m timeit -n \\$x -s 'import re' 'r = re.compile(\"[0-9]{3}-[0-9]{3}-[0-9]{4}\")' 'r.match(\"123-123-1234\")'; done\n1 loops, best of 3: 1.91 usec per loop\n10 loops, best of 3: 0.691 usec per loop\n100 loops, best of 3: 0.701 usec per loop\n1000 loops, best of 3: 0.684 usec per loop\n10000 loops, best of 3: 0.682 usec per loop\n100000 loops, best of 3: 0.694 usec per loop\n1000000 loops, best of 3: 0.702 usec per loop\n``````\n\nSo, it would seem to compiling is faster with this simple case, even if you only match once.\n\nUsing the given examples:\n\n``````h = re.compile('hello')\nh.match('hello world')\n``````\n\nThe match method in the example above is not the same as the one used below:\n\n``````re.match('hello', 'hello world')\n``````\n\nre.compile() returns a regular expression object, which means `h` is a regex object.\n\nThe regex object has its own match method with the optional pos and endpos parameters:\n\npos\n\nThe optional second parameter pos gives an index in the string where\nthe search is to start; it defaults to 0. This is not completely\nequivalent to slicing the string; the `'^'` pattern character matches at\nthe real beginning of the string and at positions just after a\nnewline, but not necessarily at the index where the search is to\nstart.\n\nendpos\n\nThe optional parameter endpos limits how far the string will be\nsearched; it will be as if the string is endpos characters long, so\nonly the characters from pos to `endpos - 1` will be searched for a\nmatch. If endpos is less than pos, no match will be found; otherwise,\nif rx is a compiled regular expression object, ```rx.search(string, 0, 50)``` is equivalent to `rx.search(string[:50], 0)`.\n\nThe regex object’s search, findall, and finditer methods also support these parameters.\n\n`re.match(pattern, string, flags=0)` does not support them as you can see,\nnor does its search, findall, and finditer counterparts.\n\nA match object has attributes that complement these parameters:\n\nmatch.pos\n\nThe value of pos which was passed to the search() or match() method of\na regex object. This is the index into the string at which the RE\nengine started looking for a match.\n\nmatch.endpos\n\nThe value of endpos which was passed to the search() or match() method\nof a regex object. This is the index into the string beyond which the\nRE engine will not go.\n\nA regex object has two unique, possibly useful, attributes:\n\nregex.groups\n\nThe number of capturing groups in the pattern.\n\nregex.groupindex\n\nA dictionary mapping any symbolic group names defined by (?P) to\ngroup numbers. The dictionary is empty if no symbolic groups were used\nin the pattern.\n\nAnd finally, a match object has this attribute:\n\nmatch.re\n\nThe regular expression object whose match() or search() method\nproduced this match instance.\n\nPerformance difference aside, using re.compile and using the compiled regular expression object to do match (whatever regular expression related operations) makes the semantics clearer to Python run-time.\n\nI had some painful experience of debugging some simple code:\n\n``````compare = lambda s, p: re.match(p, s)\n``````\n\nand later I’d use compare in\n\n``````[x for x in data if compare(patternPhrases, x[columnIndex])]\n``````\n\nwhere `patternPhrases` is supposed to be a variable containing regular expression string, `x[columnIndex]` is a variable containing string.\n\nI had trouble that `patternPhrases` did not match some expected string!\n\nBut if I used the re.compile form:\n\n``````compare = lambda s, p: p.match(s)\n``````\n\nthen in\n\n``````[x for x in data if compare(patternPhrases, x[columnIndex])]\n``````\n\nPython would have complained that “string does not have attribute of match”, as by positional argument mapping in `compare`, `x[columnIndex]` is used as regular expression!, when I actually meant\n\n``````compare = lambda p, s: p.match(s)\n``````\n\nIn my case, using re.compile is more explicit of the purpose of regular expression, when it’s value is hidden to naked eyes, thus I could get more help from Python run-time checking.\n\nSo the moral of my lesson is that when the regular expression is not just literal string, then I should use re.compile to let Python to help me to assert my assumption.\n\nI agree with Honest Abe that the `match(...)` in the given examples are different. They are not a one-to-one comparisons and thus, outcomes are vary. To simplify my reply, I use A, B, C, D for those functions in question. Oh yes, we are dealing with 4 functions in `re.py` instead of 3.\n\nRunning this piece of code:\n\n``````h = re.compile('hello') # (A)\nh.match('hello world') # (B)\n``````\n\nis same as running this code:\n\n``````re.match('hello', 'hello world') # (C)\n``````\n\nBecause, when looked into the source `re.py`, (A + B) means:\n\n``````h = re._compile('hello') # (D)\nh.match('hello world')\n``````\n\nand (C) is actually:\n\n``````re._compile('hello').match('hello world')\n``````\n\nSo, (C) is not the same as (B). In fact, (C) calls (B) after calling (D) which is also called by (A). In other words, `(C) = (A) + (B)`. Therefore, comparing (A + B) inside a loop has the same result as (C) inside a loop.\n\nGeorge’s `regexTest.py` proved this for us.\n\n``````noncompiled took 4.555 seconds. # (C) in a loop\ncompiledInLoop took 4.620 seconds. # (A + B) in a loop\ncompiled took 2.323 seconds. # (A) once + (B) in a loop\n``````\n\nEveryone’s interest is, how to get the result of 2.323 seconds. In order to make sure `compile(...)` only gets called once, we need to store the compiled regex object in memory. If we are using a class, we could store the object and reuse when every time our function gets called.\n\n``````class Foo:\nregex = re.compile('hello')\ndef my_function(text)\nreturn regex.match(text)\n``````\n\nIf we are not using class (which is my request today), then I have no comment. I’m still learning to use a global variable in Python, and I know a global variable is a bad thing.\n\nOne more point, I believe that using `(A) + (B)` approach has an upper hand. Here are some facts as I observed (please correct me if I’m wrong):\n\n1. Calls A once, it will do one search in the `_cache` followed by one `sre_compile.compile()` to create a regex object. Calls A twice, it will do two searches and one compile (because the regex object is cached).\n\n2. If the `_cache` gets flushed in between, then the regex object is released from memory and Python needs to compile again. (someone suggests that Python won’t recompile.)\n\n3. If we keep the regex object by using (A), the regex object will still get into _cache and get flushed somehow. But our code keeps a reference on it and the regex object will not be released from memory. Those, Python need not to compile again.\n\n4. The 2 seconds difference in George’s test compiled loop vs compiled is mainly the time required to build the key and search the _cache. It doesn’t mean the compile time of regex.\n\n5. George’s reallycompile test show what happens if it really re-do the compile every time: it will be 100x slower (he reduced the loop from 1,000,000 to 10,000).\n\nHere are the only cases that (A + B) is better than (C):\n\n1. If we can cache a reference of the regex object inside a class.\n2. If we need to calls (B) repeatedly (inside a loop or multiple times), we must cache the reference to the regex object outside the loop.\n\nCase that (C) is good enough:\n\n1. We cannot cache a reference.\n2. We only use it once in a while.\n3. In overall, we don’t have too many regex (assume the compiled one never get flushed)\n\nJust a recap, here are the A B C:\n\n``````h = re.compile('hello') # (A)\nh.match('hello world') # (B)\nre.match('hello', 'hello world') # (C)\n``````\n\nThere is one addition perk of using re.compile(), in the form of adding comments to my regex patterns using re.VERBOSE\n\n``````pattern = '''\nhello[ ]world # Some info on my pattern logic. [ ] to recognize space\n'''\n\nre.search(pattern, 'hello world', re.VERBOSE)\n``````\n\nAlthough this does not affect the speed of running your code, I like to do it this way as it is part of my commenting habit. I throughly dislike spending time trying to remember the logic that went behind my code 2 months down the line when I want to make modifications.\n\nThis answer might be arriving late but is an interesting find. Using compile can really save you time if you are planning on using the regex multiple times (this is also mentioned in the docs). Below you can see that using a compiled regex is the fastest when the match method is directly called on it. passing a compiled regex to re.match makes it even slower and passing re.match with the patter string is somewhere in the middle.\n\n``````>>> ipr = r'D+((([0-2][0-5]?[0-5]?).){3}([0-2][0-5]?[0-5]?))D+'\n>>> average(*timeit.repeat(\"re.match(ipr, 'abcd100.10.255.255 ')\", globals={'ipr': ipr, 're': re}))\n1.5077415757028423\n>>> ipr = re.compile(ipr)\n>>> average(*timeit.repeat(\"re.match(ipr, 'abcd100.10.255.255 ')\", globals={'ipr': ipr, 're': re}))\n1.8324008992184038\n>>> average(*timeit.repeat(\"ipr.match('abcd100.10.255.255 ')\", globals={'ipr': ipr, 're': re}))\n0.9187896518778871\n``````\n\nI’ve had a lot of experience running a compiled regex 1000s\nof times versus compiling on-the-fly, and have not noticed\nany perceivable difference\n\nThe votes on the accepted answer leads to the assumption that what @Triptych says is true for all cases. This is not necessarily true. One big difference is when you have to decide whether to accept a regex string or a compiled regex object as a parameter to a function:\n\n``````>>> timeit.timeit(setup=\"\"\"\n... import re\n... f=lambda x, y: x.match(y) # accepts compiled regex as parameter\n... h=re.compile('hello')\n... \"\"\", stmt=\"f(h, 'hello world')\")\n0.32881879806518555\n>>> timeit.timeit(setup=\"\"\"\n... import re\n... f=lambda x, y: re.compile(x).match(y) # compiles when called\n... \"\"\", stmt=\"f('hello', 'hello world')\")\n0.809190034866333\n``````\n\nIt is always better to compile your regexs in case you need to reuse them.\n\nNote the example in the timeit above simulates creation of a compiled regex object once at import time versus “on-the-fly” when required for a match.\n\nMostly, there is little difference whether you use re.compile or not. Internally, all of the functions are implemented in terms of a compile step:\n\n``````def match(pattern, string, flags=0):\nreturn _compile(pattern, flags).match(string)\n\ndef fullmatch(pattern, string, flags=0):\nreturn _compile(pattern, flags).fullmatch(string)\n\ndef search(pattern, string, flags=0):\nreturn _compile(pattern, flags).search(string)\n\ndef sub(pattern, repl, string, count=0, flags=0):\nreturn _compile(pattern, flags).sub(repl, string, count)\n\ndef subn(pattern, repl, string, count=0, flags=0):\nreturn _compile(pattern, flags).subn(repl, string, count)\n\ndef split(pattern, string, maxsplit=0, flags=0):\nreturn _compile(pattern, flags).split(string, maxsplit)\n\ndef findall(pattern, string, flags=0):\nreturn _compile(pattern, flags).findall(string)\n\ndef finditer(pattern, string, flags=0):\nreturn _compile(pattern, flags).finditer(string)\n``````\n\nIn addition, re.compile() bypasses the extra indirection and caching logic:\n\n``````_cache = {}\n\n_pattern_type = type(sre_compile.compile(\"\", 0))\n\n_MAXCACHE = 512\ndef _compile(pattern, flags):\n# internal: compile pattern\ntry:\np, loc = _cache[type(pattern), pattern, flags]\nif loc is None or loc == _locale.setlocale(_locale.LC_CTYPE):\nreturn p\nexcept KeyError:\npass\nif isinstance(pattern, _pattern_type):\nif flags:\nraise ValueError(\n\"cannot process flags argument with a compiled pattern\")\nreturn pattern\nif not sre_compile.isstring(pattern):\nraise TypeError(\"first argument must be string or compiled pattern\")\np = sre_compile.compile(pattern, flags)\nif not (flags & DEBUG):\nif len(_cache) >= _MAXCACHE:\n_cache.clear()\nif p.flags & LOCALE:\nif not _locale:\nreturn p\nloc = _locale.setlocale(_locale.LC_CTYPE)\nelse:\nloc = None\n_cache[type(pattern), pattern, flags] = p, loc\nreturn p\n``````\n\nIn addition to the small speed benefit from using re.compile, people also like the readability that comes from naming potentially complex pattern specifications and separating them from the business logic where there are applied:\n\n``````#### Patterns ############################################################\nnumber_pattern = re.compile(r'd+(.d*)?') # Integer or decimal number\nassign_pattern = re.compile(r':=') # Assignment operator\nidentifier_pattern = re.compile(r'[A-Za-z]+') # Identifiers\nwhitespace_pattern = re.compile(r'[t ]+') # Spaces and tabs\n\n#### Applications ########################################################\n\n``````\n\nNote, one other respondent incorrectly believed that pyc files stored compiled patterns directly; however, in reality they are rebuilt each time when the PYC is loaded:\n\n``````>>> from dis import dis\n>>> with open('tmp.pyc', 'rb') as f:\n\n6 IMPORT_NAME 0 (re)\n9 STORE_NAME 0 (re)\n\n21 CALL_FUNCTION 1\n24 STORE_NAME 2 (lc_vowels)\n30 RETURN_VALUE\n``````\n\nThe above disassembly comes from the PYC file for a `tmp.py` containing:\n\n``````import re\nlc_vowels = re.compile(r'[aeiou]{2,5}')\n``````\n\nI really respect all the above answers. From my opinion\nYes! For sure it is worth to use re.compile instead of compiling the regex, again and again, every time.\n\nUsing re.compile makes your code more dynamic, as you can call the already compiled regex, instead of compiling again and aagain. This thing benefits you in cases:\n\n1. Processor Efforts\n2. Time Complexity.\n3. Makes regex Universal.(can be used in findall, search, match)\n4. And makes your program looks cool.\n\nExample :\n\n`````` example_string = \"The room number of her room is 26A7B.\"\nfind_alpha_numeric_string = re.compile(r\"bw+b\")\n``````\n\n# Using in Findall\n\n`````` find_alpha_numeric_string.findall(example_string)\n``````\n\n# Using in search\n\n`````` find_alpha_numeric_string.search(example_string)\n``````\n\nSimilarly you can use it for: Match and Substitute\n\nBesides the performance.\n\nUsing `compile` helps me to distinguish the concepts of\n1. module(re),\n2. regex object\n3. match object\nWhen I started learning regex\n\n``````#regex object\nregex_object = re.compile(r'[a-zA-Z]+')\n#match object\nmatch_object = regex_object.search('1.Hello')\n#matching content\nmatch_object.group()\noutput:\nOut: 'Hello'\nV.S.\nre.search(r'[a-zA-Z]+','1.Hello').group()\nOut: 'Hello'\n``````\n\nAs a complement, I made an exhaustive cheatsheet of module `re` for your reference.\n\n``````regex = {\n'brackets':{'single_character': ['[]', '.', {'negate':'^'}],\n'capturing_group' : ['()','(?:)', '(?!)' '|', '\\', 'backreferences and named group'],\n'repetition' : ['{}', '*?', '+?', '??', 'greedy v.s. lazy ?']},\n'lookbehind' : ['(?<=...)','(?<!...)'],\n'caputuring' : ['(?P<name>...)', '(?P=name)', '(?:)'],},\n'escapes':{'anchor' : ['^', 'b', '\\$'],\n'non_printable' : ['n', 't', 'r', 'f', 'v'],\n'shorthand' : ['d', 'w', 's']},\n'methods': {['search', 'match', 'findall', 'finditer'],\n['split', 'sub']},\n'match_object': ['group','groups', 'groupdict','start', 'end', 'span',]\n}\n``````\n\nAccording to the Python documentation:\n\nThe sequence\n\n``````prog = re.compile(pattern)\nresult = prog.match(string)\n``````\n\nis equivalent to\n\n``````result = re.match(pattern, string)\n``````\n\nbut using `re.compile()` and saving the resulting regular expression object for reuse is more efficient when the expression will be used several times in a single program.\n\nSo my conclusion is, if you are going to match the same pattern for many different texts, you better precompile it.\n\nAs an alternative answer, as I see that it hasn’t been mentioned before, I’ll go ahead and quote the Python 3 docs:\n\nShould you use these module-level functions, or should you get the pattern and call its methods yourself? If you’re accessing a regex within a loop, pre-compiling it will save a few function calls. Outside of loops, there’s not much difference thanks to the internal cache.\n\nTo me, the main gain is that I only need to remember, and read, one form of the complicated regex API syntax – the `<compiled_pattern>.method(xxx)` form rather than that and the `re.func(<pattern>, xxx)` form.\n\nThe `re.compile(<pattern>)` is a bit of extra boilerplate, true.\n\nBut where regex are concerned, that extra compile step is unlikely to be a big cause of cognitive load. And in fact, on complicated patterns, you might even gain clarity from separating the declaration from whatever regex method you then invoke on it.\n\nI tend to first tune complicated patterns in a website like Regex101, or even in a separate minimal test script, then bring them into my code, so separating the declaration from its use fits my workflow as well.\n\nHere is an example where using `re.compile` is over 50 times faster, as requested.\n\nThe point is just the same as what I made in the comment above, namely, using `re.compile` can be a significant advantage when your usage is such as to not benefit much from the compilation cache. This happens at least in one particular case (that I ran into in practice), namely when all of the following are true:\n\n• You have a lot of regex patterns (more than `re._MAXCACHE`, whose default is currently 512), and\n• you use these regexes a lot of times, and\n• you consecutive usages of the same pattern are separated by more than `re._MAXCACHE` other regexes in between, so that each one gets flushed from the cache between consecutive usages.\n``````import re\nimport time\n\ndef setup(N=1000):\n# Patterns 'a.*a', 'a.*b', ..., 'z.*z'\npatterns = [chr(i) + '.*' + chr(j)\nfor i in range(ord('a'), ord('z') + 1)\nfor j in range(ord('a'), ord('z') + 1)]\n# If this assertion below fails, just add more (distinct) patterns.\n# assert(re._MAXCACHE < len(patterns))\n# N strings. Increase N for larger effect.\nstrings = ['abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz'] * N\nreturn (patterns, strings)\n\ndef without_compile():\nprint('Without re.compile:')\npatterns, strings = setup()\nprint('searching')\ncount = 0\nfor s in strings:\nfor pat in patterns:\ncount += bool(re.search(pat, s))\nreturn count\n\ndef without_compile_cache_friendly():\nprint('Without re.compile, cache-friendly order:')\npatterns, strings = setup()\nprint('searching')\ncount = 0\nfor pat in patterns:\nfor s in strings:\ncount += bool(re.search(pat, s))\nreturn count\n\ndef with_compile():\nprint('With re.compile:')\npatterns, strings = setup()\nprint('compiling')\ncompiled = [re.compile(pattern) for pattern in patterns]\nprint('searching')\ncount = 0\nfor s in strings:\nfor regex in compiled:\ncount += bool(regex.search(s))\nreturn count\n\nstart = time.time()\nprint(with_compile())\nd1 = time.time() - start\nprint(f'-- That took {d1:.2f} seconds.n')\n\nstart = time.time()\nprint(without_compile_cache_friendly())\nd2 = time.time() - start\nprint(f'-- That took {d2:.2f} seconds.n')\n\nstart = time.time()\nprint(without_compile())\nd3 = time.time() - start\nprint(f'-- That took {d3:.2f} seconds.n')\n\nprint(f'Ratio: {d3/d1:.2f}')\n``````\n\nExample output I get on my laptop (Python 3.7.7):\n\n``````With re.compile:\ncompiling\nsearching\n676000\n-- That took 0.33 seconds.\n\nWithout re.compile, cache-friendly order:\nsearching\n676000\n-- That took 0.67 seconds.\n\nWithout re.compile:\nsearching\n676000\n-- That took 23.54 seconds.\n\nRatio: 70.89\n``````\n\nI didn’t bother with `timeit` as the difference is so stark, but I get qualitatively similar numbers each time. Note that even without `re.compile`, using the same regex multiple times and moving on to the next one wasn’t so bad (only about 2 times as slow as with `re.compile`), but in the other order (looping through many regexes), it is significantly worse, as expected. Also, increasing the cache size works too: simply setting `re._MAXCACHE = len(patterns)` in `setup()` above (of course I don’t recommend doing such things in production as names with underscores are conventionally “private”) drops the ~23 seconds back down to ~0.7 seconds, which also matches our understanding.\n\nAlthough the two approaches are comparable in terms of speed, you should know that there still is some negligible time difference which might be of your concern if you’re dealing with millions of iterations.\n\nThe following speed test:\n\n``````import re\nimport time\n\nSIZE = 100_000_000\n\nstart = time.time()\nfoo = re.compile('foo')\n[foo.search('bar') for _ in range(SIZE)]\nprint('compiled: ', time.time() - start)\n\nstart = time.time()\n[re.search('foo', 'bar') for _ in range(SIZE)]\nprint('uncompiled:', time.time() - start)\n``````\n\ngives these results:\n\n``````compiled: 14.647532224655151\nuncompiled: 61.483458042144775\n``````\n\nThe compiled approach is on my PC (with Python 3.7.0) consistently about 4 times faster.\n\nAs explained in the documentation:\n\nIf you’re accessing a regex within a loop, pre-compiling it will save a few function calls. Outside of loops, there’s not much difference thanks to the internal cache.\n\nCategories: questions Tags: ,\nAnswers are sorted by their score. The answer accepted by the question owner as the best is marked with\nat the top-right corner."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.75397533,"math_prob":0.8196119,"size":66464,"snap":"2023-14-2023-23","text_gpt3_token_len":17297,"char_repetition_ratio":0.15046644,"word_repetition_ratio":0.9909436,"special_character_ratio":0.2864859,"punctuation_ratio":0.17209508,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96588594,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-06-04T06:39:38Z\",\"WARC-Record-ID\":\"<urn:uuid:598e8c48-c3c9-408c-99e4-b79ad4e98d1d>\",\"Content-Length\":\"63625\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d1d354af-58c2-4c66-bfbc-b3222baffa3f>\",\"WARC-Concurrent-To\":\"<urn:uuid:67a94312-4b6c-4ae0-9eee-09a5b1f43846>\",\"WARC-IP-Address\":\"104.21.83.140\",\"WARC-Target-URI\":\"https://py4u.org/questions/452104/\",\"WARC-Payload-Digest\":\"sha1:VDM4NZPSQQYXJC5M4EFRCXW7HABUKT65\",\"WARC-Block-Digest\":\"sha1:EPVXI3FCLUADXRQ3GH5STEOYVUXJM2EB\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224649518.12_warc_CC-MAIN-20230604061300-20230604091300-00490.warc.gz\"}"} |
https://www.felixcloutier.com/x86/jcc | [
"# Jcc — Jump if Condition Is Met\n\nOpcode Instruction Op/En 64-Bit Mode Compat/Leg Mode Description\n77 cb JA rel8 D Valid Valid Jump short if above (CF=0 and ZF=0).\n73 cb JAE rel8 D Valid Valid Jump short if above or equal (CF=0).\n72 cb JB rel8 D Valid Valid Jump short if below (CF=1).\n76 cb JBE rel8 D Valid Valid Jump short if below or equal (CF=1 or ZF=1).\n72 cb JC rel8 D Valid Valid Jump short if carry (CF=1).\nE3 cb JCXZ rel8 D N.E. Valid Jump short if CX register is 0.\nE3 cb JECXZ rel8 D Valid Valid Jump short if ECX register is 0.\nE3 cb JRCXZ rel8 D Valid N.E. Jump short if RCX register is 0.\n74 cb JE rel8 D Valid Valid Jump short if equal (ZF=1).\n7F cb JG rel8 D Valid Valid Jump short if greater (ZF=0 and SF=OF).\n7D cb JGE rel8 D Valid Valid Jump short if greater or equal (SF=OF).\n7C cb JL rel8 D Valid Valid Jump short if less (SF≠ OF).\n7E cb JLE rel8 D Valid Valid Jump short if less or equal (ZF=1 or SF≠ OF).\n76 cb JNA rel8 D Valid Valid Jump short if not above (CF=1 or ZF=1).\n72 cb JNAE rel8 D Valid Valid Jump short if not above or equal (CF=1).\n73 cb JNB rel8 D Valid Valid Jump short if not below (CF=0).\n77 cb JNBE rel8 D Valid Valid Jump short if not below or equal (CF=0 and ZF=0).\n73 cb JNC rel8 D Valid Valid Jump short if not carry (CF=0).\n75 cb JNE rel8 D Valid Valid Jump short if not equal (ZF=0).\n7E cb JNG rel8 D Valid Valid Jump short if not greater (ZF=1 or SF≠ OF).\n7C cb JNGE rel8 D Valid Valid Jump short if not greater or equal (SF≠ OF).\n7D cb JNL rel8 D Valid Valid Jump short if not less (SF=OF).\n7F cb JNLE rel8 D Valid Valid Jump short if not less or equal (ZF=0 and SF=OF).\n71 cb JNO rel8 D Valid Valid Jump short if not overflow (OF=0).\n7B cb JNP rel8 D Valid Valid Jump short if not parity (PF=0).\n79 cb JNS rel8 D Valid Valid Jump short if not sign (SF=0).\n75 cb JNZ rel8 D Valid Valid Jump short if not zero (ZF=0).\n70 cb JO rel8 D Valid Valid Jump short if overflow (OF=1).\n7A cb JP rel8 D Valid Valid Jump short if parity (PF=1).\n7A cb JPE rel8 D Valid Valid Jump short if parity even (PF=1).\n7B cb JPO rel8 D Valid Valid Jump short if parity odd (PF=0).\n78 cb JS rel8 D Valid Valid Jump short if sign (SF=1).\n74 cb JZ rel8 D Valid Valid Jump short if zero (ZF = 1).\n0F 87 cw JA rel16 D N.S. Valid Jump near if above (CF=0 and ZF=0). Not supported in 64-bit mode.\n0F 87 cd JA rel32 D Valid Valid Jump near if above (CF=0 and ZF=0).\n0F 83 cw JAE rel16 D N.S. Valid Jump near if above or equal (CF=0). Not supported in 64-bit mode.\n0F 83 cd JAE rel32 D Valid Valid Jump near if above or equal (CF=0).\n0F 82 cw JB rel16 D N.S. Valid Jump near if below (CF=1). Not supported in 64-bit mode.\n0F 82 cd JB rel32 D Valid Valid Jump near if below (CF=1).\n0F 86 cw JBE rel16 D N.S. Valid Jump near if below or equal (CF=1 or ZF=1). Not supported in 64-bit mode.\n0F 86 cd JBE rel32 D Valid Valid Jump near if below or equal (CF=1 or ZF=1).\n0F 82 cw JC rel16 D N.S. Valid Jump near if carry (CF=1). Not supported in 64-bit mode.\n0F 82 cd JC rel32 D Valid Valid Jump near if carry (CF=1).\n0F 84 cw JE rel16 D N.S. Valid Jump near if equal (ZF=1). Not supported in 64-bit mode.\n0F 84 cd JE rel32 D Valid Valid Jump near if equal (ZF=1).\n0F 84 cw JZ rel16 D N.S. Valid Jump near if 0 (ZF=1). Not supported in 64-bit mode.\n0F 84 cd JZ rel32 D Valid Valid Jump near if 0 (ZF=1).\n0F 8F cw JG rel16 D N.S. Valid Jump near if greater (ZF=0 and SF=OF). Not supported in 64-bit mode.\n0F 8F cd JG rel32 D Valid Valid Jump near if greater (ZF=0 and SF=OF).\n0F 8D cw JGE rel16 D N.S. Valid Jump near if greater or equal (SF=OF). Not supported in 64-bit mode.\n0F 8D cd JGE rel32 D Valid Valid Jump near if greater or equal (SF=OF).\n0F 8C cw JL rel16 D N.S. Valid Jump near if less (SF≠ OF). Not supported in 64-bit mode.\n0F 8C cd JL rel32 D Valid Valid Jump near if less (SF≠ OF).\n0F 8E cw JLE rel16 D N.S. Valid Jump near if less or equal (ZF=1 or SF≠ OF). Not supported in 64-bit mode.\n0F 8E cd JLE rel32 D Valid Valid Jump near if less or equal (ZF=1 or SF≠ OF).\n0F 86 cw JNA rel16 D N.S. Valid Jump near if not above (CF=1 or ZF=1). Not supported in 64-bit mode.\n0F 86 cd JNA rel32 D Valid Valid Jump near if not above (CF=1 or ZF=1).\n0F 82 cw JNAE rel16 D N.S. Valid Jump near if not above or equal (CF=1). Not supported in 64-bit mode.\n0F 82 cd JNAE rel32 D Valid Valid Jump near if not above or equal (CF=1).\n0F 83 cw JNB rel16 D N.S. Valid Jump near if not below (CF=0). Not supported in 64-bit mode.\n0F 83 cd JNB rel32 D Valid Valid Jump near if not below (CF=0).\n0F 87 cw JNBE rel16 D N.S. Valid Jump near if not below or equal (CF=0 and ZF=0). Not supported in 64-bit mode.\n0F 87 cd JNBE rel32 D Valid Valid Jump near if not below or equal (CF=0 and ZF=0).\n0F 83 cw JNC rel16 D N.S. Valid Jump near if not carry (CF=0). Not supported in 64-bit mode.\n0F 83 cd JNC rel32 D Valid Valid Jump near if not carry (CF=0).\n0F 85 cw JNE rel16 D N.S. Valid Jump near if not equal (ZF=0). Not supported in 64-bit mode.\n0F 85 cd JNE rel32 D Valid Valid Jump near if not equal (ZF=0).\n0F 8E cw JNG rel16 D N.S. Valid Jump near if not greater (ZF=1 or SF≠ OF). Not supported in 64-bit mode.\n0F 8E cd JNG rel32 D Valid Valid Jump near if not greater (ZF=1 or SF≠ OF).\n0F 8C cw JNGE rel16 D N.S. Valid Jump near if not greater or equal (SF≠ OF). Not supported in 64-bit mode.\n0F 8C cd JNGE rel32 D Valid Valid Jump near if not greater or equal (SF≠ OF).\n0F 8D cw JNL rel16 D N.S. Valid Jump near if not less (SF=OF). Not supported in 64-bit mode.\n0F 8D cd JNL rel32 D Valid Valid Jump near if not less (SF=OF).\n0F 8F cw JNLE rel16 D N.S. Valid Jump near if not less or equal (ZF=0 and SF=OF). Not supported in 64-bit mode.\n0F 8F cd JNLE rel32 D Valid Valid Jump near if not less or equal (ZF=0 and SF=OF).\n0F 81 cw JNO rel16 D N.S. Valid Jump near if not overflow (OF=0). Not supported in 64-bit mode.\n0F 81 cd JNO rel32 D Valid Valid Jump near if not overflow (OF=0).\n0F 8B cw JNP rel16 D N.S. Valid Jump near if not parity (PF=0). Not supported in 64-bit mode.\n0F 8B cd JNP rel32 D Valid Valid Jump near if not parity (PF=0).\n0F 89 cw JNS rel16 D N.S. Valid Jump near if not sign (SF=0). Not supported in 64-bit mode.\n0F 89 cd JNS rel32 D Valid Valid Jump near if not sign (SF=0).\n0F 85 cw JNZ rel16 D N.S. Valid Jump near if not zero (ZF=0). Not supported in 64-bit mode.\n0F 85 cd JNZ rel32 D Valid Valid Jump near if not zero (ZF=0).\n0F 80 cw JO rel16 D N.S. Valid Jump near if overflow (OF=1). Not supported in 64-bit mode.\n0F 80 cd JO rel32 D Valid Valid Jump near if overflow (OF=1).\n0F 8A cw JP rel16 D N.S. Valid Jump near if parity (PF=1). Not supported in 64-bit mode.\n0F 8A cd JP rel32 D Valid Valid Jump near if parity (PF=1).\n0F 8A cw JPE rel16 D N.S. Valid Jump near if parity even (PF=1). Not supported in 64-bit mode.\n0F 8A cd JPE rel32 D Valid Valid Jump near if parity even (PF=1).\n0F 8B cw JPO rel16 D N.S. Valid Jump near if parity odd (PF=0). Not supported in 64-bit mode.\n0F 8B cd JPO rel32 D Valid Valid Jump near if parity odd (PF=0).\n0F 88 cw JS rel16 D N.S. Valid Jump near if sign (SF=1). Not supported in 64-bit mode.\n0F 88 cd JS rel32 D Valid Valid Jump near if sign (SF=1).\n0F 84 cw JZ rel16 D N.S. Valid Jump near if 0 (ZF=1). Not supported in 64-bit mode.\n0F 84 cd JZ rel32 D Valid Valid Jump near if 0 (ZF=1).\n\n## Instruction Operand Encoding ¶\n\n Op/En Operand 1 Operand 2 Operand 3 Operand 4 D Offset NA NA NA\n\n## Description ¶\n\nChecks the state of one or more of the status flags in the EFLAGS register (CF, OF, PF, SF, and ZF) and, if the flags are in the specified state (condition), performs a jump to the target instruction specified by the destination operand. A condition code (cc) is associated with each instruction to indicate the condition being tested for. If the condition is not satisfied, the jump is not performed and execution continues with the instruction following the Jcc instruction.\n\nThe target instruction is specified with a relative offset (a signed offset relative to the current value of the instruction pointer in the EIP register). A relative offset (rel8, rel16, or rel32) is generally specified as a label in assembly code, but at the machine code level, it is encoded as a signed, 8-bit or 32-bit immediate value, which is added to the instruction pointer. Instruction coding is most efficient for offsets of –128 to +127. If the operand-size attribute is 16, the upper two bytes of the EIP register are cleared, resulting in a maximum instruction pointer size of 16 bits.\n\nThe conditions for each Jcc mnemonic are given in the “Description” column of the table on the preceding page. The terms “less” and “greater” are used for comparisons of signed integers and the terms “above” and “below” are used for unsigned integers.\n\nBecause a particular state of the status flags can sometimes be interpreted in two ways, two mnemonics are defined for some opcodes. For example, the JA (jump if above) instruction and the JNBE (jump if not below or equal) instruction are alternate mnemonics for the opcode 77H.\n\nThe Jcc instruction does not support far jumps (jumps to other code segments). When the target for the conditional jump is in a different segment, use the opposite condition from the condition being tested for the Jcc instruction, and then access the target with an unconditional far jump (JMP instruction) to the other segment. For example, the following conditional far jump is illegal:\n\nJZ FARLABEL;\n\nTo accomplish this far jump, use the following two instructions:\n\nJNZ BEYOND;\n\nJMP FARLABEL;\n\nBEYOND:\n\nThe JRCXZ, JECXZ and JCXZ instructions differ from other Jcc instructions because they do not check status flags. Instead, they check RCX, ECX or CX for 0. The register checked is determined by the address-size attribute. These instructions are useful when used at the beginning of a loop that terminates with a conditional loop instruction (such as LOOPNE). They can be used to prevent an instruction sequence from entering a loop when RCX, ECX or CX is 0. This would cause the loop to execute 264, 232 or 64K times (not zero times).\n\nAll conditional jumps are converted to code fetches of one or two cache lines, regardless of jump address or cache-ability.\n\nIn 64-bit mode, operand size is fixed at 64 bits. JMP Short is RIP = RIP + 8-bit offset sign extended to 64 bits. JMP Near is RIP = RIP + 32-bit offset sign extended to 64 bits.\n\n## Operation ¶\n\n```IF condition\nTHEN\ntempEIP ← EIP + SignExtend(DEST);\nIF OperandSize = 16\nTHEN tempEIP ← tempEIP AND 0000FFFFH;\nFI;\nIF tempEIP is not within code segment limit\nTHEN #GP(0);\nELSE EIP ← tempEIP\nFI;\nFI;\n```\n\nNone\n\n## Protected Mode Exceptions ¶\n\n #GP(0) If the offset being jumped to is beyond the limits of the CS segment. #UD If the LOCK prefix is used.\n\n #GP If the offset being jumped to is beyond the limits of the CS segment or is outside of the effective address space from 0 to FFFFH. This condition can occur if a 32-bit address size override prefix is used. #UD If the LOCK prefix is used.\n\n## Virtual-8086 Mode Exceptions ¶\n\nSame exceptions as in real address mode.\n\n## Compatibility Mode Exceptions ¶\n\nSame exceptions as in protected mode.\n\n## 64-Bit Mode Exceptions ¶\n\n #GP(0) If the memory address is in a non-canonical form. #UD If the LOCK prefix is used."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.64563453,"math_prob":0.9070917,"size":11559,"snap":"2021-04-2021-17","text_gpt3_token_len":3952,"char_repetition_ratio":0.28420597,"word_repetition_ratio":0.34880516,"special_character_ratio":0.34795398,"punctuation_ratio":0.10080183,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.975078,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-01-21T04:09:16Z\",\"WARC-Record-ID\":\"<urn:uuid:26c772c6-e17b-4ab0-b6b8-3aef887dae02>\",\"Content-Length\":\"22124\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:00b0e004-4910-49e3-bfba-287ee8759a80>\",\"WARC-Concurrent-To\":\"<urn:uuid:f76f1bb6-3d03-4e3c-8421-dbdd4caecb38>\",\"WARC-IP-Address\":\"104.248.60.43\",\"WARC-Target-URI\":\"https://www.felixcloutier.com/x86/jcc\",\"WARC-Payload-Digest\":\"sha1:MTRLYL4SV2WJHUKHIB2K4P2JMEDXDKXH\",\"WARC-Block-Digest\":\"sha1:MZEQLPAOQCFKBJSKVONAVGTMFW7R6K7H\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-04/CC-MAIN-2021-04_segments_1610703522242.73_warc_CC-MAIN-20210121035242-20210121065242-00795.warc.gz\"}"} |
https://coolcodea.wordpress.com/2015/12/11/252-snake/ | [
"This is the old snake game, as shown below. posted his version on the Codea forum, but got stuck on making the snake longer when it ate food. So, Joao, this is for you.\n\nIf you are fairly new to Codea, this may help you understand things like tables a little better.\n\n### How the Snake game works\n\nYou use a joystick (up/down/left/right) to steer a snake (green squares) around the screen, trying to touch the food (red square). Each time you touch the food, your length increases by 1, and new food appears. If you go off the edge of the screen, you lose.\n\nThis used to be a popular game on old “feature” phones, you know, those really old ones with about 10 pixels on the screen, because this game didn’t use many pixels. In fact, the snake was made up of 1 pixel squares.\n\nIf you did that with your iPad, you wouldn’t see the snake, it would be so tiny, so we have to make it bigger. We’ll pretend the iPad screen is made up of little squares, each 20 pixels wide. The snake and food will also be squares which are 20 pixels wide.\n\nNow, when you touch the joystick controls, the head of the snake needs to turn left, right, up or down, and the rest of the snake will follow.",
null,
"So suppose the snake is 4 squares long, and is going from right to left. Then we turn down.\n\nThe picture shows how the first square goes down and is followed by the other squares. But the other squares don’t all start going down immediately – they follow exactly the same path as the first square, so the last square (number 4 in the picture) goes left 3 squares before it starts going down.\n\nHow do we do this? How do we get the squares to remember the path that the first square took?\n\nThe answer is amazingly easy, and it’s probably why this game was made originally, because it is so simple.\n\nOur program will have a list of the positions for the squares of the snake. So suppose the list for the picture above looks like this, before we turn down the screen:\n\n(200,100), (220,100), (240,100), (260,100)\n\nYou can see the x values of the squares are 20 pixels apart, so they are in a row next to each other (as you see above).\n\nNow we turn down. The list for the second picture above will look like this. The first square has gone down 20 pixels and the other squares have moved left\n\n(200,80), (200,100), (220,100), (240,100)\n\nand the list for the third picture will look like this (the second square has now started going down)\n\n(200,60), (200,80), (200,100), (220,100)\n\nCan you see the pattern?\n\nThe first item in each list is the new position of the head of the snake.\n\nTo get the positions of the rest of the snake, you take the list for the previous move, and move them all one to the left, because the second square is moving to where the first square was, the third square moves to where the second square was, and so on.\n\nSo if you have a four-square snake with a list of positions (a,b,c,d), and the snake moves to e, then the list of positions will become (e,a,b,c). This means you add the new position at the front of the list, and delete the last item on the list.\n\nThis does exactly what we need.\n\nAnd it gets better, because there is an easy solution for our next problem. How do we add a square to the tail of the snake if it eats some food? Should it go above, below, left or right of the end of the snake? The obvious answer is that it should go where the tail of the snake has just been, ie the empty square where it was one move ago. And this is incredibly easy to do.\n\nWhen we are adding a new position to our list, we look at whether we ate food, and if we did, we don’t delete the last item on the list (but if we didn’t eat food, we do delete it). This effectively adds a new item on the end, exactly where the tail of the snake was one move ago. Perfect.\n\nIf we moved the snake by one square (20 pixels) every frame, it would get across the whole screen in about a second, which is way too fast. We need to slow it down.\n\nWe can do this by using a counter that increases by 1 at each frame. Then, every (say) 10th frame, we move the snake.\n\nAdjusting every 10th frame means the picture only changes 6 times a second, and it will look jumpy. I’ll fix this below, but first, let’s program it like this.\n\nHere is my setup function\n\n```function setup()\nspeed=20 --a bigger number makes it slower and easier\nsize=20 --size of each squares (pixels)\n--start our snake in the middle of the screen\n-- // is integer division, ie WIDTH/2//size=math.floor(WIDTH/2)\n--we do this because the snake must be exactly on a square\nstart=vec2(WIDTH/2//size,HEIGHT/2//size)*size\nS={start} --table holding snake squares\n--JOYSTICK SETUP CODE GOES HERE (we'll look at this later)\n--set the direction we are moving (nothing at first)\ncounter=0\nend\n```\n\nAnd here is my draw function. When you start out programming, you will probably have most of your code in the draw function, and it starts getting very messy. It’s a good idea to put the code into separate functions, making it easier to debug.\n\n```function draw()\nbackground(150, 192, 209, 255)\nDrawSnake()\nDrawFood()\nDrawJoyStick()\nend\n```\n\nHere is the DrawSnake code – this is the important function. See the numbered notes underneath\n\n```function DrawSnake()\n--update snake position\ncounter=counter+1\nif counter%speed==0 then --\nlocal p=S+direction*size --\nif p.x<0 or p.x>WIDTH or p.y<0 or p.y>HEIGHT then --\n--LOSE GAME - NOT PROGRAMMED\nend\ntable.insert(S,1,p) --\n--eat food\nif S:dist(food)<0.1 then --\n--UPDATE SCORE -- NOT PROGRAMMED\nAddFood() --create new food somewhere else\nelse\ntable.remove(S,#S) --\nend\nend\n\npushStyle() --\nfill(75, 140, 72, 255)\nfor i=1,#S do --\nrect(S[i].x,S[i].y,size)\nend\npopStyle()\nend```\n\n counter%speed = remainder of counter/speed. It will be 0 if counter is an exact multiple of speed, so if speed=10, then this will give an answer of 0 when counter =10, 20, 30,…. So this is an easy way of doing something every 10 frames.\n\n I haven’t shown you this yet, but touching the joystick gives you a direction vector, Left is (-1,0), right is (1,0), up is (0,1) and down is (0,-1). We multiply this by the size of our squares, and add it to the position of the first item in our snake list.\n\n if we go off the edge off the screen, we lose. I didn’t program what happens if you lose.\n\n if we are still on the screen, we insert our new position p into the first place in our snake table.\n\n if we are very close to the position of the food (the dist function calculates distance in pixels between two points), then we ate the food. I didn’t program the score, but I add new food somewhere else.\n\n I delete the last item in the snake table, but only if we didn’t eat food (as explained above).\n\n whenever I change colours, I put pushStyle() first, and popStyle() when I’ve finished. This makes Codea save the previous settings and put them back afterwards.\n\n now I draw the squares of the snake using a for loop (#S is the number of items in the table S)\n\nBelow is my function for adding food. I’ve included it to show how I can make sure it is not too close to the player, and it is not too close to the joystick controls. As with the snake, the food position needs to be a multiple of the square size (ie 20), so I start by calculating how many squares there are in the width and height, choosing one at random, and doing my checks. If it’s too close to the snake or the joystick, I do it again, and break (ie exit) if everything is OK.\n\n```function AddFood()\nwhile true do --keep looping until we get a position we want\n--positions must be a multiple of the size, so\n--first figure out how many we can fit into the screen\nlocal w,h=WIDTH//size,HEIGHT//size\n--choose one that isn't on the edge\nfood=vec2(math.random(2,w-1),math.random(2,h-1))*size\n--make sure it is further than 50 pixels from our snake head\n--and also that it is not inside our joystick\nif food:dist(S)>50 and food:dist(joyCentre)>joyLength then\nbreak\nend\nend\nend\n```\n\nFinally, the joystick code. This code goes in setup. What is all this? I set up a table with 4 items, one for each of the paddle arms. Each of these 4 items is a table, made up of the centre position of that joystick arm, its length and width, and the direction to go in, if that arm is touched.\n\n```joyCentre=vec2(WIDTH-140,140) --centre of joystick paddle\njoyWidth,joyLength=40,80 --length and width of paddle arms\njoyArms={\n{joyCentre-vec2(joyLength,joyWidth)/2,joyLength,joyWidth,vec2(-1,0)},\n{joyCentre+vec2(joyLength,joyWidth)/2,joyLength,joyWidth,vec2(1,0)},\n{joyCentre-vec2(joyWidth,joyLength)/2,joyWidth,joyLength,vec2(0,-1)},\n{joyCentre+vec2(joyWidth,joyLength)/2,joyWidth,joyLength,vec2(0,1)}\n}\n```\n\nThe reason I do this here, is that it makes the touch code much simpler.\n\n```function touched(t)\nif t.state==ENDED then --if we have finished touching\nfor i=1,4 do --check if we touched each arm\nlocal j=joyArms[i] --just to make the next line shorter\n--check if we touched inside this arm\nif math.abs(t.x-j.x)<j and\nmath.abs(t.y-j.y)<j then\ndirection=j\nbreak\nend\nend\nend\nend\n```\n\nDrawing the joystick is also simple. I’m lazy, and I draw the 4 arms as two thick lines instead of 4 rectangles.\n\n```function DrawJoyStick()\npushStyle()\nstroke(86, 133, 199, 255)\nstrokeWidth(joyWidth)\nline(joyCentre.x-joyLength,joyCentre.y,\njoyCentre.x+joyLength,joyCentre.y)\nline(joyCentre.x,joyCentre.y-joyLength,\njoyCentre.x,joyCentre.y+joyLength)\npopStyle()\nend\n```\n\n### What about the jumpy updating?\n\nSo far, our program looks like this. Can we make it less jumpy?\n\nInstead of just jumping from one square to the next, we can interpolate, so the movement is smooth. We will still only eat food or change direction every S frames, where S is the speed we have chosen, but we will move the squares in between.\n\nThis is easy to do. Imagine we have a 4-square snake with positions (a,b,c,d), and it is going to move to e (it doesn’t matter whether this is in the same direction or not).\n\nIn the program above, we would wait for S frames (where S is the speed), and then change the list to (e,a,b,c).\n\nWhat we will do now, is to add e to the front of the list, and delete the last item. Then when we draw, we use the counter to interpolate. So if the speed is 10 (ie it takes 10 frames to move one square, or 20 pixels), the position of the first snake square will be as follows for the next 3 frames\n\n```frame 1 = e*1/10 + a*9/10\nframe 2 = e*2/10 + a*8/10\nframe 3 = e*3/10 + a*7/10\n....\nframe 10 = e*10/10 + a*0/10\n```\n\nSo we calculate each square’s position by interpolating between its previous position and its next position. It means one small change to our initial table, so instead of S={start}, we have S={start,start}, so we have two positions to interpolate between, even if they are the same at the beginning.\n\nThis is the code for drawing the snake\n\n```local f=(counter%speed)/speed --fraction\nfor i=1,#S-1 do\nlocal x,y=S[i].x*f+S[i+1].x*(1-f),S[i].y*f+S[i+1].y*(1-f)\nrect(x,y,size)\nend\n```\n\nNote how my loop stops one before the end of the table S. That’s because I included an extra item in it at the beginning for interpolation. The first snake square interpolates between the first and second item, the second square interpolates between the second and third list items, and the last snake square interpolates between the second to last and last list items.\n\nAnd when you do all this, you get the result shown in the video at the top of this post.\n\nHere is the final code. I’m not sure the joystick code is working perfectly, but I mainly did this post to show how to program snake, so I’m not going to go back and look at it.\n\nI hope you enjoy it, and maybe try changing it."
]
| [
null,
"https://coolcodea.files.wordpress.com/2015/12/snake1.png",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.88130516,"math_prob":0.9642367,"size":11716,"snap":"2022-40-2023-06","text_gpt3_token_len":3069,"char_repetition_ratio":0.13806352,"word_repetition_ratio":0.016990291,"special_character_ratio":0.27133834,"punctuation_ratio":0.1292619,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98270607,"pos_list":[0,1,2],"im_url_duplicate_count":[null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-02-05T07:14:56Z\",\"WARC-Record-ID\":\"<urn:uuid:39709403-5a2f-40c6-ab93-f7e27a74cdbf>\",\"Content-Length\":\"107276\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:4763ed26-9daf-45a2-85b7-5d19c5130d53>\",\"WARC-Concurrent-To\":\"<urn:uuid:1c050d8d-884f-4551-8b15-c0876d851cf9>\",\"WARC-IP-Address\":\"192.0.78.12\",\"WARC-Target-URI\":\"https://coolcodea.wordpress.com/2015/12/11/252-snake/\",\"WARC-Payload-Digest\":\"sha1:GUSKXWB6HMMO2NNBUQNSMRV6SNDCLLOK\",\"WARC-Block-Digest\":\"sha1:LCCJLPB2K5EYUN3GVYGAAL4QHHJS7JB3\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764500250.51_warc_CC-MAIN-20230205063441-20230205093441-00805.warc.gz\"}"} |
https://number.academy/4378 | [
"# Number 4378\n\nNumber 4,378 spell 🔊, write in words: four thousand, three hundred and seventy-eight . Ordinal number 4378th is said 🔊 and write: four thousand, three hundred and seventy-eighth. The meaning of number 4378 in Maths: Is Prime? Factorization and prime factors tree. The square root and cube root of 4378. What is 4378 in computer science, numerology, codes and images, writing and naming in other languages. Other interesting facts related to 4378.\n\n## What is 4,378 in other units\n\nThe decimal (Arabic) number 4378 converted to a Roman number is (IV)CCCLXXVIII. Roman and decimal number conversions.\n The number 4378 converted to a Mayan number is",
null,
"Decimal and Mayan number conversions.\n\n#### Weight conversion\n\n4378 kilograms (kg) = 9651.7 pounds (lbs)\n4378 pounds (lbs) = 1985.8 kilograms (kg)\n\n#### Length conversion\n\n4378 kilometers (km) equals to 2721 miles (mi).\n4378 miles (mi) equals to 7046 kilometers (km).\n4378 meters (m) equals to 14364 feet (ft).\n4378 feet (ft) equals 1335 meters (m).\n4378 centimeters (cm) equals to 1723.6 inches (in).\n4378 inches (in) equals to 11120.1 centimeters (cm).\n\n#### Temperature conversion\n\n4378° Fahrenheit (°F) equals to 2414.4° Celsius (°C)\n4378° Celsius (°C) equals to 7912.4° Fahrenheit (°F)\n\n#### Power conversion\n\n4378 Horsepower (hp) equals to 3219.58 kilowatts (kW)\n4378 kilowatts (kW) equals to 5953.23 horsepower (hp)\n\n#### Time conversion\n\n(hours, minutes, seconds, days, weeks)\n4378 seconds equals to 1 hour, 12 minutes, 58 seconds\n4378 minutes equals to 3 days, 58 minutes\n\n### Codes and images of the number 4378\n\nNumber 4378 morse code: ....- ...-- --... ---..\nSign language for number 4378:",
null,
"",
null,
"",
null,
"",
null,
"Number 4378 in braille:",
null,
"Images of the number\nImage (1) of the numberImage (2) of the number",
null,
"",
null,
"More images, other sizes, codes and colors ...\n\n#### Number 4378 infographic",
null,
"### Gregorian, Hebrew, Islamic, Persian and Buddhist year (calendar)\n\nGregorian year 4378 is Buddhist year 4921.\nBuddhist year 4378 is Gregorian year 3835 .\nGregorian year 4378 is Islamic year 3871 or 3872.\nIslamic year 4378 is Gregorian year 4869 or 4870.\nGregorian year 4378 is Persian year 3756 or 3757.\nPersian year 4378 is Gregorian 4999 or 5000.\nGregorian year 4378 is Hebrew year 8138 or 8139.\nHebrew year 4378 is Gregorian year 618.\nThe Buddhist calendar is used in Sri Lanka, Cambodia, Laos, Thailand, and Burma. The Persian calendar is official in Iran and Afghanistan.\n\n## Share in social networks",
null,
"## Mathematics of no. 4378\n\n### Multiplications\n\n#### Multiplication table of 4378\n\n4378 multiplied by two equals 8756 (4378 x 2 = 8756).\n4378 multiplied by three equals 13134 (4378 x 3 = 13134).\n4378 multiplied by four equals 17512 (4378 x 4 = 17512).\n4378 multiplied by five equals 21890 (4378 x 5 = 21890).\n4378 multiplied by six equals 26268 (4378 x 6 = 26268).\n4378 multiplied by seven equals 30646 (4378 x 7 = 30646).\n4378 multiplied by eight equals 35024 (4378 x 8 = 35024).\n4378 multiplied by nine equals 39402 (4378 x 9 = 39402).\nshow multiplications by 6, 7, 8, 9 ...\n\n### Fractions: decimal fraction and common fraction\n\n#### Fraction table of 4378\n\nHalf of 4378 is 2189 (4378 / 2 = 2189).\nOne third of 4378 is 1459,3333 (4378 / 3 = 1459,3333 = 1459 1/3).\nOne quarter of 4378 is 1094,5 (4378 / 4 = 1094,5 = 1094 1/2).\nOne fifth of 4378 is 875,6 (4378 / 5 = 875,6 = 875 3/5).\nOne sixth of 4378 is 729,6667 (4378 / 6 = 729,6667 = 729 2/3).\nOne seventh of 4378 is 625,4286 (4378 / 7 = 625,4286 = 625 3/7).\nOne eighth of 4378 is 547,25 (4378 / 8 = 547,25 = 547 1/4).\nOne ninth of 4378 is 486,4444 (4378 / 9 = 486,4444 = 486 4/9).\nshow fractions by 6, 7, 8, 9 ...\n\n### Calculator\n\n 4378\n\n#### Is Prime?\n\nThe number 4378 is not a prime number. The closest prime numbers are 4373, 4391.\n4378th prime number in order is 41887.\n\n#### Factorization and factors (dividers)\n\nThe prime factors of 4378 are 2 * 11 * 199\nThe factors of 4378 are 1 , 2 , 11 , 22 , 199 , 398 , 2189 , 4378\nTotal factors 8.\nSum of factors 7200 (2822).\n\n#### Powers\n\nThe second power of 43782 is 19.166.884.\nThe third power of 43783 is 83.912.618.152.\n\n#### Roots\n\nThe square root √4378 is 66,166457.\nThe cube root of 34378 is 16,359069.\n\n#### Logarithms\n\nThe natural logarithm of No. ln 4378 = loge 4378 = 8,384347.\nThe logarithm to base 10 of No. log10 4378 = 3,641276.\nThe Napierian logarithm of No. log1/e 4378 = -8,384347.\n\n### Trigonometric functions\n\nThe cosine of 4378 is 0,189485.\nThe sine of 4378 is -0,981884.\nThe tangent of 4378 is -5,181865.\n\n### Properties of the number 4378\n\nMore math properties ...\n\n## Number 4378 in Computer Science\n\nCode typeCode value\nPIN 4378 It's recommendable to use 4378 as a password or PIN.\n4378 Number of bytes4.3KB\nUnix timeUnix time 4378 is equal to Thursday Jan. 1, 1970, 1:12:58 a.m. GMT\nIPv4, IPv6Number 4378 internet address in dotted format v4 0.0.17.26, v6 ::111a\n4378 Decimal = 1000100011010 Binary\n4378 Decimal = 20000011 Ternary\n4378 Decimal = 10432 Octal\n4378 Decimal = 111A Hexadecimal (0x111a hex)\n4378 BASE64NDM3OA==\n4378 MD550a074e6a8da4662ae0a29edde722179\n4378 SHA1403c6155cdc33e7cb519cd17c7d0a7c82317a1b5\n4378 SHA22464b453bd82a8f1c5df906492e980fa96d9edfbc687a808a2f765e213\n4378 SHA256e6785e32be8b07b04790aaf5585c202f6c0528e70004ce35b46650bd9f644ce3\n4378 SHA38473b31cdbe34ee59a29e38b846fff93bc104586e63680c287efd9fe03465b5ae886a11a5671182d60c82782d9f0104932\nMore SHA codes related to the number 4378 ...\n\nIf you know something interesting about the 4378 number that you did not find on this page, do not hesitate to write us here.\n\n## Numerology 4378\n\n### The meaning of the number 8 (eight), numerology 8\n\nCharacter frequency 8: 1\n\nThe number eight (8) is the sign of organization, perseverance and control of energy to produce material and spiritual achievements. It represents the power of realization, abundance in the spiritual and material world. Sometimes it denotes a tendency to sacrifice but also to be unscrupulous.\nMore about the meaning of the number 8 (eight), numerology 8 ...\n\n### The meaning of the number 7 (seven), numerology 7\n\nCharacter frequency 7: 1\n\nThe number 7 (seven) is the sign of the intellect, thought, psychic analysis, idealism and wisdom. This number first needs to gain self-confidence and to open his/her life and heart to experience trust and openness in the world. And then you can develop or balance the aspects of reflection, meditation, seeking knowledge and knowing.\nMore about the meaning of the number 7 (seven), numerology 7 ...\n\n### The meaning of the number 4 (four), numerology 4\n\nCharacter frequency 4: 1\n\nThe number four (4) came to establish stability and to follow the process in the world. It needs to apply a clear purpose to develop internal stability. It evokes a sense of duty and discipline. Number 4 personality speaks of solid construction. It teaches us to evolve in the tangible and material world, to develop reason and logic and our capacity for effort, accomplishment and work.\nMore about the meaning of the number 4 (four), numerology 4 ...\n\n### The meaning of the number 3 (three), numerology 3\n\nCharacter frequency 3: 1\n\nThe number three (3) came to share genuine expression and sensitivity with the world. People associated with this number need to connect with their deepest emotions. The number 3 is characterized by its pragmatism, it is utilitarian, sagacious, dynamic, creative, it has objectives and it fulfills them. He/she is also self-expressive in many ways and with good communication skills.\nMore about the meaning of the number 3 (three), numerology 3 ...\n\n## Interesting facts about the number 4378\n\n### Asteroids\n\n• (4378) Voigt is asteroid number 4378. It was discovered by W. Landgraf from La Silla Observatory on 5/14/1988.\n\n### Distances between cities\n\n• There is a 4,378 miles (7,045 km) direct distance between Abobo (Ivory Coast) and Nizhniy Novgorod (Russia).\n• There is a 2,721 miles (4,378 km) direct distance between Accra (Ghana) and Fortaleza (Brazil).\n• There is a 2,721 miles (4,378 km) direct distance between Antalya (Turkey) and Novosibirsk (Russia).\n• There is a 2,721 miles (4,378 km) direct distance between Baku (Azerbaijan) and Madurai (India).\n• More distances between cities ...\n• There is a 4,378 miles (7,045 km) direct distance between Bogor (Indonesia) and Shiraz (Iran).\n• There is a 4,378 miles (7,045 km) direct distance between Curitiba (Brazil) and Niamey (Niger).\n• There is a 4,378 miles (7,045 km) direct distance between Da Nang (Viet Nam) and Mogadishu (Somalia).\n• There is a 4,378 miles (7,045 km) direct distance between Dakar (Senegal) and Maputo (Mozambique).\n• There is a 4,378 miles (7,045 km) direct distance between Fès (Morocco) and Jacksonville (USA).\n• There is a 2,721 miles (4,378 km) direct distance between Gujrānwāla (Pakistan) and Minsk (Belarus).\n• There is a 2,721 miles (4,378 km) direct distance between Hefei (China) and Semarang (Indonesia).\n• There is a 2,721 miles (4,378 km) direct distance between Chennai (India) and Mecca (Saudi Arabia).\n• There is a 4,378 miles (7,045 km) direct distance between Kaduna (Nigeria) and Sūrat (India).\n• There is a 2,721 miles (4,378 km) direct distance between Karaj (Iran) and Nairobi (Kenya).\n• There is a 2,721 miles (4,378 km) direct distance between Luoyang (China) and Mysore (India).\n• There is a 2,721 miles (4,378 km) direct distance between Madrid (Spain) and Medina (Saudi Arabia).\n\n### Mathematics\n\n• 4378 is the number of partitions of 38 that do not contain 1 as a part.\n\n## Number 4,378 in other languages\n\nHow to say or write the number four thousand, three hundred and seventy-eight in Spanish, German, French and other languages. The character used as the thousands separator.\n Spanish: 🔊 (número 4.378) cuatro mil trescientos setenta y ocho German: 🔊 (Anzahl 4.378) viertausenddreihundertachtundsiebzig French: 🔊 (nombre 4 378) quatre mille trois cent soixante-dix-huit Portuguese: 🔊 (número 4 378) quatro mil, trezentos e setenta e oito Chinese: 🔊 (数 4 378) 四千三百七十八 Arabian: 🔊 (عدد 4,378) أربعة آلاف و ثلاثمائةثمانية و سبعون Czech: 🔊 (číslo 4 378) čtyři tisíce třista sedmdesát osm Korean: 🔊 (번호 4,378) 사천삼백칠십팔 Danish: 🔊 (nummer 4 378) firetusinde og trehundrede og otteoghalvfjerds Hebrew: (מספר 4,378) ארבע אלף שלש מאות שבעים ושמנה Dutch: 🔊 (nummer 4 378) vierduizenddriehonderdachtenzeventig Japanese: 🔊 (数 4,378) 四千三百七十八 Indonesian: 🔊 (jumlah 4.378) empat ribu tiga ratus tujuh puluh delapan Italian: 🔊 (numero 4 378) quattromilatrecentosettantotto Norwegian: 🔊 (nummer 4 378) fire tusen, tre hundre og sytti-åtte Polish: 🔊 (liczba 4 378) cztery tysiące trzysta siedemdziesiąt osiem Russian: 🔊 (номер 4 378) четыре тысячи триста семьдесят восемь Turkish: 🔊 (numara 4,378) dörtbinüçyüzyetmişsekiz Thai: 🔊 (จำนวน 4 378) สี่พันสามร้อยเจ็ดสิบแปด Ukrainian: 🔊 (номер 4 378) чотири тисячi триста сiмдесят вiсiм Vietnamese: 🔊 (con số 4.378) bốn nghìn ba trăm bảy mươi tám Other languages ...\n\n## News to email\n\nPrivacy Policy.\n\n## Comment\n\nIf you know something interesting about the number 4378 or any natural number (positive integer) please write us here or on facebook."
]
| [
null,
"https://numero.wiki/s/numeros-mayas/numero-maya-4378.png",
null,
"https://numero.wiki/s/senas/lenguaje-de-senas-numero-4.png",
null,
"https://numero.wiki/s/senas/lenguaje-de-senas-numero-3.png",
null,
"https://numero.wiki/s/senas/lenguaje-de-senas-numero-7.png",
null,
"https://numero.wiki/s/senas/lenguaje-de-senas-numero-8.png",
null,
"https://number.academy/img/braille-4378.svg",
null,
"https://numero.wiki/img/a-4378.jpg",
null,
"https://numero.wiki/img/b-4378.jpg",
null,
"https://number.academy/i/infographics/8/number-4378-infographic.png",
null,
"https://numero.wiki/s/share-desktop.png",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.63790655,"math_prob":0.93135804,"size":9289,"snap":"2022-27-2022-33","text_gpt3_token_len":3331,"char_repetition_ratio":0.15939687,"word_repetition_ratio":0.087649405,"special_character_ratio":0.38647863,"punctuation_ratio":0.15619789,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97027653,"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,null,null,null,null,null,null,null,null,1,null,1,null,1,null,1,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-01T07:04:22Z\",\"WARC-Record-ID\":\"<urn:uuid:b7c7ad17-126e-4a3d-bb5e-b12b9fd4002e>\",\"Content-Length\":\"45477\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a87ed8c6-5d86-482c-8653-dcfb043dedd9>\",\"WARC-Concurrent-To\":\"<urn:uuid:f85a62f2-2359-4dcb-b2c6-522650eb02d9>\",\"WARC-IP-Address\":\"162.0.227.212\",\"WARC-Target-URI\":\"https://number.academy/4378\",\"WARC-Payload-Digest\":\"sha1:H2UV6ZDWYVNEKZEYAGBUZRRIB2EJNOI5\",\"WARC-Block-Digest\":\"sha1:TGGJ5EKBRQQGRGRPU3YIVTYNA5LCBVR5\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656103922377.50_warc_CC-MAIN-20220701064920-20220701094920-00312.warc.gz\"}"} |
https://mathematica.stackexchange.com/questions/92269/distributing-function-arguments-with-function-compositions-how-to-compute-f | [
"# Distributing function arguments with function compositions. How to compute $(f + g^2)(x) = f(x) + g(x)^2$?\n\nSuppose I have two functions f and g. To compute $f + g$ evaluated at a point $x$, I know that one can use Through to compute, Through[(f+g)[x]] to get f[x] + g[x].\n\nQuestion: Suppose I want to compute $f + g^2$, evaluated at point $x$. Thus if it is evaluated at point x, the correct answer would be f[x] + Power[g[x],2]. I want also an analogous result for the \"minus\" case, as in $f - g^2$.\n\nCertainly, writing Power[g,2] instead of g in the above will not work since Mathematica will compute Through[( f + Power[g,2] )[x] ] as f[x] + Power[g,2][x].\n\nI'd also tried to use Composition along with pure functions. So I consider Through[ (f + (Power[#,2]&)@* g)[x] ] but this results in only the first function being correctly distributed, and so the result is, f[x] (-(#1^2 &@*g))[x], which is still incorrect.\n\nEdit (on the issue of \"minus\"): The above code for the case of \"plus\" (i.e. $(f+g)(x) = f(x) + g(x)$) will indeed work. That is, when one uses Through[ (f + (Power[#,2]&)@* g)[x] ], it will indeed result in f[x] + g[x]^2 as expected.\n\nHowever, an issue arises when we consider \"minus\" (i.e. $(f-g)(x) = f(x) - g(x)$) will not generate the intuitive result; that is, writing Through[ (f - (Power[#, 2] &)@*g ) [x] ] will generate the result f[x] + (-(#1^2 &@*g))[x], which is (at least, mathematically) unexpected. However, by \"tucking in\" the minus sign, as Through[ (f + (-Power[#, 2] &)@*g ) [x] ], we get back the desired result f[x] - g[x]^2.\n\n• Through[(f + Composition[Power[#, 2] &, g])[x]] worked for me. I have the feeling that you're not matching parentheses correctly, but since I don't have a version that has the Composition short notation, I can't quite verify that. Aug 24 '15 at 22:47\n• @march Thanks. Actually writing out Composition explicitly also works for me too. I don't quite see the matching parentheses issue in my original code but I'm perfectly happy just typing out the full word! Aug 24 '15 at 22:50\n• I just checked on MMA Online, and it seems like Through[ (f + (Power[#,2]&)@* g)[x] ] works, too, so I'm not sure what's going on. I like the question, though; it just seems that you have a syntax error in your notebook that didn't carry over to your question, maybe? Aug 24 '15 at 22:51\n• @march Ah... I think I see the issue. In the actual application I had in mind, I'd used \"minus\" (i.e. $f - g^2$) instead of writing \"plus\" (i.e. $f + g^2$) as in the toy example I gave. If I (with \"plus\") write Through[ (f + ( Power[#, 2] &)@*g ) [x] ] , then yes, I do get the desired result of f[x] + g[x]^2. But I switch to \"minus\", and write Through[ (f - ( ( Power[#, 2] &)@*g ) ) [x] ] Aug 24 '15 at 22:53\n• f[x] + (-(#1^2 &@*g))[x] is the result if I used \"minus\" Aug 24 '15 at 22:54\n\nIt is sometimes beneficial to first work with functions (in mathematical sense) as symbols and apply to them some pointwise operations. Then, just at the end, convert resulting expression to pure function (in Mathematica sense) and pass some arguments.\n\nThis task can be automated using something like following purify function:\n\nClearAll[purify]\nDefault[purify, 2] =\nsym : Except[HoldPattern@Symbol[___], _Symbol] /;\nNot@MemberQ[Attributes[sym], Constant];\nDefault[purify, 3] = {-1};\npurify[\nexpr_, Shortest[patt_., 1], Shortest[levelspec_., 2],\nopts:OptionsPattern[Replace]\n] :=\nEvaluate@Replace[Unevaluated[expr], func:patt :> func[##], levelspec, opts]&\n\n\nFor the problems from question:\n\npurify[f + g^2][x]\n(* f[x] + g[x]^2 *)\n\npurify[f - g][x]\n(* f[x] - g[x] *)\n\n\nMore complicated example:\n\ntestExpr = (f + g) (f - 2 g + 5 h^2) // Expand\npurify[%][x, y]\n(* f^2 - f g - 2 g^2 + 5 f h^2 + 5 g h^2 *)\n(* f[x, y]^2 - f[x, y] g[x, y] - 2 g[x, y]^2 + 5 f[x, y] h[x, y]^2 + 5 g[x, y] h[x, y]^2 *)\n\n\nConsider only specific symbols as \"functions\":\n\npurify[testExpr, f | h][x, y]\n(* -2 g^2 - g f[x, y] + f[x, y]^2 + 5 g h[x, y]^2 + 5 f[x, y] h[x, y]^2 *)\n\n\nDefault behavior for user functions mixed with built-ins:\n\npurify[π + f + Sin][x]\n(* π + f[x] + Sin[x] *)\n\n\nConsider more complicated expressions as functions:\n\npurify[f + g[a], f | _g, All][x]\n(* f[x] + g[a][x] *)\n\n\npurify[f + g[π + f][a], f, Heads -> True][x]\n(* f[x] + g[π + f[x]][a] *)\n\n\nHeld expressions:\n\npurify[Hold[f + f]][x]\n(* Hold[f[x] + f[x]] *)\n\n\n## Code Explanation\n\nPer request of @Wjx, here's small explanation of posted code.\n\npurify function replaces, in given expression, sub-expressions (let's call them func), matching given pattern, with func[##], where ## represents arbitrary sequence of arguments. This replacement is evaluated inside a Function, since Function has HoldAll attribute we need to use Evaluate for replacement to be evaluated.\n\npurified = purify[x + f, f]\n(* x + f[##1] & *)\n\n\nCalling this function, with any arguments, results in given expression with arguments passed to selected sub-expressions.\n\npurified[x, y, z]\n(* x + f[x, y, z] *)\n\n\nSince purify replaces sub-expressions, its functionality seemed, to me, closest to Replace built-in function, on which purify is based, so I decided it should use similar interface.\n\nAs first argument purify and Replace accept arbitrary expression in which replacements are performed.\n\nAs second argument Replace accepts rules, but in purify right hand side of replacement is fixed, so instead of replacement rules purify accepts only a pattern (left hand side of replacement rule).\n\nSecond argument of purify is Optional, with assigned Default value being a pattern matching all symbols that don't represent constants. Except[HoldPattern@Symbol[___], _Symbol] pattern is used instead of simple _Symbol to make sure that Symbol[\"symName\"], that can appear in held expressions, will not be matched. Not@MemberQ[Attributes[sym], Constant] Condition tests that symbol does not represent a Constant. Passing Symbol[\"symName\"] to Attributes function would lead to an error.\n\nI guess that using sym_Symbol /; AtomQ@Unevaluated[sym] is more popular to prevent matching of Symbol[...] expressions, but I prefer to handle it in pure pattern matcher, without calling evaluator until it's really necessary.\n\nAs third argument both functions accept standard level specification. This argument is also optional in purify, with default being {-1} which means \"leaves\" of expression tree, since that's only level in which symbols can be found.\n\nWith {-1} level specification Except[HoldPattern@Symbol[___], _Symbol] pattern is excessive, since Symbol[...] expressions are not leaves, but I wanted default values to work, in some sense, independent of each other, so if level specification would be changed (for example to All, which would be another reasonable default) default pattern would still work.\n\nBoth functions accept also Heads option that specifies whether heads of expressions should be included in replacements.\n\nSince I wanted any rule, given after first argument, to be interpreted as option even when positional optional arguments are not given, their patterns are wrapped with Shortest with appropriate priorities. Similar effect could be achieved by restricting possible values matched by patt and levelspec arguments.\n\n• Great answer! Thanks! Aug 25 '15 at 20:18\n• Wonderful, it is indeed neatly designed! +1:)\n– Wjx\nOct 13 '16 at 13:38\n\nI'm probably missing an important point, but what is wrong with\n\n(f[#] + g[#]^2)&[x]\n\nf[x]+g[x]^2\n\n• You're probably not missing anything. Simplest is best. Although it's possible there's a good reason why the OP wants to use Through. Aug 25 '15 at 4:04\n\nYou can achieve this defining an UpValue for g:\n\ng/:Power[g,2]:=g[#]^2&\n\n\nOr more generally:\n\ng/:Power[g,n_Integer]:=g[#]^n&\n\n\nUsing Through now works as wanted:\n\nThrough[(f + g^2)[x]]\n(*Out=f[x]+g[x]^2*)\n\n• Did you see the comment the OP made about attaching a minus sign to g^2? It would be good if you could generalize to that case, as well. Otherwise, I like this answer (+1). Aug 24 '15 at 22:59\n• Thanks! However, while this is great for a one off computation, I don't think this necessarily a useful result when I need to do this repeatedly. In particular, if one has two lists of functions {f1, f2, f3} and {g1, g2, g3} (and especially if the lists are long), and I want a result say {f1 - g1^2, f2 - g2^2, f3 - g3^2}, I'll need to use UpValue for all of these functions. Aug 24 '15 at 22:59\n• @march I actually happen to think both solutions are good, but yours is perhaps most useful if one wants to apply this repeatedly. I really did not anticipate that whether one tucks in the minus sign or not makes a difference to Through. But I agree, for the question asked (I didn't specify the repeatedly aspect), @glance has a good answer. Aug 24 '15 at 23:02\n• @user32416. Check out the difference between (-g[#]^2 &) // FullForm and -(g[#]^2 &) // FullForm, and you'll see why it matters. Aug 24 '15 at 23:20\n• @user32416. As for extending this answer, if you use functions that have Heads g, g, etc., then it is easily extended so that you don't have to define each one individually: g /: Power[g[a_], n_Integer] := g[a][#]^n&. Then the list of f[i] + g[i]^2's would all work. Aug 25 '15 at 3:21\n\nThe original version works just fine:\n\nThrough[(f + Composition[Power[#,2]&, g])[x]]\n\n\nor, for MMA ver. 10 and above,\n\nThrough[(f + (Power[#,2]&) @* g)[x]]\n\n\nresult in\n\n(* f[x] + g[x]^2 *)\n\n\nAlternatively, you could do, from the beginning,\n\nThrough[(f + (g[#]^2 &))[x]]\n\n\nwhich is perhaps a little easier to parse since it doesn't use Composition.\n\nNow, this should work for more general functions. You just need to make sure that what gets attached to the [x] as a Head is something that can actually act as if it's the name of a function that will use x as an input. So, for instance, if you want to make the expression\n\nf[x] - g[x]^2\n\n\nUsing Through, and you try something like\n\nThrough[(f - (g[#]^2 &))[x]]\n\n\nthe result is somewhat unexpected:\n\n(* f[x] + (-(g[#1]^2 &))[x] *)\n\n\nThe reason this doesn't work is that f - (g[#]^2 &) is actually parsed as\n\nf - (g[#]^2 &) // FullForm\n(* Plus[f, Times[-1, Function[Power[g[Slot], 2]]]] *)\n\n\nMore simply, we have\n\nf + Times[-1, Function[g[#]^2]]]\n\n\nand since Times[__][x] doesn't evaluate as if x is the input of a function, this just returns\n\n(-(g[#1]^2 &))[x]\n\n\nor\n\nTimes[-1, Function[g[#]^2]]][x]\n\n\nWhat we want in the place of this is a pure function, i.e. something which has Function as a Head. The fix is straight-forward: attach the minus sign inside the function. So:\n\nThrough[(f + (-g[#]^2 &))[x]]\n(* f[x] - g[x]^2 *)\n\n\nMaybe I misunderstood this problem? My solution is much more simpler(and readable, cause I'm simply too stupid to understand @jkuczm's code. I'll appreciate that if you may kindly add some explanation?) than @jkuczm's solution, but they generate the same result........\n\nCode first:\n\np[e_] := If[AtomQ@e, If[NumericQ@e, e, e[##]], p /@ e]\nf[e_] := Evaluate[p[e]] &\n\n\nThe basic idea is quite simple:\n\n1. Every expression is a tree, the expression at the bottom level, if is not a number, shall be replaced to something like f->f[##].\n2. You should let it be a Function, not something with f[##] without &\n\np scan the expression tree and generate something like f[##] and f simply add an & to the incomplete expression generated.\n\nI've tested all the expression in @jkuczm's answer, they all generate the same result.\n\nWill this help?\n\n# Edit 1\n\nThe greatest advantage of this code is that it's quite expandable as well, you can even specify some constant element that should not be considered as functions. For example, you have something like f g while you want to consider f as some sort of constant or so. You can use the following code:\n\np[e_, ue_] :=\nIf[AtomQ@e, If[! FreeQ[ue, e] || NumericQ[e], e, e[##]], p[#,ue]& /@ e];\nf[e_, ue_: {}] := Evaluate[p[e, ue]] &;\n\n\nThis code will still do the previous job, of course. But in this code, you can manually set ue in a list form. For Example, in this function ff+g k,you may want ff to be something like a constant. Then try this code:\n\nf[ff + g k, {ff}][x]\n\n(*ff+g[x] k[x]*)\n\n\nGreat!\n\nAlso, sometimes you would like to keep some function in f[g][x] form. That will be okay--- Add an additional If before it will do the job:\n\np[e_, ue_,lf_] :=\nIf[!FreeQ[lf,Head@e],e[##],If[AtomQ@e, If[! FreeQ[ue, e] || NumericQ[e], e, e[##]], p[#,ue,lf]& /@ e]];\nf[e_, ue_: {},lf_:{}] := Evaluate[p[e, ue,lf]] &;\n\n\nor maybe in f[g[x]][x]form\n\np[e_, ue_,lf_] :=\nIf[!FreeQ[lf,Head@e],(p[#,ue,lf]& /@ e)[##],If[AtomQ@e, If[! FreeQ[ue, e] || NumericQ[e], e, e[##]], p[#,ue,lf]& /@ e]];\nf[e_, ue_: {},lf_:{}] := Evaluate[p[e, ue,lf]] &;\n\n\nThe greatest advantage of this form is that the matching will go in a tree form, which enables you to do almost everything at every level and every pary of the expression."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.7887928,"math_prob":0.95845824,"size":5027,"snap":"2021-43-2021-49","text_gpt3_token_len":1351,"char_repetition_ratio":0.12602031,"word_repetition_ratio":0.009975063,"special_character_ratio":0.28108215,"punctuation_ratio":0.13897596,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9931751,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-11-27T05:11:39Z\",\"WARC-Record-ID\":\"<urn:uuid:b058bb93-6e73-418b-8264-c986800d52d6>\",\"Content-Length\":\"200047\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1a977807-dc0d-44b1-a9cd-3b304c2dd04e>\",\"WARC-Concurrent-To\":\"<urn:uuid:71bbd9ae-72d7-41cd-acea-576c4bdf6366>\",\"WARC-IP-Address\":\"151.101.193.69\",\"WARC-Target-URI\":\"https://mathematica.stackexchange.com/questions/92269/distributing-function-arguments-with-function-compositions-how-to-compute-f\",\"WARC-Payload-Digest\":\"sha1:FG6NN7K3KFPXTXQX6QZRPES5B6RF74ZL\",\"WARC-Block-Digest\":\"sha1:MZ7PE32R4KXEMDSZSQAXXMMIDWMUK7YG\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964358118.13_warc_CC-MAIN-20211127043716-20211127073716-00020.warc.gz\"}"} |
https://community.esri.com/t5/geoprocessing-questions/densify-y-value-seems-incorrect/td-p/380159 | [
"# Densify Y-value seems incorrect?\n\n599\n0\n07-09-2013 01:12 PM",
null,
"New Contributor\nHello, this is my first time posting on forums.arcgis.com so please forgive me if I haven't formatted my question correctly or followed correct submission protocol.\n\nI am developing a desktop GIS product in C# using the ArcGis Runtime for WPF version 10.1.1\n\nI have written a function that uses Densify to insert a point every 1/n-th subsegment of a two-point segment (e.g. if I had a segment between (100,1) and (200,5) this function could insert points at (125,2), (150,3), and (175,4) (where n == 0.25).\n\nWhen I run this function, I get almost what I expect. The number of points and their X-values seem correct, but the Y-values of the inserted points seem drastically wrong. Here is the function (the parameter \"proportionFromStart\" is analogous to n in my above example, all Geometry is projected in ESRI.ArcGIS.Client.Projection.WebMercator)\n\n``` private MapPoint GetPointAlongSingleSegment(object polylineSegment, double proportionFromStart)\n{\nESRI.ArcGIS.Client.Geometry.Polyline pL = polylineSegment as ESRI.ArcGIS.Client.Geometry.Polyline;\n//control for extreme vaules\nif (pL.Paths.Count != 1 || pL.Paths.Count != 2)\n{\nLog.Error(\"GetPointAlongSingleSegment called on a polyline that is not a single (two-point) segment\");\nreturn null;\n}\ndouble fullLength = ESRI.ArcGIS.Client.Geometry.Geodesic.Length(pL);\nESRI.ArcGIS.Client.Geometry.Geometry densifiedGeometry =\nESRI.ArcGIS.Client.Geometry.Geodesic.Densify(pL, (fullLength * proportionFromStart));\n///////...placed breakpoint here to inspect objects\n}\n```\n\nAnd here is the output when I inspect the original line (pL) and the densified line when proportionFromStart == 0.5:\n\npL.Paths\nCount = 2\n: {Point[X=-8932651.10126309, Y=4313679.64989647]}\n: {Point[X=-8932680.55891339, Y=4313877.57298654]}\n\n(densifiedGeometry as ESRI.ArcGIS.Client.Geometry.Polyline).Paths\nCount = 3\n: {Point[X=-8932651.10126309, Y=4313679.64989647]}\n: {Point[X=-8932666.30560504, Y=-11.7697564697751]}\n: {Point[X=-8932680.55891339, Y=4313877.57298654]}\n\nSo, the expected number of points were added (in this case, just the one geodesic midpoint), and the X-values of these points all look correct to me, but why is the Y-value of the added point (: {Point...) so strange? (The single point added by Densify has a Y-value of about -11.77, whereas the points on either side have much more common (for my data) \"in-the-millions\" values, roughly 4,313,679.65 and 4,313,877.57.\n\nI have tried this for many values of proportionFromStart between 0 and 1. In all cases, all inserted points have what appears to be correct X-values, but the Y-values are all very small and negative. The inserted Y-values are trending in the proper direction and seem evenly spaced around each other, but are orders-of-magnitude smaller than expected and have the wrong sign.\n\nAm I doing something wrong in the way I'm calling the Densify function? How should I interpret the inserted Y-values?\n\nIs there an easier way to achieve such point insertion within the WPF ArcGIS runtime? (It seems there may be options in other ESRI libraries, but I am confined to the ArcGIS Runtime for WPF.)\n\nThanks very much,\n\nThomas\n\nUPDATE:\n\nI discovered that, using almost all the same parameters, I can get the expected result if I call the Densify instance method of the Geometry service, so, this behavior seems likely tied to the static call. Here is the code that I'm using as a workaround (/*some comments for brevity*/):\n\n``` DensifyParameters densifyParameters = new DensifyParameters()\n{\nLengthUnit = LinearUnit.Meter,\nGeodesic = true,\nMaxSegmentLength = LengthOfGeometryInMeters(pL) * proportionFromStart\n};\nGraphic g = new Graphic();\ng.Geometry = pL;\nList<Graphic> gL = new List<Graphic>();\nESRI.ArcGIS.Client.Geometry.Geometry asyncDensGeo = null;\nasyncDensGeo = /*our app's local geometry service*/.Densify(gL, densifyParameters).Geometry;\n```\n\nUpon inspection, asyncDensGeo looks very much like densifiedGeometry (above) but with sensible Y-values. I don't have an apples-to-apples output available to paste, but, what I observed is that the X-values still look correct (although, they were, in fact, very slightly different (+/- 0.5 meters) from the static Densify), and the Y-values look equally correct, ascending in expected increments along the segment.\n\nThe only parameter that changed significantly was the maximum length parameter. To get expected results in the instance-Densify method, I had to use a fraction of the length-in-meters of the polyline. I tried using this same value in the static-Densify call, but got MANY too many points added, and, all of the injected points had strangely small, negative Y-values, just like before.\n\nSo, for now, we are using the service instance Densify method as a workaround, and avoiding the static\nESRI.ArcGIS.Client.Geometry.Geodesic.Densify\nuntil we can understand how to prevent the strange Y-values from appearing\nTags (3)\n0 Replies",
null,
""
]
| [
null,
"https://community.esri.com/legacyfs/online/esri/avatars/a1028_27.png",
null,
"https://community.esri.com/skins/images/B41F29CF7E9150902B8A2F2CBD975936/responsive_peak/images/icon_anonymous_message.png",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.85990757,"math_prob":0.84019357,"size":4873,"snap":"2023-14-2023-23","text_gpt3_token_len":1241,"char_repetition_ratio":0.12610392,"word_repetition_ratio":0.0,"special_character_ratio":0.2632875,"punctuation_ratio":0.1846473,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98122054,"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-01T02:36:18Z\",\"WARC-Record-ID\":\"<urn:uuid:df0967d7-b724-4553-a24c-60c4757e7e23>\",\"Content-Length\":\"153850\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6c769a14-2f68-4cc3-b3c1-970a3afb275f>\",\"WARC-Concurrent-To\":\"<urn:uuid:3d290de8-7884-494b-a6a0-7e8c2598a1e5>\",\"WARC-IP-Address\":\"13.32.151.62\",\"WARC-Target-URI\":\"https://community.esri.com/t5/geoprocessing-questions/densify-y-value-seems-incorrect/td-p/380159\",\"WARC-Payload-Digest\":\"sha1:ZFDLLKCGFHBNUMM3SXSUPVYFRJXOL2IQ\",\"WARC-Block-Digest\":\"sha1:E6BLOGC4AWZJTE2BUV6I2CWLHZV2S7QV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224647525.11_warc_CC-MAIN-20230601010402-20230601040402-00362.warc.gz\"}"} |
https://www.educator.com/mathematics/algebra-1/eaton/linear-functions.php | [
"",
null,
"",
null,
"Dr. Carleen Eaton\n\nLinear Functions\n\nSlide Duration:\n\nSection 1: Basic Concepts\nVariables and Expressions\n\n11m 22s\n\nIntro\n0:00\nHistory of Algebra\n0:12\nOrigin of Word\n0:21\nReal World Problems\n0:35\nDefinitions\n0:58\nVariable\n1:03\nAlgebraic Expression\n1:37\nOperations\n2:02\nExample 1: Words into Expressions\n3:02\nExample 2: Words into Expressions\n5:20\nExample 3: Words into Expressions\n6:45\nExample 4: Words into Expressions\n9:46\nOrder of Operations\n\n15m 59s\n\nIntro\n0:00\nExample\n0:17\nDefinition\n0:57\nProcedure to Evaluate an Arithmetic Expression\n1:08\nGrouping Symbols (Parentheses, Brackets, Braces)\n1:19\nPowers\n1:42\nMultiply/Divide Left to Right\n1:57\n2:21\nExample: Fraction Bar\n2:49\nExample 1: Evaluate Arithmetic Expression\n3:45\nExample 2: Evaluate Arithmetic Expression\n7:28\nExample 3: Evaluate Arithmetic Expression\n10:11\nExample 4: Evaluate with Variables\n13:12\nDistributive Property\n\n9m 50s\n\nIntro\n0:00\nDistributive Property Statements\n0:23\nMoving Forward\n0:49\nRule for Subtraction\n1:14\nReverse Order\n1:40\nSeveral Numbers\n2:17\nExample 1: Evaluate Using Distributive Property\n2:56\nExample 2: Multiply Using Distributive Property\n4:10\nExample 3: Simplify Using Distributive Property\n4:59\nExample 4: Simplify Using Distributive Property\n7:03\nReal Number System\n\n17m 58s\n\nIntro\n0:00\nReal Number System\n0:31\nNatural Numbers\n0:39\nWhole Numbers\n1:11\nIntegers\n1:23\nRational Numbers\n1:52\nCannot Divide by Zero\n2:18\nDecimals\n2:27\nExample: Terminating or Repeating\n2:39\nReal Number System, Cont.\n3:37\nSquare Roots\n3:42\nExamples\n3:54\nIrrational Numbers\n4:36\nExamples\n5:02\nPerfect Square\n5:54\nReal Number System, Cont.\n6:49\nExample: Number Line\n7:02\nExample 1: Which Set of Numbers\n7:54\nExample 2: Graph on Number Line\n10:04\nExample 3: Approximate Irrational Number\n12:47\nExample 4: Order Largest to Smallest\n13:57\nFunctions and Graphs\n\n34m 39s\n\nIntro\n0:00\nFunctions\n0:15\nExample: Function\n0:29\nExample: Not Functions (Relations)\n1:15\nGraphs\n4:44\nVisual Display\n4:53\nExample: X and Y\n5:03\nCoordinate Pairs\n5:53\nDiscrete Function\n8:19\nContinuous Function\n8:55\nVertical Line Test\n10:55\nTest if Function\n11:12\nExample: Pass Through Points\n11:43\nDomain and Range\n14:13\nExample\n14:43\nExample 1: Function Given by Table\n16:24\nExample 2: Cost of Gas\n18:46\nExample 3: Cost of Gas\n23:15\nExample 4: Cost of Mail\n29:07\nSection 2: Solving Linear Equations\nFrom Sentences to Equations\n\n16m 5s\n\nIntro\n0:00\nReal World Applications\n0:18\nStrategy\n0:26\nUsing Variables\n0:32\nTranslate Phrases\n0:48\nIdentity Equality Words\n1:07\nExample 1: Write Equation\n1:32\nExample 2: Write Equation\n4:14\nExample 3: Sisters' Ages\n8:26\nExample 4: Surface Area of Cylinder\n12:52\n\n15m 24s\n\nIntro\n0:00\nTechniques\n0:21\n0:24\nExample\n0:37\nSubtraction Principle\n1:44\nExample\n1:48\nStrategy\n2:33\nIsolate the Variable\n2:41\nExample\n2:55\nExample 1: Solve Equation\n3:39\nExample 2: Solve Equation\n5:38\nExample 3: Word Problem\n7:38\nExample 4: Word Problem\n11:14\nMultiplication and Division Techniques\n\n15m 41s\n\nIntro\n0:00\nIsolating the Variable\n0:08\nTechniques\n0:34\nMultiplication Principle\n0:41\nExample\n0:57\nDivision Principle\n2:32\nExample\n2:47\nStrategy\n3:12\nExample\n3:30\nOpposite Operation\n3:53\nExample 1: Solve Equation\n5:07\nExample 2: Solve Equation\n6:50\nExample 3: Solve Equation\n10:05\nExample 4: Word Problem\n12:07\nTechniques for Multistep Equations\n\n14m 31s\n\nIntro\n0:00\nWhat are Multistep Equations\n0:06\n0:31\nStrategy\n0:43\nIdentify Last Operation\n0:47\nExample 1: Solve Equation\n1:51\nExample 2: Solve Equation\n5:27\nExample 3: Find Numbers\n7:39\nExample 4: Solve Equation\n11:27\nWhen the Variable is on Both Sides of the Equation\n\n20m 17s\n\nIntro\n0:00\nSolving More Complicated Equations\n0:28\nDistributive Property\n0:41\nReview of Distributive Property\n0:55\nFactoring\n1:28\nSubtracting\n1:50\n2:08\nPossible Outcomes\n2:45\nExactly One Solution\n2:52\nNo Solution\n3:08\nTrue for All Real Numbers\n4:45\nIdentities\n5:01\nExample 1: Solve Equation\n6:03\nExample 2: Solve Equation\n9:08\nExample 3: Solve Equation\n14:06\nExample 4: Solve Equation\n17:28\nRatios and Proportion\n\n16m 5s\n\nIntro\n0:00\nDefinitions\n0:07\nRatio\n0:10\nDifferent Representations\n0:14\nProportion\n0:33\nExample\n0:40\nCross Product\n1:08\nCross Multiplication\n1:32\nExample\n2:13\nRates\n3:33\nRates in Real Life\n3:46\nExample 1: Form a Proportion\n4:43\nExample 2: Cross Multiply\n7:15\nExample 3: How Long to Drive\n9:00\nExample 4: Cross Products\n12:13\nApplications of Percents\n\n13m 46s\n\nIntro\n0:00\nDefinitions\n0:15\nPercent of Increase\n0:27\nPercent of Decrease\n0:34\nExamples\n0:42\nSales Tax\n1:48\nDiscount\n2:44\nExample 1: Temperature Change\n3:12\nExample 2: Sales Tax\n5:44\nExample 3: Clothing Discount\n7:04\nExample 4: Sales and Discount\n9:15\nMore Than One Variable\n\n20m 38s\n\nIntro\n0:00\nMore Than One Variable\n0:21\nReal Life Examples\n0:30\nStrategy\n1:08\nPossible Techniques\n1:17\nTypical Application\n1:43\nSolving for a Different Variable\n1:59\nExample 1: Solve for Y\n5:06\nExample 2: Solve for Q\n7:38\nExample 3: Solve for H\n12:56\nExample 4: Solve for X\n16:04\nSection 3: Functions\nRelations\n\n16m 58s\n\nIntro\n0:00\nDefinition\n0:04\nRelation\n0:06\nTable\n0:18\nSet of Ordered Pairs\n1:01\nGraph\n1:38\nDomain and Range\n2:40\nExample: Relation\n2:51\n3:48\nInverse of a Relation\n4:42\nExample\n4:59\nExample 1: Relation as Table/Graph\n6:15\nExample 2: Domain and Range\n8:41\nExample 3: Table, Graph, Domain, Range\n10:36\nExample 4: Inverse of a Relation\n13:36\nFunctions\n\n19m 27s\n\nIntro\n0:00\nDefinition\n0:14\nReview of Relations\n0:27\nViolation of Function\n1:43\nExample: Function\n2:00\nVertical Line Test\n3:18\nExample\n3:41\nFunction Notation\n6:15\nUsing f(x)\n6:26\nExample: Value Assigned\n7:12\nExample 1: Relation a Function\n8:10\nExample 2: Relation a Function\n9:39\nExample 3: Using f(x) Notation\n12:20\nExample 4: g(x) Notation\n15:01\nLinear Functions\n\n20m 15s\n\nIntro\n0:00\nDefinition\n0:07\nStandard Form\n0:18\nExample\n0:52\nGraph and Intercepts\n2:39\nExample: Graph\n2:48\nX-Intercept\n2:56\nY-Intercept\n3:35\nGraphing Linear Equations\n4:29\nExample\n4:47\nLinear Functions\n7:51\nExample\n8:15\nExample 1: Linear\n10:16\nExample 2: Linear Equation\n12:58\nExample 3: Intercepts\n14:23\nExample 4: Equation from Intercepts\n16:47\nSection 4: Linear Functions and Their Graphs\nSlope and Rate of Change\n\n19m 46s\n\nIntro\n0:00\nRate of Change\n0:06\nOther Words\n0:14\nExample\n0:24\nSlope\n2:12\nTwo Points\n2:39\nSteepness of a Line\n2:57\nPossible Slopes\n4:29\nPositive Slope\n5:02\nNegative Slope\n5:29\nZero Slope (Horizontal Line)\n6:23\nUndefined Slope (Vertical Line)\n7:08\nExample 1: Rate of Change of Table\n8:19\nExample 2: Slope Through Points\n10:52\nExample 3: Increasing/Decreasing\n13:06\nExample 4: Slope Through Points\n16:02\nDirect Variation\n\n13m 54s\n\nIntro\n0:00\nDefinitions\n0:10\nConstant of Variation k\n0:21\nExample: Gas and Miles Driven\n0:59\nGraph\n1:50\nk is Slope\n2:04\nExamples\n2:27\nApplications\n2:47\nWrite, Graph, Solve\n2:58\nExample 1: Constant of Variation\n3:11\nExample 2: Graph Direct Variation\n4:59\nExample 3: Direct Variation\n6:50\nExample 4: Distance Car Travels\n9:18\nSlope Intercept Form of an Equation\n\n12m 6s\n\nIntro\n0:00\nSlope Intercept Form\n0:12\nm (Slope) and b (Y Intercept)\n0:31\nExample\n1:12\nExample 1: Slope Intercept Form Equation\n2:39\nExample 2: Graph the Equation\n5:11\nExample 3: Slope Intercept Form Equation\n6:51\nExample 4: Slope Intercept Form Equation\n8:50\nPoint Slope Form of an Equation\n\n9m 7s\n\nIntro\n0:00\nPoint Slope Form\n0:07\nManipulating to Other Forms\n0:35\nm (Slope), x1 y1 (Point)\n0:47\nExample 1: Point Slope Form Equation\n1:03\nExample 2: Point Slope Form Equation\n2:50\nExample 3: Point Slope Form Equation\n4:18\nExample 4: Point Slope Form Equation\n6:50\nParallel Lines and Perpendicular Lines\n\n18m 2s\n\nIntro\n0:00\nParallel Lines\n0:08\nExample\n0:15\nVertical Lines\n0:40\nPerpendicular Lines\n1:19\nNegative Reciprocal\n1:31\nExample\n2:05\nExample 1: Slope Intercept Form\n3:25\nExample 2: Parallel or Perpendicular\n6:15\nExample 3: Slope Intercept Form\n9:27\nExample 4: Slope Intercept Form\n12:35\nSection 5: Systems of Equations\nGraphing Systems of Equations\n\n22m 45s\n\nIntro\n0:00\nSystems of Equations\n0:10\nDefinition\n0:15\nExample\n0:31\nSolution\n0:47\nSolving by Graphing\n1:23\nPoints of Intersection\n1:36\nExample\n1:56\nNumber of Solutions\n3:09\nIndependent\n3:20\nDependent\n3:50\nInconsistent\n4:46\nExample 1: Solve by Graphing\n5:45\nExample 2: Solve by Graphing\n9:50\nExample 3: Solve by Graphing\n14:17\nExample 4: Solve by Graphing\n18:03\nSolving by Substituting\n\n22m 41s\n\nIntro\n0:00\nSubstitution\n0:09\nExample\n0:45\nNumber of Solutions\n2:47\nInfinite Solutions\n3:11\nNo Solutions\n4:28\nExample 1: Solve by Substitution\n5:44\nExample 2: Solve by Substitution\n10:01\nExample 3: Solve by Substitution\n15:17\nExample 4: Solve by Substitution\n19:41\n\n16m 13s\n\nIntro\n0:00\nFundamental Principle\n0:10\nExample\n0:23\nExample 1: Solve the System\n1:52\nExample 2: Solve the System\n5:53\nExample 3: Solve the System\n10:15\nExample 4: Solve the System\n14:08\nSection 6: Inequalities\n\n11m 34s\n\nIntro\n0:00\nFundamental Principle\n0:09\nExample\n0:36\nSolutions of Inequalities\n1:51\nInequality\n1:59\nSet Builder Notation\n2:02\nGraph on a Number Line\n2:08\nExamples\n2:18\nExample 1: Solve the Inequality\n4:59\nExample 2: Solve the Inequality\n7:00\nExample 3: Solve the Inequality\n8:10\nExample 4: Solve the Inequality\n9:47\nMultiplication & Division Techniques\n\n10m 49s\n\nIntro\n0:00\nFundamental Principle\n0:10\nOnly Positive Numbers\n0:23\nExample\n0:51\nFundamental Principle, Cont.\n2:01\nNegative Numbers\n2:12\nReverse Inequality Sign\n2:28\nExample\n2:48\nExample 1: Solve the Inequality\n4:26\nExample 2: Solve the Inequality\n5:45\nExample 3: Solve the Inequality\n6:50\nExample 4: Solve the Inequality\n8:28\nTechniques for Multistep Inequalities\n\n16m 56s\n\nIntro\n0:00\nSimilarity to Multistep Equations\n0:16\nNegative Numbers\n0:32\nExample\n0:49\nInequalities Containing Grouping Symbols\n1:24\nExample\n1:35\nSpecial Cases\n2:45\nExample: All Real Numbers\n3:04\nExample: Empty Set\n4:10\nExample 1: Solve the Inequality\n6:05\nExample 2: Solve the Inequality\n7:39\nExample 3: Solve the Inequality\n9:57\nExample 4: Solve the Inequality\n13:56\nCompound Inequalities\n\n21m 32s\n\nIntro\n0:00\nWhat is a Compound Inequality\n0:07\nJoined by 'And' or 'Or'\n0:16\nInequalities Combined by 'And'\n0:36\nIntersection/Overlap\n0:53\nExample\n1:08\nInequalities Combined by 'Or'\n4:23\nUnion\n4:41\nExample\n5:27\nExample 1: Solve the Inequality\n6:39\nExample 2: Solve the Inequality\n11:30\nExample 3: Solve the Inequality\n13:43\nExample 4: Solve the Inequality\n18:19\nEquations with Absolute Value\n\n24m 16s\n\nIntro\n0:00\nAbsolute Value\n0:06\nNumber Line\n0:22\nExample\n0:41\nAbsolute Value is N\n1:52\nAbsolute Value Function\n3:17\nExample\n3:40\ng(x) and f(x)\n4:31\nSolving Absolute Value Equations\n6:23\nAbsolute Value in Words\n6:39\nSplit Into Two Parts\n7:58\nSolve Both Equations\n8:22\nExample 1: Solve the Absolute Value\n10:34\nExample 2: Solve the Absolute Value\n13:09\nExample 3: Solve the Absolute Value\n14:52\nExample 4: Solve the Absolute Value\n20:23\nInequalities with Absolute Values\n\n17m 37s\n\nIntro\n0:00\nInequalities of the Form |x|< n\n0:07\nValues that Satisfy Both Inequalities\n0:46\nExample\n1:27\nInequalities of the Form |x|> n\n3:58\nValues that Satisfy Either Inequalities\n4:19\nExample\n4:47\nExample 1: Solve the Inequality\n6:38\nExample 2: Solve the Inequality\n9:54\nExample 3: Solve the Inequality\n12:05\nExample 4: Solve the Inequality\n14:50\nGraphing Inequalities with Two Variables\n\n24m 33s\n\nIntro\n0:00\nGraph\n0:08\nHalf Plane and Boundary\n0:51\nTechnique for Graphing\n1:57\nGraph Equation\n2:01\nSolid Line or Dashed Line\n2:07\nExample\n2:32\nChoosing a Test Point\n5:10\nExample\n5:26\nExample 1: Solve the Inequality\n7:49\nExample 2: Solve the Inequality\n11:37\nExample 3: Solve the Inequality\n15:44\nExample 4: Solve the Inequality\n19:10\nGraphing Systems of Inequalities\n\n24m 4s\n\nIntro\n0:00\nSystem of Inequalities\n0:05\nExample\n0:22\nSolving a System of Inequalities\n0:38\nSolution Set\n0:46\nGraph Each Inequality\n0:57\nArea of Overlap\n1:45\nExample 1: Solve the System of Inequalities\n2:44\nExample 2: Solve the System of Inequalities\n6:33\nExample 3: Solve the System of Inequalities\n11:40\nExample 4: Solve the System of Inequalities\n17:36\nSection 7: Polynomials\nMultiplying Monomials\n\n22m 19s\n\nIntro\n0:00\nWhat is a Monomial\n0:09\nExamples\n0:17\nPower\n0:55\nBase and Exponent\n1:52\nProperties of Exponents\n2:16\n2:25\nMultiply Exponents\n4:00\nProduct Exponent\n4:39\nSimplified Form\n7:26\nExamples\n7:47\nExample 1: Simplify the Monomial\n8:26\nExample 2: Simplify the Monomial\n10:32\nExample 3: Simplify the Monomial\n12:48\nExample 4: Simplify the Monomial\n17:33\nDividing Monomials\n\n24m 2s\n\nIntro\n0:00\nProperties of Exponents\n0:05\nDividing with Same Base\n0:15\nExample\n0:53\nQuotient Raised to Power\n2:22\nExample\n2:53\nRaising to 0 Power\n4:00\nExample\n4:21\nNegative Exponents\n5:45\nExample\n6:05\nExample 1: Simplify the Monomial\n7:33\nExample 2: Simplify the Monomial\n14:56\nExample 3: Simplify the Monomial\n13:30\nExample 4: Simplify the Monomial\n17:35\nPolynomials\n\n8m 56s\n\nIntro\n0:00\nWhat is a Polynomial\n0:07\nMonomial\n0:40\nBinomial\n1:15\nTrinomial\n1:25\nDegree of a Polynomial\n1:56\nExample: Degree of Monomial\n2:13\nExample: Degree of Polynomial\n2:47\nOrdering Polynomials\n3:32\nExample\n3:47\nExample 1: Trinomial or Binomial\n4:44\nExample 2: Find the Degree\n5:27\nExample 3: Increasing Powers\n6:11\nExample 4: Decreasing Powers\n7:27\n\n15m 51s\n\nIntro\n0:00\n0:07\nLike Terms\n0:18\nExample\n1:02\nSubtracting Polynomials\n2:44\nExample\n2:58\n5:11\nExample 2: Subtract Polynomials\n7:30\n9:35\n12:09\nMultiplying Polynomials by Monomials\n\n18m 17s\n\nIntro\n0:00\nDistributive Property\n0:07\nExample\n0:54\nSolving Equations\n1:36\nIsolate Variable and Solve\n1:46\nExample 1: Multiply\n1:59\nExample 2: Simplify\n3:33\nExample 3: Simplify\n7:20\nExample 4: Solve\n13:37\nMultiplying Polynomials\n\n18m 2s\n\nIntro\n0:00\nDistributive Property\n0:08\nExample\n0:54\nFOIL Method\n2:44\nFirst, Outer, Inner, Last\n3:20\nExample 1: Multiply\n5:32\nExample 2: Multiply\n7:27\nExample 3: Multiply\n9:41\nExample 4: Multiply\n13:56\nSpecial Products\n\n17m\n\nIntro\n0:00\nSquare of a Sum\n0:06\nExample\n1:09\nSquare of a Difference\n2:46\nExample\n3:22\nDifference of Two Squares\n4:50\nExample\n5:31\nExample 1: Multiply\n6:24\nExample 2: Multiply\n8:34\nExample 3: Multiply\n11:03\nExample 4: Multiply\n12:54\nSection 8: Factoring\nSpecial Product\n\n17m 51s\n\nIntro\n0:00\nPrime and Composite Numbers\n0:09\nPrime Number\n0:12\nComposite Number\n0:42\nFactored Forms\n1:39\nPrime Factored Form\n1:40\nFactored Form\n2:21\nGreatest Common Factor\n3:55\nExample: GCF for Number\n4:19\nExample: GCF for Monomial\n6:00\nExample 1: Prime Factored Form\n7:51\nExample 2: Factored Form\n9:34\nExample 3: GCF\n11:12\nExample 4: GCF\n13:28\nFactoring Using Greatest Common Factor\n\n25m 21s\n\nIntro\n0:00\nDistributive Property\n0:05\nExample: Binomial\n0:49\nExample: Trinomial\n2:18\nFactoring by Grouping\n4:17\nExample: Four Terms\n4:40\nZero Product Property\n8:21\nExample\n9:01\nExample 1: Factor the Polynomial\n10:38\nExample 2: Factor the Polynomial\n13:43\nExample 3: Factor the Polynomial\n19:59\nExample 4: Solve the Polynomial\n22:58\nFactoring Trinomials with Leading Coefficient of 1\n\n27m 11s\n\nIntro\n0:00\nFactoring Trinomials\n0:07\n0:11\nExample\n1:20\nRules for Signs\n2:42\nP and Q Both Positive\n2:55\nP and Q Both Negative\n3:39\nP and Q Opposite Signs\n4:30\nSolving Equations\n5:18\nExample\n6:44\nExample 1: Factor the Polynomial\n7:41\nExample 2: Factor the Polynomial\n12:33\nExample 3: Factor the Polynomial\n16:39\nExample 4: Solve the Polynomial\n21:35\nFactoring General Trinomials\n\n46m 9s\n\nIntro\n0:00\nFactoring Trinomials\n0:15\nExample\n2:42\nGrouping\n7:20\nExample\n7:35\nRules for Signs\n10:51\nSame as Leading Coefficient is 1\n11:05\nGreatest Common Factor\n12:29\nUse Whenever Possible\n12:41\nExample\n12:59\nPrime Polynomials\n13:58\nExample\n14:33\nSolving Equations\n16:55\nExample\n17:25\nExample 1: Factor the Polynomial\n18:46\nExample 2: Factor the Polynomial\n25:23\nExample 3: Factor the Polynomial\n32:37\nExample 4: Solve the Polynomial\n36:18\nFactoring the Difference of Two Squares\n\n24m 3s\n\nIntro\n0:00\nDifference of Two Squares\n0:08\nExample\n0:36\nFactoring Using Several Techniques\n2:23\nFactoring the GCF\n2:30\nExample\n3:22\nSolving Equations\n5:24\nExample\n5:50\nExample 1: Factor the Polynomial\n7:34\nExample 2: Factor the Polynomial\n9:11\nExample 3: Factor the Polynomial\n12:00\nExample 4: Solve the Polynomial\n18:31\nFactoring Perfect Squares\n\n18m 10s\n\nIntro\n0:00\nPerfect Squares\n0:07\nExample: Perfect Square Trinomials\n1:12\nSolving Equations\n2:57\nSquare Root Property\n3:09\nExample\n3:28\nExample 1: Factor the Polynomial\n5:09\nExample 2: Factor the Polynomial\n6:13\nExample 3: Solve the Polynomial\n8:43\nExample 4: Solve the Polynomial\n13:35\n\n35m 45s\n\nIntro\n0:00\nParabolas\n0:14\n0:28\nExamples\n1:05\nAbsolute Value of 'a'\n2:19\nParabolas That Open Upward\n3:14\nMinimum\n3:48\nExample\n3:57\nParabolas That Open Downward\n6:57\nExample\n7:17\nMaximum\n9:23\nVertex\n9:53\nExample\n10:40\nAxis of Symmetry\n14:16\nExample\n15:03\n19:54\n24:12\nExample 3: Vertex Maximum or Minimum\n28:32\nExample 4: Axis of Symmetry\n31:13\nSolving Equations by Graphing\n\n40m 42s\n\nIntro\n0:00\n0:08\nExample\n0:56\nTwo Distinct Solutions/Roots\n8:10\nRoots\n8:23\nExample: Graphs\n8:40\nOne Double Root\n9:19\nExample: One X-Intercept\n9:54\nNo Real Roots\n14:03\nExample\n14:53\nEstimating Solutions\n18:41\nExample: Not Integers\n19:18\nExample 1: Solve by Graphing\n20:18\nExample 2: Solve by Graphing\n26:36\nExample 3: Solve by Graphing\n30:18\nExample 4: Estimate by Graphing\n34:59\nSolving Equations by Completing the Square\n\n28m 13s\n\nIntro\n0:00\nPerfect Square Trinomials\n0:15\nExample\n0:36\nCompleting the Square\n4:55\nExample\n6:20\nCompleting the Square to Solve Equations\n9:19\nExample\n9:40\nWhen the Leading Coefficient is Not 1\n13:17\nExample\n14:01\nExample 1: Solve the Equation\n15:05\nExample 2: Complete the Square\n20:16\nExample 3: Solve by Completing the Square\n22:31\nExample 4: Solve by Completing the Square\n25:02\nSolving Equations Using the Quadratic Formula\n\n17m 17s\n\nIntro\n0:00\n0:17\nStandard Form\n0:24\nExample\n1:00\nDiscriminant\n3:14\nTwo Solutions and Both Real\n3:40\nOne Real Solution\n4:07\nNo Real Solutions\n4:28\nExample 1: Solve the Equation\n6:25\nExample 2: Solve the Equation\n8:42\nExample 3: Solve the Equation\n12:02\nExample 4: Number of Real Roots\n15:23\nSection 10: Radical Expressions and Equations\n\n41m 30s\n\nIntro\n0:00\n0:12\n0:29\nExample: Not Simplest Form\n1:16\nPrincipal Square Root (Positive)\n2:43\nProduct Property\n3:40\nExamples\n4:05\nSquare Roots of Variables with Even Powers\n7:01\n7:42\nDivide Exponent by 2\n7:57\nAbsolute Value of Result\n8:29\nExamples\n8:52\nQuotient Rule\n14:12\nExample\n14:31\nRationalizing Denominators\n16:08\nExample\n16:43\nConjugates\n18:33\nExample\n19:53\n20:58\nThree Criteria\n21:10\nExample 1: Simplify Expression\n21:57\nExample 2: Simplify Expression\n25:12\nExample 3: Simplify Expression\n31:37\nExample 4: Simplify Expression\n35:29\n\n21m 52s\n\nIntro\n0:00\n0:13\n0:28\nDistributive Property\n1:10\n4:24\nExample: Use FOIL\n4:44\nExample 1: Simplify Expression\n7:07\nExample 2: Simplify Expression\n8:51\nExample 3: Simplify Expression\n12:14\nExample 4: Simplify Expression\n16:06\n\n27m\n\nIntro\n0:00\n0:15\nExamples\n0:30\n1:13\n1:18\nSquare Both Sides\n1:38\nExample\n1:44\nExtraneous Solutions\n2:57\nExample: Check Solutions\n3:30\nExample 1: Solve Equation\n6:29\nExample 2: Solve Equation\n9:52\nExample 3: Solve Equation\n14:29\nExample 4: Solve Equation\n20:53\nPythagorean Theorem\n\n17m 24s\n\nIntro\n0:00\nRight Triangles\n0:06\nVertex\n0:32\nHypotenuse\n0:56\nLegs\n1:11\nPythagorean Theorem\n1:21\nGraphical Representation\n1:37\nExample\n2:39\nPythagorean Triples\n3:40\nExample\n3:56\nConverse of the Pythagorean Theorem\n4:36\nExample\n6:23\nExample 1: Length of Hypotenuse\n7:24\nExample 2: Length of Legs\n9:02\nExample 3: Area of Triangle\n12:00\nExample 4: Length of Side\n14:59\nDistance Formula\n\n26m 50s\n\nIntro\n0:00\nDistance Formula\n0:09\nSimilarity to Pythagorean Theorem\n0:21\nMissing Coordinates\n5:50\nExample\n6:22\nExample 1: Distance Between Points\n11:43\nExample 2: Distance Between Points\n14:05\nExample 3: Distance Between Points\n18:18\nExample 4: Missing Coordinate\n21:57\nSection 11: Rational Expressions and Equations\nInverse Variation\n\n24m 13s\n\nIntro\n0:00\nDirect Variation\n0:12\nInverse Variation\n0:24\nConstant of Variation k\n0:50\nY Varies Inversely as X\n0:59\nGraphing Inverse Variation\n3:09\nReal World Applications\n3:24\nExample\n3:59\nProduct Rule\n10:19\nAlternate Form\n11:10\nFinding Missing 4th Point\n11:24\nExample 1: Graph Inverse Variation\n11:36\nExample 2: Graph Inverse Variation\n14:47\nExample 3: Find Missing Point\n19:39\nExample 4: Find Missing Point\n21:53\nRational Expressions\n\n34m 22s\n\nIntro\n0:00\nRational Expressions\n0:10\nExamples\n0:28\nExcluded Values\n1:03\nDividing by 0\n1:29\nExample\n2:49\nSimplifying Rational Expressions\n7:12\nEliminating the GCF\n7:17\nExample: Regular Fraction\n7:30\nExample: Rational Expression\n8:12\nSimplifying and Excluded Values\n10:15\nOriginal Rational Expression\n10:24\nExample\n10:47\nExample 1: Find Excluded Values\n13:47\nExample 2: Simplify and Find Excluded Values\n16:10\nExample 3: Simplify and Find Excluded Values\n22:04\nExample 4: Simplify and Find Excluded Values\n26:29\nMultiplying Rational Expressions\n\n22m 58s\n\nIntro\n0:00\nProcedure\n0:08\nExamples\n0:29\nCancel Before Multiplication\n1:53\nExample\n2:04\nRational Expressions Containing Polynomials\n3:18\nExample\n3:46\nExample 1: Multiply Rational Expressions\n6:04\nExample 2: Multiply Rational Expressions\n9:11\nExample 3: Multiply Rational Expressions\n11:19\nExample 4: Multiply Rational Expressions\n17:36\nDividing Rational Expressions\n\n21m 49s\n\nIntro\n0:00\nProcedure\n0:10\nReciprocal of Expression\n0:22\nExample: Regular Fractions\n0:44\nExample: Rational Expressions\n1:46\nCancel Before Multiplying\n3:23\nWhy Cancel\n3:45\nExample\n4:15\nRational Expressions Containing Polynomials\n6:46\nExample\n7:06\nExample 1: Divide Rational Expressions\n9:15\nExample 2: Divide Rational Expressions\n13:11\nExample 3: Divide Rational Expressions\n15:39\nDividing Polynomials\n\n35m 57s\n\nIntro\n0:00\nDividing a Polynomial by a Monomial\n0:11\nExample: Regular Fractions\n0:36\nExample: Polynomials\n1:24\nDividing a Polynomial by a Binomial\n2:56\nExample: Dividend and Divisor\n3:30\nLong Division\n5:28\nExample: Regular Numbers\n5:49\nExample: Polynomials\n7:17\nMissing Terms\n12:20\nDefinition\n12:40\nExample\n12:55\nExample 1: Divide the Polynomials\n18:42\nExample 2: Divide the Polynomials\n20:54\nExample 3: Divide the Polynomials\n23:28\nExample 4: Divide the Polynomials\n28:52\nAdding and Subtracting Rational Expressions with Like Denominators\n\n17m 38s\n\nIntro\n0:00\n0:09\nExample: Regular Numbers\n0:19\nExample: Rational Expressions\n1:05\nSubtracting with Like Denominators\n2:35\nExample: Regular Fractions\n2:52\nExample: Rational Expressions\n3:05\n4:08\n4:35\nExample\n5:53\n7:54\nExample 2: Subtract Rational Expressions\n8:43\n10:39\nExample 4: Subtract Rational Expressions\n11:48\nAdding and Subtracting Rational Expressions with Unlike Denominators\n\n37m 16s\n\nIntro\n0:00\nLeast Common Multiple of Polynomials\n0:21\nExample: Regular Fractions\n0:42\nExample: Rational Expressions\n5:18\nEquivalent Rational Expressions Using LCM\n7:23\nExample\n8:09\n14:24\nSummary of Techniques\n14:32\nExample 1: Find the LCM\n15:09\n17:53\nExample 3: Subtract Rational Expressions\n22:19\n30:44\nComplex Fractions\n\n25m 38s\n\nIntro\n0:00\nMixed Expressions\n0:10\nAnalogy to Mixed Fractions\n0:23\nPolynomial and Rational Expression\n0:59\nExample: Combining\n1:55\nConverting to Rational Expression\n2:29\nComplex Fraction\n5:16\nExamples\n5:30\nSimplifying Complex Fractions\n6:08\nExample\n6:27\nExample 1: Write as Rational Expression\n9:43\nExample 2: Simplify Complex Fractions\n12:44\nExample 3: Simplify Complex Fractions\n15:03\nExample 4: Simplify Complex Fractions\n19:55\nRational Equations\n\n38m 9s\n\nIntro\n0:00\nDefinition\n0:11\nExample: Cross Multiplication\n0:39\nExample: Rational Expressions\n1:13\nSolving Rational Equations\n3:12\nMultiply by LCM of Denominators\n3:33\nExample\n4:02\nWork Problems\n7:19\nExample: Complete a Project\n8:17\nExtraneous Solutions\n12:41\nCheck All Solutions\n13:18\nExample\n13:54\nExample 1: Solve Rational Equation\n17:28\nExample 2: Solve Rational Equation\n19:45\nExample 3: Work Problem\n27:15\nExample 4: Solve Rational Equation\n31:10\nBookmark & Share Embed\n\n## Copy & Paste this embed code into your website’s HTML\n\nPlease ensure that your website editor is in text mode when you paste the code.\n(In Wordpress, the mode button is on the top right corner.)\n×\n• - Allow users to view the embedded video in full-size.\nSince this lesson is not free, only the preview will appear on your website.\n\n• ## Related Books",
null,
"1 answerLast reply by: Edwin WongThu Jun 27, 2013 5:33 PMPost by Edwin Wong on June 27, 2013At 9:44, you plotted the graph wrong.",
null,
"2 answersLast reply by: leo leyvaMon Jul 15, 2013 2:49 PMPost by Abel Gallegos on June 3, 2013Dr. Eaton, is Ax+By=C the same as as Ax+By+C=0 form of the formula?I Think both are used to show the form of lineal equations but I don´t know if they are the same or if i should have Ax+By-C=0 instead,or just look to put the equation they way they ask me to. Thanks.",
null,
"4 answersLast reply by: Taylor WrightTue Jun 18, 2013 12:33 AMPost by Erika Porter on May 3, 2013On Exercise 2 if I put the problem 2/x-3/y=0 into standard form I get -3x+2y=0 which yields a straight line with coordinates such as (0,0),(1,1.5),(-1,-1.5),(2,3),(3,4.5).However, I understand that substituting zero for either the x and y variables in the denominators is undefined, couldn't it just be that the line travels through the origin?Thanks.\n\n### Linear Functions\n\n• A linear function is a function of the form f(x) = ax + b, where a and b are constants and a is nonzero. Its graph is a straight line. The x coordinate of the point at which the graph crosses the x axis is called the x-intercept. The y-intercept is defined similarly. Values of x for which f(x) = 0 are called zeros of f.\n• A linear equation can be written in the form ax + by = c for some constants a, b, and c, where either a or b is not 0. If these constants are integers, the equation is in standard form.\n• The graph of a linear equation is a straight line.\n\n### Linear Functions\n\nDetermine if the equation is linear:\n− 5x + 4y = 22\nyes\nDetermine if the equation is linear\n14 = 2xy + 5y + 9\nno\nDetermine if the equation is linear\n6s = 10 − [2/t]\n• t(6s) = ( 10 − [2/t] )t\n• 6st = 10t − 2\n• = 10t − 2\nno\nDetermine if the following is a linear equation:\n[4/x] + [5/y] = 0\nno\nFind the intercepts of the equation:\n[x/2] − [y/3] = 5\n• For the x intercept, let y = 0[x/2] − [0/3] = 5\n• [x/2] − 0 = 5\n• [x/2] = 5\n• x = 10\nx intercept = 10\n• For the y intercept, let x = 0\n[0/2] − [y/3] = 5\n• 0 − [y/3] = 5\n• − [y/3] = 5\n• − y = 15\n• y = 15\ny intercept = 15\nx intercept = 10\ny intercept = 15\nFind the intercepts of the equation:\n[g/7] − [h/21] = 5\n• For the g intercept, let h = 0\n[g/7] − [0/21] = 5\n• [g/7] − 0 = 5\n• [g/7] = 5\n• g = 35\ng intercept = 35\n• For the h intercept, let g = 0\n[0/7] − [h/21] = 5\n• 0 − [h/21] = 5\n• − [h/21] = 5\n• − h = 105\n• h = − 105\nh intercept = 105\ng intercept = 35\nh intercept = 105\nFind the intercepts of the equation:\n[2x/9] − [y/4] = 12\n• For the x intercept, let y = 0\n[2x/9] − [0/4] = 12\n• [2x/9] − 0 = 12\n• [2x/9] = 12\n• 2x = 108\n• x = 54\n• For the y intercept, let x = 0\n[2(0)/9] − [y/4] = 7\n• [0/9] − [y/4] = 7\n• 0 − [y/4] = 7\n• − [y/4] = 7\n• − y = 28\n• y = − 28\nx intercept = 54\ny intercept = −28\nFind the intercepts of the equation\n2x − 5y = 20\n• For the y intercept, let x = 0\n• 2(0) − 5y = 20\n• − 5y = 20\n• y = − 4\n• For the x intercept, let y = 0\n• 2x − 5(0) = 20\n• 2x = 20\n• x = 10\nx intercept = 10\ny intercept = −4\nDetermine the intercepts from the graph of the function",
null,
"• Note the tick mark intervals\nIntercept for the two equations is (1.5, − 0.5)\nDetermine the intercepts from the graph of the function",
null,
"• Note the tick mark intervals\nIntercept for the two equations is ( − 1, − 1[3/4])\n\n*These practice questions are only helpful when you work on them offline on a piece of paper and then use the solution steps function to check your answer.\n\n### Linear Functions\n\nLecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.\n\n• Intro 0:00\n• Definition 0:07\n• Standard Form\n• Example\n• Graph and Intercepts 2:39\n• Example: Graph\n• X-Intercept\n• Y-Intercept\n• Graphing Linear Equations 4:29\n• Example\n• Linear Functions 7:51\n• Example\n• Example 1: Linear 10:16\n• Example 2: Linear Equation 12:58\n• Example 3: Intercepts 14:23\n• Example 4: Equation from Intercepts 16:47\n\nOR\n\n### Start Learning Now\n\nOur free lessons will get you started (Adobe Flash® required)."
]
| [
null,
"https://www.educator.com/media/ss/algebra-1/cxt/ct/Alg1-3-3-0.jpg",
null,
"https://www.educator.com/media/lesson/poster/lores/mathematics-algebra-1-eaton/prof/Alg1-3-3-0.jpg",
null,
"https://www.educator.com/membership/upload/default.jpg",
null,
"https://www.educator.com/membership/upload/default.jpg",
null,
"https://www.educator.com/membership/upload/default.jpg",
null,
"https://www.educator.com/media/files/pq/algebra-1-eaton/images/ALG-IMG-3-3-9.jpg",
null,
"https://www.educator.com/media/files/pq/algebra-1-eaton/images/ALG-IMG-3-3-10.jpg",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.880023,"math_prob":0.9816489,"size":3554,"snap":"2021-31-2021-39","text_gpt3_token_len":1337,"char_repetition_ratio":0.14112677,"word_repetition_ratio":0.06725888,"special_character_ratio":0.41671357,"punctuation_ratio":0.09620253,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9966537,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"im_url_duplicate_count":[null,8,null,5,null,null,null,null,null,null,null,5,null,5,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-25T19:09:55Z\",\"WARC-Record-ID\":\"<urn:uuid:21ad3cf6-badf-461c-b9b5-5531876241ea>\",\"Content-Length\":\"462514\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6348a051-6a8d-4035-a91e-9dd60e6b84f1>\",\"WARC-Concurrent-To\":\"<urn:uuid:1358bec0-b0e0-476b-a8ab-3b121434558f>\",\"WARC-IP-Address\":\"104.27.194.88\",\"WARC-Target-URI\":\"https://www.educator.com/mathematics/algebra-1/eaton/linear-functions.php\",\"WARC-Payload-Digest\":\"sha1:WWF3HC7AVAQTXKHYA46KUGUQJ5FFQ5HZ\",\"WARC-Block-Digest\":\"sha1:4JAJ3I2EWSAO4TRQJJJQLWTHW5GEDUEF\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780057733.53_warc_CC-MAIN-20210925172649-20210925202649-00227.warc.gz\"}"} |
https://pocketdentistry.com/20-statistics-as-an-inductive-argument-and-other-statistical-concepts/ | [
"",
null,
"# Statistics ≠ Scientific Method\n\nThe statistics used in most research papers are different from the statistics of everyday usage, such as reported census data or baseball batting averages that provide comprehensive information about the population involved. For example, in calculating a batting average, we know every time a player went to bat, and we know the player’s exact number of hits, so the batting average completely and accurately represents the player’s performance.\n\n# Golden rule of sample statistics\n\nA number of features of statistical reasoning about samples were not illustrated in the previous chapters. Some of these may be summed up in what I will call the golden rule: Any sample should be evaluated with respect to size, diversity, and randomness.2 The statistics in research reports are based on samples. The obvious questions to ask are: (1) How representative of the target population are the samples? Was the sample selected randomly, or were there factors present that could lead to biased selection? (2) How large is the sample? (3) How much diversity exists in the sample? Does it cover all of the groups that make up the population? Fallacies, as well as acceptable arguments, can arise from statistical inference.\n\n# What is a reasonable sample size?\n\nThere is no simple answer to this question, but two general considerations appear to be relevant: tradition and statistics.\n\nIn some research areas, experience shows that consistent and reliable results require a certain number of subjects or patients; for example, Beecher4 recommends at least 25 patients for studies on pain. These traditions probably develop because of practical considerations such as patient availability, as well as inherent statistical considerations such as subject variability. The underlying philosophy in this approach is that the replication of results is a more convincing sign of reliability than a low P value obtained in a single experiment. If a number of investigators find the same result, we can have reasonable confidence in the findings. Means of combining and reviewing studies are given in Summing Up by Light and Pillemer.5\n\nThere are problems with the traditional method of choosing an arbitrary and convenient number of subjects. If the sample is too large, the investigator wastes effort and the subjects are unnecessarily exposed to treatments that may not be optimal. However, most often the number of subjects is too small; the size of the sample is usually limited by subject availability. Thus, studies that use low numbers of subjects and report no treatment effect should be considered with skepticism. In fact, some journals have a policy of rejecting papers that accept null hypotheses. Such negative results papers end up in a file drawer. They neither contribute to scientific knowledge nor enhance the careers of their authors. These “file-drawer papers” emphasize the need to understand the relationship between sample size and the establishment of statistically significant differences. Failure to use an appropriate sample size leads to much wasted effort.\n\n# Role of the sample size and variance in establishing statistically significant differences between means in thettest\n\nThe size of an adequate sample is a complex question that will not be addressed in great detail here. However, some insight into the problem can be gained by examining the formula for the t test, which is perhaps the most common statistical test used in biologic research. It should be used when comparing the means of only two groups. The t test exists in several forms that depend on whether the samples are related (eg, the paired t test) or independent. Below is the formula used for a two-sided comparison when comparing the means of the measured values from two independent samples with roughly equal variances of unpaired subjects:",
null,
"where nA, nB = number in samples A and B, respectively;",
null,
"= means of samples A and B, respectively;",
null,
"= variance of groups A and B, respectively;",
null,
"= standard error (SE) of the difference between means; and nA + nB–2 = degrees of freedom.",
null,
"Table 20-1 Relationship of Streptococcus mutans biotype to DMFT*",
null,
"The critical value of t for 194 df at an α level of .05 ≈ 1.96.\n\nSince the calculated value of t = 2.59 > 1.96, we can reject the null hypothesis and conclude that there is a significant difference in DMFT between the e and non–e carriers.\n\nFrom the formula for the statistic, we realize the following:\n\n1. A large difference between means will increase the t value. This makes sense. Large effects should be easier to see. If the effect is large, the sample size required to distinguish the groups will be smaller.\n2. The t value is decreased when the variance is large. (Remember that variance is related to the spread of measured values around the mean.) A large variance tends to produce a small t value, making it harder to detect differences between groups.\n3. The t value is increased when the number in the sample is large. From the formula, it can be calculated that the decrease in the SE value is proportional to the square root of the sample number. Thus, if you increase the sample size by a factor of 10, you only decrease the SE by 3.16. This may be an inefficient way of reducing the error, but it works. Bakan7 notes that increasing the sample size (n) almost inevitably guarantees a significant result. Even very small alterations in experiment conditions might produce minute differences that will be detected by a statistical test made very sensitive by a large sample size.\n\nIn the dental sciences, the reverse is the more common problem; that is, frequently there is only a small number in the sample. Combined with a large variability in the subjects, this small sample often means that no difference is detected, even when it is likely that a real difference exists.\n\n# Effect-size approach\n\n1. Estimate what you think is an important (or important to detect) difference in means between the treated and control groups.\n2. Use the results of a pilot study or previously published information on the measurement to estimate the expected pooled standard deviation (SD) of a reasonably sized sample.\n3. Using the values found in (1) and (2) above, calculate the d statistic (formula given on page 252).\n4. Choose your level of confidence (5% or 1%).\n5. Look up the number of subjects needed in appendix 6.\n\nUsing the same approach, we can also work backward to decide if a paper’s authors used a reasonable sample size. This is particularly important if no effect was seen, because the sample may have been too small to produce a sensitive experiment. To check this possibility:\n\n1. Use the authors’ data to estimate the d statistic.\n2. Look up the table in appendix 6 to determine the number of subjects that should have been used.\n3. Compare the number from the table with the actual number used. Effect- and sample-size tables for more sophisticated designs can be found in Cohen’s8 book Statistical Power Analysis for the Behavioral Sciences.\n\nDao et al9 examined the choice of measures in myofacial pain studies. Based on the characteristics of the measurements, they calculated how many subjects would be required to observe significant groups differing from each other by specified amounts. Their technique was based on the statistical power analysis developed by Cohen8 and is similar to the effect-size calculation given above. Their values for within- and between-subject variance were obtained from a population referred to as University Research Clinic. The technique used to measure pain was a visual analogue scale (VAS), shown to be a rapid, easy, and valid method that provides a more sensitive and accurate representation of pain intensity than the descriptive scales.\n\nThey found that detecting a 15% difference in pain intensity between treatment and control groups in an experiment with 3 groups would require 242 subjects per group. However, to detect an 80% difference in pain intensity, only 8 subjects per group would be needed, and the total study size would be 24 subjects. Even with the sensitive VAS method to measure pain, the traditional approach of using 25 subjects and descriptive scales could probably distinguish only very large differences between groups (ie, ≈ 80% differences, if three groups were used).\n\n# A handy rule for the effect of sample size on confidence intervals\n\nVan Belle’s Statistical Rules of Thumb10 includes a chapter on calculating sample sizes and provides a number of other “rules of thumb” useful in performing practical statistical analysis. Figure 20-1, taken from van Belle,10 shows the half-width of confidence intervals with sample size. One can see that the width of the confidence interval decreases rapidly until 12 observations are reached and then decreases more slowly.\n\n# The Fallacy of Biased Statistics\n\nTo review briefly, descriptive statistics are simply efficient ways of describing populations. For our purposes, a population is a collection of all objects or events of a certain kind that—at least theoretically—could be observed. The specific group of objects (events, subjects) observed is the sample. Inferential statistics are concerned with the use of samples to make estimates and inferences about the larger population. This larger population from which the sample is selected is also called the parent population, or, perhaps more accurately, the target population. This is the population that we hope the sample represents, so that we can generalize our findings.",
null,
"Fig 20-1 Half-width confidence interval assuming a t statistic with n–1 df and sample size n. Confidence level curves are shown for confidence levels of 90%, 95%, and 99%. (Reprinted from van Belle9 with permission.)\n\nThe fallacy of biased statistics occurs when an inductive generalization is based on a sample that is known to be—or is strongly suspected to be—nonrepresentative of the parent population. This problem of nonrepresentative samples is associated with the randomness of sample selection and the spread of the sample. Gathering numbers to obtain information may be likened to an archer shooting at a target. The bull’s-eye represents the true value of the population in question. The place where the arrow hits represents one value from the sample. Bias is the consistent repeated divergence of the shots from the bull’s-eye. For an archer, this bias may be caused by a factor such as a wind blowing from one direction that causes the arrows to hit predominantly on one side of the target. In research experiments, bias may be caused by factors leading to nonrandom sampling. There are many examples of biased polls giving erroneous results. Perhaps the most famous is the Literary Digest poll that predicted, on the basis of a telephone survey and a survey of its subscribers, that a Republican victory was assured in the 1936 election.3 The number of people polled was huge—over two million—but the prediction was wrong because the people polled were not representative of the voting public. In fact, they were wealthier than average because, at that time, telephones were found mainly in the homes of the wealthy. Thus, the Literary Digest poll selected relatively wealthy people, who stated that they would vote Republican. Today, the public opinion polls conducted by the Gallup and Harris organizations interview only about 1,800 persons weekly to estimate the opinions of US residents age 18 and over, but these polls are reasonably accurate because the sample is chosen by a stratified random sampling method that is not biased.\n\nBias can appear in many different ways, as denoted by Murphy’s11 definition:\n\nBias is any trend in the choice of a sample, the making of measurements on it, the analysis or publication of findings, that tends to give or communicate an answer that differs systematically (/>"
]
| [
null,
"https://www.facebook.com/tr",
null,
"https://pocketdentistry.com/wp-content/uploads/285/e9780867155372_i0280.jpg",
null,
"https://pocketdentistry.com/wp-content/uploads/285/e9780867155372_i0281.jpg",
null,
"https://pocketdentistry.com/wp-content/uploads/285/e9780867155372_i0282.jpg",
null,
"https://pocketdentistry.com/wp-content/uploads/285/e9780867155372_i0283.jpg",
null,
"https://pocketdentistry.com/wp-content/uploads/285/e9780867155372_i0284.jpg",
null,
"https://pocketdentistry.com/wp-content/uploads/285/e9780867155372_i0285.jpg",
null,
"https://pocketdentistry.com/wp-content/uploads/285/e9780867155372_i0286.jpg",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.950082,"math_prob":0.92248017,"size":17739,"snap":"2020-45-2020-50","text_gpt3_token_len":3464,"char_repetition_ratio":0.13431068,"word_repetition_ratio":0.0038314175,"special_character_ratio":0.19279553,"punctuation_ratio":0.087189175,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9708318,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"im_url_duplicate_count":[null,null,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-24T05:26:43Z\",\"WARC-Record-ID\":\"<urn:uuid:55836e12-cd4d-4abe-a168-9ad4784a28bc>\",\"Content-Length\":\"77813\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:21bb3768-3bc4-415f-9c2b-808d4196dfd9>\",\"WARC-Concurrent-To\":\"<urn:uuid:913e7626-9669-4928-95b5-64873b86109b>\",\"WARC-IP-Address\":\"192.157.220.43\",\"WARC-Target-URI\":\"https://pocketdentistry.com/20-statistics-as-an-inductive-argument-and-other-statistical-concepts/\",\"WARC-Payload-Digest\":\"sha1:7MOQ4FP2HDUT5XUQX5XA7RRQ6H577TDJ\",\"WARC-Block-Digest\":\"sha1:WG5C6CEPSH4ZGK3P3VUISG46PDNFGFSU\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-45/CC-MAIN-2020-45_segments_1603107882102.31_warc_CC-MAIN-20201024051926-20201024081926-00147.warc.gz\"}"} |
https://algotrading-investment.com/2020/06/01/the-concept-behind-the-pattern-completion-interval/ | [
"# The Concept behind the Pattern Completion Interval (PCI)\n\nPattern Completion Interval is the emerging concept first introduced from this book. The concept was born after the extensive computerized research in tradable patterns in the financial market conducted by myself. Therefore, not many traders are aware of its existence yet. As you read this book, you will find out that it is extremely useful concept for your harmonic pattern trading. At the same time, the concept is not a rocket science. The concept is simple enough for any average trader for their practical trading. To understand the concept of the Pattern Completion Interval, we shall understand the term approximation first. Of course, everyone know the literal meaning of approximation. However, technically speaking, approximation make quite big influence every day in our life, but many people will not notice its impact unless you are the math geek crunching numbers all day in your job.\n\nWhether you agree or not, approximation arises naturally every day in our life. There can be plenty of examples but we shall start with most intuitive one. Let us use the sprint record of Usain Bolt to learn about approximation. The record-breaking sprint of Usain Bolt was the popular coverage in many Newspapers during the 2016 Olympics since he was winning his third gold medal in 100 meter sprint. Here is simple but interesting three numbers about Usain Bolt, the fastest man in the world.\n\nHeight: 1.96 meters (6 foot 5 inches)\n\nDistance: 100 meters\n\nTime: 9.58 seconds\n\nThese three numbers can be true but maybe not. I am not suspecting about legitimacy of Usain Bolt’s record like the drug test results in the Olympics. I am pointing out that the measuring instrument, whoever measured, can only approximately measure these numbers up to certain degree. It is not because the measuring person did his job poorly but just because the instrument have own limitation to measure these numbers. For example, the sprint time might be 9.5823 seconds instead of 9.58 seconds. Maybe expressing it into 9582.3 milliseconds, we can be slightly more precise. However, still we are not dead accurate. To be dead accurate, we need infinite number of decimals to describe these numbers. This is impossible. Most of time, we will always approximate regardless of what measurement unit we are using. Likewise, the height of Usain Bolt is only the approximation too. Precisely speaking it is impossible to tell if he is 1.963 meter tall or 1.962 meter tall. Besides the height and time approximation, you can probably find many other approximation examples in our daily life like weight, speed, calories, etc.\n\nHere is another example. From your High School, you will probably remember pi, the ratio of a circle’s circumference to its diameter up to 2 decimal places as 3.14. Once again, this is only approximation. Some scientists remember it up to five decimal places as 3.14159 if they work frequently with pi. In fact, even if we use 50 decimal places to describe it as:\n\npi = 3.14159265358979323846264338327950288419716939937510,\n\nwe are only approximating it. By now, you should realize that countless approximation influence in and out of your life. One negative example might be that my classmate in my old university in the United Kingdom, failed to achieve the First Class honor since his overall score was only 69.4. In British degree system, First Class honor is granted to the students achieving the overall score over 70. First class honor is the highest grade they can achieve under the British degree system. At the same time, the other mate scored 69.6 earned First Class honor. Apparently, the academic satisfaction for these two friends were very different. Even after graduate, when they find jobs or when they get married, when they do business, these Second Class and First Class label will definitely stick with them. Now you can probably imagine that our world is not as pretty and square as you think. Well the same thing goes to scanning of Harmonic Patterns from your chart too.\n\nPattern Completion interval build its concept over the approximation but nothing else. It is in fact based on the assumption that the measured ratio in the harmonic patterns are only an approximation. Ideally, the popular Gartley Pattern should consist of the ratios shown in Figure 2-1. It is because we assume that harmonic pattern should have the exact Fibonacci ratio in theory. However, when the Gartley pattern is detected by the pattern scanner, most of time the pattern will possess the approximated ratios, which closely match to the ideal Gartley pattern but not dead accurate. Well, one day you can be very lucky to find the perfect Gartly pattern with perfect ratio in your chart. This is very rare event. Even in this very rare event, the chance that your pattern will be truly perfect is very thin because the pattern scanner might round up the ratio AB/XA for 0.618 instead of 0.6181 or CD/BC for 1.272 instead of 1.2723. Approximation error is always there in our pattern detection task. We will never be able to get rid of them since we have only limited memories inside both human brains and computers.",
null,
"Figure 2-1: Structure of Gartley Pattern for Bullish and Bearish Pattern.\n\nSince this approximation exists every time in detecting harmonic pattern, we know that, we are less accurate every time when our pattern scanner measure the ratio 0.618 or 0.382 or other Fibonacci ratio from our chart. Well, this is very common facts in the scientific world. On the other hands, as this is so common, the scientist already gave a lot of thought in overcoming this approximation error rather than using infinite number of decimals to describe the measurement.\n\nSo how can we be overcome this approximation error? Typically, in practical application like engineering and statistics, people use tolerance as one possible way of describing the measurement. In technical term, tolerance is the total amount by which a specific dimension is permitted to vary. The tolerance is the difference between the maximum and minimum limits. Going back to our Usain Bolt’s sprint record. Instead of writing 9.58 seconds, we can write 9.58 seconds 0.005. This means that Usain Bolt’s record will not be greater than 9.585 seconds and it will not be smaller than 9.575 seconds. His record will fall somewhere in between 9.585 and 9.575. By assigning maximum and minimum tolerance limit, we can be more precise in recording his records. We can also avoid using the infinite decimal places to describe his record. Using infinite decimal places is impractical. Likewise, we can describe his height as 1.96 0.005. This means that his height will fall in between 1.965 and 1.955 meters.\n\nHow this tolerance can be related to the Pattern Completion Interval in our Harmonic Pattern trading? Well, Pattern Completion Interval is in fact no more than just the tolerance limit described above. It is indeed the upper and lower limit permitted to vary in detecting Harmonic Pattern. Since detecting Harmonic Pattern is quit visual task, it might be a good idea to show the pattern completion interval using a box like in Figure 2-2. In the AB=CD Bearish reversal Pattern in Figure 2-2, the upper limit is the maximum price level permitted for this pattern to be qualified as AB=CD Harmonic Pattern. If EURUSD goes beyond this Upper Limit, then the Pattern can not be qualified as the AB=CD pattern since the pattern is breaching the tolerance limit for the given Fibonacci ratio.\n\nIn general, the tolerance limit in many practical applications are specified in symmetric manner like 1.96 meters 0.005. Technically, we can assign symmetric Upper and Lower Limit for Pattern Completion Interval too. However, either one limit between Lower Limit and Upper Limit is relevant for our trading depending our trading direction. For example, for Bearish Reversal Pattern, we only need to concern about Upper Limit since we want to know when the Harmonic Pattern will fail to form from the price moving too high. Likewise, for Bullish Reversal Pattern, we only need to concern about Lower Limit.",
null,
"Figure 2-2: Bearish AB=CD Pattern for EURUSD.\n\nAnother peculiar thing to discuss is that unlike our height and time example from Usain Bolt’s sprint, our pattern detection task involves several ratios and not just single ratio. For the Bearish AB=CD pattern in Figure 2-2, we will measure the ratio BC/AB and CD/BC together to check if these ratio are held near 0.618 and 1.271 respectively. Alternatively we can also check if the ratio is held near 0.786 and 1.618 respectively. Since we are checking two ratios, in fact we are concerning about 4 points for our pattern detection in our case of AB=CD pattern detection. Although the most important tolerance limit will be based on the final point D, one can still have the tolerance limits at the point A, B and C too. However, the tolerance limits at the point A, B and C are much less useful for our trading. In our operational definition, the Pattern Completion Interval is the tolerance limit at the final point D.\n\nPattern Completion interval and tolerance concept should clear up the most commonly asked questions from junior traders like:\n\n• Why detected Harmonic Patterns have the ratios different from the ideal one?\n• I am seeing the wrong patterns in my chart. Can I only see the ideal patterns in my chart?\n• My pattern is dead accurate. If I trade with this pattern, can I have success rate of 96%?\n\nAlthough we use the analogy of tolerance to illustrate the concept of the Pattern Completion Interval. In the course of our research, the concept of pattern completion interval was actually drawn from the concept of the prediction interval and confidence interval from statistics. For simple example, consider the simple regression with prediction interval and confidence interval shown in Figure 2-3. The fitted line on the constructed regression equation is the point prediction for the given x values. If we are using this regression equation to predict future y values according to the given x values, you can see that the point prediction from the given fitted line will not accurately predict the future outcome from Figure 2-3. In fact, most of time, prediction from regression equation will offer us some reference points to consider but they will be quite far out from actual future outcome.\n\nInstead of relying on this point prediction, statistician use prediction interval to illustrate worst and best case of your prediction in probabilistic sense. For example, 95% prediction interval means that future outcome will fall within this interval 95% of time. With the prediction interval, it is much easier to assess your risk of making wrong prediction than just using the point prediction alone. Likewise, the confidence interval is the similar concept to prediction interval. Instead of concerning the point prediction, Confidence interval concern our choice of parameters in our mathematical model. Since we can only estimate our parameters based on our sampled data, confidence interval help us to assess our risk associated with our choice of parameters. As before, 95% confidence interval means that the true population parameters will fall within this interval 95% of time. For both prediction interval and confidence interval, 90%, 95% and 99% are the common intervals to use. However, some industries use some other intervals like 80%.\n\nWe found that our Pattern Completion Interval shares many common ideas with prediction Interval and confidence interval. However, it is difficult to tell which one is closer to Pattern Completion Interval. The Pattern Completion Interval helps us to assess the risk associated with the Harmonic Pattern formation. If we view the harmonic pattern detection task as the prediction of turning point, then the Pattern Completion Interval offer the similar functionality to prediction interval to users. However, the Pattern Completion Interval does not offer us any probabilistic information like prediction and confidence interval do. Since we assume the Fibonacci ratio as an absolute measure for the Harmonic Pattern formation, the typical concern rising over the choice of parameters, which is necessary for many other practical applications, fade away. Since this book focus on the practical side, it make more sense to concern about the functionality of Pattern Completion Interval for traders.",
null,
"Figure 2-3: Illustration of simple Regression equation with confidence interval and prediction interval.\n\nBelow is the landing page for Harmonic Pattern Plus, Harmonic Pattern Scenario Planner and Profitable Pattern Scanner in MetaTrader. All these products are also available from www.mql5.com too."
]
| [
null,
"https://algotrading-investment.com/wp-content/uploads/2020/06/Figure-2-1_-Structure-of-Gartley-Pattern-for-Bullish-and-Bearish-Pattern..png",
null,
"https://algotrading-investment.com/wp-content/uploads/2020/06/Figure-2-2_-Bearish-ABCD-Pattern-for-EURUSD..png",
null,
"https://algotrading-investment.com/wp-content/uploads/2020/06/Figure-2-3_-Illustration-of-simple-Regression-equation-with-confidence-interval-and-prediction-interval..png",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.9200272,"math_prob":0.9276119,"size":13712,"snap":"2022-40-2023-06","text_gpt3_token_len":2784,"char_repetition_ratio":0.1444412,"word_repetition_ratio":0.026496116,"special_character_ratio":0.20383605,"punctuation_ratio":0.10711493,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9600364,"pos_list":[0,1,2,3,4,5,6],"im_url_duplicate_count":[null,4,null,4,null,4,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-02-03T23:22:20Z\",\"WARC-Record-ID\":\"<urn:uuid:1f001590-fea7-4f08-bc73-f29043aa8b67>\",\"Content-Length\":\"99773\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:15f4982c-33b6-47f5-887f-a1631b775c30>\",\"WARC-Concurrent-To\":\"<urn:uuid:150f5df0-7352-4307-a6ca-ced57bc07cf7>\",\"WARC-IP-Address\":\"217.160.0.250\",\"WARC-Target-URI\":\"https://algotrading-investment.com/2020/06/01/the-concept-behind-the-pattern-completion-interval/\",\"WARC-Payload-Digest\":\"sha1:5R6WJ6ZVW77ZRVG3PABG4C5WIT5AUMPD\",\"WARC-Block-Digest\":\"sha1:4I7FM7UFTC6K7RNZZRGDCGU5FC65F7VX\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764500076.87_warc_CC-MAIN-20230203221113-20230204011113-00326.warc.gz\"}"} |
https://brainmass.com/business/black-scholes-model/black-scholes-model-option-pricing-230989 | [
"Explore BrainMass\n\n# Black-Scholes Model - Option Pricing\n\nThis content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!\n\n1. RED DOT currently sells for \\$56, its volatility is 35% interest rates 2%. Use the Black and Scholes equations to compute the value of a call and a put. The strike price is \\$55 and the options expire in 220 days.\n\n2. Check the answer with the bsm calculator\n\n3. Compute the . delta-theta-gamma approximation for a value of a call after 25 days for a stock price of \\$60. Compare this to the actual call premium computed based on the new price and time to expiration. Does the approximation work? Shortly discuss.\n\n4. You are a market maker who purchases one put contract (use info from #1) you would like to hedge your risk. Describe the portfolio you would establish to control stock. . Compute price risk.\n\n5. Based on your answer to #4 compute your one-day holding profit if the new stock price is \\$58. And If the stock price is \\$52.\n\n6. Based on the information from #1 set up a bear spread using calls with K = \\$55 and \\$65 (use software in the excel file attached to compute values). What are the combined Delta, vega, and Theta of your position? Then shortly explain the sign on each Greek.\n\nPlease see the attached files with the problems.\n\nText of the problems.doc - text of the problems\n\nBlackScholes.xls - option price calculator"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.8804691,"math_prob":0.80084425,"size":1665,"snap":"2020-45-2020-50","text_gpt3_token_len":391,"char_repetition_ratio":0.115593016,"word_repetition_ratio":0.0,"special_character_ratio":0.24204203,"punctuation_ratio":0.124242425,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9666756,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-20T03:52:40Z\",\"WARC-Record-ID\":\"<urn:uuid:695b1781-050c-438c-9234-cd896d601cf7>\",\"Content-Length\":\"41778\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:06980153-99e2-4a51-8df2-fe471c5fdaf6>\",\"WARC-Concurrent-To\":\"<urn:uuid:4c0ea2f0-261c-40a1-b217-643d45e095d1>\",\"WARC-IP-Address\":\"65.39.198.123\",\"WARC-Target-URI\":\"https://brainmass.com/business/black-scholes-model/black-scholes-model-option-pricing-230989\",\"WARC-Payload-Digest\":\"sha1:F3BDVYANHR532MNXSCGGS6CV7NDX7MMA\",\"WARC-Block-Digest\":\"sha1:MQUTRVZKDKKPGXAAEGHT3YIZQE57EQXP\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-45/CC-MAIN-2020-45_segments_1603107869785.9_warc_CC-MAIN-20201020021700-20201020051700-00499.warc.gz\"}"} |
https://kotlin-dev.ml/post/advent-of-code-2021-1/ | [
"# Advent of Code 2021 in Kotlin - Day 1",
null,
"## Introduction\n\nWe start with Day 1 problem for which the solution is based on the template from the last year Advent of Code. Let’s begin to see some cool features of modern language - Kotlin 😎.\n\n## Solution\n\nWe solve the problem in pretty straightforward way - we analyze the input data in windows of different sizes. In the first part it’s enough to analyze the windows of size = 2 and count how many of them contains increase.\n\nIn the second part, we add extra step before counting the difference - we need to calculate the sums of windows of size = 3. Then, the solution is the same as in the first part.\n\n### Day1.kt\n\nobject Day1 : AdventDay() {\noverride fun solve() {\nval depths = reads<Int>() ?: return\ndepths.asSequence().countIncreases().printIt()\ndepths.asSequence().countSumIncreases().printIt()\n}\n\nprivate fun Sequence<Int>.countIncreases() = windowed(size = 2)\n.count { (prev, curr) -> curr > prev }\n\nprivate fun Sequence<Int>.countSumIncreases(size: Int = 3) = windowed(size)\n.map { it.sum() }\n.countIncreases()\n}\n\n\n## Extra notes\n\nLet’s see that we used Sequence<T> when solving the problem. It’s worth recalling that multiple operations on items in iterables should be implemented with usage of sequences because only in this way we can use the functional programming style and not cause the quadratic complexity of our solutions.\n\nAlso in countIncreases we could use the zipWithNext function, but it’s not required because of the feature of lists in Kotlin standard library. I want to recall that they can be destructured with componentN() functions as Pair<K, V> and that’s what we do in (prev, curr) -> curr > prev lambda definition. It’s worth mentioning that these componentN() functions can be defined also in our classes, so keep this in your mind when designing some Kotlin library API that could benefit from using these constructs 😉.",
null,
"###### Student of Computer Science\n\nMy interests include robotics (mainly with Arduino), mobile development for Android (love Kotlin) and Java SE/EE applications development."
]
| [
null,
"https://kotlin-dev.ml/post/advent-of-code-2021-1/featured_hu97e7c5a1426bc74b31a25fd0842f2eaf_1737208_720x2500_fit_q100_h2_lanczos.webp",
null,
"https://kotlin-dev.ml/authors/admin/avatar_hu1f2ae029604c9dcbbfa91c3c41c1f5ea_20682_270x270_fill_q100_lanczos_center.jpg",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.83244807,"math_prob":0.8412338,"size":1874,"snap":"2023-14-2023-23","text_gpt3_token_len":433,"char_repetition_ratio":0.105882354,"word_repetition_ratio":0.013157895,"special_character_ratio":0.23159018,"punctuation_ratio":0.102639295,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9575767,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,2,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-06-06T02:36:42Z\",\"WARC-Record-ID\":\"<urn:uuid:ebd298d5-4878-4e85-8f91-67d232ebea44>\",\"Content-Length\":\"16405\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:3bdea699-d45e-4546-be28-8fede379e654>\",\"WARC-Concurrent-To\":\"<urn:uuid:9f60510e-7a63-44fc-bcfb-6765f055d68f>\",\"WARC-IP-Address\":\"104.21.17.145\",\"WARC-Target-URI\":\"https://kotlin-dev.ml/post/advent-of-code-2021-1/\",\"WARC-Payload-Digest\":\"sha1:SRNQCQVP6OHAWLJF73ZY7IISXZBAFJ74\",\"WARC-Block-Digest\":\"sha1:UNNQJYMGC4454CFP2EAUFXFK2N7HJG75\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224652207.81_warc_CC-MAIN-20230606013819-20230606043819-00195.warc.gz\"}"} |
https://www.spec2000.net/16-eclife.htm | [
"Publication History: This article is based on \"Crain's Petrophysical Pocket Pal\" by E. R. (Ross) Crain, P.Eng., first published in 1987, and updated annually until 2016. This webpage version is the copyrighted intellectual property of the author. Do not copy or distribute in any form without explicit permission.",
null,
"Decline Rate and Economic Life\nIn order to determine the economic potential of a well, it is necessary to predict the production profile and economic life of a well from the reserves and flow capacity established by log data. Some assumptions must be made, as usual. These are the final production rate (Qa) below which it is uneconomic to produce the well, the annual exponential decline rate (D) and the initial deliverability (Qd).\n\nIn some jurisdictions, initial flow rate may be restricted by market demand or legislative control, or by good engineering judgment, common sense, or facilities restrictions. If this kind of production occurs, we assume the initial production rate (Qi) to be constant until this rate equals the well's ability to produce. Thereafter, production will decline at the exponential rate.",
null,
"DECline - Exponential Decline Rate Calculation\nThis routine presumes that recoverable reserves are known from some other source, such as volumetric analysis from log data, decline curve analysis, or material balance calculations. Set R in the equations below to equal Roil or Rgas, then proceed.\n\nThe production rate on decline is defined as Qa = Qd * exp (XTd). Thus solving for (XTd):\n1: (XTd) = ln (Qf / Qd)\n\nThe instantaneous decline rate (E) is found by.\n2: E = -365 * Qd (1 - exp (XTd)) / R\n\nThe annual decline rate is.\n3: D = exp (E) - 1\n\nLife of well on decline is found as follows.\n4: IF Qi >= Qd\n5: THEN Td = (XTd) / E\n\nIf the well is restricted to a constant rate.\n6: IF Qi < Qd\n7: THEN (XTd) = ln (Qf / Qi)\n8: AND Td = (XTd) / E\n\nThe reserves produced on decline are.\n9: Rd = -365 * Qi * (1 - exp (XTd)) / E\n\nThe reserves produced at constant rate are.\n10: Rc = R - Rd\n\nThe life at constant rate is.\n11: Tcon = Rc / Qi / 365\n\nThe total economic life is.\n12: Tec = Tc + Td\n\nWhere:\nD = annual decline rate (fractional)\nE = instantaneous decline rate (fractional)\nQd = initial well deliverability (bopd, mcf/d or m3/d)\nQa = economic limit or abandonment flow rate (bopd, mcf/d or m3/d)\nQi = initial production rate (bopd, mcf/d or m3 /d)\nR = recoverable reserves of well (bbl, mcf or m3)\nRc = reserves produced during constant rate (bbl, mcf or m3)\nRd = reserves produced during decline (bbl, mcf or m3)\nTcon = constant rate life (years)\nTd = decline life (years)\nTec = total economic life of well (years)\nX = instantaneous decline rate (fractional)\n(XTd) = decline factor (fractional)\n\nRECOMMENDED PARAMETERS: None.\n\nNUMERICAL EXAMPLE:\n1. Assume data as follows:\nReserves: Roil = 2.2*10^6 bbl/section\nDeliverability: QI = 1800 bopd\nEconomic Limit: QF = 10 bopd\n\n(XTd) = ln (10 / 1800) = -5.193\nE = -365 * 1800 * (1 - exp (-5.193)) / 2.2*10^6) = -0.297\nD = exp (-0.297) - 1 = -0.257\nTd = -5.194 / (-0.297) = 17.5 years = 210 months\nRd = -365 * 1800 * (1 - exp (-5.193)) / (-0.297) = 2.2*10^6 bbl\nRc = (2.2 - 2.2)*10^6 = 0.0 bbl\nTcon = 0 / 1800 / 365 = 0.0 years\nTec = 0 + 17.5 = 17.5 years = 210 months\n\n2. If the initial flow rate was restricted to 1000 bopd:\n(XTd) = ln (10 / 1000) = -4.605\nTd = -4.605 / (-0.297) = 15.5 years = 186 months\nRd = -365 * 1000 * (1 - exp (-4.605)) / (-0.297) = 1.2 * 10 ^ 6 bbl\nRc = (2.2 - 1.2)*10^6 = 1.0*10^6 bbl\nTcon = 1.0*10^6 / 1000 / 365 = 2.7 years = 32 months\nTec = 15.5 + 2.7 = 18.2 years = 218 months\n\nThe constant rate lengthens the life and reduces the profitability of the well, as will be seen in the next section.\n\nPage Views ---- Since 01 Jan 2015"
]
| [
null,
"https://www.spec2000.net/images/1leafsml.jpg",
null,
"https://www.spec2000.net/images/1leafsml.jpg",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.8696389,"math_prob":0.9963061,"size":3708,"snap":"2021-31-2021-39","text_gpt3_token_len":1211,"char_repetition_ratio":0.122300215,"word_repetition_ratio":0.04526167,"special_character_ratio":0.35625675,"punctuation_ratio":0.14248367,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9975608,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-07-24T12:01:47Z\",\"WARC-Record-ID\":\"<urn:uuid:b8cb31f5-b1f4-488a-a429-aafd8258a9d0>\",\"Content-Length\":\"20959\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:89b3c3e8-cc54-4698-996f-b34ed6d43a37>\",\"WARC-Concurrent-To\":\"<urn:uuid:c1dd64d8-13d3-438e-ae33-6f8191544cf4>\",\"WARC-IP-Address\":\"173.209.39.73\",\"WARC-Target-URI\":\"https://www.spec2000.net/16-eclife.htm\",\"WARC-Payload-Digest\":\"sha1:53YF7PCMA773KLK7HPUXRBV6DZT6ZVNS\",\"WARC-Block-Digest\":\"sha1:CIHDHBABHJ4H47PFPFFHEMDFKSTD4KE3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-31/CC-MAIN-2021-31_segments_1627046150264.90_warc_CC-MAIN-20210724094631-20210724124631-00293.warc.gz\"}"} |
http://www.logistics-business-review.com/2019/10/22/the-key-facts-on-treehouse-foods-inc-ths-2019-10-22/ | [
"# The Key Facts On Treehouse Foods, Inc. (\\$THS) (2019-10-22)\n\nREPORTING FOR 2019-10-22 | LOGISTICS-BUSINESS-REVIEW.COM: We have done an in-depth analysis of how THS has been trading over the last 2 weeks and the past day especially. On its latest session, Treehouse Foods, Inc. (\\$THS) opened at 53.93, reaching a high of 54.895 and a low of 53.905 before closing at a price of 54.03. There was a total volume of 252521.\n\nVOLUME INDICATORS FOR TREEHOUSE FOODS, INC. (\\$THS): We saw an accumulation-distribution index of 322.83482, an on-balance volume of -53.92, chaikin money flow of 1.05181 and a force index of -0.39035. There was an ease of movement rating of 0.00085, a volume-price trend of 0.15437 and a negative volume index of 1000.0.\n\nVOLATILITY INDICATORS FOR TREEHOUSE FOODS, INC. (\\$THS): We noted an average true range of 0.86106, bolinger bands of 54.25697, an upper bollinger band of 53.16803, lower bollinger band of 53.905, a bollinger high band indicator of 1.0, bollinger low band indicator of 1.0, a central keltner channel of 54.24333, high band keltner channel of 53.27833, low band keltner channel of 55.20833, a high band keltner channel indicator of 1.0 and a low band keltner channel indicator of 1.0. There was a donchian channel high band of 53.905, a donchian channel low band of 53.905, a donchian channel high band indicator of 1.0, and a donchian channel low band indicator of 1.0.\n\nTREND INDICATORS FOR TREEHOUSE FOODS, INC. (\\$THS): We calculated a Moving Average Convergence Divergence (MACD) of -0.00864, a MACD signal of -0.0048, a MACD difference of -0.00384, a fast Exponential Moving Average (EMA) indicator of 53.905, a slow Exponential Moving Average (EMA) indicator of 53.905, an Average Directional Movement Index (ADX) of unknown, an ADX positive of 20.0, an ADX negative of 20.0, a positive Vortex Indicator (VI) of 1.0, a negative VI of 1.0, a trend vortex difference of 0.42851, a trix of 0.47649, a Mass Index (MI) of 1.0, a Commodity Channel Index (CCI) of -66.66667, a Detrended Price Oscillator (DPO) of -0.16643, a KST Oscillator (KST) of 3.09696 and a KST Oscillator (KST Signal) of 3.09696 (leaving a KST difference of -1.79108). We also found an Ichimoku rating of 54.4125, an Ichimoku B rating of 54.4125, a Ichimoku visual trend A of 54.83496, an Ichimoku visual trend B of 54.57753, an Aroon Indicator (AI) up of 4.0 and an AI indicator down of 4.0. That left a difference of -4.0.\n\nMOMENTUM INDICATORS FOR TREEHOUSE FOODS, INC. (\\$THS): We found a Relative Strength Index (RSI) of 50.0, a Money Flow Index (MFI) of 100.0, a True Strength Index (TSI) of 100.0, an ultimate oscillator of 86.94012, a stochastic oscillator of 102.59067, a stochastic oscillator signal of 102.59067, a Williams %R rating of 2.59067 and an awesome oscillator of -0.11025.\n\nRETURNS FOR TREEHOUSE FOODS, INC. (\\$THS): There was a daily return of 0.3097, a daily log return of -0.71678 and a cumulative return of -0.71422.\n\nWhat the heck does all of this mean? If you are new to technical analysis, the above may be gibberish to you, and that’s OK (though we do advise learning these things). The bottom line is that AS OF 2019-10-22 (if you are reading this later, the analysis will be out of date), here is what our deep analysis of technical indicators are telling us for Treehouse Foods, Inc. (\\$THS)…\n\nDISCLAIMER: We are not registered investment advisers and the above analysis should be taken at face value only. We strongly advise against buying or selling Treehouse Foods, Inc. (\\$THS) based solely on our analysis above, and are not responsible for any losses that you may incur if you choose make any investment decisions based on the above."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.826039,"math_prob":0.86452353,"size":3611,"snap":"2021-04-2021-17","text_gpt3_token_len":1098,"char_repetition_ratio":0.1275298,"word_repetition_ratio":0.051409617,"special_character_ratio":0.32290223,"punctuation_ratio":0.1799517,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9593655,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-04-18T08:29:43Z\",\"WARC-Record-ID\":\"<urn:uuid:e9dcd9c9-9a91-45ae-837f-a03f965dbcea>\",\"Content-Length\":\"22615\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ab7dfeea-0edf-4364-87e3-49268e429623>\",\"WARC-Concurrent-To\":\"<urn:uuid:f379bfcc-a116-44dc-b96e-e8a63598097d>\",\"WARC-IP-Address\":\"199.201.110.119\",\"WARC-Target-URI\":\"http://www.logistics-business-review.com/2019/10/22/the-key-facts-on-treehouse-foods-inc-ths-2019-10-22/\",\"WARC-Payload-Digest\":\"sha1:VNLFLMU2RSHQTJJR2K6A7CRKTFOHIALK\",\"WARC-Block-Digest\":\"sha1:4UQ4TBLAZE7NF2PDYTUCQCHY7NEQYPU5\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-17/CC-MAIN-2021-17_segments_1618038469494.59_warc_CC-MAIN-20210418073623-20210418103623-00473.warc.gz\"}"} |
https://scientificallysound.org/2017/05/11/independent-t-test-in-r/ | [
"## Independent t-test in R",
null,
"As scientists, we often want to know if the difference between two groups is important or significant.\n\nFor example, you may have data on leg strength from students who came to class wearing dress shoes or running shoes. How would you decide if there was a difference in strength between these two groups? How would you quantify the size of this difference?\n\nAs one of the most widely used statistical tests in science, the student t-test should be familiar to most readers. In this post, we will learn how to perform an independent t-test in R. “Independent” refers to the fact that the data we are comparing comes from two independent groups.\n\n### The dataset: Environmental impact of pork and beef\n\nWe will first create a fictional dataset on the environmental impact (measured in kilograms of carbon dioxide) of pork and beef production.\n\n```# Number of animals in each group\nn = 30\nnames=c(rep(\"pork\", n) , rep(\"beef\", n))\n# Draw samples from two different populations\nvalue=c(sample(0:500, n, replace=T), sample(100:600, n, replace=T))\n# Create a dataframe\ndata=data.frame(names,value)\n```\n\nThe data we created is shown in the figure below.\n\nFigure 1: Grey dots represent each animal in our sample. The means and standard deviations are also plotted.",
null,
"### Difference between two independent groups\n\nOur figure indicates that, for the current sample of beef and pork, beef has approximately 100 kg more environmental impact. We can verify this by using the `summary` command:\n\n```summary(data\\$value[data\\$names=='pork'])\nMin. 1st Qu. Median Mean 3rd Qu. Max.\n0.0 163.0 271.0 262.0 396.2 476.0\nsummary(data\\$value[data\\$names=='beef'])\nMin. 1st Qu. Median Mean 3rd Qu. Max.\n115.0 273.0 370.5 353.6 452.0 593.0\n```\n\nOur visual inspection was pretty close. The mean value for the pork group is 262 kg whereas it is 353.6 kg for the beef group.\n\nTo test whether this difference is statistically significant, we will perform an independent t-test. The basic structure of the test is `t.test(group1_data, group2_data)`. Here is how to apply it to our data:\n\n```t.test(data\\$value[data\\$names=='pork'], data\\$value[data\\$names=='beef'])\n```\n\nThe output of this test is:\n\n``` Welch Two Sample t-test\n\ndata: data\\$value[data\\$names == \"pork\"] and data\\$value[data\\$names == \"beef\"]\nt = -2.3774, df = 57.304, p-value = 0.02079\nalternative hypothesis: true difference in means is not equal to 0\n95 percent confidence interval:\n-168.68251 -14.45082\nsample estimates:\nmean of x mean of y\n262.0333 353.6000\n```\n\n### Interpreting the output\n\nThe output of the t-test is quite informative. It provides us with the t-value (`t`), the degrees of freedom for the test (`df`), and the `p-value`. Because the `p-value` is below the threshold of 0.05, we can report that there is a statistically significant difference in the environmental impact between beef and pork.\n\nThe R output also provides us with the 95% confidence interval of the difference between groups as well as the mean of each group. Based on these values, we can conclude that the mean [95% CI] difference in kilograms of carbon dioxide between beef and pork is 91.6 [14.5 to 168.7]. This means that if we carried out 100 experiments, we would expect the mean difference of 95 of these experiments to be between 14.5 and 168.7 kg. An alternative interpretation is that we can be 95% certain that the (true) difference in means between the population of all beef and all pork falls between 14.5 and 168.7 kg.\n\nI am no expert in the field of environmental impact so it is difficult for me to interpret these values (especially since I made them up!). However, the 95% confidence interval seems large. A true difference of 15 kg might be inconsequential and of no scientific interest, whereas a difference of 169 kg might be cause for concern. One way to help readers understand our results would be to contrast them with more familiar forms of environmental impact. For example, would could say that, over the period of a year, the difference in environmental impact between beef and pork is equivalent to having an addition 50 diesel-fulled cars on the road.\n\nWhen reporting results, we should not simply state there was a significant difference between groups. We should provide the reader with our estimate of the size of the effect (i.e., the mean difference), as well as the uncertainty of our estimate (i.e., the 95% confidence interval). Finally, we should interpret these values for the reader based on previous results, known standards, etc.\n\n### One comment\n\n• Informative article providing good understanding of underlying numbers. Thanks!\n\nLike"
]
| [
null,
"https://scientificallysoundorg360.files.wordpress.com/2016/01/r1.png",
null,
"https://scientificallysoundorg360.files.wordpress.com/2017/05/rplot01.png",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.90674126,"math_prob":0.96415466,"size":4423,"snap":"2021-43-2021-49","text_gpt3_token_len":1049,"char_repetition_ratio":0.12672551,"word_repetition_ratio":0.019607844,"special_character_ratio":0.25706533,"punctuation_ratio":0.13391878,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9916644,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-18T06:45:22Z\",\"WARC-Record-ID\":\"<urn:uuid:7dbdf4a7-7552-4276-b20d-9ad18183a0fb>\",\"Content-Length\":\"115414\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:52a2ec18-0091-44a4-ab25-7c602a424c05>\",\"WARC-Concurrent-To\":\"<urn:uuid:2a5c0848-a21a-440f-807e-fd5575daa65b>\",\"WARC-IP-Address\":\"192.0.78.25\",\"WARC-Target-URI\":\"https://scientificallysound.org/2017/05/11/independent-t-test-in-r/\",\"WARC-Payload-Digest\":\"sha1:MNU3GAFR2MZ3KF2XOOELJTXTX2MVXVAE\",\"WARC-Block-Digest\":\"sha1:I7ROYLXNTZHL7RGV72AJNUDIWI6OMVY7\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323585199.76_warc_CC-MAIN-20211018062819-20211018092819-00395.warc.gz\"}"} |
http://bergthenerd.com/math/3rd-grade-math/ | [
"# 4th & 5th Grade Math\n\n4th Grade Units (Based upon Oregon Common Core Standards for Mathematics):\n\nOperations and Algebraic Thinking\n\n• Use the four operations with whole numbers to solve problems.\n• Gain familiarity with factors and multiples.\n• Generate and analyze patterns.\n\nNumber and Operations in Base Ten\n\n• Generalize place value understanding for multi-digit whole numbers.\n• Use place value understanding and properties of operations to perform multi-digit arithmetic.\n\nNumber and Operations – Fractions\n\n• Extend understanding of fraction equivalence and ordering.\n• Build fractions from unit fractions by applying and extending previous understandings of operations on whole numbers.\n• Understand decimal notation for fractions, and compare decimal fractions.\n\nMeasurement and Data\n\n• Solve problems involving measurement and conversion of measurements from a larger unit to a smaller unit.\n• Represent and interpret data.\n• Geometric measurement: understand concepts of angle and measure angles.\n\nGeometry\n\n• Draw and identify lines and angles, and classify shapes by properties of their lines and angles.\n\n5th Grade Units (Based upon Oregon Common Core Standards for Mathematics):\n\nOperations and Algebraic Thinking\n\n• Write and interpret numerical expressions.\n• Analyze patterns and relationships.\n\nNumber and Operations in Base Ten\n\n• Understand the place value system.\n• Perform operations with multi-digit whole numbers and with decimals to hundredths.\n\nNumber and Operations – Fractions\n\n• Use equivalent fractions as a strategy to add and subtract fractions.\n• Apply and extend previous understandings of multiplication and division to multiply and divide fractions.\n\nMeasurement and Data\n\n• Convert like measurement units within a given measurement system.\n• Represent and interpret data.\n• Geometric measurement: understand concepts of volume and relate volume to multiplication and to addition.\n\nGeometry\n\n• Graph points on the coordinate plane to solve real-world and mathematical problems.\n• Classify two-dimensional figures into categories based on their properties."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.8366917,"math_prob":0.97060466,"size":2050,"snap":"2023-14-2023-23","text_gpt3_token_len":358,"char_repetition_ratio":0.15640274,"word_repetition_ratio":0.1632653,"special_character_ratio":0.17658536,"punctuation_ratio":0.094462544,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9980639,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-03-21T08:33:54Z\",\"WARC-Record-ID\":\"<urn:uuid:9addd34a-afaa-43a8-a3f8-25552397c397>\",\"Content-Length\":\"108835\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ab81bfce-140f-40ca-bac8-438d1bfab403>\",\"WARC-Concurrent-To\":\"<urn:uuid:158a0eaa-4bcf-4414-8237-1911e0ce0c7a>\",\"WARC-IP-Address\":\"69.163.165.215\",\"WARC-Target-URI\":\"http://bergthenerd.com/math/3rd-grade-math/\",\"WARC-Payload-Digest\":\"sha1:FYZPMFBZJVODCCZA7T7NNQ3CHDQDQWIN\",\"WARC-Block-Digest\":\"sha1:ZYTJ4W5KLBRFXJ5V24L53X2POBGTI4GE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-14/CC-MAIN-2023-14_segments_1679296943637.3_warc_CC-MAIN-20230321064400-20230321094400-00493.warc.gz\"}"} |
https://lists.cam.ac.uk/pipermail/cl-isabelle-users/2010-November/msg00125.html | [
"# Re: [isabelle] Changing unification depth\n\n```On Sun, 28 Nov 2010, John Munroe wrote:\n\n```\nI've tried it with \"writeln (Int.toString search_bnd)\" instead and I get a reading of 60 as well, even after I've changed it to 5 with \"declare [[unify_search_bound=5]]\". I've looked at some of the unifiers and they are definitely deeper than 5 levels, e.g.,\n```\n%a::nat => nat.\na (a (a (a (a (a\n(a (a (a (a (a (a (a (a (a (a (a (a (a\n(a (a (a (a (a (a (a (a (a (a (a (a (a\n(a (a (a (a (a (a (a (a (a (a (a (a (a\n(a (a (a (a (a (a (a (a (a (a (a (a ((h::(nat => bool) => nat)\n(s::nat => bool))))))))))))))))))))))))))))))))))))))))))))))))))))))))))\n```\n```\n```\nThat's very strange. Are you sure you have the correct context in your example? One where the \"declare [[unify_search_bound=5]]\" is effective?\n```\nCan you show a self-contained snippet of theory source text?\n\nMakarius\n\n```\n\nThis archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.9377339,"math_prob":0.9676786,"size":923,"snap":"2021-43-2021-49","text_gpt3_token_len":323,"char_repetition_ratio":0.28618065,"word_repetition_ratio":0.3151515,"special_character_ratio":0.3943662,"punctuation_ratio":0.11734694,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9999379,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-12-03T10:38:25Z\",\"WARC-Record-ID\":\"<urn:uuid:acb31c31-4069-4c7d-9ec0-076e3eea81f3>\",\"Content-Length\":\"6192\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a6e7d5bc-6eaa-4b1f-ad25-c92c348cc4df>\",\"WARC-Concurrent-To\":\"<urn:uuid:e4e8832d-0dae-4975-9b25-0d0919d310f9>\",\"WARC-IP-Address\":\"131.111.8.15\",\"WARC-Target-URI\":\"https://lists.cam.ac.uk/pipermail/cl-isabelle-users/2010-November/msg00125.html\",\"WARC-Payload-Digest\":\"sha1:WTUUR5J3W5IGT7A7OIISQ5BL3MSMPFQW\",\"WARC-Block-Digest\":\"sha1:7K6UQMCN4HHCXKHJCMYJ5K3IEMDWAJPX\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964362619.23_warc_CC-MAIN-20211203091120-20211203121120-00587.warc.gz\"}"} |
https://pure.ncue.edu.tw/en/publications/applying-envelope-theory-and-deviation-function-to-tooth-profile- | [
"# Applying envelope theory and deviation function to tooth profile design\n\nResearch output: Contribution to journalArticlepeer-review\n\n11 Citations (Scopus)\n\n## Abstract\n\nIn this work, a mathematical model of an elastic conjugate element is presented, using envelope theory and a deviation function. A basic deformation curve in a two-dimensional system is defined, and determined by the maximum deformation of the originally generated curve. The set of these points of maximum deformation in the moving coordinate frame determines the deviation of the originally generated curve. The degree of deviation is described by a deviation function. A deviation function is chosen to reshape the originally generated curve. The reshaped curve is called a basic deformation curve. If the basic deformation curve is known, an envelope associated with them can be determined. The results are applied to rotary gear pump design. The reshaped curve is superior to the originally generated curve. The reshaped curve has lower deformation, von-Mises stress, and greater bending strength than the originally generated curve. This investigation indicates that envelope theory and deviation function can avoid singular points of conjugate elements, using an example.\n\nOriginal language English 262-274 13 Mechanism and Machine Theory 42 3 https://doi.org/10.1016/j.mechmachtheory.2006.04.009 Published - 2007 Mar 1\n\n## All Science Journal Classification (ASJC) codes\n\n• Bioengineering\n• Mechanics of Materials\n• Mechanical Engineering\n• Computer Science Applications"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.87131965,"math_prob":0.5981567,"size":1427,"snap":"2021-04-2021-17","text_gpt3_token_len":274,"char_repetition_ratio":0.15038651,"word_repetition_ratio":0.048543688,"special_character_ratio":0.1899089,"punctuation_ratio":0.07929515,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95719844,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-01-27T00:47:01Z\",\"WARC-Record-ID\":\"<urn:uuid:452a740f-cadc-40de-80f9-cf4cc98cc571>\",\"Content-Length\":\"48032\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:25ec9254-ead2-4b8d-b662-8bd8d6ed8cd7>\",\"WARC-Concurrent-To\":\"<urn:uuid:1b2b4e2e-75b1-4aa2-8710-c6128b05c889>\",\"WARC-IP-Address\":\"18.139.148.124\",\"WARC-Target-URI\":\"https://pure.ncue.edu.tw/en/publications/applying-envelope-theory-and-deviation-function-to-tooth-profile-\",\"WARC-Payload-Digest\":\"sha1:4DOEEAQKH3D2H2VBDTHFWPVL5NTBXE5E\",\"WARC-Block-Digest\":\"sha1:B3GSYEB7PM5OSSJ43I4F4GZYKSKVKNUG\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-04/CC-MAIN-2021-04_segments_1610704804187.81_warc_CC-MAIN-20210126233034-20210127023034-00185.warc.gz\"}"} |
http://ocamlgraph.lri.fr/doc/index_modules.html | [
"# Index of modules\n\n A Abstract [Imperative.S] Abstract Imperative Unlabeled Graphs. Abstract [Persistent.S] Abstract Persistent Unlabeled Graphs. AbstractLabeled [Imperative.S] Abstract Imperative Labeled Graphs. AbstractLabeled [Persistent.S] Abstract Persistent Labeled Graphs. Algo [Strat] Implements strategy algorithms on graphs B B [Merge] Extension for the module `X`. BellmanFord [Path] Bfs [Traverse] Breadth-first search Bfs [Sig_pack.S] Breadth-first search Bron_Kerbosch [Clique] Builder Graph builders in order to persistent/imperative graphs sharing a same signature. C CMPProduct [Util] Cartesian product of two comparable types. CVS [Cliquetree.CliqueTree] Set of original vertices ChaoticIteration Fixpoint computation with widenings using weak topological orderings as defined by François Bourdoncle and implemented in `WeakTopological`. Check [Path] Check for a path. Choose [Oper] Choose an element in a graph Classic Some classic graphs Classic [Sig_pack.S] Classic graphs Clique Graph cliques CliqueTree [Cliquetree.CliqueTree] The clique tree graph type CliqueTree [Cliquetree] CliqueTreeE [Cliquetree.CliqueTree] CliqueTreeV [Cliquetree.CliqueTree] Clique tree vertex type CliqueV [Cliquetree.CliqueTree] Original graph vertex Cliquetree Construction of the clique tree of a graph and recognition of chordal graphs. Coloring `k`-coloring of undirected graphs. CommonAttributes [Graphviz] The `CommonAttributes` module defines attributes for graphs, vertices and edges that are available in the two engines, dot and neato. Components Strongly connected components. Components [Sig_pack.S] Strongly connected components Concrete [Imperative.S] Imperative Unlabeled Graphs. Concrete [Persistent.S] Persistent Unlabeled Graphs. ConcreteBidirectional [Imperative.Digraph] Imperative Unlabeled, bidirectional graph. ConcreteBidirectional [Persistent.Digraph] Imperative Unlabeled, bidirectional graph. ConcreteBidirectionalLabeled [Imperative.Digraph] Imperative Labeled and bidirectional graph. ConcreteBidirectionalLabeled [Persistent.Digraph] Imperative Labeled and bidirectional graph. ConcreteLabeled [Imperative.S] Imperative Labeled Graphs. ConcreteLabeled [Persistent.S] Persistent Labeled Graphs. Contraction Edge contraction for directed, edge-labeled graphs D DGraphContainer DGraphModel Abstract graph model DGraphRandModel DGraphSubTree DGraphTreeLayout DGraphTreeModel This functor creates a model centered on a vertex from a graph DGraphView View classes. DGraphViewItem View items for the different elements of a graph. DataV [Util] Create a vertex type with some data attached to it Delaunay Delaunay triangulation. Dfs [Traverse] Depth-first search Dfs [Sig_pack.S] Depth-first search Digraph [Pack] Directed imperative graphs with edges and vertices labeled with integer. Digraph [Imperative.Matrix] Imperative Directed Graphs implemented with adjacency matrices. Digraph [Imperative] Imperative Directed Graphs. Digraph [Persistent] Persistent Directed Graphs. Dijkstra [Path] Dominator Dominators Dot [DGraphContainer] Dot Parser for DOT file format. Dot [Graphviz] DotAttributes [Graphviz] `DotAttributes` extends `CommonAttributes` and implements `ATTRIBUTES`. DotG [DGraphModel] Dot_ast AST for DOT file format. E E [DGraphSubTree.Tree] E [DGraphSubTree.G] E [ChaoticIteration.G] E [Graphml.G] E [Contraction.G] E [Fixpoint.G] E [Gmap.E_SRC] E [Gml.G] E [Prim.G] E [Flow.G_FORD_FULKERSON] E [Flow.G_GOLDBERG_TARJAN] E [Kruskal.G] E [Path.G] E [Sig_pack.S] Edges E [Sig.G] Edges have type `E.t` and are labeled with type `E.label`. Edge [Gmap] Provide a mapping function from a mapping of edges. F Fixpoint Fixpoint computation implemented using the work list algorithm. Float [Delaunay] Delaunay triangulation with floating point coordinates FloatPoints [Delaunay] Points with floating point coordinates Flow Algorithms on flows Ford_Fulkerson [Flow] G G [DGraphRandModel] G [Minsep.MINSEP] Implementation of a graph G [Builder.S] GView [DGraphContainer.S] Generic [Kruskal] Functor providing an implementation of Kruskal's minimum-spanning-tree algorithm using a user-defined union-find algorithm. Gmap Graph mapping. Gml Parser and pretty-printer for GML file format. Goldberg_Tarjan [Flow] Graph [Pack] Undirected imperative graphs with edges and vertices labeled with integer. Graph [Imperative.Matrix] Imperative Undirected Graphs implemented with adjacency matrices. Graph [Imperative] Imperative Undirected Graphs. Graph [Persistent] Persistent Undirected Graphs. GraphAttrs [DGraphRandModel] Graphml Generic GraphMl Printer Graphviz Interface with GraphViz H H [Coloring.Make] Hash tables used to store the coloring H [Path.BellmanFord] HE [XDot.Make] HTProduct [Util] Cartesian product of two hashable types. HV [XDot.Make] HVV [Path.Johnson] I I [Merge] Extension for the module `G`. I [Md] I [Mcs_m.MaximalCardinalitySearch] I [Minsep] Implementation for an imperative graph. I [Oper] Basic operations over imperative graphs I [Rand.Planar] Random imperative planar graphs I [Rand] Random imperative graphs I [Classic] Classic Imperative Graphs I [Builder] Imperative Graphs Builders. Imperative [Nonnegative] Imperative Imperative Graph Implementations. Int [Delaunay] Delaunay triangulation with integer coordinates IntPoints [Delaunay] Points with integer coordinates J Johnson [Path] K Kruskal Kruskal's minimum-spanning-tree algorithm. L Leaderlist The leader list algorithm; it generates a list of basic blocks from a directed graph. M M [ChaoticIteration.Make] Map used to store the result of the analysis Make [DGraphContainer] Make [DGraphView] Make [DGraphSubTree] Make [DGraphTreeLayout] Make [DGraphModel] This functor creates a model from a graph Make [XDot] Instantiates a module which creates graph layouts from xdot files Make [ChaoticIteration] Make [WeakTopological] Make [Mincut] Make [Contraction] Make [Leaderlist] Make [Fixpoint] Make [Dominator] Make [Prim] Functor providing an implementation of Prim's minimum-spanning-tree algorithm. Make [Kruskal] Functor providing an implementation of Kruskal's minimum-spanning-tree algorithm. Make [Topological] Functor providing topological iterators over a graph. Make [Coloring] Provide a function for `k`-coloring a graph. Make [Components] Functor providing functions to compute strongly connected components of a graph. Make [Oper] Basic operations over graphs Make [Rand.Planar] Random planar graphs Make [Rand] Random graphs Make [Delaunay] Generic Delaunay triangulation MakeFromDotModel [DGraphTreeLayout] Make_from_dot_model [DGraphSubTree] Make_graph [Dominator] Make_stable [Topological] Provide the same features than `Topological.Make`, except that the resulting topological ordering is stable according to vertices comparison: if two vertices `v1` and `v2` are topologically equal, `v1` is presented first to the iterator if and only if `G.V.compare v1 v2 <= 0`. Mark [Coloring.GM] Mark [Coloring] Provide a function for `k`-coloring a graph with integer marks. Mark [Traverse.GM] Mark [Traverse] Graph traversal with marking. Mark [Sig_pack.S] Vertices contains integers marks, which can be set or used by some algorithms (see for instance module `Marking` below) Mark [Sig.IM] Mark on vertices. Marking [Sig_pack.S] Graph traversal with marking Matrix [Imperative] Imperative graphs implemented as adjacency matrices. MaximalCardinalitySearch [Mcs_m] Mcs_m Maximal Cardinality Search (MCS-M) algorithm Md Minimum Degree algorithm Merge Provides functions to extend any module satisfying one of the signatures Sig.P, Sig.I and Builder.S . Mincut Minimal cutset of a graph Minsep Minimal separators of a graph N Neato [Graphviz] NeatoAttributes [Graphviz] The `NeatoAttributes` module defines attributes for graphs, nodes and edges that are available in the neato engine. Neighbourhood [Oper] Neighbourhood of vertex / vertices Nonnegative Weighted graphs without negative-cycles. O OTProduct [Util] Cartesian product of two ordered types. Oper Basic operations over graphs P P [Merge] Extension for the module `G`. P [Md] P [Mcs_m.MaximalCardinalitySearch] P [Minsep] Implementation for a persistent graph P [Oper] Basic operations over persistent graphs P [Rand.Planar] Random persistent planar graphs P [Rand] Random persistent graphs P [Classic] Classic Persistent Graphs P [Builder] Persistent Graphs Builders. Pack Immediate access to the library: provides implementation of imperative graphs labeled with integer as well as algorithms on such graphs. Parse [Dot] Provide a parser for DOT file format. Parse [Gml] Provide a parser for GML file format. Path Paths PathCheck [Sig_pack.S] Path checking Persistent [Nonnegative] Persistent graphs with negative-cycle prevention Persistent Persistent Graph Implementations. Planar [Rand] Prim Functor providing an implementation of Prim's minimum-spanning-tree algorithm. Print [Graphml] Graphml Printer given a graph and required info Print [Gml] Provide a pretty-printer for GML file format. R Rand Random graph generation. Rand [Sig_pack.S] Random graphs S S [Dominator.S] S [Delaunay.Triangulation] Sig Signatures for graph implementations. Sig_pack Immediate access to the library: contain a signature gathering an imperative graph signature and all algorithms. Strat Strategies SubTreeDotModelMake [DGraphTreeModel] Creates a model centered on a vertex from a dot model SubTreeMake [DGraphTreeModel] This functor creates a model centered on a vertex from a graph T TView [DGraphContainer.S] Topological Topological order. Topological [Sig_pack.S] Topological order Traverse Graph traversal. Tree [DGraphContainer.S] Tree [DGraphTreeModel.S] Tree [DGraphSubTree.S] Tree [DGraphTreeLayout.MakeFromDotModel] TreeManipulation [DGraphTreeModel.S] U Undirected [Components] Util Some useful operations. V V [DGraphSubTree.Tree] V [DGraphSubTree.G] V [ChaoticIteration.G] V [WeakTopological.G] V [Clique.G] V [Mincut.G] V [Contraction.G] V [Leaderlist.G] V [Fixpoint.G] V [Strat.G] V [Minsep.G] V [Gmap.V_SRC] V [Gml.G] V [Dominator.G] V [Prim.G] V [Flow.G_FORD_FULKERSON] V [Flow.G_GOLDBERG_TARJAN] V [Kruskal.G] V [Topological.G] V [Coloring.GM] V [Coloring.G] V [Traverse.GM] V [Traverse.G] V [Path.G] V [Components.U] V [Components.G] V [Sig_pack.S] Vertices V [Sig.G] Vertices have type `V.t` and are labeled with type `V.label` (note that an implementation may identify the vertex with its label) VSetset [Minsep.MINSEP] Implementation of a set of `Vertex_Set` Vertex [Gmap] Provide a mapping function from a mapping of vertices. Vertex_Set [Minsep.MINSEP] Implementation of a set of vertex Vertex_Set [Oper.Neighbourhood] W WeakTopological Weak topological ordering of the vertices of a graph, as described by François Bourdoncle. X XDot Reads layout information from xdot ASTs XDotDraw Parses xdot drawing operations"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.62155354,"math_prob":0.6640746,"size":10994,"snap":"2020-10-2020-16","text_gpt3_token_len":3008,"char_repetition_ratio":0.15141037,"word_repetition_ratio":0.07185185,"special_character_ratio":0.20602147,"punctuation_ratio":0.120453194,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9581357,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-25T18:43:55Z\",\"WARC-Record-ID\":\"<urn:uuid:c5199f0f-37e0-4ba3-93a2-d9b7e8b517a6>\",\"Content-Length\":\"41754\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:00ebf449-da06-4bf9-ad02-8e193968066e>\",\"WARC-Concurrent-To\":\"<urn:uuid:5cd50917-e11b-48ac-8fec-46691fc465fd>\",\"WARC-IP-Address\":\"129.175.15.11\",\"WARC-Target-URI\":\"http://ocamlgraph.lri.fr/doc/index_modules.html\",\"WARC-Payload-Digest\":\"sha1:PKGXX3Q7DLV7VJ5DBFAZK7DL7W5HZE3Q\",\"WARC-Block-Digest\":\"sha1:QE3BDG4EFJEFG7MT3ZGELVZC7NS5SHST\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875146127.10_warc_CC-MAIN-20200225172036-20200225202036-00179.warc.gz\"}"} |
https://theolivebook.com/types-of-sat-math-questions/ | [
"# Types of SAT Math Questions on the SAT Test",
null,
"The dozens of math questions on the SAT can be broken down into four types of math questions: Heart of Algebra, Problem Solving and Data Analysis, Passport to Advanced Math, and Additional Topics in Math.\n\nUnderstanding the content that falls under these four question categories will help you study for the SAT with greater focus. And with more focused practice, you’re more likely to see an increase in your SAT score.\n\nACT, SAT Math Practice Questions with Explanations\n\n## Four Types of Questions on the SAT Math Section\n\n### Heart of Algebra\n\nHeart of Algebra questions cover linear algebra and manipulation of equations.\n\nFor the Heart of Algebra questions (roughly 33% of total questions) you may need to:\n\n• Find distance on a number line, between points on a coordinate plane, or in terms of absolute value\n• Use word to symbol translation and linear equations and inequalities to solve real-world problems in context\n• Manipulate and evaluate variable expressions and equations (including absolute value)\n• Solve linear and quadratic inequalities and match with appropriate graphs\n• Find and interpret slope and intercepts from equations, word problems and graphs (also using properties of parallel and perpendicular lines)\n• Match, interpret, and analyze information from graphs in the coordinate plane\n• Solve and interpret systems of linear equations and linear inequalities both in context of real-world problems and without context\n\n### Problem Solving and Data Analysis\n\nThese questions cover your understanding of numbers, data, and rational problem solving.\n\nFor Problem Solving and Data Analysis concepts (roughly 29% of total questions) you will need to:\n\n• Solve multi-step problems using ratios, proportions, rate, percentages, and/or conversion of units of measure\n• Refer to data, charts, frequency tables, and graphs to interpret information\n• Demonstrate knowledge of measures of central tendency and distribution (mean, median, mode, range), how to compute each, and how to compute for a missing data point given a measure of central tendency\n• Compute probabilities of an event, its complement, and combinations (conditional and joint probability) in context\n• Demonstrate knowledge of the fundamental counting principle and Venn Diagrams\n• Understand the fundamentals of statistics (random sampling, distribution, standard deviation, confidence interval, and interpretation of results)\n• Interpret key features and relationships between variables in graphs\n• Understand differences between linear, quadratic, and exponential relationships in context (frequently as simple and compound interest or growth/decay)\n• Extend patterns, both arithmetic and geometric, increasing and decreasing by common factors or ratios\n\n#### Get a New Practice Question Each Week\n\nEnter your email below to get a new ACT/SAT practice question delivered to your inbox each Wednesday.\n\nThese questions test your ability to solve complex equations.\n\nPassport to Advanced Math concepts (roughly 28% of total questions) may test your ability to:\n\n• Manipulate exponents in powers of 10, and scientific notation, and apply properties of rational exponents\n• Demonstrate knowledge of the real number system – rational, irrational, and complex numbers\n• Add, subtract, multiply, and divide polynomials\n• Create and interpret quadratic or exponential functions in context\n• Analyze, solve, and graph quadratic or other nonlinear equations and systems\n• Manipulate expressions and equations with exponents, integer and rational powers, radicals, and fractions with variables in the denominator\n• Interpret and evaluate functions and composite functions\n• Interpret functions and their graphs\n• Identify intercepts and maximum and minimum values\n• Find domain and range and asymptotes\n• Understand increasing and decreasing, end behavior, and transformations/translations\n• Write functions that are directly or inversely proportional or exponential\n\nAdditional Topics in Math questions (roughly 10% of total questions) frequently combine multiple geometry concepts into one question in context. These concepts include your ability to:\n\n• Calculate lengths and midpoints of line segments (overlapping segments and those in the coordinate plane)\n• Compute perimeter and area of polygons and circumference and area of circles\n• Use properties of parallel lines, other angle properties, and similar figures and ratios to find missing angle measures or side lengths/distances\n• Use properties of isosceles and right triangles to compute unknown side lengths and angle measures (symmetry, Pythagorean theorem, etc…)\n• Demonstrate knowledge of right triangles (30o, 60o, 90o; 45o, 45o, 90o) and apply trigonometric ratios (sine, cosine, tangent) to solve for missing values\n• Manipulate between area, volume, and surface area\n• Understand the trigonometry of the unit circle and basic trig identities to solve problems involving radians and angle measures\n• Understand circle relationships such as central and inscribed angles, arc length and sector area, tangents and chords\n• Create the equation of a circle in the coordinate plane by finding the center and radius\n• Manipulate (add, subtract, multiply, divide, simplify) complex numbers (i=-1)"
]
| [
null,
"https://theolivebook.com/wp-content/uploads/2021/01/sat-math-problems-1024x512.jpg",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.8662836,"math_prob":0.95542014,"size":6097,"snap":"2021-43-2021-49","text_gpt3_token_len":1202,"char_repetition_ratio":0.12358444,"word_repetition_ratio":0.010881393,"special_character_ratio":0.18664917,"punctuation_ratio":0.0950951,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9987466,"pos_list":[0,1,2],"im_url_duplicate_count":[null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-27T16:19:00Z\",\"WARC-Record-ID\":\"<urn:uuid:b862034a-a4f6-43f8-8cbf-f3e63a6c35c7>\",\"Content-Length\":\"89888\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:eb42c53f-1574-4b71-bad5-053c67def351>\",\"WARC-Concurrent-To\":\"<urn:uuid:775bb271-7aea-4065-8545-ee24823eb056>\",\"WARC-IP-Address\":\"173.205.127.160\",\"WARC-Target-URI\":\"https://theolivebook.com/types-of-sat-math-questions/\",\"WARC-Payload-Digest\":\"sha1:K3BPSIQCS3G6WNG7MVVSOHVNATA6XW3J\",\"WARC-Block-Digest\":\"sha1:YDZ44U75FDPW5N6FLDRALXBFBVZJIAQG\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323588216.48_warc_CC-MAIN-20211027150823-20211027180823-00423.warc.gz\"}"} |
https://answers.everydaycalculation.com/gcf/990-900 | [
"Solutions by everydaycalculation.com\n\n## What is the GCF of 990 and 900?\n\nThe gcf of 990 and 900 is 90.\n\n#### Steps to find GCF\n\n1. Find the prime factorization of 990\n990 = 2 × 3 × 3 × 5 × 11\n2. Find the prime factorization of 900\n900 = 2 × 2 × 3 × 3 × 5 × 5\n3. To find the gcf, multiply all the prime factors common to both numbers:\n\nTherefore, GCF = 2 × 3 × 3 × 5\n4. GCF = 90\n\nMathStep (Works offline)",
null,
"Download our mobile app and learn how to find GCF of upto four numbers in your own time:"
]
| [
null,
"https://answers.everydaycalculation.com/mathstep-app-icon.png",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.78551096,"math_prob":0.99895173,"size":609,"snap":"2020-10-2020-16","text_gpt3_token_len":201,"char_repetition_ratio":0.12561983,"word_repetition_ratio":0.0,"special_character_ratio":0.43842363,"punctuation_ratio":0.07826087,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9966435,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-04-01T21:25:35Z\",\"WARC-Record-ID\":\"<urn:uuid:a067c1fc-bc3b-4601-9277-04575359ccb1>\",\"Content-Length\":\"6109\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7962302e-51e2-4535-bc93-e8d4f82090c0>\",\"WARC-Concurrent-To\":\"<urn:uuid:145c62b0-1199-4d09-9dc0-e699d1ed33cc>\",\"WARC-IP-Address\":\"96.126.107.130\",\"WARC-Target-URI\":\"https://answers.everydaycalculation.com/gcf/990-900\",\"WARC-Payload-Digest\":\"sha1:THMDJG63WZLKKF3V4DHT5D2MPHMIYTLO\",\"WARC-Block-Digest\":\"sha1:GLMHDL342KH6WJKYI5KPDH32ZAJXOWKA\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-16/CC-MAIN-2020-16_segments_1585370506121.24_warc_CC-MAIN-20200401192839-20200401222839-00138.warc.gz\"}"} |
https://catcoding.me/p/findsum/ | [
"",
null,
"## 一个小题目\n\n2010-08-02\n\n``````//1 到 100 000\n#include <iostream>\n#include <math.h>\n\nusing namespace std;\n#define N 100000\ntypedef long long LL;\n\nLL a;\nLL b;\nLL vec[N];\nint cnt;\nLL MAX_MUL;\n\nvoid Find(const LL* vec)\n{\nint sum=0;\nLL mul=1;\nLL Now=1;\nfor(int i=0;i<cnt;i++)\n{\nsum+=vec[i];\nwhile(mul%vec[i]!=0)\nmul*=(++Now);\nmul/=vec[i];\n}\nwhile(Now<100000)\nmul*=(++Now);\nLL diff=((1+N)*N)/2-sum;\ncout<<diff<<\" \"<<mul<<endl;\nLL a=(diff+sqrt(diff*diff-4*mul))/2;\ncout<<a<<\" \"<<diff-a<<endl;\n}\n\nint main()\n{\nsrand(time(NULL));\na=(rand()%100000)+1;\nb=(rand()%100000)+1;\ncnt=0;\nfor(int i=1;i<=N;i++)\n{\nif(i!=a&&i!=b)\nvec[cnt++]=i;\n}\ncout<<a<<\" \"<<b<<\" \"<<endl;\ncout<<a+b<<\" \"<<a*b<<endl;\nFind(vec);\n}``````\n\n``````void Find(const LL* vec)\n{\ndouble sum=0;\ndouble square_sum=0;\nfor(int i=0;i<cnt;i++)\n{\nsum+=vec[i];\nsquare_sum+=(vec[i]*vec[i]);\n}\ndouble diff=((1+N)*N)/2-sum;\ndouble square_sum_diff=\n((double)N*(N+1)*(2*(double)N+1))/6 - square_sum;\ncout<<diff<<\" \"<<square_sum_diff<<endl;\na=(2*(diff)+sqrt(8*square_sum_diff-4*diff*diff))/4;\ncout<<a<<\" \"<<diff-a<<endl;\n}``````",
null,
""
]
| [
null,
"https://catcoding.me/css/images/logo.png",
null,
"https://catcoding.me/images/wechat-qr-code.jpg",
null
]
| {"ft_lang_label":"__label__zh","ft_lang_prob":0.5313605,"math_prob":0.9998359,"size":1499,"snap":"2022-40-2023-06","text_gpt3_token_len":810,"char_repetition_ratio":0.12909698,"word_repetition_ratio":0.013605442,"special_character_ratio":0.41694462,"punctuation_ratio":0.1450151,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000045,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-09-28T10:23:27Z\",\"WARC-Record-ID\":\"<urn:uuid:6ee0110d-33d0-439b-ae35-d5174bc92844>\",\"Content-Length\":\"25565\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:abd2d7cd-6f1d-4d58-9bd1-16c32e5734a0>\",\"WARC-Concurrent-To\":\"<urn:uuid:ac65d3a2-6966-4193-b676-2da96e9bc0c7>\",\"WARC-IP-Address\":\"185.199.108.153\",\"WARC-Target-URI\":\"https://catcoding.me/p/findsum/\",\"WARC-Payload-Digest\":\"sha1:IHJQ76IDM2GLY5GYER347S65XLI3BEYC\",\"WARC-Block-Digest\":\"sha1:WHJIX23NRRWPTQGLBX2ZELGVHFZUXGK3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030335190.45_warc_CC-MAIN-20220928082743-20220928112743-00245.warc.gz\"}"} |
https://leanprover-community.github.io/archive/stream/113489-new-members/topic/Nodup.20Indices.html | [
"## Stream: new members\n\n### Topic: Nodup Indices\n\n####",
null,
"Marcus Rossel (Jan 31 2021 at 18:41):\n\nHow would you prove this lemma?\n\nimport data.list.indexes\nimport data.list.nodup\n\nexample (l : list ℕ) (p : ℕ → Prop) [decidable_pred p] : (l.find_indexes p).nodup :=\nbegin\nrw list.find_indexes_eq_map_indexes_values,\nsuffices h : (list.indexes_values p l).nodup, from list.nodup_map sorry h,\nrw list.indexes_values_eq_filter_enum,\nsuffices h : l.enum.nodup, from list.nodup_filter _ h,\n-- ...?\nend\n\n\nI've been able to reduce it to showing that l.enum.nodup, but I don't know how to continue from here. And also I feel like there must be some easier way to show this result.\nIs there anything I'm missing?\nThanks\n\n####",
null,
"Riccardo Brasca (Jan 31 2021 at 18:46):\n\nWhy is this true? If the list has duplicates and p is always true...\n\n####",
null,
"Kevin Buzzard (Jan 31 2021 at 18:48):\n\n#eval [1,1,1,1].find_indexes (λ n, true) -- [0, 1, 2, 3]\n\n\n####",
null,
"Marcus Rossel (Jan 31 2021 at 18:49):\n\nRiccardo Brasca said:\n\nWhy is this true? If the list has duplicates and p is always true...\n\nI was assuming that list.find_indexes would return the indices of all those elements in the list that satisfy some predicate. So any given index would show up at most once, making the list nodup.\n\n####",
null,
"Riccardo Brasca (Jan 31 2021 at 18:51):\n\nAh sure, it finds the indexes, not the elements! Sorry, my fault\n\n####",
null,
"Adam Topaz (Jan 31 2021 at 18:55):\n\nI would prove that the list this function produces is strictly increasing as a separate lemma, and go from there.\n\n####",
null,
"Marcus Rossel (Jan 31 2021 at 19:33):\n\nI would prove that the list this function produces is strictly increasing as a separate lemma, and go from there.\n\nI've separated this subproof out into its own lemma:\n\nlemma list.enum_cons_mem {α : Type*} {l : list α} {hd : ℕ × α} {tl : list (ℕ × α)} :\nl.enum = hd :: tl → hd ∉ tl :=\nbegin\nsorry\nend\n\n\nBut I'm failing at actually applying it:\n\nlemma list.find_indexes_nodup {α : Type*} (p : α → Prop) [decidable_pred p] (l : list α) :\n(l.find_indexes p).nodup :=\nbegin\nrw list.find_indexes_eq_map_indexes_values,\nsuffices h : (list.indexes_values p l).nodup, from list.nodup_map sorry h,\nrw list.indexes_values_eq_filter_enum,\nsuffices h : l.enum.nodup, from list.nodup_filter _ h,\ninduction l.enum with hd tl ih,\ncase list.nil { simp },\ncase list.cons {\napply list.nodup_cons.mpr,\nsuffices h : hd ∉ tl, from and.intro h ih,\nhave h : l.enum = hd :: tl, from sorry,\nexact list.enum_cons_mem h\n}\nend\n\n\nI don't know how to fix the second sorry. I thought a refl would work, but it seems that the fact that l.enum = hd :: tl isn't being propagated into the induction.\n\n####",
null,
"Adam Topaz (Jan 31 2021 at 19:56):\n\n@Marcus Rossel What I had in mind is splitting up as follows.\nI bet mathlib already has something like this to_func thing...\n\nimport order.basic\nimport data.list.indexes\nimport data.list.nodup\n\ndef list.to_func {α : Type*} (l : list α) : fin l.length → α := λ i, l.nth_le i.1 i.2\n\nlemma foo (l : list ℕ) (p : ℕ → Prop) [decidable_pred p] : strict_mono (l.find_indexes p).to_func := sorry\n\nlemma bar {l : list ℕ} : strict_mono l.to_func → l.nodup := sorry\n\nexample (l : list ℕ) (p : ℕ → Prop) [decidable_pred p] : (l.find_indexes p).nodup := bar \\$ foo _ _\n\n\n####",
null,
"Ryan Lahfa (Jan 31 2021 at 20:03):\n\nMarcus Rossel said:\n\nI would prove that the list this function produces is strictly increasing as a separate lemma, and go from there.\n\nI've separated this subproof out into its own lemma:\n\nlemma list.enum_cons_mem {α : Type*} {l : list α} {hd : ℕ × α} {tl : list (ℕ × α)} :\nl.enum = hd :: tl → hd ∉ tl :=\nbegin\nsorry\nend\n\n\nBut I'm failing at actually applying it:\n\nlemma list.find_indexes_nodup {α : Type*} (p : α → Prop) [decidable_pred p] (l : list α) :\n(l.find_indexes p).nodup :=\nbegin\nrw list.find_indexes_eq_map_indexes_values,\nsuffices h : (list.indexes_values p l).nodup, from list.nodup_map sorry h,\nrw list.indexes_values_eq_filter_enum,\nsuffices h : l.enum.nodup, from list.nodup_filter _ h,\ninduction l.enum with hd tl ih,\ncase list.nil { simp },\ncase list.cons {\napply list.nodup_cons.mpr,\nsuffices h : hd ∉ tl, from and.intro h ih,\nhave h : l.enum = hd :: tl, from sorry,\nexact list.enum_cons_mem h\n}\nend\n\n\nI don't know how to fix the second sorry. I thought a refl would work, but it seems that the fact that l.enum = hd :: tl isn't being propagated into the induction.\n\nIt looks like to me you're trying to prove something false in the induction\n\n####",
null,
"Ryan Lahfa (Jan 31 2021 at 20:03):\n\nMaybe I may be wrong but doing induction on l.enum is like: take an arbitrary list and prove what I want I think\n\n####",
null,
"Ryan Lahfa (Jan 31 2021 at 20:04):\n\nIf you do it on l, it might work, as you will prove (0, hd) notin enum_from 1 tl and (enum_from 1 tl).nodup\n\n####",
null,
"Ryan Lahfa (Jan 31 2021 at 20:06):\n\nAnd the first is provable because you can show the first component of enum_from 1 tl is greater or equal than 1, thus (0, something) cannot be there, and the second is just the fact that applying an injective function to a nodup list won't change its nodup property, and you just translate the first component of the induction hypothesis, there might be a lot better way to do it though\n\n####",
null,
"Ryan Lahfa (Jan 31 2021 at 20:16):\n\nThough, indeed, this is a bit strange\n\n####",
null,
"Yakov Pechersky (Jan 31 2021 at 22:18):\n\nlemma nodup_zip_of_left {α β : Type*} {l : list α} (h : nodup l) (l' : list β) :\nnodup (l.zip l') :=\nbegin\ninduction l with hd tl hl generalizing l',\n{ simp },\n{ cases l' with hd' tl',\n{ simp },\n{ rw [nodup_cons] at h,\nrw [zip_cons_cons, nodup_cons],\nexact ⟨λ H, h.left (mem_zip H).left, hl h.right _⟩ } }\nend\n\nlemma nodup_zip_of_right {α β : Type*} (l : list α) {l' : list β} (h : nodup l) :\nnodup (l.zip l') :=\nbegin\ninduction l' with hd tl hl generalizing l,\n{ simp },\n{ cases l with hd' tl',\n{ simp },\n{ rw [nodup_cons] at h,\nrw [zip_cons_cons, nodup_cons],\nexact ⟨λ H, h.left (mem_zip H).left, hl _ h.right⟩ } }\nend\n\n@[simp] lemma nodup_enum {l : list α} : nodup l.enum :=\nby { rw enum_eq_zip_range, exact nodup_zip_of_left (nodup_range _) _ }\n\n\n####",
null,
"Yakov Pechersky (Jan 31 2021 at 22:18):\n\nYou said you needed l.enum.nodup -- there you go.\n\n####",
null,
"Yakov Pechersky (Jan 31 2021 at 22:18):\n\nThat's after import list.range\n\n@Marcus Rossel\n\n####",
null,
"Marcus Rossel (Feb 01 2021 at 09:44):\n\nWow, thanks! @Yakov Pechersky\nI feel like some of this should make its way into Mathlib, since IMHO find_indexes being nodup should be easily available and not require 4 lemmata. Does anyone know how I could get the ball rolling on that?\n\n####",
null,
"Kevin Buzzard (Feb 01 2021 at 09:53):\n\nIf you have a github account then announce what it is and ask the maintainers for push access to non-master branches of mathlib, and then put the lemmas in an appropriate place on a branch of mathlib and then make a PR\n\n####",
null,
"Yakov Pechersky (Feb 01 2021 at 13:59):\n\nThe initial premise that find_indexes is nodup is faulty (using your proof strategy), as you can tell by the fact that you have to sorry the proof that prod.fst is injective. Because it isn't.\n\n####",
null,
"Yakov Pechersky (Feb 01 2021 at 16:16):\n\nHere you go:\n\nimport data.list.indexes\nimport data.list.range\n\nopen list\n\nvariables {α β γ δ ε : Type*}\n\n@[simp] lemma foldr_with_index_nil (f : ℕ → α → β → β) (b : β) : foldr_with_index f b nil = b := rfl\n\n@[simp] lemma foldr_with_index_singleton (f : ℕ → α → β → β) (b : β) (a : α) :\nfoldr_with_index f b [a] = f 0 a b := rfl\n\n@[simp] lemma function.uncurry_comp_prod_map_id_left (f : α → β → γ) (g : δ → α) :\nfunction.uncurry f ∘ prod.map g id = function.uncurry (f ∘ g) :=\nby { ext ⟨d, e⟩, simp }\n\nlemma foldr_with_index_cons (f : ℕ → α → β → β) (b : β) (a : α) (l : list α) :\nfoldr_with_index f b (a :: l) = f 0 a (foldr_with_index (f ∘ nat.succ) b l) :=\nby simp [foldr_with_index_eq_foldr_enum, enum_eq_zip_range, range_succ_eq_map, zip_map_left]\n\n@[simp] lemma find_indexes_nil (p : α → Prop) [decidable_pred p] : find_indexes p nil = nil := rfl\n\n@[simp] lemma find_indexes_cons_true (p : α → Prop) [decidable_pred p] (a : α) (l : list α)\n(h : p a) :\nfind_indexes p (a :: l) = 0 :: (find_indexes p l).map nat.succ :=\nbegin\nsuffices : map (prod.fst ∘ prod.map nat.succ id) (filter ((p ∘ prod.snd) ∘ prod.map nat.succ id)\n((range l.length).zip l)) = map (nat.succ ∘ prod.fst)\n(filter (p ∘ prod.snd) ((range l.length).zip l)),\n{ simpa [find_indexes_eq_map_indexes_values, indexes_values_eq_filter_enum, enum_eq_zip_range,\nrange_succ_eq_map, h, filter, zip_map_left, filter_of_map] },\ncongr\nend\n\n@[simp] lemma find_indexes_cons_false (p : α → Prop) [decidable_pred p] (a : α) (l : list α)\n(h : ¬ p a) :\nfind_indexes p (a :: l) = (find_indexes p l).map nat.succ :=\nbegin\nsuffices : map (prod.fst ∘ prod.map nat.succ id) (filter ((p ∘ prod.snd) ∘ prod.map nat.succ id)\n((range l.length).zip l)) = map (nat.succ ∘ prod.fst)\n(filter (p ∘ prod.snd) ((range l.length).zip l)),\n{ simpa [find_indexes_eq_map_indexes_values, indexes_values_eq_filter_enum, enum_eq_zip_range,\nrange_succ_eq_map, h, filter, zip_map_left, filter_of_map] },\ncongr\nend\n\n@[simp] lemma nodup_find_indexes (l : list ℕ) (p : ℕ → Prop) [decidable_pred p] : (l.find_indexes p).nodup :=\nbegin\ninduction l with hd tl hl,\n{ simp },\n{ by_cases h : p hd;\nsimpa [h, nat.succ_ne_zero] using nodup_map nat.succ_injective hl }\nend\n\n\nLast updated: May 16 2021 at 05:21 UTC"
]
| [
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null,
"https://leanprover-community.github.io/archive/assets/img/zulip2.png",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.6019461,"math_prob":0.70729685,"size":9206,"snap":"2021-21-2021-25","text_gpt3_token_len":2909,"char_repetition_ratio":0.14116496,"word_repetition_ratio":0.4428833,"special_character_ratio":0.3275038,"punctuation_ratio":0.22809593,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9902238,"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],"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],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-05-16T08:00:55Z\",\"WARC-Record-ID\":\"<urn:uuid:50ac935b-c351-4cad-80b9-93ff09b0791f>\",\"Content-Length\":\"54403\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:bc0afb8b-ec2e-4fbb-804e-1a5f874d320b>\",\"WARC-Concurrent-To\":\"<urn:uuid:8cb27663-7088-4ca8-89e1-28347e5c4ae8>\",\"WARC-IP-Address\":\"185.199.109.153\",\"WARC-Target-URI\":\"https://leanprover-community.github.io/archive/stream/113489-new-members/topic/Nodup.20Indices.html\",\"WARC-Payload-Digest\":\"sha1:Y76VQFBMF3WUI5M7D6GQCIDZZ2SWVJKM\",\"WARC-Block-Digest\":\"sha1:XTBK5B5D5MJDCF627YWW3JGIOBWLR3IX\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-21/CC-MAIN-2021-21_segments_1620243992516.56_warc_CC-MAIN-20210516075201-20210516105201-00272.warc.gz\"}"} |
https://docs.itascacg.com/3dec700/common/models/ssoft/doc/modelssoft.html | [
"FLAC3D Theory and Background • Constitutive Models\n\n# Strain-Softening/Hardening Mohr-Coulomb (SSoft) Model\n\nThis model is based on the Mohr-Coulomb model with nonassociated shear and associated tension flow rules, as described earlier. The difference, however, lies in the possibility that the cohesion, friction, dilation, and tensile strength may soften or harden after the onset of plastic yield. In the Mohr-Coulomb model, those properties are assumed to remain constant. Here, the user can define the cohesion, friction and dilation as piecewise-linear functions of a hardening parameter measuring the plastic shear strain. A piecewise-linear softening law for the tensile strength can also be prescribed in terms of another hardening parameter measuring the plastic tensile strain. The code measures the total plastic shear and tensile strains by incrementing the hardening parameters at each timestep, and causes the model properties to conform to the user-defined functions.\n\nFormulations\n\nThe yield and potential functions, plastic flow rules, and stress corrections are identical to those of the Mohr-Coulomb model.\n\nHardening Parameters\n\nThe two hardening parameters for this model ($${\\kappa}^s$$ and $${\\kappa}^t$$) are defined as the sum of some incremental measures of plastic shear and tensile strain for the zone, respectively. The zone-shear and tensile-hardening increments are calculated as the volumetric average of hardening increments over all tetrahedra involved in the zone.\n\nThe shear-hardening increment for a particular tetrahedron is a measure of the second invariant of the plastic shear-strain increment tensor for the step, given as\n\n(1)$\\Delta {\\kappa}^s = {{1}\\over{\\sqrt 2}} \\sqrt{(\\Delta {\\epsilon}_1^{p_s} - \\Delta {\\epsilon}_m^{p_s})^2 + (\\Delta {\\epsilon}_m^{p_s})^2 + (\\Delta {\\epsilon}_3^{p_s} - \\Delta {\\epsilon}_m^{p_s})^2}$\n\nwhere $$\\Delta {\\epsilon}_m^{p_s}$$ is the mean plastic strain increment,\n\n(2)$\\Delta {\\epsilon}_m^{p_s} = {{1}\\over{3}} (\\Delta {\\epsilon}_1^{p_s} + \\Delta {\\epsilon}_3^{p_s})$\n\nThe tetrahedron tensile-hardening increment is the magnitude of the plastic tensile-strain increment,\n\n(3)$\\Delta {\\kappa}^t = |\\Delta {\\epsilon}_3^{p_t}|$\n\nPlastic-Strain Increments\n\nThe plastic-strain increments involved in the preceding formula may be derived from the definition $$\\Delta {\\underline{\\epsilon}}_i^p = \\lambda {{\\partial g}\\over{\\partial {\\underline{\\sigma}}_i}}$$ of the flow rule. They have the form\n\n(4)$\\Delta {\\epsilon}_1^{p_s} = {\\lambda}^s$\n(5)$\\Delta {\\epsilon}_3^{p_s} = - {\\lambda}^s N_{\\psi}$\n(6)$\\Delta {\\epsilon}_3^{p_t} = {\\lambda}^t$\n\nwhere $${\\lambda}^s$$ and $${\\lambda}^t$$ are given by the Mohr-Coulomb model.\n\nUser-Defined Functions for Cohesion, Friction, Dilation, and Tensile Strength\n\nUser-defined functions for zone yielding parameters can be determined by back-analysis of the post-failure behavior of a material. Consider a one-dimensional stress-strain curve, $$\\sigma$$ versus $$\\epsilon$$, which softens upon yield and attains some residual strength (Figure 1).\n\nThe curve is linear to the point of yield; in that range, the strain is elastic only: $$\\epsilon = \\epsilon^e$$. After yield, the total strain is composed of elastic and plastic parts: $$\\epsilon = \\epsilon^e + \\epsilon^p$$. In the softening/hardening model, the user defines the cohesion, friction, dilation, and tensile strength variance as a function of the plastic portion, $$\\epsilon^p$$, of the total strain. These functions, which could in reality be sketched as indicated in Figure 2, are approximated in FLAC3D as sets of linear segments (Figure 3).",
null,
"Figure 2: Variation of cohesion (a) and friction angle (b) with plastic strain.\n\nHardening and softening behaviors for the cohesion, friction, and dilation in terms of the shear parameter $$\\Delta \\epsilon^{ps}$$ (see Equation (1)) are provided by the user in the form of tables. Each table contains pairs of values: one for the parameter, and one for the corresponding property value. It is assumed that the property varies linearly between two consecutive parameter entries in the table. Softening of the tensile strength is described in a similar manner, using the parameter $$\\Delta \\epsilon^{pt}$$ (see Equation (2)).\n\nImplementation Procedure\n\nThe implementation of the strain-softening/hardening model in FLAC3D/3DEC proceeds as indicated in the Mohr-Coulomb model description. After determination of the new stresses for the step, the hardening parameters for the zone are updated following the procedure described above. If appropriate, these parameters are then used to determine new values for the zone cohesion, friction, dilation, and tensile strength.\n\nNote that the tensile strength of the material can only decrease. Also, for material with friction, the value cannot exceed the maximum value $${\\sigma}_{max}^t$$.\n\nstrain-softening model properties\n\nUse the following keywords with the :zone property (FLAC3D) or block zone property (3DEC) command to set these properties of the strain-softening/hardening Mohr-Coulomb model.\n\nstrain-softening\nbulk f\n\nelastic bulk modulus, $$K$$\n\ncohesion f\n\ncohesion, $$c$$\n\ndilation f.\n\ndilation angle, $$\\psi$$. The default is 0.0.\n\nfriction f\n\ninternal angle of friction, $$\\phi$$\n\npoisson f\n\nPoisson’s ratio, $$\\nu$$\n\nshear f\n\nelastic shear modulus, $$G$$\n\ntension f\n\ntension limit, $$\\sigma^t$$. The default is 0.0.\n\nyoung f\n\nYoung’s modulus, $$E$$\n\nflag-brittle b (a)\n\nIf true, the tension limit is set to 0 in the event of tensile failure. The default is false.\n\ntable-cohesion s (a)\n\nname of the table relating cohesion to plastic shear strain\n\ntable_dilation s (a)\n\nname of the table relating dilation angle to plastic shear strain\n\ntable-friction s (a)\n\nname of the table relating friction angle to plastic shear strain\n\ntable-tension s (a)\n\nname of the table relating tension limit to plastic tensile strain\n\nstrain-shear-plastic f (r)\n\naccumulated plastic shear strain\n\nstrain-tension-plastic f (r)\n\naccumulated plastic tensile strain\n\nKey\n\n• Only one of the two options is required to define the elasticity: bulk modulus $$K$$ and shear modulus $$G$$, or, Young’s modulus $$E$$ and Poisson’s ratio $$\\nu$$. When choosing the latter, Young’s modulus $$E$$ must be assigned in advance of Poisson’s ratio $$\\nu$$.\n• The tension cut-off is $${\\sigma}^t = min({\\sigma}^t, c/\\tan \\phi)$$."
]
| [
null,
"https://docs.itascacg.com/3dec700/_images/modelssoft-2.png",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.8173906,"math_prob":0.9969282,"size":6118,"snap":"2023-40-2023-50","text_gpt3_token_len":1459,"char_repetition_ratio":0.15636244,"word_repetition_ratio":0.028985508,"special_character_ratio":0.22278522,"punctuation_ratio":0.101983,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99975866,"pos_list":[0,1,2],"im_url_duplicate_count":[null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-11T18:24:41Z\",\"WARC-Record-ID\":\"<urn:uuid:a3c5de21-1221-4631-beeb-7b6f3fc1626a>\",\"Content-Length\":\"31246\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:bc122970-09ad-418c-ba38-2efb342cbd12>\",\"WARC-Concurrent-To\":\"<urn:uuid:4522892c-4dd8-449d-b301-e838c02709cb>\",\"WARC-IP-Address\":\"104.26.7.29\",\"WARC-Target-URI\":\"https://docs.itascacg.com/3dec700/common/models/ssoft/doc/modelssoft.html\",\"WARC-Payload-Digest\":\"sha1:5DFO52OXZBDATHEURTRHAOIKAW5JI22Z\",\"WARC-Block-Digest\":\"sha1:PSQBCZK25UL2PCTG4W2HOR7B5QOS3NDF\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679516047.98_warc_CC-MAIN-20231211174901-20231211204901-00462.warc.gz\"}"} |
https://scienceteacherprogram.org/astronomy/SPapsidero08.html | [
"Our Solar System to Scale\n\nSara Papsidero\n\nPACE High School, Manhattan\n\nSummer Research Program for Science Teachers\n\nAugust 2008\n\nDuration: 2 periods\n\nAim: How massive is our Solar System and the planets within?\n\nObjectives:\n\n· Students will be able to calculate the diameter of planets to a smaller scale\n\n· Students will be able to calculate the distance from the sun to each planet to scale.\n\n· Students will understand how massive the planets are and the vastness of the solar system.\n\nMaterials: Lab sheet, Planet Guides, chart paper, colored paper, scissors, compasses, metric rulers, markers, pencils, glue\n\nProcedure:\n\nBell Ringer-\n\nWhat are the three characteristics which make a planet a planet?\n\n1. Planets are massive enough to retain a spherical shape.\n\n2. Planets only revolve around the sun.\n\n3. Planets are in control of their own orbit. They are not controlled by any other body but the Sun.\n\nWhy is Pluto no longer a planet?\n\nPluto is controlled by Neptune’s gravitational influence as well as the Sun’s. It is now considered a ‘Dwarf Planet’.\n\nLab Introduction\n\n1. Read directions of Lab through Part A- Size of Planets.\n\n2. Each student will complete the first of the two hypotheses.\n\n3. Practice calculating the scale diameter the Moon.\n\n7000km=1cm\n\nMoon’s diameter 3, 746 km 7000 km\n\n______________ = _____________\n\nX 1cm\n\n7000km x = 3746 km cm\n\nMoon’s scale diameter X = 0.535 cm\n\nX = 0.5 cm – to the nearest tenth.\n\n4. Students will be placed in cooperative pairs and will begin working on Procedure A while teacher walks around for assistance.\n\nClosure\n\n· Students will be asked to reflect upon their first hypothesis and briefly discuss as a class.\n\n· Students will be asked to calculate the scale the sun would be if they know the diameter to be 1,394,000 km. They will then see how large the sun actually is compared to the planets.\n\nOutcome/Homework:\n\nStudents will complete Part A of Lab. Students will also answer discussion questions that pertain to Part A if they are done early or for homework if there is not enough time.\n\nNext day:\n\n· Class discussion about Part A of Lab and/or finish Part A.\n\n· Begin Part B- Relative Distance of Planets.\n\nNew York State Standards\n\nStandard 4: Performance Indicators 1.2a & 1.2c"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.830687,"math_prob":0.8289808,"size":2031,"snap":"2021-43-2021-49","text_gpt3_token_len":515,"char_repetition_ratio":0.13172175,"word_repetition_ratio":0.034188036,"special_character_ratio":0.24766125,"punctuation_ratio":0.121890545,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9652471,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-20T06:08:31Z\",\"WARC-Record-ID\":\"<urn:uuid:78416650-c6ba-4fde-8ff2-76833204095f>\",\"Content-Length\":\"17791\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d08e9b83-9109-4afa-98ec-72b3fc1a275e>\",\"WARC-Concurrent-To\":\"<urn:uuid:067165a3-fe98-4e1f-8df3-67b6c8c188fa>\",\"WARC-IP-Address\":\"216.239.138.151\",\"WARC-Target-URI\":\"https://scienceteacherprogram.org/astronomy/SPapsidero08.html\",\"WARC-Payload-Digest\":\"sha1:GFUGLRA7SLTTVCBP33YNPZBNCRHJYJ6N\",\"WARC-Block-Digest\":\"sha1:7QVJBWDVGXM26RFCZ7AEN6LVOA2NWBZR\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323585302.91_warc_CC-MAIN-20211020055136-20211020085136-00683.warc.gz\"}"} |
http://de.metamath.org/qleuni/wcon3.html | [
"",
null,
"Quantum Logic Explorer < Previous Next > Nearby theorems Mirrors > Home > QLE Home > Th. List > wcon3 GIF version\n\nTheorem wcon3 209\n Description: Weak contraposition.\nHypothesis\nRef Expression\nwcon3.1 (ab) = 1\nAssertion\nRef Expression\nwcon3 (ab ) = 1\n\nProof of Theorem wcon3\nStepHypRef Expression\n1 ax-a1 30 . . . . 5 b = b\n21ax-r1 35 . . . 4 b = b\n32lbi 97 . . 3 (ab ) = (ab)\n4 wcon3.1 . . 3 (ab) = 1\n53, 4ax-r2 36 . 2 (ab ) = 1\n65wcon1 207 1 (ab ) = 1\n Colors of variables: term Syntax hints: = wb 1 ⊥ wn 4 ≡ tb 5 1wt 8 This theorem was proved from axioms: ax-a1 30 ax-a2 31 ax-r1 35 ax-r2 36 ax-r4 37 ax-r5 38 This theorem depends on definitions: df-b 39 df-a 40 This theorem is referenced by: wlecon 395 wcomd 418 wfh1 423\n Copyright terms: Public domain W3C validator"
]
| [
null,
"http://de.metamath.org/qleuni/l46-7icon.gif",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.5096998,"math_prob":0.9678929,"size":803,"snap":"2023-40-2023-50","text_gpt3_token_len":418,"char_repetition_ratio":0.12765957,"word_repetition_ratio":0.044692736,"special_character_ratio":0.4645081,"punctuation_ratio":0.13714285,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9831549,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-02T15:11:52Z\",\"WARC-Record-ID\":\"<urn:uuid:f004f5c9-611f-4dd3-9380-b92a887d30fb>\",\"Content-Length\":\"7966\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:3355cf00-68af-4c93-b25b-fd30d2dfc31d>\",\"WARC-Concurrent-To\":\"<urn:uuid:22ce98fb-6b32-4aa0-a41c-4af461131f2b>\",\"WARC-IP-Address\":\"78.47.47.15\",\"WARC-Target-URI\":\"http://de.metamath.org/qleuni/wcon3.html\",\"WARC-Payload-Digest\":\"sha1:WTON3MZMFEZ5ACDZBS3XSGQ5YJATF2QI\",\"WARC-Block-Digest\":\"sha1:IF6ML3TC6QONHM2WDTLEYRIHKNOQIB2N\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100427.59_warc_CC-MAIN-20231202140407-20231202170407-00014.warc.gz\"}"} |
https://www.jiskha.com/questions/971628/the-figure-below-presents-the-eqe-of-a-triple-junction-solar-cell-with-junctions-a-b-and | [
"# Solar Energy Please Help\n\nThe figure below presents the EQE of a triple junction solar cell with junctions A, B and C under short circuited (V = 0 V) condition.\n\na) What is the bandgap (in eV) of the absorber layer of the junction A?\n\nb) What is the bandgap (in eV) of the absorber layer of the junction B?\n\nc) What is the bandgap (in eV) of the absorber layer of the junction C?\n\nd) Which of the following statements is TRUE?\n\n1)Junction C acts as the top cell, Junction B as the middle cell, and Junction A as the bottom cell.\n\n2)Junction B acts as the top cell, Junction C as the middle cell, and Junction A as the bottom cell.\n\n3)Junction A acts as the top cell, Junction B as the middle cell, and Junction C as the bottom cell.\n\nEach junction is illuminated under standard test conditions. Given the photon fluxes below, calculate the short-circuit current density (in mA/cm2) of each (separate) junction (A, B and C):\n\nϕ=9.3∗1020m−2s−1 for 300nm<λ<650nm\n\nϕ=8.4∗1020m−2s−1 for 650nm<λ<850nm\n\nϕ=1.4∗1021m−2s−1 for 850nm<λ<1250nm\n\ne) Jsc of Junction A:\n\nf) Jsc of Junction B:\n\ng) Jsc of Junction C:\n\nh) The Voc of each junction in V can be roughly estimated by the equation\n\nVoc=Egap(J)2q=Egap(eV)2\nwhere q is the elementary charge, Egap(J) is the bandgap energy expressed in Joules, and Egap(eV) is the bandgap energy expressed in eV. Assume a fill factor of FF=0.75. What is then the efficiency (in %) of the triple junction solar cell?\n\n1. 👍\n2. 👎\n3. 👁\n1. d) Junction A acts as the top cell, Junction B as the middle cell, and Junction C as the bottom cell.\n\n1. 👍\n2. 👎\n2. Can you also give out the rest of the answers?? thanks\n\n1. 👍\n2. 👎\n3. Someone has the others results please???\n\n1. 👍\n2. 👎\n4. Hey guys i exchange the answers of this question with the assignment 5...\njust let me know\n\n1. 👍\n2. 👎\n5. hi\n\nanyone have the answers to this Q\n\n1. 👍\n2. 👎\n6. Add the missing figures please\n\n1. 👍\n2. 👎\n7. a 1447\nb.45\nc.25\n\n1. 👍\n2. 👎\n8. None is true answer sorry\n\n1. 👍\n2. 👎\n9. This is the link to the image\n\npostimg org/image/fsra4o0h1/\n\n1. 👍\n2. 👎\n10. Please help...\n\n1. 👍\n2. 👎\n11. The figure below presents the EQE of a triple junction solar cell with junctions A, B and C under short circuited (V = 0 V) condition.\nEQE table is:\n\nA: EQE = 0.7 wavelength= 300 to 650 nm\nB: EQE = 0.9 Wavelength= 650 to 850 nm\nC: EQE = 0.8 Wavelength= 850 to 1250 nm\n\na) What is the bandgap (in eV) of the absorber layer of the junction A?\n\nb) What is the bandgap (in eV) of the absorber layer of the junction B?\n\nc) What is the bandgap (in eV) of the absorber layer of the junction C?\n\nd) Which of the following statements is TRUE?\n\nJunction C acts as the top cell, Junction B as the middle cell, and Junction A as the bottom cell.\nJunction B acts as the top cell, Junction C as the middle cell, and Junction A as the bottom cell.\nJunction A acts as the top cell, Junction B as the middle cell, and Junction C as the bottom cell\n\nTRIPLE JUNCTION SOLAR CELL - III\nEach junction is illuminated under standard test conditions. Given the photon fluxes below, calculate the short-circuit current density (in mA/cm2) of each (separate) junction (A, B and C):\n\nϕ=9.3∗1020m−2s−1 for 300nm<λ<650nm\n\nϕ=8.4∗1020m−2s−1 for 650nm<λ<850nm\n\nϕ=1.4∗1021m−2s−1 for 850nm<λ<1250nm\n\ne) Jsc of Junction A:\n\nf) Jsc of Junction B:\n\ng) Jsc of Junction C:\n\nTRIPLE JUNCTION SOLAR CELL - IV\nh) The Voc of each junction in V can be roughly estimated by the equation\n\nVoc=Egap(J)2q=Egap(eV)2\nwhere q is the elementary charge, Egap(J) is the bandgap energy expressed in Joules, and Egap(eV) is the bandgap energy expressed in eV. Assume a fill factor of FF=0.75. What is then the efficiency (in %) of the triple junction solar cell?\n\n1. 👍\n2. 👎\n12. bandgaps:\na) 1.9\nb) 1.46\nc) 0.992\n\n1. 👍\n2. 👎\n13. @foxman thinks\n\n1. 👍\n2. 👎\n14. plz answer\ne,f,g,h parts\n\n1. 👍\n2. 👎\n15. Please answer e,f,g,h\n\n1. 👍\n2. 👎\n16. e) 10.4302\nf) 12.1125\ng) 17.9444\n\n1. 👍\n2. 👎\n17. H. 17.022\n\n1. 👍\n2. 👎\n18. d) Which of the following statements is TRUE?\n\n1-Junction C acts as the top cell,\n2-Junction B as the middle cell, and\n3-Junction A as the bottom cell.\nJunction B acts as the top cell, Junction C as the middle cell, and Junction A as the bottom cell. Junction A acts as the top cell, Junction B as the middle cell, and Junction C as the bottom cell.\nPlease help\n\n1. 👍\n2. 👎\n19. d) Junction A top\nJunction B middle\nJunction C bottom\n\n1. 👍\n2. 👎\n20. Que.4-- C\n\n1. 👍\n2. 👎\n21. To find the answer is pretty simple. E= h*c/λ*q\nWhere,\nh is the planck's constant\nc is the speed light in vacuum\nλ is the wavelength\nq is the elementary charge\n\n1. 👍\n2. 👎\n\n## Similar Questions\n\n1. ### Solar Energy Help ASAP\n\nThe current density of an ideal p-n junction under illumination can be described by: J(V)=Jph−J0(eqVkT−1) where Jph is the photo-current density, J0 the saturation-current density, q the elementary charge, V the voltage, k the\n\n2. ### Solar Energy please help\n\nSolar simulators are used to study the performance of solar cells in the lab. In the figure below (left picture), the spectral power density of a solar simulator is shown with the blue line. The spectral power density of this\n\n3. ### Physics\n\nA given solar cell has the following specifications: Isc=4A Voc=0.7V 36 identical cells with the above specifications are to be interconnected to create a PV module. 1- What is the open-circuit voltage (in V) of the PV module if\n\n4. ### Solar Energy Please Help\n\nFigure 1 shows a simplication of the AM1.5 solar spectrum at 1000W/m2. The spectrum is divided in three spectral ranges: A for 0nm\n\n1. ### Solar Energy Help ASAP\n\nA solar cell with dimensions 12cm x 12cm is illuminated at standard test conditions. The cell presents the following external parameters: Voc=0.8V,Isc=3A,Vmp=0.75V,Imp=2.5A Calculate the fill factor in percentage [%]: Calculate\n\n2. ### Solar Energy Help ASAP\n\nLet's assume that solar light reaches a silicon solar cell with an angle of incidence of θi=0o. For simplicity, let's consider the refractive index of silicon to be nSi=3.5. The refractive index of air is nair=1. What percentage\n\n3. ### Science\n\nWhich of the following is a problem with using solar power as a main source of energy? A. People do not yet have the technology to use solar power*** B. The sun is not close enough to provide solar energy C. Power from solar\n\n4. ### Solar energy please help\n\n1-Consider an organic solar cell consisting of a TiO2 semiconductor with an ionization energy 7.8eV and a polymer with an electron affinity 3.4eV. Which of the followning band diagrams corresponds to the organic solar cell. The\n\n1. ### solar energy please help\n\nIn this section, we talked about combining a solar cell with a photoelectrode to form a photoelectrochemical device. Why do we add a solar cell in the system? a)Because the photoelectrode is not able to produce any voltage\n\n2. ### solar cells\n\nImagine that you are in the lab and you can decide the thickness of the Si layer of your solar cell. You want to optimize the solar cell performance for a wavelength of λ=1000nm, for which the absorption coefficient is\n\n3. ### CIGS AND CDTE FABRICATION\n\nDuring manufacturing of a CIGS device, the metal back contact is deposited first, while in case of the CdTe solar cells, the back contact is deposited in the last processing step. What are the configurations of both cells: a) Both\n\n4. ### physics help\n\nAt a certain location, the solar power per unit area reaching the Earth's surface is 180 W/m2 averaged over a 24-hour day. Suppose you live in a solar powered house whose average power requirement is 3.2 kW. At what rate must"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.81297445,"math_prob":0.91881704,"size":3244,"snap":"2021-21-2021-25","text_gpt3_token_len":980,"char_repetition_ratio":0.17561728,"word_repetition_ratio":0.1767516,"special_character_ratio":0.2651048,"punctuation_ratio":0.0867347,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99125046,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-06-21T01:00:45Z\",\"WARC-Record-ID\":\"<urn:uuid:3918d8e0-e004-49d8-96fa-6162b669e4b0>\",\"Content-Length\":\"58089\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e9c28625-91a2-401d-ab1f-9d2843b0739c>\",\"WARC-Concurrent-To\":\"<urn:uuid:cf24c294-3342-4d31-b32f-e401f91a75d3>\",\"WARC-IP-Address\":\"66.228.55.50\",\"WARC-Target-URI\":\"https://www.jiskha.com/questions/971628/the-figure-below-presents-the-eqe-of-a-triple-junction-solar-cell-with-junctions-a-b-and\",\"WARC-Payload-Digest\":\"sha1:LA62GVXEHYB33IQKE2ASYSEFDSXR7TUT\",\"WARC-Block-Digest\":\"sha1:FETDE43FYCQG27WGUYYQLDWF7X6YJ5HB\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-25/CC-MAIN-2021-25_segments_1623488259200.84_warc_CC-MAIN-20210620235118-20210621025118-00121.warc.gz\"}"} |
https://www.thedirtbag.com/how-much-mulch-do-you-need-for-your-garden/ | [
"# How Much Mulch Do You Need for Your Garden?\n\nRegardless of which type of mulch you prefer for your garden or landscaping, you’ll need to do some calculating to determine how much to purchase.",
null,
"Guess wrong, and you’ll either come up short or end up with a surplus. Here’s how to do the math to make sure you get the amount right.\n\n## Calculating the Mulch Needs of a Rectangular Garden\n\nWhat size is your garden bed? To determine how many cubic feet of mulch you need, we must start with calculating the square footage of the area you wish to cover.\n\nFor square or rectangular beds, this calculation begins with measuring the length and the width of the bed, in feet. Multiply these two numbers to determine the area, or the square footage of your garden bed. Here’s an example:\n\nGarden Length = 20 feet\nGarden Width = 15 feet\nSquare footage = 20 × 15 = 300 square feet\n\nNext, you need to decide how deep you want to layer the mulch. Two or three inches is typically an effective depth for most vegetable gardens or flower beds.\n\nNow take the square footage of your bed and multiply by your desired depth. Using the example above and assuming a 3-inch depth (0.25 feet), the total amount of mulch needed would be 300*0.25 = 75 cubic feet.\n\n## Calculating the Mulch Needs of a Round Garden Bed\n\nBut what if you have a round garden bed?\n\nTo find the area, you’ll need to measure the diameter, or the number of feet across. Divide this in half to get the radius of your bed. Now, take the radius and square it, or multiply it by itself. Then, multiply this figure by pi, or 3.14, to calculate the square footage. Here’s an example:\n\nGarden diameter = 14 feet\nGarden radius = 14 ÷ 2 = 7 feet\nSquare the radius = 7 x 7 = 49 feet\nSquare footage = 49 × 3.14 = 153.86\n\nAs with a rectangular or square garden, you need to decide on a mulch depth and multiply by your square footage. So, if we assume a 3-inch depth (0.25 feet), the total amount needed for our example would be 38.5 cubic feet.\n\n## Take the Size of Your Garden and Figure How Much Mulch You Need\n\nThe last step is to convert your desired square footage of mulch into cubic yards, as The Dirt Bag sells mulch by the cubic yard.\n\nTo make the conversion, divide your total by 27, as one cubic yard of mulch is 27 cubic feet. Then, round up to the nearest whole number to calculate the number of bags of mulch you need to cover your soil.\n\nSo, here’s the math for our rectangular garden example:\n\n75 cubic feet ÷ 27 = 2.78 cubic yards\n\nRounding up, a total of three bags of mulch would be needed to cover a three-inch depth.\n\nAs for the round garden example:\n\n38.5 cubic feet ÷ 27 = 1.42 cubic yards\n\nIn this case, two bags of mulch would provide ample coverage.\n\nNow, if you’re not too keen on math, don’t worry. You can always use the handy-dandy coverage calculator on The Dirt Bag website. We offer bagged mulch as well as bulk mulch products, all available for delivery throughout Northern Utah. For every product we offer, including garden soil, topsoil, compost, play sand and landscape rock, simply look to the top right corner of the screen and click on the yellow “How much do I need” calculator button.\n\nThe Dirt Bag, located in West Jordan, Utah, makes it easy for you to order all the products you need for your garden and landscaping needs. Give us a call or visit us online today to order your Utah mulch delivery."
]
| [
null,
"https://www.thedirtbag.com/wp-content/uploads/2016/09/Garden-Mulch-Calculator.jpg",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.9055021,"math_prob":0.9805414,"size":3304,"snap":"2022-27-2022-33","text_gpt3_token_len":802,"char_repetition_ratio":0.14151515,"word_repetition_ratio":0.025848143,"special_character_ratio":0.2457627,"punctuation_ratio":0.11173975,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9860845,"pos_list":[0,1,2],"im_url_duplicate_count":[null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-05T09:42:29Z\",\"WARC-Record-ID\":\"<urn:uuid:ddb03389-10c4-48c2-8acb-9d6790c79e50>\",\"Content-Length\":\"75845\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:91a86e7a-d164-4ba2-b1d5-468fac329964>\",\"WARC-Concurrent-To\":\"<urn:uuid:91e10a1a-2d96-4e31-9b33-76765def7afb>\",\"WARC-IP-Address\":\"107.180.55.20\",\"WARC-Target-URI\":\"https://www.thedirtbag.com/how-much-mulch-do-you-need-for-your-garden/\",\"WARC-Payload-Digest\":\"sha1:3LWLJNQY2QZWF3PIAKLEFZT3CHLXH74Q\",\"WARC-Block-Digest\":\"sha1:YJH64ZLUCXCOJMEGNLLUWFA4WVIL2YGU\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656104542759.82_warc_CC-MAIN-20220705083545-20220705113545-00077.warc.gz\"}"} |
https://cs.stackexchange.com/questions/106570/how-to-find-examples-of-best-cases-for-sorting-algorithms | [
"# How to find examples of best cases for sorting algorithms?\n\nI am asked to give a table of 8 elements that are to be sorted by the following algorithms and to produce their best cases. 1) Selection sort 2) Bubble sort 3) Insertion sort 4) Fusion sort\n\nIf I give an already sorted table ex: {1,2,3,4,5,6,7,8} shouldn't it already be the best case for all of them? If I can be considered a best case for each?\n\n• \"If I can be considered a best case for each?\" What do you mean by that sentence? Please edit your question to clarify. Apr 6 '19 at 19:24\n\nBubble sort can \"stop early\" should the array already be sorted. Other algorithms have their own advantages or applications, but none of the algorithms mentioned in your question - other than bubble sort - can \"stop early\".\n\nTherefore for any input Insertion & Selection runtime will be $$\\Omega (n^2)$$, and Mergesort $$\\Omega(nlog(n))$$, so the order of elements doesn't matter at all.\n\n$$\\bullet$$ If you perform bubble sort on an already sorted array, the algorithm can stop when not performing any swaps, and run at $$O(n)$$\n\n$$\\bullet$$ Merge sort (to which you refer as 'fusion sort' from some reason) is the only algorithm that requires $$O(nlog(n))$$ rather than $$O(n^2)$$\n\n$$\\bullet$$ Insertion sort is useful when receiving the array online (one element at a time) and maintaining it sorted. Its noteworthy that since you maintain a sorted array, new elements can be inserted via binary search, which make the insertion sort perform $$O(nlog(n))$$ comparisons, but still cost $$O(n^2)$$ due to moving elements.\n\n$$\\bullet$$ Selection sort is very easy to implement and intuitive to explain\n\n• By the way, you can use \\log to denote $\\log$ such as in $O(n\\log n)$. Apr 6 '19 at 19:37\n• It may not be a bad idea to add a linear check if the array is sorted in any step (which can make both insertion and selection also linear in best case), but not sure OP meant modified algorithms. I did not think of a binsearch insertion, that is an insteresting point and i will edit it in. Thanks.\n– lox\nApr 6 '19 at 19:44\n• An insertion algorithm that compares the last element in the result array with the new element will run $O(n)$ on $1,2,3,\\cdots,n$. (Of course, binary search for insertion is a very interesting variation.) Even if \"new elements can be inserted via binary search\", that does not make it run in $O(n\\log n)$. Binary search reduces the number of comparisons; however, the steps that are needed for the actual insertion take $\\Theta(n^2)$ in average. Apr 6 '19 at 19:52\n• You're right. edited it. No, i didn't implement any variation of insertion sort\n– lox\nApr 6 '19 at 19:56\n• Upvoted, although this answer still misses some finer (or pedantic) details. Apr 7 '19 at 20:15"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.8939848,"math_prob":0.9597417,"size":1079,"snap":"2021-31-2021-39","text_gpt3_token_len":246,"char_repetition_ratio":0.12372093,"word_repetition_ratio":0.0,"special_character_ratio":0.2381835,"punctuation_ratio":0.067010306,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99598813,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-28T14:54:27Z\",\"WARC-Record-ID\":\"<urn:uuid:0b6608c8-26d3-4245-a05a-1c899f071283>\",\"Content-Length\":\"176151\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2de03a2a-7035-45fa-98dc-69e0ea1a43f1>\",\"WARC-Concurrent-To\":\"<urn:uuid:15e813c7-6704-4123-b388-296da66fa45c>\",\"WARC-IP-Address\":\"151.101.193.69\",\"WARC-Target-URI\":\"https://cs.stackexchange.com/questions/106570/how-to-find-examples-of-best-cases-for-sorting-algorithms\",\"WARC-Payload-Digest\":\"sha1:63T5OO6BLBNPO2JCEYQPFL43ZTGXQZ5I\",\"WARC-Block-Digest\":\"sha1:4NQTXSXK5OBHULDD4AJSQFQGCG7PYT32\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780060803.2_warc_CC-MAIN-20210928122846-20210928152846-00364.warc.gz\"}"} |
https://www.triangle-calculator.com/?a=3&a1=0&3dd=3D&a2=3&b=-2&b1=1&b2=4&c=7&c1=2&c2=5&3d=1&what=vc | [
"Triangle calculator VC\n\nPlease enter the coordinates of the three vertices\n\nObtuse scalene triangle.\n\nSides: a = 9.11104335791 b = 4.89989794856 c = 5.19661524227\n\nArea: T = 9.89994949366\nPerimeter: p = 19.20655654874\nSemiperimeter: s = 9.60327827437\n\nAngle ∠ A = α = 128.9422441269° = 128°56'33″ = 2.25504701457 rad\nAngle ∠ B = β = 24.72333108842° = 24°43'24″ = 0.43215031769 rad\nAngle ∠ C = γ = 26.33442478469° = 26°20'3″ = 0.4659619331 rad\n\nHeight: ha = 2.1733221472\nHeight: hb = 4.04114518843\nHeight: hc = 3.81103173777\n\nMedian: ma = 2.17994494718\nMedian: mb = 7\nMedian: mc = 6.83773971656\n\nInradius: r = 1.03108985636\nCircumradius: R = 5.85767073009\n\nVertex coordinates: A[3; 0; 3] B[-2; 1; 4] C[7; 2; 5]\nCentroid: CG[2.66766666667; 1; 4]\nExterior(or external, outer) angles of the triangle:\n∠ A' = α' = 51.0587558731° = 51°3'27″ = 2.25504701457 rad\n∠ B' = β' = 155.2776689116° = 155°16'36″ = 0.43215031769 rad\n∠ C' = γ' = 153.6665752153° = 153°39'57″ = 0.4659619331 rad\n\nHow did we calculate this triangle?\n\n1. We compute side a from coordinates using the Pythagorean theorem",
null,
"2. We compute side b from coordinates using the Pythagorean theorem",
null,
"3. We compute side c from coordinates using the Pythagorean theorem",
null,
"Now we know the lengths of all three sides of the triangle and the triangle is uniquely determined. Next we calculate another its characteristics - same procedure as calculation of the triangle from the known three sides SSS.",
null,
"4. The triangle circumference is the sum of the lengths of its three sides",
null,
"5. Semiperimeter of the triangle",
null,
"6. The triangle area using Heron's formula",
null,
"7. Calculate the heights of the triangle from its area.",
null,
"8. Calculation of the inner angles of the triangle using a Law of Cosines",
null,
"",
null,
"",
null,
"",
null,
"",
null,
""
]
| [
null,
"https://www.triangle-calculator.com/tex/e3b/e3b0126060328.svg",
null,
"https://www.triangle-calculator.com/tex/97b/97b4510e247d6.svg",
null,
"https://www.triangle-calculator.com/tex/16f/16f50ea62f0eb.svg",
null,
"https://www.triangle-calculator.com/tex/1e5/1e5b8ed7dd12b.svg",
null,
"https://www.triangle-calculator.com/tex/ea2/ea201101e1d05.svg",
null,
"https://www.triangle-calculator.com/tex/272/2728eacd0c6ee.svg",
null,
"https://www.triangle-calculator.com/tex/9c1/9c130777aadd7.svg",
null,
"https://www.triangle-calculator.com/tex/97f/97f9f0061dfb5.svg",
null,
"https://www.triangle-calculator.com/tex/d1e/d1e12ae569edb.svg",
null,
"https://www.triangle-calculator.com/tex/2f7/2f73c49dda072.svg",
null,
"https://www.triangle-calculator.com/tex/04a/04a52421ed83c.svg",
null,
"https://www.triangle-calculator.com/tex/d32/d3265683759e5.svg",
null,
"https://www.triangle-calculator.com/tex/bd7/bd75f6a633398.svg",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.70541716,"math_prob":0.99920326,"size":1771,"snap":"2019-43-2019-47","text_gpt3_token_len":622,"char_repetition_ratio":0.14827392,"word_repetition_ratio":0.020905923,"special_character_ratio":0.45962733,"punctuation_ratio":0.18911175,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9999585,"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,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-10-17T16:16:37Z\",\"WARC-Record-ID\":\"<urn:uuid:1a5af91e-d1bc-4029-8eec-96a34c40e58d>\",\"Content-Length\":\"21097\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:34b8b367-5063-4f68-af33-31df7861a588>\",\"WARC-Concurrent-To\":\"<urn:uuid:cc431605-b38d-4c61-9d4d-6a41c3e3688c>\",\"WARC-IP-Address\":\"104.28.12.22\",\"WARC-Target-URI\":\"https://www.triangle-calculator.com/?a=3&a1=0&3dd=3D&a2=3&b=-2&b1=1&b2=4&c=7&c1=2&c2=5&3d=1&what=vc\",\"WARC-Payload-Digest\":\"sha1:IJOV634JA3LLFYWTTQ2NZTFBZDX43GKH\",\"WARC-Block-Digest\":\"sha1:VJJBXG7LEL2BCEXK5RUAGUR34EZ3Y2JR\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-43/CC-MAIN-2019-43_segments_1570986675409.61_warc_CC-MAIN-20191017145741-20191017173241-00375.warc.gz\"}"} |
https://flylib.com/books/en/1.389.1/pi_model_operated_in_the_lc_region.html | [
"# Pi-Model Operated in the LC Region\n\nSuppose you intend to model a transmission line operating at a frequency at or above the LC region boundary. Constrain the line to a length l sufficiently short that the total line delay t d remains less than 1/6 of the signal risetime t r .\n\nEquation D.12",
null,
"The next equations determine the effect of constraint [D.12] on the magnitude of the length-adjusted propagation coefficient l g . In the LC region the inductive reactance w L by definition exceeds R , so you may safely approximate the magnitude of the coefficient l g by omitting the R .\n\nEquation D.13",
null,
"The midpoint of the spectrum associated with the rising and falling edges of the signal driving the line is related to the rise and fall time t r .\n\nEquation D.14",
null,
"Evaluating [D.13] at w edge , and recognizing that for an LC-mode transmission line the effective line delay t d equals",
null,
",\n\nEquation D.15",
null,
"At a ratio of t d / t r = 1/6 the coefficient l l LCregion equals .366, at which value the pi-model error given by [D.11] ( assuming the ratios Z S / Z C and Z C / Z L to each be less than 3.8) works out to about 3%. At a ratio t d / t r = 1/3 the error soars to 25%. Above t d / t r = 1/2 the pi model loses all useful predictive power.",
null,
"High-Speed Signal Propagation[c] Advanced Black Magic\nISBN: 013084408X\nEAN: N/A\nYear: 2005\nPages: 163",
null,
""
]
| [
null,
"https://flylib.com/books/1/389/1/html/2/files/xdequ12.gif",
null,
"https://flylib.com/books/1/389/1/html/2/files/xdequ13.gif",
null,
"https://flylib.com/books/1/389/1/html/2/files/xdequ14.gif",
null,
"https://flylib.com/books/1/389/1/html/2/files/745equ01.gif",
null,
"https://flylib.com/books/1/389/1/html/2/files/xdequ15.gif",
null,
"https://flylib.com/icons/blank_book.jpg",
null,
"https://flylib.com/media/images/top.png",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.80835927,"math_prob":0.98895484,"size":1727,"snap":"2020-24-2020-29","text_gpt3_token_len":440,"char_repetition_ratio":0.11375508,"word_repetition_ratio":0.01986755,"special_character_ratio":0.23508975,"punctuation_ratio":0.07647059,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9990381,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"im_url_duplicate_count":[null,5,null,5,null,5,null,5,null,5,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-07-12T00:34:39Z\",\"WARC-Record-ID\":\"<urn:uuid:2c5f7a73-e09a-42cf-8703-bc9e00aa39a1>\",\"Content-Length\":\"34444\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:81db6f9f-5b6c-4c03-b226-9372a3d6a8bc>\",\"WARC-Concurrent-To\":\"<urn:uuid:ad1f291a-fbfb-4aea-9a22-ca4abf63c2fc>\",\"WARC-IP-Address\":\"179.43.157.53\",\"WARC-Target-URI\":\"https://flylib.com/books/en/1.389.1/pi_model_operated_in_the_lc_region.html\",\"WARC-Payload-Digest\":\"sha1:AYPS666BXWQXIWBK7YP4CTPE5XAQQ3OS\",\"WARC-Block-Digest\":\"sha1:5BVKI2FEBZQACR7SMOF3IDAZMK5765OJ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593657129257.81_warc_CC-MAIN-20200711224142-20200712014142-00070.warc.gz\"}"} |
https://www.nagwa.com/en/videos/964182829165/ | [
"# Video: Finding the Sum of an Infinite Number of Terms of a Geometric Sequence given the Values of Two Terms\n\nFind the sum of an infinite number of terms of a geometric sequence given the first term is 26/5 and the fourth term is −650/343.\n\n03:31\n\n### Video Transcript\n\nFind the sum of an infinite number of terms of a geometric sequence given the first term is 26 over five and the fourth term is negative 650 divided by 343.\n\nThe question gives us a geometric sequence with first term 26 over five and fourth term negative 650 divided by 343. We recall that geometric sequence has the property that, to get the next term in the sequence, we multiply the previous term by a constant ratio 𝑟. We see that this tells us our first term is just the constant 𝑎 and our fourth term is this constant 𝑎 multiplied by the ratio 𝑟 cubed.\n\nWe can use this to find the ratio 𝑟 of the geometric sequence given to us in the question. The first term is 26 over five. So we’ll set 𝑎 equal to 26 over five. And our fourth term is equal to negative 650 divided by 343. So this is equal to 𝑎 multiplied by 𝑟 cubed. We can substitute 𝑎 is equal to 26 over five into our equation for the fourth term. This gives us that negative 650 divided by 343 is equal to 26 over five multiplied by 𝑟 cubed.\n\nNow we’ll multiply both sides for our equation by five and divide by 26. This gives us that 𝑟 cubed is equal to negative 650 multiplied by five divided by 343 multiplied by 26. This simplifies to give us negative 125 divided by 343 is equal to 𝑟 cubed.\n\nFinally, we can take the cube roots of both sides of our equation to get that 𝑟 is equal to the cube root of negative 125 divided by 343, which is equal to negative five over seven.\n\nNow the question wants us to find the sum of an infinite number of terms of our geometric sequence. We recall that, for a geometric series with initial value 𝑎 and ratio of successive terms 𝑟, if the absolute value of 𝑟 is less than one. Then the sum from 𝑛 equals zero to ∞ of 𝑎 multiplied by 𝑟 to the 𝑛th power is equal to 𝑎 divided by one minus 𝑟.\n\nWe’ve already shown that the initial term of our geometric series 𝑎 is equal to 26 over five and the ratio of successive terms 𝑟 is equal to negative five over seven. And the absolute value of our ratio 𝑟 is the absolute value of negative five over seven, which is just equal to five over seven, which is less than one.\n\nSo since the absolute value of our ratio 𝑟 is less than one, we can calculate the sum of an infinite number of terms of our geometric series by using the formula 𝑎 divided by one minus 𝑟. Using this, we have the sum of an infinite number of terms of our geometric series is equal to the sum from 𝑛 equals zero to ∞ of 26 over five multiplied by negative five over seven all raised to the 𝑛th power. And this is equal to 26 over five divided by one minus negative five over seven.\n\nWe can rewrite our denominator as seven over seven plus five over seven, which is just equal to 12 divided by seven. Next, instead of dividing by the fraction 12 over seven, we’re going to multiply by the reciprocal. This gives us 26 over five multiplied by seven divided by 12. We can cancel out a shared factor of two in the numerator and the denominator. Finally, we can evaluate this to be equal to 91 divided by 30.\n\nTherefore, we’ve shown that the sum of an infinite number of terms of the geometric series with first term 26 over five and fourth term negative 650 divided by 343 is equal to 91 divided by 30."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.9323,"math_prob":0.9980881,"size":3221,"snap":"2020-34-2020-40","text_gpt3_token_len":836,"char_repetition_ratio":0.17656201,"word_repetition_ratio":0.19620253,"special_character_ratio":0.24029805,"punctuation_ratio":0.06442167,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9999809,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-20T08:44:29Z\",\"WARC-Record-ID\":\"<urn:uuid:20d3c8bd-4f2d-4ab4-a43f-d62220bb7a7f>\",\"Content-Length\":\"28964\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:cad67482-9038-47b8-999a-cfb8216c33db>\",\"WARC-Concurrent-To\":\"<urn:uuid:dfe690d9-92ad-4f69-b822-2809b00731cf>\",\"WARC-IP-Address\":\"23.23.60.1\",\"WARC-Target-URI\":\"https://www.nagwa.com/en/videos/964182829165/\",\"WARC-Payload-Digest\":\"sha1:AMTVQCINHTF5WJ2D7DEL7DE5EN4DXIOF\",\"WARC-Block-Digest\":\"sha1:TWMZYGZOSLFJBRDK2MN4RJVVYEAMGPCC\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400196999.30_warc_CC-MAIN-20200920062737-20200920092737-00276.warc.gz\"}"} |
https://apache-singa.readthedocs.io/en/master/module.html | [
"# Loss¶\n\nThis script includes Module class for python users to use Computational Graph in their model.\n\nclass singa.module.Module\n\nBases: object\n\nBase class for your neural network modules.\n\nExample usage:\n\nimport numpy as np\nfrom singa import opt\nfrom singa import tensor\nfrom singa import device\nfrom singa.module import Module\n\nclass Model(Module):\ndef __init__(self):\nsuper(Model, self).__init__()\n\nself.sgd = opt.SGD(lr=0.01)\n\ndef forward(self, x):\ny = self.conv1(x)\ny = self.conv2(y)\nreturn y\n\ndef loss(self, out, y):\n\ndef optim(self, loss):\nself.sgd.backward_and_update(loss)\n\neval()\n\nSets the module in evaluation mode.\n\nforward(*input)\n\nDefines the computation performed at every call.\n\nShould be overridden by all subclasses.\n\nParameters\n\n*input – the input training data for the module\n\nReturns\n\nthe outputs of the forward propagation.\n\nReturn type\n\nout\n\ngraph(mode=True, sequential=False)\n\nTurn on the computational graph. Specify execution mode.\n\nloss(*args, **kwargs)\n\nDefines the loss function performed when training the module.\n\non_device(device)\n\nSets the target device.\n\nThe following training will be performed on that device.\n\nParameters\n\ndevice (Device) – the target device\n\noptim(*args, **kwargs)\n\nDefines the optim function for backward pass.\n\ntrain(mode=True)\n\nSet the module in evaluation mode."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.53296864,"math_prob":0.752613,"size":1500,"snap":"2021-31-2021-39","text_gpt3_token_len":382,"char_repetition_ratio":0.12098931,"word_repetition_ratio":0.018779343,"special_character_ratio":0.252,"punctuation_ratio":0.18214285,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95560855,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-20T17:54:29Z\",\"WARC-Record-ID\":\"<urn:uuid:b19ff399-3c61-4a06-9cea-6b139b19882c>\",\"Content-Length\":\"22035\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d9f29636-77a0-4d56-9202-7edb23ce9cd6>\",\"WARC-Concurrent-To\":\"<urn:uuid:53159080-0427-46fe-952f-c4bccf38f4ce>\",\"WARC-IP-Address\":\"104.17.33.82\",\"WARC-Target-URI\":\"https://apache-singa.readthedocs.io/en/master/module.html\",\"WARC-Payload-Digest\":\"sha1:3AAWCNLZMGQGTGRXQ2SKNZJWT4423IGC\",\"WARC-Block-Digest\":\"sha1:VFDUCB3GEUM3GBR5RRNH6CEEJ7OXYUR3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780057083.64_warc_CC-MAIN-20210920161518-20210920191518-00336.warc.gz\"}"} |
https://www.colorhexa.com/013d24 | [
"# #013d24 Color Information\n\nIn a RGB color space, hex #013d24 is composed of 0.4% red, 23.9% green and 14.1% blue. Whereas in a CMYK color space, it is composed of 98.4% cyan, 0% magenta, 41% yellow and 76.1% black. It has a hue angle of 155 degrees, a saturation of 96.8% and a lightness of 12.2%. #013d24 color hex could be obtained by blending #027a48 with #000000. Closest websafe color is: #003333.\n\n• R 0\n• G 24\n• B 14\nRGB color chart\n• C 98\n• M 0\n• Y 41\n• K 76\nCMYK color chart\n\n#013d24 color description : Very dark cyan - lime green.\n\n# #013d24 Color Conversion\n\nThe hexadecimal color #013d24 has RGB values of R:1, G:61, B:36 and CMYK values of C:0.98, M:0, Y:0.41, K:0.76. Its decimal value is 81188.\n\nHex triplet RGB Decimal 013d24 `#013d24` 1, 61, 36 `rgb(1,61,36)` 0.4, 23.9, 14.1 `rgb(0.4%,23.9%,14.1%)` 98, 0, 41, 76 155°, 96.8, 12.2 `hsl(155,96.8%,12.2%)` 155°, 98.4, 23.9 003333 `#003333`\nCIE-LAB 21.84, -25.074, 10.492 2, 3.471, 2.234 0.26, 0.451, 3.471 21.84, 27.18, 157.294 21.84, -18.801, 12.992 18.631, -13.447, 5.934 00000001, 00111101, 00100100\n\n# Color Schemes with #013d24\n\n• #013d24\n``#013d24` `rgb(1,61,36)``\n• #3d011a\n``#3d011a` `rgb(61,1,26)``\nComplementary Color\n• #013d06\n``#013d06` `rgb(1,61,6)``\n• #013d24\n``#013d24` `rgb(1,61,36)``\n• #01383d\n``#01383d` `rgb(1,56,61)``\nAnalogous Color\n• #3d0601\n``#3d0601` `rgb(61,6,1)``\n• #013d24\n``#013d24` `rgb(1,61,36)``\n• #3d0138\n``#3d0138` `rgb(61,1,56)``\nSplit Complementary Color\n• #3d2401\n``#3d2401` `rgb(61,36,1)``\n• #013d24\n``#013d24` `rgb(1,61,36)``\n• #24013d\n``#24013d` `rgb(36,1,61)``\n• #1a3d01\n``#1a3d01` `rgb(26,61,1)``\n• #013d24\n``#013d24` `rgb(1,61,36)``\n• #24013d\n``#24013d` `rgb(36,1,61)``\n• #3d011a\n``#3d011a` `rgb(61,1,26)``\n• #000000\n``#000000` `rgb(0,0,0)``\n• #000b06\n``#000b06` `rgb(0,11,6)``\n• #012415\n``#012415` `rgb(1,36,21)``\n• #013d24\n``#013d24` `rgb(1,61,36)``\n• #015633\n``#015633` `rgb(1,86,51)``\n• #026f42\n``#026f42` `rgb(2,111,66)``\n• #028850\n``#028850` `rgb(2,136,80)``\nMonochromatic Color\n\n# Alternatives to #013d24\n\nBelow, you can see some colors close to #013d24. Having a set of related colors can be useful if you need an inspirational alternative to your original color choice.\n\n• #013d15\n``#013d15` `rgb(1,61,21)``\n• #013d1a\n``#013d1a` `rgb(1,61,26)``\n• #013d1f\n``#013d1f` `rgb(1,61,31)``\n• #013d24\n``#013d24` `rgb(1,61,36)``\n• #013d29\n``#013d29` `rgb(1,61,41)``\n• #013d2e\n``#013d2e` `rgb(1,61,46)``\n• #013d33\n``#013d33` `rgb(1,61,51)``\nSimilar Colors\n\n# #013d24 Preview\n\nThis text has a font color of #013d24.\n\n``<span style=\"color:#013d24;\">Text here</span>``\n#013d24 background color\n\nThis paragraph has a background color of #013d24.\n\n``<p style=\"background-color:#013d24;\">Content here</p>``\n#013d24 border color\n\nThis element has a border color of #013d24.\n\n``<div style=\"border:1px solid #013d24;\">Content here</div>``\nCSS codes\n``.text {color:#013d24;}``\n``.background {background-color:#013d24;}``\n``.border {border:1px solid #013d24;}``\n\n# Shades and Tints of #013d24\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, #000302 is the darkest color, while #effff8 is the lightest one.\n\n• #000302\n``#000302` `rgb(0,3,2)``\n• #00160d\n``#00160d` `rgb(0,22,13)``\n• #012a19\n``#012a19` `rgb(1,42,25)``\n• #013d24\n``#013d24` `rgb(1,61,36)``\n• #01502f\n``#01502f` `rgb(1,80,47)``\n• #02643b\n``#02643b` `rgb(2,100,59)``\n• #027746\n``#027746` `rgb(2,119,70)``\n• #028a52\n``#028a52` `rgb(2,138,82)``\n• #039d5d\n``#039d5d` `rgb(3,157,93)``\n• #03b168\n``#03b168` `rgb(3,177,104)``\n• #03c474\n``#03c474` `rgb(3,196,116)``\n• #04d77f\n``#04d77f` `rgb(4,215,127)``\n• #04eb8b\n``#04eb8b` `rgb(4,235,139)``\n• #07fb95\n``#07fb95` `rgb(7,251,149)``\n• #1bfb9e\n``#1bfb9e` `rgb(27,251,158)``\n• #2efca6\n``#2efca6` `rgb(46,252,166)``\n• #41fcae\n``#41fcae` `rgb(65,252,174)``\n• #54fcb6\n``#54fcb6` `rgb(84,252,182)``\n• #68fdbf\n``#68fdbf` `rgb(104,253,191)``\n• #7bfdc7\n``#7bfdc7` `rgb(123,253,199)``\n• #8efdcf\n``#8efdcf` `rgb(142,253,207)``\n• #a2fdd7\n``#a2fdd7` `rgb(162,253,215)``\n• #b5fedf\n``#b5fedf` `rgb(181,254,223)``\n• #c8fee8\n``#c8fee8` `rgb(200,254,232)``\n• #dcfef0\n``#dcfef0` `rgb(220,254,240)``\n• #effff8\n``#effff8` `rgb(239,255,248)``\nTint Color Variation\n\n# Tones of #013d24\n\nA tone is produced by adding gray to any pure hue. In this case, #1e201f is the less saturated color, while #013d24 is the most saturated one.\n\n• #1e201f\n``#1e201f` `rgb(30,32,31)``\n• #1b2320\n``#1b2320` `rgb(27,35,32)``\n• #192520\n``#192520` `rgb(25,37,32)``\n• #162820\n``#162820` `rgb(22,40,32)``\n• #142a21\n``#142a21` `rgb(20,42,33)``\n• #122c21\n``#122c21` `rgb(18,44,33)``\n• #0f2f22\n``#0f2f22` `rgb(15,47,34)``\n• #0d3122\n``#0d3122` `rgb(13,49,34)``\n• #0b3322\n``#0b3322` `rgb(11,51,34)``\n• #083623\n``#083623` `rgb(8,54,35)``\n• #063823\n``#063823` `rgb(6,56,35)``\n• #033b24\n``#033b24` `rgb(3,59,36)``\n• #013d24\n``#013d24` `rgb(1,61,36)``\nTone Color Variation\n\n# Color Blindness Simulator\n\nBelow, you can see how #013d24 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.54608417,"math_prob":0.80993956,"size":3648,"snap":"2023-40-2023-50","text_gpt3_token_len":1632,"char_repetition_ratio":0.13007684,"word_repetition_ratio":0.007352941,"special_character_ratio":0.56085527,"punctuation_ratio":0.23378076,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9905304,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-09T17:58:59Z\",\"WARC-Record-ID\":\"<urn:uuid:aa080402-0e8c-4e60-afea-1ec6e425aa8a>\",\"Content-Length\":\"36106\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d3bf1083-fde1-40fe-967e-100b0c7a0329>\",\"WARC-Concurrent-To\":\"<urn:uuid:f75efa29-de94-4972-a689-64bd06e76cc4>\",\"WARC-IP-Address\":\"178.32.117.56\",\"WARC-Target-URI\":\"https://www.colorhexa.com/013d24\",\"WARC-Payload-Digest\":\"sha1:Z4IANO4725M5JA4IKO6B54ZZ4AAJ6HDC\",\"WARC-Block-Digest\":\"sha1:ZC3QX4ZTXFFWK3VXZBTEVBDJJRVJGDAG\",\"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-00554.warc.gz\"}"} |
https://www.tes.com/teaching-resources/shop/elysiaallen | [
"# Physics Mumma\n\nAverage Rating4.67\n(based on 7 reviews)\n\n11-16 physics teacher interested in teaching physics without resorting to equations. 'Worded questions sheets' ask students to answer using physics before introducing the equations. Please review\n\n40Uploads\n\n3k+Views\n\n2k+Downloads\n\n11-16 physics teacher interested in teaching physics without resorting to equations. 'Worded questions sheets' ask students to answer using physics before introducing the equations. Please review\n\n#### Gravitational potential energy questions\n\n(2)\nQuestions about GPE where students are asked to first give their answer in words before calculations. I have found this challenges students who rely on the maths content and supports students who struggle with the maths. Inspired by other SLOP sheets but with a twist. **See also my kinetic energy, work done and thermal energy worded questions **\n\n#### Scaffolded heat transfer\n\n(0)\nHighly differentiated sheets for conduction, convection and radiation. I taught it without much else, you would convert the sheets into ppt slides to accompany. The practical for radiation is three thermometer, one coated in black paper, one silver and one uncovered. Shine a high power bulb at them and see the difference in temperature.\n\n#### Specific heat capacity worksheet\n\n(0)\nA SHC worksheet where students are asked to give their answers in words rather before calculating This works well by supporting students who struggle with maths content but also challenging students who may rely on maths content\n\n#### Work done worded questions\n\n(0)\nSLOP style worksheet but students must answer using words not equations. the equations are introduced at the end only when students have a good understanding of the physics. This challenges the top students and support the lowest\n\n#### Kinetic energy worksheet\n\n(1)\nKinetic energy worksheet where students are asked to give their answers in words before calculations. This works really well by challenging students who rely on the maths and supporting students who struggle with the maths"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.87147784,"math_prob":0.7723212,"size":437,"snap":"2021-04-2021-17","text_gpt3_token_len":87,"char_repetition_ratio":0.16397229,"word_repetition_ratio":0.8301887,"special_character_ratio":0.18306637,"punctuation_ratio":0.06153846,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96756035,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-04-14T09:05:43Z\",\"WARC-Record-ID\":\"<urn:uuid:837c3746-0847-4237-9224-0c1210bbc556>\",\"Content-Length\":\"114866\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:0e0c3e21-928e-4b76-9134-26f2b13cce28>\",\"WARC-Concurrent-To\":\"<urn:uuid:60a47424-42b9-4991-ba81-2b78772d3ea4>\",\"WARC-IP-Address\":\"151.101.248.228\",\"WARC-Target-URI\":\"https://www.tes.com/teaching-resources/shop/elysiaallen\",\"WARC-Payload-Digest\":\"sha1:WV4KJF36SIADNAGJK7UF3S5VVYBNVQ73\",\"WARC-Block-Digest\":\"sha1:BWUAQ3XGBWOYKYC4EUHK3VGCOMBIORMJ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-17/CC-MAIN-2021-17_segments_1618038077336.28_warc_CC-MAIN-20210414064832-20210414094832-00225.warc.gz\"}"} |
https://vivian.worldvista.org/dox/Routine_IBCRBH1_source.html | [
"Home Package List Routine Alphabetical List Global Alphabetical List FileMan Files List FileMan Sub-Files List Package Component Lists Package-Namespace Mapping\nRoutine: IBCRBH1\n\n# IBCRBH1.m\n\nGo to the documentation of this file.\n```IBCRBH1 ;ALB/ARH - RATES: BILL HELP DISPLAYS - CHARGES ; 10-OCT-1998\n```\n``` ;;2.0;INTEGRATED BILLING;**106,245,370**;21-MAR-94;Build 5\n```\n``` ;;Per VHA Directive 2004-038, this routine should not be modified.\n```\n``` ;\n```\n```DISPCHG(IBIFN) ; display a bills items and their charges, display only, does not change the charges on the bill\n```\n``` ;\n```\n``` D BILL(IBIFN,1),SORTCI(IBIFN),DSPCHRG(1) ; display auto add charges\n```\n``` K ^TMP(\\$J,\"IBCRCC\"),^TMP(\\$J,\"IBCRCSX\"),^TMP(\\$J,\"IBCRCSXR\"),^TMP(\\$J,\"IBCRCSXN\")\n```\n``` D BILL(IBIFN,\"\"),SORTCI(IBIFN),DSPCHRG(\"\") ; display non-auto add charges\n```\n``` K ^TMP(\\$J,\"IBCRCC\"),^TMP(\\$J,\"IBCRCSX\"),^TMP(\\$J,\"IBCRCSXR\"),^TMP(\\$J,\"IBCRCSXN\")\n```\n``` D NOTES(IBIFN,1)\n```\n``` Q\n```\n``` ;\n```\n```BILL(IBIFN,IBAA,IBRSARR) ; given a bill number calculate charges using schedules that match the auto add flag\n```\n``` ; if IBRSARR is defined it will be used to create charges rather than the standard set for the bills Rate Type\n```\n``` ; Output: ^TMP(\\$J,\"IBCRCC\" - same as would be calculated if the charges were being added to bill\n```\n``` ;\n```\n``` N IB0,IBU,IBBRT,IBBTYPE,IBCTYPE,IBRS,IBCS,IBBEVNT Q:'\\$G(IBIFN)\n```\n``` K ^TMP(\\$J,\"IBCRCC\")\n```\n``` ;\n```\n``` S IB0=\\$G(^DGCR(399,+IBIFN,0)) Q:IB0=\"\" S IBU=\\$G(^DGCR(399,+IBIFN,\"U\")) Q:'IBU\n```\n``` S IBBRT=+\\$P(IB0,U,7),IBBTYPE=\\$S(\\$P(IB0,U,5)<3:1,1:3),IBCTYPE=+\\$P(IB0,U,27)\n```\n``` ;\n```\n``` ; get standard set of all rate schedules and charge sets available for the bill\n```\n``` I '\\$D(IBRSARR) D RT^IBCRU3(IBBRT,IBBTYPE,\\$P(IBU,U,1,2),.IBRSARR,\"\",IBCTYPE) I 'IBRSARR G END\n```\n``` ;\n```\n``` ; process charge sets - set all charges for the bill into array\n```\n``` S IBRS=0 F S IBRS=\\$O(IBRSARR(IBRS)) Q:'IBRS D\n```\n``` . S IBCS=0 F S IBCS=\\$O(IBRSARR(IBRS,IBCS)) Q:'IBCS I IBRSARR(IBRS,IBCS)=IBAA D\n```\n``` .. S IBBEVNT=+\\$P(\\$G(^IBE(363.1,+IBCS,0)),U,3) Q:'IBBEVNT S IBBEVNT=\\$\\$EMUTL^IBCRU1(IBBEVNT) Q:IBBEVNT=\"\"\n```\n``` .. ;\n```\n``` .. I IBBEVNT[\"INPATIENT BEDSECTION STAY\" D INPTBS^IBCRBC1(IBIFN,IBRS,IBCS)\n```\n``` .. I IBBEVNT[\"INPATIENT DRG\" D INPTDRG^IBCRBC11(IBIFN,IBRS,IBCS)\n```\n``` .. I IBBEVNT[\"OUTPATIENT VISIT DATE\" D OPTVST^IBCRBC1(IBIFN,IBRS,IBCS)\n```\n``` .. I IBBEVNT[\"PRESCRIPTION\" D RX^IBCRBC1(IBIFN,IBRS,IBCS)\n```\n``` .. I IBBEVNT[\"PROSTHETICS\" D PI^IBCRBC1(IBIFN,IBRS,IBCS)\n```\n``` .. I IBBEVNT[\"PROCEDURE\" D CPT^IBCRBC1(IBIFN,IBRS,IBCS)\n```\n``` ;\n```\n```END Q\n```\n``` ;\n```\n``` ;\n```\n```SORTCI(IBIFN) ; process charge array - create new array in sorted order with items combined, if possible\n```\n``` ; if bs, rv cd, charge, cpt, div, item type, item ptr and component all match then charge is combined\n```\n``` ; Input: TMP(\\$J,\"IBCRCC\",X) = ... (from IBCRBC2)\n```\n``` ; Output: TMP(\\$J,\"IBCRCSX\",X) =\n```\n``` ; RV CD ^ BS ^ CHG ^ UNITS ^ CPT ^ DIV ^ ITM TYPE ^ ITM PTR ^ CHRG CMPNT ^ CHRG SET ^ EVNT DT ^ ITM NAME\n```\n``` ; TMP(\\$J,\"IBCRCSX\",X,\"CC\",Y) = charge adjustment messages\n```\n``` ; TMP(\\$J,\"IBCRCSXR\",BS,RV CD,X) = \"\"\n```\n``` ; TMP(\\$J,\"IBCRCSXN\",DATE,ITEM NAME,X) = \"\"\n```\n``` ;\n```\n``` N IBI,IBLN,IBRVCD,IBBS,IBCHG,IBUNITS,IBCPT,IBDV,IBIT,IBIP,IBCMPT,IBCS,IBDT,IBNM,IBTUNITS,IBK,IBJ,IBX,IBY\n```\n``` K ^TMP(\\$J,\"IBCRCSX\"),^TMP(\\$J,\"IBCRCSXR\"),^TMP(\\$J,\"IBCRCSXN\")\n```\n``` ;\n```\n``` S IBI=0 F S IBI=\\$O(^TMP(\\$J,\"IBCRCC\",IBI)) Q:'IBI D\n```\n``` . ;\n```\n``` . S IBLN=^TMP(\\$J,\"IBCRCC\",IBI)\n```\n``` . S IBRVCD=\\$P(IBLN,U,6),IBBS=\\$P(IBLN,U,7),IBCHG=+\\$FN(\\$P(IBLN,U,12),\"\",2),IBUNITS=\\$P(IBLN,U,13)\n```\n``` . S IBCPT=\\$P(IBLN,U,14),IBDV=\\$P(IBLN,U,15),IBIT=\\$P(IBLN,U,16),IBIP=\\$P(IBLN,U,17),IBCMPT=\\$P(IBLN,U,18)\n```\n``` . S IBCS=\\$P(IBLN,U,2),IBDT=\\$P(IBLN,U,8),IBNM=\\$\\$ITMNM(\\$G(IBIFN),IBBS,IBIT,IBIP,IBCPT)\n```\n``` . ;\n```\n``` . ; combine like charges, unless there are comments\n```\n``` . S (IBTUNITS,IBK,IBJ)=0 F S IBJ=\\$O(^TMP(\\$J,\"IBCRCSXR\",+IBBS,+IBRVCD,IBJ)) Q:'IBJ S IBK=IBJ D Q:+IBTUNITS\n```\n``` .. I \\$D(^TMP(\\$J,\"IBCRCC\",IBI,\"CC\")) Q\n```\n``` .. S IBX=\\$G(^TMP(\\$J,\"IBCRCSX\",IBJ))\n```\n``` .. I IBCHG=\\$P(IBX,U,3),IBCPT=\\$P(IBX,U,5),IBDV=\\$P(IBX,U,6),IBIT=\\$P(IBX,U,7),IBIP=\\$P(IBX,U,8),IBCMPT=\\$P(IBX,U,9) D\n```\n``` ... S IBTUNITS=\\$P(IBX,U,4),IBDT=\\$P(IBX,U,11)\n```\n``` . ;\n```\n``` . I 'IBTUNITS S IBK=IBI ; no combination, new line item charge\n```\n``` . S IBTUNITS=IBTUNITS+IBUNITS\n```\n``` . ;\n```\n``` . S ^TMP(\\$J,\"IBCRCSXR\",+IBBS,+IBRVCD,IBK)=\"\"\n```\n``` . S ^TMP(\\$J,\"IBCRCSXN\",IBDT_\" \",IBNM_\" \",IBK)=\"\"\n```\n``` . S ^TMP(\\$J,\"IBCRCSX\",IBK)=IBRVCD_U_+IBBS_U_IBCHG_U_IBTUNITS_U_IBCPT_U_IBDV_U_IBIT_U_IBIP_U_IBCMPT_U_IBCS_U_IBDT_U_IBNM\n```\n``` . S IBY=0 F S IBY=\\$O(^TMP(\\$J,\"IBCRCC\",IBI,\"CC\",IBY)) Q:'IBY S ^TMP(\\$J,\"IBCRCSX\",IBK,\"CC\",IBY)=^TMP(\\$J,\"IBCRCC\",IBI,\"CC\",IBY)\n```\n``` Q\n```\n``` ;\n```\n```DSPCHRG(AA) ; display charges\n```\n``` ; Input: TMP(\\$J,\"IBCRCSx\",...) = ... (from SORTCI)\n```\n``` ;\n```\n``` N IBX,IBI,IBJ,IBK,IBLN,IBCNT,IBRVCD,IBCHG,IBUNITS,IBDV,IBCMPT,IBCS,IBDT,IBNM,IBTOTAL,IBQUIT,IBY S (IBTOTAL,IBQUIT)=0\n```\n``` ;\n```\n``` D DSPHDR(AA) S IBCNT=4\n```\n``` ;\n```\n``` S IBI=\"\" F S IBI=\\$O(^TMP(\\$J,\"IBCRCSXN\",IBI)) Q:IBI=\"\" D Q:IBQUIT\n```\n``` . S IBJ=\"\" F S IBJ=\\$O(^TMP(\\$J,\"IBCRCSXN\",IBI,IBJ)) Q:IBJ=\"\" D Q:IBQUIT\n```\n``` .. S IBK=0 F S IBK=\\$O(^TMP(\\$J,\"IBCRCSXN\",IBI,IBJ,IBK)) Q:'IBK D Q:IBQUIT\n```\n``` ... S IBLN=\\$G(^TMP(\\$J,\"IBCRCSX\",IBK)) Q:IBLN=\"\"\n```\n``` ... ;\n```\n``` ... ; add charges to RC multiple\n```\n``` ... S IBRVCD=\\$P(IBLN,U,1),IBCHG=\\$P(IBLN,U,3),IBUNITS=\\$P(IBLN,U,4),IBDV=\\$P(IBLN,U,6)\n```\n``` ... S IBCMPT=\\$P(IBLN,U,9),IBCS=\\$P(IBLN,U,10),IBDT=\\$P(IBLN,U,11),IBNM=\\$P(IBLN,U,12)\n```\n``` ... S IBTOTAL=IBTOTAL+(IBCHG*IBUNITS),IBCNT=IBCNT+1\n```\n``` ... ;\n```\n``` ... S IBX=IBRVCD_U_IBCHG_U_IBUNITS_U_IBCMPT_U_IBCS_U_IBDT_U_IBDV_U_IBNM D DSPLN(IBX)\n```\n``` ... ;\n```\n``` ... S IBY=0 F S IBY=\\$O(^TMP(\\$J,\"IBCRCSX\",IBK,\"CC\",IBY)) Q:'IBY D\n```\n``` .... S IBX=\\$G(^TMP(\\$J,\"IBCRCSX\",IBK,\"CC\",IBY)) I IBX'=\"\" D DISPLNC(IBX) S IBCNT=IBCNT+1\n```\n``` ... I \\$O(^TMP(\\$J,\"IBCRCSX\",IBK,\"CC\",0)) D DISPLNC(\"\") S IBCNT=IBCNT+1\n```\n``` ... ;\n```\n``` ... I IBCNT>20 S IBQUIT=\\$\\$PAUSE(IBCNT) Q:IBQUIT D DSPHDR(AA) S IBCNT=4\n```\n``` ;\n```\n``` I +IBTOTAL W !,?72,\"--------\",!,?70,\\$J(IBTOTAL,10,2) S IBCNT=IBCNT+2\n```\n``` I 'IBQUIT S IBQUIT=\\$\\$PAUSE(IBCNT)\n```\n``` Q\n```\n``` ;\n```\n```DSPHDR(AA) ;\n```\n``` W @IOF,!,\"Items and Charges on this Bill (\"_\\$S('AA:\"NOT \",1:\"\")_\"Auto Add)\"\n```\n``` W !,\"Item\",?18,\"Date\",?28,\"Charge Set\",?40,\"Div\",?47,\"Type\",?52,\"RvCd\",?57,\"Units\",?64,\"Charge\",?75,\"Total\"\n```\n``` W !,\"--------------------------------------------------------------------------------\"\n```\n``` Q\n```\n``` ;\n```\n```DSPLN(LN) ;\n```\n``` N CS,DIV,CMP,RVCD,ITM,CHG,UNIT S LN=\\$G(LN)\n```\n``` S CS=\\$P(LN,U,5) I +CS S CS=\\$P(\\$G(^IBE(363.1,+\\$P(LN,U,5),0)),U,1)\n```\n``` S DIV=\\$P(\\$G(^DG(40.8,+\\$P(LN,U,7),0)),U,2)\n```\n``` S CMP=\\$S(\\$P(LN,U,4)=1:\"INST\",\\$P(LN,U,4)=2:\"PROF\",1:\"\")\n```\n``` S RVCD=\\$P(\\$G(^DGCR(399.2,+LN,0)),U,1)\n```\n``` S ITM=\\$P(LN,U,8),CHG=+\\$P(LN,U,2),UNIT=\\$P(LN,U,3)\n```\n``` W !,\\$E(ITM,1,15),?18,\\$\\$DATE(\\$P(LN,U,6)),?28,\\$E(CS,1,7),?40,DIV,?47,CMP,?52,RVCD,?57,\\$J(UNIT,3),?62,\\$J(CHG,8,2),?71,\\$J((UNIT*CHG),9,2)\n```\n``` Q\n```\n``` ;\n```\n```DISPLNC(LN) ; display charge adjustment commenmts\n```\n``` W !,?18,\\$G(LN)\n```\n``` Q\n```\n``` ;\n```\n```DATE(X) ;\n```\n``` S X=\\$G(X),X=\\$E(X,4,5)_\"/\"_\\$E(X,6,7)_\"/\"_\\$E(X,2,3)\n```\n``` Q X\n```\n``` ;\n```\n```PAUSE(CNT) ;\n```\n``` N IBI F IBI=CNT:1:22 W !\n```\n``` N DIR,DUOUT,DTOUT,DIRUT,IBX,X,Y S IBX=0,DIR(0)=\"E\" D ^DIR K DIR I \\$D(DIRUT) S IBX=1\n```\n``` Q IBX\n```\n``` ;\n```\n```ITMNM(IBIFN,IBBS,IBIT,IBIP,IBCPT) ; return external form of the item name\n```\n``` N ITM S ITM=\"\",IBBS=\\$G(IBBS),IBIT=\\$G(IBIT),IBIP=\\$G(IBIP),IBCPT=\\$G(IBCPT)\n```\n``` I +IBIP S ITM=\\$\\$NAME^IBCSC61(IBIT,IBIP)\n```\n``` I ITM=\"\",+IBIT=4,+\\$G(IBIFN) S ITM=\\$\\$CPTNM(IBIFN,IBIT,IBIP)\n```\n``` I ITM=\"\",+IBCPT S ITM=\\$P(\\$\\$CPT^ICPTCOD(+IBCPT,DT),U,2)\n```\n``` I ITM=\"\" S ITM=\\$\\$EMUTL^IBCRU1(IBBS)\n```\n``` Q ITM\n```\n``` ;\n```\n```CPTNM(IBIFN,TYPE,ITEM) ; retrurn external name of the charge item if it is a CPT item (type=399,42,.1)\n```\n``` N IBX,NAME S IBX=0,NAME=\"\"\n```\n``` I +\\$G(TYPE)=4 S IBX=\\$G(^DGCR(399,+\\$G(IBIFN),\"CP\",+\\$G(ITEM),0))\n```\n``` I +IBX S NAME=\\$P(\\$\\$CPT^ICPTCOD(+\\$P(IBX,U,1),DT),U,2)\n```\n``` I +IBX S IBX=\\$\\$GETMOD^IBEFUNC(+\\$G(IBIFN),+\\$G(ITEM),1) I IBX'=\"\" S NAME=NAME_\"-\"_IBX\n```\n``` Q NAME\n```\n``` ;\n```\n``` ;\n```\n``` ;\n```\n``` ;\n```\n``` ;\n```\n``` ; Current Checks are for those Treating Specialties that should not be billed using DRG:\n```\n``` ; - Inpatient Institutional Reasonable Charges bill contains SNF Treating Specialty\n```\n``` ; - Inpatient Institutional Reasonable Charges bill contains Observation Treating Specialty\n```\n``` ;\n```\n``` I \\$D(ZTQUEUED)!(+\\$G(IBAUTO)) Q\n```\n``` N IB0,IBU,PTF,BEG,END,IBMVLN,IBENDDT,IBMDRG,IBFND,IBMSG,IBX S IBFND=0 K ^TMP(\\$J,\"IBCRC-PTF\")\n```\n``` S IB0=\\$G(^DGCR(399,+\\$G(IBIFN),0)) Q:IB0=\"\" S IBU=\\$G(^DGCR(399,+\\$G(IBIFN),\"U\")) Q:'IBU\n```\n``` ;\n```\n``` I '\\$\\$BILLRATE^IBCRU3(\\$P(IB0,U,7),\\$P(IB0,U,5),\\$P(IB0,U,3),\"RC\") Q ; not Reasonable Charges bill\n```\n``` ;\n```\n``` ; Outpatient Freestanding bill: display message if this is a non-provider based freestanding bill\n```\n``` I \\$P(IB0,U,5)=3,\\$P(IB0,U,3)'<\\$\\$VERSDT^IBCRU8(2),\\$P(\\$\\$RCDV^IBCRU8(+\\$P(IB0,U,22)),U,3)=3 D\n```\n``` . S IBFND=IBFND+1,IBX=\">>> Bill Division is Freestanding Non-Provider with Professional Charges only.\",IBMSG(IBFND)=IBX\n```\n``` ;\n```\n``` ; Inpatient Institutional bill: check for treating specialties that should not be billed by DRG\n```\n``` I +\\$P(IB0,U,8),\\$P(IB0,U,5)<3,\\$P(IB0,U,27)<2 D\n```\n``` . ;\n```\n``` . S PTF=+\\$P(IB0,U,8),BEG=+\\$P(IBU,U,1)\\1,END=\\$S(+\\$P(IBU,U,2):+\\$P(IBU,U,2)\\1,1:DT)\n```\n``` . ;\n```\n``` . D PTF^IBCRBG(PTF)\n```\n``` . ;\n```\n``` . S IBENDDT=BEG F S IBENDDT=\\$O(^TMP(\\$J,\"IBCRC-PTF\",IBENDDT)) Q:'IBENDDT D I IBENDDT>END Q\n```\n``` .. I (IBENDDT\\1)=BEG,BEG'=END Q\n```\n``` .. ;\n```\n``` .. S IBMVLN=\\$G(^TMP(\\$J,\"IBCRC-PTF\",IBENDDT)),IBMVLN=+\\$P(IBMVLN,U,6) Q:'IBMVLN\n```\n``` .. S IBMDRG=\\$\\$NODRG^IBCRBG2(IBMVLN) Q:'IBMDRG\n```\n``` .. ;\n```\n``` .. S IBFND=IBFND+1,IBX=\">>> \"_\\$P(IBMDRG,U,2)_\" (\"_\\$\\$FMTE^XLFDT(IBENDDT,2)_\") not billed using DRG\"\n```\n``` .. S:IBMDRG[\"Nursing\" IBX=IBX_\", use SNF.\" S:IBMDRG[\"Observa\" IBX=IBX_\", use Procedures.\"\n```\n``` .. S IBMSG(IBFND)=\\$G(IBX)\n```\n``` ;\n```\n``` I +IBFND D I +\\$G(PAUSE) S IBFND=\\$\\$PAUSE(21)\n```\n``` . W ! S IBX=\"\" F S IBX=\\$O(IBMSG(IBX)) Q:IBX=\"\" W !,IBMSG(IBX)\n```\n``` K ^TMP(\\$J,\"IBCRC-PTF\")\n```\n``` Q\n```"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.50127864,"math_prob":0.9920111,"size":19721,"snap":"2023-40-2023-50","text_gpt3_token_len":8890,"char_repetition_ratio":0.16797687,"word_repetition_ratio":0.23593466,"special_character_ratio":0.38486892,"punctuation_ratio":0.27664053,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9987356,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-23T15:09:56Z\",\"WARC-Record-ID\":\"<urn:uuid:ce5a7b6f-a255-4823-ab6b-15b2237a96ae>\",\"Content-Length\":\"102966\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7cf0a8f7-e0fa-4f52-b29b-cca7d7abb04e>\",\"WARC-Concurrent-To\":\"<urn:uuid:c27a1c4f-629f-480d-9955-fba02e9b9e0f>\",\"WARC-IP-Address\":\"156.96.113.49\",\"WARC-Target-URI\":\"https://vivian.worldvista.org/dox/Routine_IBCRBH1_source.html\",\"WARC-Payload-Digest\":\"sha1:J2LIDGCUY6TYXCFLNPO43VV3MXITGDYM\",\"WARC-Block-Digest\":\"sha1:6PDFH6BHJGXXIUIV3UILPWLQQDSWBRQN\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233506481.17_warc_CC-MAIN-20230923130827-20230923160827-00370.warc.gz\"}"} |
https://news.thomasnet.com/fullstory/turning-point-analysis-with-datataker-data-loggers-621863/ | [
"# Turning Point Analysis with dataTaker Data Loggers\n\nFlexible dataTaker Systems Let You Monitor Almost Any Value\n\nCHESTERLAND OH - Turning Point Analysis is a method of data compression for arbitrary waveforms. The incoming waveform is sampled at speed and analyzed in real time to identify the turning points (Maxima and Minima) of the waveform, and the value and time of the turning point are also logged to memory for later recovery. The Applications Specialists at CAS DataLoggers have put together this tutorial to examine this subject in detail, including a simple method of noise rejection (dead banding) for dataTaker DT800 and DT500 data loggers.\n\nApplications:\n\nTurning Point Analysis can be used in a large number of applications where a waveform needs to be monitored. Typical examples include but are not limited to:\n\n· Cyclic fatigue monitoring of structures\n\n· Wave height monitoring of coastal structures / shore erosion\n\n· Tank level monitoring\n\n· Air condition monitoring\n\n· Pressure fluctuations in pipes\n\n· Temperature controller monitoring\n\nAlgorithm:\n\nThe incoming waveform is sampled and the current data point (n) is compared with the\nprevious data point (n-1). If the difference between the two samples is positive, then the signal is rising (a=1), and if negative, then the signal is falling (a=-1).\n\nBy comparing the difference of a-1 to a when the signal is rising or falling, a-1 - a = 0. At the next reading after a maxima turning point, the difference of a-1 - a = 2 and for a minima a-1 - 2 = -2, thus not only giving a clear indication of n-1 being a turning point but also indicating if a maxima or minima. This technique can also be applied to drawing an envelope around a waveform.\n\nIf n > n-1 then a = 1 (Indicates a rising signal)\n\nIf n < n-1 then a = -1 (Indicates a falling signal)\n\nIf (a-1)-a < 0 > then n-1 is a valid turning point\n\nIn the dataTaker data logger code, this is represented by the command lines:\n\n1CV(DF,=5CV,W)\n\n6CV(DF,=6CV,W)=-1x(5CV<0)+(5CV>0)\n\nThe amount of data compression is the ratio of the twice the signal frequency to the sample rate. I.e. for a 2 Hz signal and 200 Hz sample rate, the compression ratio is 200 / (2x2) = 50:1. This has a great impact on storage capacity, data efficiency and maximum sampling duration.\n\nNoise Rejection:\n\nThe turning point algorithm is very sensitive and is quite capable of extracting white noise on a system as actual turning points. This is particularly noticeable when there is a very low frequency or static signal.\n\nTo reduce the extraction of noise as turning points, a dead band is applied around the last valid turning point. If a turning point is detected that has a value inside the range of the last valid turning point +/- the noise rejection level, then that point is rejected. If the value is outside the range, then the data point is considered to be valid and is recorded.\n\nWhile this noise rejection method is simple and effective in most cases, it does\noccasionally pick up interim points as turning points. These interim points can be easily identified and removed in post-processing. Other noise rejection routines will be evaluated and may be included at a later stage.\n\nDT800 Code:\n\nBEGIN\"TP\"\n\n· Turning Point Analysis Routine for DT800\n\n· This code logs the turning points of any waveform.\n\n· The time of turning is recorded logged in 4CV.\n\n· Notes: 4CV holds the time since midnight in seconds,\n\n· this limits the time accuracy to 2 decimal places.\n\nKnown Issues:\n\n· The noise reduction is primitive and in some instances\n\n· will record false turning points.\n\n· These only happens on occasion and these points can\nbe removed by post processing.\n\n7CV(W)=10 '7CV hold the dead band for noise rejection\n\n· Any turning points less that the current turning point +/- 7CV will be rejected.\n\n8..9CV(W)=0\n\n· Minimum noise level and Maximum noise level respectively.\n\n10CV(W)=0\n\n· Holds last turning point. Used for noise rejection.\n\n· Schedule A is where the turning points are actually logged.\n\n· Note: The X schedule must be before the fast schedule.\n\nRAX LOGONA\n\n2CV(\"TP ~mV\",FF7)\n\n4CV(\"Time ~Sec\",FF7)\n\n· Schedule B detects the turning point\n\nRB,FAST\n\n4CV(W)=3CV Shift register for time\n\n1V(=1CV,GL20V,W) Read Current value (Note: Gain lock to suit)\n\n· This Boolean in the next bit of code returns 1 if the current reading is greater than\nthe last (Rising 'signal) and returns -1 if the current reading is less than the last\n(Falling signal)\n\n· By taking the difference (DF) 6CV holds 2 for a maxima turning point or -2 for a minima turning point.\n\n6CV(DF,=6CV,W)=-1x(5CV<0)+(5CV>0)\n\n· Calculate Lower noise tolerance.\n\n8CV(W)=10CV-7CV\n\n· Calculate Upper noise tolerance.\n\n9CV(W)=10CV+7CV\n\n· Then check for turning point and noise then save turning point if valid.\n\nIF(6CV<>-0.5,0.5)AND If a turning point AND\n\nIF(1CV<>8CV,9CV){[10CV=2CV XA]} If the current signal is outside the noise dead band THEN\n\nRecord new turning point and Log turning point data\n\nEND\n\nTN-0015-A0 Page 5 of 6 19 February 2004\n\nDT500 Code:\n\nBEGIN\n\n· Turning Point Analysis Routine for DT500\n\n· This code logs the turning points of any waveform.\n\n· The time of turning is recorded logged in 4CV.\n\n· Notes: 4CV holds the time since midnight in seconds,\n\n· this limits the time accuracy to 2 decimal places.\n\nKnown Issues:\n\n· The noise reduction is primitive and in some instances will record false turning points.\n\n· These only happens on occasion and these points can be removed by post processing.\n\n7CV(W)=10 7CV hold the dead band for noise rejection\n\n· Any turning points less that the current turning point +/- 7CV will be rejected.\n\n8..9CV(W)=0 Minimum noise level and Maximum noise level respectively.\n\n10CV(W)=0 Holds last turning point. Used for noise rejection.\n\n· Schedule A detects the turning point\n\nRA\n\n4CV(W)=3CV Shift register for time\n\n1V(=1CV,GL20V,W) Read Current value (Note: Gain lock to suit)\n\n· This Boolean in the next bit of code returns 1 if the current reading is greater than the last\n\n· (Rising signal) and returns -1 if the current reading is less than the last (Falling signal)\n\n· By taking the difference (DF) 6CV holds 2 for a maxima turning point or -2 for a minima turning point.\n6CV(DF,=6CV,W)=-1x(5CV<0)+(5CV>0)\n\n· Calculate Lower noise tolerance.\n\n8CV(W)=10CV-7CV\n\n· Calculate Upper noise tolerance.\n\n9CV(W)=10CV+7CV\n\n· Record turning point data\n\nRX LOGONX\n\n2CV(\"TP\",FF5)\n\n4CV(\"Time\",FF5)\n\nRZ\n\n· Then check for turning point and noise then save turning point if valid.\n\nALARM1(6CV<>-0.5,0.5)AND If a turning point AND\nALARM2(1CV<>8CV,9CV)\"[10CV=2CV X]\" If the current signal is outside the noise dead\n\n· band THEN Record new turning point and Log\n\n· turning point data\n\nEND\n\nFor more information on the new Series 3 dataTaker dataloggers which measure nearly any physical value, or to find the ideal solution for your application-specific needs, contact a CAS Data Logger Applications Specialist at (800) 956-4437 or visit the website at www.DataLoggerInc.com.\n\nContact Information:\n\nCAS DataLoggers, Inc.\n\nChesterland, Ohio 44026\n\n(440) 729-2570\n\n(800) 956-4437\n\[email protected]\n\nwww.dataloggerinc.com"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.80897814,"math_prob":0.96154827,"size":7284,"snap":"2023-14-2023-23","text_gpt3_token_len":1868,"char_repetition_ratio":0.15453297,"word_repetition_ratio":0.3469558,"special_character_ratio":0.25480506,"punctuation_ratio":0.09168444,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9821484,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-06-04T13:13:20Z\",\"WARC-Record-ID\":\"<urn:uuid:f5f4b11a-7ff4-4890-a2f5-69482da55ad0>\",\"Content-Length\":\"168302\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:50720bcf-f75a-4fb4-a17e-660cf29d89a1>\",\"WARC-Concurrent-To\":\"<urn:uuid:e353426a-13bf-41c0-bbf7-72a9e5e06fcb>\",\"WARC-IP-Address\":\"34.225.62.240\",\"WARC-Target-URI\":\"https://news.thomasnet.com/fullstory/turning-point-analysis-with-datataker-data-loggers-621863/\",\"WARC-Payload-Digest\":\"sha1:RFAREK2AKJT57TOZR3B7IFS63HUHPLAP\",\"WARC-Block-Digest\":\"sha1:KTMINQMRDRYDBQCFV4RTDTD53SZPCTND\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224649986.95_warc_CC-MAIN-20230604125132-20230604155132-00160.warc.gz\"}"} |
https://latexdraw.com/draw-a-plane-intersecting-a-cone-in-latex/ | [
"",
null,
"# How to draw a plane intersecting a cone in LaTeX?\n\nIn this tutorial, We will show how to draw a plane intersecting a cone in $\\LaTeX$ using TikZ package. The intersection corresponds to an ellipse, which is a well known problem in geometry. We will use directly equations that defines the ellipse.",
null,
"To draw our illustration, we have to simplify it to small tasks:\n\n• We need axis environment (we need to upload pgfplots package);\n• we need to draw the bottom cone first (\\addplot3);\n• then we draw the plane (\\addplot3) and the ellipse that highlight the intersection (\\draw with plot).\n• The last thing is the remaining part of the cone (\\addplot3).\n\n## 1. Set up tikzpicture environment\n\nAs we have discussed above, we need to load the tikz and pgfplots packages. Here we also use the colormaps library from the pgfplots package which allows us to change the gradient colour of the surfaces. The initial code looks as follows:\n\\documentclass{standalone}\n\n\\usepackage{tikz}\n\\usepackage{pgfplots}\n\\usepgfplotslibrary{colormaps}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\\begin{axis}[\naxis equal image,\ngrid = both,\nminor tick num = 2,\nxlabel = {$x$},\nylabel = {$y$},\nzlabel = {$z$},\nmajor grid style = {draw = lightgray},\nminor grid style = {draw = lightgray!25},\nlegend cell align={left},\nxmin = -1, xmax = 1,\nymin = -1, ymax = 1,\nscale = 3,\nzmin = 0, zmax = 2,\nz buffer = sort,\n]\n% here comes the code\n\\end{axis}\n\\end{tikzpicture}\n\n\\end{document}",
null,
"In the options of the axis environment we have added the following options:\n\n• axis equal image: This options keeps an equal aspect ratio of the axis.\n• grid = both: Plots the major and minor grid.\n• grid style: Helps to change the default style of the grids like colours or stroke.\n• label: Adds a name to the axis.\n• legend cell align: Aligns the legend to the left, right or centre, we are going to see how it works at the end of the document.\n• scale: Enlarges or stretches the graphics according with the parameter passed.\n• z buffer = sort: Specify the way the pgfplots computes and orders the plots.\n\nIt is also important to set the limits of the graphic by the min and max commands. Specify the limits according to the range of the elements you will plot. Next step is to draw the bottom of the cone.\n\n## 2. Draw a truncated cone in $\\LaTeX$\n\nAs we mentioned before, we are not going to explain or deduce where the parametric equation of the bottom of the cone comes from, instead we limit us to show what the equation is and show how to plot it. In fact, the parametric equation of the bottom cone is given by the parametric equation:\n\n\\begin{aligned}x & = \\cos(t) + (m\\cdot \\cos(t) – \\cos(t))\\cdot s\\\\ y & = \\sin(t) + (m\\cdot \\sin(t) – \\sin(t))\\cdot s\\\\ z & = (-2\\cdot m + 2)\\cdot s \\end{aligned}",
null,
"Where $m = \\sin({60}{\\degree})/(2\\cdot \\sin({60}{\\degree}) – \\cos({60}{\\degree})\\cdot \\cos(t))$. The parameter $t$ takes values from $[0:2\\pi]$ and the parameter $s$ from $[0:1]$.\n\\addplot3[\nsurf,\nsamples = 50,\nsamples y = 20,\ndomain = 0:2*pi,\ndomain y = 0:1,\ncolormap/violet,\n]\n(\n{cos(deg(x)) + ((sin(60) /\n(2*sin(60)-cos(60)*cos(deg(x))))*cos(deg(x))-cos(deg(x)))*y},\n{sin(deg(x)) + ((sin(60) /\n(2*sin(60)-cos(60)*cos(deg(x))))*sin(deg(x))-sin(deg(x)))*y},\n{0 + (-2*(sin(60) /\n(2*sin(60)-cos(60)*cos(deg(x))))+2-0)*y}\n);\n\n\nWe have used the \\addplot3 command to plot the parametric surface. Here are the description of the used options in this command:\n\n• surf: Specifies that the plot is a surface.\n• shader: It’s the interpretation of the compiler, you can use inter for a smooth surface or flat for a rough one.\n• samples: Defines the number of subdivisions for the surface.\n• domain: Defines the domain of the parameter $t$ and $s$, which are represented by x and y, respectively in the code above.\n• colormap: With this command you can change the gradient colour of the surfaces.\n\n## 3. Draw a plane in 3D coordinates using $\\LaTeX$\n\nOnce we have plotted the bottom of the cone, we can now plot the plane. we just need to do something very similar but with another equation. The equation of the plane is given by the explicit equation:\n\n$z = -\\cfrac{\\cos({60}{\\degree})}{\\sin({60}{\\degree})}\\cdot x + 1$\n\nTo plot the plane, we can use again the \\addplot3 command by providing the plane equation as follows:\n\\addplot3[\nsurf,\nopacity = 0.65,\ndomain = -0.65:0.9,\ndomain y = -1:1,\ncolormap/redyellow\n] {-cos(60)/sin(60)*x+1};",
null,
"## 4. Draw an ellipse defined by a parametric equation in $\\LaTeX$\n\nTo highlight the intersection area between the plane and the cone, we can add the plot of the ellipse. We can use the command \\draw to plot a parametric equation. Indeed, the intersection of a plane and a cone is an ellipse that can be described by a parametric curve, which is given by:\n\\begin{aligned} x & = m\\cdot \\cos(t)\\\\ y & = m\\cdot \\sin(t)\\\\ z & = -2\\cdot m + 2 \\end{aligned}",
null,
"Check the code below to figure out how to use the $\\verb|\\draw|$ command and its options.\n\\draw[\nsamples = 50,\nsmooth,\ndomain = 0:2*pi,\nvariable = \\t,\ndashed,\nultra thick\n]\nplot (\n{(sin(60) /\n(2*sin(60) - cos(60)*cos(deg(\\t))))*cos(deg(\\t))},\n{(sin(60) /\n(2*sin(60) - cos(60)*cos(deg(\\t))))*sin(deg(\\t))},\n{-2*(sin(60) /\n(2*sin(60) - cos(60)*cos(deg(\\t))))+2}\n);\n\n\n## 5. Draw the rest of the cone in $\\LaTeX$\n\nFinally we have to add to the graph the top of the cone by plotting its parametric equation given by:\n\\begin{aligned} x & = (m\\cdot \\cos(t) – \\cos(t))\\cdot s\\\\ y & = (m\\cdot \\sin(t) – \\sin(t))\\cdot s\\\\ z & = 2+(-2\\cdot m)\\cdot s \\end{aligned}\nNow we have plotted three surfaces and a parametric curve. Finally, it remains to add the legend using the following command:\n\\legend{Bottom of the cone, Plane, Top of the cone},\n\nThis will add a box with the description of the surfaces at the top right of the graph. The obtained illustration is shown below. Remember that the order of plotting is important since TikZ doesn’t have auto sorting algorithms."
]
| [
null,
"https://www.facebook.com/tr",
null,
"https://secureservercdn.net/198.71.233.109/lbf.201.myftpupload.com/wp-content/uploads/intersect1-1024x952.png",
null,
"https://secureservercdn.net/198.71.233.109/lbf.201.myftpupload.com/wp-content/uploads/axis-971x1024.png",
null,
"https://secureservercdn.net/198.71.233.109/lbf.201.myftpupload.com/wp-content/uploads/bottomCone-971x1024.png",
null,
"https://secureservercdn.net/198.71.233.109/lbf.201.myftpupload.com/wp-content/uploads/plane-971x1024.png",
null,
"https://secureservercdn.net/198.71.233.109/lbf.201.myftpupload.com/wp-content/uploads/ellipse-971x1024.png",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.76861274,"math_prob":0.999413,"size":4250,"snap":"2020-24-2020-29","text_gpt3_token_len":1192,"char_repetition_ratio":0.1208196,"word_repetition_ratio":0.011577424,"special_character_ratio":0.30094117,"punctuation_ratio":0.13466042,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99989617,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12],"im_url_duplicate_count":[null,null,null,1,null,1,null,1,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-07-05T16:06:18Z\",\"WARC-Record-ID\":\"<urn:uuid:b7107e01-12a2-4caf-bd69-86911992132f>\",\"Content-Length\":\"129331\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f688feb8-29aa-451c-aef9-ffe39a80cb94>\",\"WARC-Concurrent-To\":\"<urn:uuid:f6223818-624b-43c8-9e54-0281f254fdc1>\",\"WARC-IP-Address\":\"198.71.233.109\",\"WARC-Target-URI\":\"https://latexdraw.com/draw-a-plane-intersecting-a-cone-in-latex/\",\"WARC-Payload-Digest\":\"sha1:5U2IUBXW7TERCG5SQ3ADZXW32FDRNX5A\",\"WARC-Block-Digest\":\"sha1:JTO5EJWVMZYKZ3HUUQXZ2HE2L6ASUHAV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593655887377.70_warc_CC-MAIN-20200705152852-20200705182852-00097.warc.gz\"}"} |
https://physics.stackexchange.com/questions/486064/generalized-coordinates-property-for-a-system-of-particles | [
"# Generalized Coordinates Property for a System of Particles\n\nI\"m looking at \"Principles of Dynamics: Second Edition\" by Donald T Greenwood. I'm trying to figure out how he obtains Eq. (6-64)\n\n$$\\frac{\\partial\\dot x_j}{\\partial\\dot q_i} = \\frac{\\partial x_j}{\\partial q_i}\\tag{6-64}$$\n\nfrom Eq (6-54)\n\n$$\\dot x_j = \\sum_{i=1}^n \\frac{\\partial x_j}{\\partial q_i}\\dot q_i + \\frac{\\partial x_j}{\\partial t}.\\tag{6-54}$$\n\nwhere the transformation equations from a set of $$3N$$ Cartesian coordinates to a set of $$n$$ generalized coordinates are of the form given by Eq (6-1)\n\n$$x_1=f_1(q_1,q_2,...,q_n,t)$$ $$x_2=f_2(q_1,q_2,...,q_n,t)$$ $$\\vdots$$ $$x_{3N}=f_{3N}(q_1,q_2,...,q_n,t).\\tag{6-1}$$\n\nWhen I differentiate Eq (6-54) with respect to $$q_i$$ I get second derivatives and I have no idea how the term $$\\frac{\\partial^2 x_j}{\\partial t\\partial \\dot q_i}$$ is dealt with. Any insight appreciated.\n\nGreenwood is asking how does $$\\dot x_j$$ change if we vary $$\\dot q_i$$ at some specified time $$t$$ and point $$q_i$$ (or equivalantly a specified point $$x_i$$ as there is a - perhaps time dependent - 1-1 relation between the $$q$$'s and $$x$$'s). At that specified point and time all the quantities on the RHS of your second equation, with the exception of the $$\\dot q$$'s are to be treated as constants. The answer then, is exactly your first equation.\n• Ahhhhh, I think I see now. Just to clarify, $\\frac{\\partial\\dot q_i}{\\partial \\dot q_j}=0$, because $q_i$ is independent of $q_j$ for $i \\ne j$? Jun 14, 2019 at 17:14\n• Yes. You can vary the $\\dot \\q_i$'s independently of one another. Jun 14, 2019 at 21:40"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.7450419,"math_prob":0.99999154,"size":824,"snap":"2023-14-2023-23","text_gpt3_token_len":298,"char_repetition_ratio":0.1695122,"word_repetition_ratio":0.0,"special_character_ratio":0.38713592,"punctuation_ratio":0.15555556,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99999714,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-06-08T21:19:47Z\",\"WARC-Record-ID\":\"<urn:uuid:b783dbb8-7461-460a-8503-1a534ea55a88>\",\"Content-Length\":\"159932\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:0badcaff-3900-4061-8ca6-017986868f22>\",\"WARC-Concurrent-To\":\"<urn:uuid:d70f2983-1aea-4320-8602-057992002140>\",\"WARC-IP-Address\":\"151.101.65.69\",\"WARC-Target-URI\":\"https://physics.stackexchange.com/questions/486064/generalized-coordinates-property-for-a-system-of-particles\",\"WARC-Payload-Digest\":\"sha1:55DKXYSVOWNJ2QM2EYL7Y7IYATDFBMBY\",\"WARC-Block-Digest\":\"sha1:FYTXM6IHQ4K3QFJ4AHFCP64IORLT2REI\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224655143.72_warc_CC-MAIN-20230608204017-20230608234017-00061.warc.gz\"}"} |
https://www.boost.org/doc/libs/1_81_0/libs/multiprecision/doc/html/boost_multiprecision/tut/floats/cpp_dec_float.html | [
"#",
null,
"Boost C++ Libraries\n\n...one of the most highly regarded and expertly designed C++ library projects in the world.\n\n#### cpp_dec_float\n\n`#include <boost/multiprecision/cpp_dec_float.hpp>`\n\n```namespace boost{ namespace multiprecision{\n\ntemplate <unsigned Digits10, class ExponentType = std::int32_t, class Allocator = void>\nclass cpp_dec_float;\n\ntypedef number<cpp_dec_float<50> > cpp_dec_float_50;\ntypedef number<cpp_dec_float<100> > cpp_dec_float_100;\n\n}} // namespaces\n```\n\nThe `cpp_dec_float` back-end is used in conjunction with `number`: It acts as an entirely C++ (header only and dependency free) floating-point number type that is a drop-in replacement for the native C++ floating-point types, but with much greater precision.\n\nType `cpp_dec_float` can be used at fixed precision by specifying a non-zero `Digits10` template parameter. The typedefs `cpp_dec_float_50` and `cpp_dec_float_100` provide arithmetic types at 50 and 100 decimal digits precision respectively. Optionally, you can specify an integer type to use for the exponent, this defaults to a 32-bit integer type which is more than large enough for the vast majority of use cases, but larger types such as ```long long``` can also be specified if you need a truly huge exponent range. In any case the ExponentType must be a fundamental (built-in) signed integer type at least 2 bytes and 16-bits wide.\n\nNormally `cpp_dec_float` allocates no memory: all of the space required for its digits are allocated directly within the class. As a result care should be taken not to use the class with too high a digit count as stack space requirements can grow out of control. If that represents a problem then providing an allocator as the final template parameter causes `cpp_dec_float` to dynamically allocate the memory it needs: this significantly reduces the size of `cpp_dec_float` and increases the viable upper limit on the number of digits at the expense of performance. However, please bear in mind that arithmetic operations rapidly become very expensive as the digit count grows: the current implementation really isn't optimized or designed for large digit counts.\n\nThere is full standard library and `std::numeric_limits` support available for this type.\n\nThings you should know when using this type:\n\n• Default constructed `cpp_dec_float`s have a value of zero.\n• The radix of this type is 10. As a result it can behave subtly differently from base-2 types.\n• The type has a number of internal guard digits over and above those specified in the template argument. Normally these should not be visible to the user.\n• The type supports both infinities and NaNs. An infinity is generated whenever the result would overflow, and a NaN is generated for any mathematically undefined operation.\n• There is a `std::numeric_limits` specialisation for this type.\n• Any `number` instantiated on this type, is convertible to any other `number` instantiated on this type - for example you can convert from `number<cpp_dec_float<50> >` to `number<cpp_dec_float<SomeOtherValue> >`. Narrowing conversions are truncating and `explicit`.\n• Conversion from a string results in a `std::runtime_error` being thrown if the string can not be interpreted as a valid floating-point number.\n• The actual precision of a `cpp_dec_float` is always slightly higher than the number of digits specified in the template parameter, actually how much higher is an implementation detail but is always at least 8 decimal digits.\n• Operations involving `cpp_dec_float` are always truncating. However, note that since there are guard digits in effect, in practice this has no real impact on accuracy for most use cases.\n###### cpp_dec_float example:\n```#include <boost/multiprecision/cpp_dec_float.hpp>\n#include <boost/math/special_functions/gamma.hpp>\n#include <iostream>\n\nint main()\n{\nusing namespace boost::multiprecision;\n\n// Operations at fixed precision and full numeric_limits support:\ncpp_dec_float_100 b = 2;\nstd::cout << std::numeric_limits<cpp_dec_float_100>::digits << std::endl;\n// Note that digits10 is the same as digits, since we're base 10! :\nstd::cout << std::numeric_limits<cpp_dec_float_100>::digits10 << std::endl;\n// We can use any C++ std lib function, lets print all the digits as well:\nstd::cout << std::setprecision(std::numeric_limits<cpp_dec_float_100>::max_digits10)\n<< log(b) << std::endl; // print log(2)\n// We can also use any function from Boost.Math:\nstd::cout << boost::math::tgamma(b) << std::endl;\n// These even work when the argument is an expression template:\nstd::cout << boost::math::tgamma(b * b) << std::endl;\n// And since we have an extended exponent range we can generate some really large\n// numbers here (4.0238726007709377354370243e+2564):\nstd::cout << boost::math::tgamma(cpp_dec_float_100(1000)) << std::endl;\nreturn 0;\n}\n```"
]
| [
null,
"https://www.boost.org/gfx/space.png",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.6168601,"math_prob":0.9384119,"size":4169,"snap":"2022-40-2023-06","text_gpt3_token_len":995,"char_repetition_ratio":0.14285715,"word_repetition_ratio":0.0,"special_character_ratio":0.24346367,"punctuation_ratio":0.16756032,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98881567,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-02-01T06:05:40Z\",\"WARC-Record-ID\":\"<urn:uuid:303bad3f-a643-42ac-9c32-75a9b2367fa4>\",\"Content-Length\":\"19211\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b142896f-4e7f-4623-a4ff-77e55413c39a>\",\"WARC-Concurrent-To\":\"<urn:uuid:06ff7930-1435-44d2-b044-f74c1903129e>\",\"WARC-IP-Address\":\"146.20.110.251\",\"WARC-Target-URI\":\"https://www.boost.org/doc/libs/1_81_0/libs/multiprecision/doc/html/boost_multiprecision/tut/floats/cpp_dec_float.html\",\"WARC-Payload-Digest\":\"sha1:B7KJRKMNPH7KRIBMJOI2M4C2BAOHA5WF\",\"WARC-Block-Digest\":\"sha1:UMWR2EB2YNPB4V2HFA5CQX6235BM3ZKS\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764499911.86_warc_CC-MAIN-20230201045500-20230201075500-00766.warc.gz\"}"} |
http://ms-access-tips.blogspot.com/2012/03/calculating-questionnaire-percentages.html | [
"## Friday, 2 March 2012\n\n### Calculating Questionnaire Percentages using a Multi-Level Query\n\nLast Saturday I received an interesting question from Ogwang Denis on my Access Tutorial Facebook page. He had created an Access Database to store the results of a survey questionnaire comprised of a number of Yes/No questions, and wanted to know how he could process the answers in a query to produce a percentage.\n\nThe solution to this problem is not quite as straight forward as it may at first seem. As Oswang correctly points out, the table field we want to process is of the Yes/No Data Type. Moreover, each answer to this question is contained in separate interviewee records'. The task can be articulated into three distinct stages:\n1. Count how many interviewees' have been asked this question regardless of answer given.\n2. Count how many interviewees' answered YES to this question.\n3. Calculate the percentage of Yes answers on the basis of information obtained in stages 1 and 2 above.\nEach of these three stages is accomplished with a separate Query. Moreover, the 3rd stage query uses the summary data provided by the two queries created in the first two stages. As such the final query is multi-levelled - the actual table data represents the first level; the stage 1 and 2 queries, the second; and the third stage query represents the third and final level. We will see how this multi-levelling is achieved shortly.\n\nSample Exercise:\nLet's look at a simplified database that I created in order to illustrate these stages. The table, from which the queries are based, contain three questions in each record. Each question is of the Yes/No Data Type.",
null,
"Figure 1: The sample data we shall be working with is stored in a table called tblQuestionnaire. Each record represents a separate interviewee's set of answers. In this exercise we are just interested in their answers' to Question1.\nStage 1:\nThe first stage involves creating a query to count the number of interviewee records - that is to say, the count of how many times Question1 was asked. This just requires a single query column based on the count of the ID field in tblQuestionnaire. We shall save this query as qryQuestion1Count:",
null,
"Figure 2: The stage one query saved as qryQuestion1Count.\nStage 2:\nThe second stage involves creating a query to count the number of YES answers to Question1. This is achieved by counting the ID field of tblQuestionnaire as we did in the first query, but this time we shall also add a second query column based on the Question1 field. This column needs to contain a criteria to filter out the YES answers (since -1 represents YES when dealing with the Yes/No Data Type, the criteria will be = -1). As such we are creating a query to count the ID fields of all records WHERE Question1 = -1. We shall call this query qryQuestion1Yes:",
null,
"Figure 3: The stage two query saved as qryQuestion1Yes. This counts the number of ID fields (and hence records) in tblQuestionnaire WHERE Question1 = -1.\nStage 3:\nFor the third and final stage, we need to create a query based on the previous two queries. We do this by selecting qryQuestion1Count (the stage one query), and qryQuestion1Yes (the stage two query), from the QUERIES tab of the SHOW TABLE dialog form, when the Query Design Window opens.",
null,
"Figure 4: The Third Stage Query - qryQuestion1Percent.\n\nThe Result:\nIn our sample data the question was asked 20 times, and was answered YES 10 times. As such, if we work out the calculation manually, the figures are: 100/20 * 10. The answer is 50%, which is indeed the result of the stage three query when it is run.",
null,
"Figure 5: Query result returned by qryQuestion1Percent on sample data."
]
| [
null,
"http://2.bp.blogspot.com/-VG6CUU5ojgY/T0_OkKv792I/AAAAAAAAAtI/MJ61lSfrghk/s1600/samle-data.JPG",
null,
"http://3.bp.blogspot.com/-CxgEZDWYLro/T0_V0W1HuhI/AAAAAAAAAtQ/qnhN0x5xVkE/s1600/questions-asked.JPG",
null,
"http://3.bp.blogspot.com/-9xVIq102McM/T0_bCKFK3uI/AAAAAAAAAtg/sP_OyB6lOiA/s1600/qryQuestion1Yes.JPG",
null,
"http://3.bp.blogspot.com/-L51qnGppD8E/T1CaJ1Lk7uI/AAAAAAAAAtw/Il10R5Oy9mI/s1600/level3-query.JPG",
null,
"http://4.bp.blogspot.com/-Uddt4lHWlNQ/T1Ck03rqJMI/AAAAAAAAAt4/FDx1vmBSb_k/s1600/query-result.JPG",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.94542366,"math_prob":0.70911765,"size":4480,"snap":"2020-45-2020-50","text_gpt3_token_len":987,"char_repetition_ratio":0.1508043,"word_repetition_ratio":0.38510913,"special_character_ratio":0.215625,"punctuation_ratio":0.094515756,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95746297,"pos_list":[0,1,2,3,4,5,6,7,8,9,10],"im_url_duplicate_count":[null,3,null,3,null,3,null,3,null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-31T20:16:37Z\",\"WARC-Record-ID\":\"<urn:uuid:461417e4-ee2c-4012-9f8a-68844b9771ff>\",\"Content-Length\":\"58971\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5d261bd1-07d9-444a-98fa-2ef366c37bf7>\",\"WARC-Concurrent-To\":\"<urn:uuid:9d1e93f2-a779-42d7-8281-1736c625c4a6>\",\"WARC-IP-Address\":\"172.217.12.225\",\"WARC-Target-URI\":\"http://ms-access-tips.blogspot.com/2012/03/calculating-questionnaire-percentages.html\",\"WARC-Payload-Digest\":\"sha1:CBB43KC66Y3WAQ6UCV2IISGXMTWJVF2N\",\"WARC-Block-Digest\":\"sha1:TLAU4OG5H7YQANSGGCREMUF3LACIGVPA\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-45/CC-MAIN-2020-45_segments_1603107922411.94_warc_CC-MAIN-20201031181658-20201031211658-00229.warc.gz\"}"} |
http://scientificlib.com/en/Mathematics/LX/GaussKronrodQuadratureFormula.html | [
"Hellenica World\n\n# .\n\nIn numerical mathematics, the Gauss–Kronrod quadrature formula is a method for numerical integration (calculating approximate values of integrals). Gauss–Kronrod quadrature is a variant of Gaussian quadrature, in which the evaluation points are chosen so that an accurate approximation can be computed by re-using the information produced by the computation of a less accurate approximation. It is an example of what is called a nested quadrature rule: for the same set of function evaluation points, it has two quadrature rules, one higher order and one lower order (the latter called an embedded rule). The difference between these two approximations is used to estimate the calculational error of the integration.\n\nThese formulas are named after Alexander Kronrod, who invented them in the 1960s, and Carl Friedrich Gauss. Gauss–Kronrod quadrature is used in the QUADPACK library, the GNU Scientific Library, the NAG Numerical Libraries and R.\n\nDescription\n\nThe problem in numerical integration is to approximate definite integrals of the form\n\n$$\\int_a^b f(x)\\,dx.$$\n\nSuch integrals can be approximated, for example, by n-point Gaussian quadrature\n\n$$\\int_a^b f(x)\\,dx \\approx \\sum_{i=1}^n w_i f(x_i).$$\n\nwhere wi, xi are the weights and points at which to evaluate the function f(x).\n\nIf the interval [a, b] is subdivided, the Gauss evaluation points of the new subintervals never coincide with the previous evaluation points (except at the midpoint for odd numbers of evaluation points), and thus the integrand must be evaluated at every point. Gauss–Kronrod formulas are extensions of the Gauss quadrature formulas generated by adding n+1 points to an n-point rule in such a way that the resulting rule is of order 3n+1. These extra points are the zeros of Stieltjes polynomials. This allows for computing higher-order estimates while reusing the function values of a lower-order estimate. The difference between a Gauss quadrature rule and its Kronrod extension are often used as an estimate of the approximation error.\nExample\n\nA popular example combines a 7-point Gauss rule with a 15-point Kronrod rule (Kahaner, Moler & Nash 1989, §5.5). Because the Gauss points are incorporated into the Kronrod points, a total of only 15 function evaluations yields both a quadrature estimate and an error estimate.\n\n(G7,K15) on [−1,1]\nGauss nodes Weights\n±0.94910 79123 42759 0.12948 49661 68870\n±0.74153 11855 99394 0.27970 53914 89277\n±0.40584 51513 77397 0.38183 00505 05119\n0.00000 00000 00000 0.41795 91836 73469\nKronrod nodes Weights\n±0.99145 53711 20813 0.02293 53220 10529\n±0.94910 79123 42759 0.06309 20926 29979\n±0.86486 44233 59769 0.10479 00103 22250\n±0.74153 11855 99394 0.14065 32597 15525\n±0.58608 72354 67691 0.16900 47266 39267\n±0.40584 51513 77397 0.19035 05780 64785\n±0.20778 49550 07898 0.20443 29400 75298\n0.00000 00000 00000 0.20948 21410 84728\n\nThe recommended error estimate is $$(200 |G7 - K15|)^{1.5}$$.\n\nPatterson (1968) showed how to find further extensions of this type.\n\nClenshaw-Curtis quadrature, another nested quadrature rule with similar accuracy\n\nNotes\n\n^ http://stat.ethz.ch/R-manual/R-patched/library/stats/html/integrate.html\n\nReferences\n\nEhrich, Sven (2001), \"g/g120030\", in Hazewinkel, Michiel, Encyclopedia of Mathematics, Springer, ISBN 978-1556080104\nKahaner, David; Moler, Cleve; Nash, Stephen (1989), Numerical Methods and Software, Prentice-Hall, ISBN 978-0-13-627258-8\nKronrod, Aleksandr Semenovish (1965), Nodes and weights of quadrature formulas. Sixteen-place tables, New York: Consultants Bureau (Authorized translation from the Russian)\nPiessens, Robert; de Doncker-Kapenga, Elise; Überhuber, C. W.; Kahaner, D. K. (1983), QUADPACK, A subroutine package for automatic integration, Springer-Verlag, ISBN 978-3-540-12553-2 (Reference guide for QUADPACK)\nPatterson, T. N. L. (1968), \"The Optimum Addition of Points to Quadrature Formulae\", Math. Comput. (American Mathematical Society) 22 (104): 847–856 and C1–C11, doi:10.2307/2004583, JSTOR 2004583. Erratum in Math. Comput. 23: 892."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.7129377,"math_prob":0.9582052,"size":4613,"snap":"2019-13-2019-22","text_gpt3_token_len":1315,"char_repetition_ratio":0.12996311,"word_repetition_ratio":0.0,"special_character_ratio":0.32755256,"punctuation_ratio":0.15614237,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9928555,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-03-24T03:36:16Z\",\"WARC-Record-ID\":\"<urn:uuid:d693ef94-9f1b-4dc0-9eb6-c20648635d93>\",\"Content-Length\":\"12621\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5208f874-43ea-44f5-8a0a-f8352f6dc3af>\",\"WARC-Concurrent-To\":\"<urn:uuid:d47328eb-574d-4a01-bcca-e19534647f08>\",\"WARC-IP-Address\":\"74.208.215.47\",\"WARC-Target-URI\":\"http://scientificlib.com/en/Mathematics/LX/GaussKronrodQuadratureFormula.html\",\"WARC-Payload-Digest\":\"sha1:AMJYOBEP3FCTZUO54ACQGZJAW5D4LC5F\",\"WARC-Block-Digest\":\"sha1:IP75PUPCL4JRAAGDO6J7GXAPREUHF7DQ\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-13/CC-MAIN-2019-13_segments_1552912203168.70_warc_CC-MAIN-20190324022143-20190324044143-00264.warc.gz\"}"} |
https://vlab.amrita.edu/?sub=2&brch=190&sim=339&cnt=1 | [
"",
null,
". .\n.\nDetermination of Viscosity of Organic Solvents\n.\n.\n\n## Objective:\n\n• Determine the absolute viscosity of organic liquids.\n\n## Theory:\n\nThe internal property of a fluid for its resistance to flow is known as viscosity. In 1844 Hagen–Poiseuille did their work concerning the interpretation that liquid flow through tubes and he proposed an equation for viscosity of liquids. This equation is called Poiseuille’s equation.",
null,
"----------(1)\nWhere η is called the viscosity coefficient, t is the time of flow of liquid, V is the volume of the liquid, P is the hydrostatic pressure, and L is the distance travelled by the liquid during time t. In the honour of Hagen–Poiseuille the unit of viscosity is called the Poise (P). The official SI unit for absolute viscosity is kg/m s (or Pascal-seconds, Pa s).\n\nViscosity can be measured using a viscometer. The different types of viscometer are as follows:\n\n1. Ostwald viscometer\n2. Falling sphere viscometer\n3. Falling piston viscometer\n4. Oscillating piston viscometer\n5. Vibrational viscometers\n6. Rotational viscometers\n7. Bubble viscometer\n\nOstwald viscometer is a commonly used viscometer, which consists of a U-shaped glass tube held vertically. For more accurate measurements it is held in a controlled temperature bath. It is also known as a glass capillary viscometer. A liquid is allowed to flow through its capillary tube between two etched marks and the time of flow of the liquid is measured using a stopwatch.",
null,
"In an Ostwald viscometer the measured distance the liquid travels, L, will be always a constant; the radius, r will always be a constant; and by procedure the volume of liquid, V will also be constant. Equation (1) can then be simplified to:",
null,
"---------(2)\n\nWhere K is a constant and",
null,
"The hydrostatic pressure is P proportional to the density of the fluid being measured. In our experiment we will be measuring the mass of equal volumes of liquid so that the viscosity will be proportional to the masses measured. Therefore we have the relation:",
null,
"---------(3)\n\nWhere K and t are defined above and m is the mass of the liquid.\nFor finding the viscosity of liquids it is important to calibrate the viscometer using a reference liquid. Water is a commonly used reference liquid. The viscosity of water at 30.0 °C is 0.8007 centipoise (cP). Knowing the values for the reference liquid and relation (3), we get:",
null,
"----------(4)\n\nWhere: ηr is viscosity coefficient of the reference sample (water), mr is the mass of the reference sample, and tr is the time flow of the reference sample. Note that K cancels out. The other variables are the viscosity coefficient, mass, and time flow of the sample respectively.\n\nWith an Ostwald viscometer we can measure the time flow of a liquid (mass can be measured using standard laboratory procedures, e.g. a relative density bottle and a scale) and determine its viscosity by solving equation (4) for η.",
null,
"------------(5)\n\n### Temperature Dependence of Viscosity\n\nIn 1889 Arrhenius expressed an equation for temperature dependent chemical reaction rates. Since then, many temperature dependent chemical and physical processes have been found to behave in accordance with Arrhenius-like equations. For the viscosity of many liquids, the viscosity decreases as the temperature increases in accordance with the following equation:",
null,
"-------(6)\n\nWhere A is a constant known as the Arrhenius constant, Eη is the activation energy for flow, R is the ideal gas constant, and T is the temperature of the liquid using an absolute scale (almost always K — the units of Eη and R and T should be chosen so that the ratio is dimensionless, A will have the same dimensions as η, in our case cP). A plot of η vs. 1/T should be linear and have a slope equal to Eη /R if the liquid’s viscosity exhibits Arrhenius-like behaviour.\n\n### Determination of unknown composition\n\nUsing an Ostwald viscometer, we can also calculate the unknown composition of a mixture. The viscosities of mixtures of different known compositions are measured and a graph is plotted with viscosity against the compositions of the different mixtures. From the graph, the composition of the unknown mixture corresponding to the viscosity can be determined.",
null,
"Cite this Simulator:\n\n.....\n..... .....",
null,
"Copyright @ 2022 Under the NME ICT initiative of MHRD",
null,
"Powered by AmritaVirtual Lab Collaborative Platform [ Ver 00.13. ]"
]
| [
null,
"https://vlab.amrita.edu/theme/amrita/images/logo.png",
null,
"https://vlab.amrita.edu/fckeditor/editor/plugins/fckeditor_wiris/integration/showimage.php",
null,
"http://vlab.amrita.edu/userfiles/1/1484809187_viscometer.jpg",
null,
"https://vlab.amrita.edu/fckeditor/editor/plugins/fckeditor_wiris/integration/showimage.php",
null,
"https://vlab.amrita.edu/fckeditor/editor/plugins/fckeditor_wiris/integration/showimage.php",
null,
"https://vlab.amrita.edu/fckeditor/editor/plugins/fckeditor_wiris/integration/showimage.php",
null,
"https://vlab.amrita.edu/fckeditor/editor/plugins/fckeditor_wiris/integration/showimage.php",
null,
"https://vlab.amrita.edu/fckeditor/editor/plugins/fckeditor_wiris/integration/showimage.php",
null,
"https://vlab.amrita.edu/fckeditor/editor/plugins/fckeditor_wiris/integration/showimage.php",
null,
"https://vlab.amrita.edu/userfiles/1/image/visco%20graph%282%29.jpg",
null,
"https://vlab.amrita.edu/theme/amrita/images/foot_left.gif",
null,
"https://vlab.amrita.edu/theme/amrita/images/foot_right.gif",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.9229453,"math_prob":0.97586423,"size":4108,"snap":"2022-40-2023-06","text_gpt3_token_len":904,"char_repetition_ratio":0.17080897,"word_repetition_ratio":0.005952381,"special_character_ratio":0.21397273,"punctuation_ratio":0.093333334,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99266374,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],"im_url_duplicate_count":[null,null,null,null,null,5,null,null,null,null,null,null,null,null,null,null,null,null,null,3,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-09-29T23:33:09Z\",\"WARC-Record-ID\":\"<urn:uuid:a2bd2f24-f76e-4183-be4c-8534f18fd8b2>\",\"Content-Length\":\"26058\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:59603138-5271-4ca1-a477-6aa38ab0cc30>\",\"WARC-Concurrent-To\":\"<urn:uuid:839a1e14-901f-4d06-bc45-0666cfbc0b2b>\",\"WARC-IP-Address\":\"123.63.2.7\",\"WARC-Target-URI\":\"https://vlab.amrita.edu/?sub=2&brch=190&sim=339&cnt=1\",\"WARC-Payload-Digest\":\"sha1:LDFENF3TEV3TBU4AIBVPEJGSMZVG2FMM\",\"WARC-Block-Digest\":\"sha1:S4LJOOEGT5IV264I35WYHIPBRSLMBQKG\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030335396.92_warc_CC-MAIN-20220929225326-20220930015326-00164.warc.gz\"}"} |
http://eloff-transformers.co.za/our-products/transformers/ | [
"The Transformer, a device that transfers electric energy from one circuit to another, usually with a change in voltage. Transformers work only with a varying electric current, such as alternating current (AC). Transformers are important in the distribution of electric power. They raise the voltage of the electricity generated at a power plant to the high levels needed to transmit the electricity efficiently. Other transformers reduce the voltage at the locations where the electricity is used. Many household devices contain transformers to raise or lower house-current voltage as needed. Television sets and stereo equipment, for example, require high voltages; doorbells and thermostats, low voltages.\n\nHow A Transformer Works\n\nA simple transformer consists essentially of two coils of insulated wire. In most transformers, the wires are wound around an iron-containing structure called the core. One coil, called the primary, is connected to a source of alternating current that produces a constantly varying magnetic field around the coil. The varying magnetic field, in turn, produces an alternating current in the other coil. This coil, called the secondary, is connected to a separate electric circuit.\n\nThe ratio of the number of turns in the primary coil to the number of turns in the secondary coil—the turns ratio—determines the ratio of the voltages in the two coils. For example, if there is one turn in the primary and ten turns in the secondary coil, the voltage in the secondary coil will be 10 times that in the primary. Such a transformer is called a step-up transformer. If there are ten turns in the primary coil and one turn in the secondary the voltage in the secondary will be one-tenth that in the primary. This kind of transformer is called a step-down transformer. The ratio of the electric current strength, or amperage, in the two coils is in inverse proportion to the ratio of the voltages; thus the electrical power (voltage multiplied by amperage) is the same in both coils.\n\nThe impedance (resistance to the flow of an alternating current) of the primary coil depends on the impedance of the secondary circuit and the turns ratio. With the proper turns ratio, the transformer can, in effect, match the impedances of the two circuits. Matched impedances are important in stereo systems and other electronic systems because they permit the maximum amount of electric power to be delivered from one component to another.\n\nIn an autotransformer, there is only one coil and both circuits are connected to it. They are connected at different points, so that one circuit contains a larger portion of the coil (that is, has more turns) than the other."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.940237,"math_prob":0.9769273,"size":2650,"snap":"2022-27-2022-33","text_gpt3_token_len":519,"char_repetition_ratio":0.16628873,"word_repetition_ratio":0.018691588,"special_character_ratio":0.1871698,"punctuation_ratio":0.09856263,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9730669,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-06-28T06:41:40Z\",\"WARC-Record-ID\":\"<urn:uuid:b0751174-cd8a-4d55-853d-1edf3c451c91>\",\"Content-Length\":\"39516\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e26b01b8-984e-47af-ad0f-35e662c883dd>\",\"WARC-Concurrent-To\":\"<urn:uuid:62a318ec-b75c-4d5a-b28d-cd29fd49c55a>\",\"WARC-IP-Address\":\"196.22.142.55\",\"WARC-Target-URI\":\"http://eloff-transformers.co.za/our-products/transformers/\",\"WARC-Payload-Digest\":\"sha1:NJE45HFHAYHBDKWCEG2TPXBNMAF4O7ED\",\"WARC-Block-Digest\":\"sha1:LV4BOPAPBTXIORS2H3AEEIMA3GIMFKET\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656103355949.26_warc_CC-MAIN-20220628050721-20220628080721-00303.warc.gz\"}"} |
https://workmyexam.com/tips-on-how-to-pass-the-matlab-exam/ | [
"# Tips On How To Pass The MatLab Exam\n\nWhen you are studying for the MatLab exam, you will have to find out what questions you have that you are most worried about, as well as those questions that you think you may be able to answer with confidence. There are plenty of different types of questions that you can expect to be asked on the exam, so you will have to be aware of which ones you are likely to have a problem with and what questions you should expect to get better answers to.\n\nOne of the questions that you may encounter when you are studying for the MatLab exam is called “What does the formula ‘ = x’ tell me?” If you have any previous experience in this area, then it will probably not give you any difficulty at all. The real challenge comes from knowing what the formula actually tells you, and when you are trying to predict whether you will get an answer that is correct or not.\n\nAs mentioned previously, this question is one that will be asked on every exam and the question that will be most difficult for you to answer is “What is the definition of ‘= x?’ “. It is also important to note that this is a type of question that will be asked during the entire exam, so you will need to be able to prepare as best you can for this question. This is also a question that should be answered correctly, so it is vital that you have a good idea of what it tells you.\n\nThere are many different types of equations that you can come across when you are studying for the exam. For example, if you were studying for a question that would ask you to solve for the integral of x and y then it would be easy for you to come up with the integral for both of them separately. However, if you were looking for a more general solution, then you would probably want to look for more general solutions such as using the square root of the first n roots of both x and y.\n\nAs you can see, there are many different types of equations that you can come across when you are studying for the MatLab exam, and each of them will be quite different from the others. It will be helpful to have some familiarity with some of them though, so that you can better know what they are telling you.\n\nThe most common types of equations that you will encounter when you are studying for the MatLab exam are those that involve the quadratic, the exponential, and the fractional. derivative. All of these will be difficult to solve, but you can use the information that you have from earlier sections to help you solve them properly.\n\nYou will also need to be able to solve for the solution of any problems that are asked of you during the exam. These can be anything from what value of x is required, how many times you need to multiply and divide the x, the slope of the line, and many other things.\n\nFinally, it is important that you understand which problem to expect the question to ask on. If it is a multiple choice question, then you will be able to choose from a list of the questions that are available, which ones you are most likely to have problems with.\n\nIt is always a good idea to study carefully and try to do a few practice tests before you sit for the actual exam. You should try to learn as much about the topics as possible and get as much information from the course material as you can.\n\nOnce you have passed the exam, you will receive a certificate. This is often issued along with a guide to the program, so you will know exactly what you should know when you go to the program for the real exam.\n\nIf you are a newcomer to the MatLab program or simply have a limited understanding of the language, then you may find that it is helpful to start out by taking an introductory course. or learning module before you begin. If you can’t afford to pay for a full course upfront, then there are many online resources that will give you a good introduction to the program.\n\n### Related posts:\n\nTips On How To Pass The MatLab Exam\nScroll to top"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.9823731,"math_prob":0.7989027,"size":3370,"snap":"2022-27-2022-33","text_gpt3_token_len":703,"char_repetition_ratio":0.14587046,"word_repetition_ratio":0.0625,"special_character_ratio":0.20890208,"punctuation_ratio":0.0723589,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9665612,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-01T05:47:11Z\",\"WARC-Record-ID\":\"<urn:uuid:762eefbf-c050-4e7a-9922-4055f214ae86>\",\"Content-Length\":\"48598\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:0489bfdf-db96-408e-a4e7-4e5d4707bb47>\",\"WARC-Concurrent-To\":\"<urn:uuid:02eee208-7a4b-4316-9fc6-bdecd9a7c3c7>\",\"WARC-IP-Address\":\"172.67.201.94\",\"WARC-Target-URI\":\"https://workmyexam.com/tips-on-how-to-pass-the-matlab-exam/\",\"WARC-Payload-Digest\":\"sha1:YRONNHBZQRA7IXZGY6Z7FZ5OSVVY57OJ\",\"WARC-Block-Digest\":\"sha1:QJCUB2A7PYNJDM65CCUYQIMTIGA6DVGH\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656103920118.49_warc_CC-MAIN-20220701034437-20220701064437-00796.warc.gz\"}"} |
https://paperswithcode.com/search?q=author%3AFrancesco+Sorrentino | [
"# Optimizing time-shifts for reservoir computing using a rank-revealing QR algorithm\n\nReservoir computing is a recurrent neural network paradigm in which only the output layer is trained.\n\n# Pinning control of networks: dimensionality reduction through simultaneous block-diagonalization of matrices\n\nInterestingly, we obtain two different types of blocks, driven and undriven.\n\n# Reply to comment on \"Failure of the simultaneous block diagonalization technique applied to complete and cluster synchronization of random networks\"\n\nWe respond briefly to a comment [1, arXiv:2110. 15493] recently posted online on our paper [2, arXiv:2108. 07893].\n\n# Symmetry-driven network reconstruction through pseudobalanced coloring optimization\n\nFor that reason, a method to find pseudosymmetries and repair networks based on those symmetries is important when analyzing real world networks.\n\n# Matryoshka and Disjoint Cluster Synchronization of Networks\n\nFor each pair of clusters, we distinguish between three different cases: Matryoshka Cluster Synchronization (when the range of the stability of the synchronous solution for one cluster is included in that of the other cluster), Partially Disjoint Cluster Synchronization (when the ranges of stability of the synchronous solutions partially overlap), and Complete Disjoint Cluster Synchronization (when the ranges of stability of the synchronous solutions do not overlap.)\n\n# Cluster Synchronization of Networks via a Canonical Transformation for Simultaneous Block Diagonalization of Matrices\n\nOur approach has several advantages as it allows us to: (1) decouple the stability problem into subproblems of minimal dimensionality while preserving physically meaningful information; (2) study stability of both orbital and equitable partitions of the network nodes and (3) obtain a parametrization of the problem in a small number of parameters.\n\n0\n\n# Reservoir Computers with Random and Optimized Time-Shifts\n\nWe investigate the effects of application of random time-shifts to the readouts of a reservoir computer in terms of both accuracy (training error) and performance (testing error.)\n\n# Modal Decomposition of the Linear Swing Equation in Networks with Symmetries\n\nThe swing equation is a classic model for the dynamics of powergrid networks.\n\n# Reservoir Computers Modal Decomposition and Optimization\n\nWe then take a parametric approach in which the eigenvalues are parameters that can be appropriately designed and optimized.\n\n# Data-driven Optimized Control of the COVID-19 Epidemics\n\nWe then introduce a time-varying control input that represents the level of social distancing imposed on the population of a given area and solve an optimal control problem with the goal of minimizing the impact of social distancing on the economy in the presence of relevant constraints, such as a desired level of suppression for the epidemics at a terminal time.\n\n# Generating Graphs with Symmetry\n\nIn the field of complex networks and graph theory, new results are typically tested on graphs generated by a variety of algorithms such as the Erd\\H{o}s-R\\'{e}nyi model or the Barab\\'{a}si-Albert model.\n\nCombinatorics\n\n0\nCannot find the paper you are looking for? You can Submit a new open access paper."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.80049807,"math_prob":0.82556844,"size":3374,"snap":"2022-40-2023-06","text_gpt3_token_len":778,"char_repetition_ratio":0.152819,"word_repetition_ratio":0.04296875,"special_character_ratio":0.2145821,"punctuation_ratio":0.10858144,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9522287,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-01-28T12:56:15Z\",\"WARC-Record-ID\":\"<urn:uuid:d030a5c7-e161-484c-a520-eda05a23a735>\",\"Content-Length\":\"94849\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:faeac21d-e7ab-4e5d-b297-2711d6c9fac7>\",\"WARC-Concurrent-To\":\"<urn:uuid:08058673-f535-4c98-b5ab-a5eaaf578d51>\",\"WARC-IP-Address\":\"104.26.13.155\",\"WARC-Target-URI\":\"https://paperswithcode.com/search?q=author%3AFrancesco+Sorrentino\",\"WARC-Payload-Digest\":\"sha1:K425KWLNDVB47S7QA3XQTOZ4STHVKOLD\",\"WARC-Block-Digest\":\"sha1:6VDOFP2T4KZGSECD6UDD7435J3JMU6WE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764499634.11_warc_CC-MAIN-20230128121809-20230128151809-00009.warc.gz\"}"} |
https://mathoverflow.net/questions/tagged/collatz-conjecture | [
"# Questions tagged [collatz-conjecture]\n\nThe Collatz Conjecture, also known as the 3n+1 conjecture, is a famous open problem named after Lothar Collatz.\n\n68 questions\nFilter by\nSorted by\nTagged with\n113 views\n\n### Would proving that every positive integer > 1 gets mapped to 1 and only 1 unique point in the 2D plane be useful for proving Collatz Conjecture? [closed]\n\nBefore diving into the topic of the Collatz Conjecture, I'd like to briefly share my background, not as a means of boasting, but to provide some context to my perspective. I studied computer science ...\n56 views\n\n### New Questions About Collatz Conjecture // Q1: Is there a cluster {o, L} for any odd number? [closed]\n\nOdd Transformation Sequences (OTS) and Their Encoding in the Context of the Collatz Conjecture. Introduction The Collatz Conjecture, a longstanding problem in number theory, can be reframed through ...\n156 views\n\n### Finding a strictly increasing Collatz sequence of arbitrary length [closed]\n\nIs there a formula to construct a Collatz (3x + 1) sequence of arbitrary length that is strictly increasing? Obviously one can do this with a strictly decreasing sequence by just taking $2^n$ but I ...\n408 views\n\n465 views\n\n### Can anyone recommend a reference where the collatz conjecture is viewed as a combinatorics problem?\n\nIt occurs to me that the question about whether non-trivial cycles exist for the collatz conjecture can be restated as these two questions (details on how this relates to the collatz conjecture can be ...\n528 views\n\n### Polynomials, $3^x$ and the Collatz conjecture\n\n$\\DeclareMathOperator\\Orb{Orb}\\newcommand\\abs{\\lvert#1\\rvert}$The Collatz or the $3n+1$ conjecture is open. Are there non-trivial polynomials $f(x)\\in\\mathbb Z[x]$ and $g(x)\\in\\mathbb R[x]$ having ...\n820 views\n\n### Is Collatz conjecture known to be true for specific numbers?\n\nThe Collatz or the $3n+1$ conjecture is open. Is there a specific polynomial $f(x)\\in\\mathbb Z[x]$ whose range is unbounded for which every integer of form $|f(m)|$ at $m\\in\\mathbb Z$ satisfies $3n+1$...\n631 views\n\n### Can you explain this weird pattern in Collatz conjecture? [closed]\n\nExtreme disproportion in the dispersion of \"Digital Roots\" of the highest numbers reach in the Collatz Conjecture. I calculated the Digital Root remainder mod 9 for the highest numbers ...\n1k views\n\n### Summary of “Almost All Orbits of the Collatz Map Attain Almost Bounded Values”\n\nTerence Tao's 2019 paper Almost all Orbits of the Collatz map attain almost bounded values\" is pretty famous. However, it's also long and complicated. I think there are useful techniques to ...\n1 vote\n385 views\n\n443 views\n\n### Density of the Klarner-Rado Sequence\n\nConsider the Klarner-Rado sequence OEIS A005658 defined by the rule: the sequence starts with 1, and if it contains $n$ it also contains $2n$, $3n+2$ and $6n+3$. According to R. Guy's popular article,...\n264 views\n\n### How can I catalog these generalized Collatz problems?\n\nThe Collatz conjecture can be expressed in terms of a ruleset in the language $\\{x,+,1,\\rightarrow,;\\}$: $x + x + 1 \\rightarrow x+x+x+1+1;$ $x + x \\rightarrow x;$ Whenever a number matches the LHS ...\n330 views\n\n### Extension of Coburn's theorem on isometry and Toeplitz algebra\n\n$\\newcommand{\\id}{\\mathrm{id}}$Let $H$ be a Hilbert space, and $X \\in B(H)$ a proper isometry (i.e. $X^{\\star}X = \\id$ and $XX^{\\star} \\neq \\id$). Coburn's theorem states that ${\\rm C}^{\\star}(X)$, ...\n1k views\n\n### A problem involving the inverse Collatz map\n\nLet $C$ be the Collatz map on the natural numbers, defined by: $$C(n) := \\begin{cases} n/2 & \\text{if} \\;n \\;\\text{even} \\\\ (3n+1)/2 & \\text{if} \\;n \\;\\text{odd} \\end{cases}$$ The inverse ...\n395 views\n\n### Identification of Invariant Sets for Discrete Dynamical Systems on the Positive Integers\n\nLet $\\phi:\\mathbb{N}\\times \\mathbb{N}^+\\rightarrow \\mathbb{N}^+$ be a dynamical system on the positive integers. Suppose we refer to the orbit of a periodic point of $\\phi$ as an invariant set of the ...\n2k views\n\n### Undecidable easy arithmetical statement\n\nIs there a basic arithmetic statement which is known to be undecidable ? By basic arithmetic statement I do mean an easy statement in the spirit of the Collatz conjecture . By the way is there some ...\n331 views\n\n### Are there infinitely many solutions of $2^k=3^z-1$ with $k,z \\in \\mathbb{N}$? [duplicate]\n\nThis question arose as an attempt to answer the following question Relaxed Collatz 3x+1 conjecture. I wanted to show that there is a solution of the equation $2^{k}=3^{z}(2n+1)-1$ for each $n\\geq 2$, ...",
null,
"1 vote\n481 views\n\n### A Zsigmondy-theorem-analogy in the generalized Collatz-problem $3x+\\rho$?\n\nRemark : I've found a rather trivial answer for this question and so very likely the premise of paralleling it with the Zsigmondy-theorem is wrong, so this question might better be retracted. I'll ...\nConsider the function $f$ on the prime numbers defined by $$f(p):= \\text{ the greatest prime factor of } 2p+1.$$ The iteration of $f$ from any prime $p<10^8$ converges to the cycle (3,7,5,11,23,..."
]
| [
null,
"https://cdn.sstatic.net/Img/user.svg",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.83031684,"math_prob":0.98877406,"size":14939,"snap":"2023-40-2023-50","text_gpt3_token_len":4331,"char_repetition_ratio":0.17308336,"word_repetition_ratio":0.021792764,"special_character_ratio":0.29158577,"punctuation_ratio":0.11366667,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.998697,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-23T05:04:09Z\",\"WARC-Record-ID\":\"<urn:uuid:877bc159-e49e-457e-b43d-6e4eb2928ec2>\",\"Content-Length\":\"297379\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2c93fc38-4c26-4faa-886f-f9e84214c39a>\",\"WARC-Concurrent-To\":\"<urn:uuid:1634c2ec-9488-46c8-94ec-4b3cc46cec81>\",\"WARC-IP-Address\":\"104.18.10.195\",\"WARC-Target-URI\":\"https://mathoverflow.net/questions/tagged/collatz-conjecture\",\"WARC-Payload-Digest\":\"sha1:XX3YTLH3QN2UGELISHW2ZTNYQQX6QBY4\",\"WARC-Block-Digest\":\"sha1:WIIG6HKUEPX6BVZ6XLQ7Q4BTAYFNFEKB\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233506479.32_warc_CC-MAIN-20230923030601-20230923060601-00839.warc.gz\"}"} |
https://onlinejudge.org/board/viewtopic.php?f=29&t=6681&p=40121 | [
"## 10703 - Free spots\n\nModerator: Board moderators\n\nMartin Macko\nA great helper\nPosts: 481\nJoined: Sun Jun 19, 2005 1:18 am\nLocation: European Union (Slovak Republic)\n\n### Re: >>10703 need help....\n\nSuppose you have a rectangular grid drawn on a paper. You draw some filled rectangles on the paper. Your task is to find the area that is not filled.\n\nCode: Select all\n\n``````5 5 2\n1 1 3 2\n3 0 3 5\n``````\nFor this input the grid would be like this (\".\" empty, \"F\" filled)\n\nCode: Select all\n\n`````` 12345\n1 ..F..\n2 .FFF.\n3 .FFF.\n4 ..F..\n5 ..F..\n``````\n\nmohsincsedu\nLearning poster\nPosts: 63\nJoined: Tue Sep 20, 2005 12:31 am\nLocation: Dhaka\nContact:\n\n### 10703 need help!!!\n\nHello All.....\nMay be i do not understand What the problem says!!!!!!!!\nPlz explain.\nI got WA.\nhere is my coding:\n\nCode: Select all\n\n``````int W,H,N,i,j,x1,x2,y1,y2,k,max_x,min_x,max_y,min_y;\nlong long count;\n\nwhile(scanf(\"%d %d %d\",&W,&H,&N)==3)\n{\nif(!W&&!H&&!N)\nbreak;\nfor(i = 0; i < W; i++)\nfor(j = 0; j < H; j++)\nboard[i][j] = '0';\nfor(k = 0; k < N; k++ )\n{\nscanf(\"%d %d %d %d\",&x1,&y1,&x2,&y2);\nif(x1>x2)\n{\nmax_x = x1;\nmin_x = x2;\n}\nelse\n{\nmax_x = x2;\nmin_x = x1;\n}\nif(y1>y2)\n{\nmax_y = y1;\nmin_y = y2;\n}\nelse\n{\nmax_y = y2;\nmin_y = y1;\n}\nfor(i = min_x; i < max_x; i++)\n{\nfor(j = min_y; j < max_y; j++)\n{\nboard[i][j] = '1';\n}\n}\n}\ncount = 0;\nfor(i = 0; i < W; i++)\nfor(j = 0; j < H; j++)\nif(board[i][j]=='0')\ncount++;\nif(!count)\nprintf(\"There is no empty spots.\\n\");\nelse if(count==1)\nprintf(\"There is one empty spot.\\n\");\nelse\nprintf(\"There is %lld empty spots.\\n\",count);\n}``````\n\nCho\nA great helper\nPosts: 274\nJoined: Wed Oct 20, 2004 11:51 pm\nLocation: Hong Kong\nIt will fail with this:\n2 2 1\n1 1 1 1\n0 0 0\nOutput:\n3\n\nBut I don't think you code can pass the sample io. And even you submit it, you should get TLE intead of WA.\n\nmohsincsedu\nLearning poster\nPosts: 63\nJoined: Tue Sep 20, 2005 12:31 am\nLocation: Dhaka\nContact:\nhi Cho..\nI do not understant!!!! Why TLE???\ni changed my code:\nBut WA\n\nCode: Select all\n\n``````for(i = min_x-1; i < max_x; i++)\n{\nfor(j = min_y-1; j < max_y; j++)\n{\nboard[i][j] = '1';\n}\n}\n``````\nPlz help me!!!:(\n\nSolaris\nLearning poster\nPosts: 99\nJoined: Sun Apr 06, 2003 5:53 am\nContact:\nThere is 83470 empty spots.\nTry by changing is to are",
null,
"Where's the \"Any\" key?\n\nmohsincsedu\nLearning poster\nPosts: 63\nJoined: Tue Sep 20, 2005 12:31 am\nLocation: Dhaka\nContact:\nThanks Solaris.................................\nI got Acc..",
null,
"):)):))\n\nxintactox\nNew poster\nPosts: 14\nJoined: Thu Dec 01, 2005 3:17 pm\nLocation: Brazil\n\n### Here is what I did...\n\nI did the following algorthm to get AC:\n\n1) Initialized an array of bool board, all true;\n2)Read the sub_boards. This is an important point, because X1,Y1,X2,Y2 are NOT NECESSARILY given in that order. So you need to swap X1 and X2 if X1 > X2, and swap Y1 and Y2 if Y1 if Y1 > Y2.\n3) With 2 nested loops I marked each sub_board, marking false into each position of the main board. Start at x1,y1 and go through the board until u reach x2, y2;\n4) After that, just scan the board with two loops, counting the number of positions setted to true.\n5) Pay attention to the format of the output.\nZero \"true positions\" means\nThere is no empty spots.\nOne \"true position\" means\nThere is one empty spots.\nMore than one \"true positions\" means\nThere are <true positions> empty spots.\n\nAnd Be Happy!\n\naltaf hussain(sust_2002)\nNew poster\nPosts: 10\nJoined: Sat Aug 19, 2006 7:23 pm\nContact:\nhi,\ni am getting WA in that problem.\nmy program generates good ans for all the inputs in the board.\nwill any one help me.\nhere is my code:\n\nCode: Select all\n\n``````#include<stdio.h>\n#define sz 502\n\nint main()\n{\nlong arr[sz][sz],w,h,sub,s,i,j,x1,y1,x2,y2,flag=0,temp,count;\nwhile(scanf(\"%ld %ld %ld\",&w,&h,&sub)==3 && (w!=0 ||h!=0 || sub!=0 ))\n{\nfor(i=1;i<=w;i++)\nfor(j=1;j<=h;j++)\narr[i][j]=1;\ncount = 0;\nfor(s=0;s<sub;s++)\n{\nscanf(\"%ld %ld %ld %ld\",&x1,&y1,&x2,&y2);\nif(x1>x2)\n{\ntemp =x2;\nx2=x1;\nx1=temp;\n}\nif(y1>y2)\n{\ntemp =y2;\ny2=y1;\ny1=temp;\n}\nfor(i=x1;i<=x2;i++)\nfor(j=y1;j<=y2;j++)\narr[i][j]=0;\n}\nfor(i=1;i<=w;i++)\nfor(j=1;j<=h;j++)\nif(arr[i][j]==1)\ncount++;\nif(count==0)\nprintf(\"There is no empty spots.\\n\");\nelse if(count==1)\nprintf(\"There is one empty spots.\\n\");\nelse\nprintf(\"There are %ld empty spots.\\n\",count);\n}\nreturn 0;\n}\n\n``````\n\nMushfiqur Rahman\nLearning poster\nPosts: 56\nJoined: Tue Jun 13, 2006 5:18 pm\nContact:\nAltaf Wrote\nhi,\ni am getting WA in that problem.\nmy program generates good ans for all the inputs in the board.\nwill any one help me.\nhere is my code:\nI found your bug. The problem is in the following line\n\n\"else if(count==1)\nprintf(\"There is one empty spots.\\n\");\n\nYou should check the output format for output \"one\" .\n\nkolpobilashi\nLearning poster\nPosts: 54\nJoined: Mon Jan 02, 2006 3:06 am\nContact:",
null,
"i am getting tired can't find out the bug....i think my outputs are also ok.plz anyone help....\n\nCode: Select all\n\n``cut..``\nLast edited by kolpobilashi on Sat Nov 11, 2006 6:01 pm, edited 1 time in total.\nSanjana\n\nJan\nGuru\nPosts: 1334\nJoined: Wed Jun 22, 2005 10:58 pm\nContact:\nTry the following I/O set..\n\nInput:\n\nCode: Select all\n\n``````500 500 0\n0 0 0``````\nOutput:\n\nCode: Select all\n\n``There are 250000 empty spots.``\nHope it helps.\nAmi ekhono shopno dekhi...\nHomePage\n\nkolpobilashi\nLearning poster\nPosts: 54\nJoined: Mon Jan 02, 2006 3:06 am\nthanx a lot JAN...didn think abt that input...",
null,
""
]
| [
null,
"https://onlinejudge.org/board/images/smilies/icon_confused.gif",
null,
"https://onlinejudge.org/board/images/smilies/icon_smile.gif",
null,
"https://onlinejudge.org/board/images/smilies/icon_frown.gif",
null,
"https://onlinejudge.org/board/images/smilies/icon_biggrin.gif",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.60546166,"math_prob":0.95369995,"size":2082,"snap":"2020-10-2020-16","text_gpt3_token_len":868,"char_repetition_ratio":0.13763234,"word_repetition_ratio":0.27855152,"special_character_ratio":0.49711815,"punctuation_ratio":0.278481,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9536955,"pos_list":[0,1,2,3,4,5,6,7,8],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-21T22:12:06Z\",\"WARC-Record-ID\":\"<urn:uuid:0d9ac835-a0bf-43e3-8f8a-226e6650cb2d>\",\"Content-Length\":\"74756\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1fcb4827-045c-4c42-ae5b-ec05c9c30b72>\",\"WARC-Concurrent-To\":\"<urn:uuid:fcc7904c-49cf-4d08-b1c1-b2d12c52f701>\",\"WARC-IP-Address\":\"51.255.0.192\",\"WARC-Target-URI\":\"https://onlinejudge.org/board/viewtopic.php?f=29&t=6681&p=40121\",\"WARC-Payload-Digest\":\"sha1:2Q6IY3NYU2A7VNYOHCSG6A67R7XSYXEY\",\"WARC-Block-Digest\":\"sha1:RWLKYUFOHTGALK3IJPKTLTJJWP4HUEHU\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875145538.32_warc_CC-MAIN-20200221203000-20200221233000-00354.warc.gz\"}"} |
https://www.adventuresinmachinelearning.com/efficient-sorting-made-simple-merge-sort-in-python/ | [
"# Efficient Sorting Made Simple: Merge Sort in Python\n\nSorting data is an essential aspect of computer programming. Whether youre dealing with data from an online shopping cart or a to-do list, sorting helps to arrange the information in a meaningful way.\n\nAlgorithms such as the Divide and Conquer approach, recursion, and merge sort help programmers tackle sorting efficiently. In this article, we will explore the merge sort algorithm and how it works in Python.\n\n## Overview of Merge Sort:\n\nMerge sort is an efficient sorting algorithm designed to sort a list of elements in ascending or descending order. The algorithm uses the Divide and Conquer approach to break the list into smaller sub-lists, before recursively sorting them.\n\nThe final step merges the sub-lists back into a complete list in sorted order. Merge Sort runs in O(nlogn) time complexity, which means it is efficient, even when dealing with large data sets.\n\n## Working of Merge Sort in Python:\n\nPython’s simplicity and versatility make it an ideal programming language for implementing merge sort. In Python, merge sort works by dividing a list of elements into two halves until each sub-list contains only one element.\n\nThis is achieved using recursion, which is an essential concept in computer programming language.\n\nThe comparison between individual elements allows the Python Merge Sort algorithm to sort a list of elements.\n\nThe elements are then recursively divided until the sub-lists have only one element each. In other words, the algorithm applies the Divide and Conquer approach to break down the data.\n\nFinally, the elements from the sub-lists are sorted and merged to obtain the final sorted list. Example of Merge Sort in Python:\n\nLets consider an example to further clarify how Merge Sort works in Python.\n\nSuppose we have a list `[90, 45, 67, 23, 12, 98, 32]`. The Merge Sort algorithm works as follows:\n\n1.\n\nThe list is divided into two sub-lists: `[90, 45, 67, 23]` and `[12, 98, 32]`\n\n2. The sub-lists are recursively divided into smaller sub-lists until each sub-list has only one element.\n\n3. The individual elements from the sub-lists are compared, and the sub-lists are sorted.\n\n4. The sorted sub-lists are then merged to obtain the final sorted list.\n\nThe result of applying the Merge Sort algorithm to the list `[90, 45, 67, 23, 12, 98, 32]` is `[12, 23, 32, 45, 67, 90, 98]`.\n\n## The Merge Sort algorithm can be broken down into the following steps:\n\n1.\n\nRecursively divide the list into sub-lists until each sub-list has only one element. 2.\n\nCompare the elements in each sub-list. 3.\n\nSort the elements in each sub-list. 4.\n\nMerge the sorted sub-lists into a complete sorted list.\n\n## Implementation of Merge Sort in Python:\n\nTo implement Merge Sort in Python, the following code can be used:\n\n“`\n\ndef merge_sort(arr):\n\nif len(arr) > 1:\n\nmid = len(arr) // 2\n\nleft_arr = arr[:mid]\n\nright_arr = arr[mid:]\n\nmerge_sort(left_arr)\n\nmerge_sort(right_arr)\n\ni = j = k = 0\n\nwhile i < len(left_arr) and j < len(right_arr):\n\nif left_arr[i] < right_arr[j]:\n\narr[k] = left_arr[i]\n\ni += 1\n\nelse:\n\narr[k] = right_arr[j]\n\nj += 1\n\nk += 1\n\nwhile i < len(left_arr):\n\narr[k] = left_arr[i]\n\ni += 1\n\nk += 1\n\nwhile j < len(right_arr):\n\narr[k] = right_arr[j]\n\nj += 1\n\nk += 1\n\n“`\n\nThis code implements the above-mentioned Merge Sort algorithm steps in Python.\n\nThe `merge_sort()` function recursively divides the original list `arr` into two sub-lists. The left and right sub-lists are then sorted, and finally merged into a sorted complete list.\n\nThe time complexity of Merge Sort in Python is `O(nlogn)`. Time Complexity of Merge Sort:\n\nMerge Sort is one of the most efficient sorting algorithms, boasting average and worst-case time complexity of `O(nlogn)`.\n\nThe algorithm’s performance is highly scalable, meaning it maintains its efficiency even when sorting large data sets. However, Merge Sort has a space complexity of `O(n)`, which could lead to memory issues when sorting much larger data sets.\n\n## Conclusion:\n\nIn conclusion, the Merge Sort algorithm is a highly efficient sorting algorithm that ensures the list of elements is sorted in ascending or descending order. Python provides an excellent platform for implementing the Merge Sort algorithm using simple, recursive code.\n\nMerge Sort allows you to break down larger data sets into smaller, more manageable chunks, reducing memory consumption. With the above explanation and code snippets, you can now apply the Merge Sort algorithm to your Python projects without worries.\n\nIn conclusion, the Merge Sort algorithm is a powerful and efficient sorting algorithm that helps in sorting a list of elements in ascending or descending order. Using Python, it can be easily implemented using a simple and recursive code.\n\nThe Divide and Conquer approach and recursion concepts help reduce memory consumption while sorting large data sets. With the time complexity of O(nlogn), Merge Sort is ideal for sorting large amounts of information.\n\nImplementing Merge Sort using Python will enable sorting tasks in various data-driven applications."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.83627695,"math_prob":0.9122362,"size":5004,"snap":"2023-40-2023-50","text_gpt3_token_len":1122,"char_repetition_ratio":0.173,"word_repetition_ratio":0.089790896,"special_character_ratio":0.23421264,"punctuation_ratio":0.12382934,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9963268,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-02T19:19:01Z\",\"WARC-Record-ID\":\"<urn:uuid:594a9873-0f29-43c2-9d39-3e332d514c62>\",\"Content-Length\":\"55839\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:34b099a4-75c0-484f-8d7d-577f944ba12c>\",\"WARC-Concurrent-To\":\"<urn:uuid:96644576-8488-43da-8265-932112013969>\",\"WARC-IP-Address\":\"104.21.93.163\",\"WARC-Target-URI\":\"https://www.adventuresinmachinelearning.com/efficient-sorting-made-simple-merge-sort-in-python/\",\"WARC-Payload-Digest\":\"sha1:QUYW6XFIBXTPDC7G362MPLOPO7NP3SOZ\",\"WARC-Block-Digest\":\"sha1:RGXHUMGARHTNPFWBBMZDWZTGQ4UTYVRJ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100448.65_warc_CC-MAIN-20231202172159-20231202202159-00859.warc.gz\"}"} |
https://www.freeeconhelp.com/2011/09/finding-demand-curves-for-public-goods.html | [
"Finding demand curves for public goods, and social demand curves - FreeEconHelp.com, Learning Economics... Solved!\n\n## 9/24/11\n\nThis post goes over a public goods question, where the individual demand curves need to summed up in order to get a legitimate social demand curve. The reason we need a social demand curve is because everyone benefits from the good in question, so if each consumer only buys until they are satisfied, then they are ignoring the potential benefits to others in the market.\n\nFour towns share a common water source. By buying open land along the watershed (area from which the water flows) the towns can preserve its purity from sewage, road runoff, and such. The land demand schedule for each town based on water treatment costs saved can be expressed as\n\nP = \\$34,000-10Qd\n\nwhere Qd is acres purchased and P is the price the town would be willing to pay.\n\na. If the cost of land is \\$30,000 per acre, how much land will be purchased if each town operates independently? How much if they form a joint commission for land purchases? Graph the different possibilities. (If the economic theory is not clear, imagine representatives of the four towns sitting around a table, discussing the costs and benefits of purchasing different amounts of land.)\n\nb. Which is the socially efficient solution and why? How would the answers change if the price of land was \\$36,000 per acre?\nc. Discuss this in terms of the demand for clean water. Is clean water a public good in this case? Can water generally be considered a public good?\n\nThe first step to answering a. is to plug in the price of land into the demand function:\n\\$30,000 = \\$34,000 – 10*Qd\nIf we add 10Qd to both sides, subtract 30,000 from both sides, and then divide by 10, we will get:\nQd = 400\n\nIf each town operates independently then they will each buy 400 acres of land, because that is what their individual demand curves would suggest.\n\nIf the representatives get together, they will realize that when one town buys an acre of land, the other three benefit from that purchase. In order to internalize this positive externality, we need to account for it. To that to this problem, we will need to add together the 4 different demand functions, and come up with a new one (this process is similar to the way the demand curve for a public good is created).\n\nSo our new demand function will be P = \\$136,000 – 40Qd, and the associated graph will look like:\n\nIn the above graph, the D curve represents each town’s individual demand curve, and it shows that the intersection between the given price and the individual demand curve occurs at Q = 400. If they each operate independently then a total of 1,600 acres get purchased. However when we construct the social demand line, we see that the new intersection occurs at a Q of 2650, which is much higher than the 1600 with everyone operating independently.\n\nWe can solve for Qd with the new demand function. To do this we have to add 40Qd to both sides, subtract 30,000 from both sides, and then divide by 40, and we get:\nQd = 2650\n\nThis joint venture amount is much larger than the individual amount because the towns now understand that when they purchase more, they are benefiting their neighbors as well. Under this scenario, each town would purchase 662.5 acres instead of 400.\n\nFor part b we need to consider the benefits to society, so the social demand curve is the correct choice. The reason we need to use the social demand curve is because we have externalities occurring in the market that need to be accounted for. You could also use the definition of a public good, which states that the individual demand curves for the public good need to summed up vertically instead of horizontally as they are for normal (non-public) goods.\n\nNow if the price increased to \\$36,000 per acre, no land would be bought if each town operated independently. This is because the optimal amount of land being bought would be negative, and since this is not possible, we default to zero.\n\nHowever, if we sum up the demand curves, and account for the externality then a positive amount would be bought, see the graph below:\n\nWith a price of \\$36,000, the optimal amount of land bought jointly would be:\n\\$36,000 = \\$136,000 – 40Qd\nAdd 40Qd to both sides, subtract 36,000 from both sides, and divide by 40 to get:\nQd = 2,500\nSo a total of 2,500 acres would be purchased, meaning 625 acres would be bought by each town.\n\nFor the last question, water is definitely a public good. But water can’t always be considered a public good, for example bottled water is consumed by someone then disposed of. I suppose dirty water would be a public good, but clean fresh water is definitely rival (only one person can use it) but not necessarily excludible is it is a lake or aquifer. Also, recreation on lakes and the ocean would be considered a public good. It really depends on how exactly you look at it."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.9616679,"math_prob":0.932904,"size":4762,"snap":"2021-43-2021-49","text_gpt3_token_len":1065,"char_repetition_ratio":0.12967634,"word_repetition_ratio":0.02813599,"special_character_ratio":0.23708525,"punctuation_ratio":0.108829565,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9560007,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-19T08:10:43Z\",\"WARC-Record-ID\":\"<urn:uuid:882cef57-b2d4-491b-8e36-64490a6872a4>\",\"Content-Length\":\"189140\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:9aa66542-775d-4927-9feb-d7283c0c6c50>\",\"WARC-Concurrent-To\":\"<urn:uuid:fbc12af7-5644-4a5e-945c-f6e49b778e59>\",\"WARC-IP-Address\":\"104.21.69.67\",\"WARC-Target-URI\":\"https://www.freeeconhelp.com/2011/09/finding-demand-curves-for-public-goods.html\",\"WARC-Payload-Digest\":\"sha1:Y5JRTGAFU56MZFO5FF37JHCAS7AGLMST\",\"WARC-Block-Digest\":\"sha1:BRBSLTFASN5SYNAOP6NMEYOB4YRLGTZQ\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323585246.50_warc_CC-MAIN-20211019074128-20211019104128-00472.warc.gz\"}"} |
https://gishomework.com/unit-7-rational-exponents-radicals-and-complex-numbers-unit-project/ | [
"# Unit 7: Rational Exponents, Radicals, And Complex Numbers Unit Project.\n\nUnit 7: Rational Exponents, Radicals, and Complex Numbers Unit Project.\n\n1. Write",
null,
"as a single power of 2. Carefully show each step of your work.\n\n2. Police departments find it very useful to be able to approximate driving speeds in skidding accidents. If the road surface is wet concrete the function is",
null,
"used, where S(x) is the speed of the car in miles per hour and x is the distance skidded in feet.\n\na. Fill out the table for each of the distances shown below. Round to the nearest whole number:\n\nb. Find the distance the car will skid if the speed of the car is 60 miles per hour. Round to two decimal places.\n\n3. Complex numbers are used by engineers and physicists to measure electrical circuits. To measure voltage, they use the formula E = I • Z, where E is voltage in volts, I is the current in amps, and Z is impedance, or resistance, in ohms.\n\na. Find the voltage for an electrical circuit if the current is 3 – 4i amps and the impedance is 2 + i ohms. Simplify your answer completely.\n\nb. Find the Impedance for an electrical circuit if the voltage is 18 – 24i and the current is 6 – 3i amps. Simplify your answer completely.\n\nBasic features\n• Free title page and bibliography\n• Unlimited revisions\n• Plagiarism-free guarantee\n• Money-back guarantee"
]
| [
null,
"https://www.sweetstudy.com/questions/unit-7-rational-exponents-radicals-and-complex-numbers-unit-project",
null,
"https://www.sweetstudy.com/questions/unit-7-rational-exponents-radicals-and-complex-numbers-unit-project",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.9295723,"math_prob":0.9879005,"size":1130,"snap":"2023-40-2023-50","text_gpt3_token_len":275,"char_repetition_ratio":0.11190053,"word_repetition_ratio":0.028436018,"special_character_ratio":0.23893805,"punctuation_ratio":0.1322314,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99562174,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,2,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-29T03:22:35Z\",\"WARC-Record-ID\":\"<urn:uuid:594afec9-2d21-4df9-95dd-bf7234cbc4c4>\",\"Content-Length\":\"36871\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:9cf46320-0adc-49d1-966c-13c1284c51ec>\",\"WARC-Concurrent-To\":\"<urn:uuid:c1c225b8-ec11-41e1-818e-1aed3297508f>\",\"WARC-IP-Address\":\"68.65.122.244\",\"WARC-Target-URI\":\"https://gishomework.com/unit-7-rational-exponents-radicals-and-complex-numbers-unit-project/\",\"WARC-Payload-Digest\":\"sha1:2YZ3Z2TPL7XGEOXE5WTVV3QIYI6O7W3Q\",\"WARC-Block-Digest\":\"sha1:DEXLMJHSISK2DTSLYWWSR3MUF6E5L225\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233510481.79_warc_CC-MAIN-20230929022639-20230929052639-00809.warc.gz\"}"} |
https://www.examfriend.in/questions-and-answers/MHT-CET-2016/Physics/General-questions/0.html | [
"12345>>\n1.\n\nTwo coherent sources P and Q produce interference at point A on the screen where there is a dark band that is formed between 4th bright band and 5th bright band. The wavelength of light used is 6000 Å . The path difference between PA and QA is\n\nA) $1.4 \\times 10^{-4}$ cm\n\nB) $2.7 \\times 10^{-4}$ cm\n\nC) $4.5 \\times 10^{-4}$ cm\n\nD) $6.2 \\times 10^{-4}$ cm\n\n2.\n\nA galvanometer of resistance 30$\\Omega$ is connected to a battery of emf 2 V with 1970 $\\Omega$ resistance in series. A full scale deflection of 20 divisions is obtained in the galvanometer. To reduce the deflection to 10 divisions, the resistance in series required is\n\nA) 4030 $\\Omega$\n\nB) 4000 $\\Omega$\n\nC) 3970 $\\Omega$\n\nD) 2000 $\\Omega$\n\n3.\n\nThe L-C parallel resonant circuit\n\nA) has a very high impedence\n\nB) has a very high current\n\nC) acts as resistance of very low value\n\nD) has zero impedance\n\n4.\n\nIn Bohr 's theory of hydrogen atom, the electron jumps from higher orbit n to lower orbit p. The wavelength will be minimum for the transition\n\nA) n=5 to p=4\n\nB) n=4 to p=3\n\nC) n=3 to p=2\n\nD) n=2 to p=1\n\n5.\n\nA disc of radius R and thickness $\\frac {R}{6}$ has moment of interia l about an axis passing through its centre and perpendicular to its plane. Disc is melted and recast into a solid sphere. The moment of interia of a sphere about its diameter is\n\nA) $\\frac{l}{5}$\n\nB) $\\frac{l}{6}$\n\nC) $\\frac{l}{32}$\n\nD) $\\frac{l}{64}$\n\n12345>>"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.5886868,"math_prob":0.9993895,"size":832,"snap":"2022-40-2023-06","text_gpt3_token_len":303,"char_repetition_ratio":0.123188406,"word_repetition_ratio":0.0,"special_character_ratio":0.43269232,"punctuation_ratio":0.061728396,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9989759,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-02-06T02:21:07Z\",\"WARC-Record-ID\":\"<urn:uuid:1d419a45-89d9-4ba4-b593-63eea7fabc16>\",\"Content-Length\":\"41512\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e2a220f9-5caa-46cd-9838-d14e06e362d5>\",\"WARC-Concurrent-To\":\"<urn:uuid:95f087a8-8a0c-4d2f-b839-7cc61e8c302a>\",\"WARC-IP-Address\":\"162.222.225.84\",\"WARC-Target-URI\":\"https://www.examfriend.in/questions-and-answers/MHT-CET-2016/Physics/General-questions/0.html\",\"WARC-Payload-Digest\":\"sha1:5FUZOQUMSACMQTF65MJEQMEW6ITOZCDB\",\"WARC-Block-Digest\":\"sha1:KUN5G72NP5IDG24KBCQPFEKOJHIHZQ46\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764500303.56_warc_CC-MAIN-20230206015710-20230206045710-00741.warc.gz\"}"} |
https://cs.stackexchange.com/questions/18797/minimum-spanning-tree-vs-shortest-path/18802 | [
"# Minimum spanning tree vs Shortest path\n\nWhat is the difference between minimum spanning tree algorithm and a shortest path algorithm?\n\nIn my data structures class we covered two minimum spanning tree algorithms (Prim's and Kruskal's) and one shortest path algorithm (Dijkstra's).\n\nMinimum spanning tree is a tree in a graph that spans all the vertices and total weight of a tree is minimal. Shortest path is quite obvious, it is a shortest path from one vertex to another.\n\nWhat I don't understand is since minimum spanning tree has a minimal total weight, wouldn't the paths in the tree be the shortest paths? Can anybody explain what I'm missing?\n\nAny help is appreciated.\n\n• Here is my example to a similar question which proves that the minimum spanning tree is not same with a shortest path. cs.stackexchange.com/a/43327/34363 – atakanyenel Jun 8 '15 at 0:50\n• Also, this might be interesting. Maximum spanning tree has paths between nodes where each path is a bottleneck path i.e. instead of minimizing the sum you maximize the minimum weight. Maybe there is a similar relation between minimum spanning tree. – Eugene May 25 '17 at 19:44\n\n## 8 Answers\n\nConsider the triangle graph with unit weights - it has three vertices $x,y,z$, and all three edges $\\{x,y\\},\\{x,z\\},\\{y,z\\}$ have weight $1$. The shortest path between any two vertices is the direct path, but if you put all of them together you get a triangle rather than a tree. Every collection of two edges forms a minimum spanning tree in this graph, yet if (for example) you choose $\\{x,y\\},\\{y,z\\}$, then you miss the shortest path $\\{x,z\\}$.\n\nIn conclusion, if you put all shortest paths together, you don't necessarily get a tree.\n\nYou are right that the two algorithms of Dijkstra (shortest paths from a single start node) and Prim (minimal weight spanning tree starting from a given node) have a very similar structure. They are both greedy (take the best edge from the present point of view) and build a tree spanning the graph.\n\nThe value they minimize however is different. Dijkstra selects as next edge the one that leads out from the tree to a node not yet chosen closest to the starting node. (Then with this choice, distances are recalculated.) Prim choses as edge the shortest one leading out of the tree constructed so far. So, both algorithms chose a \"minimal edge\". The main difference is the value chosen to be minimal. For Dijkstra it is the length of the complete path from start node to the candidate node, for Prim it is just the weight of that single edge.\n\nTo see the difference you should try to construct a few examples to see what happens, That is really instructive. The simplest example that shows different behaviour is a triangle $$x,y,z$$ with edges $$\\{x,y\\}$$ and $$\\{x,z\\}$$ of length 2, while $$\\{y,z\\}$$ has length 1. Starting in $$x$$ Dijkstra will choose $$\\{x,y\\}$$ and $$\\{x,z\\}$$ (giving two paths of length 2) while Prim chooses $$\\{x,y\\}$$ and $$\\{y,z\\}$$ (giving spanning tree of weight 3).",
null,
"As for Kruskal, that is slightly different. It solves the minimal spanning tree, but during execution it chooses edge that may not form a tree, they just avoid cycles. So the partial solutions may be disconnected. In the end you get a tree.\n\nThough Minimum Spanning Tree and Shortest Path algorithms computation looks similar they focus on 2 different requirements.\n\nIn MST, requirement is to reach each vertex once (create graph tree) and total (collective) cost of reaching each vertex is required to be minimum among all possible combinations.\n\nIn Shortest Path, requirement is to reach destination vertex from source vertex with lowest possible cost (shortest weight). So here we do not worry about reaching each vertex instead only focus on source and destination vertices and thats where lies the difference.\n\nHere is the example to clarify why MST not necessarily gives shortest path between 2 vertices.\n\n(A)----5---(B)----5---(C)\n| |\n|----------7----------|\n\n\nIn MST case, edges A-B. B-C will be on MST with total weight of 10. So cost of reaching A to C in MST is 10.\n\nBut in Shortest Path case, shortest path between A to C is A-C which is 7. A-C was never on MST.\n\nThe difference lies in what is the ultimate goal of this algorithms-\n\nDijkstra's - Here the goal is to reach from start to end. You are concerned about only this 2 points, and optimize your path accordingly.\n\nKrusal's - Here you can start from any point and have to visit all other points in the graph. So, you may not always choose the shortest path for any two points. Instead the focus is to choose the path that will lead you to a shorter path for all the other points.\n\nI think an example will make it clearer..",
null,
"The spanning tree looks like below. This is because if we add up the edges in this configuration, we get the least total cost possible: 2+5+14+4=25.\n\n(1) (4)\n\\ /\n(2)\n/ \\\n(3) (5)\n\n\nBy eyeballing the spanning tree you might falsely think that it gives you the shortest paths, but in practice it doesn't. As an example If we wanted to go from node (1) to (4) it would cost us 7. However if we used Dijkstra's algorithm on the original graph, we would find that we can go directly from node (1) to (4) with a cost of 5.\n\nThe key is to understand that they are different problems: The spanning tree looks to visit all nodes in one \"tour\", while shortest paths focuses on the the shortest path to one node at a time.\n\nAs an example, imagine you know the shortest route from your home to two different places A and B. Since the graph is directed, you can get to B from A but not vice versa. In this case, the route Home -> B is shorter than Home -> A -> B, so you're allowed to skip A. But for spanning trees, you must visit all nodes, so Home -> A -> B is the solution (Assuming that Home -> B -> A is more expensive than Home -> A -> B.\n\nPractical example to show the difference>\n\nSuppose you arrive by train in a town and want to get to your hotel.\n\nOption 1: Get a taxi: The taxi will take the shortest path to you hotel form the station. If the driver should follow a path along the shortest path tree centred on the station.\n\nOption 2: Take a bus. The bus company wants to cater for may people, not just you. The ideal path would take in all the key points in the town. So it will follow (*) a path along the minimum spanning tree. That's why the bus is slower, but as costs are shared it is cheaper.\n\n(*) Actually people would complain if the minimum spanning tree was used (the bus journey would be too long). So in practice it would be a mixed solution and would use an Alpha-Tree (half way between a minimum spanning tree and a shortest path tree).\n\n• Welcome to the site. I don't think your analogy is a good one, since the route taken by a bus doesn't seem to have much to do with spanning trees. In particular, it's not spanning (it doesn't visit every point in the town) and it's not a tree. Rather, it's some kind of path (or cycle) that visits or passes close to as many significant points as is reasonable, so that the route is reasonably useful to a reasonably large number of people. – David Richerby May 25 '17 at 15:49\n\nThey are based on two different properties. Minimum spanning tree is based on cut property whereas Shortest path is based on the edge relaxing property.\n\nA cut splits a graph into two components. It may involve multiple edges. In MST, we select the edge with the least weight.\n\nEdge relaxing says that given I know distance between A and B: dist(a,b) and dist between A and C: dist(a, c), if dist(a, b) + edge(b, c) is less than dist (a, c), then I can relax edge(a c). After relaxing all edges, we get the shortest path.\n\nI highly recommend watching the video on graph algorithms from professor Robert Sedgewick."
]
| [
null,
"https://i.stack.imgur.com/QRnRa.png",
null,
"https://i.stack.imgur.com/b6Ggp.png",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.9230871,"math_prob":0.96246153,"size":1520,"snap":"2021-21-2021-25","text_gpt3_token_len":356,"char_repetition_ratio":0.114116095,"word_repetition_ratio":0.0,"special_character_ratio":0.2375,"punctuation_ratio":0.10749186,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.991914,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,10,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-06-21T20:42:45Z\",\"WARC-Record-ID\":\"<urn:uuid:78f61b40-f5e3-4dff-be35-6c6eb310d006>\",\"Content-Length\":\"227574\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:23274def-ce56-4d60-8852-b3641fc8c26c>\",\"WARC-Concurrent-To\":\"<urn:uuid:8f564435-c196-4f8e-b519-d2bc7fd50999>\",\"WARC-IP-Address\":\"151.101.129.69\",\"WARC-Target-URI\":\"https://cs.stackexchange.com/questions/18797/minimum-spanning-tree-vs-shortest-path/18802\",\"WARC-Payload-Digest\":\"sha1:XTVVHUWDSZBEIMTWH6J5HEQ3ZCXV5CHW\",\"WARC-Block-Digest\":\"sha1:VVHWRKEE6WKKVYFSJ6SFU7RKOUKP7XOW\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-25/CC-MAIN-2021-25_segments_1623488289268.76_warc_CC-MAIN-20210621181810-20210621211810-00509.warc.gz\"}"} |
https://www.slideserve.com/search/continuous-distribution-ppt-presentation | [
"# 'Continuous distribution' presentation slideshows\n\n## Continuous Probability Distributions\n\nContinuous Probability Distributions. Chapter 7. GOALS. Understand the difference between discrete and continuous distributions. Compute the mean and the standard deviation for a uniform distribution . Compute probabilities by using the uniform distribution.\n\nBy Audrey\n(172 views)\n\n## Continuous Probability Distributions\n\nContinuous Probability Distributions. Chapter 8. 0. 1/3. 1/2. 1. 2/3. 8.1 Continuous Probability Distributions.\n\nBy lapis\n(181 views)\n\n## Continuous Probability Distributions\n\nContinuous Probability Distributions. A discrete random variable is a variable that can take on a countable number of possible values along a specified interval. Continuous Probability Distributions.\n\nBy brendan\n(335 views)\n\n## Pertemuan 05 Peubah Acak Kontinu dan Fungsi Kepekatannya\n\nPertemuan 05 Peubah Acak Kontinu dan Fungsi Kepekatannya. Matakuliah : I0272 – Statistik Probabilitas Tahun : 2005 Versi : Revisi. Learning Outcomes. Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : Mahasiswa akan dapat menghitung nilai harapan, dan ragam peubah acak kontinu.\n\nBy deon\n(250 views)\n\n## Physics 2102\n\nPhysics 2102 Gabriela Gonz á lez. Physics 2102 . Electric Potential. Electric potential energy, electric potential. Electric potential energy of a system = = - work (against electrostatic forces) needed to needed to build the system U= - W\n\nBy morrie\n(130 views)\n\n## Variance and Standard Deviation\n\nVariance and Standard Deviation. The most important measures of “spread” or dispersion. Sample Variance. The variance is the average squared deviation away from the mean. For a sample of size n, divide by n – 1. For a population, divide by n. Sample mean x. The standard deviation.\n\nBy clare\n(186 views)\n\n## Physics 2102\n\nPhysics 2102 Gabriela Gonz á lez. Physics 2102 . Electric Potential. Electric Potential on Perpendicular Bisector of Dipole. You bring a charge of -3C from infinity to a point P on the perpendicular bisector of a dipole as shown. Is the work that you do: Positive? Negative? Zero?. a.\n\nBy oria\n(115 views)\n\n## Classification.. continued\n\nClassification.. continued. Prediction and Classification. Last week we discussed the classification problem.. Used the Naïve Bayes Method Today..we will dive into more details.. But first how do we evaluate classifier. Abstract Binary Classification Problem.\n\nBy syshe\n(99 views)\n\n## QRA INCLUDING UTILITY FOR DECISION SUPPORT OF H2 INFRASTRUCTURE LICENSING\n\nQRA INCLUDING UTILITY FOR DECISION SUPPORT OF H2 INFRASTRUCTURE LICENSING. Hans J. Pasman and William J. Rogers Mary Kay O’Connor Process Safety Center, Artie McFerrin Department of Chemical Engineering Texas A&M University, College Station, Texas 77843-3122, USA, [email protected].\n\nBy brooks\n(125 views)\n\n## Continuous Distribution: Beta, Cauchy, Lognormal and Double Exponential\n\nContinuous Distribution: Beta, Cauchy, Lognormal and Double Exponential. Walter Quispe Vargas. Beta Distribution. Beta Distribution. Beta Distribution. Cauchy Distribution. Cauchy Distribution. Lognormal Distribution. Lognormal Distribution. Double Exponential Distribution.\n\nBy rollo\n(98 views)\n\n## Practice Problems\n\nPractice Problems. Actex 3, 4, 5. Section 3 -- #3. A box contains 4 red balls and 6 white balls. A sample of size 3 is drawn without replacement from the box. What is the probability of obtaining 1 red ball and 2 white balls, given that at least 2 of the balls in the sample are white ?\n\nBy aulani\n(188 views)\n\n## Statistics (1) Fall 2009\n\nStatistics (1) Fall 2009. Lecture Seven (Chapter Seven) Continuous Probability Distributions. Continuous Probability Distributions. GOALS. Understand the difference between discrete and continuous distributions. Compute the mean and the standard deviation for a uniform distribution .\n\nBy tatum\n(180 views)\n\n## Variations in stock prices appear to have a strong random component.\n\nVariations in stock prices appear to have a strong random component. In pricing, say, a call option, we are essentially involved in trying to predict the future of a randomly varying quantity. For example the graph above shows the variation in shares of Boot’s over a year.\n\nBy damara\n(94 views)\n\n## Lectures prepared by: Elchanan Mossel Yelena Shvets\n\nLectures prepared by: Elchanan Mossel Yelena Shvets. Cumulative Distribution Function. Definition: For a random variable X, the function F(x) = P(X · x), is called the cumulative distribution function (cdf). A distribution is called continuous when the cdf is continuous.\n\nBy masato\n(54 views)\n\n## Distributions and expected value\n\nDistributions and expected value. Onur DOĞAN. Random Variable. Random Variable. Let S be the sample space for an experiment. A real-valued function that is defined on S is called a random variable. Distributions Probability Distributions. Discrete Distributions. Example 1.\n\nBy max\n(142 views)\n\n## Nonparametric Statistics\n\nNonparametric Statistics. aka, distribution-free statistics makes no assumption about the underlying distribution, other than that it is continuous the data can be non-quantitative, rank order, etc. Competitors of the t- and F- procedures we used in chapters 11 and 12.\n\nBy ilana\n(239 views)\n\n## Normal Distribution\n\nNormal Distribution. This is a continuous distribution. The Standard Normal Distribution. All normal distributions have two parameters, the mean and the standard deviation For the standard normal distribution:. Properties of the ND pdf. Normal Distribution Example.\n\nBy anne\n(93 views)\n\n## Outline\n\nOutline. input analysis goodness of fit randomness independence of factors homogeneity of data Model 05-01. Chi-Square Test. arbitrary data grouping possibly good fit in one but bad in other groupings. Kolmogorov-Smirnov Test. advantages\n\nBy orea\n(124 views)\n\n## STATISTICS PROJECT\n\nSTATISTICS PROJECT. Priya Mariam Simon Aparna Rajeev Sudhit Sethi Jinto Antony Kurian. Objective.\n\nBy catherine-sallas\n(128 views)\n\n## MULTIFACTORIAL AND POLYGENIC INHERITANCE\n\nMULTIFACTORIAL AND POLYGENIC INHERITANCE. Polygenic and multifactorial inheritance.\n\nBy achilles-tocci\n(280 views)\n\nView Continuous distribution PowerPoint (PPT) presentations online in SlideServe. SlideServe has a very huge collection of Continuous distribution PowerPoint presentations. You can view or download Continuous distribution presentations for your school assignment or business presentation. Browse for the presentations on every topic that you want."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.7451453,"math_prob":0.76020163,"size":5363,"snap":"2021-21-2021-25","text_gpt3_token_len":1215,"char_repetition_ratio":0.1696212,"word_repetition_ratio":0.0655308,"special_character_ratio":0.1909379,"punctuation_ratio":0.16846652,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9767567,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-06-16T20:26:06Z\",\"WARC-Record-ID\":\"<urn:uuid:5b77ae60-f684-465c-b19e-4020544c04ca>\",\"Content-Length\":\"46613\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:be0390ca-9444-4507-8fe5-2c8bb1521359>\",\"WARC-Concurrent-To\":\"<urn:uuid:863b77bd-1f0e-4ace-8b58-b7fd2d725024>\",\"WARC-IP-Address\":\"52.37.133.166\",\"WARC-Target-URI\":\"https://www.slideserve.com/search/continuous-distribution-ppt-presentation\",\"WARC-Payload-Digest\":\"sha1:SKAP4DNFJERVN4OQOWGDHOQL6PCI62ZM\",\"WARC-Block-Digest\":\"sha1:NM2F3DSFXLL5YBVZUAOSH5PYL74WFNIG\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-25/CC-MAIN-2021-25_segments_1623487626008.14_warc_CC-MAIN-20210616190205-20210616220205-00078.warc.gz\"}"} |
https://www.zoftino.com/introduction-to-java-programming | [
"## Introduction to Java Programming\n\nJava is a powerful object oriented programming language. Java programs are translated into bytecode by java compilers. The compiled java bytecode runs on the virtual computer called Java Virtual Machine (JVM). Interpreter in the JVM translates java bytecode into machine understandable instructions. So to run a complied java program on a machine, all you need is the JVM with interpreter that can translate java bytecode into the machine understandable instructions.\n\nThis way of running java programming using bytecode compiler and machine specific interpreter is what makes java programs portable, meaning write once and run anywhere.\n\nJava is an object oriented programming language, allows defining objects which are self sufficient entities meaning objects contain data and behavior which operates on the data.\n\n### Data Types\n\nA program consists of two elements, data and behavior which use data. To store data in a program, variables need to be declared. To declare a variable, type of data needs to be specified. Java supports byte, short, int, long, float, double, boolean and char data types. These data types are called primitive data types.\n\nData type byte is an 8 bits signed integer and you can assign values from -128 to 127 range to a variable of byte type. Data type short is a 16 bit signed integer and value range is -32,768 and 32,767. Data type int is a 32 bit integer, int data type can be used as signed and unsigned. For unsigned int, value range starts from 0. Data type long is a 64 bit integer and it can be signed and unsigned.\n\nData type float is a single precision 32 bit floating point. Data type double is a double precision 64 bit floating point.\n\nData type boolean can have two values true or false. Data type char is 64 bit Unicode character. Java also provides String class which can be used for storing character string data.\n\nYou can declare a variable in java using data type and variable name.\n\n``private int height;``\n\nIf values are not assigned to variables, compiler assigns default values. The default values are 0 for byte, short and int, 0L for long, 0.0f for float, 0.0d for double, false for boolean and null for String and any other object types.\n\n### Running Java Program\n\nTo create and run java programs, first install Java SDK by downloading it from Oracle Java. Then set JAVA_HOME environment variable to jdk directory.\n\nOpen the eclipse, create new java project by clicking file / new / java project and following the flow. Then expand the project in eclipse, right click src, click new package, add name and create package. Then right click the package, click new class, add name and create class.\n\nThe entry point for any java program is main method. Define main method in the class you created and write some code. Then click Run menu and click Run menu item to run the program you created.\n\n`````` public class MainClass {\npublic static void main(String[] args) {\n\nint a = 3;\nint b = 6;\n\nint c = a+b;\nSystem.out.println(\"a+b is \"+c);\n}\n} ``````\n\n### Arrays\n\nIf you have multiple items of the same time type of data, it will be difficult to manage if you declare variable for each data item. Java provides a way to handle multiple variables of same type. You can declare an object called Array which can hold multiple items of same type of data.\n\nYou can declare primitive data types or any object type as an array as shown below. You need to specify the number of elements that array can hold. To assign or read value of an element, you can use index. Array index starts from 0. The example shows array declaration, assigning values to it and accessing values stored in array.\n\n`````` \t\tint[] scores = new int;\n\nscores = 80;\nscores = 80;\nscores = 80;\nSystem.out.println(\"array element at index 1 is \"+scores);</``````\n\n### Operators\n\nJava operators can be classified into assignment, arithmetic, unary, rational, equality, conditional and bitswise operator categories.\n\nArithmetic operators are + (addition), - (subtraction), * (multiplication), / (division), and % (remainder).\n\nUnary operators such as +, -, ++ (increment), -- (decrement), and ! (boolean inverter) operate on only one operand.\n\nEquality and relational operators are == (equals to), <= (less than or equals to), >= (greater than or equals to), < (less than), > (greater than).\n\nConditional operators are && (conditional and) and || (conditional or). To compare an object to a type, instanceof operator is provided in java.\n\nBitswise operators such as ~, >>, >>, &, | and ^ are very rarely used.\n\n``````\npublic class MainClass {\npublic static void main(String[] args) {\n\nint x = 5;\nint y = 8;\n\nint z = x+y;\nSystem.out.println(\"x+y is \"+ z);\nz = y-x;\nSystem.out.println(\"y-x is \"+z);\nz = x*y;\nSystem.out.println(\"x*y is \"+z);\nz = y/x;\nSystem.out.println(\"y/x is \"+z);\n\nz = y%x;\nSystem.out.println(\"y%x is \"+z);\n\nx = +4;\nSystem.out.println(\"after unary operation \"+x);\nx = -2;\nSystem.out.println(\"after unary operation \"+x);\nx++;\nSystem.out.println(\"after unary operation \"+x);\nx--;\nSystem.out.println(\"after unary operation \"+x);\n\nboolean isIt = false;\nSystem.out.println(\"boolean invert operator \"+ !(isIt));\n\nint a = 3;\nint b = 3;\nif(a == b) {\nSystem.out.println(\"numbers equal\");\n}\n\nb=5;\nif(a < b) {\nSystem.out.println(\"a is less than b\");\n}\n\nif(b > a) {\nSystem.out.println(\"b is greater than a\");\n}\n\nx=5; y=5; a=6; b=6;\n\nif(x==y && a==b) {\nSystem.out.println(\"x equals to y and a equals to b\");\n}\nif(a < x || b > y) {\nSystem.out.println(\"a is less than x or b is greater than y\");\n}\n}\n}\n``````\n\nOutput\n\n``````x+y is 13\ny-x is 3\nx*y is 40\ny/x is 1\ny%x is 3\nafter unary operation 4\nafter unary operation -2\nafter unary operation -1\nafter unary operation -2\nboolean invert operator true\nnumbers equal\na is less than b\nb is greater than a\nx equals to y and a equals to b\na is less than x or b is greater than y ``````\n\n### Control Flow Statements\n\nIf you want to run a piece of code when a variable has certain value, then you can use if and if-else statements.\n\n`````` \t\tif(a > b) {\nc = a-b;\n}else {\nc = a+b;\n}\n``````\n\nIf you have multiple blocks of code and you want to execute a block of code based on the value of a variable then switch statement can be used. Variable of a data type such as byte, short, char, int, enum types, String, Character, Byte, Short, and Integer can be used as switch variable.\n\n`````` \t\tint category = 3;\n\nswitch (category) {\n\ncase 2: {\nSystem.out.println(\"selected category is fashion\");\nbreak;\n}\ncase 3: {\nSystem.out.println(\"selected category is mobiles\");\nbreak;\n}\ncase 4: {\nSystem.out.println(\"selected category is appliances\");\nbreak;\n}\ndefault : {\nSystem.out.println(\"selected category is electronics\");\nbreak;\n}\n}\n``````\n\nOutput:\n\n``selected category is mobiles``\n\nYou need to add break statement to all case blocks. If break is not added, all the case blocks, which come after the matching case block, will be executed.\n\nIf you want to run a block of code repeatedly as long as a variable has certain value, then you can use while or do-while statements.\n\nBoth while and do-while statement evaluate an expression, if the expression returns true then the block of code in the while or do-while will be executed. The difference between while and do-while is that the statements get executed at least once using do-while as expression evaluation is done at the bottom.\n\n`````` \t\tint offerType = 3;\nint maxOffer = 5;\nint counter = 1;\nwhile(offerType == 3) {\nSystem.out.println(\"you used cashback offer\");\nif(counter < maxOffer) {\ncounter++;\n}else {\nofferType = 0;\n}\n}\n\nmaxOffer = 5;\ncounter = 1;\ndo {\nSystem.out.println(\"you used coupon offer\");\nif(counter < maxOffer) {\ncounter++;\n}else {\nofferType = 4;\n}\n}while(offerType == 0); ``````\n\nOutput:\n\n``````you used cashback offer 1\nyou used cashback offer 2\nyou used cashback offer 3\nyou used cashback offer 4\nyou used cashback offer 5\nyou used coupon offer 1\nyou used coupon offer 2\nyou used coupon offer 3\nyou used coupon offer 4\nyou used coupon offer 5 ``````\n\nIf you need to run a task for a certain number of times, you can use for-loop. In the for-loop, you need to initialize a counter variable, add expression to see if counter has not exceeded the range and increment the counter variable. The variable initialization and range check is performed first, then code block is executed, then counter is incremented and range check is performed again to exit the loop if expression evaluates to false otherwise it will execute the block of code again. The loop continues till the expression is evaluated to true.\n\n`````` \t\tfor(int s=1; s<4; s++) {\nSystem.out.println(\"in for loop \"+s);\n} ``````\n\nOutput:\n\n``````in for loop 1\nin for loop 2\nin for loop 3 ``````\n\nWith the loop statements, you can use break and continue statements to exit from the loop and to continue the next iteration of the loop respectively.\n\n`````` \t\tfor(int s=1; s<4; s++) {\nif(s == 2) {\ncontinue;\n}\nSystem.out.println(\"in for loop \"+s);\n} ``````\n``````in for loop 1\nin for loop 3 ``````\n`````` \t\tfor(int s=1; s<4; s++) {\nif(s == 3) {\nbreak;\n}\nSystem.out.println(\"in for loop \"+s);\n} ``````\n``````in for loop 1\nin for loop 2 ``````\n\n### Object Oriented Programming Concepts\n\n#### Object\n\nObject oriented programming makes it possible to keep state and its related behavior together in a module called object. Object contains the fields which represent state and the methods which represent behavior and the methods are exposed to outside entities.\n\nThe concept of hiding information in object and performing actions on the information using the exposed behavior of the object is called encapsulation.\n\nFor example television, it has channel, color, brightness, volume, etc states and increase or decrease volume, color, brightness, change channel, etc behavior.\n\n#### Class\n\nClass is a kind it defines properties and behavior. Instance of a class with a state meaning with certain values assigned to the properties of the class is called object.\n\n``````public class Table {\n\nprivate String purpose;\nprivate int height;\n\npurpose = purpose;\n}\n\npublic void increaseHeight(int extraHieght) {\nheight = height-extraHieght;\n}\npublic void decreaseHeight(int extraHieght) {\nheight = height - extraHieght;\n}\n}``````\n\n#### Inheritance\n\nInheritance allows for defining a new class by extending a class and adding additional state and behavior to it. The class which extended the other class is called subclass. The class which is extended by other class is called super class. One class can be extended by many classes, meaning there can be many subclasses of a class.\n\nFor example, Table class can be extended to create OfficeTable to add drawer state and behavior.\n\n``````public class OfficeTable extends Table{\nprivate int[] drawerStates = new int;\n\npublic void setDrawersState(int drawer, int state) {\ndrawerStates[drawer] = state;\n}\n}\n``````\n\n#### Interface\n\nSpecification of methods of the object can be defined separately in java. The component which just defines methods of an object without any implementation is called interface. When a program needs to interact with an object, it can use interface to interact with it. This way the calling program doesn’t need to know about implementation and this decoupling makes switching to different implementation of the interface easy.\n\nFor example table interface.\n\n`````` public interface TableInterface {\n\npublic void increaseHeight(int extraHieght);\n\npublic void decreaseHeight(int extraHieght);\n} ``````\n\nThe class that implements an interface should implement all methods defined in the interface.\n\n`````` public class DinningTable implements TableInterface{\n\nprivate String purpose;\nprivate int height;\nprivate int capacity;\n\npurpose = purpose;\n}\n\npublic void increaseHeight(int extraHieght) {\nheight = height + extraHieght;\n}\npublic void decreaseHeight(int extraHieght) {\nheight = height - extraHieght;\n}\n} ``````\n\n#### Polymorphism\n\nOutside entity interacts with an object using the exposed methods. Objects can provide different implementations for a method, meaning object can expose one interface but provide multiple implementations. The concept of existence of multiple implementations for one interface is called polymorphism.\n\nIn java, polymorphism can be achieved by creating over loaded methods, meaning different method implementations with the same method name but different parameters can be provided in an object. At compile time right method will be chosen based on the number and type of arguments and return type. Method over loading is calling compile time polymorphism.\n\nFor example, two add() methods in the Calculator class are overloaded methods.\n\n`````` public class Calculator {\n\npublic int add(int a, int b) {\nreturn a+b;\n}\npublic float add(int a, int b, int c) {\nreturn a+b+c;\n}\n} ``````\n\nPolymorphism can also be achieved by overriding methods. Meaning, subclass can provide new implementation for the same method which is implemented in the super class. Which version of the method will be run is decided at run time depending on the object to which the object variable is referencing.\n\nFor example, TaxCalculator and its subclass SuperRichTaxCalculator have implementation for the same methods.\n\n`````` public class TaxCalculator {\n\npublic float calculateTax(int earnings) {\nreturn earnings*25/100;\n}\n\n} ``````\n``````\npublic class SuperRichTaxCalculator extends TaxCalculator{\n\npublic float calculateTax(int earnings) {\nreturn earnings*65/100;\n}\n} ``````\n\nThe method will be chosen at run time and it depends on the object the variable is pointing to. This type of polymorphism is called run time polymorphism.\n\n`````` \tpublic static void main(String[] args) {\nTaxCalculator a = new TaxCalculator();\nTaxCalculator b = new SuperRichTaxCalculator();\n\nSystem.out.println(\"tax from a \"+a.calculateTax(2000));\nSystem.out.println(\"tax from b \"+b.calculateTax(2000));\n} ``````\n\nOutput:\n\n``````tax from a 500.0\ntax from b 1300.0 ``````\n\n#### Package\n\nLike folders in the file system, packages make organizing Java classes and interfaces easy by keeping related classes and interfaces in a package. Packages make it possible to create classes with same name in different packages in an application.\n\nFor example, com.zoftino.furniture and com.zoftino.furniture.kitchen are packages.\n\n#### Advantage of object oriented programming\n\nBecause code is kept in a class and separate from other classes, it makes it easy to independently maintain it and do enhancements.\n\nState information is accessible using only methods exposed and hidden from outside.\n\nBecause of code modularity, components can be reused."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.821474,"math_prob":0.90912396,"size":14059,"snap":"2020-45-2020-50","text_gpt3_token_len":3189,"char_repetition_ratio":0.12422626,"word_repetition_ratio":0.06669554,"special_character_ratio":0.2387083,"punctuation_ratio":0.13980082,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9514892,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-11-23T15:47:11Z\",\"WARC-Record-ID\":\"<urn:uuid:9812c65b-5461-4912-8f09-c88c96c604c4>\",\"Content-Length\":\"24605\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f3de0df5-bf0f-45f6-838f-6f96325d5ef0>\",\"WARC-Concurrent-To\":\"<urn:uuid:5d3f93a4-1cac-4f8b-a7e1-76ca8204ed7d>\",\"WARC-IP-Address\":\"172.217.12.243\",\"WARC-Target-URI\":\"https://www.zoftino.com/introduction-to-java-programming\",\"WARC-Payload-Digest\":\"sha1:3GTGHUAYKUS5VQ2ULO35JXHLWUBNOLAK\",\"WARC-Block-Digest\":\"sha1:OCHIUIV5DFOMLBP5JMBJ6G2GBFR7EP53\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141163411.0_warc_CC-MAIN-20201123153826-20201123183826-00585.warc.gz\"}"} |
https://nl.mathworks.com/matlabcentral/cody/problems/568-number-of-1s-in-a-binary-string/solutions/1858143 | [
"Cody\n\n# Problem 568. Number of 1s in a binary string\n\nSolution 1858143\n\nSubmitted on 26 Jun 2019 by Gani\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\nx = '0000'; y_correct = 0; assert(isequal(one(x),y_correct));\n\n2 Pass\nx = '111'; y_correct = 3; assert(isequal(one(x),y_correct));\n\n3 Pass\nx = '1100101'; y_correct = 4; assert(isequal(one(x),y_correct));"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.58302367,"math_prob":0.98519737,"size":555,"snap":"2019-51-2020-05","text_gpt3_token_len":163,"char_repetition_ratio":0.14700544,"word_repetition_ratio":0.0,"special_character_ratio":0.34774774,"punctuation_ratio":0.1574074,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9917844,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-29T17:36:30Z\",\"WARC-Record-ID\":\"<urn:uuid:5ece81fb-b2b1-450c-a133-410ae7bda13e>\",\"Content-Length\":\"72180\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:be7a2b85-6565-4f8b-9aa9-6e9afb33fc04>\",\"WARC-Concurrent-To\":\"<urn:uuid:31834944-93b6-463b-9853-69b91660dfa8>\",\"WARC-IP-Address\":\"104.110.193.39\",\"WARC-Target-URI\":\"https://nl.mathworks.com/matlabcentral/cody/problems/568-number-of-1s-in-a-binary-string/solutions/1858143\",\"WARC-Payload-Digest\":\"sha1:XDGMW5NKL2Z2Y4N2CXJD2JYWVY6LU25V\",\"WARC-Block-Digest\":\"sha1:5NKTKG5SUE256JGEOX3FB3HPL25DGKQY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579251801423.98_warc_CC-MAIN-20200129164403-20200129193403-00248.warc.gz\"}"} |
https://www.fxsolver.com/browse/formulas/Ordinate+of+a+point+of+a+circle | [
"# Ordinate of a point of a circle\n\n## Description\n\nThe ordinate of point of a circle, in an x–y Cartesian coordinate system, can be computed by the ordinate of the center of the circle, the radius and the angle that the ray from the center of the circle to the point makes with the x-axis\n\nRelated formulas\n\n## Variables\n\n y The ordinate of the point of the circle (m) b The ordinate of the center of the circle (m) r Radius of the circle (m) θ he angle that the ray from the center of the circle to the point makes with the x-axis (radians)"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.857007,"math_prob":0.9797216,"size":560,"snap":"2019-51-2020-05","text_gpt3_token_len":140,"char_repetition_ratio":0.23741007,"word_repetition_ratio":0.3069307,"special_character_ratio":0.225,"punctuation_ratio":0.027027028,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9855842,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-12-08T05:37:39Z\",\"WARC-Record-ID\":\"<urn:uuid:45c20582-dbe8-4ea2-9c4e-b27b1a685f59>\",\"Content-Length\":\"18302\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:86ab7b02-131c-455e-a701-122d5c658740>\",\"WARC-Concurrent-To\":\"<urn:uuid:2a0c2e11-dfca-428f-97cc-3417d25086da>\",\"WARC-IP-Address\":\"178.254.54.75\",\"WARC-Target-URI\":\"https://www.fxsolver.com/browse/formulas/Ordinate+of+a+point+of+a+circle\",\"WARC-Payload-Digest\":\"sha1:W2D4LSMWB5CNFK35PUI7MJDRAKZC2CTB\",\"WARC-Block-Digest\":\"sha1:GW5CH7LJDZ3SAROVAOOEOSGXLIKRUWOM\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-51/CC-MAIN-2019-51_segments_1575540506459.47_warc_CC-MAIN-20191208044407-20191208072407-00455.warc.gz\"}"} |
https://indico.math.cnrs.fr/event/7025/?view=event | [
"Séminaire Calcul Formel\n\n# Moment representations, exactness and approximation.\n\n## by Prof. Bernard Mourrain (INRIA Sophia)\n\nEurope/Paris\nhttps://bbb.unilim.fr/b/vac-m6r-7dv\n\n#### https://bbb.unilim.fr/b/vac-m6r-7dv\n\nDescription\n\nHow well is a measure characterized by its moments is an old question\nwhich appear in many contexts and applications. In polynomial\noptimization, it is the basis for so-called moment relaxation\nhierarchies, which allow to compute global optima of polynomial\nfunctions on (compact) basic semi-algebraic sets. Computing the optimal\nmoment sequence(s), positive on the quadratic module of the\nsemi-algebraic set, by convex optimization, one can approximate the\nglobal solution(s) of the non-linear optimization problem.\n\nIn this talk, we will discuss conditions for which this approach gives\nan exact moment representation of a measure. We will then consider the\nproperties of approximation of moment sequences, give an Effective\nPutinar Positivstellensatz and present a quantitative analysis of the\napproximation of measures by positive moment sequences, with new\npolynomial bounds in the intrinsic parameters of the problem. This\npresentation is based on a join work with Lorenzo Baldi."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.8915331,"math_prob":0.87092286,"size":984,"snap":"2023-14-2023-23","text_gpt3_token_len":199,"char_repetition_ratio":0.1122449,"word_repetition_ratio":0.0,"special_character_ratio":0.17073171,"punctuation_ratio":0.084848486,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96620005,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-05-28T02:54:06Z\",\"WARC-Record-ID\":\"<urn:uuid:30278764-682a-46b6-8da8-2b22962fa377>\",\"Content-Length\":\"51386\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:fc4bd480-1d7f-40ad-ba7b-f7a075daedac>\",\"WARC-Concurrent-To\":\"<urn:uuid:02885191-83fb-4f58-aed6-08c26668a3f9>\",\"WARC-IP-Address\":\"129.88.207.200\",\"WARC-Target-URI\":\"https://indico.math.cnrs.fr/event/7025/?view=event\",\"WARC-Payload-Digest\":\"sha1:4TTZM6NHSZNZ3MHRA4VHR4YAGHRPLUCO\",\"WARC-Block-Digest\":\"sha1:REOCBSVSAKDCPXA73OHQJDZLK5V7XLTQ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224643462.13_warc_CC-MAIN-20230528015553-20230528045553-00290.warc.gz\"}"} |
http://cr.openjdk.java.net/~plevart/misc/valhala-hacks/javany-webrev.01/src/java.base/share/classes/java/util/TimSort.java.lhs.html | [
"``` 1 /*\n4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.\n5 *\n6 * This code is free software; you can redistribute it and/or modify it\n7 * under the terms of the GNU General Public License version 2 only, as\n9 * particular file as subject to the \"Classpath\" exception as provided\n10 * by Oracle in the LICENSE file that accompanied this code.\n11 *\n12 * This code is distributed in the hope that it will be useful, but WITHOUT\n13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\n15 * version 2 for more details (a copy is included in the LICENSE file that\n16 * accompanied this code).\n17 *\n18 * You should have received a copy of the GNU General Public License version\n19 * 2 along with this work; if not, write to the Free Software Foundation,\n20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n21 *\n23 * or visit www.oracle.com if you need additional information or have any\n24 * questions.\n25 */\n26\n27 package java.util;\n28\n29 /**\n30 * A stable, adaptive, iterative mergesort that requires far fewer than\n31 * n lg(n) comparisons when running on partially sorted arrays, while\n32 * offering performance comparable to a traditional mergesort when run\n33 * on random arrays. Like all proper mergesorts, this sort is stable and\n34 * runs O(n log n) time (worst case). In the worst case, this sort requires\n35 * temporary storage space for n/2 object references; in the best case,\n36 * it requires only a small constant amount of space.\n37 *\n38 * This implementation was adapted from Tim Peters's list sort for\n39 * Python, which is described in detail here:\n40 *\n41 * http://svn.python.org/projects/python/trunk/Objects/listsort.txt\n42 *\n43 * Tim's C code may be found here:\n44 *\n45 * http://svn.python.org/projects/python/trunk/Objects/listobject.c\n46 *\n47 * The underlying techniques are described in this paper (and may have\n48 * even earlier origins):\n49 *\n50 * \"Optimistic Sorting and Information Theoretic Complexity\"\n51 * Peter McIlroy\n52 * SODA (Fourth Annual ACM-SIAM Symposium on Discrete Algorithms),\n53 * pp 467-474, Austin, Texas, 25-27 January 1993.\n54 *\n55 * While the API to this class consists solely of static methods, it is\n56 * (privately) instantiable; a TimSort instance holds the state of an ongoing\n57 * sort, assuming the input array is large enough to warrant the full-blown\n58 * TimSort. Small arrays are sorted in place, using a binary insertion sort.\n59 *\n60 * @author Josh Bloch\n61 */\n62 class TimSort<T> {\n63 /**\n64 * This is the minimum sized sequence that will be merged. Shorter\n65 * sequences will be lengthened by calling binarySort. If the entire\n66 * array is less than this length, no merges will be performed.\n67 *\n68 * This constant should be a power of two. It was 64 in Tim Peter's C\n69 * implementation, but 32 was empirically determined to work better in\n70 * this implementation. In the unlikely event that you set this constant\n71 * to be a number that's not a power of two, you'll need to change the\n73 *\n74 * If you decrease this constant, you must change the stackLen\n75 * computation in the TimSort constructor, or you risk an\n76 * ArrayOutOfBounds exception. See listsort.txt for a discussion\n77 * of the minimum stack length required as a function of the length\n78 * of the array being sorted and the minimum merge sequence length.\n79 */\n80 private static final int MIN_MERGE = 32;\n81\n82 /**\n83 * The array being sorted.\n84 */\n85 private final T[] a;\n86\n87 /**\n88 * The comparator for this sort.\n89 */\n90 private final Comparator<? super T> c;\n91\n92 /**\n93 * When we get into galloping mode, we stay there until both runs win less\n94 * often than MIN_GALLOP consecutive times.\n95 */\n96 private static final int MIN_GALLOP = 7;\n97\n98 /**\n99 * This controls when we get *into* galloping mode. It is initialized\n100 * to MIN_GALLOP. The mergeLo and mergeHi methods nudge it higher for\n101 * random data, and lower for highly structured data.\n102 */\n103 private int minGallop = MIN_GALLOP;\n104\n105 /**\n106 * Maximum initial size of tmp array, which is used for merging. The array\n107 * can grow to accommodate demand.\n108 *\n109 * Unlike Tim's original C version, we do not allocate this much storage\n110 * when sorting smaller arrays. This change was required for performance.\n111 */\n112 private static final int INITIAL_TMP_STORAGE_LENGTH = 256;\n113\n114 /**\n115 * Temp storage for merges. A workspace array may optionally be\n116 * provided in constructor, and if so will be used as long as it\n117 * is big enough.\n118 */\n119 private T[] tmp;\n120 private int tmpBase; // base of tmp array slice\n121 private int tmpLen; // length of tmp array slice\n122\n123 /**\n124 * A stack of pending runs yet to be merged. Run i starts at\n125 * address base[i] and extends for len[i] elements. It's always\n126 * true (so long as the indices are in bounds) that:\n127 *\n128 * runBase[i] + runLen[i] == runBase[i + 1]\n129 *\n130 * so we could cut the storage for this, but it's a minor amount,\n131 * and keeping all the info explicit simplifies the code.\n132 */\n133 private int stackSize = 0; // Number of pending runs on stack\n134 private final int[] runBase;\n135 private final int[] runLen;\n136\n137 /**\n138 * Creates a TimSort instance to maintain the state of an ongoing sort.\n139 *\n140 * @param a the array to be sorted\n141 * @param c the comparator to determine the order of the sort\n142 * @param work a workspace array (slice)\n143 * @param workBase origin of usable space in work array\n144 * @param workLen usable size of work array\n145 */\n146 private TimSort(T[] a, Comparator<? super T> c, T[] work, int workBase, int workLen) {\n147 this.a = a;\n148 this.c = c;\n149\n150 // Allocate temp storage (which may be increased later if necessary)\n151 int len = a.length;\n152 int tlen = (len < 2 * INITIAL_TMP_STORAGE_LENGTH) ?\n153 len >>> 1 : INITIAL_TMP_STORAGE_LENGTH;\n154 if (work == null || workLen < tlen || workBase + tlen > work.length) {\n155 @SuppressWarnings({\"unchecked\", \"UnnecessaryLocalVariable\"})\n156 T[] newArray = (T[])java.lang.reflect.Array.newInstance\n157 (a.getClass().getComponentType(), tlen);\n158 tmp = newArray;\n159 tmpBase = 0;\n160 tmpLen = tlen;\n161 }\n162 else {\n163 tmp = work;\n164 tmpBase = workBase;\n165 tmpLen = workLen;\n166 }\n167\n168 /*\n169 * Allocate runs-to-be-merged stack (which cannot be expanded). The\n170 * stack length requirements are described in listsort.txt. The C\n171 * version always uses the same stack length (85), but this was\n172 * measured to be too expensive when sorting \"mid-sized\" arrays (e.g.,\n173 * 100 elements) in Java. Therefore, we use smaller (but sufficiently\n174 * large) stack lengths for smaller arrays. The \"magic numbers\" in the\n175 * computation below must be changed if MIN_MERGE is decreased. See\n177 */\n178 int stackLen = (len < 120 ? 5 :\n179 len < 1542 ? 10 :\n180 len < 119151 ? 24 : 40);\n181 runBase = new int[stackLen];\n182 runLen = new int[stackLen];\n183 }\n184\n185 /*\n186 * The next method (package private and static) constitutes the\n187 * entire API of this class.\n188 */\n189\n190 /**\n191 * Sorts the given range, using the given workspace array slice\n192 * for temp storage when possible. This method is designed to be\n193 * invoked from public methods (in class Arrays) after performing\n194 * any necessary array bounds checks and expanding parameters into\n195 * the required forms.\n196 *\n197 * @param a the array to be sorted\n198 * @param lo the index of the first element, inclusive, to be sorted\n199 * @param hi the index of the last element, exclusive, to be sorted\n200 * @param c the comparator to use\n201 * @param work a workspace array (slice)\n202 * @param workBase origin of usable space in work array\n203 * @param workLen usable size of work array\n204 * @since 1.8\n205 */\n206 static <T> void sort(T[] a, int lo, int hi, Comparator<? super T> c,\n207 T[] work, int workBase, int workLen) {\n208 assert c != null && a != null && lo >= 0 && lo <= hi && hi <= a.length;\n209\n210 int nRemaining = hi - lo;\n211 if (nRemaining < 2)\n212 return; // Arrays of size 0 and 1 are always sorted\n213\n214 // If array is small, do a \"mini-TimSort\" with no merges\n215 if (nRemaining < MIN_MERGE) {\n216 int initRunLen = countRunAndMakeAscending(a, lo, hi, c);\n217 binarySort(a, lo, hi, lo + initRunLen, c);\n218 return;\n219 }\n220\n221 /**\n222 * March over the array once, left to right, finding natural runs,\n223 * extending short natural runs to minRun elements, and merging runs\n224 * to maintain stack invariant.\n225 */\n226 TimSort<T> ts = new TimSort<>(a, c, work, workBase, workLen);\n227 int minRun = minRunLength(nRemaining);\n228 do {\n229 // Identify next run\n230 int runLen = countRunAndMakeAscending(a, lo, hi, c);\n231\n232 // If run is short, extend to min(minRun, nRemaining)\n233 if (runLen < minRun) {\n234 int force = nRemaining <= minRun ? nRemaining : minRun;\n235 binarySort(a, lo, lo + force, lo + runLen, c);\n236 runLen = force;\n237 }\n238\n239 // Push run onto pending-run stack, and maybe merge\n240 ts.pushRun(lo, runLen);\n241 ts.mergeCollapse();\n242\n243 // Advance to find next run\n244 lo += runLen;\n245 nRemaining -= runLen;\n246 } while (nRemaining != 0);\n247\n248 // Merge all remaining runs to complete sort\n249 assert lo == hi;\n250 ts.mergeForceCollapse();\n251 assert ts.stackSize == 1;\n252 }\n253\n254 /**\n255 * Sorts the specified portion of the specified array using a binary\n256 * insertion sort. This is the best method for sorting small numbers\n257 * of elements. It requires O(n log n) compares, but O(n^2) data\n258 * movement (worst case).\n259 *\n260 * If the initial part of the specified range is already sorted,\n261 * this method can take advantage of it: the method assumes that the\n262 * elements from index {@code lo}, inclusive, to {@code start},\n263 * exclusive are already sorted.\n264 *\n265 * @param a the array in which a range is to be sorted\n266 * @param lo the index of the first element in the range to be sorted\n267 * @param hi the index after the last element in the range to be sorted\n268 * @param start the index of the first element in the range that is\n269 * not already known to be sorted ({@code lo <= start <= hi})\n270 * @param c comparator to used for the sort\n271 */\n272 @SuppressWarnings(\"fallthrough\")\n273 private static <T> void binarySort(T[] a, int lo, int hi, int start,\n274 Comparator<? super T> c) {\n275 assert lo <= start && start <= hi;\n276 if (start == lo)\n277 start++;\n278 for ( ; start < hi; start++) {\n279 T pivot = a[start];\n280\n281 // Set left (and right) to the index where a[start] (pivot) belongs\n282 int left = lo;\n283 int right = start;\n284 assert left <= right;\n285 /*\n286 * Invariants:\n287 * pivot >= all in [lo, left).\n288 * pivot < all in [right, start).\n289 */\n290 while (left < right) {\n291 int mid = (left + right) >>> 1;\n292 if (c.compare(pivot, a[mid]) < 0)\n293 right = mid;\n294 else\n295 left = mid + 1;\n296 }\n297 assert left == right;\n298\n299 /*\n300 * The invariants still hold: pivot >= all in [lo, left) and\n301 * pivot < all in [left, start), so pivot belongs at left. Note\n302 * that if there are elements equal to pivot, left points to the\n303 * first slot after them -- that's why this sort is stable.\n304 * Slide elements over to make room for pivot.\n305 */\n306 int n = start - left; // The number of elements to move\n307 // Switch is just an optimization for arraycopy in default case\n308 switch (n) {\n309 case 2: a[left + 2] = a[left + 1];\n310 case 1: a[left + 1] = a[left];\n311 break;\n312 default: System.arraycopy(a, left, a, left + 1, n);\n313 }\n314 a[left] = pivot;\n315 }\n316 }\n317\n318 /**\n319 * Returns the length of the run beginning at the specified position in\n320 * the specified array and reverses the run if it is descending (ensuring\n321 * that the run will always be ascending when the method returns).\n322 *\n323 * A run is the longest ascending sequence with:\n324 *\n325 * a[lo] <= a[lo + 1] <= a[lo + 2] <= ...\n326 *\n327 * or the longest descending sequence with:\n328 *\n329 * a[lo] > a[lo + 1] > a[lo + 2] > ...\n330 *\n331 * For its intended use in a stable mergesort, the strictness of the\n332 * definition of \"descending\" is needed so that the call can safely\n333 * reverse a descending sequence without violating stability.\n334 *\n335 * @param a the array in which a run is to be counted and possibly reversed\n336 * @param lo index of the first element in the run\n337 * @param hi index after the last element that may be contained in the run.\n338 It is required that {@code lo < hi}.\n339 * @param c the comparator to used for the sort\n340 * @return the length of the run beginning at the specified position in\n341 * the specified array\n342 */\n343 private static <T> int countRunAndMakeAscending(T[] a, int lo, int hi,\n344 Comparator<? super T> c) {\n345 assert lo < hi;\n346 int runHi = lo + 1;\n347 if (runHi == hi)\n348 return 1;\n349\n350 // Find end of run, and reverse range if descending\n351 if (c.compare(a[runHi++], a[lo]) < 0) { // Descending\n352 while (runHi < hi && c.compare(a[runHi], a[runHi - 1]) < 0)\n353 runHi++;\n354 reverseRange(a, lo, runHi);\n355 } else { // Ascending\n356 while (runHi < hi && c.compare(a[runHi], a[runHi - 1]) >= 0)\n357 runHi++;\n358 }\n359\n360 return runHi - lo;\n361 }\n362\n363 /**\n364 * Reverse the specified range of the specified array.\n365 *\n366 * @param a the array in which a range is to be reversed\n367 * @param lo the index of the first element in the range to be reversed\n368 * @param hi the index after the last element in the range to be reversed\n369 */\n370 private static void reverseRange(Object[] a, int lo, int hi) {\n371 hi--;\n372 while (lo < hi) {\n373 Object t = a[lo];\n374 a[lo++] = a[hi];\n375 a[hi--] = t;\n376 }\n377 }\n378\n379 /**\n380 * Returns the minimum acceptable run length for an array of the specified\n381 * length. Natural runs shorter than this will be extended with\n383 *\n384 * Roughly speaking, the computation is:\n385 *\n386 * If n < MIN_MERGE, return n (it's too small to bother with fancy stuff).\n387 * Else if n is an exact power of 2, return MIN_MERGE/2.\n388 * Else return an int k, MIN_MERGE/2 <= k <= MIN_MERGE, such that n/k\n389 * is close to, but strictly less than, an exact power of 2.\n390 *\n391 * For the rationale, see listsort.txt.\n392 *\n393 * @param n the length of the array to be sorted\n394 * @return the length of the minimum run to be merged\n395 */\n396 private static int minRunLength(int n) {\n397 assert n >= 0;\n398 int r = 0; // Becomes 1 if any 1 bits are shifted off\n399 while (n >= MIN_MERGE) {\n400 r |= (n & 1);\n401 n >>= 1;\n402 }\n403 return n + r;\n404 }\n405\n406 /**\n407 * Pushes the specified run onto the pending-run stack.\n408 *\n409 * @param runBase index of the first element in the run\n410 * @param runLen the number of elements in the run\n411 */\n412 private void pushRun(int runBase, int runLen) {\n413 this.runBase[stackSize] = runBase;\n414 this.runLen[stackSize] = runLen;\n415 stackSize++;\n416 }\n417\n418 /**\n419 * Examines the stack of runs waiting to be merged and merges adjacent runs\n420 * until the stack invariants are reestablished:\n421 *\n422 * 1. runLen[i - 3] > runLen[i - 2] + runLen[i - 1]\n423 * 2. runLen[i - 2] > runLen[i - 1]\n424 *\n425 * This method is called each time a new run is pushed onto the stack,\n426 * so the invariants are guaranteed to hold for i < stackSize upon\n427 * entry to the method.\n428 */\n429 private void mergeCollapse() {\n430 while (stackSize > 1) {\n431 int n = stackSize - 2;\n432 if (n > 0 && runLen[n-1] <= runLen[n] + runLen[n+1]) {\n433 if (runLen[n - 1] < runLen[n + 1])\n434 n--;\n435 mergeAt(n);\n436 } else if (runLen[n] <= runLen[n + 1]) {\n437 mergeAt(n);\n438 } else {\n439 break; // Invariant is established\n440 }\n441 }\n442 }\n443\n444 /**\n445 * Merges all runs on the stack until only one remains. This method is\n446 * called once, to complete the sort.\n447 */\n448 private void mergeForceCollapse() {\n449 while (stackSize > 1) {\n450 int n = stackSize - 2;\n451 if (n > 0 && runLen[n - 1] < runLen[n + 1])\n452 n--;\n453 mergeAt(n);\n454 }\n455 }\n456\n457 /**\n458 * Merges the two runs at stack indices i and i+1. Run i must be\n459 * the penultimate or antepenultimate run on the stack. In other words,\n460 * i must be equal to stackSize-2 or stackSize-3.\n461 *\n462 * @param i stack index of the first of the two runs to merge\n463 */\n464 private void mergeAt(int i) {\n465 assert stackSize >= 2;\n466 assert i >= 0;\n467 assert i == stackSize - 2 || i == stackSize - 3;\n468\n469 int base1 = runBase[i];\n470 int len1 = runLen[i];\n471 int base2 = runBase[i + 1];\n472 int len2 = runLen[i + 1];\n473 assert len1 > 0 && len2 > 0;\n474 assert base1 + len1 == base2;\n475\n476 /*\n477 * Record the length of the combined runs; if i is the 3rd-last\n478 * run now, also slide over the last run (which isn't involved\n479 * in this merge). The current run (i+1) goes away in any case.\n480 */\n481 runLen[i] = len1 + len2;\n482 if (i == stackSize - 3) {\n483 runBase[i + 1] = runBase[i + 2];\n484 runLen[i + 1] = runLen[i + 2];\n485 }\n486 stackSize--;\n487\n488 /*\n489 * Find where the first element of run2 goes in run1. Prior elements\n490 * in run1 can be ignored (because they're already in place).\n491 */\n492 int k = gallopRight(a[base2], a, base1, len1, 0, c);\n493 assert k >= 0;\n494 base1 += k;\n495 len1 -= k;\n496 if (len1 == 0)\n497 return;\n498\n499 /*\n500 * Find where the last element of run1 goes in run2. Subsequent elements\n501 * in run2 can be ignored (because they're already in place).\n502 */\n503 len2 = gallopLeft(a[base1 + len1 - 1], a, base2, len2, len2 - 1, c);\n504 assert len2 >= 0;\n505 if (len2 == 0)\n506 return;\n507\n508 // Merge remaining runs, using tmp array with min(len1, len2) elements\n509 if (len1 <= len2)\n510 mergeLo(base1, len1, base2, len2);\n511 else\n512 mergeHi(base1, len1, base2, len2);\n513 }\n514\n515 /**\n516 * Locates the position at which to insert the specified key into the\n517 * specified sorted range; if the range contains an element equal to key,\n518 * returns the index of the leftmost equal element.\n519 *\n520 * @param key the key whose insertion point to search for\n521 * @param a the array in which to search\n522 * @param base the index of the first element in the range\n523 * @param len the length of the range; must be > 0\n524 * @param hint the index at which to begin the search, 0 <= hint < n.\n525 * The closer hint is to the result, the faster this method will run.\n526 * @param c the comparator used to order the range, and to search\n527 * @return the int k, 0 <= k <= n such that a[b + k - 1] < key <= a[b + k],\n528 * pretending that a[b - 1] is minus infinity and a[b + n] is infinity.\n529 * In other words, key belongs at index b + k; or in other words,\n530 * the first k elements of a should precede key, and the last n - k\n532 */\n533 private static <T> int gallopLeft(T key, T[] a, int base, int len, int hint,\n534 Comparator<? super T> c) {\n535 assert len > 0 && hint >= 0 && hint < len;\n536 int lastOfs = 0;\n537 int ofs = 1;\n538 if (c.compare(key, a[base + hint]) > 0) {\n539 // Gallop right until a[base+hint+lastOfs] < key <= a[base+hint+ofs]\n540 int maxOfs = len - hint;\n541 while (ofs < maxOfs && c.compare(key, a[base + hint + ofs]) > 0) {\n542 lastOfs = ofs;\n543 ofs = (ofs << 1) + 1;\n544 if (ofs <= 0) // int overflow\n545 ofs = maxOfs;\n546 }\n547 if (ofs > maxOfs)\n548 ofs = maxOfs;\n549\n550 // Make offsets relative to base\n551 lastOfs += hint;\n552 ofs += hint;\n553 } else { // key <= a[base + hint]\n554 // Gallop left until a[base+hint-ofs] < key <= a[base+hint-lastOfs]\n555 final int maxOfs = hint + 1;\n556 while (ofs < maxOfs && c.compare(key, a[base + hint - ofs]) <= 0) {\n557 lastOfs = ofs;\n558 ofs = (ofs << 1) + 1;\n559 if (ofs <= 0) // int overflow\n560 ofs = maxOfs;\n561 }\n562 if (ofs > maxOfs)\n563 ofs = maxOfs;\n564\n565 // Make offsets relative to base\n566 int tmp = lastOfs;\n567 lastOfs = hint - ofs;\n568 ofs = hint - tmp;\n569 }\n570 assert -1 <= lastOfs && lastOfs < ofs && ofs <= len;\n571\n572 /*\n573 * Now a[base+lastOfs] < key <= a[base+ofs], so key belongs somewhere\n574 * to the right of lastOfs but no farther right than ofs. Do a binary\n575 * search, with invariant a[base + lastOfs - 1] < key <= a[base + ofs].\n576 */\n577 lastOfs++;\n578 while (lastOfs < ofs) {\n579 int m = lastOfs + ((ofs - lastOfs) >>> 1);\n580\n581 if (c.compare(key, a[base + m]) > 0)\n582 lastOfs = m + 1; // a[base + m] < key\n583 else\n584 ofs = m; // key <= a[base + m]\n585 }\n586 assert lastOfs == ofs; // so a[base + ofs - 1] < key <= a[base + ofs]\n587 return ofs;\n588 }\n589\n590 /**\n591 * Like gallopLeft, except that if the range contains an element equal to\n592 * key, gallopRight returns the index after the rightmost equal element.\n593 *\n594 * @param key the key whose insertion point to search for\n595 * @param a the array in which to search\n596 * @param base the index of the first element in the range\n597 * @param len the length of the range; must be > 0\n598 * @param hint the index at which to begin the search, 0 <= hint < n.\n599 * The closer hint is to the result, the faster this method will run.\n600 * @param c the comparator used to order the range, and to search\n601 * @return the int k, 0 <= k <= n such that a[b + k - 1] <= key < a[b + k]\n602 */\n603 private static <T> int gallopRight(T key, T[] a, int base, int len,\n604 int hint, Comparator<? super T> c) {\n605 assert len > 0 && hint >= 0 && hint < len;\n606\n607 int ofs = 1;\n608 int lastOfs = 0;\n609 if (c.compare(key, a[base + hint]) < 0) {\n610 // Gallop left until a[b+hint - ofs] <= key < a[b+hint - lastOfs]\n611 int maxOfs = hint + 1;\n612 while (ofs < maxOfs && c.compare(key, a[base + hint - ofs]) < 0) {\n613 lastOfs = ofs;\n614 ofs = (ofs << 1) + 1;\n615 if (ofs <= 0) // int overflow\n616 ofs = maxOfs;\n617 }\n618 if (ofs > maxOfs)\n619 ofs = maxOfs;\n620\n621 // Make offsets relative to b\n622 int tmp = lastOfs;\n623 lastOfs = hint - ofs;\n624 ofs = hint - tmp;\n625 } else { // a[b + hint] <= key\n626 // Gallop right until a[b+hint + lastOfs] <= key < a[b+hint + ofs]\n627 int maxOfs = len - hint;\n628 while (ofs < maxOfs && c.compare(key, a[base + hint + ofs]) >= 0) {\n629 lastOfs = ofs;\n630 ofs = (ofs << 1) + 1;\n631 if (ofs <= 0) // int overflow\n632 ofs = maxOfs;\n633 }\n634 if (ofs > maxOfs)\n635 ofs = maxOfs;\n636\n637 // Make offsets relative to b\n638 lastOfs += hint;\n639 ofs += hint;\n640 }\n641 assert -1 <= lastOfs && lastOfs < ofs && ofs <= len;\n642\n643 /*\n644 * Now a[b + lastOfs] <= key < a[b + ofs], so key belongs somewhere to\n645 * the right of lastOfs but no farther right than ofs. Do a binary\n646 * search, with invariant a[b + lastOfs - 1] <= key < a[b + ofs].\n647 */\n648 lastOfs++;\n649 while (lastOfs < ofs) {\n650 int m = lastOfs + ((ofs - lastOfs) >>> 1);\n651\n652 if (c.compare(key, a[base + m]) < 0)\n653 ofs = m; // key < a[b + m]\n654 else\n655 lastOfs = m + 1; // a[b + m] <= key\n656 }\n657 assert lastOfs == ofs; // so a[b + ofs - 1] <= key < a[b + ofs]\n658 return ofs;\n659 }\n660\n661 /**\n662 * Merges two adjacent runs in place, in a stable fashion. The first\n663 * element of the first run must be greater than the first element of the\n664 * second run (a[base1] > a[base2]), and the last element of the first run\n665 * (a[base1 + len1-1]) must be greater than all elements of the second run.\n666 *\n667 * For performance, this method should be called only when len1 <= len2;\n668 * its twin, mergeHi should be called if len1 >= len2. (Either method\n669 * may be called if len1 == len2.)\n670 *\n671 * @param base1 index of first element in first run to be merged\n672 * @param len1 length of first run to be merged (must be > 0)\n673 * @param base2 index of first element in second run to be merged\n674 * (must be aBase + aLen)\n675 * @param len2 length of second run to be merged (must be > 0)\n676 */\n677 private void mergeLo(int base1, int len1, int base2, int len2) {\n678 assert len1 > 0 && len2 > 0 && base1 + len1 == base2;\n679\n680 // Copy first run into temp array\n681 T[] a = this.a; // For performance\n682 T[] tmp = ensureCapacity(len1);\n683 int cursor1 = tmpBase; // Indexes into tmp array\n684 int cursor2 = base2; // Indexes int a\n685 int dest = base1; // Indexes int a\n686 System.arraycopy(a, base1, tmp, cursor1, len1);\n687\n688 // Move first element of second run and deal with degenerate cases\n689 a[dest++] = a[cursor2++];\n690 if (--len2 == 0) {\n691 System.arraycopy(tmp, cursor1, a, dest, len1);\n692 return;\n693 }\n694 if (len1 == 1) {\n695 System.arraycopy(a, cursor2, a, dest, len2);\n696 a[dest + len2] = tmp[cursor1]; // Last elt of run 1 to end of merge\n697 return;\n698 }\n699\n700 Comparator<? super T> c = this.c; // Use local variable for performance\n701 int minGallop = this.minGallop; // \" \" \" \" \"\n702 outer:\n703 while (true) {\n704 int count1 = 0; // Number of times in a row that first run won\n705 int count2 = 0; // Number of times in a row that second run won\n706\n707 /*\n708 * Do the straightforward thing until (if ever) one run starts\n709 * winning consistently.\n710 */\n711 do {\n712 assert len1 > 1 && len2 > 0;\n713 if (c.compare(a[cursor2], tmp[cursor1]) < 0) {\n714 a[dest++] = a[cursor2++];\n715 count2++;\n716 count1 = 0;\n717 if (--len2 == 0)\n718 break outer;\n719 } else {\n720 a[dest++] = tmp[cursor1++];\n721 count1++;\n722 count2 = 0;\n723 if (--len1 == 1)\n724 break outer;\n725 }\n726 } while ((count1 | count2) < minGallop);\n727\n728 /*\n729 * One run is winning so consistently that galloping may be a\n730 * huge win. So try that, and continue galloping until (if ever)\n731 * neither run appears to be winning consistently anymore.\n732 */\n733 do {\n734 assert len1 > 1 && len2 > 0;\n735 count1 = gallopRight(a[cursor2], tmp, cursor1, len1, 0, c);\n736 if (count1 != 0) {\n737 System.arraycopy(tmp, cursor1, a, dest, count1);\n738 dest += count1;\n739 cursor1 += count1;\n740 len1 -= count1;\n741 if (len1 <= 1) // len1 == 1 || len1 == 0\n742 break outer;\n743 }\n744 a[dest++] = a[cursor2++];\n745 if (--len2 == 0)\n746 break outer;\n747\n748 count2 = gallopLeft(tmp[cursor1], a, cursor2, len2, 0, c);\n749 if (count2 != 0) {\n750 System.arraycopy(a, cursor2, a, dest, count2);\n751 dest += count2;\n752 cursor2 += count2;\n753 len2 -= count2;\n754 if (len2 == 0)\n755 break outer;\n756 }\n757 a[dest++] = tmp[cursor1++];\n758 if (--len1 == 1)\n759 break outer;\n760 minGallop--;\n761 } while (count1 >= MIN_GALLOP | count2 >= MIN_GALLOP);\n762 if (minGallop < 0)\n763 minGallop = 0;\n764 minGallop += 2; // Penalize for leaving gallop mode\n765 } // End of \"outer\" loop\n766 this.minGallop = minGallop < 1 ? 1 : minGallop; // Write back to field\n767\n768 if (len1 == 1) {\n769 assert len2 > 0;\n770 System.arraycopy(a, cursor2, a, dest, len2);\n771 a[dest + len2] = tmp[cursor1]; // Last elt of run 1 to end of merge\n772 } else if (len1 == 0) {\n773 throw new IllegalArgumentException(\n774 \"Comparison method violates its general contract!\");\n775 } else {\n776 assert len2 == 0;\n777 assert len1 > 1;\n778 System.arraycopy(tmp, cursor1, a, dest, len1);\n779 }\n780 }\n781\n782 /**\n783 * Like mergeLo, except that this method should be called only if\n784 * len1 >= len2; mergeLo should be called if len1 <= len2. (Either method\n785 * may be called if len1 == len2.)\n786 *\n787 * @param base1 index of first element in first run to be merged\n788 * @param len1 length of first run to be merged (must be > 0)\n789 * @param base2 index of first element in second run to be merged\n790 * (must be aBase + aLen)\n791 * @param len2 length of second run to be merged (must be > 0)\n792 */\n793 private void mergeHi(int base1, int len1, int base2, int len2) {\n794 assert len1 > 0 && len2 > 0 && base1 + len1 == base2;\n795\n796 // Copy second run into temp array\n797 T[] a = this.a; // For performance\n798 T[] tmp = ensureCapacity(len2);\n799 int tmpBase = this.tmpBase;\n800 System.arraycopy(a, base2, tmp, tmpBase, len2);\n801\n802 int cursor1 = base1 + len1 - 1; // Indexes into a\n803 int cursor2 = tmpBase + len2 - 1; // Indexes into tmp array\n804 int dest = base2 + len2 - 1; // Indexes into a\n805\n806 // Move last element of first run and deal with degenerate cases\n807 a[dest--] = a[cursor1--];\n808 if (--len1 == 0) {\n809 System.arraycopy(tmp, tmpBase, a, dest - (len2 - 1), len2);\n810 return;\n811 }\n812 if (len2 == 1) {\n813 dest -= len1;\n814 cursor1 -= len1;\n815 System.arraycopy(a, cursor1 + 1, a, dest + 1, len1);\n816 a[dest] = tmp[cursor2];\n817 return;\n818 }\n819\n820 Comparator<? super T> c = this.c; // Use local variable for performance\n821 int minGallop = this.minGallop; // \" \" \" \" \"\n822 outer:\n823 while (true) {\n824 int count1 = 0; // Number of times in a row that first run won\n825 int count2 = 0; // Number of times in a row that second run won\n826\n827 /*\n828 * Do the straightforward thing until (if ever) one run\n829 * appears to win consistently.\n830 */\n831 do {\n832 assert len1 > 0 && len2 > 1;\n833 if (c.compare(tmp[cursor2], a[cursor1]) < 0) {\n834 a[dest--] = a[cursor1--];\n835 count1++;\n836 count2 = 0;\n837 if (--len1 == 0)\n838 break outer;\n839 } else {\n840 a[dest--] = tmp[cursor2--];\n841 count2++;\n842 count1 = 0;\n843 if (--len2 == 1)\n844 break outer;\n845 }\n846 } while ((count1 | count2) < minGallop);\n847\n848 /*\n849 * One run is winning so consistently that galloping may be a\n850 * huge win. So try that, and continue galloping until (if ever)\n851 * neither run appears to be winning consistently anymore.\n852 */\n853 do {\n854 assert len1 > 0 && len2 > 1;\n855 count1 = len1 - gallopRight(tmp[cursor2], a, base1, len1, len1 - 1, c);\n856 if (count1 != 0) {\n857 dest -= count1;\n858 cursor1 -= count1;\n859 len1 -= count1;\n860 System.arraycopy(a, cursor1 + 1, a, dest + 1, count1);\n861 if (len1 == 0)\n862 break outer;\n863 }\n864 a[dest--] = tmp[cursor2--];\n865 if (--len2 == 1)\n866 break outer;\n867\n868 count2 = len2 - gallopLeft(a[cursor1], tmp, tmpBase, len2, len2 - 1, c);\n869 if (count2 != 0) {\n870 dest -= count2;\n871 cursor2 -= count2;\n872 len2 -= count2;\n873 System.arraycopy(tmp, cursor2 + 1, a, dest + 1, count2);\n874 if (len2 <= 1) // len2 == 1 || len2 == 0\n875 break outer;\n876 }\n877 a[dest--] = a[cursor1--];\n878 if (--len1 == 0)\n879 break outer;\n880 minGallop--;\n881 } while (count1 >= MIN_GALLOP | count2 >= MIN_GALLOP);\n882 if (minGallop < 0)\n883 minGallop = 0;\n884 minGallop += 2; // Penalize for leaving gallop mode\n885 } // End of \"outer\" loop\n886 this.minGallop = minGallop < 1 ? 1 : minGallop; // Write back to field\n887\n888 if (len2 == 1) {\n889 assert len1 > 0;\n890 dest -= len1;\n891 cursor1 -= len1;\n892 System.arraycopy(a, cursor1 + 1, a, dest + 1, len1);\n893 a[dest] = tmp[cursor2]; // Move first elt of run2 to front of merge\n894 } else if (len2 == 0) {\n895 throw new IllegalArgumentException(\n896 \"Comparison method violates its general contract!\");\n897 } else {\n898 assert len1 == 0;\n899 assert len2 > 0;\n900 System.arraycopy(tmp, tmpBase, a, dest - (len2 - 1), len2);\n901 }\n902 }\n903\n904 /**\n905 * Ensures that the external array tmp has at least the specified\n906 * number of elements, increasing its size if necessary. The size\n907 * increases exponentially to ensure amortized linear time complexity.\n908 *\n909 * @param minCapacity the minimum required capacity of the tmp array\n910 * @return tmp, whether or not it grew\n911 */\n912 private T[] ensureCapacity(int minCapacity) {\n913 if (tmpLen < minCapacity) {\n914 // Compute smallest power of 2 > minCapacity\n915 int newSize = minCapacity;\n916 newSize |= newSize >> 1;\n917 newSize |= newSize >> 2;\n918 newSize |= newSize >> 4;\n919 newSize |= newSize >> 8;\n920 newSize |= newSize >> 16;\n921 newSize++;\n922\n923 if (newSize < 0) // Not bloody likely!\n924 newSize = minCapacity;\n925 else\n926 newSize = Math.min(newSize, a.length >>> 1);\n927\n928 @SuppressWarnings({\"unchecked\", \"UnnecessaryLocalVariable\"})\n929 T[] newArray = (T[])java.lang.reflect.Array.newInstance\n930 (a.getClass().getComponentType(), newSize);\n931 tmp = newArray;\n932 tmpLen = newSize;\n933 tmpBase = 0;\n934 }\n935 return tmp;\n936 }\n937 }\n--- EOF ---\n\n```"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.5722596,"math_prob":0.95854044,"size":32148,"snap":"2019-26-2019-30","text_gpt3_token_len":10111,"char_repetition_ratio":0.12515555,"word_repetition_ratio":0.14778247,"special_character_ratio":0.41053876,"punctuation_ratio":0.13188542,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97561085,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-07-17T14:32:05Z\",\"WARC-Record-ID\":\"<urn:uuid:6c34fe8b-3735-41d2-830c-073e2ff1df19>\",\"Content-Length\":\"47010\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6efacd60-6c87-4252-910a-678ff980dfff>\",\"WARC-Concurrent-To\":\"<urn:uuid:6c98ca69-b1d1-4beb-80aa-ab3228b62179>\",\"WARC-IP-Address\":\"137.254.56.61\",\"WARC-Target-URI\":\"http://cr.openjdk.java.net/~plevart/misc/valhala-hacks/javany-webrev.01/src/java.base/share/classes/java/util/TimSort.java.lhs.html\",\"WARC-Payload-Digest\":\"sha1:G5LEQZRYQFYMB4Z273OQZZEZZTYP4WF7\",\"WARC-Block-Digest\":\"sha1:6D3LG3U74QOESCAMPUBEP646PRFGFN5U\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-30/CC-MAIN-2019-30_segments_1563195525312.3_warc_CC-MAIN-20190717141631-20190717163631-00081.warc.gz\"}"} |
http://synesthesiaproject.com/software/database.html | [
"Starting with section A||B the primary tree is grown in a depth first manner and each node can have up to 16 children each of which is generated by a different function based upon Φ and φ. The tree is constructed using a template where each row is composed of 16 bits whose states determine whether the function that corresponds with each index is applied to a given node whose depth matches the row number in the template. The template is used to limit the number of possible children and keep the tree to a reasonable size. The tree is stored as it's created in a mysql database using a nested set representation so that searches are fast. A and B are stored as strings and only evaluated when determining their frequency or assigning them a color and not when the tree is constructed. This makes it possible to determine whether two endpoints are equal and also whether an endpoint is rational. For example, Φ (1/2 + 1/2√5) and its inverse, φ (-1/2 + 1/2√5) are represented as 1:1:1:2 and -1:2:1:2, respectively. Note that since the √5 is implicit any endpoint where the 3rd term equals zero is rational. The endpoint representing an octave would simply be represented as 2:1:0:1.\n\nIf the endpoints of a section are considered in relation to each other and also with respect to zero we can identify three lengths. (B − A, A − 0, B − 0) which can be multiplied by Φ and φ, This results in the following 16 children.\n\n• A || A ± (B−A)×Φ\n• A || A ± (B−A)×φ\n• B || B ± (B−A)×Φ\n• B || B ± (B−A)×φ\n• A || A ± (A−0)×Φ\n• A || A ± (A−0)×φ\n• B || B ± (B−0)×Φ\n• B || B ± (B−0)×φ\n\n• Note that when the starting_section A||B = A||A×Φ, the following children are duplicated and so 13 and not 16 unique children are produced.\nB || B + (B−A)×Φ ≡ B || B + (B−0)×φ\nB || B − (B−A)×Φ ≡ B || B − (B−0)×φ\nA || A + (A−0)×φ ≡ A||B (clone of parent)\n\nGenerally speaking, nodes can have identical values for A||B but have different parents. This type of potential cycle is ignored by the use of a tree which greatly simplifies searches. It is handled, instead, by leaving it to the user to manually choose between different cycles. All nodes that share the same pick coordinates are represented in the picked window where they can be selected and then added to the composition or where the information displayed can be used in further searches.\n\nIf the primary tree is built starting with section A||B =1||Φ then all the integers will be generated with just the use of three of the functions. To get the ratios of just intonation to show up we can simply start with A||B = 1/360||(1/360×Φ) or, since all just ratios are greater then 1, with A||B = 1/360×Φ11 || 1/360×Φ12. However, for all the just ratios to be generated requires that the primary tree be grown to great depth which still causes the database to become too large, so as a workaround an optional stopping case (juststop) was introduced. Whether a child should be grown using a given function is determined both by the template and, if juststop = true, by whether it remains possible to generate one of the just ratios that remains marked as unfound by following that branch. Though determining whether it is \"possible\" only looks one step ahead this was found to be sufficient to keep the database to a manageable size as well as generate all the just ratios in the given list.\n\nIn order to create a composition the primarytree can be searched and the resulting subtrees displayed in a 3D graph where their nodes can be played and, if selected, transfered to a composition panel. Subtrees can be saved to the database and, like the primary tree, be the source of future subtrees. A composition can utilize more then one tree and any trees it uses are loaded when it is. However, it may not use nodes from more then one primary tree and can therefore not span databases. Each database can have only one primary tree. Most of the compositions here utilize the same database, where the primary tree was grown with juststop = true and a template where 0010100100000000 was repeated 498 times.\nIn this database, the just ratio with the greatest depth (d = 376) is 1152/5 (9/5) and the maximum nodeid is 190057. Note that if juststop was set to false, then the full tree would have to be grown to a depth of 376 and the number of nodes in the resulting tree would have been prohibitively large.",
null,
"Database: template = 0010100100000000 x 498; juststop = true; starting_section = 1/360×Φ11 || 1/360×Φ12.\nSearch: @d400%1:1:0:1 + @d400%16:15:0:1 + @d400%9:8:0:1 + ... etc.\nSearches the primary tree for all just ratios in the given list. The subtrees (one for each just ratio) were then combined after the search into one connected subtree.\nThis could have also been accomplished with @d400%1:1:0:1 > @d400%16:15:0:1 > @d400%9:8:0:1 + ... etc.\nThe white cones represent the justly intoned ratios.",
null,
"Same as the above graph, except uses a different mapping to display nodes and the cones representing just ratios are colored.",
null,
"Database: template = 1111111111111111 x 3; juststop = false; starting_section = 1||Φ\nSearch: @d2\\$1 (all nodes from nodeid = 1 to a depth of 2). Only 14 nodes are visible since 3 are identical when the starting section is A || A×Φ. In this case A=1; and B=Φ. There are seventeen notes in the audio, one for the root node and one for each child node.",
null,
"Database: template = 1111111111111111 x 3; juststop = false; starting_section = 1||Φ.\nSearch: @d2\\$1 (all nodes from nodeid = 1 to a depth of 2). All 16 nodes are visible since the starting_section A||B ≠ A || A×Φ.",
null,
"Database: template = 1111111111111111 x 4; juststop = false; starting_section = 1||Φ.\nSearch: @\\$38453 > @\\$64667\nBoth nodes have same A||B and can thus be thought of as representing a cycle. The picked window shows 4 nodes that have this A||B (lower right), the path between two of them is shown here.",
null,
"Same as the above graph, except as seperate tree rather then as overlay. Notice that the picked window only shows the two nodes searched for.",
null,
"Database: template = 1111111111111111 x 4; juststop = false; starting_section = 1||Φ.\nSearch: @d4\\$1 (all nodes from nodeid=1 to a depth of 4)."
]
| [
null,
"http://synesthesiaproject.com/software/images/just-ints.jpg",
null,
"http://synesthesiaproject.com/software/images/justsphere8ints.jpg",
null,
"http://synesthesiaproject.com/software/images/14funcs.jpg",
null,
"http://synesthesiaproject.com/software/images/16funcs.jpg",
null,
"http://synesthesiaproject.com/software/images/cycle2a.jpg",
null,
"http://synesthesiaproject.com/software/images/cycle1a.jpg",
null,
"http://synesthesiaproject.com/software/images/16chld-d4a.jpg",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.9089761,"math_prob":0.965989,"size":5940,"snap":"2019-13-2019-22","text_gpt3_token_len":1552,"char_repetition_ratio":0.12348383,"word_repetition_ratio":0.058991436,"special_character_ratio":0.27996632,"punctuation_ratio":0.10819672,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9821415,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"im_url_duplicate_count":[null,8,null,8,null,4,null,4,null,4,null,4,null,4,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-03-22T18:26:31Z\",\"WARC-Record-ID\":\"<urn:uuid:8c102ee1-9f22-48e4-a7a4-f42b1820c831>\",\"Content-Length\":\"15574\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:15082018-2708-47eb-b88e-f2195dc463f2>\",\"WARC-Concurrent-To\":\"<urn:uuid:600617ac-d35f-4f7c-9a66-381e1123a36e>\",\"WARC-IP-Address\":\"68.66.200.204\",\"WARC-Target-URI\":\"http://synesthesiaproject.com/software/database.html\",\"WARC-Payload-Digest\":\"sha1:QSFU4SZIYBTFRPNZHJB3YCUY7H2D3SP7\",\"WARC-Block-Digest\":\"sha1:QSENHGZSTMVEVOFYVY3QC6MQUN373OPX\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-13/CC-MAIN-2019-13_segments_1552912202688.89_warc_CC-MAIN-20190322180106-20190322202106-00360.warc.gz\"}"} |
https://www.gradesaver.com/textbooks/math/calculus/university-calculus-early-transcendentals-3rd-edition/chapter-5-practice-exercises-page-343/60 | [
"## University Calculus: Early Transcendentals (3rd Edition)\n\n$$\\int\\frac{1}{r}\\csc^2(1+\\ln r)dr=-\\cot(1+\\ln r)+C$$\n$$A=\\int\\frac{1}{r}\\csc^2(1+\\ln r)dr$$ We set $a=1+\\ln r$, which means $$da=\\frac{1}{r}dr$$ Therefore, $$A=\\int\\csc^2ada$$ $$A=-\\cot a+C$$ $$A=-\\cot(1+\\ln r)+C$$"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.6958664,"math_prob":1.0000099,"size":488,"snap":"2019-51-2020-05","text_gpt3_token_len":173,"char_repetition_ratio":0.13636364,"word_repetition_ratio":0.0,"special_character_ratio":0.34631148,"punctuation_ratio":0.055555556,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000094,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-12-15T21:03:58Z\",\"WARC-Record-ID\":\"<urn:uuid:a2949d07-f06a-45a2-877a-455e99efbdca>\",\"Content-Length\":\"85965\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5917d410-14db-46ce-883c-42dd1bfd67b0>\",\"WARC-Concurrent-To\":\"<urn:uuid:c2bc76eb-5056-492c-b505-fe69cb49a4d6>\",\"WARC-IP-Address\":\"3.90.134.5\",\"WARC-Target-URI\":\"https://www.gradesaver.com/textbooks/math/calculus/university-calculus-early-transcendentals-3rd-edition/chapter-5-practice-exercises-page-343/60\",\"WARC-Payload-Digest\":\"sha1:L2AAE4H3YINFNBTOF6GPOSKHWSMIE3DS\",\"WARC-Block-Digest\":\"sha1:JW4QLMVCEAO44O42KWPWGGZRYPN3VMQM\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-51/CC-MAIN-2019-51_segments_1575541310866.82_warc_CC-MAIN-20191215201305-20191215225305-00007.warc.gz\"}"} |
http://rog.pynguins.com/pycode/3/189 | [
"Challenges\n\nReddit challenges in python language.\n\nFiles Code and Result\n\nchallenge73_easy\n\n```''' During the 70s and 80s, some handheld calculators used a very different notation\nfor arithmetic called Reverse Polish notation (RPN). Instead of putting operators\n(+, *, -, etc.) between their operands (as in 3 + 4), they were placed behind them:\nto calculate 3 + 4, you first inputted the operands (3 4) and then added them together by pressing +.\n\nInternally, this was implemented using a stack: whenever you enter a number, it's pushed onto the stack,\nand whenever you enter an operator, the top two elements are popped off for the calculation.\nHere's an example of a RPN calculator calculating 3 4 * 6 2 - +:\n\n --> 3\n --> 3 4\n[*] --> 12 ( 3 * 4 = 12)\n --> 12 6\n --> 12 6 2\n[-] --> 12 4 ( 6 - 2 = 4)\n[+] --> 16 (12 + 4 = 16)\n\nYour task is to implement a program that reads a string in Reverse Polish notation and prints the\nresult of the calculation. Your program should support positive and negative integers and the\noperators +, -, *. (For extra credit, you can implement extra functions, such as decimal numbers,\ndivision, exponentiation, etc.)\n'''\n\ndef minus(lst):\ntotal = lst[-2]\ntotal -= lst[-1]\n\ndef plus(lst):\nglobal stack\ntotal = lst[-2]\ntotal += lst[-1]\n\ndef div(lst):\ntotal = lst[-2]\ntotal /= lst[-1]\n\ndef multi(lst):\ntotal = lst[-2]\ntotal *= lst[-1]\n\ndef power_of(lst):\ntotal = lst\nfor x in range(1, len(lst)):\ntotal **= lst[x]\n\nif __name__ == '__main__':\n\nquay_press = ''\nstack = []\ntemp = []\n\noperators = ['-', '*', '/', '+', '**']\n\nwhile quay_press != 'q':\nquay_press = input('Input expression - \"q\" to quit...')\n\nif quay_press in operators:\ntemp = []\nfor x in range(0, 2):\nb = stack.pop()\ntemp.insert(0, b)\nif quay_press == '-':\nans = minus(temp)\nstack.append(ans)\nprint(stack)\nelif quay_press == '+':\nans = plus(temp)\nstack.append(ans)\nprint(stack)\nelif quay_press == '*':\nans = multi(temp)\nstack.append(ans)\nprint(stack)\nelif quay_press == '**':\nans = power_of(temp)\nstack.append(ans)\nprint(stack)\nelse:\nquay_press == '/'\nans = div(temp)\nstack.append(ans)\nprint(stack)\nelif quay_press== 'q':\nprint(ans)\nexit()\nelif quay_press == str(int(quay_press)):\nstack.append(int(quay_press))\nprint(stack)\nelse:\nprint('Wrong input!')\n```\n\nResult\n\n```Traceback (most recent call last):\nFile \"/tmp/tmpyqkd5tno\", line 67, in <module>\nquay_press = input('Input expression - \"q\" to quit...')\nEOFError: EOF when reading a line\n```"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.71659756,"math_prob":0.99771327,"size":2483,"snap":"2019-26-2019-30","text_gpt3_token_len":701,"char_repetition_ratio":0.14037919,"word_repetition_ratio":0.027227722,"special_character_ratio":0.3483689,"punctuation_ratio":0.15240084,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9992281,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-06-24T13:24:48Z\",\"WARC-Record-ID\":\"<urn:uuid:2d18ec00-a025-4448-9b0a-d4943fc347c5>\",\"Content-Length\":\"74731\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a98acb18-b867-4a2d-bb42-f03ef408e208>\",\"WARC-Concurrent-To\":\"<urn:uuid:8b6328dc-9d82-4ebb-b265-2e53863ef309>\",\"WARC-IP-Address\":\"176.96.138.168\",\"WARC-Target-URI\":\"http://rog.pynguins.com/pycode/3/189\",\"WARC-Payload-Digest\":\"sha1:YFT6WDYYI4ITI2LH4ASIJ63M7AXRWQ2F\",\"WARC-Block-Digest\":\"sha1:3PRXFNMI5EO4GLTY7E4ZGOHQQHJT6ZKF\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-26/CC-MAIN-2019-26_segments_1560627999539.60_warc_CC-MAIN-20190624130856-20190624152856-00185.warc.gz\"}"} |
https://physics.stackexchange.com/questions/98124/calculate-integral-of-motion-condition-with-poisson-brackets | [
"# Calculate integral of motion condition with Poisson brackets\n\nProblem statement: The Hamiltonian of a system is given by the formula:\n\n\\begin{equation*} H = \\frac{p_r^2}{2m} + \\frac{p_\\theta^2}{2mr^2} + V(r,\\theta). \\end{equation*}\n\nUnder what condition is $f=p_\\theta^2$ an integral of motion?\n\nAttempted solution:\n\nIn order for $f$ to be an integral of motion, according to Poisson theorem, is that:\n\n\\begin{equation*} [f, H] =0, \\end{equation*}\n\nwhere $[,]$ is the Poisson bracket.\n\nTherefore:\n\n\\begin{align*} \\left[\\frac{p_r^2}{2m} + \\frac{p_\\theta^2}{2mr^2} + V(r,\\theta), p_\\theta^2\\right] &= 0 \\Leftrightarrow \\\\ \\left[\\frac{p_r^2}{2m}, p_\\theta^2\\right] + \\left[\\frac{p_\\theta^2}{2mr^2}, p_\\theta^2\\right] + \\left[V(r,\\theta), p_\\theta^2\\right] &= 0. \\end{align*}\n\nBut how do I proceed from here on?\n\nEDIT1: Regarding the first term:\n\n\\begin{align*} \\left[\\frac{p_r^2}{2m},p_\\theta^2\\right]&=\\frac{1}{2m}\\left[p_r^2,p_\\theta^2\\right]=\\frac{1}{2m}[p_r p_r, p_\\theta^2]=\\frac{1}{2m}\\left(p_r[p_r,p_\\theta^2]+p_r[p_r,p_\\theta^2]\\right)\\\\ &=\\frac{1}{m}[p_r,p_\\theta^2]= \\frac{1}{m}\\left(p_\\theta[p_r, p_\\theta]+p_\\theta[p_r,p_\\theta]\\right) = \\frac{2p_\\theta[p_r,p_\\theta]}{m} \\end{align*}\n\nSo it boils down to what is $[p_r, p_\\theta]$ equal to ? I'm not sure whether it can be answered directly without resorting to the definition of Poisson bracket.\n\nThe coordinates in our problem are $q_i = \\{r, \\theta\\}, p_i = \\{p_r, p_\\theta\\}$. Therefore:\n\n\\begin{align*} [p_r, p_\\theta] &= \\sum_{i=1}^2 \\left(\\frac{\\partial p_r}{\\partial q_i}\\frac{\\partial p_\\theta}{\\partial p_i} - \\frac{\\partial p_r}{\\partial p_i}\\frac{\\partial p_\\theta}{\\partial q_i}\\right)\\\\ &= \\left(\\frac{\\partial p_r}{\\partial r}\\frac{\\partial p_\\theta}{\\partial p_r} - \\frac{\\partial p_r}{\\partial p_r}\\frac{\\partial p_\\theta}{\\partial r}\\right) + \\left(\\frac{\\partial p_r}{\\partial \\theta}\\frac{\\partial p_\\theta}{\\partial p_\\theta} - \\frac{\\partial p_r}{\\partial p_\\theta}\\frac{\\partial p_\\theta}{\\partial \\theta}\\right)\\\\ \\end{align*}\n\nAnd now I'm stuck again.\n\nThe way I understand it $p_r, p_\\theta$ are two components of momentum along $r, \\theta$ respectively. Does that imply that $p_r$ does not depend on $\\theta$ and that it only depends on $r$ ? If the answer is yes, then the result for the first term is zero.\n\nEDIT 2: Based on the answers in Hamiltonian formalism all the canonical variables are taken independent to each other, therefore $[p_r, p_\\theta]=0$. Similarly it may be shown that the 2nd term is also zero.\n\nI think it is pretty obviously in your last line. So what are the results of the commutator $[p_r,p_\\theta]$ and $[p_\\theta,p_\\theta]$? Note that $p_\\theta$ is not commute with $\\theta$. Then you should get the answer.\n• And \"What is the identity to get from $[A^2,B^2]$ to $[A,B]$?\" :) – Alex Nelson Feb 6 '14 at 21:46\n• Regarding $[p_r, p_\\theta]$ please see my latest question. Regarding $[p_\\theta, p_\\theta]$ how did you get rid of $r^{-2}$ ? Shouldn't it be $[p_\\theta/r^2, p_\\theta]$ ? – stathisk Feb 7 '14 at 2:17\n• @Zet In Hamiltonian formulation, $p_r$ and $p_\\theta$ are treated as independent variables, so the derivative with repest to others canonical variable would be zreo. – unsym Feb 7 '14 at 3:15"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.60599506,"math_prob":0.99990034,"size":2425,"snap":"2020-45-2020-50","text_gpt3_token_len":846,"char_repetition_ratio":0.24824452,"word_repetition_ratio":0.0,"special_character_ratio":0.3513402,"punctuation_ratio":0.11134021,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000092,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-27T07:19:14Z\",\"WARC-Record-ID\":\"<urn:uuid:d0dfe36e-27c4-443a-b29c-e8829712a964>\",\"Content-Length\":\"148794\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:56818e98-84f2-4ff2-8c15-9fede42b1504>\",\"WARC-Concurrent-To\":\"<urn:uuid:f42f9f46-65d8-462e-8cbf-7a0f1f963a70>\",\"WARC-IP-Address\":\"151.101.65.69\",\"WARC-Target-URI\":\"https://physics.stackexchange.com/questions/98124/calculate-integral-of-motion-condition-with-poisson-brackets\",\"WARC-Payload-Digest\":\"sha1:ODDZ5OV6IDIQNGBJSXG2YX4A47CIQMZD\",\"WARC-Block-Digest\":\"sha1:BHLJLHKMXCIMMYTPA565MMVA4RMQIRSC\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-45/CC-MAIN-2020-45_segments_1603107893402.83_warc_CC-MAIN-20201027052750-20201027082750-00670.warc.gz\"}"} |
https://gis.stackexchange.com/questions/139574/producing-hillshade-in-qgis?noredirect=1 | [
"I have been trying to create a hillshade using DEM data, however, regardless of the scale and z values I use the output is all black.\n\nI accessed the DEM data from a government source and clipped it to the area I need (shown below).",
null,
"Then I open the DEM (Terrain models) dialog and select this raster layer, choose an output file and fill in values for scale and z. Based on this other thread I used the equations to calculate for my area:\n\ns=111320*cos(latitude*pi/180) z=1/(111320*cos(latitude*pi/180))\n\nThis results in a scale of 111310 and a z of 8.98. To be clear, I've tried these numbers, I've tried just inputting the scale value and leaving z at 1, I've tried a whole host of values from threads I've come across, however, no matter the values, my result is always all black (shown below).",
null,
"What am I doing incorrectly?\n\nI am using QGIS 2.8.1 and the link to the data source I am using is: http://ftp2.cits.rncan.gc.ca/pub/geott/ess_pubs/210/210231/of_3678.zip\n\n• Set both the scale and the vertical exaggaration (\"z-factor\") to 1. The equation you found for calculating the scale only applies if you're working with geographical coordinates (i.e. degrees longitude and latitude) that need to be converted to metres, but the data you have is in a projected coordinate system (NAD83 / UTM zone 17N) that already uses metres. – Jake Mar 19 '15 at 17:07\n• possible duplicate of Scale and Z factor have no effect on hillshade analysis in QGIS – Jake Mar 19 '15 at 17:07\n• Thank you Jake, leaving both values as 1 did indeed work. Much appreciated mate! – user35127 Mar 19 '15 at 18:10"
]
| [
null,
"https://i.stack.imgur.com/lELtc.png",
null,
"https://i.stack.imgur.com/fVjNJ.png",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.84294266,"math_prob":0.63747823,"size":963,"snap":"2020-34-2020-40","text_gpt3_token_len":250,"char_repetition_ratio":0.11053181,"word_repetition_ratio":0.0,"special_character_ratio":0.28037384,"punctuation_ratio":0.12037037,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.961949,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,6,null,6,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-19T15:57:18Z\",\"WARC-Record-ID\":\"<urn:uuid:2aeef808-e7a4-4e6a-9b2d-b356360ad45f>\",\"Content-Length\":\"149957\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7ceb9a2e-be0f-4037-a806-eb0342ace4d7>\",\"WARC-Concurrent-To\":\"<urn:uuid:59e65c61-119c-405c-b451-074052cc10c2>\",\"WARC-IP-Address\":\"151.101.1.69\",\"WARC-Target-URI\":\"https://gis.stackexchange.com/questions/139574/producing-hillshade-in-qgis?noredirect=1\",\"WARC-Payload-Digest\":\"sha1:LEWR36TES2F5IPHELZANWHDJD6F4X6HO\",\"WARC-Block-Digest\":\"sha1:STGAP3SBO5EMP7XHSMJS2QIIM7SIS233\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400192778.51_warc_CC-MAIN-20200919142021-20200919172021-00205.warc.gz\"}"} |
https://codereview.stackexchange.com/questions/105565/funny-string-java-solution | [
"# Funny String Java Solution\n\nI'm a little rusty in Java, but I'm using it to get ready for interviews. Here's the problem description from HackerRank:\n\nProblem Statement\n\nSuppose you have a string $S$ which has length $N$ and is indexed from $0$ to $N−1$. String $R$ is the reverse of the string $S$. The string $S$ is funny if the condition $|S_i−S_{i−1}|=|R_i−R_{i−1}|$ is true for every $i$ from 1 to $N−1$.\n\n(Note: Given a string str, stri denotes the ascii value of the ith character (0-indexed) of str. |x| denotes the absolute value of an integer x)\n\nInput Format\n\nFirst line of the input will contain an integer T. T testcases follow. Each of the next T lines contains one string S.\n\nConstraints\n\n• $1 \\le T \\le 10$\n• $2 \\le$ length of S $\\le 10000$\n\nOutput Format\n\nFor each string, print Funny or Not Funny in separate lines.\n\nThis passing solution took me about 20 minutes, so that might be a bit long given the difficulty of the problem. I'm open to critiques on my speed too.\n\nimport java.io.*;\nimport java.util.*;\nimport java.text.*;\nimport java.math.*;\nimport java.util.regex.*;\n\npublic class Solution {\nprivate static boolean isFunny (String s)\n{\nString rev = reverse(s);\nboolean stillEq = true;\nfor (int i = 2; i < s.length() && stillEq; ++i)\n{\nint comp = (int)s.charAt(i) - (int)s.charAt(i-1);\nint comp2 = (int)rev.charAt(i) - (int)rev.charAt(i-1);\nstillEq = Math.abs(comp) == Math.abs(comp2);\n}\n\nif (stillEq)\nreturn true;\nelse\nreturn false;\n}\n\nprivate static String reverse (String s)\n{\nif (s.length() > 0)\nreturn s.charAt(s.length()-1) + reverse(s.substring(0, s.length()-1));\nelse\nreturn \"\";\n}\n\npublic static void main(String[] args) {\nScanner sc = new Scanner(System.in);\nint tests = sc.nextInt();\nfor (int i = 0; i < tests; ++i)\n{\nString out = isFunny(sc.next()) ? \"Funny\" : \"Not Funny\";\nSystem.out.println( out );\n}\n}\n\n• Welcome to CodeReview, ironicaldiction. I hope you get some fine answers. Sep 24 '15 at 3:14\n• Wouldn't it be easier to just keep two counters and not actually reverse the string? Seems a bit unnecessary to physically reverse when you can easily compute the math involved. Sep 24 '15 at 7:01\n• Please do not edit your question to include changes you made due to answers. If you wish to indicate what changes you made, you should post a self-answer citing the answers you used to make your changes, or a new question if you still want improvements on your (new) code. Sep 25 '15 at 18:16\n\n• Bug\n\nThe main loop starts at i = 2. That is, s.charAt(1) - s.charAt(0) is never attended to. Suspicious, isn't it?\n\n• Naming\n\nA name comp (and comp2) presumes that it carries some information about comparison. It obviously doesn't. diff and rdiff sound better.\n\n• Algorithm\n\nReversal of the string just wastes time. You may work the same string from both directions simultaneously:\n\nfor (int i = 1; i < s.length(); ++i) {\ndiff = s.charAt(i) - s.charAt(i - 1);\nrdiff = s.charAt(s.length() - 1 - i) - s.charAt(s.length() - 1 - (i-1));\n...\n\n• Returning the comparison result is an anti-pattern.\n\nreturn stillEq;\n\n\nachieves the same result as\n\nif (stillEq)\nreturn true;\nelse\nreturn false;\n\n\nin a much cleaner way.\n\n• If you insist on reversing a string, better come up with an iterative method. Java cannot eliminate tail recursion.\n\nWhat jumps out at me is:\n\nprivate static String reverse (String s)\n{\nif (s.length() > 0)\nreturn s.charAt(s.length()-1) + reverse(s.substring(0, s.length()-1));\nelse\nreturn \"\";\n}\n\n\nThis has two problems:\n\n1. it's recursive - Java doesn't handle tail optimisation and recursion is slow\n2. It makes a rather large number of copies - String.substring copies the underlying String\n3. it's very long\n\nI would suggest:\n\nprivate static String reverse (final String s) {\nreturn new StringBuilder(s).reverse().toString();\n}\n\n\nI would also suggest that you always use brackets for your if...else statements. It's generally accepted common practice and with good reason - the few lines that you save by not doing so lead to some very insidious bugs.\n\nOn an algorithmic note: why reverse the String at all? Use one loop and read the String both forwards and backwards simultaneously.\n\nFor further improvement, walk through a comparison manually:\n\ns = abcdef\nrs = fedcba\n\n\n1. |b - a| == |e - f|\n2. |c - b| == |d - e|\n3. |d - c| == |c - d|\n4. |e - d| == |b - c|\n5. |f - e| == |a - b|\n\nWhat do you notice about the pairs 1. <-> 5. and 2. <-> 4.? There is a simpler solution to this problem than brute force...\n\nYour code is organized in a good way. Another thing I liked is that you have followed proper naming convention (i.e. Camel Case) while defining the function. However, there are few things that can be improved.\n\nFirst of all, the code will give Compilation Error as the last } is missing in the code. Another thing is that, some imports like regex can be removed from the code as the functionality of those imports are never used in the code.\n\nAnother thing I have observed in your code that you are comparing both ascii values comp and comp2 and then returning the boolean after competing the for loop. Instead of that, you can return the false as soon as both ascii numbers are not same. This means we do not need to iterate through the whole string if a single difference doesn't match.\n\nApart from that, you have developed a function reverese to reverse the string and return the reversed string to the isFunny function. This thing (of passing a big string to the function, then doing some operation on each character and getting back into original one) can increase the time complexity as the maximum length of the string in this case can be 10000 (from description).\n\nActually, there is no need to reverse the String as the main goal is to compare ascii values of each character of two strings. We can directly get the ascii value of each character of reversed string without reversing the original String. So, my logic is as follows:\n\nstatic boolean isFunny(String s)\n{\nint[] a1 = new int[s.length()];\nint[] a2 = new int[s.length()];\nint slen= s.length() - 1;\n\nfor(int i = 0; i < a1.length; i++, slen--)\n{\na1[i] = s.charAt(i);\na2[slen] = s.charAt(i);\n}\n\nfor(int i = 0; i < a1.length - 1; i++)\n{\nint diff1 = Math.abs(a1[i] - a1[i + 1]);\nint diff2 = Math.abs(a2[i] - a2[i + 1]);\n\nif(diff1 != diff2)\n{\nreturn false;\n}\n}\n\nreturn true;\n}\n\n• Did you mean Unicode, rather than ASCII? Oct 31 '18 at 9:57\n\n• Let your IDE format your code instead of doing it by hand. This will avoid inconsistencies in spacing.\n• Use an early return instead of the stillEq variable. This will make your program faster.\n• Since the task talks about reading lines, you should use Scanner.nextLine instead of Scanner.next.\n• Write i++ instead of ++i. While they are completely equivalent to the compiler, the former style is much more common. (Using the latter style tells the informed reader that you come from a C++ background and you don't trust the compiler to generate efficient code no matter how you write it.)\n\nLearning from the answers above can the code be optimized further as\n\n// Complete the funnyString function below\n\n static String funnyString(String s) {\nString rev = reverse(s);\nboolean stillEq = true;\nfor (int i = 2; i < s.length() && stillEq; ++i)\n{\nint comp = (int)s.charAt(i) - (int)s.charAt(i-1);\nint comp2 = (int)rev.charAt(i) - (int)rev.charAt(i-1);\nstillEq = Math.abs(comp) == Math.abs(comp2);\n}\nif (stillEq) {\nreturn \"Funny\";\n}\nelse{\nreturn \"Not Funny\";\n}\n}\n\nprivate static String reverse (String s)\n{\nif (s.length() > 0)\nreturn new StringBuilder(s).reverse().toString();\nelse\nreturn \"\";\n}\n\n• You have presented an alternative solution, but haven't reviewed the code. Please edit to show what aspects of the question code prompted you to write this version, and in what ways it's an improvement over the original. It may be worth (re-)reading How to Answer. Aug 2 '19 at 14:37"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.62233764,"math_prob":0.93439275,"size":1822,"snap":"2021-43-2021-49","text_gpt3_token_len":514,"char_repetition_ratio":0.11111111,"word_repetition_ratio":0.0,"special_character_ratio":0.32821077,"punctuation_ratio":0.17948718,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.973392,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-20T16:17:49Z\",\"WARC-Record-ID\":\"<urn:uuid:dfc9b5dc-50d8-4713-a15e-14102025a266>\",\"Content-Length\":\"216854\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8dbdf33a-73a2-4856-a2d8-de0e231a9f58>\",\"WARC-Concurrent-To\":\"<urn:uuid:f16dce85-e6e9-4811-a28f-b791bbcaa914>\",\"WARC-IP-Address\":\"151.101.129.69\",\"WARC-Target-URI\":\"https://codereview.stackexchange.com/questions/105565/funny-string-java-solution\",\"WARC-Payload-Digest\":\"sha1:LH4GV5VNACTSF2JVJLKJLZARAJ57EHWO\",\"WARC-Block-Digest\":\"sha1:GBUX2DA373KPZWJ5ZNQM5UGIQLANPLR5\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323585322.63_warc_CC-MAIN-20211020152307-20211020182307-00160.warc.gz\"}"} |
https://www.testpreppractice.net/practice-tests/problem-solving-sm/pssm5.html?testname=GRE | [
"# Problem Solving Select Many Practice Test 5\n\n#### Q.1\n\nWhich of the following values of x satisfies the equations (2-3x)/4<9 and x<-5? Indicate all correct options.\n\n• A. 1\n• B. -1\n• C. -5\n• D. -6\n• E. -10\n• (2-3x)/4<9 2-3x<36 -3x<36-2=34 x>-34/3 and x<-5 Only x = -6 and -10 satisfy the given equations.\n\n#### Q.2\n\nWhich of the following is true? Indicate all correct options.\n\n• A. (3,4) lies in the first quadrant\n• B. (5,-2) lies in the fourth quadrant\n• C. (3,0) lies on the y-axis\n• D. (0,3) lies of the x-axis\n• E. (-2,-2) lies in the fourth quadrant\n• (3,4) lies in the first quadrant. Option A is true. (5,-2) lies in the fourth quadrant. Option B is true. (3,0) lies on the x-axis and (0,3) lies on the y-axis. Options C and D are false. (-2,-2) lies in the third quadrant. Option E is false.\n\n#### Q.3\n\nA shopkeeper sold 200 tables at a loss. His loss was equal to the selling price of 4 tables. Which of the following statements is true? Indicate all correct options.\n\n• A. His loss was Rs.2000\n• B. His loss % was 100/51%\n• C. His selling price was Rs.500 per table\n• D. The selling price cannot be determined\n• E. The total loss cannot be determined\n• Answer: B, D and E\n• Let the selling price of one table be Rs.x. We are given that the loss is equal to the selling price of 4 tables. Hence, the total loss can be written in terms of the selling price i.e. 4x. 200 tables were sold and the cost price of 200 tables can be calculated as C.P. = SP + loss = 200x + 4x = 204x Since the loss percent is calculated with respect to the cost price, it is independent of x Loss % = loss/CP*100 = (4x/204x) *100 = 100/51% Opions B, D and E are true.\n\n#### Q.4\n\nP(n,4) = 20 P(n,2). Which of the following is true? Indicate all correct options. P is Probability\n\n• A. n = 7\n• B. n = -2\n• C. n can have only positive values\n• D. n is negative\n• E. n has two values\n• P(n,4) = 20 P(n,2) n!/(n-4)! = 20*n!/(n-2)! (n-2)!=20(n-4)! (n-2)(n-3)(n-4)!=20(n-4)! (n-2)(n-3)=20 n^2 - 5n + 6 - 20 = 0 n^2 - 5n - 14 = 0 n^2 - 7n + 2n - 14 = 0 n(n-7) + 2(n-7) = 0 (n+2)(n-7) = 0 n = -2,7 Since n is positive, n = 7. Options A and C are true.\n\n#### Q.5\n\nC(n,r) = 120 and P(n,r) = 720. Which of the following is true? Indicate all correct options.\n\n• A. r =9\n• B. n = 9\n• C. n = 8\n• D. r = 3\n• E. r = 7\n• C(n,r) = 120 n!/[(n-r)!r!] = 120...(1) P(n,r) = 720 n!/(n-r)! = 720...(2) Dividing (2) by (1), we get [n!/(n-r)!] / n!/[(n-r)!r!] = 720/120 r! = 6 = 3! r = 3 Putting r = 3 in (2), we get n!/(n-3)! = 720 n(n-1)(n-2)(n-3)!/(n-3)! = 720 n(n-1)(n-2) = 720 Clearly, n = 8 Options C and D are true.\n\n#### Q.6\n\nWhich of the following is the LCM of 3!, 5! and 7!? Indicate all correct options.\n\n• A. 7!\n• B. 3!\n• C. 5!\n• D. 5040\n• E. 12\n• LCM of 3!, 5! and 7! = LCM of 3!, 5*4*3! and 7*6*5*4*3! = 3!*4*5*6*7 = 7! = 5040\n\n#### Q.7\n\nThe mth term of an A.P. is 1/n. The nth term is 1/m. Which of the following is true? Indicate all correct options.\n\n• A. The first term of the AP is m/n\n• B. The first term of the AP is n/m\n• C. The first term of the AP is 1/mn\n• D. The common difference of the AP is 1/mn\n• E. The first term of the AP is equal to the common difference.\n• Answer: C, D and E\n• Let a be the first term and d be the common difference of the AP According to the given conditions, we have 1/n = a + (m-1)d 1/m = a + (n-1)d Subtracting one equation from the other, we get 1/n - 1/m = (m-n)d (m-n)/mn = (m-n)d d = 1/mn Putting this value of d in any of the above equations, we get 1/n = a + (m-1)*1/mn a = 1/n - (m-1)*1/mn = (m-m+1)/mn = 1/mn The first term of the AP is 1/mn and the common difference is 1/mn Options C, D and E are true.\n\n#### Q.8\n\nf is a real function defined by f(x) = x^3 - 3x + 5. Which of the following is true? Indicate all correct options. [x^3=x*x*x]\n\n• A. f(-2) = f(1)\n• B. f(-1) = f(1)\n• C. f(-1) = f(2)\n• D. f(3) = 23\n• E. f(3) = f(2) + 7\n• Answer: A, C and D\n• f(-2) = (-2)^3 -3*(-2) + 5 = -8 + 6 + 5 = 3 f(-1) = (-1)^3 - 3*(-1) + 5 = -1 + 3 + 5 = 7 f(1) = 1^3 -3*1 + 5 = 1 - 3 + 5 = 3 f(2) = 2^3 - 3*2 + 5 = 8 - 6 + 5 = 7 f(3) = 3^3 - 3*3 + 5 = 27 - 9 + 5 = 23 Options A, C and D are true. [2^3=2*2*2]\n\n#### Q.9\n\nThe sum of two consecutive even positive numbers is less than 25 and each number is larger than 8. Which of the following is true? Indicate all correct options.\n\n• A. One number is 12\n• B. The smaller number is 12\n• C. The sum of the numbers is less than 22\n• D. The smaller number is 10\n• E. The two numbers are multiples of 4\n• Let one number be x. The other number will be x+2 x+x+2 < 25 2x+2<25 2x<25-2=23 x<23/2 = 11.5 8\n\n#### Q.10\n\nIf (n+1)! = 12 (n ??? 1)!, then which of the following is true for n? Indicate all correct options. [n^2=n*n]\n\n• A. n = 4\n• B. n = 3\n• C. n = -4\n• D. n > 0\n• E. n < 0\n• (n+1)! = 12 (n ??? 1)! (n+1).n.(n-1)!=12(n-1)! (n+1).n = 12 n^2 + n -12=0 n^2 + 4n - 3n -12=0 n(n+4) -3(n+4) = 0 (n-3)(n+4) =0 n = 3, -4 Since n cannot be negtive, n = 3 Options B and D are true.\n\n#### Q.11\n\nWhich of the following statements is true? Indicate all such statements. [(4!)^2 = 4!*4!]\n\n• A. 9!*10 = 90!\n• B. 4!*5!*6 = 6!\n• C. 7!*8*9 = 9!\n• D. (5-1)!5! = [(4!)^2]*5\n• E. 4! = 12*3!\n• 9!*10 = 10! Option (A) is not true. 4!*5!*6 = 4!*(4!*5)*6 = 4!*6! Option (B) is not true. 7!*8*9 = 9! Option (C) is true. (5-1)!5! = 4!*5! = 4!*4!*5 = [(4!)^2]*5 Option (D) is true. 4! = 3!*4 12*3! = 3*4*3! = 3*4! Option (E) is not true.\n\n#### Q.12\n\nWhich of the following statements is true? Indicate all correct options.\n\n• A. Every rectangle is a square\n• B. Every square is a rectangle\n• C. Every parallelogram is a rhombus\n• D. Every rhombus is a parallelogram\n• E. Every square is a rhombus\n• Answer: B, D and E\n• In a rectangle opposite sides are equal and each angle is a right angle. In a square all sides are equal. Option A is false and B is true. A parallelogram is a quadrilateral in which both the pairs of opposite sides are parallel and equal. A rhombus is a parallelogram in which all sides are equal. Option C is false and D and E are true.\n\n#### Q.13\n\nWhen a number x is increased by 17, it equals 60 times its reciprocal. Which of the following statements is true? Indicate all correct options.\n\n• A. There are two possible values of x\n• B. There are two positive values of x\n• C. x = -3\n• D. x = 20\n• E. x = -20\n• x+17 = 60*1/x x^2 + 17x = 60 x^2 + 17x - 60=0 x^2 +20x - 3x - 60=0 x(x+20) - 3(x+20) = 0 x = 3, -20 Options A and E are true. [x^2=x*x]\n\n#### Q.14\n\nIf two buses starting from points A and B go in the same direction, then they meet in 6 hours. If they go in opposite directions, then they meet in 2 hours. The distance between points A and B is 120 km. Which of the following is true? Indicate all correct options.\n\n• A. The faster bus travels at a speed of 40 km/hr\n• B. The difference between the speeds of the buses is 20 km/hr\n• C. The faster bus is twice as fast as the slower bus\n• D. The slower bus travels at a speed of 40 km/hr\n• E. The speeds of the buses cannot be determined\n• Answer: A, B and C\n• Let the buses start in the same direction, from A towards B and beyond. They meet in 6 hours at a point at a distance of say x km from point B. Distance travelled by bus at A = (120 + x) km Distance travelled by bus at B = x km in 6 hours. Let the buses start in the opposite directions, towards each other. They meet in 2 hours at a point at a distance of say y km from point B. Distance travelled by bus at A = (120 - y) km Distance travelled by bus at B = y km in 2 hours. Speed =distance/time We equate the speeds of the buses in the two situations (120+x)/6 = (120-y)/2 and x/6 = y/2 120+x = 360-3y and x = 3y 120 + 3y = 360 - 3y 6y = 360 - 120 y = 240/6 = 40 Speed of bus at A = (120+3*40)/6 = 240/6 = 40 km/hr Speed of bus at B = y/2 = 40/2 = 20 km/hr Options A, B and C are true.\n\n#### Q.15\n\nWhich of the following is true? Indicate all correct options.\n\n• A. Sqrt(2) is an integer\n• B. Sqrt(2) is an irrational number\n• C. Sqrt(2) is a real number\n• D. -5/4 is an integer\n• E. 5 is an integer\n• Answer: B, C and E\n• Sqrt(2) = 1.41421 is a non-terminating repeating decimal. Hence, it is not an integer and it is an irrational real number. Options B and C are true. -5/4 is not an integer and 5 is an integer. Option E is true. All other options are false."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.8937231,"math_prob":0.99942946,"size":8290,"snap":"2019-26-2019-30","text_gpt3_token_len":3217,"char_repetition_ratio":0.13987449,"word_repetition_ratio":0.1184139,"special_character_ratio":0.43799758,"punctuation_ratio":0.1573991,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99990916,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-07-16T16:34:29Z\",\"WARC-Record-ID\":\"<urn:uuid:9ecfa705-d089-4397-ab84-d25367da6b15>\",\"Content-Length\":\"40919\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7a9f9717-27d2-460e-9437-0b215909e558>\",\"WARC-Concurrent-To\":\"<urn:uuid:460690ff-d0fc-432a-aec5-44c46240a488>\",\"WARC-IP-Address\":\"67.225.205.239\",\"WARC-Target-URI\":\"https://www.testpreppractice.net/practice-tests/problem-solving-sm/pssm5.html?testname=GRE\",\"WARC-Payload-Digest\":\"sha1:7K66LYW6MTMYJ3WRBODM5B5ME6I56SRH\",\"WARC-Block-Digest\":\"sha1:YTHJL5DRL2W4R6WI73PBZ55GOGQ4G65B\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-30/CC-MAIN-2019-30_segments_1563195524679.39_warc_CC-MAIN-20190716160315-20190716182315-00051.warc.gz\"}"} |
https://www.lmfdb.org/EllipticCurve/Q/2112g/ | [
"# Properties\n\n Label 2112g Number of curves 4 Conductor 2112 CM no Rank 0 Graph",
null,
"# Related objects\n\nShow commands for: SageMath\nsage: E = EllipticCurve(\"2112.m1\")\n\nsage: E.isogeny_class()\n\n## Elliptic curves in class 2112g\n\nsage: E.isogeny_class().curves\n\nLMFDB label Cremona label Weierstrass coefficients Torsion structure Modular degree Optimality\n2112.m4 2112g1 [0, -1, 0, 3, 45] 384 $$\\Gamma_0(N)$$-optimal\n2112.m3 2112g2 [0, -1, 0, -177, 945] [2, 2] 768\n2112.m2 2112g3 [0, -1, 0, -417, -1887] 1536\n2112.m1 2112g4 [0, -1, 0, -2817, 58497] 1536\n\n## Rank\n\nsage: E.rank()\n\nThe elliptic curves in class 2112g have rank $$0$$.\n\n## Modular form2112.2.a.m\n\nsage: E.q_eigenform(10)\n\n$$q - q^{3} + 2q^{5} + 4q^{7} + q^{9} + q^{11} - 6q^{13} - 2q^{15} + 6q^{17} + 8q^{19} + O(q^{20})$$\n\n## Isogeny matrix\n\nsage: E.isogeny_class().matrix()\n\nThe $$i,j$$ entry is the smallest degree of a cyclic isogeny between the $$i$$-th and $$j$$-th curve in the isogeny class, in the Cremona numbering.\n\n$$\\left(\\begin{array}{rrrr} 1 & 2 & 4 & 4 \\\\ 2 & 1 & 2 & 2 \\\\ 4 & 2 & 1 & 4 \\\\ 4 & 2 & 4 & 1 \\end{array}\\right)$$\n\n## Isogeny graph\n\nsage: E.isogeny_graph().plot(edge_labels=True)\n\nThe vertices are labelled with Cremona labels.",
null,
""
]
| [
null,
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAPYQAAD2EBqD%2BnaQAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi41LCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvSM8oowAAIABJREFUeJzt3XlcFfXi//H3cQFBTROwSG%2BlueWSymZ126TFpRJt0XJpudeFKEXMDTRAVFBTUfNHaGbdBLpaFpS5tGCZdkEB9wW1zK5LCVy1BOQgzu%2BPun1b7CZ4cM5hXs9/eohnZt49as7nzWdmPmMzDMMQAAAALKOW2QEAAABweVEAAQAALIYCCAAAYDEUQAAAAIuhAAIAAFgMBRAAAMBiKIAAAAAWQwEEAACwGAogAACAxVAAAQAALIYCCAAAYDEUQAAAAIuhAAIAAFgMBRAAAMBiKIAAAAAWQwEEAACwGAogAACAxVAAAQAALIYCCAAAYDEUQAAAAIuhAAIAAFgMBRAAAMBiKIAAAAAWQwEEAACwGAogAACAxVAAAQAALIYCCAAAYDEUQAAAAIuhAAIAAFgMBRAAAMBiKIAAAAAWQwEEAACwGAogAACAxVAAAQAALIYCCAAAYDEUQAAAAIuhAAIAAFgMBRAAAMBiKIAAAAAWQwEEAACwGAogAACAxdQxOwAAOBPDMFRQUKCSkhLZ7Xa5ubnJ09NTPj4%2BstlsZscDAIegAAKwtMLCQmVmZio3N1c5OVuUl5enU6dO/%2B5zjRs3kp%2BfnwICAuXv76/g4GB5e3ubkBgALp3NMAzD7BAAcDkZhqGsrCwlJSVpxYoVstvtan5VUwW0bSW/dq3UocV1aujpIbe6dWUvL9cPJaXafeiw8vYdVE7%2BQR357oTc3Nw0YMAAhYWFqVu3bswOAnApFEAAlpKRkaHYmBht275dLZr5KrRvbw3uGSxfb6%2BL3sfxwiKlrM1UcvpqHTp6XF27dFHslCnq06dPNSYHAMehAAKwhKKiIo0aNUppaWm6J7CrIh5/SD26%2BatWrao/C3f%2B/Hmty85V4pvv6OMtWzVw4EAtWLBAXl4XXyYBwAwUQAA1Xnp6ukJHjJD9bKnmR4RqUI9gh16yNQxDKWs/UXjiIrl7eCh50SL17dvXYfsHAEdjGRgANZZhGIqPj1e/fv0U1KaldqUma3DPux1%2Bv57NZtOQXvdod1qygtq0VL9%2B/ZSQkCB%2BvwbgrJgBBFAjGYahqKgozZgxQzFDByv6b4Muy4MahmFoyqspins1VZGRkZo%2BfToPiABwOiwDA6BGSkhI0IwZM/TiyGF6fuDDl%2B24NptNsUOHqKGnp8YlJKhhw4aKjIy8bMcHgIvBDCCAGic9PV39%2BvVTzNDBivn7YNNyxC5ZprhXU5Wenq6QkBDTcgDAb1EAAdQoRUVF6tC%2BvYLatFT6rBhTL78ahqGQcbHacuCQdu/Zw9PBAJwGD4EAqFFGjRol%2B9lSJU8Yafq9dzabTckTRqmstFTh4eGmZgGAX6IAAqgxMjIylJaWpvkRoZVa2Lk6XePjpfkRI5Samqr33nvP7DgAIIlLwABqCMMw5Ne1q7zdamnd/HjTZ/9%2ByTAM9QiPUlG5ody8PKfKBsCamAEEUCNkZWVp2/btinj8IacrWDabTaMf66et27YpOzvb7DgAQAEEUDMkJSWpRTNf9ejmb3aUC%2BrRzV8tmvkqKSnJ7CgAQAEE4PoKCwu1YsUKhfbtfUnv9q1OtWvX1oi%2BvbV8%2BXIVFhaaHQeAxTnnNyUAVEJmZqbsdrsG9wx2%2BL7f%2BXSjeo6Okk/P/qp1S09t2/9llfc1pGew7Ha71q9f78CEAFB5FEAALi83N1fNr2paLU/%2BFpee1a2dOigh7OlL3pevt5eaNfVRbm6uA5IBQNXxKjgALi9nyxYFtG1VpW1/KC7RM7NeUvqGL3RFfU%2BNG/So3vv8X%2Brc%2BgbNiwjVkF73SJK%2BPv6tQ7IGtGulnJwtDtkXAFQVM4AAXJphGMrbmie/dlUrgGMWLNamHbuVMStWH85P0Mbtu5SXX/XLvH/Gr20r5eXmiRW4AJiJAgjApRUUFOjUqdPq0OK6Sm/7Q3GJ3lj9sV4cOUx3B3ZVxxuu19LJz6vifEU1JP1Rx5bX6%2BSpUyooKKi2YwDAn6EAAnBpJSUlkqSGnh6V3varY9%2Bq/Nw5BbVv%2B/PPGjWor7bXNndYvt9q8FPO0tLSajsGAPwZCiAAl2a32yVJbnXrVnrb/16G/e3C0dV5ddatzo%2B3XpeVlVXfQQDgT1AAAbg0Nzc3SZK9vLzS297QzFd169TR5j35P//s%2B%2BJiHThy1GH5fst%2B7pwkyd3dvdqOAQB/hqeAAbg0T09PSdIPJZW/pNqwvqee6H2Pxi9coiZXNFTTKxspdkmKatlq/Twr%2BJ/TP%2Bib707oWGGRJCn/myOSpKu9rtTVXk0qfcwzP%2BX08Kj8JWsAcBRmAAG4NB8fHzVu3Ei7Dx2u0vZzRw3XLR1v1INjo3XvqEjd2qm9brz%2BL6rn9uMl5fc2/kt%2BTz6rB56PliQ9/kKC/J58VsnvflCl4%2B366mtd2bixfHx8qrQ9ADiCzWAtAgAu7u7gYF1RUaZ3ZkZf8r6KS8%2BqeZ9Bmj1ymP7ep6cD0v1avwlTdKauhz7%2B%2BBOH7xsALhYzgABcXkBgoHLyD1Zp2635B/Xmh%2Bv15ZFjyss/oMGxMyVJIXfc4siIP8vZd1ABAYHVsm8AuFgUQAAuz9/fX0e%2BO6HjP92nV1lz0laqyxNhundkpIpLz2rDy7Pl3biRg1NKxwuLdPREgfz9/R2%2BbwCoDC4BA3B5hYWFatasmaYOG6Jxgx81O84fmpXylqJfWaajR4/K29vb7DgALIwZQAAuz9vbW/3791dy%2BmqdP3/e7DgXVFFRoUXpqzVgwADKHwDTUQAB1AhhYWE6dPS41mXnmh3lgtZl5%2BrQ0eMKCwszOwoAcAkYQM1gGIb8/fzkVdemdfPjf/d2DzMZhqEe4VH6zzkpJzfXqbIBsCZmAAHUCDabTbFTpujjLVuVui7T7Di/krL2E328ZatiYmMpfwCcAjOAAGqUQYMGac2q97UrNVm%2B3l5mx9GxgiJ1HBSq%2B/v0UUpKitlxAEASBRBADVNUVKQO7dsrqE1Lpc%2BKMXXGzTAMhYyL1ZYDh7R7zx55eZlfSAFA4hIwgBrGy8tLyYsW6f2NWYpbmmpqlimvpmjVpmwtWryY8gfAqVAAAdQ4ffv21fTp0zVlSYrmpK00JcOctJWKezVV8fHxCgkJMSUDAPyROmYHAIDqEBkZqTNnzmhcQoJ%2BKClRzN8HX5bLwYZhaMqrKYp7NVWRkZGaOHFitR8TACqLAgigRrLZbJo%2BfboaNmyoqKgobc3/UskTRlbrgyHHCooUOnOBVm3KVkJCAuUPgNPiIRAANV5GRoZGDB%2BustJSzY8YocE973bobKBhGEpZ%2B4nCExfJ3cNDixYv5rIvAKdGAQRgCUVFRRo1apTS0tJ0T2BXjX6sn3reHKBatap%2BK3RFRYXWZedq3j/f1cdbtmrQoEFasGCBmjRp4sDkAOB4FEAAlpKRkaEpsbHaum2bWjTz1Yi%2BvTWkZ3ClLg0fLyzSsrWZWpS%2BWoeOHlfXLl0UO2WK%2BvTpU43JAcBxKIAALMcwDGVnZyspKUnLly%2BX3W5X86uayr/tDfJr20odW16vBp4ecqtTR/Zz53SmpFS7vvpaefkHlbPvoI6eKJC7u7sGDBigsLAwBQUF8YYPAC6FAgjA0goLC7V%2B/Xrl5OQoNzdHubm5OnXq9O8%2B17hxI/n7%2BysgIFD%2B/v7q3r27vL29TUgMAJeOAggAv2AYhgoKCrRlyxY98MADWrVqlQIDA%2BXj48MsH4Aag2VgAOAXbDabmjZtKl9fX0mSr6%2BvmjZtanIqAHAs3gQCAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIABfg4eGhrl27ysPDw%2BwoAOBwNsMwDLNDAAAA4PJhBhAAAMBiKIAAAAAWQwEEAACwGAogAACAxVAAAQAALIYCCAC/kJAgBQZKDRtKTZtKfftK%2BflmpwIAx6IAAsAvfPaZ9OyzUlaW9NFH0rlz0n33ScXFZicDAMdhHUAA%2BB8KCn6cCfzsM%2BmOO8xOAwCOwQwgAPwPp0//%2BM8mTczNAQCOxAwgAPwBw5BCQqSTJ6XPPzc7DQA4Th2zAwCAs3ruOWnHDmnjRrOTAIBjUQAB4AJGjpTee0/asEFq3tzsNADgWBRAAPgFw/ix/L37rvTpp1KLFmYnAgDHowACwC88%2B6yUliZlZPy4FuC33/7480aNJA8Pc7MBgKPwEAgA/ILNduGfv/aa9NRTlzUKAFQbZgAB4Bf4lRiAFbAOIAAAgMVQAAEAACyGAggAAGAxFEAAAACLoQACAABYDAUQAADAYiiAAAAAFkMBBAAAsBgKIAAAgMVQAAHgAvbu3Ss/Pz/t3bvX7CgA4HAUQAC4gNLSUm3dulWlpaVmRwEAh6MAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAsAvGIahEydO6NixY5KkY8eO6cSJEzIMw%2BRkAOA4NoNvNQAWVlhYqMzMTOXm5ionZ4vy8vJ06tTp332uceNG8vPzU0BAoPz9/RUcHCxvb28TEgPApaMAArAcwzCUlZWlpKQkrVixQna7Xc2vaqqAtq3k166VOrS4Tg09PeRWt67s5eX6oaRUuw8dVt6%2Bg8rJP6gj352Qm5ubBgwYoLCwMHXr1k02m83sfy0AuGgUQACWkpGRodiYGG3bvl0tmvkqtG9vDe4ZLF9vr4vex/HCIqWszVRy%2BmodOnpcXbt0UeyUKerTp081JgcAx6EAArCEoqIijRo1SmlpabonsKsiHn9IPbr5q1atqt8Kff78ea3LzlXim%2B/o4y1bNXDgQC1YsEBeXhdfJgHADBRAADVeenq6QkeMkP1sqeZHhGpQj2CHXrI1DEMpaz9ReOIiuXt4KHnRIvXt29dh%2BwcAR%2BMpYAA1lmEYio%2BPV79%2B/RTUpqV2pSZrcM%2B7HX6/ns1m05Be92h3WrKC2rRUv379lJCQwJPDAJwWM4AAaiTDMBQVFaUZM2YoZuhgRf9t0GV5UMMwDE15NUVxr6YqMjJS06dP5wERAE6njtkBAKA6JCQkaMaMGXpx5DA9P/Dhy3Zcm82m2KFD1NDTU%2BMSEtSwYUNFRkZetuMDwMVgBhBAjZOenq5%2B/fopZuhgxfx9sGk5YpcsU9yrqUpPT1dISIhpOQDgtyiAAGqUoqIidWjfXkFtWip9Voypl18Nw1DIuFhtOXBIu/fs4elgAE6Dh0AA1CijRo2S/WypkieMNP3eO5vNpuQJo1RWWqrw8HBTswDAL1EAAdQYGRkZSktL0/yI0Eot7FydrvHx0vyIEUpNTdV7771ndhwAkMQlYAA1hGEY8uvaVd5utbRufrzps3%2B/ZBiGeoRHqajcUG5enlNlA2BNzAACqBGysrK0bft2RTz%2BkNMVLJvNptGP9dPWbduUnZ1tdhwAoAACqBmSkpLUopmvenTzNzvKBfXo5q8WzXyVlJRkdhQAoAACcH2FhYVasWKFQvv2vqR3%2B1an2rVra0Tf3lq%2BfLkKCwvNjgPA4pzzmxIAKiEzM1N2u12DewY7dL/l585pwv97VTcNClWD7iFq9uBAPTnlRR0rKKrS/ob0DJbdbtf69esdmhMAKosCCMDl5ebmqvlVTR3%2B5G/J2TJtzT%2BoyU8PVO7rC7Uy4QXt//dRhYyPrdL%2BfL291Kypj3Jzcx2aEwAqi1fBAXB5OVu2KKBtqypt%2B0NxiZ6Z9ZLSN3yhK%2Bp7atygR/Xe5/9S59Y3aF5EqD5ckPCrzy8Y84y6/T1c33x7Qtde3bTSxwto10o5OVuqlBUAHIUZQAAuzTAM5W3Nk1%2B7qhXAMQsWa9OO3cqYFasP5ydo4/Zdysv/8g8/f/pMsWw2mxo3rF%2Bl4/m1baW83DyxAhcAM1EAAbi0goICnTp1Wh1aXFfpbX8oLtEbqz/WiyOH6e7Arup4w/VaOvl5VZyvuODnz5bZFfnyaxp43126on7VCmDHltfr5KlTKigoqNL2AOAIFEAALq2kpESS1NDTo9LbfnXsW5WfO6eg9m1//lmjBvXV9trmv/ts%2Bblzejw6QefPn9f/G/dclfM2%2BClnaWlplfcBAJeKewABuDS73S5Jcqtbt9Lb/vcy7G8Xjv7t1dnyc%2Bc0YFK8Dh37Vp8snFnl2T9Jcqvz49duWVlZlfcBAJeKGUAALs3NzU2SZC8vr/S2NzTzVd06dbR5T/7PP/u%2BuFgHjhz9%2Bc//LX8HjhzVRwsS5NXoikvKaz93TpLk7u5%2BSfsBgEvBDCAAl%2Bbp6SlJ%2BqGk8pdUG9b31BO979H4hUvU5IqGanplI8UuSVEtWy3ZbDadO1ehR6OmKS//oN6fHaeK8%2Bf1bdF/JElNrmhYpVnHMz/l9PCo/CVrAHAUCiAAl%2Bbj46PGjRtp96HD6nfXXyu9/dxRw/XMrJf04Njon5eB%2Bfd3BarnVldHCgr03udZkqSuT4T9arvM/zdTd/l1rvTxdn31ta5s3Fg%2BPj6V3hYAHIUCCMCl2Ww2%2BXX1U96%2Bg1XavmF9T6VMmfDzn4tLzypuaaqGhfTS9b5X6/y/1joqqiQpL/%2Bg/Pz9fnffIQBcTtwDCMDlBQQGKie/agVwa/5Bvfnhen155Jjy8g9ocOxMSVLIHbc4MuLPcvYdVEBAYLXsGwAuFgUQgMvz9/fXke9O6Hhh1d7ROydtpbo8EaZ7R0aquPSsNrw8W96NGzk4pXS8sEhHTxTI39/f4fsGgMqwGSxHD8DFFRYWqlmzZpo6bIjGDX7U7Dh/aFbKW4p%2BZZmOHj0qb29vs%2BMAsDBmAAG4PG9vb/Xv31/J6at1/vx5s%2BNcUEVFhRalr9aAAQMofwBMRwEEUCOEhYXp0NHjWpeda3aUC1qXnatDR48rLCzszz8MANWMAgjA5RmGocOHD8ujXj3NTn1bznZni2EYmpu2Ui1btFBQUJDZcQCAAgjAteXl5emOO%2B7Q448/rk433aT1uduVui7T7Fi/krL2E2XmbtdXhw7prrvu0tatW82OBMDiKIAAXNKJEyc0bNgwBQQE6D//%2BY8%2B/PBDZWdna%2BDAgQpPTK7yE8GOdqygSOGJizRo0CCtW7dORUVF8vf31/Dhw3XixAmz4wGwKJ4CBuBS7Ha7XnrpJcXFxal27dqKi4tTaGio6tT5cV37oqIidWjfXkFtWip9VoypCy4bhqGQcbHacuCQdu/ZIy8vL5WXlys5OVkxMTGqqKhQdHS0Ro4c%2BfM7jQHgcmAGEIBLMAxDq1atUseOHTVhwgQ98cQTOnDggJ577rmfy58keXl5KXnRIr2/MUtxS1NNTCxNeTVFqzZla9HixfLy8pIk1a1bVyNHjtSBAwc0ZMgQjR8/Xh07dtQHH3zgdPcuAqi5KIAAnN7evXvVq1cvPfjgg7r22mu1bds2vfTSSz%2BXqt/q27evpk%2BfrilLUjQnbeVlTvujOWkrFfdqquLj4xUSEvK7v/fy8tLChQu1bds2XXvttXrggQfUu3dv7d2714S0AKyGAgjAaZ08eVKjR49Wp06ddODAAaWnp%2Bujjz5Sx44d/3TbyMhIRUZGatxLryh2ybLLNrtmGIZilyzTuJdeUWRkpCZOnPg/P9%2BpUyd99NFHSk9P1/79%2B9WpUyeNHj1aJ0%2BevCx5AVgT9wACcDrnzp3TK6%2B8ohdeeEFlZWWaPHmyRo8eLXd390rtxzAMzZgxQ1FRUXrwtpuVPGGkfL0vPGvoCMcKihQ6c4FWbcpWQkLCn5a/3yorK9O8efM0bdo0ubu7a9q0aRo2bJhq165dTYkBWBUFEIBTyczM1OjRo7Vz5049/fTTmj59unx9fS9pnxkZGRoxfLjKSks1P2KEBve826EPhxiGoZS1nyg8cZHcPTy0aPHiC172vVjHjx9XVFSUXn/9dd10002aN2%2Beunfv7rC8AMAlYABO4auvvtLDDz%2Bsu%2B%2B%2BWw0aNNDmzZu1dOnSSy5/khQSEqLde/ao94MP6sm42eoRHqXVX2y%2B5NfGVVRUaPUXm9UjPEpPxs3W/X36aM/evZdU/iTJ19dXr732mjZv3qz69esrODhYDz/8sA4dOnRJ%2BwWA/6IAAjDVDz/8oKioKLVv316bN29WamqqNm3apMDAQIcex8vLS6mpqUpPT1dRuaEHno9W6/5/16yUtyq9ZuDxwiLNSnlLbQYM1QPPR6uo3FBGRoZSUlLUpEkTh2UODAzUpk2blJqaquzsbN14442aNGmSzpw547BjALAmLgEDMMX58%2BeVkpKiiRMn6uTJkxo/frzGjx%2Bv%2BvXrV/uxDcNQdna2kpKStHz5ctntdjW/qqn8294gv7at1LHl9Wrg6SG3OnVkP3dOZ0pKteurr5WXf1A5%2Bw7q6IkCubu7a8CAAQoLC1NQUFC1rzdYXFysmTNn6sUXX9SVV16pGTNmaPDgwapVi9/jAVQeBRDAZZeVlaXw8HBt3rxZ/fv316xZs3TdddeZkqWwsFDr169XTk6OcnNzlJubq1OnTv/uc40bN5K/v78CAgLl7%2B%2Bv7t27y9vb%2B7LnPXz4sMaPH68VK1YoKChICxYsULdu3S57DgCujQII4LI5evSoJk6cqJSUFHXt2lXz5s3THXfcYXasXzEMQwUFBSotLVVZWZnc3d3l4eEhHx8fU98q8lsbNmxQeHi4tm3bpiFDhighIUHNmjUzOxYAF0EBBFDtSktLNXfuXMXHx6t%2B/fqKj4/X008/zfIml6iiokJLly7VpEmTVFJSoqioKI0ZM0b16tUzOxoAJ0cBBFBtDMPQypUrNW7cOB09elSjRo3SCy%2B8oEaNGpkdrUY5ffq0pk6dqvnz56t58%2BaaPXu2HnroIaeasQTgXLh7GEC12L59u7p3765HH31UHTt21K5duzR79mzKXzVo1KiRZs%2BerV27dqlDhw565JFHFBwcrO3bt5sdDYCTogACcKiCggKFhobKz89P3333ndasWaP3339fbdq0MTtajde2bVutWrVKa9as0bfffis/Pz8988wzKigoMDsaACdDAQTgEHa7XYmJiWrdurWWL1%2BuxMRE7dixQz179jQ7muX07NlTO3bs0Ny5c/Xmm2%2BqdevWmjdvnsrLy82OBsBJcA8ggEu2Zs0aRURE6MCBAxoxYoTi4uJMWSIFv1dQUKDo6GgtXrxYbdq0UWJiIqUcADOAAKouPz9f999/v3r37q1rrrlGW7duVVJSEuXPifj4%2BOjll19WXl6err76avXq1Uv333%2B/8vPzzY4GwEQUQACVdurUKY0ZM0YdO3bUnj17tHLlSn3yySe66aabzI6GP9C5c2dlZmZq5cqV2rNnjzp27Kjnn39ep06dMjsaABNwCRjARauoqNCrr76qSZMmqbS0VJMmTVJERATrzrmYs2fP/rwuo6enp6ZPn66//e1vrMsIWAgzgAAuymeffSZ/f3%2BNGDFCvXv31v79%2BxUZGUn5c0H16tVTVFSU9u/fr169emn48OEKCAjQhg0bzI4G4DKhAAL4n77%2B%2Bmv1799fd911l%2BrVq6esrCz94x//0DXXXGN2NFyia665Rv/4xz%2BUlZUld3d33Xnnnerfv78OHz5sdjQA1YwCCOCCiouL9cILL6hdu3batGmTli1bpi%2B%2B%2BELdunUzOxocrFu3bvriiy/0xhtvaOPGjWrXrp2io6NVXFxsdjQA1YR7AAH8imEYSktL04QJE1RYWKixY8dq4sSJatCggdnRcBmcOXNGM2bM0OzZs%2BXt7a2ZM2dq4MCBvFYOqGGYAQR96WhiAAAbZ0lEQVTwsy1btuivf/2rBg8erJtvvll79%2B7VtGnTKH8W0qBBA02bNk179%2B7VzTffrMGDB%2Buvf/2rtmzZYnY0AA5EAQSg48eP66mnnlJQUJCKi4u1fv16vf3222rRooXZ0WCSFi1a6O2331ZmZqaKi4sVFBSkp59%2BWsePHzc7GgAHoAACFnb27FnNmDFDbdq00QcffKDk5GTl5eXprrvuMjsanET37t2Vl5en5OTkn9/pPGPGDJ09e9bsaAAuAfcAAhZkGIbS09M1duxYffPNNxo5cqSio6PVuHFjs6PBiZ08eVJxcXFauHChrr32Ws2ZM0chISHcHwi4IGYAAYvZuXOn7rnnHj300ENq27atdu7cqblz51L%2B8KeuvPJKJSYmaufOnWrTpo369eune%2B%2B9V7t27TI7GoBKogACFlFUVKRnn31WXbp00ZEjR/TBBx9o9erVateundnR4GLatWunNWvW6IMPPtC///1vde7cWc8995yKiorMjgbgIlEAgRquvLxcCxYsUOvWrZWSkqLZs2dr586d6t27t9nR4OJ69%2B6tnTt36sUXX9SyZcvUunVrvfTSSyovLzc7GoA/QQEEarAPP/xQnTt31ujRo/Xoo4/qwIEDioiIkJubm9nRUEO4ublpzJgxOnDggB555BGFh4erS5cu%2Buijj8yOBuB/oAACNdCBAwfUp08f9ejRQz4%2BPsrLy9OiRYvUtGlTs6OhhmratKkWL16s3NxceXt767777lOfPn104MABs6MBuAAKIFCDnD59WuPGjVOHDh20Y8cOvfXWW/r000/VpUsXs6PBIrp27apPP/1UK1as0Pbt29WhQweNHz9e33//vdnRAPwCy8AANUBFRYVef/11RUVF6cyZM4qMjNTzzz8vDw8Ps6PBwkpLSzVnzhwlJCSoQYMGSkhI0FNPPaVatZh7AMzGWQi4uI0bNyooKEhDhw7Vfffdp/z8fE2ePJnyB9N5eHho8uTJys/P17333qu///3vCgwM1MaNG82OBlgeBRBwUd98840ee%2Bwx3X777apdu7a%2B%2BOILLVu2TM2bNzc7GvArzZs3V0pKijZt2qRatWrp9ttv1%2BOPP65vvvnG7GiAZVEAARdTUlKi2NhYtWvXTp999plef/11ZWVl6ZZbbjE7GvA/3XrrrcrOztbrr7%2BuTz/9VO3atVNsbKxKSkrMjgZYDvcAAi5k3bp1Gjp0qE6cOKExY8YoKipKDRs2NDsWUGk//PCD4uPjNXfuXF111VWaNWuWBgwYwGvlgMuEAgi4ED8/P11//fWaPXu2WrZsaXYc4JJ9%2BeWXGjt2rNLT0/X0009r6dKlZkcCLIFLwIAJEhKkwECpYUOpaVOpb18pP//Pt0tOTtY777xD%2BUONccMNN%2Bjdd9/Vxx9/rDNnzvzh56p6zgC4MGYAARP07Ck99tiPA9q5c9KkSdLOndKePVL9%2BmanA8xx7tw51alT54J/xzkDOBYFEHACBQU/zmp89pl0xx1mpwGcH%2BcMcGm4BAw4gdOnf/xnkybm5gBcBecMcGmYAQRMZhhSSIh08qT0%2BedmpwGcH%2BcMcOkufLMFgMvmueekHTskXo4AXBzOGeDSUQABE40cKb33nrRhg8QLPIA/xzkDOAYFEDCBYfw4kL37rvTpp1KLFmYnApwb5wzgWBRAwATPPiulpUkZGT%2Bua/bttz/%2BvFEjycPD3GyAM%2BKcARyLh0AAE/zR265ee0166qnLGgVwCZwzgGNRAAEAACyGdQABBzty5IgmTZpkdgwAP/nuu%2B/MjgA4HQog4CClpaWaOnWq2rZtq82bN5sdB8BPHnroIU2dOlWlpaVmRwGcBgUQuESGYeitt95Su3btNHXqVD333HN69913zY4F4Cf9%2B/fX1KlTdeONN%2Bqtt94Sdz4BFEDgkmzdulV33nmn%2Bvfvry5dumj37t2aOXOmGjRoYHY0AD8JDw/X7t271blzZ/Xv31933XWXtm3bZnYswFQUQKAKTpw4oeHDh8vf319FRUX68MMPlZGRodatW5sdDcAFtG7dWhkZGVq3bp0KCwvl5%2BenESNG6MSJE2ZHA0xBAQQqwW63a%2B7cuWrdurXefvttLViwQNu3b9e9995rdjQAF%2BG%2B%2B%2B7Ttm3bNH/%2BfK1YsUKtW7fW3LlzZbfbzY4GXFYsAwNcBMMwtHr1ao0ZM0ZffvmlQkNDNWXKFHl5eZkdDUAVFRUVKSYmRi%2B//LJatWqlxMRE9e7d2%2BxYwGXBDCDwJ/bu3avevXvrgQce0F/%2B8hdt27ZNCxcupPwBLs7Ly0sLFy7Utm3b1Lx5c91///3q1auX9u3bZ3Y0oNpRAIE/cPLkSUVEROimm27S/v37lZ6ero8%2B%2BkgdO3Y0OxoAB%2BrUqZM%2B/vhjvfvuu9q/f786deqkiIgInTp1yuxoQLXhEjDwGxUVFXrllVc0efJklZWVafLkyRo9erTc3d3NjgagmpWVlWnevHmaNm2a6tWrp2nTpmno0KGqXbu22dEAh2IGEPiF9evXy8/PT88884z69Omj/fv3a8KECZQ/wCLc3d01YcIE7d%2B/Xw888IBCQ0Pl5%2BenTz/91OxogENRAAFJhw4d0sMPP6zg4GDVr19fmzdv1tKlS%2BXr62t2NAAm8PX11WuvvabNmzerfv366t69ux555BEdOnTI7GiAQ1AAYWlnzpzRpEmTdOONNyo7O1upqanatGmTAgMDzY4GwAkEBgZq06ZNSk1NVVZWlm688UZNnjxZZ86cMTsacEm4BxCWdP78eaWmpmrChAk6efKkxo8fr/Hjx6t%2B/fpmRwPgpIqLizVz5ky9%2BOKLatKkiWbOnKmBAweqVi3mUuB6%2BL8WlpOdna1bb71VTzzxhG6//Xbt27dPU6ZMofwB%2BJ/q16%2BvuLg47du3T7fddpuGDBmiW2%2B9VdnZ2WZHAyqNAgjLOHbsmJ544gndfPPNstvt%2Buyzz7R8%2BXJdd911ZkcD4EKuu%2B46LV%2B%2BXJ999pnKysp0880368knn9SxY8fMjgZcNAogaryzZ88qPj5ebdq00dq1a/XKK69oy5YtuuOOO8yOBsCF3XHHHcrJydHixYu1Zs0atWnTRvHx8Tp79qzZ0YA/xT2AqLEMw9A777yjsWPH6siRIwoPD9cLL7ygRo0amR0NQA1z6tQpTZ06VQsWLFDz5s01Z84c9evXTzabzexowAUxA4gaaceOHQoODtYjjzyiDh06aNeuXZo9ezblD0C1aNy4sebMmaNdu3apQ4cOevjhh3X33Xdrx44dZkcDLogCiBqloKBAzzzzjLp27apvv/1Wa9as0apVq9S2bVuzowGwgLZt22rVqlVavXq1jh07pq5du%2BqZZ55RYWGh2dGAX6EAokYoLy/X/Pnz1aZNG/3zn//U3LlztWPHDvXs2dPsaAAsqFevXtq5c6fmzJmjN998U61bt9b8%2BfNVXl5udjRAEvcAogZYu3atIiIitH//fo0YMUJxcXHy9vY2OxYASPrxykR0dLQWL16sNm3aKDExkV9OYTpmAOGy/vuuzl69esnX11dbt25VUlIS5Q%2BAU/Hx8dHLL7%2BsvLw8XX311erVq5ceeOAB7d%2B/3%2BxosDAKIFzO6dOnNXbsWHXo0EG7d%2B/WypUr9cknn%2Bimm24yOxoA/KHOnTsrMzNTK1eu1O7du9WxY0eNHTtWp0%2BfNjsaLIhLwHAZFRUVWrp0qSZNmqSSkhJNmjRJERERqlevntnRAKBSzp49q7lz5yo%2BPl6enp6Kj4/X008/rdq1a5sdDRbBDCBcwoYNGxQQEKDhw4erV69e2r9/vyIjIyl/AFxSvXr1FBUVpfz8fPXs2VPDhg1TQECANmzYYHY0WAQFEE7t8OHD6t%2B/v%2B688065u7srKytL//jHP3TNNdeYHQ0ALlmzZs30xhtvKCsrS25ubrrzzjs1YMAAHT582OxoqOEogHBKxcXFio6OVrt27bRp0ya98cYb%2BuKLL9StWzezowGAw3Xr1k3/%2Bte/9MYbb%2Bjzzz9Xu3btFBMTo%2BLiYrOjoYbiHkA4FcMw9Oabb2r8%2BPEqLCzU2LFjNXHiRDVo0MDsaABwWZw5c0YzZszQ7Nmz5ePjo5kzZ%2Brxxx/ntXJwKGYA4TS2bNmi2267TYMGDdLNN9%2BsvXv3atq0aZQ/AJbSoEEDTZs2TXv37lW3bt00aNAg3XbbbcrJyTE7GmoQCiBMd/z4cT399NMKCgrSmTNntH79er399ttq0aKF2dEAwDQtWrTQ22%2B/rczMTJ05c0aBgYH629/%2Bpm%2B//dbsaKgBuARcwxmGoYKCApWUlMhut8vNzU2enp7y8fEx/XJCWVmZ5s2bp2nTpsnd3V3Tp0/X0KFDWQYBAH7j3LlzWrJkiSZPnqyysjJNnjxZo0ePlru7u9nRnHqcwR%2BjANYwhYWFyszMVG5urnJytigvL0%2BnTv1%2BkdHGjRvJz89PAQGB8vf3V3Bw8GV7g4ZhGMrIyNDzzz%2Bvb775Rs8995yio6N15ZVXXpbjA4CrOnnypOLi4rRw4UJdd911mjNnjvr06XNZi5YrjDP4cxTAGsAwDGVlZSkpKUkrVqyQ3W5X86uaKqBtK/m1a6UOLa5TQ08PudWtK3t5uX4oKdXuQ4eVt%2B%2BgcvIP6sh3J%2BTm5qYBAwYoLCxM3bp1q7Yvk127dmn06NH65JNP1LNnTyUmJqpdu3bVciwAqKn27t2riIgIrVu3Tvfcc48SExPVsWPHajueK40zuDgUQBeXkZGh2JgYbdu%2BXS2a%2BSq0b28N7hksX2%2Bvi97H8cIipazNVHL6ah06elxdu3RR7JQp6tOnj8NyFhUVKSYmRi%2B//LJatWqlxMRE9e7d22H7BwCrMQxDq1ev1pgxY/Tll18qNDRUU6ZMkZfXxX//XwxXGWdQORRAF1VUVKRRo0YpLS1N9wR2VcTjD6lHN3/VqlX153rOnz%2Bvddm5SnzzHX28ZasGDhyoBQsWXNKXSXl5uZKTkxUTE6OKigrFxsbq2WeflZubW5X3CQD4P3a7XQsXLtSUKVNUu3ZtxcXFKTQ0VHXq1Lmk/brKOIOqoQC6oPT0dIWOGCH72VLNjwjVoB7BDp1KNwxDKWs/UXjiIrl7eCh50SL17du30vv56KOPNHr0aO3du1fDhg3T1KlT1bRpU4flBAD8nxMnTmjy5MlasmSJ2rdvr8TERN17771V2perjDOoOpaBcSGGYSg%2BPl79%2BvVTUJuW2pWarME973b4fRQ2m01Det2j3WnJCmrTUv369VNCQoIu9neFgwcPKiQkRPfdd5%2B8vb2Vl5enRYsWUf4AoBo1bdpUixcvVm5urry8vHTfffcpJCREBw8evOh9uMo4g0tXOzY2NtbsEPhzhmEoKipKcXFxihk6WC%2BPH6mG9T2r9ZgNPT312L13SpKiZ8%2BT3W5XcPAf/xb4/fffKzo6WkOGDFFJSYmWLFmiWbNmydfXt1pzAgD%2Bj6%2Bvr5566il16NBBb7zxhmbOnKkzZ86oW7du/3PZGFcYZ%2BA4FEAXkZCQoLi4OL04cpgin3zssp0cNptNd/l1VgNPD0XPmS93d3fdfvvtv/rM%2BfPn9dprr6lv377auHGjJk%2BerNTUVHXu3JmTGABMYLPZ1KFDB4WGhqpu3bqaO3euFi9erCZNmvzhd7MzjzNwPO4BdAHp6enq16%2BfYoYOVszfB5uWI3bJMsW9mqr09HSFhIRIkjZt2qTw8HDl5uZq0KBBmjFjhpo3b25aRgDA7x05ckQTJ05Uamqq/P39NX/%2BfP31r3/9%2Be%2BdeZxB9aAAOrmioiJ1aN9eQW1aKn1WjKkzaoZhKGRcrLYcOKR1H36oGTNm6J///KcCAwM1f/583XLLLaZlAwD8uS%2B%2B%2BELh4eHKycnR448/rpkzZ8rT09Mpx5nde/bwdHA1ogA6uUGDBmnNqve1KzW5UmsuVZdjBUXqMHC4zpSelY%2BPj2bMmKEhQ4Zc0rIAAIDL5/z581q2bJkmTpyo06dPq1WrVjpy%2BGunGmc6DgrV/X36KCUlxew4NRajthPLyMhQWlqa5keEOsVJKUnX%2BHhpwZhnVFFRoXnz5unJJ5%2Bk/AGAC6lVq5aefPJJ7d%2B/X7169dLOnTudbpyZHzFCqampeu%2B998yOU2MxA%2BikDMOQX9eu8narpXXz453qYQrDMNQjPEpF5YZy8/KcKhsA4OL8d5zxcqulDxlnLIepGyeVlZWlbdu3K%2BLxh5zuf3ybzabRj/XT1m3blJ2dbXYcAEAV/HecGcM4Y0kUQCeVlJSkFs181aObv9lRLqhHN3%2B1aOarpKQks6MAAKqAccbaKIBOqLCwUCtWrFBo395Oe39d7dq1NaJvby1fvlyFhYVmxwEAVALjDJzzv7rFZWZmym63a3DPYIfvO3bJMt04YKgadA9Rk/se0b0jJyp7974q7WtIz2DZ7XatX7/ewSkBANWpOseZXxoxY75q3dJT8/75bpW2Z5ypPhRAJ5Sbm6vmVzWtliey2vyluV56Pkw7UpL1efJsXed7lXqER6ng5KlK78vX20vNmvooNzfX4TkBANWnOseZ/0r/7Att3pOvay7hGIwz1YcC6IRytmxRQNtWVdr2h%2BISDY6ZqQbdQ3TNA48r8c131D1snEYnJkuSBvbornuC/NSyma86tLxec8OH6/viEu04eKhKxwto10o5OVuqtC0AwBzVOc5I0tEThRo5J0kpseNVt07tS8rKOFM9KIBOxjAM5W3Nk1%2B7qp2YYxYs1qYdu5UxK1Yfzk/Qxu27lJf/5QU/ay8v1%2BL0NWrUoL46t25ZpeP5tW2lvNw8sZoQALiG6h5nzp8/ryfiXtTYQY%2BoQ8vrLzkv40z1oAA6mYKCAp06dVodWlxX6W1/KC7RG6s/1osjh%2BnuwK7qeMP1Wjr5eVWcr/jV51ZtzFbD4L7yuLOP5v3zXX04P17ejRtVKW/Hltfr5KlTKigoqNL2AIDLq7rHmZnLVqhO7doa1d8x7/JlnKkeFEAnU1JSIklq6OlR6W2/Ovatys%2BdU1D7tj//rFGD%2Bmp7bfNffa67f2dt/UeSNi2eqx43%2B2vA5Hid%2BE/l7wGUpAY/5SwtLa3S9gCAy6s6x5ncfQe0YEWGXpv8vMPWFmScqR4UQCdjt9slSW5161Z62/9Oj//2pPvtrHl9j3pq9ZdrdHPHG/XqpDGqU7u2Xn1/bZXyutWpI0kqKyur0vYAgMurOseZz7ft0omTp3RdvyGqe1tv1b2ttw5/e0JjX3pFLfo9UaW8jDPVo47ZAfBrbm5ukn68P6%2Bybmjmq7p16mjznnz95SofSdL3xcU6cOSo7uja6Q%2B3MwxDZVU4niTZz52TJLm7u1dpewDA5VWd48yQXnfrnsCuv9qm5%2BhJGtzrbj19/71Vyss4Uz0ogE7G09NTkvRDSeWnuhvW99QTve/R%2BIVL1OSKhmp6ZSPFLklRLVst2Ww2FZee1fTX31Sf22%2BWr1cTFX3/vZJWrtKRgkI9Gnx7lfKe%2BSmnh0flLyUAAC6/6hxnvBpdIa9GV/xqm7p1auvqJleq7XV/qVJexpnqwSVgJ%2BPj46PGjRtp96HDVdp%2B7qjhuqXjjXpwbLTuHRWpWzu1143X/0X13Oqqdq1ayj/8bz0SOU1tBwzVg2NjVHjqtDa8PLvKT2rt%2BuprXdm4sXx8fKq0PQDg8qrOcaY6MM5UD2YAnYzNZpNfVz/l7TtYpe0b1vdUypQJP/%2B5uPSs4pamalhIL9Vzd9PKGdGOiipJyss/KD9/P6d7kTgA4MKqc5y5kEPvvlGl4/wX40z1YAbQCQUEBionv2on5tb8g3rzw/X68sgx5eUf0ODYmZKkkDtucWTEn%2BXsO6iAgMBq2TcAoHowzoAC6IT8/f115LsTOl5YVKXt56StVJcnwnTvyEgVl57VhpdnV3mdv//leGGRjp4okL%2B/v8P3DQCoPowzsBksre10CgsL1axZM00dNkTjBj9qdpw/NCvlLUW/skxHjx6Vt7e32XEAABeJcQbMADohb29v9e/fX8npq3X%2B/Hmz41xQRUWFFqWv1oABAzgpAcDFMM6AAuikwsLCdOjoca3LzjU7ygWty87VoaPHFRYWZnYUAEAVMM5YG5eAnZRhGPL385NXXZvWzY93qqefDMNQj/Ao/eeclJOb61TZAAAXh3HG2pgBdFI2m02xU6bo4y1blbou0%2Bw4v5Ky9hN9vGWrYmJjOSkBwEUxzlgbM4BObtCgQVqz6n3tSk2Wr7eX2XF0rKBIHQeF6v4%2BfZSSkmJ2HADAJWKcsSYKoJMrKipSh/btFdSmpdJnxZj6m5BhGAoZF6stBw5p95498vIy/4sCAHBpGGesiUvATs7Ly0vJixbp/Y1ZiluaamqWKa%2BmaNWmbC1avJiTEgBqCMYZa6odGxsba3YI/G/t2rWTm5ubomfPUwNPD93aqf1lzzAnbaUmJ7%2Bu%2BPh4DR069LIfHwBQfRhnrIcC6CJuu%2B022e12Rc%2BZL0OG7ux602WZpjcMQ1NeTdHk5NcVGRmpmBhzLw8AAKoH44y1UABdhM1mU3BwsNzd3RU9e5625n%2Bpu/w6qaGnZ7Ud81hBkQbHzNQrGWuUkJDASQkANRjjjLXwEIgLysjI0Ijhw1VWWqr5ESM0uOfdDj1hDMNQytpPFJ64SO4eHlq0eLFCQkIctn8AgHNjnKn5KIAuqqioSKNGjVJaWpruCeyq0Y/1U8%2BbA1SrVtWf66moqNC67FzN%2B%2Be7%2BnjLVg0aNEgLFixQkyZNHJgcAOAKGGdqNgqgi8vIyNCU2Fht3bZNLZr5akTf3hrSM7hSazkdLyzSsrWZWpS%2BWoeOHlfXLl0UO2WK%2BvTpU43JAQCugHGmZqIA1gCGYSg7O1tJSUlavny57Ha7ml/VVP5tb5Bf21bq2PJ6NfD0kFudOrKfO6czJaXa9dXXyss/qJx9B3X0RIHc3d01YMAAhYWFKSgoiHswAAA/Y5ypeSiANUxhYaHWr1%2BvnJwc5ebmKDc3V6dOnf7d5xo3biR/f38FBATK399f3bt3l7e3twmJAQCuhHGmZqAA1nCGYaigoEClpaUqKyuTu7u7PDw85OPjw29fAIBLxjjjmiiAAAAAFsOr4AAAACyGAggAAGAxFEAAAACLoQACAABYDAUQAADAYiiAAAAAFkMBBAAAsBgKIAAAgMVQAAEAACyGAggAAGAxFEAAAACLoQACAABYDAUQAADAYiiAAAAAFkMBBAAAsBgKIAAAgMVQAAEAACyGAggAAGAxFEAAAACLoQACAABYDAUQAADAYiiAAAAAFkMBBAAAsBgKIAAAgMVQAAEAACyGAggAAGAxFEAAAACLoQACAABYDAUQAADAYiiAAAAAFkMBBAAAsBgKIAAAgMVQAAEAACyGAggAAGAxFEAAAACL%2Bf/RhR8SK7xDyQAAAABJRU5ErkJggg%3D%3D",
null,
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAPYQAAD2EBqD%2BnaQAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi41LCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvSM8oowAAIABJREFUeJzt3XlcFfXi//H3cQFBTROwSG%2BlueWSymZ126TFpRJt0XJpudeFKEXMDTRAVFBTUfNHaGbdBLpaFpS5tGCZdkEB9wW1zK5LCVy1BOQgzu%2BPun1b7CZ4cM5hXs9/eohnZt49as7nzWdmPmMzDMMQAAAALKOW2QEAAABweVEAAQAALIYCCAAAYDEUQAAAAIuhAAIAAFgMBRAAAMBiKIAAAAAWQwEEAACwGAogAACAxVAAAQAALIYCCAAAYDEUQAAAAIuhAAIAAFgMBRAAAMBiKIAAAAAWQwEEAACwGAogAACAxVAAAQAALIYCCAAAYDEUQAAAAIuhAAIAAFgMBRAAAMBiKIAAAAAWQwEEAACwGAogAACAxVAAAQAALIYCCAAAYDEUQAAAAIuhAAIAAFgMBRAAAMBiKIAAAAAWQwEEAACwGAogAACAxVAAAQAALIYCCAAAYDEUQAAAAIuhAAIAAFgMBRAAAMBiKIAAAAAWQwEEAACwGAogAACAxdQxOwAAOBPDMFRQUKCSkhLZ7Xa5ubnJ09NTPj4%2BstlsZscDAIegAAKwtMLCQmVmZio3N1c5OVuUl5enU6dO/%2B5zjRs3kp%2BfnwICAuXv76/g4GB5e3ubkBgALp3NMAzD7BAAcDkZhqGsrCwlJSVpxYoVstvtan5VUwW0bSW/dq3UocV1aujpIbe6dWUvL9cPJaXafeiw8vYdVE7%2BQR357oTc3Nw0YMAAhYWFqVu3bswOAnApFEAAlpKRkaHYmBht275dLZr5KrRvbw3uGSxfb6%2BL3sfxwiKlrM1UcvpqHTp6XF27dFHslCnq06dPNSYHAMehAAKwhKKiIo0aNUppaWm6J7CrIh5/SD26%2BatWrao/C3f%2B/Hmty85V4pvv6OMtWzVw4EAtWLBAXl4XXyYBwAwUQAA1Xnp6ukJHjJD9bKnmR4RqUI9gh16yNQxDKWs/UXjiIrl7eCh50SL17dvXYfsHAEdjGRgANZZhGIqPj1e/fv0U1KaldqUma3DPux1%2Bv57NZtOQXvdod1qygtq0VL9%2B/ZSQkCB%2BvwbgrJgBBFAjGYahqKgozZgxQzFDByv6b4Muy4MahmFoyqspins1VZGRkZo%2BfToPiABwOiwDA6BGSkhI0IwZM/TiyGF6fuDDl%2B24NptNsUOHqKGnp8YlJKhhw4aKjIy8bMcHgIvBDCCAGic9PV39%2BvVTzNDBivn7YNNyxC5ZprhXU5Wenq6QkBDTcgDAb1EAAdQoRUVF6tC%2BvYLatFT6rBhTL78ahqGQcbHacuCQdu/Zw9PBAJwGD4EAqFFGjRol%2B9lSJU8Yafq9dzabTckTRqmstFTh4eGmZgGAX6IAAqgxMjIylJaWpvkRoZVa2Lk6XePjpfkRI5Samqr33nvP7DgAIIlLwABqCMMw5Ne1q7zdamnd/HjTZ/9%2ByTAM9QiPUlG5ody8PKfKBsCamAEEUCNkZWVp2/btinj8IacrWDabTaMf66et27YpOzvb7DgAQAEEUDMkJSWpRTNf9ejmb3aUC%2BrRzV8tmvkqKSnJ7CgAQAEE4PoKCwu1YsUKhfbtfUnv9q1OtWvX1oi%2BvbV8%2BXIVFhaaHQeAxTnnNyUAVEJmZqbsdrsG9wx2%2BL7f%2BXSjeo6Okk/P/qp1S09t2/9llfc1pGew7Ha71q9f78CEAFB5FEAALi83N1fNr2paLU/%2BFpee1a2dOigh7OlL3pevt5eaNfVRbm6uA5IBQNXxKjgALi9nyxYFtG1VpW1/KC7RM7NeUvqGL3RFfU%2BNG/So3vv8X%2Brc%2BgbNiwjVkF73SJK%2BPv6tQ7IGtGulnJwtDtkXAFQVM4AAXJphGMrbmie/dlUrgGMWLNamHbuVMStWH85P0Mbtu5SXX/XLvH/Gr20r5eXmiRW4AJiJAgjApRUUFOjUqdPq0OK6Sm/7Q3GJ3lj9sV4cOUx3B3ZVxxuu19LJz6vifEU1JP1Rx5bX6%2BSpUyooKKi2YwDAn6EAAnBpJSUlkqSGnh6V3varY9%2Bq/Nw5BbVv%2B/PPGjWor7bXNndYvt9q8FPO0tLSajsGAPwZCiAAl2a32yVJbnXrVnrb/16G/e3C0dV5ddatzo%2B3XpeVlVXfQQDgT1AAAbg0Nzc3SZK9vLzS297QzFd169TR5j35P//s%2B%2BJiHThy1GH5fst%2B7pwkyd3dvdqOAQB/hqeAAbg0T09PSdIPJZW/pNqwvqee6H2Pxi9coiZXNFTTKxspdkmKatlq/Twr%2BJ/TP%2Bib707oWGGRJCn/myOSpKu9rtTVXk0qfcwzP%2BX08Kj8JWsAcBRmAAG4NB8fHzVu3Ei7Dx2u0vZzRw3XLR1v1INjo3XvqEjd2qm9brz%2BL6rn9uMl5fc2/kt%2BTz6rB56PliQ9/kKC/J58VsnvflCl4%2B366mtd2bixfHx8qrQ9ADiCzWAtAgAu7u7gYF1RUaZ3ZkZf8r6KS8%2BqeZ9Bmj1ymP7ep6cD0v1avwlTdKauhz7%2B%2BBOH7xsALhYzgABcXkBgoHLyD1Zp2635B/Xmh%2Bv15ZFjyss/oMGxMyVJIXfc4siIP8vZd1ABAYHVsm8AuFgUQAAuz9/fX0e%2BO6HjP92nV1lz0laqyxNhundkpIpLz2rDy7Pl3biRg1NKxwuLdPREgfz9/R2%2BbwCoDC4BA3B5hYWFatasmaYOG6Jxgx81O84fmpXylqJfWaajR4/K29vb7DgALIwZQAAuz9vbW/3791dy%2BmqdP3/e7DgXVFFRoUXpqzVgwADKHwDTUQAB1AhhYWE6dPS41mXnmh3lgtZl5%2BrQ0eMKCwszOwoAcAkYQM1gGIb8/fzkVdemdfPjf/d2DzMZhqEe4VH6zzkpJzfXqbIBsCZmAAHUCDabTbFTpujjLVuVui7T7Di/krL2E328ZatiYmMpfwCcAjOAAGqUQYMGac2q97UrNVm%2B3l5mx9GxgiJ1HBSq%2B/v0UUpKitlxAEASBRBADVNUVKQO7dsrqE1Lpc%2BKMXXGzTAMhYyL1ZYDh7R7zx55eZlfSAFA4hIwgBrGy8tLyYsW6f2NWYpbmmpqlimvpmjVpmwtWryY8gfAqVAAAdQ4ffv21fTp0zVlSYrmpK00JcOctJWKezVV8fHxCgkJMSUDAPyROmYHAIDqEBkZqTNnzmhcQoJ%2BKClRzN8HX5bLwYZhaMqrKYp7NVWRkZGaOHFitR8TACqLAgigRrLZbJo%2BfboaNmyoqKgobc3/UskTRlbrgyHHCooUOnOBVm3KVkJCAuUPgNPiIRAANV5GRoZGDB%2BustJSzY8YocE973bobKBhGEpZ%2B4nCExfJ3cNDixYv5rIvAKdGAQRgCUVFRRo1apTS0tJ0T2BXjX6sn3reHKBatap%2BK3RFRYXWZedq3j/f1cdbtmrQoEFasGCBmjRp4sDkAOB4FEAAlpKRkaEpsbHaum2bWjTz1Yi%2BvTWkZ3ClLg0fLyzSsrWZWpS%2BWoeOHlfXLl0UO2WK%2BvTpU43JAcBxKIAALMcwDGVnZyspKUnLly%2BX3W5X86uayr/tDfJr20odW16vBp4ecqtTR/Zz53SmpFS7vvpaefkHlbPvoI6eKJC7u7sGDBigsLAwBQUF8YYPAC6FAgjA0goLC7V%2B/Xrl5OQoNzdHubm5OnXq9O8%2B17hxI/n7%2BysgIFD%2B/v7q3r27vL29TUgMAJeOAggAv2AYhgoKCrRlyxY98MADWrVqlQIDA%2BXj48MsH4Aag2VgAOAXbDabmjZtKl9fX0mSr6%2BvmjZtanIqAHAs3gQCAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIABfg4eGhrl27ysPDw%2BwoAOBwNsMwDLNDAAAA4PJhBhAAAMBiKIAAAAAWQwEEAACwGAogAACAxVAAAQAALIYCCAC/kJAgBQZKDRtKTZtKfftK%2BflmpwIAx6IAAsAvfPaZ9OyzUlaW9NFH0rlz0n33ScXFZicDAMdhHUAA%2BB8KCn6cCfzsM%2BmOO8xOAwCOwQwgAPwPp0//%2BM8mTczNAQCOxAwgAPwBw5BCQqSTJ6XPPzc7DQA4Th2zAwCAs3ruOWnHDmnjRrOTAIBjUQAB4AJGjpTee0/asEFq3tzsNADgWBRAAPgFw/ix/L37rvTpp1KLFmYnAgDHowACwC88%2B6yUliZlZPy4FuC33/7480aNJA8Pc7MBgKPwEAgA/ILNduGfv/aa9NRTlzUKAFQbZgAB4Bf4lRiAFbAOIAAAgMVQAAEAACyGAggAAGAxFEAAAACLoQACAABYDAUQAADAYiiAAAAAFkMBBAAAsBgKIAAAgMVQAAHgAvbu3Ss/Pz/t3bvX7CgA4HAUQAC4gNLSUm3dulWlpaVmRwEAh6MAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAgAAWAwFEAAAwGIogAAAABZDAQQAALAYCiAAAIDFUAABAAAshgIIAABgMRRAAAAAi6EAAsAvGIahEydO6NixY5KkY8eO6cSJEzIMw%2BRkAOA4NoNvNQAWVlhYqMzMTOXm5ionZ4vy8vJ06tTp332uceNG8vPzU0BAoPz9/RUcHCxvb28TEgPApaMAArAcwzCUlZWlpKQkrVixQna7Xc2vaqqAtq3k166VOrS4Tg09PeRWt67s5eX6oaRUuw8dVt6%2Bg8rJP6gj352Qm5ubBgwYoLCwMHXr1k02m83sfy0AuGgUQACWkpGRodiYGG3bvl0tmvkqtG9vDe4ZLF9vr4vex/HCIqWszVRy%2BmodOnpcXbt0UeyUKerTp081JgcAx6EAArCEoqIijRo1SmlpabonsKsiHn9IPbr5q1atqt8Kff78ea3LzlXim%2B/o4y1bNXDgQC1YsEBeXhdfJgHADBRAADVeenq6QkeMkP1sqeZHhGpQj2CHXrI1DEMpaz9ReOIiuXt4KHnRIvXt29dh%2BwcAR%2BMpYAA1lmEYio%2BPV79%2B/RTUpqV2pSZrcM%2B7HX6/ns1m05Be92h3WrKC2rRUv379lJCQwJPDAJwWM4AAaiTDMBQVFaUZM2YoZuhgRf9t0GV5UMMwDE15NUVxr6YqMjJS06dP5wERAE6njtkBAKA6JCQkaMaMGXpx5DA9P/Dhy3Zcm82m2KFD1NDTU%2BMSEtSwYUNFRkZetuMDwMVgBhBAjZOenq5%2B/fopZuhgxfx9sGk5YpcsU9yrqUpPT1dISIhpOQDgtyiAAGqUoqIidWjfXkFtWip9Voypl18Nw1DIuFhtOXBIu/fs4elgAE6Dh0AA1CijRo2S/WypkieMNP3eO5vNpuQJo1RWWqrw8HBTswDAL1EAAdQYGRkZSktL0/yI0Eot7FydrvHx0vyIEUpNTdV7771ndhwAkMQlYAA1hGEY8uvaVd5utbRufrzps3%2B/ZBiGeoRHqajcUG5enlNlA2BNzAACqBGysrK0bft2RTz%2BkNMVLJvNptGP9dPWbduUnZ1tdhwAoAACqBmSkpLUopmvenTzNzvKBfXo5q8WzXyVlJRkdhQAoAACcH2FhYVasWKFQvv2vqR3%2B1an2rVra0Tf3lq%2BfLkKCwvNjgPA4pzzmxIAKiEzM1N2u12DewY7dL/l585pwv97VTcNClWD7iFq9uBAPTnlRR0rKKrS/ob0DJbdbtf69esdmhMAKosCCMDl5ebmqvlVTR3%2B5G/J2TJtzT%2BoyU8PVO7rC7Uy4QXt//dRhYyPrdL%2BfL291Kypj3Jzcx2aEwAqi1fBAXB5OVu2KKBtqypt%2B0NxiZ6Z9ZLSN3yhK%2Bp7atygR/Xe5/9S59Y3aF5EqD5ckPCrzy8Y84y6/T1c33x7Qtde3bTSxwto10o5OVuqlBUAHIUZQAAuzTAM5W3Nk1%2B7qhXAMQsWa9OO3cqYFasP5ydo4/Zdysv/8g8/f/pMsWw2mxo3rF%2Bl4/m1baW83DyxAhcAM1EAAbi0goICnTp1Wh1aXFfpbX8oLtEbqz/WiyOH6e7Arup4w/VaOvl5VZyvuODnz5bZFfnyaxp43126on7VCmDHltfr5KlTKigoqNL2AOAIFEAALq2kpESS1NDTo9LbfnXsW5WfO6eg9m1//lmjBvXV9trmv/ts%2Bblzejw6QefPn9f/G/dclfM2%2BClnaWlplfcBAJeKewABuDS73S5Jcqtbt9Lb/vcy7G8Xjv7t1dnyc%2Bc0YFK8Dh37Vp8snFnl2T9Jcqvz49duWVlZlfcBAJeKGUAALs3NzU2SZC8vr/S2NzTzVd06dbR5T/7PP/u%2BuFgHjhz9%2Bc//LX8HjhzVRwsS5NXoikvKaz93TpLk7u5%2BSfsBgEvBDCAAl%2Bbp6SlJ%2BqGk8pdUG9b31BO979H4hUvU5IqGanplI8UuSVEtWy3ZbDadO1ehR6OmKS//oN6fHaeK8%2Bf1bdF/JElNrmhYpVnHMz/l9PCo/CVrAHAUCiAAl%2Bbj46PGjRtp96HD6nfXXyu9/dxRw/XMrJf04Njon5eB%2Bfd3BarnVldHCgr03udZkqSuT4T9arvM/zdTd/l1rvTxdn31ta5s3Fg%2BPj6V3hYAHIUCCMCl2Ww2%2BXX1U96%2Bg1XavmF9T6VMmfDzn4tLzypuaaqGhfTS9b5X6/y/1joqqiQpL/%2Bg/Pz9fnffIQBcTtwDCMDlBQQGKie/agVwa/5Bvfnhen155Jjy8g9ocOxMSVLIHbc4MuLPcvYdVEBAYLXsGwAuFgUQgMvz9/fXke9O6Hhh1d7ROydtpbo8EaZ7R0aquPSsNrw8W96NGzk4pXS8sEhHTxTI39/f4fsGgMqwGSxHD8DFFRYWqlmzZpo6bIjGDX7U7Dh/aFbKW4p%2BZZmOHj0qb29vs%2BMAsDBmAAG4PG9vb/Xv31/J6at1/vx5s%2BNcUEVFhRalr9aAAQMofwBMRwEEUCOEhYXp0NHjWpeda3aUC1qXnatDR48rLCzszz8MANWMAgjA5RmGocOHD8ujXj3NTn1bznZni2EYmpu2Ui1btFBQUJDZcQCAAgjAteXl5emOO%2B7Q448/rk433aT1uduVui7T7Fi/krL2E2XmbtdXhw7prrvu0tatW82OBMDiKIAAXNKJEyc0bNgwBQQE6D//%2BY8%2B/PBDZWdna%2BDAgQpPTK7yE8GOdqygSOGJizRo0CCtW7dORUVF8vf31/Dhw3XixAmz4wGwKJ4CBuBS7Ha7XnrpJcXFxal27dqKi4tTaGio6tT5cV37oqIidWjfXkFtWip9VoypCy4bhqGQcbHacuCQdu/ZIy8vL5WXlys5OVkxMTGqqKhQdHS0Ro4c%2BfM7jQHgcmAGEIBLMAxDq1atUseOHTVhwgQ98cQTOnDggJ577rmfy58keXl5KXnRIr2/MUtxS1NNTCxNeTVFqzZla9HixfLy8pIk1a1bVyNHjtSBAwc0ZMgQjR8/Xh07dtQHH3zgdPcuAqi5KIAAnN7evXvVq1cvPfjgg7r22mu1bds2vfTSSz%2BXqt/q27evpk%2BfrilLUjQnbeVlTvujOWkrFfdqquLj4xUSEvK7v/fy8tLChQu1bds2XXvttXrggQfUu3dv7d2714S0AKyGAgjAaZ08eVKjR49Wp06ddODAAaWnp%2Bujjz5Sx44d/3TbyMhIRUZGatxLryh2ybLLNrtmGIZilyzTuJdeUWRkpCZOnPg/P9%2BpUyd99NFHSk9P1/79%2B9WpUyeNHj1aJ0%2BevCx5AVgT9wACcDrnzp3TK6%2B8ohdeeEFlZWWaPHmyRo8eLXd390rtxzAMzZgxQ1FRUXrwtpuVPGGkfL0vPGvoCMcKihQ6c4FWbcpWQkLCn5a/3yorK9O8efM0bdo0ubu7a9q0aRo2bJhq165dTYkBWBUFEIBTyczM1OjRo7Vz5049/fTTmj59unx9fS9pnxkZGRoxfLjKSks1P2KEBve826EPhxiGoZS1nyg8cZHcPTy0aPHiC172vVjHjx9XVFSUXn/9dd10002aN2%2Beunfv7rC8AMAlYABO4auvvtLDDz%2Bsu%2B%2B%2BWw0aNNDmzZu1dOnSSy5/khQSEqLde/ao94MP6sm42eoRHqXVX2y%2B5NfGVVRUaPUXm9UjPEpPxs3W/X36aM/evZdU/iTJ19dXr732mjZv3qz69esrODhYDz/8sA4dOnRJ%2BwWA/6IAAjDVDz/8oKioKLVv316bN29WamqqNm3apMDAQIcex8vLS6mpqUpPT1dRuaEHno9W6/5/16yUtyq9ZuDxwiLNSnlLbQYM1QPPR6uo3FBGRoZSUlLUpEkTh2UODAzUpk2blJqaquzsbN14442aNGmSzpw547BjALAmLgEDMMX58%2BeVkpKiiRMn6uTJkxo/frzGjx%2Bv%2BvXrV/uxDcNQdna2kpKStHz5ctntdjW/qqn8294gv7at1LHl9Wrg6SG3OnVkP3dOZ0pKteurr5WXf1A5%2Bw7q6IkCubu7a8CAAQoLC1NQUFC1rzdYXFysmTNn6sUXX9SVV16pGTNmaPDgwapVi9/jAVQeBRDAZZeVlaXw8HBt3rxZ/fv316xZs3TdddeZkqWwsFDr169XTk6OcnNzlJubq1OnTv/uc40bN5K/v78CAgLl7%2B%2Bv7t27y9vb%2B7LnPXz4sMaPH68VK1YoKChICxYsULdu3S57DgCujQII4LI5evSoJk6cqJSUFHXt2lXz5s3THXfcYXasXzEMQwUFBSotLVVZWZnc3d3l4eEhHx8fU98q8lsbNmxQeHi4tm3bpiFDhighIUHNmjUzOxYAF0EBBFDtSktLNXfuXMXHx6t%2B/fqKj4/X008/zfIml6iiokJLly7VpEmTVFJSoqioKI0ZM0b16tUzOxoAJ0cBBFBtDMPQypUrNW7cOB09elSjRo3SCy%2B8oEaNGpkdrUY5ffq0pk6dqvnz56t58%2BaaPXu2HnroIaeasQTgXLh7GEC12L59u7p3765HH31UHTt21K5duzR79mzKXzVo1KiRZs%2BerV27dqlDhw565JFHFBwcrO3bt5sdDYCTogACcKiCggKFhobKz89P3333ndasWaP3339fbdq0MTtajde2bVutWrVKa9as0bfffis/Pz8988wzKigoMDsaACdDAQTgEHa7XYmJiWrdurWWL1%2BuxMRE7dixQz179jQ7muX07NlTO3bs0Ny5c/Xmm2%2BqdevWmjdvnsrLy82OBsBJcA8ggEu2Zs0aRURE6MCBAxoxYoTi4uJMWSIFv1dQUKDo6GgtXrxYbdq0UWJiIqUcADOAAKouPz9f999/v3r37q1rrrlGW7duVVJSEuXPifj4%2BOjll19WXl6err76avXq1Uv333%2B/8vPzzY4GwEQUQACVdurUKY0ZM0YdO3bUnj17tHLlSn3yySe66aabzI6GP9C5c2dlZmZq5cqV2rNnjzp27Kjnn39ep06dMjsaABNwCRjARauoqNCrr76qSZMmqbS0VJMmTVJERATrzrmYs2fP/rwuo6enp6ZPn66//e1vrMsIWAgzgAAuymeffSZ/f3%2BNGDFCvXv31v79%2BxUZGUn5c0H16tVTVFSU9u/fr169emn48OEKCAjQhg0bzI4G4DKhAAL4n77%2B%2Bmv1799fd911l%2BrVq6esrCz94x//0DXXXGN2NFyia665Rv/4xz%2BUlZUld3d33Xnnnerfv78OHz5sdjQA1YwCCOCCiouL9cILL6hdu3batGmTli1bpi%2B%2B%2BELdunUzOxocrFu3bvriiy/0xhtvaOPGjWrXrp2io6NVXFxsdjQA1YR7AAH8imEYSktL04QJE1RYWKixY8dq4sSJatCggdnRcBmcOXNGM2bM0OzZs%2BXt7a2ZM2dq4MCBvFYOqGGYAQR96WhiAAAbZ0lEQVTwsy1btuivf/2rBg8erJtvvll79%2B7VtGnTKH8W0qBBA02bNk179%2B7VzTffrMGDB%2Buvf/2rtmzZYnY0AA5EAQSg48eP66mnnlJQUJCKi4u1fv16vf3222rRooXZ0WCSFi1a6O2331ZmZqaKi4sVFBSkp59%2BWsePHzc7GgAHoAACFnb27FnNmDFDbdq00QcffKDk5GTl5eXprrvuMjsanET37t2Vl5en5OTkn9/pPGPGDJ09e9bsaAAuAfcAAhZkGIbS09M1duxYffPNNxo5cqSio6PVuHFjs6PBiZ08eVJxcXFauHChrr32Ws2ZM0chISHcHwi4IGYAAYvZuXOn7rnnHj300ENq27atdu7cqblz51L%2B8KeuvPJKJSYmaufOnWrTpo369eune%2B%2B9V7t27TI7GoBKogACFlFUVKRnn31WXbp00ZEjR/TBBx9o9erVateundnR4GLatWunNWvW6IMPPtC///1vde7cWc8995yKiorMjgbgIlEAgRquvLxcCxYsUOvWrZWSkqLZs2dr586d6t27t9nR4OJ69%2B6tnTt36sUXX9SyZcvUunVrvfTSSyovLzc7GoA/QQEEarAPP/xQnTt31ujRo/Xoo4/qwIEDioiIkJubm9nRUEO4ublpzJgxOnDggB555BGFh4erS5cu%2Buijj8yOBuB/oAACNdCBAwfUp08f9ejRQz4%2BPsrLy9OiRYvUtGlTs6OhhmratKkWL16s3NxceXt767777lOfPn104MABs6MBuAAKIFCDnD59WuPGjVOHDh20Y8cOvfXWW/r000/VpUsXs6PBIrp27apPP/1UK1as0Pbt29WhQweNHz9e33//vdnRAPwCy8AANUBFRYVef/11RUVF6cyZM4qMjNTzzz8vDw8Ps6PBwkpLSzVnzhwlJCSoQYMGSkhI0FNPPaVatZh7AMzGWQi4uI0bNyooKEhDhw7Vfffdp/z8fE2ePJnyB9N5eHho8uTJys/P17333qu///3vCgwM1MaNG82OBlgeBRBwUd98840ee%2Bwx3X777apdu7a%2B%2BOILLVu2TM2bNzc7GvArzZs3V0pKijZt2qRatWrp9ttv1%2BOPP65vvvnG7GiAZVEAARdTUlKi2NhYtWvXTp999plef/11ZWVl6ZZbbjE7GvA/3XrrrcrOztbrr7%2BuTz/9VO3atVNsbKxKSkrMjgZYDvcAAi5k3bp1Gjp0qE6cOKExY8YoKipKDRs2NDsWUGk//PCD4uPjNXfuXF111VWaNWuWBgwYwGvlgMuEAgi4ED8/P11//fWaPXu2WrZsaXYc4JJ9%2BeWXGjt2rNLT0/X0009r6dKlZkcCLIFLwIAJEhKkwECpYUOpaVOpb18pP//Pt0tOTtY777xD%2BUONccMNN%2Bjdd9/Vxx9/rDNnzvzh56p6zgC4MGYAARP07Ck99tiPA9q5c9KkSdLOndKePVL9%2BmanA8xx7tw51alT54J/xzkDOBYFEHACBQU/zmp89pl0xx1mpwGcH%2BcMcGm4BAw4gdOnf/xnkybm5gBcBecMcGmYAQRMZhhSSIh08qT0%2BedmpwGcH%2BcMcOkufLMFgMvmueekHTskXo4AXBzOGeDSUQABE40cKb33nrRhg8QLPIA/xzkDOAYFEDCBYfw4kL37rvTpp1KLFmYnApwb5wzgWBRAwATPPiulpUkZGT%2Bua/bttz/%2BvFEjycPD3GyAM%2BKcARyLh0AAE/zR265ee0166qnLGgVwCZwzgGNRAAEAACyGdQABBzty5IgmTZpkdgwAP/nuu%2B/MjgA4HQog4CClpaWaOnWq2rZtq82bN5sdB8BPHnroIU2dOlWlpaVmRwGcBgUQuESGYeitt95Su3btNHXqVD333HN69913zY4F4Cf9%2B/fX1KlTdeONN%2Bqtt94Sdz4BFEDgkmzdulV33nmn%2Bvfvry5dumj37t2aOXOmGjRoYHY0AD8JDw/X7t271blzZ/Xv31933XWXtm3bZnYswFQUQKAKTpw4oeHDh8vf319FRUX68MMPlZGRodatW5sdDcAFtG7dWhkZGVq3bp0KCwvl5%2BenESNG6MSJE2ZHA0xBAQQqwW63a%2B7cuWrdurXefvttLViwQNu3b9e9995rdjQAF%2BG%2B%2B%2B7Ttm3bNH/%2BfK1YsUKtW7fW3LlzZbfbzY4GXFYsAwNcBMMwtHr1ao0ZM0ZffvmlQkNDNWXKFHl5eZkdDUAVFRUVKSYmRi%2B//LJatWqlxMRE9e7d2%2BxYwGXBDCDwJ/bu3avevXvrgQce0F/%2B8hdt27ZNCxcupPwBLs7Ly0sLFy7Utm3b1Lx5c91///3q1auX9u3bZ3Y0oNpRAIE/cPLkSUVEROimm27S/v37lZ6ero8%2B%2BkgdO3Y0OxoAB%2BrUqZM%2B/vhjvfvuu9q/f786deqkiIgInTp1yuxoQLXhEjDwGxUVFXrllVc0efJklZWVafLkyRo9erTc3d3NjgagmpWVlWnevHmaNm2a6tWrp2nTpmno0KGqXbu22dEAh2IGEPiF9evXy8/PT88884z69Omj/fv3a8KECZQ/wCLc3d01YcIE7d%2B/Xw888IBCQ0Pl5%2BenTz/91OxogENRAAFJhw4d0sMPP6zg4GDVr19fmzdv1tKlS%2BXr62t2NAAm8PX11WuvvabNmzerfv366t69ux555BEdOnTI7GiAQ1AAYWlnzpzRpEmTdOONNyo7O1upqanatGmTAgMDzY4GwAkEBgZq06ZNSk1NVVZWlm688UZNnjxZZ86cMTsacEm4BxCWdP78eaWmpmrChAk6efKkxo8fr/Hjx6t%2B/fpmRwPgpIqLizVz5ky9%2BOKLatKkiWbOnKmBAweqVi3mUuB6%2BL8WlpOdna1bb71VTzzxhG6//Xbt27dPU6ZMofwB%2BJ/q16%2BvuLg47du3T7fddpuGDBmiW2%2B9VdnZ2WZHAyqNAgjLOHbsmJ544gndfPPNstvt%2Buyzz7R8%2BXJdd911ZkcD4EKuu%2B46LV%2B%2BXJ999pnKysp0880368knn9SxY8fMjgZcNAogaryzZ88qPj5ebdq00dq1a/XKK69oy5YtuuOOO8yOBsCF3XHHHcrJydHixYu1Zs0atWnTRvHx8Tp79qzZ0YA/xT2AqLEMw9A777yjsWPH6siRIwoPD9cLL7ygRo0amR0NQA1z6tQpTZ06VQsWLFDz5s01Z84c9evXTzabzexowAUxA4gaaceOHQoODtYjjzyiDh06aNeuXZo9ezblD0C1aNy4sebMmaNdu3apQ4cOevjhh3X33Xdrx44dZkcDLogCiBqloKBAzzzzjLp27apvv/1Wa9as0apVq9S2bVuzowGwgLZt22rVqlVavXq1jh07pq5du%2BqZZ55RYWGh2dGAX6EAokYoLy/X/Pnz1aZNG/3zn//U3LlztWPHDvXs2dPsaAAsqFevXtq5c6fmzJmjN998U61bt9b8%2BfNVXl5udjRAEvcAogZYu3atIiIitH//fo0YMUJxcXHy9vY2OxYASPrxykR0dLQWL16sNm3aKDExkV9OYTpmAOGy/vuuzl69esnX11dbt25VUlIS5Q%2BAU/Hx8dHLL7%2BsvLw8XX311erVq5ceeOAB7d%2B/3%2BxosDAKIFzO6dOnNXbsWHXo0EG7d%2B/WypUr9cknn%2Bimm24yOxoA/KHOnTsrMzNTK1eu1O7du9WxY0eNHTtWp0%2BfNjsaLIhLwHAZFRUVWrp0qSZNmqSSkhJNmjRJERERqlevntnRAKBSzp49q7lz5yo%2BPl6enp6Kj4/X008/rdq1a5sdDRbBDCBcwoYNGxQQEKDhw4erV69e2r9/vyIjIyl/AFxSvXr1FBUVpfz8fPXs2VPDhg1TQECANmzYYHY0WAQFEE7t8OHD6t%2B/v%2B688065u7srKytL//jHP3TNNdeYHQ0ALlmzZs30xhtvKCsrS25ubrrzzjs1YMAAHT582OxoqOEogHBKxcXFio6OVrt27bRp0ya98cYb%2BuKLL9StWzezowGAw3Xr1k3/%2Bte/9MYbb%2Bjzzz9Xu3btFBMTo%2BLiYrOjoYbiHkA4FcMw9Oabb2r8%2BPEqLCzU2LFjNXHiRDVo0MDsaABwWZw5c0YzZszQ7Nmz5ePjo5kzZ%2Brxxx/ntXJwKGYA4TS2bNmi2267TYMGDdLNN9%2BsvXv3atq0aZQ/AJbSoEEDTZs2TXv37lW3bt00aNAg3XbbbcrJyTE7GmoQCiBMd/z4cT399NMKCgrSmTNntH79er399ttq0aKF2dEAwDQtWrTQ22%2B/rczMTJ05c0aBgYH629/%2Bpm%2B//dbsaKgBuARcwxmGoYKCApWUlMhut8vNzU2enp7y8fEx/XJCWVmZ5s2bp2nTpsnd3V3Tp0/X0KFDWQYBAH7j3LlzWrJkiSZPnqyysjJNnjxZo0ePlru7u9nRnHqcwR%2BjANYwhYWFyszMVG5urnJytigvL0%2BnTv1%2BkdHGjRvJz89PAQGB8vf3V3Bw8GV7g4ZhGMrIyNDzzz%2Bvb775Rs8995yio6N15ZVXXpbjA4CrOnnypOLi4rRw4UJdd911mjNnjvr06XNZi5YrjDP4cxTAGsAwDGVlZSkpKUkrVqyQ3W5X86uaKqBtK/m1a6UOLa5TQ08PudWtK3t5uX4oKdXuQ4eVt%2B%2BgcvIP6sh3J%2BTm5qYBAwYoLCxM3bp1q7Yvk127dmn06NH65JNP1LNnTyUmJqpdu3bVciwAqKn27t2riIgIrVu3Tvfcc48SExPVsWPHajueK40zuDgUQBeXkZGh2JgYbdu%2BXS2a%2BSq0b28N7hksX2%2Bvi97H8cIipazNVHL6ah06elxdu3RR7JQp6tOnj8NyFhUVKSYmRi%2B//LJatWqlxMRE9e7d22H7BwCrMQxDq1ev1pgxY/Tll18qNDRUU6ZMkZfXxX//XwxXGWdQORRAF1VUVKRRo0YpLS1N9wR2VcTjD6lHN3/VqlX153rOnz%2Bvddm5SnzzHX28ZasGDhyoBQsWXNKXSXl5uZKTkxUTE6OKigrFxsbq2WeflZubW5X3CQD4P3a7XQsXLtSUKVNUu3ZtxcXFKTQ0VHXq1Lmk/brKOIOqoQC6oPT0dIWOGCH72VLNjwjVoB7BDp1KNwxDKWs/UXjiIrl7eCh50SL17du30vv56KOPNHr0aO3du1fDhg3T1KlT1bRpU4flBAD8nxMnTmjy5MlasmSJ2rdvr8TERN17771V2perjDOoOpaBcSGGYSg%2BPl79%2BvVTUJuW2pWarME973b4fRQ2m01Det2j3WnJCmrTUv369VNCQoIu9neFgwcPKiQkRPfdd5%2B8vb2Vl5enRYsWUf4AoBo1bdpUixcvVm5urry8vHTfffcpJCREBw8evOh9uMo4g0tXOzY2NtbsEPhzhmEoKipKcXFxihk6WC%2BPH6mG9T2r9ZgNPT312L13SpKiZ8%2BT3W5XcPAf/xb4/fffKzo6WkOGDFFJSYmWLFmiWbNmydfXt1pzAgD%2Bj6%2Bvr5566il16NBBb7zxhmbOnKkzZ86oW7du/3PZGFcYZ%2BA4FEAXkZCQoLi4OL04cpgin3zssp0cNptNd/l1VgNPD0XPmS93d3fdfvvtv/rM%2BfPn9dprr6lv377auHGjJk%2BerNTUVHXu3JmTGABMYLPZ1KFDB4WGhqpu3bqaO3euFi9erCZNmvzhd7MzjzNwPO4BdAHp6enq16%2BfYoYOVszfB5uWI3bJMsW9mqr09HSFhIRIkjZt2qTw8HDl5uZq0KBBmjFjhpo3b25aRgDA7x05ckQTJ05Uamqq/P39NX/%2BfP31r3/9%2Be%2BdeZxB9aAAOrmioiJ1aN9eQW1aKn1WjKkzaoZhKGRcrLYcOKR1H36oGTNm6J///KcCAwM1f/583XLLLaZlAwD8uS%2B%2B%2BELh4eHKycnR448/rpkzZ8rT09Mpx5nde/bwdHA1ogA6uUGDBmnNqve1KzW5UmsuVZdjBUXqMHC4zpSelY%2BPj2bMmKEhQ4Zc0rIAAIDL5/z581q2bJkmTpyo06dPq1WrVjpy%2BGunGmc6DgrV/X36KCUlxew4NRajthPLyMhQWlqa5keEOsVJKUnX%2BHhpwZhnVFFRoXnz5unJJ5%2Bk/AGAC6lVq5aefPJJ7d%2B/X7169dLOnTudbpyZHzFCqampeu%2B998yOU2MxA%2BikDMOQX9eu8narpXXz453qYQrDMNQjPEpF5YZy8/KcKhsA4OL8d5zxcqulDxlnLIepGyeVlZWlbdu3K%2BLxh5zuf3ybzabRj/XT1m3blJ2dbXYcAEAV/HecGcM4Y0kUQCeVlJSkFs181aObv9lRLqhHN3%2B1aOarpKQks6MAAKqAccbaKIBOqLCwUCtWrFBo395Oe39d7dq1NaJvby1fvlyFhYVmxwEAVALjDJzzv7rFZWZmym63a3DPYIfvO3bJMt04YKgadA9Rk/se0b0jJyp7974q7WtIz2DZ7XatX7/ewSkBANWpOseZXxoxY75q3dJT8/75bpW2Z5ypPhRAJ5Sbm6vmVzWtliey2vyluV56Pkw7UpL1efJsXed7lXqER6ng5KlK78vX20vNmvooNzfX4TkBANWnOseZ/0r/7Att3pOvay7hGIwz1YcC6IRytmxRQNtWVdr2h%2BISDY6ZqQbdQ3TNA48r8c131D1snEYnJkuSBvbornuC/NSyma86tLxec8OH6/viEu04eKhKxwto10o5OVuqtC0AwBzVOc5I0tEThRo5J0kpseNVt07tS8rKOFM9KIBOxjAM5W3Nk1%2B7qp2YYxYs1qYdu5UxK1Yfzk/Qxu27lJf/5QU/ay8v1%2BL0NWrUoL46t25ZpeP5tW2lvNw8sZoQALiG6h5nzp8/ryfiXtTYQY%2BoQ8vrLzkv40z1oAA6mYKCAp06dVodWlxX6W1/KC7RG6s/1osjh%2BnuwK7qeMP1Wjr5eVWcr/jV51ZtzFbD4L7yuLOP5v3zXX04P17ejRtVKW/Hltfr5KlTKigoqNL2AIDLq7rHmZnLVqhO7doa1d8x7/JlnKkeFEAnU1JSIklq6OlR6W2/Ovatys%2BdU1D7tj//rFGD%2Bmp7bfNffa67f2dt/UeSNi2eqx43%2B2vA5Hid%2BE/l7wGUpAY/5SwtLa3S9gCAy6s6x5ncfQe0YEWGXpv8vMPWFmScqR4UQCdjt9slSW5161Z62/9Oj//2pPvtrHl9j3pq9ZdrdHPHG/XqpDGqU7u2Xn1/bZXyutWpI0kqKyur0vYAgMurOseZz7ft0omTp3RdvyGqe1tv1b2ttw5/e0JjX3pFLfo9UaW8jDPVo47ZAfBrbm5ukn68P6%2Bybmjmq7p16mjznnz95SofSdL3xcU6cOSo7uja6Q%2B3MwxDZVU4niTZz52TJLm7u1dpewDA5VWd48yQXnfrnsCuv9qm5%2BhJGtzrbj19/71Vyss4Uz0ogE7G09NTkvRDSeWnuhvW99QTve/R%2BIVL1OSKhmp6ZSPFLklRLVst2Ww2FZee1fTX31Sf22%2BWr1cTFX3/vZJWrtKRgkI9Gnx7lfKe%2BSmnh0flLyUAAC6/6hxnvBpdIa9GV/xqm7p1auvqJleq7XV/qVJexpnqwSVgJ%2BPj46PGjRtp96HDVdp%2B7qjhuqXjjXpwbLTuHRWpWzu1143X/0X13Oqqdq1ayj/8bz0SOU1tBwzVg2NjVHjqtDa8PLvKT2rt%2BuprXdm4sXx8fKq0PQDg8qrOcaY6MM5UD2YAnYzNZpNfVz/l7TtYpe0b1vdUypQJP/%2B5uPSs4pamalhIL9Vzd9PKGdGOiipJyss/KD9/P6d7kTgA4MKqc5y5kEPvvlGl4/wX40z1YAbQCQUEBionv2on5tb8g3rzw/X68sgx5eUf0ODYmZKkkDtucWTEn%2BXsO6iAgMBq2TcAoHowzoAC6IT8/f115LsTOl5YVKXt56StVJcnwnTvyEgVl57VhpdnV3mdv//leGGRjp4okL%2B/v8P3DQCoPowzsBksre10CgsL1axZM00dNkTjBj9qdpw/NCvlLUW/skxHjx6Vt7e32XEAABeJcQbMADohb29v9e/fX8npq3X%2B/Hmz41xQRUWFFqWv1oABAzgpAcDFMM6AAuikwsLCdOjoca3LzjU7ygWty87VoaPHFRYWZnYUAEAVMM5YG5eAnZRhGPL385NXXZvWzY93qqefDMNQj/Ao/eeclJOb61TZAAAXh3HG2pgBdFI2m02xU6bo4y1blbou0%2Bw4v5Ky9hN9vGWrYmJjOSkBwEUxzlgbM4BObtCgQVqz6n3tSk2Wr7eX2XF0rKBIHQeF6v4%2BfZSSkmJ2HADAJWKcsSYKoJMrKipSh/btFdSmpdJnxZj6m5BhGAoZF6stBw5p95498vIy/4sCAHBpGGesiUvATs7Ly0vJixbp/Y1ZiluaamqWKa%2BmaNWmbC1avJiTEgBqCMYZa6odGxsba3YI/G/t2rWTm5ubomfPUwNPD93aqf1lzzAnbaUmJ7%2Bu%2BPh4DR069LIfHwBQfRhnrIcC6CJuu%2B022e12Rc%2BZL0OG7ux602WZpjcMQ1NeTdHk5NcVGRmpmBhzLw8AAKoH44y1UABdhM1mU3BwsNzd3RU9e5625n%2Bpu/w6qaGnZ7Ud81hBkQbHzNQrGWuUkJDASQkANRjjjLXwEIgLysjI0Ijhw1VWWqr5ESM0uOfdDj1hDMNQytpPFJ64SO4eHlq0eLFCQkIctn8AgHNjnKn5KIAuqqioSKNGjVJaWpruCeyq0Y/1U8%2BbA1SrVtWf66moqNC67FzN%2B%2Be7%2BnjLVg0aNEgLFixQkyZNHJgcAOAKGGdqNgqgi8vIyNCU2Fht3bZNLZr5akTf3hrSM7hSazkdLyzSsrWZWpS%2BWoeOHlfXLl0UO2WK%2BvTpU43JAQCugHGmZqIA1gCGYSg7O1tJSUlavny57Ha7ml/VVP5tb5Bf21bq2PJ6NfD0kFudOrKfO6czJaXa9dXXyss/qJx9B3X0RIHc3d01YMAAhYWFKSgoiHswAAA/Y5ypeSiANUxhYaHWr1%2BvnJwc5ebmKDc3V6dOnf7d5xo3biR/f38FBATK399f3bt3l7e3twmJAQCuhHGmZqAA1nCGYaigoEClpaUqKyuTu7u7PDw85OPjw29fAIBLxjjjmiiAAAAAFsOr4AAAACyGAggAAGAxFEAAAACLoQACAABYDAUQAADAYiiAAAAAFkMBBAAAsBgKIAAAgMVQAAEAACyGAggAAGAxFEAAAACLoQACAABYDAUQAADAYiiAAAAAFkMBBAAAsBgKIAAAgMVQAAEAACyGAggAAGAxFEAAAACLoQACAABYDAUQAADAYiiAAAAAFkMBBAAAsBgKIAAAgMVQAAEAACyGAggAAGAxFEAAAACLoQACAABYDAUQAADAYiiAAAAAFkMBBAAAsBgKIAAAgMVQAAEAACyGAggAAGAxFEAAAACL%2Bf/RhR8SK7xDyQAAAABJRU5ErkJggg%3D%3D",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.55033946,"math_prob":0.9974467,"size":1019,"snap":"2020-24-2020-29","text_gpt3_token_len":432,"char_repetition_ratio":0.14876847,"word_repetition_ratio":0.02631579,"special_character_ratio":0.46712464,"punctuation_ratio":0.21559633,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9923718,"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-13T06:15:09Z\",\"WARC-Record-ID\":\"<urn:uuid:ff972a24-95e4-468a-b8c2-b3bf578443a6>\",\"Content-Length\":\"62236\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5219b631-0ee8-4f9b-a6a9-d934d4aa982a>\",\"WARC-Concurrent-To\":\"<urn:uuid:d936c710-38e3-490b-bec0-3052837ce314>\",\"WARC-IP-Address\":\"35.241.19.59\",\"WARC-Target-URI\":\"https://www.lmfdb.org/EllipticCurve/Q/2112g/\",\"WARC-Payload-Digest\":\"sha1:GSYJSXZOC5XQB2Z6ENR4P2F645CBIHQS\",\"WARC-Block-Digest\":\"sha1:VSQTYM7MJI3LPVV7AQTZHUTQUPBKB7CN\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593657142589.93_warc_CC-MAIN-20200713033803-20200713063803-00141.warc.gz\"}"} |
http://www.atomicmatters.eu/en/theory/the-thermodynamic-functions/ | [
"Fine electronic structure (Ei, Γi) allows to find a thermodynamic functions for the statistical group of N ions. It is usefully, to put N=NA≈6.022.1023 mol-1 (Avogadro constant).",
null,
"population of energy level Ei:\n\nthermodynamic sum of states:\n\nfree energy:\n\ninternal energy:\n\nwhere: kB= 1,38 x 10 -23 J/K (Boltzmann constant)\n\nIn temperature T = 0[K] (absolute zero) only the lowest state is occupied. The magnetic moment at 0[K] is equal to the moment of the ground state. It allows evaluate the total, spin and orbital moments.\nTaking into consideration the possibility the thermal population of states we automatically achieve a thermal evolution of the single ion properties of the compound.\n\nUseful relationships between units:\n\nENERGY\n[1 K = 0.0862 meV = 1.38·10 -23 J, ( K - Kelvin)]\n\nMAGNETIC MOMENT\n[ μ B -Bohr magnetron]\n\nMAGNETIC SUSCEPTIBILITY\n[ μ B /T× ion - Bohr magneton/Tesla×ion ] ( μ B/T × ion = 0.5586 emu/mol)\n\nMAGNETIC MOMENT\nM[μ B/ f.u.] ( 1μ B = 9.27 ·10-24 J/T, J/T = A × m2 ) [μ B× T/kB = 0.67171 K]"
]
| [
null,
"http://www.induforce.com/ATMA/img/therm1.jpg",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.6228628,"math_prob":0.9894654,"size":1400,"snap":"2020-34-2020-40","text_gpt3_token_len":446,"char_repetition_ratio":0.108882524,"word_repetition_ratio":0.0,"special_character_ratio":0.29714286,"punctuation_ratio":0.11347517,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99195254,"pos_list":[0,1,2],"im_url_duplicate_count":[null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-08-12T17:22:18Z\",\"WARC-Record-ID\":\"<urn:uuid:d73e6e2c-700e-421a-bea5-ffaee1046c4e>\",\"Content-Length\":\"72150\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:52fc5adb-ab44-4094-ab29-268d7ba85e59>\",\"WARC-Concurrent-To\":\"<urn:uuid:daabed1f-7fe9-4bff-8528-8c60be0c1151>\",\"WARC-IP-Address\":\"85.128.208.220\",\"WARC-Target-URI\":\"http://www.atomicmatters.eu/en/theory/the-thermodynamic-functions/\",\"WARC-Payload-Digest\":\"sha1:4LOVPFMKWRKDDACLNRNXYTREGIBGXAY5\",\"WARC-Block-Digest\":\"sha1:XCEGAQO7RAD7CSGVWZ2HWQK5KPGTC5FH\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-34/CC-MAIN-2020-34_segments_1596439738913.60_warc_CC-MAIN-20200812171125-20200812201125-00573.warc.gz\"}"} |
http://vlsiinterviewquestions.org/2012/04/21/xnor-gate-using-21-mux/ | [
"# XNOR gate using 2:1 MUX\n\nFollowing is a refresher on the XNOR gates.",
null,
"Figure 1 XNOR gate\n\nAlternate equation for an XNOR gate is :\n\nO = (A)bar * (B)bar + A * B\n\nThis can be derived using Kmaps as following.",
null,
"Figure 2. Kmap for XNOR gate.\n\nWe know that the equation for a 2:1 MUX is of following form :\n\nOut = S * A + (S)bar * B.\n\nWe need to turn this of the form\n\nO = (A)bar * (B)bar + A * B\n\nIt seems easy enough to achieve this. In the 2:1 MUX equation, if we tie (A)bar in place of B, we get\n\nOut = S * A + (S)bar * (A)bar\n\nThis is the equation of XNOR gate for inputs S and A.\n\nFigure 3 XNOR using 2:1 MUX\n\nDo you think we are done with 2:1 MUX series now ? There is still some more devices that we can make. Will continue in next post.\n\n-SS"
]
| [
null,
"http://vlsiinterviewquestions.org/wp-content/uploads/2012/04/xnor.jpg",
null,
"http://vlsiinterviewquestions.org/wp-content/uploads/2012/04/xnorkmap.jpg",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.9200652,"math_prob":0.9953806,"size":705,"snap":"2022-40-2023-06","text_gpt3_token_len":237,"char_repetition_ratio":0.14835949,"word_repetition_ratio":0.115384616,"special_character_ratio":0.3134752,"punctuation_ratio":0.10526316,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9982852,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,4,null,4,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-02-04T09:56:16Z\",\"WARC-Record-ID\":\"<urn:uuid:8bf32387-b167-41a2-ab91-1d15e1e4958c>\",\"Content-Length\":\"49046\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ef54687e-f9de-4404-9ca6-9813780955d2>\",\"WARC-Concurrent-To\":\"<urn:uuid:2d7c2808-3a27-4085-a291-2cfaaa64c5a2>\",\"WARC-IP-Address\":\"35.208.183.60\",\"WARC-Target-URI\":\"http://vlsiinterviewquestions.org/2012/04/21/xnor-gate-using-21-mux/\",\"WARC-Payload-Digest\":\"sha1:4FHXOUCEYB4RFRD5QX36BT4N2FDAIF2P\",\"WARC-Block-Digest\":\"sha1:FK3G3BZOGZDIQWZWNZYQMVVGTDCC5CFY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764500095.4_warc_CC-MAIN-20230204075436-20230204105436-00241.warc.gz\"}"} |
https://zory.ink/posts/6c3f.html | [
"AGC032\n\n## D\n\n$ans=\\sum A(ai<bi)+B(ai>bi)$\n\n## E",
null,
"## F\n\n0上有一个点,设[0,120)A类,[120,240)B类,[240,360)C类\n\nA\n\nB\n\n(可有可无)观察一下转移和所求可以简化为 $f(i)=2f(i-2)+f(i-1)$\n$ans=\\sum_{i=1}^n \\frac{f(i) \\times C_n^i}{3^{n-1}} \\times g(i)$\n$g(i)为期望最小段长度=\\frac{1}{i^2} \\times \\frac{i}{3n}=\\frac{1}{3in}$"
]
| [
null,
"https://zory.ink/images/题解图片/AGC032e.png",
null
]
| {"ft_lang_label":"__label__zh","ft_lang_prob":0.9123052,"math_prob":1.0000076,"size":1453,"snap":"2020-34-2020-40","text_gpt3_token_len":1346,"char_repetition_ratio":0.08005521,"word_repetition_ratio":0.0,"special_character_ratio":0.3083276,"punctuation_ratio":0.050583657,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9999982,"pos_list":[0,1,2],"im_url_duplicate_count":[null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-08-13T16:30:15Z\",\"WARC-Record-ID\":\"<urn:uuid:90662bc1-4647-47c8-85e3-74e7862aeb04>\",\"Content-Length\":\"91139\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:236bb918-6969-446e-a8bb-1b0acb052d20>\",\"WARC-Concurrent-To\":\"<urn:uuid:5b6a8d20-8e47-4cf7-b250-e556bcce3f7e>\",\"WARC-IP-Address\":\"150.109.19.98\",\"WARC-Target-URI\":\"https://zory.ink/posts/6c3f.html\",\"WARC-Payload-Digest\":\"sha1:33O3KHQB6RYSOMHCPQUI2QDM2Y335H4K\",\"WARC-Block-Digest\":\"sha1:DIBXSRSW3WXVTTHG7WGLDG5PDL7MKWJF\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-34/CC-MAIN-2020-34_segments_1596439739048.46_warc_CC-MAIN-20200813161908-20200813191908-00282.warc.gz\"}"} |
https://stackoverflow.com/questions/28430674/create-sparse-matrix-from-data-frame | [
"Create sparse matrix from data frame\n\nI’m trying to create a sparse data matrix from a data frame without having to build a dense matrix which causes serious memory issues .\n\nI found a SO the following post where a solution seems to be found: Create Sparse Matrix from a data frame\n\nI've tried this solution, but, it doesn't work for me, perhaps because my UserID and MovieID doesn't t start in 1.\n\nHere is my sample code:\n\nlibrary(Matrix)\n\nUserID<-c(10090,10090,10090,10316,10316)\nMovieID <-c(63155,63530,63544,63155,63545)\nRating <-c(2,2,1,2,1)\ntrainingData<-data.frame(UserID,MovieID,Rating)\ntrainingData\n\nUIMatrix <- sparseMatrix(i = trainingData\\$UserID,\nj = trainingData\\$MovieID,\nx = trainingData\\$Rating)\n\ndim(UIMatrix)\n\nI expected to get a 2 x 3 matrix but the dims corresponds to the maximum user and movie id.\n\nI've tryed the second solutions suggested in the post but it doesn't with may data work as well.\n\nCan anyone give some advise?\n\n• If I understand the i, j, these are row/column indices. So, the trainingData\\$UserID` have row indices 10090,.. and column indices are also big. Therefore the matrix size would be big enough to have those row/column index – akrun Feb 10 '15 at 11:51\n\nYou can convert your indices to indices starting at one with as.integer(as.factor(.)).\n\nUIMatrix <- sparseMatrix(i = as.integer(as.factor(trainingData\\$UserID)),\nj = as.integer(as.factor(trainingData\\$MovieID)),\nx = trainingData\\$Rating)\n\ndim(UIMatrix)\n# 2 4\n\ndimnames(UIMatrix) <- list(sort(unique(trainingData\\$UserID)),\nsort(unique(trainingData\\$MovieID)))\n\nUIMatrix\n# 2 x 4 sparse Matrix of class \"dgCMatrix\"\n# 63155 63530 63544 63545\n# 10090 2 2 1 .\n# 10316 2 . . 1\n• Almost perfect! I just need to add the dimnames. how can a get that? – Nelson Feb 10 '15 at 16:07\n• @Nelson See the update. – Sven Hohenstein Feb 10 '15 at 16:12\n• Excellent!!! really helpful! – Nelson Feb 10 '15 at 16:14"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.910635,"math_prob":0.9227561,"size":1126,"snap":"2019-43-2019-47","text_gpt3_token_len":303,"char_repetition_ratio":0.12566845,"word_repetition_ratio":0.0,"special_character_ratio":0.28596804,"punctuation_ratio":0.15319149,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99181366,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-10-19T06:23:05Z\",\"WARC-Record-ID\":\"<urn:uuid:05c24ea7-66ca-4031-afbf-814936629845>\",\"Content-Length\":\"142826\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:748bacea-e5e8-4aea-a8f3-e2d066205c74>\",\"WARC-Concurrent-To\":\"<urn:uuid:246a4f9a-7780-461a-8d93-0a5570ef83b0>\",\"WARC-IP-Address\":\"151.101.65.69\",\"WARC-Target-URI\":\"https://stackoverflow.com/questions/28430674/create-sparse-matrix-from-data-frame\",\"WARC-Payload-Digest\":\"sha1:AQHMDRLSAPGNQ7VWYQLTXZWM2NL5H7HX\",\"WARC-Block-Digest\":\"sha1:JEUZAGD7IZSVJMOOM6LBDY4S27OXUBUT\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-43/CC-MAIN-2019-43_segments_1570986688826.38_warc_CC-MAIN-20191019040458-20191019063958-00176.warc.gz\"}"} |
https://randnyevg34.com/tag/the-atomic-mass-is-equal-to-the-number-of/ | [
"## The atomic mass is equal to the number of\n\nHere is the answer for the question – The atomic mass is equal to the number of. You’ll find the correct answer below The atomic mass is equal to the number of The Correct Answer is protons plus neutrons.Explanation: The number of protons plus the number of neutrons comprise almost all of the mass of … Read more"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.8389266,"math_prob":0.9988066,"size":355,"snap":"2021-43-2021-49","text_gpt3_token_len":77,"char_repetition_ratio":0.19088319,"word_repetition_ratio":0.22222222,"special_character_ratio":0.2028169,"punctuation_ratio":0.042857144,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9948626,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-28T04:58:05Z\",\"WARC-Record-ID\":\"<urn:uuid:d09cbea5-e333-4fcd-9037-47bfaa096633>\",\"Content-Length\":\"31240\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e8cd8257-fd9a-4c6e-8dc6-d64309a5d8f2>\",\"WARC-Concurrent-To\":\"<urn:uuid:16488525-68be-44a6-979b-b28de4796d9b>\",\"WARC-IP-Address\":\"172.67.222.204\",\"WARC-Target-URI\":\"https://randnyevg34.com/tag/the-atomic-mass-is-equal-to-the-number-of/\",\"WARC-Payload-Digest\":\"sha1:OLDBLF54HU6WSPX6C63KOT5DAVL7T6MO\",\"WARC-Block-Digest\":\"sha1:ZPDNUEPOQ5VPWMKNYM523RZVDA2O2GRW\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323588257.34_warc_CC-MAIN-20211028034828-20211028064828-00275.warc.gz\"}"} |
http://csis.pace.edu/~wolf/CS122/infix-postfix.htm | [
"Infix to postfix conversion algorithm\n\nThere is an algorithm to convert an infix expression into a postfix expression. It uses a stack; but in this case, the stack is used to hold operators rather than numbers. The purpose of the stack is to reverse the order of the operators in the expression. It also serves as a storage structure, since no operator can be printed until both of its operands have appeared.\n\nIn this algorithm, all operands are printed (or sent to output) when they are read. There are more complicated rules to handle operators and parentheses.\n\nExample:\n\n1. A * B + C becomes A B * C +\n\nThe order in which the operators appear is not reversed. When the '+' is read, it has lower precedence than the '*', so the '*' must be printed first.\n\nWe will show this in a table with three columns. The first will show the symbol currently being read. The second will show what is on the stack and the third will show the current contents of the postfix string. The stack will be written from left to right with the 'bottom' of the stack to the left.\n\n current symbol operator stack postfix string 1 A A 2 * * A 3 B * A B 4 + + A B * {pop and print the '*' before pushing the '+'} 5 C + A B * C 6 A B * C +\n\nThe rule used in lines 1, 3 and 5 is to print an operand when it is read. The rule for line 2 is to push an operator onto the stack if it is empty. The rule for line 4 is if the operator on the top of the stack has higher precedence than the one being read, pop and print the one on top and then push the new operator on. The rule for line 6 is that when the end of the expression has been reached, pop the operators on the stack one at a time and print them.\n\n2. A + B * C becomes A B C * +\n\nHere the order of the operators must be reversed. The stack is suitable for this, since operators will be popped off in the reverse order from that in which they were pushed.\n\n current symbol operator stack postfix string 1 A A 2 + + A 3 B + A B 4 * + * A B 5 C + * A B C 6 A B C * +\n\nIn line 4, the '*' sign is pushed onto the stack because it has higher precedence than the '+' sign which is already there. Then when the are both popped off in lines 6 and 7, their order will be reversed.\n\n3. A * (B + C) becomes A B C + *\n\nA subexpression in parentheses must be done before the rest of the expression.\n\n current symbol operator stack postfix string 1 A A 2 * * A 3 ( * ( A B 4 B * ( A B 5 + * ( + A B 6 C * ( + A B C 7 ) * A B C + 8 A B C + *\n\nSince expressions in parentheses must be done first, everything on the stack is saved and the left parenthesis is pushed to provide a marker. When the next operator is read, the stack is treated as though it were empty and the new operator (here the '+' sign) is pushed on. Then when the right parenthesis is read, the stack is popped until the corresponding left parenthesis is found. Since postfix expressions have no parentheses, the parentheses are not printed.\n\n4. A - B + C becomes A B - C +\n\nWhen operators have the same precedence, we must consider association. Left to right association means that the operator on the stack must be done first, while right to left association means the reverse.\n\n current symbol operator stack postfix string 1 A A 2 - - A 3 B - A B 4 + + A B - 5 C + A B - C 6 A B - C +\n\nIn line 4, the '-' will be popped and printed before the '+' is pushed onto the stack. Both operators have the same precedence level, so left to right association tells us to do the first one found before the second.\n\n5. A * B ^ C + D becomes A B C ^ * D +\n\nHere both the exponentiation and the multiplication must be done before the addition.\n\n current symbol operator stack postfix string 1 A A 2 * * A 3 B * A B 4 ^ * ^ A B 5 C * ^ A B C 6 + + A B C ^ * 7 D + A B C ^ * D 8 A B C ^ * D +\n\nWhen the '+' is encountered in line 6, it is first compared to the '^' on top of the stack. Since it has lower precedence, the '^' is popped and printed. But instead of pushing the '+' sign onto the stack now, we must compare it with the new top of the stack, the '*'. Since the operator also has higher precedence than the '+', it also must be popped and printed. Now the stack is empty, so the '+' can be pushed onto the stack.\n\n6. A * (B + C * D) + E becomes A B C D * + * E +\n\n current symbol operator stack postfix string 1 A A 2 * * A 3 ( * ( A 4 B * ( A B 5 + * ( + A B 6 C * ( + A B C 7 * * ( + * A B C 8 D * ( + * A B C D 9 ) * A B C D * + 10 + + A B C D * + * 11 E + A B C D * + * E 12 A B C D * + * E +\n\nA summary of the rules follows:\n\n1. Print operands as they arrive.\n\n2. If the stack is empty or contains a left parenthesis on top, push the incoming operator onto the stack.\n\n3. If the incoming symbol is a left parenthesis, push it on the stack.\n\n4. If the incoming symbol is a right parenthesis, pop the stack and print the operators until you see a left parenthesis. Discard the pair of parentheses.\n\n5. If the incoming symbol has higher precedence than the top of the stack, push it on the stack.\n\n6. If the incoming symbol has equal precedence with the top of the stack, use association. If the association is left to right, pop and print the top of the stack and then push the incoming operator. If the association is right to left, push the incoming operator.\n\n7. If the incoming symbol has lower precedence than the symbol on the top of the stack, pop the stack and print the top operator. Then test the incoming operator against the new top of stack.\n\n8. At the end of the expression, pop and print all operators on the stack. (No parentheses should remain.)"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.8638223,"math_prob":0.97027564,"size":5969,"snap":"2023-40-2023-50","text_gpt3_token_len":1717,"char_repetition_ratio":0.18507963,"word_repetition_ratio":0.31618655,"special_character_ratio":0.3464567,"punctuation_ratio":0.08188586,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98034364,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-23T15:33:12Z\",\"WARC-Record-ID\":\"<urn:uuid:069d7f24-45c8-4db4-bac3-a6f4d9bb084f>\",\"Content-Length\":\"17810\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:0e095b7d-75fd-43e9-a62e-fd558cafc330>\",\"WARC-Concurrent-To\":\"<urn:uuid:8274d719-7140-43f0-8613-a4b48b509c23>\",\"WARC-IP-Address\":\"198.105.44.52\",\"WARC-Target-URI\":\"http://csis.pace.edu/~wolf/CS122/infix-postfix.htm\",\"WARC-Payload-Digest\":\"sha1:DVHQBRZIJORI4J57VRDGTRWUKDL5GR75\",\"WARC-Block-Digest\":\"sha1:N4MLUN3T7BNP6DY4FGYXKOIUU3N4JOEX\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233506481.17_warc_CC-MAIN-20230923130827-20230923160827-00261.warc.gz\"}"} |
http://notebook.wxnacy.com/LeetCode/0009-%E5%9B%9E%E6%96%87%E6%95%B0.html | [
"输入: 121\n\n\n\n输入: -121\n\n\n\n输入: 10\n\n\n\n你能不将整数转为字符串来解决这个问题吗?\n\n## 思路1:数字取余¶\n\n• 数字小于 0 时直接返回 False\n• 数字等于 0 时直接返回 True\n• 利用取余的方式将数字反转、最后跟原数字对比,如果相同则返回 True\n• 取余的过程中如果原数字能被 10 整除,则返回 False\nIn :\nclass Solution:\ndef isPalindrome(self, x: int) -> bool:\n'''\n执行用时: 96 ms , 在所有 Python3 提交中击败了 40.97% 的用户\n内存消耗: 13.7 MB , 在所有 Python3 提交中击败了 5.88% 的用户\n'''\nif x < 0:\nreturn False\nif x == 0:\nreturn True\nans, y = 0, x\nwhile y != 0:\ndiv = y % 10\nif div == 0 and ans == 0:\nreturn False\nans = ans * 10 + div\ny //=10\nif ans == x:\nreturn True\nreturn False\n\ns = Solution()\nassert s.isPalindrome(121) == True\nassert s.isPalindrome(-121) == False\nassert s.isPalindrome(10) == False\n\n\n## 思路2:字符串比较¶\n\n• 数字小于 0 时直接返回 False\n• 数字等于 0 时直接返回 True\n• 将数字转为字符串,利用滑块,从两端向中间靠拢,首尾字符进行比较,如果返现不一致,则返回 False\nIn :\nclass Solution:\ndef isPalindrome(self, x: int) -> bool:\n'''\n执行用时: 88 ms , 在所有 Python3 提交中击败了 60.64% 的用户\n内存消耗: 13.7 MB , 在所有 Python3 提交中击败了 5.88% 的用户\n'''\nif x < 0:\nreturn False\nif x == 0:\nreturn True\ns = str(x)\ni, j = 0, len(s) - 1\nwhile i < j:\nif s[i] != s[j]:\nreturn False\ni += 1\nj -= 1\nreturn True\n\ns = Solution()\nassert s.isPalindrome(121) == True\nassert s.isPalindrome(-121) == False\nassert s.isPalindrome(10) == False"
]
| [
null
]
| {"ft_lang_label":"__label__zh","ft_lang_prob":0.5763563,"math_prob":0.99456936,"size":1174,"snap":"2021-43-2021-49","text_gpt3_token_len":558,"char_repetition_ratio":0.16752137,"word_repetition_ratio":0.34741783,"special_character_ratio":0.40971038,"punctuation_ratio":0.20363636,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99039423,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-12-01T01:20:03Z\",\"WARC-Record-ID\":\"<urn:uuid:c51190db-96c6-43a0-95c7-2419691e805c>\",\"Content-Length\":\"281470\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:733ee95d-077b-481a-806a-99687c6244fe>\",\"WARC-Concurrent-To\":\"<urn:uuid:4d0cfd9c-6df7-4904-8a00-8a69443aba82>\",\"WARC-IP-Address\":\"59.110.190.38\",\"WARC-Target-URI\":\"http://notebook.wxnacy.com/LeetCode/0009-%E5%9B%9E%E6%96%87%E6%95%B0.html\",\"WARC-Payload-Digest\":\"sha1:2TMKAWO6UUZCVSGDR3EWTMGEAXKRXK42\",\"WARC-Block-Digest\":\"sha1:IWBS2Z5IA6CRMJTKLTXOP4RLUH2YU3OC\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964359082.76_warc_CC-MAIN-20211130232232-20211201022232-00171.warc.gz\"}"} |
http://qucs.github.io/qucs-doxygen/qucs-core/structqucs_1_1hbsolver.html | [
"Qucs-core 0.0.19\nqucs::hbsolver Class Reference\n\n`#include <hbsolver.h>`\n\nInheritance diagram for qucs::hbsolver:",
null,
"[legend]\nCollaboration diagram for qucs::hbsolver:",
null,
"[legend]\n\n## Public Member Functions\n\nACREATOR (hbsolver)\nhbsolver (char *)\nhbsolver (hbsolver &)\n~hbsolver ()\nint solve (void)\nplacehoder for solution function\nvoid initHB (void)\nvoid initDC (void)\nvoid collectFrequencies (void)\nint checkBalance (void)\nvoid splitCircuits (void)\nvoid expandFrequencies (nr_double_t, int)\nbool isExcitation (circuit *)\nstrlistcircuitNodes (ptrlist< circuit >)\nvoid getNodeLists (void)\nint assignVoltageSources (ptrlist< circuit >)\nint assignNodes (ptrlist< circuit >, strlist *, int offset=0)\nvoid prepareLinear (void)\nvoid createMatrixLinearA (void)\nvoid fillMatrixLinearA (tmatrix< nr_complex_t > *, int)\nvoid invertMatrix (tmatrix< nr_complex_t > *, tmatrix< nr_complex_t > *)\nvoid createMatrixLinearY (void)\nvoid saveResults (void)\nvoid calcConstantCurrent (void)\nnr_complex_t excitationZ (tvector< nr_complex_t > *, circuit *, int)\nvoid finalSolution (void)\nvoid fillMatrixNonLinear (tmatrix< nr_complex_t > *, tmatrix< nr_complex_t > *, tvector< nr_complex_t > *, tvector< nr_complex_t > *, tvector< nr_complex_t > *, tvector< nr_complex_t > *, int)\nvoid prepareNonLinear (void)\nvoid solveHB (void)\nvoid loadMatrices (void)\nvoid VectorFFT (tvector< nr_complex_t > *, int isign=1)\nvoid VectorIFFT (tvector< nr_complex_t > *, int isign=1)\nint calcOrder (int)\nvoid MatrixFFT (tmatrix< nr_complex_t > *)\nvoid calcJacobian (void)\nvoid solveVoltages (void)\ntvector< nr_complex_texpandVector (tvector< nr_complex_t >, int)\ntmatrix< nr_complex_texpandMatrix (tmatrix< nr_complex_t >, int)\ntmatrix< nr_complex_textendMatrixLinear (tmatrix< nr_complex_t >, int)\nvoid fillMatrixLinearExtended (tmatrix< nr_complex_t > *, tvector< nr_complex_t > *)\nvoid saveNodeVoltages (circuit *, int)\n\n## Static Public Member Functions\n\nstatic void calc (hbsolver *)\n\n## Data Fields\n\nHB\nPROP_ACTION\nPROP_NO_SUBSTRATE\nPROP_LINEAR\n\n## Private Attributes\n\nstd::vector< nr_double_tnegfreqs\nstd::vector< nr_double_tposfreqs\nstd::vector< nr_double_trfreqs\nintndfreqs\nstd::vector< nr_double_tdfreqs\nnr_double_t frequency\nstrlistnlnodes\nstrlistlnnodes\nstrlistbanodes\nstrlistnanodes\nstrlistexnodes\nptrlist< circuitexcitations\nptrlist< circuitnolcircuits\nptrlist< circuitlincircuits\ntmatrix< nr_complex_t > * Y\ntmatrix< nr_complex_t > * A\ntmatrix< nr_complex_t > * Z\ntmatrix< nr_complex_t > * YV\ntmatrix< nr_complex_t > * NA\ntmatrix< nr_complex_t > * JQ\ntmatrix< nr_complex_t > * JG\ntmatrix< nr_complex_t > * JF\ntvector< nr_complex_t > * IG\ntvector< nr_complex_t > * FQ\ntvector< nr_complex_t > * VS\ntvector< nr_complex_t > * VP\ntvector< nr_complex_t > * FV\ntvector< nr_complex_t > * IL\ntvector< nr_complex_t > * IN\ntvector< nr_complex_t > * IR\ntvector< nr_complex_t > * QR\ntvector< nr_complex_t > * RH\ntvector< nr_complex_t > * OM\ntvector< nr_complex_t > * IC\ntvector< nr_complex_t > * IS\ntvector< nr_complex_t > * x\ntvector< nr_complex_t > * vs\nint runs\nint lnfreqs\nint nlfreqs\nint nnlvsrcs\nint nlnvsrcs\nint nnanodes\nint nexnodes\nint nbanodes\n\n## Detailed Description\n\nDefinition at line 1429 of file hbsolver.cpp.\n\n## Constructor & Destructor Documentation\n\n qucs::hbsolver::hbsolver ( char * n )\n\nDefinition at line 72 of file hbsolver.cpp.\n\n qucs::hbsolver::hbsolver ( hbsolver & o )\n\nDefinition at line 126 of file hbsolver.cpp.\n\n qucs::hbsolver::~hbsolver ( )\n\nDefinition at line 85 of file hbsolver.cpp.\n\n## Member Function Documentation\n\n qucs::hbsolver::ACREATOR ( hbsolver )\n int qucs::hbsolver::assignNodes ( ptrlist< circuit > circuits, strlist * nodes, int offset = `0` )\n\nDefinition at line 532 of file hbsolver.cpp.\n\n int qucs::hbsolver::assignVoltageSources ( ptrlist< circuit > circuits )\n\nDefinition at line 520 of file hbsolver.cpp.\n\n void qucs::hbsolver::calc ( hbsolver * self ) ` [static]`\n\nDefinition at line 300 of file hbsolver.cpp.\n\n void qucs::hbsolver::calcConstantCurrent ( void )\n\nDefinition at line 874 of file hbsolver.cpp.\n\n void qucs::hbsolver::calcJacobian ( void )\n\nDefinition at line 1208 of file hbsolver.cpp.\n\n int qucs::hbsolver::calcOrder ( int n )\n\nDefinition at line 367 of file hbsolver.cpp.\n\n int qucs::hbsolver::checkBalance ( void )\n\nDefinition at line 928 of file hbsolver.cpp.\n\n strlist * qucs::hbsolver::circuitNodes ( ptrlist< circuit > circuits )\n\nDefinition at line 464 of file hbsolver.cpp.\n\n void qucs::hbsolver::collectFrequencies ( void )\n\nDefinition at line 376 of file hbsolver.cpp.\n\n void qucs::hbsolver::createMatrixLinearA ( void )\n\nDefinition at line 569 of file hbsolver.cpp.\n\n void qucs::hbsolver::createMatrixLinearY ( void )\n\nDefinition at line 716 of file hbsolver.cpp.\n\n nr_complex_t qucs::hbsolver::excitationZ ( tvector< nr_complex_t > * V, circuit * vs, int f )\n\nDefinition at line 860 of file hbsolver.cpp.\n\n void qucs::hbsolver::expandFrequencies ( nr_double_t f, int n )\n\nDefinition at line 334 of file hbsolver.cpp.\n\n tmatrix< nr_complex_t > qucs::hbsolver::expandMatrix ( tmatrix< nr_complex_t > M, int nodes )\n\nDefinition at line 1249 of file hbsolver.cpp.\n\n tvector< nr_complex_t > qucs::hbsolver::expandVector ( tvector< nr_complex_t > V, int nodes )\n\nDefinition at line 1228 of file hbsolver.cpp.\n\n tmatrix< nr_complex_t > qucs::hbsolver::extendMatrixLinear ( tmatrix< nr_complex_t > M, int nodes )\n\nDefinition at line 1302 of file hbsolver.cpp.\n\n void qucs::hbsolver::fillMatrixLinearA ( tmatrix< nr_complex_t > * A, int f )\n\nDefinition at line 603 of file hbsolver.cpp.\n\n void qucs::hbsolver::fillMatrixLinearExtended ( tmatrix< nr_complex_t > * Y, tvector< nr_complex_t > * I )\n\nDefinition at line 1318 of file hbsolver.cpp.\n\n void qucs::hbsolver::fillMatrixNonLinear ( tmatrix< nr_complex_t > * jg, tmatrix< nr_complex_t > * jq, tvector< nr_complex_t > * ig, tvector< nr_complex_t > * fq, tvector< nr_complex_t > * ir, tvector< nr_complex_t > * qr, int f )\n\nDefinition at line 964 of file hbsolver.cpp.\n\n void qucs::hbsolver::finalSolution ( void )\n\nDefinition at line 1349 of file hbsolver.cpp.\n\n void qucs::hbsolver::getNodeLists ( void )\n\nDefinition at line 478 of file hbsolver.cpp.\n\n void qucs::hbsolver::initDC ( void )\n\nDefinition at line 318 of file hbsolver.cpp.\n\n void qucs::hbsolver::initHB ( void )\n\nDefinition at line 309 of file hbsolver.cpp.\n\n void qucs::hbsolver::invertMatrix ( tmatrix< nr_complex_t > * A, tmatrix< nr_complex_t > * H )\n\nDefinition at line 654 of file hbsolver.cpp.\n\n bool qucs::hbsolver::isExcitation ( circuit * c )\n\nDefinition at line 326 of file hbsolver.cpp.\n\n void qucs::hbsolver::loadMatrices ( void )\n\nDefinition at line 1072 of file hbsolver.cpp.\n\n void qucs::hbsolver::MatrixFFT ( tmatrix< nr_complex_t > * M )\n\nDefinition at line 1130 of file hbsolver.cpp.\n\n void qucs::hbsolver::prepareLinear ( void )\n\nDefinition at line 551 of file hbsolver.cpp.\n\n void qucs::hbsolver::prepareNonLinear ( void )\n\nDefinition at line 995 of file hbsolver.cpp.\n\n void qucs::hbsolver::saveNodeVoltages ( circuit * cir, int f )\n\nDefinition at line 1060 of file hbsolver.cpp.\n\n void qucs::hbsolver::saveResults ( void )\n\nDefinition at line 1395 of file hbsolver.cpp.\n\n int qucs::hbsolver::solve ( void ) ` [virtual]`\n\nplacehoder for solution function\n\nVirtual solution function intended to be overridden by the inheiriting class's solution function.\n\nReimplemented from qucs::analysis.\n\nDefinition at line 147 of file hbsolver.cpp.\n\n void qucs::hbsolver::solveHB ( void )\n\nDefinition at line 1177 of file hbsolver.cpp.\n\n void qucs::hbsolver::solveVoltages ( void )\n\nDefinition at line 1275 of file hbsolver.cpp.\n\n void qucs::hbsolver::splitCircuits ( void )\n\nDefinition at line 445 of file hbsolver.cpp.\n\n void qucs::hbsolver::VectorFFT ( tvector< nr_complex_t > * V, int isign = `1` )\n\nDefinition at line 1096 of file hbsolver.cpp.\n\n void qucs::hbsolver::VectorIFFT ( tvector< nr_complex_t > * V, int isign = `1` )\n\nDefinition at line 1124 of file hbsolver.cpp.\n\n## Field Documentation\n\n tmatrix* qucs::hbsolver::A` [private]`\n\nDefinition at line 102 of file hbsolver.h.\n\n strlist * qucs::hbsolver::banodes` [private]`\n\nDefinition at line 96 of file hbsolver.h.\n\n std::vector qucs::hbsolver::dfreqs` [private]`\n\nDefinition at line 94 of file hbsolver.h.\n\n ptrlist qucs::hbsolver::excitations` [private]`\n\nDefinition at line 97 of file hbsolver.h.\n\n strlist * qucs::hbsolver::exnodes` [private]`\n\nDefinition at line 96 of file hbsolver.h.\n\n tvector* qucs::hbsolver::FQ` [private]`\n\nDefinition at line 112 of file hbsolver.h.\n\n nr_double_t qucs::hbsolver::frequency` [private]`\n\nDefinition at line 95 of file hbsolver.h.\n\n tvector* qucs::hbsolver::FV` [private]`\n\nDefinition at line 115 of file hbsolver.h.\n\n qucs::hbsolver::HB\n\nDefinition at line 1430 of file hbsolver.cpp.\n\n tvector* qucs::hbsolver::IC` [private]`\n\nDefinition at line 124 of file hbsolver.h.\n\n tvector* qucs::hbsolver::IG` [private]`\n\nDefinition at line 111 of file hbsolver.h.\n\n tvector* qucs::hbsolver::IL` [private]`\n\nDefinition at line 116 of file hbsolver.h.\n\n tvector* qucs::hbsolver::IN` [private]`\n\nDefinition at line 117 of file hbsolver.h.\n\n tvector* qucs::hbsolver::IR` [private]`\n\nDefinition at line 119 of file hbsolver.h.\n\n tvector* qucs::hbsolver::IS` [private]`\n\nDefinition at line 125 of file hbsolver.h.\n\n tmatrix* qucs::hbsolver::JF` [private]`\n\nDefinition at line 110 of file hbsolver.h.\n\n tmatrix* qucs::hbsolver::JG` [private]`\n\nDefinition at line 109 of file hbsolver.h.\n\n tmatrix* qucs::hbsolver::JQ` [private]`\n\nDefinition at line 108 of file hbsolver.h.\n\n ptrlist qucs::hbsolver::lincircuits` [private]`\n\nDefinition at line 99 of file hbsolver.h.\n\n int qucs::hbsolver::lnfreqs` [private]`\n\nDefinition at line 130 of file hbsolver.h.\n\n strlist * qucs::hbsolver::lnnodes` [private]`\n\nDefinition at line 96 of file hbsolver.h.\n\n tmatrix* qucs::hbsolver::NA` [private]`\n\nDefinition at line 106 of file hbsolver.h.\n\n strlist * qucs::hbsolver::nanodes` [private]`\n\nDefinition at line 96 of file hbsolver.h.\n\n int qucs::hbsolver::nbanodes` [private]`\n\nDefinition at line 137 of file hbsolver.h.\n\n int* qucs::hbsolver::ndfreqs` [private]`\n\nDefinition at line 93 of file hbsolver.h.\n\n std::vector qucs::hbsolver::negfreqs` [private]`\n\nDefinition at line 90 of file hbsolver.h.\n\n int qucs::hbsolver::nexnodes` [private]`\n\nDefinition at line 136 of file hbsolver.h.\n\n int qucs::hbsolver::nlfreqs` [private]`\n\nDefinition at line 131 of file hbsolver.h.\n\n strlist* qucs::hbsolver::nlnodes` [private]`\n\nDefinition at line 96 of file hbsolver.h.\n\n int qucs::hbsolver::nlnvsrcs` [private]`\n\nDefinition at line 133 of file hbsolver.h.\n\n int qucs::hbsolver::nnanodes` [private]`\n\nDefinition at line 135 of file hbsolver.h.\n\n int qucs::hbsolver::nnlvsrcs` [private]`\n\nDefinition at line 132 of file hbsolver.h.\n\n ptrlist qucs::hbsolver::nolcircuits` [private]`\n\nDefinition at line 98 of file hbsolver.h.\n\n tvector* qucs::hbsolver::OM` [private]`\n\nDefinition at line 122 of file hbsolver.h.\n\n std::vector qucs::hbsolver::posfreqs` [private]`\n\nDefinition at line 91 of file hbsolver.h.\n\nDefinition at line 1430 of file hbsolver.cpp.\n\nDefinition at line 1430 of file hbsolver.cpp.\n\nDefinition at line 1430 of file hbsolver.cpp.\n\n tvector* qucs::hbsolver::QR` [private]`\n\nDefinition at line 120 of file hbsolver.h.\n\n std::vector qucs::hbsolver::rfreqs` [private]`\n\nDefinition at line 92 of file hbsolver.h.\n\n tvector* qucs::hbsolver::RH` [private]`\n\nDefinition at line 121 of file hbsolver.h.\n\n int qucs::hbsolver::runs` [private]`\n\nReimplemented from qucs::analysis.\n\nDefinition at line 129 of file hbsolver.h.\n\n tvector* qucs::hbsolver::VP` [private]`\n\nDefinition at line 114 of file hbsolver.h.\n\n tvector* qucs::hbsolver::VS` [private]`\n\nDefinition at line 113 of file hbsolver.h.\n\n tvector* qucs::hbsolver::vs` [private]`\n\nDefinition at line 127 of file hbsolver.h.\n\n tvector* qucs::hbsolver::x` [private]`\n\nDefinition at line 126 of file hbsolver.h.\n\n tmatrix* qucs::hbsolver::Y` [private]`\n\nDefinition at line 101 of file hbsolver.h.\n\n tmatrix* qucs::hbsolver::YV` [private]`\n\nDefinition at line 105 of file hbsolver.h.\n\n tmatrix* qucs::hbsolver::Z` [private]`\n\nDefinition at line 103 of file hbsolver.h.\n\nThe documentation for this class was generated from the following files:"
]
| [
null,
"http://qucs.github.io/qucs-doxygen/qucs-core/structqucs_1_1hbsolver__inherit__graph.png",
null,
"http://qucs.github.io/qucs-doxygen/qucs-core/structqucs_1_1hbsolver__coll__graph.png",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.54264593,"math_prob":0.5549801,"size":11648,"snap":"2019-13-2019-22","text_gpt3_token_len":3812,"char_repetition_ratio":0.36688423,"word_repetition_ratio":0.12753037,"special_character_ratio":0.29859203,"punctuation_ratio":0.2678049,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9885408,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-05-24T17:07:05Z\",\"WARC-Record-ID\":\"<urn:uuid:feadb27c-88de-4618-b72c-0308927ed585>\",\"Content-Length\":\"110101\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:93fa8d80-5249-4603-b25b-8e95e4f1f445>\",\"WARC-Concurrent-To\":\"<urn:uuid:6c0730dc-11a5-426a-b504-edd82c1e3114>\",\"WARC-IP-Address\":\"185.199.109.153\",\"WARC-Target-URI\":\"http://qucs.github.io/qucs-doxygen/qucs-core/structqucs_1_1hbsolver.html\",\"WARC-Payload-Digest\":\"sha1:HBMGU2PLYIPDSLSQUCVUTY6RCH35WWMR\",\"WARC-Block-Digest\":\"sha1:T5WROXD3R7RXPMAKQPZQIAWP3EOS2M2P\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-22/CC-MAIN-2019-22_segments_1558232257699.34_warc_CC-MAIN-20190524164533-20190524190533-00091.warc.gz\"}"} |
http://www.2360j.com/jjjcyw/xcgz/202103/t20210324_97556.htm | [
"<track id=\"txn1u\"></track>\n\n• <td id=\"txn1u\"><ins id=\"txn1u\"></ins></td>\n\n1. ## 南昌轨道集团:打造国有企业党风廉政教育馆\n\n### 来源:江西省纪委省监委网站 发布时间:2021-03-24 19:21:00 分享 QQ 微信 QQ空间 新浪微博 腾讯微博 window._bd_share_config={\"common\":{\"bdSnsKey\":{\"tsina\":\"2078561600 \",\"tqq\":\"801099517\"},\"bdText\":\"\",\"bdMini\":\"1\",\"bdMiniList\":[\"qzone\",\"tsina\",\"tqq\",\"sqq\",\"weixin\"],\"bdPic\":\"\",\"bdStyle\":\"0\",\"bdSize\":\"\"},\"share\":{}}; window._bd_share_main?window._bd_share_is_recently_loaded=!0:(window._bd_share_is_recently_loaded=!1,window._bd_share_main={version:\"2.0\",jscfg:{domain:{staticUrl:\"http://bdimg.share.baidu.com/\"}}}),!window._bd_share_is_recently_loaded&&(window._bd_share_main.F=window._bd_share_main.F||function(e,t){function r(e,t){if(e instanceof Array){for(var n=0,r=e.length;n<r;n++)if(t.call(e[n],e[n],n)===!1)return}else for(var n in e)if(e.hasOwnProperty(n)&&t.call(e[n],e[n],n)===!1)return}function i(e,t){this.svnMod=\"\",this.name=null,this.path=e,this.fn=null,this.exports={},this._loaded=!1,this._requiredStack=[],this._readyStack=[],i.cache[this.path]=this;if(t&&t.charAt(0)!==\".\"){var n=t.split(\":\");n.length>1?(this.svnMod=n,this.name=n):this.name=t}this.svnMod||(this.svnMod=this.path.split(\"/js/\").substr(1)),this.type=\"js\",this.getKey=function(){return this.svnMod+\":\"+this.name},this._info={}}function o(e,t){var n=t==\"css\",r=document.createElement(n?\"link\":\"script\");return r}function u(t,n,r,i){function c(){c.isCalled||(c.isCalled=!0,clearTimeout(l),r&&r())}var s=o(t,n);s.nodeName===\"SCRIPT\"?a(s,c):f(s,c);var l=setTimeout(function(){throw new Error(\"load \"+n+\" timeout : \"+t)},e._loadScriptTimeout||1e4),h=document.getElementsByTagName(\"head\");n==\"css\"?(s.rel=\"stylesheet\",s.href=t,h.appendChild(s)):(s.type=\"text/javascript\",s.src=t,h.insertBefore(s,h.firstChild))}function a(e,t){e.onload=e.onerror=e.onreadystatechange=function(){if(/loaded|complete|undefined/.test(e.readyState)){e.onload=e.onerror=e.onreadystatechange=null;if(e.parentNode){e.parentNode.removeChild(e);try{if(e.clearAttributes)e.clearAttributes();else for(var n in e)delete e[n]}catch(r){}}e=undefined,t&&t()}}}function f(e,t){e.attachEvent?e.attachEvent(\"onload\",t):setTimeout(function(){l(e,t)},0)}function l(e,t){if(t&&t.isCalled)return;var n,r=navigator.userAgent,i=~r.indexOf(\"AppleWebKit\"),s=~r.indexOf(\"Opera\");if(i||s)e.sheet&&(n=!0);else if(e.sheet)try{e.sheet.cssRules&&(n=!0)}catch(o){if(o.name===\"SecurityError\"||o.name===\"NS_ERROR_DOM_SECURITY_ERR\")n=!0}setTimeout(function(){n?t&&t():l(e,t)},1)}var n=\"api\";e.each=r,i.currentPath=\"\",i.loadedPaths={},i.loadingPaths={},i.cache={},i.paths={},i.handlers=[],i.moduleFileMap={},i.requiredPaths={},i.lazyLoadPaths={},i.services={},i.isPathsLoaded=function(e){var t=!0;return r(e,function(e){if(!(e in i.loadedPaths))return t=!1}),t},i.require=function(e,t){e.search(\":\")<0&&(t||(t=n,i.currentPath&&(t=i.currentPath.split(\"/js/\").substr(1))),e=t+\":\"+e);var r=i.get(e,i.currentPath);if(r.type==\"css\")return;if(r){if(!r._inited){r._inited=!0;var s,o=r.svnMod;if(s=r.fn.call(null,function(e){return i.require(e,o)},r.exports,new h(r.name,o)))r.exports=s}return r.exports}throw new Error('Module \"'+e+'\" not found!')},i.baseUrl=t?t[t.length-1]==\"/\"?t:t+\"/\":\"/\",i.getBasePath=function(e){var t,n;return(n=e.indexOf(\"/\"))!==-1&&(t=e.slice(0,n)),t&&t in i.paths?i.paths[t]:i.baseUrl},i.getJsPath=function(t,r){if(t.charAt(0)===\".\"){r=r.replace(/\\/[^\\/]+\\/[^\\/]+\\$/,\"\"),t.search(\"./\")===0&&(t=t.substr(2));var s=0;t=t.replace(/^(\\.\\.\\/)+/g,function(e){return s=e.length/3,\"\"});while(s>0)r=r.substr(0,r.lastIndexOf(\"/\")),s--;return r+\"/\"+t+\"/\"+t.substr(t.lastIndexOf(\"/\")+1)+\".js\"}var o,u,a,f,l,c;if(t.search(\":\")>=0){var h=t.split(\":\");o=h,t=h}else r&&(o=r.split(\"/\"));o=o||n;var p=/\\.css(?:\\?|\\$)/i.test(t);p&&e._useConfig&&i.moduleFileMap[o][t]&&(t=i.moduleFileMap[o][t]);var t=l=t,d=i.getBasePath(t);return(a=t.indexOf(\"/\"))!==-1&&(u=t.slice(0,a),f=t.lastIndexOf(\"/\"),l=t.slice(f+1)),u&&u in i.paths&&(t=t.slice(a+1)),c=d+o+\"/js/\"+t+\".js\",c},i.get=function(e,t){var n=i.getJsPath(e,t);return i.cache[n]?i.cache[n]:new i(n,e)},i.prototype={load:function(){i.loadingPaths[this.path]=!0;var t=this.svnMod||n,r=window._bd_share_main.jscfg.domain.staticUrl+\"static/\"+t+\"/\",o=this,u=/\\.css(?:\\?|\\$)/i.test(this.name);this.type=u?\"c_ss\":\"js\";if (this.name=='weixin_popup.css'){this.type='css';}if (this.name=='share_style0_16.css'){this.type='css';this.name='share_style0_24.css';}var a=\"/\"+this.type+\"/\"+i.moduleFileMap[t][this.name];e._useConfig&&i.moduleFileMap[t][this.name]?r+=this.type+\"/\"+i.moduleFileMap[t][this.name]:r+=this.type+\"/\"+this.name+(u?\"\":\".js\");if(e._firstScreenCSS.indexOf(this.name)>0||e._useConfig&&a==e._firstScreenJS)o._loaded=!0,o.ready();else{var f=(new Date).getTime();s.create({src:r,type:this.type,loaded:function(){o._info.loadedTime=(new Date).getTime()-f,o.type==\"css\"&&(o._loaded=!0,o.ready())}})}},lazyLoad:function(){var e=this.name;if(i.lazyLoadPaths[this.getKey()])this.define(),delete i.lazyLoadPaths[this.getKey()];else{if(this.exist())return;i.requiredPaths[this.getKey()]=!0,this.load()}},ready:function(e,t){var n=t?this._requiredStack:this._readyStack;if(e)this._loaded?e():n.push(e);else{i.loadedPaths[this.path]=!0,delete i.loadingPaths[this.path],this._loaded=!0,i.currentPath=this.path;if(this._readyStack&&this._readyStack.length>0){this._inited=!0;var s,o=this.svnMod;this.fn&&(s=this.fn.call(null,function(e){return i.require(e,o)},this.exports,new h(this.name,o)))&&(this.exports=s),r(this._readyStack,function(e){e()}),delete this._readyStack}this._requiredStack&&this._requiredStack.length>0&&(r(this._requiredStack,function(e){e()}),delete this._requiredStack)}},define:function(){var e=this,t=this.deps,n=this.path,s=[];t||(t=this.getDependents()),t.length?(r(t,function(t){s.push(i.getJsPath(t,e.path))}),r(t,function(t){var n=i.get(t,e.path);n.ready(function(){i.isPathsLoaded(s)&&e.ready()},!0),n.lazyLoad()})):this.ready()},exist:function(){var e=this.path;return e in i.loadedPaths||e in i.loadingPaths},getDependents:function(){var e=this,t=this.fn.toString(),n=t.match(/function\\s*\\(([^,]*),/i),i=new RegExp(\"[^.]\\\\b\"+n+\"\\\\(\\\\s*('|\\\")([^()\\\"']*)('|\\\")\\\\s*\\\\)\",\"g\"),s=t.match(i),o=[];return s&&r(s,function(e,t){o[t]=e.substr(n.length+3).slice(0,-2)}),o}};var s={create:function(e){var t=e.src;if(t in this._paths)return;this._paths[t]=!0,r(this._rules,function(e){t=e.call(null,t)}),u(t,e.type,e.loaded)},_paths:{},_rules:[],addPathRule:function(e){this._rules.push(e)}};e.version=\"1.0\",e.use=function(e,t){typeof e==\"string\"&&(e=[e]);var n=[],s=[];r(e,function(e,t){s[t]=!1}),r(e,function(e,o){var u=i.get(e),a=u._loaded;u.ready(function(){var e=u.exports||{};e._INFO=u._info,e._INFO&&(e._INFO.isNew=!a),n[o]=e,s[o]=!0;var i=!0;r(s,function(e){if(e===!1)return i=!1}),t&&i&&t.apply(null,n)}),u.lazyLoad()})},e.module=function(e,t,n){var r=i.get(e);r.fn=t,r.deps=n,i.requiredPaths[r.getKey()]?r.define():i.lazyLoadPaths[r.getKey()]=!0},e.pathRule=function(e){s.addPathRule(e)},e._addPath=function(e,t){t.slice(-1)!==\"/\"&&(t+=\"/\");if(e in i.paths)throw new Error(e+\" has already in Module.paths\");i.paths[e]=t};var c=n;e._setMod=function(e){c=e||n},e._fileMap=function(t,n){if(typeof t==\"object\")r(t,function(t,n){e._fileMap(n,t)});else{var s=c;typeof n==\"string\"&&(n=[n]),t=t.indexOf(\"js/\")==1?t.substr(4):t,t=t.indexOf(\"css/\")==1?t.substr(5):t;var o=i.moduleFileMap[s];o||(o={}),r(n,function(e){o[e]||(o[e]=t)}),i.moduleFileMap[s]=o}},e._eventMap={},e.call=function(t,n,r){var i=[];for(var s=2,o=arguments.length;s<o;s++)i.push(arguments[s]);e.use(t,function(e){var t=n.split(\".\");for(var r=0,s=t.length;r<s;r++)e=e[t[r]];e&&e.apply(this,i)})},e._setContext=function(e){typeof e==\"object\"&&r(e,function(e,t){h.prototype[t]=i.require(e)})},e._setContextMethod=function(e,t){h.prototype[e]=t};var h=function(e,t){this.modName=e,this.svnMod=t};return h.prototype={domain:window._bd_share_main.jscfg.domain,use:function(t,n){typeof t==\"string\"&&(t=[t]);for(var r=t.length-1;r>=0;r--)t[r]=this.svnMod+\":\"+t[r];e.use(t,n)}},e._Context=h,e.addLog=function(t,n){e.use(\"lib/log\",function(e){e.defaultLog(t,n)})},e.fire=function(t,n,r){e.use(\"lib/mod_evt\",function(e){e.fire(t,n,r)})},e._defService=function(e,t){if(e){var n=i.services[e];n=n||{},r(t,function(e,t){n[t]=e}),i.services[e]=n}},e.getService=function(t,n,r){var s=i.services[t];if(!s)throw new Error(t+\" mod didn't define any services\");var o=s[n];if(!o)throw new Error(t+\" mod didn't provide service \"+n);e.use(t+\":\"+o,r)},e}({})),!window._bd_share_is_recently_loaded&&window._bd_share_main.F.module(\"base/min_tangram\",function(e,t){var n={};n.each=function(e,t,n){var r,i,s,o=e.length;if(\"function\"==typeof t)for(s=0;s<o;s++){i=e[s],r=t.call(n||e,s,i);if(r===!1)break}return e};var r=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e};n.extend=function(){var e=arguments;for(var t=1,n=arguments.length;t<n;t++)r(e,arguments[t]);return e},n.domready=function(e,t){t=t||document;if(/complete/.test(t.readyState))e();else if(t.addEventListener)\"interactive\"==t.readyState?e():t.addEventListener(\"DOMContentLoaded\",e,!1);else{var n=function(){n=new Function,e()};void function(){try{t.body.doScroll(\"left\")}catch(e){return setTimeout(arguments.callee,10)}n()}(),t.attachEvent(\"onreadystatechange\",function(){\"complete\"==t.readyState&&n()})}},n.isArray=function(e){return\"[object Array]\"==Object.prototype.toString.call(e)},t.T=n}),!window._bd_share_is_recently_loaded&&window._bd_share_main.F.module(\"base/class\",function(e,t,n){var r=e(\"base/min_tangram\").T;t.BaseClass=function(){var e=this,t={};e.on=function(e,n){var r=t[e];r||(r=t[e]=[]),r.push(n)},e.un=function(e,n){if(!e){t={};return}var i=t[e];i&&(n?r.each(i,function(e,t){if(t==n)return i.splice(e,1),!1}):t[e]=[])},e.fire=function(n,i){var s=t[n];s&&(i=i||{},r.each(s,function(t,n){i._result=n.call(e,r.extend({_ctx:{src:e}},i))}))}};var i={};i.create=function(e,n){return n=n||t.BaseClass,function(){n.apply(this,arguments);var i=r.extend({},this);e.apply(this,arguments),this._super=i}},t.Class=i}),!window._bd_share_is_recently_loaded&&window._bd_share_main.F.module(\"conf/const\",function(e,t,n){t.CMD_ATTR=\"shareID\",t.CONFIG_TAG_ATTR=\"data-tag\",t.URLS={likeSetUrl:\"http://like.baidu.com/set\",commitUrl:\"http://s.share.baidu.com/commit\",jumpUrl:\"http://s.share.baidu.com\",mshareUrl:\"http://s.share.baidu.com/mshare\",emailUrl:\"http://s.share.baidu.com/sendmail\",nsClick:\"http://nsclick.baidu.com/v.gif\",backUrl:\"http://s.share.baidu.com/back\",shortUrl:\"http://dwz.cn/v2cut.php\"}}),!window._bd_share_is_recently_loaded&&function(){window._bd_share_main.F._setMod(\"api\"),window._bd_share_main.F._fileMap({\"/js/share.js?v=da893e3e.js\":[\"conf/define\",\"base/fis\",\"base/tangrammin\",\"base/class.js\",\"conf/define.js\",\"conf/const.js\",\"config\",\"share/api_base.js\",\"view/view_base.js\",\"start/router.js\",\"component/comm_tools.js\",\"trans/trans.js\"],\"/js/base/tangram.js?v=37768233.js\":[\"base/tangram\"],\"/js/view/share_view.js?v=3ae6026d.js\":[\"view/share_view\"],\"/js/view/slide_view.js?v=05e00d62.js\":[\"view/slide_view\"],\"/js/view/like_view.js?v=df3e0eca.js\":[\"view/like_view\"],\"/js/view/select_view.js?v=6f522a91.js\":[\"view/select_view\"],\"/js/trans/data.js?v=17af2bd2.js\":[\"trans/data\"],\"/js/trans/logger.js?v=4e448e64.js\":[\"trans/logger\"],\"/js/trans/trans_bdxc.js?v=7ac21555.js\":[\"trans/trans_bdxc\"],\"/js/trans/trans_bdysc.js?v=fc21acaa.js\":[\"trans/trans_bdysc\"],\"/js/trans/trans_weixin.js?v=11247b13.js\":[\"trans/trans_weixin\"],\"/js/share/combine_api.js?v=8d37a7b3.js\":[\"share/combine_api\"],\"/js/share/like_api.js?v=d3693f0a.js\":[\"share/like_api\"],\"/js/share/likeshare.js?v=e1f4fbf1.js\":[\"share/likeshare\"],\"/js/share/share_api.js?v=226108fe.js\":[\"share/share_api\"],\"/js/share/slide_api.js?v=ec14f516.js\":[\"share/slide_api\"],\"/js/component/animate.js?v=5b737477.js\":[\"component/animate\"],\"/js/component/anticheat.js?v=44b9b245.js\":[\"component/anticheat\"],\"/js/component/partners.js?v=0923e848.js\":[\"component/partners\"],\"/js/component/pop_base.js?v=36f92e70.js\":[\"component/pop_base\"],\"/js/component/pop_dialog.js?v=d479767d.js\":[\"component/pop_dialog\"],\"/js/component/pop_popup.js?v=4387b4e1.js\":[\"component/pop_popup\"],\"/js/component/pop_popup_slide.js?v=b16a1f10.js\":[\"component/pop_popup_slide\"],\"/js/component/qrcode.js?v=d69754a9.js\":[\"component/qrcode\"],\"\":[\"\"],\"\":[\"\"],\"\":[\"\"],\"\":[\"\"],\"\":[\"\"],\"\":[\"\"],\"\":[\"\"],\"\":[\"\"],\"\":[\"\"],\"\":[\"\"]}),window._bd_share_main.F._loadScriptTimeout=15e3,window._bd_share_main.F._useConfig=!0,window._bd_share_main.F._firstScreenCSS=\"\",window._bd_share_main.F._firstScreenJS=\"\"}(),!window._bd_share_is_recently_loaded&&window._bd_share_main.F.use(\"base/min_tangram\",function(e){function n(e,t,n){var r=new e(n);r.setView(new t(n)),r.init(),n&&n._handleId&&(_bd_share_main.api=_bd_share_main.api||{},_bd_share_main.api[n._handleId]=r)}function r(e,r){window._bd_share_main.F.use(e,function(e,i){t.isArray(r)?t.each(r,function(t,r){n(e.Api,i.View,r)}):n(e.Api,i.View,r)})}function i(e){var n=e.common||window._bd_share_config&&_bd_share_config.common||{},r={like:{type:\"like\"},share:{type:\"share\",bdStyle:0,bdMini:2,bdSign:\"on\"},slide:{type:\"slide\",bdStyle:\"1\",bdMini:2,bdImg:0,bdPos:\"right\",bdTop:100,bdSign:\"on\"},image:{viewType:\"list\",viewStyle:\"0\",viewPos:\"top\",viewColor:\"black\",viewSize:\"16\",viewList:[\"qzone\",\"tsina\",\"huaban\",\"tqq\",\"renren\"]},selectShare:{type:\"select\",bdStyle:0,bdMini:2,bdSign:\"on\"}},i={share:{__cmd:\"\",__buttonType:\"\",__type:\"\",__element:null},slide:{__cmd:\"\",__buttonType:\"\",__type:\"\",__element:null},image:{__cmd:\"\",__buttonType:\"\",__type:\"\",__element:null}};return t.each([\"like\",\"share\",\"slide\",\"image\",\"selectShare\"],function(s,o){e[o]&&(t.isArray(e[o])&&e[o].length>0?t.each(e[o],function(s,u){e[o][s]=t.extend({},r[o],n,u,i[o])}):e[o]=t.extend({},r[o],n,e[o],i[o]))}),e}var t=e.T;_bd_share_main.init=function(e){e=e||window._bd_share_config||{share:{}};if(e){var t=i(e);t.like&&r([\"share/like_api\",\"view/like_view\"],t.like),t.share&&r([\"share/share_api\",\"view/share_view\"],t.share),t.slide&&r([\"share/slide_api\",\"view/slide_view\"],t.slide),t.selectShare&&r([\"share/select_api\",\"view/select_view\"],t.selectShare),t.image&&r([\"share/image_api\",\"view/image_view\"],t.image)}},window._bd_share_main._LogPoolV2=[],window._bd_share_main.n1=(new Date).getTime(),t.domready(function(){window._bd_share_main.n2=(new Date).getTime()+1e3,_bd_share_main.init(),setTimeout(function(){window._bd_share_main.F.use(\"trans/logger\",function(e){e.nsClick(),e.back(),e.duration()})},3e3)})}),!window._bd_share_is_recently_loaded&&window._bd_share_main.F.module(\"component/comm_tools\",function(e,t){var n=function(){var e=window.location||document.location||{};return e.href||\"\"},r=function(e,t){var n=e.length,r=\"\";for(var i=1;i<=t;i++){var s=Math.floor(n*Math.random());r+=e.charAt(s)}return r},i=function(){var e=(+(new Date)).toString(36),t=r(\"0123456789abcdefghijklmnopqrstuvwxyz\",3);return e+t};t.getLinkId=i,t.getPageUrl=n}),!window._bd_share_is_recently_loaded&&window._bd_share_main.F.module(\"trans/trans\",function(e,t){var n=e(\"component/comm_tools\"),r=e(\"conf/const\").URLS,i=function(){window._bd_share_main.F.use(\"base/tangram\",function(e){var t=e.T;t.cookie.get(\"bdshare_firstime\")==null&&t.cookie.set(\"bdshare_firstime\",new Date*1,{path:\"/\",expires:(new Date).setFullYear(2022)-new Date})})},s=function(e){var t=e.bdUrl||n.getPageUrl();return t=t.replace(/\\'/g,\"%27\").replace(/\\\"/g,\"%22\"),t},o=function(e){var t=(new Date).getTime()+3e3,r={click:1,url:s(e),uid:e.bdUid||\"0\",to:e.__cmd,type:\"text\",pic:e.bdPic||\"\",title:(e.bdText||document.title).substr(0,300),key:(e.bdSnsKey||{})[e.__cmd]||\"\",desc:e.bdDesc||\"\",comment:e.bdComment||\"\",relateUid:e.bdWbuid||\"\",searchPic:e.bdSearchPic||0,sign:e.bdSign||\"on\",l:window._bd_share_main.n1.toString(32)+window._bd_share_main.n2.toString(32)+t.toString(32),linkid:n.getLinkId(),firstime:a(\"bdshare_firstime\")||\"\"};switch(e.__cmd){case\"copy\":l(r);break;case\"print\":c();break;case\"bdxc\":h();break;case\"bdysc\":p(r);break;case\"weixin\":d(r);break;default:u(e,r)}window._bd_share_main.F.use(\"trans/logger\",function(t){t.commit(e,r)})},u=function(e,t){var n=r.jumpUrl;e.__cmd==\"mshare\"?n=r.mshareUrl:e.__cmd==\"mail\"&&(n=r.emailUrl);var i=n+\"?\"+f(t);window.open(i)},a=function(e){if(e){var t=new RegExp(\"(^| )\"+e+\"=([^;]*)(;|\\$)\"),n=t.exec(document.cookie);if(n)return decodeURIComponent(n||null)}},f=function(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+\"=\"+encodeURIComponent(e[n]));return t.join(\"&\").replace(/%20/g,\"+\")},l=function(e){window._bd_share_main.F.use(\"base/tangram\",function(t){var r=t.T;r.browser.ie?(window.clipboardData.setData(\"text\",document.title+\" \"+(e.bdUrl||n.getPageUrl())),alert(\"\\u6807\\u9898\\u548c\\u94fe\\u63a5\\u590d\\u5236\\u6210\\u529f\\uff0c\\u60a8\\u53ef\\u4ee5\\u63a8\\u8350\\u7ed9QQ/MSN\\u4e0a\\u7684\\u597d\\u53cb\\u4e86\\uff01\")):window.prompt(\"\\u60a8\\u4f7f\\u7528\\u7684\\u662f\\u975eIE\\u6838\\u5fc3\\u6d4f\\u89c8\\u5668\\uff0c\\u8bf7\\u6309\\u4e0b Ctrl+C \\u590d\\u5236\\u4ee3\\u7801\\u5230\\u526a\\u8d34\\u677f\",document.title+\" \"+(e.bdUrl||n.getPageUrl()))})},c=function(){window.print()},h=function(){window._bd_share_main.F.use(\"trans/trans_bdxc\",function(e){e&&e.run()})},p=function(e){window._bd_share_main.F.use(\"trans/trans_bdysc\",function(t){t&&t.run(e)})},d=function(e){window._bd_share_main.F.use(\"trans/trans_weixin\",function(t){t&&t.run(e)})},v=function(e){o(e)};t.run=v,i()});\n\n“教育馆内容丰富,教育方式多样,让我既学到了党纪法规知识,又受到了警醒教育,进一步强化了廉洁从业意识。”日前,南昌轨道集团一名党员干部在参观运营分公司党风廉政教育馆后感慨地说道。\n\n为加强国有企业党风廉政建设,落实国有企业廉洁教育需求,近期,南昌轨道集团运营分公司结合工作实际,打造了占地260余平米的党风廉政教育馆,进一步丰富集团党风廉政建设教育资源,拓宽教育渠道,让广大党员干部能随时接受党史、廉政教育。\n\n教育馆设置序厅、多媒体展示、旗帜高举抓党建、反腐倡廉在路上,南昌地铁运营等板块,通过数字沙盘、党员电教室等,多角度全方位展示廉政知识及典型案例。\n\n据悉,该集团纪委始终将深化廉政教育作为重点工作来抓,充分利用自身资源打造出廉政专列、廉文化主题站、红色家书展示站,让集团广大干部员工在潜移默化中受到教育。\n\n今年,该集团还将持续丰富教育形式,通过打造升级版廉政专列、征集廉政文化平台、开展党纪法规知识竞赛、开设廉政微阅读区等活动,不断强化集团干部员工廉政从业意识。(南昌轨道集团运营分公司纪委)\n\n人人揉揉香蕉大免费,韩国免费无删减无遮挡免费漫画,αv天堂在线观看免费,西西人体www44rt大胆高清 网站地图"
]
| [
null
]
| {"ft_lang_label":"__label__zh","ft_lang_prob":0.95675284,"math_prob":0.90237135,"size":448,"snap":"2021-21-2021-25","text_gpt3_token_len":589,"char_repetition_ratio":0.083333336,"word_repetition_ratio":0.0,"special_character_ratio":0.116071425,"punctuation_ratio":0.0,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9834698,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-06-14T19:05:24Z\",\"WARC-Record-ID\":\"<urn:uuid:a652d6f8-bf21-4b56-9f6d-22838dce731d>\",\"Content-Length\":\"39399\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:424dc415-473e-4fda-a48e-f9a1669c913e>\",\"WARC-Concurrent-To\":\"<urn:uuid:b32e2f48-08f9-4701-95da-87e4ab65761d>\",\"WARC-IP-Address\":\"154.7.16.214\",\"WARC-Target-URI\":\"http://www.2360j.com/jjjcyw/xcgz/202103/t20210324_97556.htm\",\"WARC-Payload-Digest\":\"sha1:ASR4PF4PFY45XSXWYNX6QFYLL3VLPRVV\",\"WARC-Block-Digest\":\"sha1:HDZWFGKUPAELTK7IQAHBMOMWKMUNH52Q\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-25/CC-MAIN-2021-25_segments_1623487613380.12_warc_CC-MAIN-20210614170602-20210614200602-00545.warc.gz\"}"} |
http://ixtrieve.fh-koeln.de/birds/litie/document/41098 | [
"Document (#41098)\n\nAuthor\nHaynes, D.\nTitle\nMetadata for information management and retrieval : understanding metadata and its use\nIssue\n2nd ed.\nImprint\nLondon : Facet Publishing\nYear\n2018\nPages\nXIV, 267 S\nIsbn\n978-1-85604-824-8\nAbstract\nThis new and updated second edition of a classic text provides a thought-provoking introduction to metadata for all library and information students and professionals. Metadata for Information Management and Retrieval has been fully revised by David Haynes to bring it up to date with new technology and standards. The new edition, containing new chapters on Metadata Standards and Encoding Schemes, assesses the current theory and practice of metadata and examines key developments in terms of both policy and technology. Coverage includes: an introduction to the concept of metadata a description of the main components of metadata systems and standards an overview of the scope of metadata and its applications a description of typical information retrieval issues in corporate and research environments a demonstration of ways in which metadata is used to improve retrieval a look at ways in which metadata is used to manage information consideration of the role of metadata in information governance.\nTheme\nRSWK\nInformationsmanagement / Information Retrieval / Metadatenmodell\nRVK\nAN 95000\nST 270\n\nSimilar documents (author)\n\n1. Haynes, D.: Idealist for Windows (1993) 5.68\n5.6798344 = sum of:\n5.6798344 = weight(author_txt:haynes in 7050) [ClassicSimilarity], result of:\n5.6798344 = fieldWeight in 7050, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n9.087735 = idf(docFreq=12, maxDocs=42306)\n0.625 = fieldNorm(doc=7050)\n\n2. Haynes, D.: Retention and control of electronic records (1994) 5.68\n5.6798344 = sum of:\n5.6798344 = weight(author_txt:haynes in 1050) [ClassicSimilarity], result of:\n5.6798344 = fieldWeight in 1050, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n9.087735 = idf(docFreq=12, maxDocs=42306)\n0.625 = fieldNorm(doc=1050)\n\n3. Haynes, S.L.: Too much information can leave you powerless : is today's information infirmation? (1996) 5.68\n5.6798344 = sum of:\n5.6798344 = weight(author_txt:haynes in 5688) [ClassicSimilarity], result of:\n5.6798344 = fieldWeight in 5688, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n9.087735 = idf(docFreq=12, maxDocs=42306)\n0.625 = fieldNorm(doc=5688)\n\n4. Haynes, C.: How to succeed in cyberspace : take yourself, your company or your organization online (1995) 5.68\n5.6798344 = sum of:\n5.6798344 = weight(author_txt:haynes in 1024) [ClassicSimilarity], result of:\n5.6798344 = fieldWeight in 1024, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n9.087735 = idf(docFreq=12, maxDocs=42306)\n0.625 = fieldNorm(doc=1024)\n\n5. Haynes, M.: Your Google algorithm cheat sheet : Panda, Penguin, and Hummingbird (2013) 5.68\n5.6798344 = sum of:\n5.6798344 = weight(author_txt:haynes in 4543) [ClassicSimilarity], result of:\n5.6798344 = fieldWeight in 4543, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n9.087735 = idf(docFreq=12, maxDocs=42306)\n0.625 = fieldNorm(doc=4543)\n\nSimilar documents (content)\n\n1. Miller, S.J.: Metadata for digital collections : a how-to-do-it manual (2011) 0.34\n0.3358641 = sum of:\n0.3358641 = product of:\n1.1995146 = sum of:\n0.010618357 = weight(abstract_txt:used in 1912) [ClassicSimilarity], result of:\n0.010618357 = score(doc=1912,freq=1.0), product of:\n0.057425745 = queryWeight, product of:\n1.0385886 = boost\n3.381136 = idf(docFreq=3910, maxDocs=42306)\n0.016353114 = queryNorm\n0.18490587 = fieldWeight in 1912, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n3.381136 = idf(docFreq=3910, maxDocs=42306)\n0.0546875 = fieldNorm(doc=1912)\n0.043808643 = weight(abstract_txt:encoding in 1912) [ClassicSimilarity], result of:\n0.043808643 = score(doc=1912,freq=1.0), product of:\n0.11724606 = queryWeight, product of:\n1.0493597 = boost\n6.8324027 = idf(docFreq=123, maxDocs=42306)\n0.016353114 = queryNorm\n0.37364703 = fieldWeight in 1912, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n6.8324027 = idf(docFreq=123, maxDocs=42306)\n0.0546875 = fieldNorm(doc=1912)\n0.021064308 = weight(abstract_txt:management in 1912) [ClassicSimilarity], result of:\n0.021064308 = score(doc=1912,freq=1.0), product of:\n0.09066365 = queryWeight, product of:\n1.304989 = boost\n4.248405 = idf(docFreq=1642, maxDocs=42306)\n0.016353114 = queryNorm\n0.23233464 = fieldWeight in 1912, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n4.248405 = idf(docFreq=1642, maxDocs=42306)\n0.0546875 = fieldNorm(doc=1912)\n0.03138845 = weight(abstract_txt:description in 1912) [ClassicSimilarity], result of:\n0.03138845 = score(doc=1912,freq=1.0), product of:\n0.11828101 = queryWeight, product of:\n1.4905541 = boost\n4.8525143 = idf(docFreq=897, maxDocs=42306)\n0.016353114 = queryNorm\n0.26537186 = fieldWeight in 1912, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n4.8525143 = idf(docFreq=897, maxDocs=42306)\n0.0546875 = fieldNorm(doc=1912)\n0.526808 = weight(subject_txt:metadatenmodell in 1912) [ClassicSimilarity], result of:\n0.526808 = score(doc=1912,freq=1.0), product of:\n0.24422306 = queryWeight, product of:\n1.5144975 = boost\n9.860925 = idf(docFreq=5, maxDocs=42306)\n0.016353114 = queryNorm\n2.1570773 = fieldWeight in 1912, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n9.860925 = idf(docFreq=5, maxDocs=42306)\n0.21875 = fieldNorm(doc=1912)\n0.049321245 = weight(abstract_txt:introduction in 1912) [ClassicSimilarity], result of:\n0.049321245 = score(doc=1912,freq=1.0), product of:\n0.15986662 = queryWeight, product of:\n1.7328825 = boost\n5.641417 = idf(docFreq=407, maxDocs=42306)\n0.016353114 = queryNorm\n0.30851498 = fieldWeight in 1912, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n5.641417 = idf(docFreq=407, maxDocs=42306)\n0.0546875 = fieldNorm(doc=1912)\n0.51650566 = weight(abstract_txt:metadata in 1912) [ClassicSimilarity], result of:\n0.51650566 = score(doc=1912,freq=7.0), product of:\n0.7268914 = queryWeight, product of:\n9.0510845 = boost\n4.9109836 = idf(docFreq=846, maxDocs=42306)\n0.016353114 = queryNorm\n0.7105679 = fieldWeight in 1912, product of:\n2.6457512 = tf(freq=7.0), with freq of:\n7.0 = termFreq=7.0\n4.9109836 = idf(docFreq=846, maxDocs=42306)\n0.0546875 = fieldNorm(doc=1912)\n0.28 = coord(7/25)\n\n2. Lagoze, C.: Keeping Dublin Core simple : Cross-domain discovery or resource description? (2001) 0.29\n0.28773317 = sum of:\n0.28773317 = product of:\n0.7193329 = sum of:\n0.0060676327 = weight(abstract_txt:used in 3217) [ClassicSimilarity], result of:\n0.0060676327 = score(doc=3217,freq=1.0), product of:\n0.057425745 = queryWeight, product of:\n1.0385886 = boost\n3.381136 = idf(docFreq=3910, maxDocs=42306)\n0.016353114 = queryNorm\n0.1056605 = fieldWeight in 3217, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n3.381136 = idf(docFreq=3910, maxDocs=42306)\n0.03125 = fieldNorm(doc=3217)\n0.02503351 = weight(abstract_txt:encoding in 3217) [ClassicSimilarity], result of:\n0.02503351 = score(doc=3217,freq=1.0), product of:\n0.11724606 = queryWeight, product of:\n1.0493597 = boost\n6.8324027 = idf(docFreq=123, maxDocs=42306)\n0.016353114 = queryNorm\n0.21351258 = fieldWeight in 3217, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n6.8324027 = idf(docFreq=123, maxDocs=42306)\n0.03125 = fieldNorm(doc=3217)\n0.034827277 = weight(abstract_txt:david in 3217) [ClassicSimilarity], result of:\n0.034827277 = score(doc=3217,freq=1.0), product of:\n0.14611568 = queryWeight, product of:\n1.1714497 = boost\n7.6273327 = idf(docFreq=55, maxDocs=42306)\n0.016353114 = queryNorm\n0.23835415 = fieldWeight in 3217, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n7.6273327 = idf(docFreq=55, maxDocs=42306)\n0.03125 = fieldNorm(doc=3217)\n0.012036746 = weight(abstract_txt:management in 3217) [ClassicSimilarity], result of:\n0.012036746 = score(doc=3217,freq=1.0), product of:\n0.09066365 = queryWeight, product of:\n1.304989 = boost\n4.248405 = idf(docFreq=1642, maxDocs=42306)\n0.016353114 = queryNorm\n0.13276266 = fieldWeight in 3217, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n4.248405 = idf(docFreq=1642, maxDocs=42306)\n0.03125 = fieldNorm(doc=3217)\n0.024525434 = weight(abstract_txt:ways in 3217) [ClassicSimilarity], result of:\n0.024525434 = score(doc=3217,freq=2.0), product of:\n0.115654245 = queryWeight, product of:\n1.4739102 = boost\n4.79833 = idf(docFreq=947, maxDocs=42306)\n0.016353114 = queryNorm\n0.21205822 = fieldWeight in 3217, product of:\n1.4142135 = tf(freq=2.0), with freq of:\n2.0 = termFreq=2.0\n4.79833 = idf(docFreq=947, maxDocs=42306)\n0.03125 = fieldNorm(doc=3217)\n0.04010669 = weight(abstract_txt:description in 3217) [ClassicSimilarity], result of:\n0.04010669 = score(doc=3217,freq=5.0), product of:\n0.11828101 = queryWeight, product of:\n1.4905541 = boost\n4.8525143 = idf(docFreq=897, maxDocs=42306)\n0.016353114 = queryNorm\n0.33907974 = fieldWeight in 3217, product of:\n2.236068 = tf(freq=5.0), with freq of:\n5.0 = termFreq=5.0\n4.8525143 = idf(docFreq=897, maxDocs=42306)\n0.03125 = fieldNorm(doc=3217)\n0.03421095 = weight(abstract_txt:edition in 3217) [ClassicSimilarity], result of:\n0.03421095 = score(doc=3217,freq=1.0), product of:\n0.18191585 = queryWeight, product of:\n1.8485258 = boost\n6.0178947 = idf(docFreq=279, maxDocs=42306)\n0.016353114 = queryNorm\n0.18805921 = fieldWeight in 3217, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n6.0178947 = idf(docFreq=279, maxDocs=42306)\n0.03125 = fieldNorm(doc=3217)\n0.0454159 = weight(abstract_txt:standards in 3217) [ClassicSimilarity], result of:\n0.0454159 = score(doc=3217,freq=3.0), product of:\n0.17440371 = queryWeight, product of:\n2.2167346 = boost\n4.8110685 = idf(docFreq=935, maxDocs=42306)\n0.016353114 = queryNorm\n0.26040673 = fieldWeight in 3217, product of:\n1.7320508 = tf(freq=3.0), with freq of:\n3.0 = termFreq=3.0\n4.8110685 = idf(docFreq=935, maxDocs=42306)\n0.03125 = fieldNorm(doc=3217)\n0.023822116 = weight(abstract_txt:information in 3217) [ClassicSimilarity], result of:\n0.023822116 = score(doc=3217,freq=9.0), product of:\n0.10431718 = queryWeight, product of:\n2.618799 = boost\n2.435865 = idf(docFreq=10064, maxDocs=42306)\n0.016353114 = queryNorm\n0.22836234 = fieldWeight in 3217, product of:\n3.0 = tf(freq=9.0), with freq of:\n9.0 = termFreq=9.0\n2.435865 = idf(docFreq=10064, maxDocs=42306)\n0.03125 = fieldNorm(doc=3217)\n0.47328663 = weight(abstract_txt:metadata in 3217) [ClassicSimilarity], result of:\n0.47328663 = score(doc=3217,freq=18.0), product of:\n0.7268914 = queryWeight, product of:\n9.0510845 = boost\n4.9109836 = idf(docFreq=846, maxDocs=42306)\n0.016353114 = queryNorm\n0.65111053 = fieldWeight in 3217, product of:\n4.2426405 = tf(freq=18.0), with freq of:\n18.0 = termFreq=18.0\n4.9109836 = idf(docFreq=846, maxDocs=42306)\n0.03125 = fieldNorm(doc=3217)\n0.4 = coord(10/25)\n\n3. Pomerantz, J.: Metadata (2015) 0.28\n0.2755035 = sum of:\n0.2755035 = product of:\n1.7218968 = sum of:\n0.9030995 = weight(subject_txt:metadatenmodell in 719) [ClassicSimilarity], result of:\n0.9030995 = score(doc=719,freq=1.0), product of:\n0.24422306 = queryWeight, product of:\n1.5144975 = boost\n9.860925 = idf(docFreq=5, maxDocs=42306)\n0.016353114 = queryNorm\n3.697847 = fieldWeight in 719, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n9.860925 = idf(docFreq=5, maxDocs=42306)\n0.375 = fieldNorm(doc=719)\n0.05636714 = weight(abstract_txt:introduction in 719) [ClassicSimilarity], result of:\n0.05636714 = score(doc=719,freq=1.0), product of:\n0.15986662 = queryWeight, product of:\n1.7328825 = boost\n5.641417 = idf(docFreq=407, maxDocs=42306)\n0.016353114 = queryNorm\n0.35258856 = fieldWeight in 719, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n5.641417 = idf(docFreq=407, maxDocs=42306)\n0.0625 = fieldNorm(doc=719)\n0.022459704 = weight(abstract_txt:information in 719) [ClassicSimilarity], result of:\n0.022459704 = score(doc=719,freq=2.0), product of:\n0.10431718 = queryWeight, product of:\n2.618799 = boost\n2.435865 = idf(docFreq=10064, maxDocs=42306)\n0.016353114 = queryNorm\n0.21530207 = fieldWeight in 719, product of:\n1.4142135 = tf(freq=2.0), with freq of:\n2.0 = termFreq=2.0\n2.435865 = idf(docFreq=10064, maxDocs=42306)\n0.0625 = fieldNorm(doc=719)\n0.73997045 = weight(abstract_txt:metadata in 719) [ClassicSimilarity], result of:\n0.73997045 = score(doc=719,freq=11.0), product of:\n0.7268914 = queryWeight, product of:\n9.0510845 = boost\n4.9109836 = idf(docFreq=846, maxDocs=42306)\n0.016353114 = queryNorm\n1.0179931 = fieldWeight in 719, product of:\n3.3166249 = tf(freq=11.0), with freq of:\n11.0 = termFreq=11.0\n4.9109836 = idf(docFreq=846, maxDocs=42306)\n0.0625 = fieldNorm(doc=719)\n0.16 = coord(4/25)\n\n4. Integrating multiple overlapping metadata standards (1999) 0.23\n0.23111387 = sum of:\n0.23111387 = product of:\n1.1555693 = sum of:\n0.060183734 = weight(abstract_txt:management in 5053) [ClassicSimilarity], result of:\n0.060183734 = score(doc=5053,freq=1.0), product of:\n0.09066365 = queryWeight, product of:\n1.304989 = boost\n4.248405 = idf(docFreq=1642, maxDocs=42306)\n0.016353114 = queryNorm\n0.6638133 = fieldWeight in 5053, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n4.248405 = idf(docFreq=1642, maxDocs=42306)\n0.15625 = fieldNorm(doc=5053)\n0.18540962 = weight(abstract_txt:standards in 5053) [ClassicSimilarity], result of:\n0.18540962 = score(doc=5053,freq=2.0), product of:\n0.17440371 = queryWeight, product of:\n2.2167346 = boost\n4.8110685 = idf(docFreq=935, maxDocs=42306)\n0.016353114 = queryNorm\n1.063106 = fieldWeight in 5053, product of:\n1.4142135 = tf(freq=2.0), with freq of:\n2.0 = termFreq=2.0\n4.8110685 = idf(docFreq=935, maxDocs=42306)\n0.15625 = fieldNorm(doc=5053)\n0.039703526 = weight(abstract_txt:information in 5053) [ClassicSimilarity], result of:\n0.039703526 = score(doc=5053,freq=1.0), product of:\n0.10431718 = queryWeight, product of:\n2.618799 = boost\n2.435865 = idf(docFreq=10064, maxDocs=42306)\n0.016353114 = queryNorm\n0.3806039 = fieldWeight in 5053, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n2.435865 = idf(docFreq=10064, maxDocs=42306)\n0.15625 = fieldNorm(doc=5053)\n0.08146126 = weight(abstract_txt:retrieval in 5053) [ClassicSimilarity], result of:\n0.08146126 = score(doc=5053,freq=1.0), product of:\n0.15056632 = queryWeight, product of:\n2.6590357 = boost\n3.4626071 = idf(docFreq=3604, maxDocs=42306)\n0.016353114 = queryNorm\n0.5410324 = fieldWeight in 5053, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n3.4626071 = idf(docFreq=3604, maxDocs=42306)\n0.15625 = fieldNorm(doc=5053)\n0.78881115 = weight(abstract_txt:metadata in 5053) [ClassicSimilarity], result of:\n0.78881115 = score(doc=5053,freq=2.0), product of:\n0.7268914 = queryWeight, product of:\n9.0510845 = boost\n4.9109836 = idf(docFreq=846, maxDocs=42306)\n0.016353114 = queryNorm\n1.0851843 = fieldWeight in 5053, product of:\n1.4142135 = tf(freq=2.0), with freq of:\n2.0 = termFreq=2.0\n4.9109836 = idf(docFreq=846, maxDocs=42306)\n0.15625 = fieldNorm(doc=5053)\n0.2 = coord(5/25)\n\n5. Kurth, M.; Ruddy, D.; Rupp, N.: Repurposing MARC metadata : using digital project experience to develop a metadata management design (2004) 0.22\n0.21849799 = sum of:\n0.21849799 = product of:\n1.09249 = sum of:\n0.015169082 = weight(abstract_txt:used in 749) [ClassicSimilarity], result of:\n0.015169082 = score(doc=749,freq=1.0), product of:\n0.057425745 = queryWeight, product of:\n1.0385886 = boost\n3.381136 = idf(docFreq=3910, maxDocs=42306)\n0.016353114 = queryNorm\n0.26415125 = fieldWeight in 749, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n3.381136 = idf(docFreq=3910, maxDocs=42306)\n0.078125 = fieldNorm(doc=749)\n0.060183734 = weight(abstract_txt:management in 749) [ClassicSimilarity], result of:\n0.060183734 = score(doc=749,freq=4.0), product of:\n0.09066365 = queryWeight, product of:\n1.304989 = boost\n4.248405 = idf(docFreq=1642, maxDocs=42306)\n0.016353114 = queryNorm\n0.6638133 = fieldWeight in 749, product of:\n2.0 = tf(freq=4.0), with freq of:\n4.0 = termFreq=4.0\n4.248405 = idf(docFreq=1642, maxDocs=42306)\n0.078125 = fieldNorm(doc=749)\n0.03119294 = weight(abstract_txt:technology in 749) [ClassicSimilarity], result of:\n0.03119294 = score(doc=749,freq=1.0), product of:\n0.09286199 = queryWeight, product of:\n1.3207153 = boost\n4.2996025 = idf(docFreq=1560, maxDocs=42306)\n0.016353114 = queryNorm\n0.33590645 = fieldWeight in 749, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n4.2996025 = idf(docFreq=1560, maxDocs=42306)\n0.078125 = fieldNorm(doc=749)\n0.019851763 = weight(abstract_txt:information in 749) [ClassicSimilarity], result of:\n0.019851763 = score(doc=749,freq=1.0), product of:\n0.10431718 = queryWeight, product of:\n2.618799 = boost\n2.435865 = idf(docFreq=10064, maxDocs=42306)\n0.016353114 = queryNorm\n0.19030195 = fieldWeight in 749, product of:\n1.0 = tf(freq=1.0), with freq of:\n1.0 = termFreq=1.0\n2.435865 = idf(docFreq=10064, maxDocs=42306)\n0.078125 = fieldNorm(doc=749)\n0.9660924 = weight(abstract_txt:metadata in 749) [ClassicSimilarity], result of:\n0.9660924 = score(doc=749,freq=12.0), product of:\n0.7268914 = queryWeight, product of:\n9.0510845 = boost\n4.9109836 = idf(docFreq=846, maxDocs=42306)\n0.016353114 = queryNorm\n1.3290739 = fieldWeight in 749, product of:\n3.4641016 = tf(freq=12.0), with freq of:\n12.0 = termFreq=12.0\n4.9109836 = idf(docFreq=846, maxDocs=42306)\n0.078125 = fieldNorm(doc=749)\n0.2 = coord(5/25)"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.67528635,"math_prob":0.997823,"size":14283,"snap":"2019-43-2019-47","text_gpt3_token_len":5467,"char_repetition_ratio":0.2457455,"word_repetition_ratio":0.4076878,"special_character_ratio":0.53707206,"punctuation_ratio":0.28349572,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9996911,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-10-22T01:14:42Z\",\"WARC-Record-ID\":\"<urn:uuid:afd32597-6b00-4d53-9fd5-01a7d81012cd>\",\"Content-Length\":\"29106\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:778d3e62-ba5c-4491-b681-52028ffbf107>\",\"WARC-Concurrent-To\":\"<urn:uuid:323061d8-3712-411a-b101-d81dd0285fe8>\",\"WARC-IP-Address\":\"139.6.160.6\",\"WARC-Target-URI\":\"http://ixtrieve.fh-koeln.de/birds/litie/document/41098\",\"WARC-Payload-Digest\":\"sha1:BROFXEZE7H4XH6ASYYVCHYGIDWVPXKML\",\"WARC-Block-Digest\":\"sha1:UJR33BVKIBOZLFGO3MZK7PQJCB6QJIR5\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-43/CC-MAIN-2019-43_segments_1570987795403.76_warc_CC-MAIN-20191022004128-20191022031628-00380.warc.gz\"}"} |
https://devzone.nordicsemi.com/f/nordic-q-a/30328/nrf52840-create-2-pwms-with-different-pulse-width-using-single-instance-by-direct-register-access | [
"# #nrf52840: create 2 PWMs with different pulse width using single instance by direct register access\n\nAs per #nrf52840 datasheet\n\n` NRF_P0->DIR |= 0x0001E000;`\n` NRF_P0->OUT |= 0x0001E000;`\n\n` uint16_t pwm_seq= {160 , 3200};`\n\n` NRF_PWM0->PSEL.OUT = 0;`\n` NRF_PWM0->PSEL.OUT = 13 ;`\n\n` NRF_PWM0->PSEL.OUT = 0 ; NRF_PWM0->PSEL.OUT = 14 ;`\n\n` NRF_PWM0->ENABLE = 0x00000001;`\n` `\n` NRF_PWM0->MODE = 0x00000000;`\n\n` NRF_PWM0->PRESCALER = 0x00000000; //16Mhz`\n\n` NRF_PWM0->COUNTERTOP = 16000; // PWM_Freq = 1000 Hz`\n\n` //NRF_PWM0->LOOP = 0x00000000;`\n\n` //NRF_PWM0->DECODER = 0x00000002;`\n` `\n` NRF_PWM0->SEQ.PTR = (uint32_t)(pwm_seq);`\n` `\n` NRF_PWM0->SEQ.CNT = 2;`\n` `\n` NRF_PWM0->SEQ.REFRESH = 0;`\n` `\n` NRF_PWM0->SEQ.ENDDELAY = 0;`\n` `\n` NRF_PWM0->TASKS_SEQSTART = 1;`\n\nI've configured PWM0 registers as mentioned above. But with this setting both LED1 & LED2 are showing same intensity that means both channels set to common pulse width.\n\n`How to edit this configuration so that both channels will set to different pulse width ?`\n\n`If I set NRF_PWM0->DECODER = 0x00000002; I didn't observe anything on two channels.`\n\n`How to update pulse width dynamically after these initial configuration ?`\n\nThank You !!\n\n• Hello World !!\n\nI found that working of PWM module depends upon sequence of configuration.\n\nHere is simple working demo,\n\n//---------------------------------------------------------------------------------------------------------------------------------------------------------\n\n#include \"nrf_delay.h\"\n\nuint16_t pwm_seq;\n\nvoid gpio_init(void)\n{\n\nNRF_P0->DIR |= 0x0001E000;\nNRF_P0->OUT |= 0x0001E000;\n\nNRF_PWM0->PSEL.OUT = 13 ; // LED_1\nNRF_PWM0->PSEL.OUT = 14 ; // LED_2\n\nNRF_PWM0->MODE = 0x00000000;\n\nNRF_PWM0->PRESCALER = 0x00000004; //1 Mhz\n\nNRF_PWM0->COUNTERTOP = 1000; //1 Khz\n\nNRF_PWM0->DECODER = 0x00000002;\n\nNRF_PWM0->LOOP = 0x00000000;\n\nNRF_PWM0->SEQ.REFRESH = 0;\n\nNRF_PWM0->SEQ.ENDDELAY = 0;\n\nNRF_PWM0->SEQ.PTR = (uint32_t)(pwm_seq);\n\nNRF_PWM0->SEQ.CNT = 4;\n\nNRF_PWM0->ENABLE = 0x00000001;\n\n}\n\nint main(void)\n{\n\nunsigned char data=0;\nint i;\n\ngpio_init();\n\nwhile(1)\n{\npwm_seq += 10;\npwm_seq += 100;\n\nif(pwm_seq > 1000)\n{\npwm_seq = 0;\n}\n\nif(pwm_seq > 1000)\n{\npwm_seq = 0;\n}\n\nnrf_delay_ms(100);\n\n}\n\nreturn(0);\n\n}\n\n• Hello,\n\nI am not quite sure where you found this piece of code, but it can be a bit confusing, since all of our PWM examples are set up in different ways, using different modules.\n\nThe \"best\" way is to use the timer and PPI, do manage the PWM signals directly. However, it does not use the PWM module. Only a timer and GPIO control.\n\nIn the Product Specification, on page 559 is an example on one way to use the PWM module, which looks similar to the way that you set it up.\n\nBelow, I modified this to match your pins.\n\n```int main(void)\n{\nuint16_t pwm_seq =\n{\n1600, 3200};\n\nNRF_PWM0->PSEL.OUT = (13 << PWM_PSEL_OUT_PIN_Pos) | (PWM_PSEL_OUT_CONNECT_Connected << PWM_PSEL_OUT_CONNECT_Pos);\n\nNRF_PWM0->PSEL.OUT = (14 << PWM_PSEL_OUT_PIN_Pos) | (PWM_PSEL_OUT_CONNECT_Connected << PWM_PSEL_OUT_CONNECT_Pos);\n\nNRF_PWM0->ENABLE = (PWM_ENABLE_ENABLE_Enabled << PWM_ENABLE_ENABLE_Pos);\n\nNRF_PWM0->MODE = (PWM_MODE_UPDOWN_Up << PWM_MODE_UPDOWN_Pos);\n\nNRF_PWM0->PRESCALER = (PWM_PRESCALER_PRESCALER_DIV_1 << PWM_PRESCALER_PRESCALER_Pos);\n\nNRF_PWM0->COUNTERTOP = (16000 << PWM_COUNTERTOP_COUNTERTOP_Pos); //1 msec\n\nNRF_PWM0->LOOP = (PWM_LOOP_CNT_Disabled << PWM_LOOP_CNT_Pos);\n\nNRF_PWM0->SEQ.PTR = ((uint32_t)(pwm_seq) << PWM_SEQ_PTR_PTR_Pos);\n\nNRF_PWM0->SEQ.CNT = ((sizeof(pwm_seq) / sizeof(uint16_t)) << PWM_SEQ_CNT_CNT_Pos);\n\nNRF_PWM0->SEQ.REFRESH = 0;\n\nNRF_PWM0->SEQ.ENDDELAY = 0;\n\nwhile (true)\n{\n// Do nothing.\nnrf_delay_ms(1000); // Wait for one second\n\nif (pwm_seq == 3200) // Toggle between two duty cycles on channel 0\npwm_seq = 1600;\nelse\npwm_seq = 3200;\n\nNRF_PWM0->TASKS_SEQSTART = 1; // Update the PWM module\n}\n}```\n\nNote that the nrf_delay_ms() is a very little power efficient function. I used it because it is easy to set up to show how to update the PWM' duty cycle.\n\nIf you paste this code into e.g. the example found in SDK\\examples\\peripheral\\template_project, you will see that LED1 and LED2 is controlled by the PWM, and the intensity of LED1 is toggling between two values.\n\nBest Regards,\n\nEdvin\n\n• I referred #nrf52840 Datasheet. It is same as your suggestion but with my style. And it is very simple compare to using combo of PPI & Timer.\n\nAnd it works & that's it !!\n\nRelated"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.7330842,"math_prob":0.9805485,"size":1040,"snap":"2022-27-2022-33","text_gpt3_token_len":390,"char_repetition_ratio":0.22490348,"word_repetition_ratio":0.0,"special_character_ratio":0.41538462,"punctuation_ratio":0.19021739,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9847701,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-06-26T17:31:48Z\",\"WARC-Record-ID\":\"<urn:uuid:fd49e227-d7db-4863-aba9-77f3f1ad740b>\",\"Content-Length\":\"123120\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2e314aac-3eed-4078-81f4-30129f0900a5>\",\"WARC-Concurrent-To\":\"<urn:uuid:02f555cd-168a-45aa-9b14-c3872300af77>\",\"WARC-IP-Address\":\"51.104.185.228\",\"WARC-Target-URI\":\"https://devzone.nordicsemi.com/f/nordic-q-a/30328/nrf52840-create-2-pwms-with-different-pulse-width-using-single-instance-by-direct-register-access\",\"WARC-Payload-Digest\":\"sha1:5JRR2PO6KXG6A2IIFUJNLH6SMAZZOGI2\",\"WARC-Block-Digest\":\"sha1:UDTJOVJLJLNA2YDQB4GVD24D5DJNMSCJ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656103271763.15_warc_CC-MAIN-20220626161834-20220626191834-00298.warc.gz\"}"} |
https://gis.stackexchange.com/questions/32871/evaluating-map-projection-scale-error | [
"# Evaluating map projection scale error\n\nThis is related to a previous question How to determine projection parameters when customizing a projection I posted.\n\nI am trying to quantitatively evaluate scale distortion associated with choosing different projection center, center azimuth, and scale factor values for a Hotine Oblique Mercator (HOM).\n\n1) Is the following method a reasonable approach?\n\nUsing the same concept as the spreadsheet whuber created for evaluating Albers scale distortion, create a spreadsheet filled with Snyder’s equations for the HOM (ellipsoid formula, “alternative B”, page 74 in “Map Projections – A Working Manual”). The user inputs the chosen ellipsoid parameters (a and e), and values for the \"customized\" projection parameters (lat/long of projection center, centerline azimuth, scale factor, and false easting/northing). The rest of the projection constants are then automatically calculated. The spreadsheet also contains cells for each lat/long pair (in half-degree increments, or whatever increments are desired) across the projection area. The scale factor and rectified coordinates at each lat/long point are automatically calculated when changing any of the projection parameters. Now, the scale factor can be numerically evaluated 1) by computing an overall average and range of scale distortion across the projection region, and 2) the point coordinates and their associated scale factors can easily be imported into ArcMap to create a visual picture of how the scale distortion is distributed. Obviously the results are just a sample and will vary depending on how many lat/long locations are evaluated, but does this sound like a valid methodology? Spreadsheet looks like this:",
null,
"2) I've also been using a distortion analysis tool created by Michael Braymen that calculates scale (and area and angular) distortion for any given projection using an \"asterisk analysis\" that approximates a Tissot's Indicatrix.\n\nThe tool's Python script can be viewed or there is a also Powerpoint available that describes the tool. I have modified the script to create 50 meter asterisk lines (i.e., a 50 meter ellipse \"radius\"), instead of the default 5000m.\n\nWhen I compare the results from this tool against what is produced by the spreadsheet method in #1 above, the numbers do not agree very well. For example:\n\nSampling approximately the same number of locations (~400) across the same projection extents yields:\n\nAvg Scale Error using method under #1 above = 0.9997200465 (0.027995%)\nMax \"compression\" scale error, Method 1 = 0.9994254755 (0.057452%)\nMax \"expansion\" scale error, Method 1 = 1.0006580056 (0.065801%)\nRange scale error, Method 1 = 0.0012325301 (0.123253%)\n\nAvg Scale Error using method under #2 above = 1.0001550206 (0.015502%)\nMax \"compression\" scale error, Method 2 = 0.9998956844 (0.010432%)\nMax \"expansion\" scale error, Method 2 = 1.0010584928 (0.105849%)\nRange scale error, Method 2 = 0.0011628084 (0.116281%)\n\nCan anyone think of a reason the results would be so different? Can I interpret the scale factor at a point (method 1) as the scale distortion of an \"infinitely small circle\" at that point?\n\nAlso, I am aware of the many discussions on creating Tissot's Indicatrices, so I don't need to be pointed to those ... unless there is some vetted tool out there that accurately, quantitatively evaluates distortion for user-defined regional (i.e., not global) areas, accepts the HOM, is easily implemented, and is nearly free :)? Actually, assuming the tool used in Method 2 is accurate, it work's great for my purposes. The drawback is it takes about 9 hours to run on my PC for each evaluation.\n\n• -1 - My initial take on this is that you are more likely to get a clear answer if you provide a more focused question. I can see at least 3 or 4 different questions that could be answered. First you ask if the first is a reasonable method, then you start asking a series of questions about the second question, below your error results. This site works best with specific, focused questions, because these yield answers that are the same, that others may encounter as well. Perhaps splitting this into two or more separate questions, would help. Sep 6, 2012 at 8:46\n• (1) I haven't seen the code, but the algorithms described in the PPT are hugely inefficient. (The \"asterisks\" can be replaced by a simple formula and the points should be intelligently selected, not random.) The calculation should complete in fractions of a second, not hours! (2) The spreadsheet approach is good in spirit, but as a practical matter it's too easy to make a tiny mistake and hard to identify or correct it. Anyone with the skills to conceive of and make such a spreadsheet should be using more powerful programming tools supporting better development and debugging facilities. Sep 6, 2012 at 14:33\n• @Get Spatial - Thanks for the tip. Indeed, there are 2 main questions: 1) Is the spreadsheet idea a valid method for assessing scale distortion?, and 2) when I try to validate the method against results from another tool that also evaluates scale distortion, the numbers are quite different and I was wondering if anyone had any ideas as to why. Just seemed hard to break the questions up. Perhaps there's a better forum for these types of questions, but I've seen such great responses here from people that really seem to know their stuff, I thought I'd give it a try. Sep 6, 2012 at 20:30\n• @whuber Ah, if I only had the luxury of more time to try writing a program. Maybe I could try it in R in my spare time. Agreed, it would be more efficient in the long run and could have better features (if I was a faster/better programmer). I was able to verify the formulas were entered correctly by using the same values Snyder uses in his example (p 276), which are shown in grey in col A of the spreadsheet, & comparing the output to his answers. I get what you mean by replacing the asterisks with points (a la your response to my previous question), and maybe I will try to work on that idea. Sep 6, 2012 at 20:52\n• @whuber ...but I still don't understand why the results between the 2 methods would be that different... Sep 6, 2012 at 20:53"
]
| [
null,
"https://i.stack.imgur.com/NbVGY.jpg",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.86545503,"math_prob":0.81820846,"size":3598,"snap":"2022-05-2022-21","text_gpt3_token_len":826,"char_repetition_ratio":0.12520868,"word_repetition_ratio":0.025225226,"special_character_ratio":0.25125068,"punctuation_ratio":0.11827957,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95314556,"pos_list":[0,1,2],"im_url_duplicate_count":[null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-27T12:52:02Z\",\"WARC-Record-ID\":\"<urn:uuid:100bb9d4-5892-4812-abd2-bb274db64cb9>\",\"Content-Length\":\"237810\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:bd8fd177-5121-4322-bdbb-cbf141c9e930>\",\"WARC-Concurrent-To\":\"<urn:uuid:4986191d-0179-40cb-a684-c9caaa8f13c4>\",\"WARC-IP-Address\":\"151.101.1.69\",\"WARC-Target-URI\":\"https://gis.stackexchange.com/questions/32871/evaluating-map-projection-scale-error\",\"WARC-Payload-Digest\":\"sha1:QFQZ5MMLCXL4F7MMGJRFMB5JG72LIAC2\",\"WARC-Block-Digest\":\"sha1:4UNPW2PUXDPAAM6XNQCWZGCRUKJU46SI\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662647086.91_warc_CC-MAIN-20220527112418-20220527142418-00371.warc.gz\"}"} |
https://chromoscience.com/2020/11/16/the-chemical-formulas/ | [
"# The Chemical Formulas\n\nRelated Posts",
null,
"A methane molecule can be represented as (a) a molecular formula, (b) a structural formula, (c) a ball-and-stick model, and (d) a space-filling model. Carbon and hydrogen atoms are represented by black and white spheres, respectively. Source: OpenStax Chemistry 2e\n\nOpenStax Chemistry 2e\n\nA molecular formula is a representation of a molecule that uses chemical symbols to indicate the types of atoms followed by subscripts to show the number of atoms of each type in the molecule. (A subscript is used only when more than one atom of a given type is present.) Molecular formulas are also used as abbreviations for the names of compounds.\n\nThe structural formula for a compound gives the same information as its molecular formula (the types and numbers of atoms in the molecule) but also shows how the atoms are connected in the molecule. The structural formula for methane contains symbols for one C atom and four H atoms, indicating the number of atoms in the molecule. The lines represent bonds that hold the atoms together. (A chemical bond is an attraction between atoms or ions that holds them together in a molecule or a crystal.) We will discuss chemical bonds and see how to predict the arrangement of atoms in a molecule later. For now, simply know that the lines are an indication of how the atoms are connected in a molecule. A ball-and-stick model shows the geometric arrangement of the atoms with atomic sizes not to scale, and a space-filling model shows the relative sizes of the atoms.\n\nAlthough many elements consist of discrete, individual atoms, some exist as molecules made up of two or more atoms of the element chemically bonded together. For example, most samples of the elements hydrogen, oxygen, and nitrogen are composed of molecules that contain two atoms each (called diatomic molecules) and thus have the molecular formulas H2, O2, and N2, respectively. Other elements commonly found as diatomic molecules are fluorine (F2), chlorine (Cl2), bromine (Br2), and iodine (I2). The most common form of the element sulfur is composed of molecules that consist of eight atoms of sulfur; its molecular formula is S8.",
null,
"A molecule of sulfur is composed of eight sulfur atoms and is therefore written as S8. It can be represented as (a) a structural formula, (b) a ball-and-stick model, and (c) a space-filling model. Sulfur atoms are represented by yellow spheres. Source: OpenStax Chemistry 2e\n\nIt is important to note that a subscript following a symbol and a number in front of a symbol do not represent the same thing; for example, H2 and 2H represent distinctly different species. H2 is a molecular formula; it represents a diatomic molecule of hydrogen, consisting of two atoms of the element that are chemically bonded together. The expression 2H, on the other hand, indicates two separate hydrogen atoms that are not combined as a unit. The expression 2H2 represents two molecules of diatomic hydrogen.",
null,
"The symbols H, 2H, H2, and 2H2 represent very different entities. Source: OpenStax Chemistry 2e\n\nCompounds are formed when two or more elements chemically combine, resulting in the formation of bonds. For example, hydrogen and oxygen can react to form water, and sodium and chlorine can react to form table salt. We sometimes describe the composition of these compounds with an empirical formula, which indicates the types of atoms present and the simplest whole-number ratio of the number of atoms (or ions) in the compound. For example, titanium dioxide (used as pigment in white paint and in the thick, white, blocking type of sunscreen) has an empirical formula of TiO2. This identifies the elements titanium (Ti) and oxygen (O) as the constituents of titanium dioxide, and indicates the presence of twice as many atoms of the element oxygen as atoms of the element titanium.",
null,
"(a) The white compound titanium dioxide provides effective protection from the sun. (b) A crystal of titanium dioxide, TiO2, contains titanium and oxygen in a ratio of 1 to 2. The titanium atoms are gray and the oxygen atoms are red. (credit a: modification of work by “osseous”/Flickr)\n\nWe can describe a compound with a molecular formula, in which the subscripts indicate the actual numbers of atoms of each element in a molecule of the compound. In many cases, the molecular formula of a substance is derived from experimental determination of both its empirical formula and its molecular mass (the sum of atomic masses for all atoms composing the molecule). For example, it can be determined experimentally that benzene contains two elements, carbon (C) and hydrogen (H), and that for every carbon atom in benzene, there is one hydrogen atom. Thus, the empirical formula is CH. An experimental determination of the molecular mass reveals that a molecule of benzene contains six carbon atoms and six hydrogen atoms, so the molecular formula for benzene is C6H6.",
null,
"Benzene, C6H6, is produced during oil refining and has many industrial uses. A benzene molecule can be represented as (a) a structural formula, (b) a ball-and-stick model, and (c) a space-filling model. (d) Benzene is a clear liquid. (credit d: modification of work by Sahar Atwa)\n\nIf we know a compound’s formula, we can easily determine the empirical formula. (This is somewhat of an academic exercise; the reverse chronology is generally followed in actual practice.) For example, the molecular formula for acetic acid, the component that gives vinegar its sharp taste, is C2H4O2. This formula indicates that a molecule of acetic acid contains two carbon atoms, four hydrogen atoms, and two oxygen atoms. The ratio of atoms is 2:4:2. Dividing by the lowest common denominator (2) gives the simplest, whole-number ratio of atoms, 1:2:1, so the empirical formula is CH2O. Note that a molecular formula is always a whole-number multiple of an empirical formula.",
null,
"(a) Vinegar contains acetic acid, C2H4O2, which has an empirical formula of CH2O. It can be represented as (b) a structural formula and (c) as a ball-and-stick model. (credit a: modification of work by “HomeSpot HQ”/Flickr)\n\nIt is important to be aware that it may be possible for the same atoms to be arranged in different ways: Compounds with the same molecular formula may have different atom-to-atom bonding and therefore different structures. For example, could there be another compound with the same formula as acetic acid, C2H4O2? And if so, what would be the structure of its molecules?\n\nIf you predict that another compound with the formula C2H4O2 could exist, then you demonstrated good chemical insight and are correct. Two C atoms, four H atoms, and two O atoms can also be arranged to form a methyl formate, which is used in manufacturing, as an insecticide, and for quick-drying finishes. Methyl formate molecules have one of the oxygen atoms between the two carbon atoms, differing from the arrangement in acetic acid molecules. Acetic acid and methyl formate are examples of isomers—compounds with the same chemical formula but different molecular structures. Note that this small difference in the arrangement of the atoms has a major effect on their respective chemical properties. You would certainly not want to use a solution of methyl formate as a substitute for a solution of acetic acid (vinegar) when you make salad dressing.",
null,
"Molecules of (a) acetic acid and methyl formate (b) are structural isomers; they have the same formula (C2H4O2) but different structures (and therefore different chemical properties). Source: OpenStax Chemistry 2e\n\nMany types of isomers exist. Acetic acid and methyl formate are structural isomers, compounds in which the molecules differ in how the atoms are connected to each other. There are also various types of spatial isomers, in which the relative orientations of the atoms in space can be different. For example, the compound carvone (found in caraway seeds, spearmint, and mandarin orange peels) consists of two isomers that are mirror images of each other. S-(+)-carvone smells like caraway, and R-(−)-carvone smells like spearmint.",
null,
"Molecules of carvone are spatial isomers; they only differ in the relative orientations of the atoms in space. (credit bottom left: modification of work by “Miansari66”/Wikimedia Commons; credit bottom right: modification of work by Forest & Kim Starr)\n\nSource:\n\nSource:\n\nFlowers, P., Theopold, K., Langley, R., & Robinson, W. R. (2019, February 14). Chemistry 2e. Houston, Texas: OpenStax. Access for free at: https://openstax.org/books/chemistry-2e"
]
| [
null,
"https://openstax.org/resources/700be7a9676f6d5263fecd751061677c47d678d0",
null,
"https://openstax.org/resources/ef51ef17e5d26425f716895d818f0e730ffbb557",
null,
"https://openstax.org/resources/f23bb1171b8e7d8504d45726d2ac04689a6ae355",
null,
"https://openstax.org/resources/043537b9caa5f8aff2a27d0cdabb19dd44676a8c",
null,
"https://openstax.org/resources/70f8299b9b0637d6cda8b6b6c0d9acf8e4cc25bb",
null,
"https://openstax.org/resources/d62e7cd6a88505c2953b7948b46f9d464ce24846",
null,
"https://openstax.org/resources/73fc1f59394bfffe1879b16ab2ae822cb08739e5",
null,
"https://openstax.org/resources/f538aaaf6a7297937c6fdf56cf82a548ff4735b4",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.91912884,"math_prob":0.9437183,"size":6588,"snap":"2020-45-2020-50","text_gpt3_token_len":1394,"char_repetition_ratio":0.16585661,"word_repetition_ratio":0.008395523,"special_character_ratio":0.20112325,"punctuation_ratio":0.11317704,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9718723,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"im_url_duplicate_count":[null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-12-05T18:48:16Z\",\"WARC-Record-ID\":\"<urn:uuid:cdfb53aa-6b1a-4863-82ed-1a693bf63c71>\",\"Content-Length\":\"139684\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5c4fa072-30d8-425d-a0ad-efe4033a8db5>\",\"WARC-Concurrent-To\":\"<urn:uuid:c8dfc334-3616-4529-9a08-365126cb497c>\",\"WARC-IP-Address\":\"192.0.78.216\",\"WARC-Target-URI\":\"https://chromoscience.com/2020/11/16/the-chemical-formulas/\",\"WARC-Payload-Digest\":\"sha1:JE3WVUA4EAEM3SFNGC5P54DEHN4BZXZM\",\"WARC-Block-Digest\":\"sha1:T26ZWJQCCLZNHBUH5OE2X3VPJPVVPR7F\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141748276.94_warc_CC-MAIN-20201205165649-20201205195649-00597.warc.gz\"}"} |
https://stackcodereview.com/speeding-up-naive-backtracking-sudoku-solver-in-haskell/ | [
"# Speeding up naive backtracking Sudoku Solver in Haskell\n\nPosted on\n\nProblem\n\nAfter watching a recent computerphile video on building a very simple sudoku solver I tried to implement the same in Haskell. From this CR question I learned that it is probably a better idea to use Vectors instead of just lists to represent a grid of numbers that is gonna be mutated. (But it is supposedly still worse than using a sparse representation.) And from this one (and another question of mine) I learned about `Control.Lens`, but I decided against using it to avoid using many different packages that I’m not familiar with.\n\nNow the program I wrote is close to the original in python, but very slow. So I would like to get some feedback on how to speed it up without deviating form this very simple aproach too much.\n\n### The Program\n\nThe code defines a `Board` that represents a (solved or unsolved) state, with zeros for the entries that area yet to be determined. It can be indexed using `Coordinates`. Then there are a few setters and getters that probably could be replaced by using `Control.Lens` – but I’d like to avoid that for now as I just want to focus on the performance. Then there is a `possible` function which takes a `Board`, `Coordinates` and a candidate number an just reports whether it is possible to put the candidate at some given coordinates. Finally there is `solve` that does the backtracking.\n\nSo far I tried to add a `take 1 \\$` or `take 1 \\$!` to speed it up (but only returning at most a single solution), but without success.\n\n``````--https://www.youtube.com/watch?v=G_UYXzGuqvM\nimport qualified Data.Vector as V\n\ndata Board = Board (V.Vector (V.Vector Integer))\ntype Coordinates = (Int, Int)\n\ninstance Show Board where\nshow (Board b)=unlines . V.toList \\$ V.map show b\n\nfromList :: [[Integer]] -> Board\nfromList l = Board \\$ V.fromList \\$ V.fromList <\\$> l\n\n-- a few setters and getters\n(!):: Board -> Coordinates -> Integer\n(Board b) ! (i,j) = (b V.! j)V.! i\n\ngetColumn :: Board -> Coordinates -> [Integer]\ngetColumn b (i, _) = [b ! (i, j) | j<-[0..8]]\n\ngetRow :: Board -> (Int, Int) -> [Integer]\ngetRow b (_, j) = [b ! (i, j) | i<-[0..8]]\n\ngetSquare :: Board -> Coordinates -> [Integer]\ngetSquare b (i, j) = [b ! (i'*3 + u, j'*3 + v) | u<-[0..2],v<-[0..2]]\nwhere i' = i `div` 3\nj' = j `div` 3\n\ninsert :: Board -> Coordinates -> Integer -> Board\ninsert (Board b) (i, j) k = Board b'\nwhere v = b V.! j\nv' = v V.// [(i, k)]\nb' = b V.// [(j, v')]\n\n-- check whether it is possible to insert candidate at given position\npossible :: Board -> Coordinates -> Integer -> Bool\npossible b coords@(i, j) k\n|i < 0 || i >= 9 || j < 0 || j >= 9 || k < 0 || k > 9 = undefined\n|b ! coords > 0 = False\n|k `elem` getRow b coords = False\n|k `elem` getColumn b coords = False\n|k `elem` getSquare b coords = False\n|otherwise = True\n\n-- check whether board is already full\nfull :: Board -> Bool\nfull b = 0 `notElem` [b ! (i,j) | i<-[0..8], j<-[0..8]]\n\n-- recursion to find all solutions to a given board\nsolve :: Board -> [Board]\nsolve b\n|full b = [b]\n|otherwise = concat[ solve \\$! (insert b (x, y) n)|\nx<-[0..8],\ny<-[0..8],\nn<-[1..9],\npossible b (x,y) n]\n\nmain = print \\$ solve b\n\n-- normal sudoku\nb :: Board\nb = fromList [\n[5,3,0,0,7,0,0,0,0],\n[6,0,0,1,9,5,0,0,0],\n[0,9,8,0,0,0,0,6,0],\n[8,0,0,0,6,0,0,0,3],\n[4,0,0,8,0,3,0,0,1],\n[7,0,0,0,2,0,0,0,6],\n[0,6,0,0,0,0,2,8,0],\n[0,0,0,4,1,9,0,0,5],\n[0,0,0,0,8,0,0,7,9]\n]\n\n-- only one a few entries are missing\nc :: Board\nc = fromList [\n[0,0,0,0,9,4,5,6,1],\n[9,2,1,5,3,6,8,7,4],\n[4,5,6,7,8,1,9,2,3],\n[1,4,7,3,5,9,2,8,6],\n[2,8,3,6,1,7,4,5,9],\n[5,6,9,8,4,2,3,1,7],\n[6,7,4,9,2,5,1,3,8],\n[8,9,2,1,7,3,6,4,5],\n[3,1,5,4,6,8,7,9,2]]\n\n``````\n\nTry it online!\n\nSolution\n\nIt turns out I made some crucial mistakes: The iteration in `solve` can stop as soon we have tried all possibilities for one coordinate `(x,y)` that is not set yet. If we iterate further over `(x,y)` we get duplicate solutions which makes things blow up, so with following little modification we get results immediately:\n\n``````isEmpty :: Board -> Coordinates -> Bool\nisEmpty b coords = b ! coords == 0\n\n-- check whether board is already full\nfull :: Board -> Bool\nfull b = 0 `notElem` [b ! (i,j) | i<-[0..8], j<-[0..8]]\n\n-- recursion to find all solutions to a given board\nsolve :: Board -> [Board]\nsolve b\n|full b = [b]\n|otherwise = concat[ solve \\$! (insert b (x, y) n)|\n(x,y) <- take 1 empty,\nn <- [1..9],\npossible b (x,y) n]\nwhere empty = [(x,y) | x<-[0..8],y<-[0..8], isEmpty b (x, y)]\n``````\n\nTry it online!"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.8180156,"math_prob":0.990338,"size":4327,"snap":"2023-14-2023-23","text_gpt3_token_len":1481,"char_repetition_ratio":0.12074948,"word_repetition_ratio":0.16041397,"special_character_ratio":0.38825977,"punctuation_ratio":0.26113012,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96687704,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-05-31T02:49:55Z\",\"WARC-Record-ID\":\"<urn:uuid:4df01829-1b1f-46d5-8738-dd47df4d4224>\",\"Content-Length\":\"63788\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:0931abf6-5fa3-45a3-ac5f-5fe48951ae24>\",\"WARC-Concurrent-To\":\"<urn:uuid:6c4d5ea7-e992-4c7f-b778-3cf0f9184beb>\",\"WARC-IP-Address\":\"45.94.58.116\",\"WARC-Target-URI\":\"https://stackcodereview.com/speeding-up-naive-backtracking-sudoku-solver-in-haskell/\",\"WARC-Payload-Digest\":\"sha1:CYB6AR44U5PQAPNJPZIX2DVCIFK4GOXX\",\"WARC-Block-Digest\":\"sha1:CKFJ72WPXT3VWIPNT7VEJOMQZFYPYEYX\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224646257.46_warc_CC-MAIN-20230531022541-20230531052541-00087.warc.gz\"}"} |
https://physics.stackexchange.com/questions/162233/if-we-connect-a-long-wire-to-a-battery-will-battery-produce-more-electrons | [
"# If we connect a long wire to a battery, will battery produce more electrons?\n\nI actually have three related questions: An open circuit chemical cell separates charges creating a surplus of electrons on its negative terminus and a shortage of electrons on its positive terminus. The separation of charges is conducted by chemical reactions. As electrons accumulate on the negative electrode, they repulse each other, so it takes more work to put any additional electrons in the negative electrode, so eventually, after a certain potential difference is achieved, the chemical reactions are inhibited and stopped.\n\n1) If we connect a long wire to the negative terminus, the accumulated electrons will evenly distribute themselves along the wire, because of their mutual repulsion. Thus, the charge density at the negative electrode will decrease. Will this cause the battery to relaunch the chemical reactions and put more electrons in the negative electrode?\n\nLet's say we connected two long wires to a chemical cell, one to it's negative electrode, another to it's positive electrode (the wires do not connect to each other). The negative wire will thus acquire some extra electrons, the positive wire will have a shortage of electrons.\n\n2) If now we disconnect the wires from the battery, will they remain charged? And how is this charge mathematically related to the emf of the battery?\n\nIf we connect the wires to the battery as described above, the potential difference between their termini will be about the same as the emf of the battery.\n\n3) If we disconnect the wires from the battery and they remain charged, what will be the potential difference between the wires?\n\nThank you.\n\nSuppose we take some object, for example a conducting sphere, and start with it at the same electrical potential as its surroundings. Now we add one electron the sphere, and because the sphere now has a higher negative charge that its surroundings the potential of the sphere will be slightly lower (i.e. more negative) than its surroundings. Adding the electron has created a potential difference. Now add a second electron and the potential difference gets bigger. Add more and more electrons and the potential difference keeps getting bigger.\n\nA side note: this is basically how a Van de Graaff generator works. Charge is added to the sphere at the top by mechnical means, and this can create a big enough potential difference to generate some impressive sparks.\n\nAnyhow, if we transfer a charge $Q$ to our metal sphere the resulting voltage change is given by:\n\n$$V = \\frac{Q}{C} \\tag{1}$$\n\nwhere the constant $C$ is called the capacitance of the sphere (strictly speaking it's the self-capacitance). For spheres we can work equation for the out the capacitance fairly easily, and in fact it's given by:\n\n$$C = 4\\pi\\varepsilon_0 r$$\n\nwhere $r$ is the radius of the sphere. For objects with different shapes the equation for the capacitance will be different, but the key point is that any object of any size and shape has some capacitance and we can use equation (1) to work how what voltage difference is created when we add charge to it.\n\nThe point of all this is that the ends of your battery also have a capacitance. Suppose the chemical reaction in the battery transfers a charge $Q$:",
null,
"The if the capacitance of the anode is $C_-$ and the cathode $C_+$, the voltage change due to transfer the charge will be give by equation (1) as shown on the diagram. The total voltage will be:\n\n$$V = V_+ - V_- = \\frac{2Q}{C_b}$$\n\nwhere I've assumed the capacitances of both ends are the same and I've used $C_b$ for them both. What actually happens in a battery is that the reaction runs and transfers charge until the voltage $V$ builds up to the battery voltage. At that point no more charge can be transferred and the reaction stops.\n\nThis probably all seems a bit long winded, but having gone gone through all this we can answer your questions really easily:\n\n1. when you attach a long wire to the ends of the battery you will increase the capacitance. The battery voltage is constant, and we can rearrange equation (1) to give:\n\n$$Q_T = \\tfrac{1}{2} C_T V \\tag{2}$$\n\nwhere $C_T$ is the new bigger total capacitance with the wire attached. So when you increase the capacitance, $C_T$, you increase the charge $Q_T$. That means the reaction in the battery will restart and transfer more electrons until the total charge rises to $C_T$.\n\n1. the electrons spread out across the ends of the battery and the wire. If we call the capacitance of just the wire $C_w$ and the capacitance of the end of the battery $C_b$, then the total capacitance is $C_T = C_w + C_b$. If we put this into equation (2) we get:\n\n\\begin{align} Q_T &= \\tfrac{1}{2} (C_w + C_b) V \\\\ &= \\tfrac{1}{2} C_wV + \\tfrac{1}{2} C_bV \\\\ &= Q_w + Q_b \\tag{3} \\end{align}\n\nwhere $Q_w = \\tfrac{1}{2} C_wV$ is the charge on the wire and $Q = \\tfrac{1}{2} C_bV$ is the charge on the battery. So if you disconnect the wire it keeps a charge $Q_w$. The size of the charge is given by $Q_w = \\tfrac{1}{2} C_wV$.\n\n1. The potential difference between the wires is just the battery voltage $V$. If you connected them together with some suitable voltmeter, that meter would show a voltage of $V$.\n\nIn practice the capacitance of a piece of wire is going to be very small, and the charge you'd build up on the wires will be tiny. Nevertheless, the capacitance will be greater than zero so there will be some charge.\n\n• Wow! Thanks a lot. It will take a while for me to absorb this. – Santa Claus Jan 29 '15 at 17:44\n• Thank you, John Rennie, for such a detailed answer. There is one thing about it that still confuses me. Let's say we attached an open circuit wire to the negative electrode of a battery. Let it all be in the vacuum. The battery puts some extra electrons into the wire, making it negatively charged. We disconnect the wire from the battery. Now we have a wire with extra electrons in it. We take another wire, and connect it to the negative electrode of the battery. Disconnect it. Connect another wire, and so on. – Santa Claus Jan 29 '15 at 18:39\n• Each wire will take the same amounts of electrons from the battery, leaving the battery as a whole positively charged. Thus over time, the positive charge on the battery will increase, making it impossible for the electrons to flow from the battery into a wire. So, this does not seem to work at all unless there is a closed circuit. What do you think? – Santa Claus Jan 29 '15 at 18:40\n• @SantaClaus: the chemical reaction that takes place in a battery is basically an electron pump. It does not create electrons. It just pumps them from the cathode to the anode. If you connect identical pieces of wire to the two terminals the battery will pump electrons from one wire to the other, leaving one wire positively charged and the other with an equal and opposite negative charge. If you only connect one wire (to the anode) then the battery can only pump a very limited number of electrons onto it because it has nowhere to get the electrons from. – John Rennie Jan 29 '15 at 20:11\n• To go back to my answer, if the wire is only on the anode then the capacitance $C_- >> C_+$. That means the voltage $V_+ = Q_+/C_+$ builds up very quickly and stops electrons being pumped. – John Rennie Jan 29 '15 at 20:12\n\nRegarding Point 1:\nYou have to consider the electrical field in the battery, too. As soon as you remove electrons, you get \"holes\" at the positive end of the battery. The more electrons you remove, the bigger gets this field, stopping electrons from further going out of the battery. This would only work if you remove the positive charges (aka \"holes\"), too. Same goes if you connect an additional wire to the positive pole of the battery: It gets more positive charges, but the internal electrical field stops them soon.\nRegarding 2:\nIf you have wires in the air which are charged they will discharge quite fast because of the \"free\" electricity in the air (or, if you touch them, then via your body). Thus rendering 3 not possible (except free floating in the vacuum)...\n\n• Thank you, arc_lupus, for the answer. I see your point, but I am still in doubt. Would you care to elaborate as to what are the exact answers to my three questions? Let it all be in vacuum. – Santa Claus Jan 29 '15 at 17:34\n\n1) Attaching a wire to the electrode will cause more electrons to be generated in the negative side of the battery in order to load up the wire with some of them. They will not generally distribute themselves evenly, though. They will distribute themselves so as to create an equal potential (voltage) at every point along the wire. How many electrons need to be at each point will depend on how far that part of the wire is from the positive electrode and any wires attached to the positive electrode. The further a piece of wire on the negative electrode is from anything connected to the positive electrode, the fewer extra electrons will be on that part of the wire.\n\n2) If we attach a wire to each electrode of the battery, then the wires will be charged with approximately equal and opposite charges. If the wires are moved towards each other, more charges, more electrons in the negative wire and more \"holes\" in the positive wire, will be on them. If they are moved away from each other, the amount of charge goes down. In terms of electronic ciruits the two wires have a capacitance C which is higher when the wires are closer together. The net charge on each wire is $+/- q$ where $q=CV$ where V is the voltage of the battery.\n\n3) If the wires are disconnected from the battery but in that process do not touch a grounded conductor, for example they are disconnected using plastic wire cutters by someone wearing rubber gloves, then the charges on the two wires will stay there, stuck until the wires are touched by a conductor. If the wires are cut from the battery but otherwise left in place, the voltage between the wires will be equal to the voltage of the battery. If the cut wires are moved closer to each other, the voltage will go down. If the cut wires with the charge stuck on them are moved further apart, the voltage between them will go up. Note moving two oppositely charged wires apart from each other costs energy, they attract each other and you have to pull them apart, and the energy you put into this effort is what supplies the energy to raise the voltage between the wires. What is happening here is explained by $q=CV$ except transformed to $V=q/C$. $q$ is not changing as we move the wires closer and further from each other wearing rubber gloves. But since C is changing, the voltage on the wires will be changing.\n\n• Thank you for your answer. Now I see that your answer was correct as well. I wish I could vote it up, but I do not have enough reputation for this. – Santa Claus Jan 30 '15 at 16:38"
]
| [
null,
"https://i.stack.imgur.com/M7hxX.gif",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.92017084,"math_prob":0.98582125,"size":3755,"snap":"2020-45-2020-50","text_gpt3_token_len":947,"char_repetition_ratio":0.15995735,"word_repetition_ratio":0.0059701493,"special_character_ratio":0.2548602,"punctuation_ratio":0.07458564,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99093676,"pos_list":[0,1,2],"im_url_duplicate_count":[null,4,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-11-25T22:27:22Z\",\"WARC-Record-ID\":\"<urn:uuid:313dd605-1aa9-4cb9-81c1-46eb14f6f1a4>\",\"Content-Length\":\"181998\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:cb987d3d-edcd-4004-a2e0-0fbb192e5373>\",\"WARC-Concurrent-To\":\"<urn:uuid:7d2becd0-2a55-442d-90a7-d12797567097>\",\"WARC-IP-Address\":\"151.101.1.69\",\"WARC-Target-URI\":\"https://physics.stackexchange.com/questions/162233/if-we-connect-a-long-wire-to-a-battery-will-battery-produce-more-electrons\",\"WARC-Payload-Digest\":\"sha1:FV4CC7RZZBYBRJVEZ6VNESCQUCDHTL7N\",\"WARC-Block-Digest\":\"sha1:R4XODM25HLYPDFPAJ22DROHGO7JOG6QJ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141184870.26_warc_CC-MAIN-20201125213038-20201126003038-00152.warc.gz\"}"} |
https://www.mathworks.com/matlabcentral/answers/388116-determining-constants-with-optimization-toolkit?s_tid=prof_contriblnk | [
"# Determining Constants with Optimization Toolkit\n\n2 views (last 30 days)\nKelly Catlin on 13 Mar 2018\nAnswered: Alan Weiss on 14 Mar 2018\nI am attempting to determine two constants (E0 and sigma) such that a given equation:\nD=F*(tau^2)*(t1/tau + exp(-t1/tau) -1) + (tau*(t2-t1))/lambda + tau*(sqrt(sigma*tau))*((-1/lambda)*(sqrt(tau/sigma)) - atanh((1/lambda)*sqrt(tau/sigma)) - sqrt(1 + ((tau/(lambda^2)*sigma)-1)*exp((-2/tau)*(T - t2))) + atanh(sqrt(1 + ((tau/(lambda^2)*sigma)-1)*exp((-2/tau)*(T-t2)))));\napproximates a set of points as closely as possible. I was told this might be accomplished through the optimization toolkit, but I cannot see how. The difficulty is that E0 and sigma are required in this code to find the values of D, the value attempting to be matched to the data set:\nx = [43.03,100.9,132,206,284.8,440.7,757.4,1577.5,3386,4345.4,5207.4,7377];\ny = [400,800,1000,1500,2000,3000,5000,10000,20000,25000,30000,42195];\nThe y-values are the values of D. My original thought was to somehow iterate through both all values of T and E0 and sigma simultaneously, then stripping out the best fit at the end. But I am not sure how to accomplish this. This is what I have written, though I have only included initial values for E0 and sigma and have not attempted to iterate-through and sort for best values of these two constants.\nsigma = 0 % for initial iteration only\nE0 = 0 % for initial iteration only\nF = 7.5168\ntau = 1.5011\n%F and tau are known values calculated using nlinfit for 0-200 m distances\n[Tc,Ts]=findTcTs(E0,sigma,F,tau); %from Keller (3.3)\nT = Ts\nT0 = Tc\nfor k = 1:83001 %to determine t1 and t2 for all possible intervals of seconds from 20 seconds to 2 hours\nT0 = t2 %to update accurate initial guess for t2 for next iteration\nT = T + 0.1\nend\n%Equations for determining D (y-values) from t1, t2, lambda (with T being\n%given on each iteration)\nlfn=@(t)(sqrt(tau/sigma*(1-4*exp(-2*(T-t)/tau))));%Eq. (3.15)\nt1fn=@(t)(-tau*log(1-1/(lfn(t)*F)));%Eq. (3.12) (solved in terms of t1)\nEt2=@(t)(real(E0+sigma*t-tau^2/(2*lfn(t)^2)...\n-F^2*tau*(-3*tau/2+t1fn(t)+2*tau*exp(-t1fn(t)/tau)-tau/2*exp(-2*t1fn(t)/tau))...\n-tau/lfn(t)^2*(t-t1fn(t))));%Eq. (3.14). Note real part is taken to avoid complex values.\nt2=fzero(Et2,t20);%solve for t2.\nt1=t1fn(t2);\nlambda=lfn(t2);\nD=F*(tau^2)*(t1/tau + exp(-t1/tau) -1) + (tau*(t2-t1))/lambda + tau*(sqrt(sigma*tau))*((-1/lambda)*(sqrt(tau/sigma)) - atanh((1/lambda)*sqrt(tau/sigma)) - sqrt(1 + ((tau/(lambda^2)*sigma)-1)*exp((-2/tau)*(T - t2))) + atanh(sqrt(1 + ((tau/(lambda^2)*sigma)-1)*exp((-2/tau)*(T-t2)))));\n%D from Keller (3.17)\nmodelfn = @(b,x)(%D eqn above...);\nx = [43.03,100.9,132,206,284.8,440.7,757.4,1577.5,3386,4345.4,5207.4,7377];\ny = [400,800,1000,1500,2000,3000,5000,10000,20000,25000,30000,42195];\nbeta0 = [] %initial guess dependent on number of variables\nbeta = nlinfit(x,y,modelfn,beta0)\n\nAlan Weiss on 14 Mar 2018\nPerhaps this example will help. Or, if you have an Optimization Toolbox™ license, see this Nonlinear Data-Fitting example.\nAlan Weiss\nMATLAB mathematical toolbox documentation"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.7135155,"math_prob":0.99886227,"size":3306,"snap":"2022-27-2022-33","text_gpt3_token_len":1158,"char_repetition_ratio":0.09721381,"word_repetition_ratio":0.10823529,"special_character_ratio":0.4001815,"punctuation_ratio":0.17548387,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9997657,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-09T05:45:23Z\",\"WARC-Record-ID\":\"<urn:uuid:06802463-8fea-43f2-8c9f-f2ed79fec2d8>\",\"Content-Length\":\"120887\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c3ea34bd-634b-48cd-81c6-b047ed77b70e>\",\"WARC-Concurrent-To\":\"<urn:uuid:ee38f317-943b-4d71-91af-08bbbc28d283>\",\"WARC-IP-Address\":\"104.68.243.15\",\"WARC-Target-URI\":\"https://www.mathworks.com/matlabcentral/answers/388116-determining-constants-with-optimization-toolkit?s_tid=prof_contriblnk\",\"WARC-Payload-Digest\":\"sha1:XPT5VI4I2FNRACGFSQJZD6SFBOGHFFDI\",\"WARC-Block-Digest\":\"sha1:LODRMOLHXCQZJPVNDA55VWVBH4IC5KDC\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882570901.18_warc_CC-MAIN-20220809033952-20220809063952-00743.warc.gz\"}"} |
https://kurser.ku.dk/course/nmak14029u | [
"# NMAK14029U Statistics for Bioinformatics and eScience (StatBI/E)\n\nVolume 2021/2022\nEducation\n\nMSc Programme in Bioinformatics\n\nContent\n\nThe course will take the participants through the following content.\n\n• Standard discrete and continuous distributions, descriptive methods, Bayes’ theorem, conditioning, independence, and selected probability results.\n• Simulation.\n• Mean, variance, estimators, two-sample comparisons.\n• Maximum likelihood and least squares estimation.\n• Standard errors and confidence intervals.\n• Bootstrapping.\n• Correlation, (generalized) linear and non-linear regression.\n• The statistical programming language R and R notebooks.\nLearning Outcome\n\nKnowledge:\n\nThe basic concepts in mathematical statistics, such as;\n\n• Probability distributions\n• Standard errors and confidence intervals\n• Maximum likelihood and least squares estimation\n• Bootstrapping\n• Hypothesis testing and p-values\n• (Generalized) Linear and non-linear regression\n\nSkills:\n\n• Master basic implementation in R and generation of analysis reports using R notebooks.\n• Use computer simulations for computations with probability distributions, including bootstrapping.\n• Compute uncertainty measures, such as standard errors and confidence intervals, for estimated parameters.\n• Compute predictions based on regression models taking into account the uncertainty of the predictions.\n• Assess a fitted distribution using descriptive methods.\n• Use general purpose methods, such as the method of least squares and maximum likelihood, to fit probability distributions to empirical data.\n• Summarize empirical data and compute relevant descriptive statistics for discrete and continuous probability distributions.\n\nCompetences:\n\n• Formulate scientific questions in statistical terms.\n• Interpret and report the conclusions of a practical data analysis.\n• Assess the fit of a regression model based on diagnostic quantities and plots.\n• Investigate scientific questions that are formulated in terms of comparisons of distributions or parameters by statistical methods.\n• Investigate scientific questions regarding association in terms of (generalized) linear and non-linear regression models.\nMSc students and BSc students in their 3rd year with MatIntro or an equivalent course.\n\nAcademic qualifications equivalent to a BSc degree is recommended.\n5 hours of lectures and 3 hours of exercises per week. 7 weeks of classes.\n• Category\n• Hours\n• Lectures\n• 35\n• Preparation\n• 120\n• Practical exercises\n• 21\n• Exam\n• 30\n• Total\n• 206\nContinuous feedback during the course of the semester\nCredit\n7,5 ECTS\nType of assessment\nContinuous assessment\nThe exam consists of two parts: (1) two quiz assignments (60%), and (2) a 30-hours written take-home assignment (40%) in course week 8.\nThe first part consist of online assignments in form of quizzes; students need to upload their written derivations for their solutions to the quiz questions and submit their final answers via the quiz form; students need to submit their solutions within a week after each quiz is being made available on the course webpage.\nAll parts need to be completed individually.\nEach part-exam is assessed and weighted individually, and the final grade is determined based on this. Students can pass the exam without passing all part-exams if the total grade is 02 or higher.\nAid\nAll aids allowed\nMarking scale\nCensorship form\nNo external censorship\nOne internal examiner\nRe-exam\n\nThe re-exam of part (1) takes the form of a 20 minutes oral exam without preparation. The re-exam of part (2) takes the same form as the ordinary part-exam.\n\nSuccessfully passed part-exams do not have to be repeated; yet, students can choose to participate in the various part-re-exams in which case they need to inform the course responsible (at least 4 weeks before the re-exam) if they wish to repeat it. Results of part-exams that are not repeated will be included in the assessment of the re-exam with the result obtained when they were taken the first time.\n\nIf ten or fewer students have signed up for the re-exam, the type of assessment may be changed to a 30 minutes oral exam with 30 minutes preparation. All aids allowed.\n\n##### Criteria for exam assesment\n\nIn order to obtain the grade 12 the student should convincingly and accurately demonstrate the knowledge, skills and competences described under Learning Outcome."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.88703656,"math_prob":0.74454683,"size":4688,"snap":"2021-31-2021-39","text_gpt3_token_len":996,"char_repetition_ratio":0.098847136,"word_repetition_ratio":0.008486563,"special_character_ratio":0.20989761,"punctuation_ratio":0.091280654,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9754368,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-22T15:10:21Z\",\"WARC-Record-ID\":\"<urn:uuid:16324929-24e9-45f0-9cd6-1842db5514dd>\",\"Content-Length\":\"38315\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5c67e7f2-e64f-4edb-b401-7c2c1448d01e>\",\"WARC-Concurrent-To\":\"<urn:uuid:f26647a8-2580-4fb6-97ab-821cd44d8c89>\",\"WARC-IP-Address\":\"130.225.88.237\",\"WARC-Target-URI\":\"https://kurser.ku.dk/course/nmak14029u\",\"WARC-Payload-Digest\":\"sha1:LGPWEVPBZW632YMCFLQ4TGE2KGBR5PN2\",\"WARC-Block-Digest\":\"sha1:PKQGN3YAAXPMKAMH7K6THST44AMLPEKC\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780057366.40_warc_CC-MAIN-20210922132653-20210922162653-00404.warc.gz\"}"} |
https://crystal-lang.org/api/1.7.2/Number.html | [
"# abstract struct Number\n\n## Overview\n\nThe top-level number type.\n\nbig/big_float.cr\ncomplex.cr\nhumanize.cr\nnumber.cr\nyaml/to_yaml.cr\n\n## Constant Summary\n\nSI_PREFIXES = `{ {'q', 'r', 'y', 'z', 'a', 'f', 'p', 'n', 'µ', 'm'}, {nil, 'k', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y', 'R', 'Q'} }`\n\nDefault SI prefixes ordered by magnitude.\n\nSI_PREFIXES_PADDED = ```->(magnitude : Int32, _number : Float64) do magnitude = Number.prefix_index(magnitude) {magnitude, ( magnitude == 0 ? \" \" : si_prefix(magnitude))} end```\n\nSI prefixes used by `#humanize`. Equal to `SI_PREFIXES` but prepends the prefix with a space character.\n\n## Macro Summary\n\n• [](*nums)\n\nCreates an `Array` of `self` with the given values, which will be casted to this type with the `new` method (defined in each `Number` type).\n\nCreates a `Slice` of `self` with the given values, which will be casted to this type with the `new` method (defined in each `Number` type).\n\n• static_array(*nums)\n\nCreates a `StaticArray` of `self` with the given values, which will be casted to this type with the `new` method (defined in each `Number` type).\n\n, , , , , ,\n\n, , , , , ,\n\n,\n\n### Instance methods inherited from class `Object`\n\n, , , , , , , , , , , , , , , , , , , , , , , , , ,\n\n,\n\n## Constructor Detail\n\nReturns the additive identity of this type.\n\nFor numerical types, it is the value `0` expressed in the respective type.\n\n``````Int32.additive_identity # => 0\n\ndef self.multiplicative_identity : self #\n\nReturns the multiplicative identity of this type.\n\nFor numerical types, it is the value `1` expressed in the respective type.\n\n``````Int32.multiplicative_identity # => 1\nFloat64.multiplicative_identity # => 1.0``````\n\ndef self.zero : self #\n\nReturns the value zero in the respective type.\n\n``````Int32.zero # => 0\nFloat64.zero # => 0.0``````\n\n## Class Method Detail\n\ndef self.si_prefix(magnitude : Int, prefixes = SI_PREFIXES) : Char | Nil #\n\nReturns the SI prefix for magnitude.\n\n``Number.si_prefix(3) # => 'k'``\n\n## Instance Method Detail\n\ndef *(other : BigFloat) : BigFloat #\n\ndef *(other : Complex) : Complex #\n\ndef +(other : BigFloat) #\n\ndef +(other : Complex) : Complex #\n\ndef + #\n\nReturns `self`.\n\ndef -(other : BigFloat) #\n\ndef -(other : Complex) : Complex #\n\ndef /(other : BigFloat) : BigFloat #\n\ndef /(other : Complex) : Complex #\n\ndef //(other) #\n\nDivides `self` by other using floored division.\n\nThe result will be of the same type as `self`.\n\ndef <=>(other : BigFloat) #\nDescription copied from module Comparable(BigFloat)\n\nThe comparison operator. Returns `0` if the two objects are equal, a negative number if this object is considered less than other, a positive number if this object is considered greater than other, or `nil` if the two objects are not comparable.\n\nSubclasses define this method to provide class-specific ordering.\n\nThe comparison operator is usually used to sort values:\n\n``````# Sort in a descending way:\n[3, 1, 2].sort { |x, y| y <=> x } # => [3, 2, 1]\n\n# Sort in an ascending way:\n[3, 1, 2].sort { |x, y| x <=> y } # => [1, 2, 3]``````\n\ndef <=>(other) : Int32 | Nil #\n\nThe comparison operator.\n\nReturns:\n\n• `-1` if `self` is less than other\n• `0` if `self` is equal to other\n• `1` if `self` is greater than other\n• `nil` if `self` is `NaN` or other is `NaN`, because `NaN` values are not comparable\n\ndef ==(other : Complex) #\n\ndef abs : self #\n\nReturns the absolute value of this number.\n\n``````123.abs # => 123\n-123.abs # => 123``````\n\ndef abs2 #\n\nReturns the square of `self` (`self * self`).\n\n``````4.abs2 # => 16\n1.5.abs2 # => 2.25``````\n\ndef cis : Complex #\n\ndef divmod(number) #\n\nReturns a `Tuple` of two elements containing the quotient and modulus obtained by dividing `self` by number.\n\n``````11.divmod(3) # => {3, 2}\n11.divmod(-3) # => {-4, -1}``````\n\ndef format(io : IO, separator = '.', delimiter = ',', decimal_places : Int | Nil = nil, *, group : Int = 3, only_significant : Bool = false) : Nil #\n\nPrints this number as a `String` using a customizable format.\n\nseparator is used as decimal separator, delimiter as thousands delimiter between batches of group digits.\n\nIf decimal_places is `nil`, all significant decimal places are printed (similar to `#to_s`). If the argument has a numeric value, the number of visible decimal places will be fixed to that amount.\n\nTrailing zeros are omitted if only_significant is `true`.\n\n``````123_456.789.format # => \"123,456.789\"\n123_456.789.format(',', '.') # => \"123.456,789\"\n123_456.789.format(decimal_places: 2) # => \"123,456.79\"\n123_456.789.format(decimal_places: 6) # => \"123,456.789000\"\n123_456.789.format(decimal_places: 6, only_significant: true) # => \"123,456.789\"``````\n\ndef format(separator = '.', delimiter = ',', decimal_places : Int | Nil = nil, *, group : Int = 3, only_significant : Bool = false) : String #\n\nPrints this number as a `String` using a customizable format.\n\nseparator is used as decimal separator, delimiter as thousands delimiter between batches of group digits.\n\nIf decimal_places is `nil`, all significant decimal places are printed (similar to `#to_s`). If the argument has a numeric value, the number of visible decimal places will be fixed to that amount.\n\nTrailing zeros are omitted if only_significant is `true`.\n\n``````123_456.789.format # => \"123,456.789\"\n123_456.789.format(',', '.') # => \"123.456,789\"\n123_456.789.format(decimal_places: 2) # => \"123,456.79\"\n123_456.789.format(decimal_places: 6) # => \"123,456.789000\"\n123_456.789.format(decimal_places: 6, only_significant: true) # => \"123,456.789\"``````\n\ndef humanize(io : IO, precision = 3, separator = '.', delimiter = ',', *, base = 10 ** 3, significant = true, prefixes : Indexable = SI_PREFIXES) : Nil #\n\nPretty prints this number as a `String` in a human-readable format.\n\nThis is particularly useful if a number can have a wide value range and the exact value is less relevant.\n\nIt rounds the number to the nearest thousands magnitude with precision number of significant digits. The order of magnitude is expressed with an appended quantifier. By default, SI prefixes are used (see `SI_PREFIXES`).\n\n``````1_200_000_000.humanize # => \"1.2G\"\n0.000_000_012.humanize # => \"12.0n\"``````\n\nIf significant is `false`, the number of precision digits is preserved after the decimal separator.\n\n``````1_234.567_890.humanize(precision: 2) # => \"1.2k\"\n1_234.567_890.humanize(precision: 2, significant: false) # => \"1.23k\"``````\n\nseparator describes the decimal separator, delimiter the thousands delimiter (see `#format`).\n\nSee `Int#humanize_bytes` to format a file size.\n\ndef humanize(io : IO, precision = 3, separator = '.', delimiter = ',', *, base = 10 ** 3, significant = true, prefixes : Proc) : Nil #\n\nPretty prints this number as a `String` in a human-readable format.\n\nThis is particularly useful if a number can have a wide value range and the exact value is less relevant.\n\nIt rounds the number to the nearest thousands magnitude with precision number of significant digits. The order of magnitude is expressed with an appended quantifier. By default, SI prefixes are used (see `SI_PREFIXES`).\n\n``````1_200_000_000.humanize # => \"1.2G\"\n0.000_000_012.humanize # => \"12.0n\"``````\n\nIf significant is `false`, the number of precision digits is preserved after the decimal separator.\n\n``````1_234.567_890.humanize(precision: 2) # => \"1.2k\"\n1_234.567_890.humanize(precision: 2, significant: false) # => \"1.23k\"``````\n\nseparator describes the decimal separator, delimiter the thousands delimiter (see `#format`).\n\nThis methods yields the order of magnitude and `self` and expects the block to return a `Tuple(Int32, _)` containing the (adjusted) magnitude and unit. The magnitude is typically adjusted to a multiple of `3`.\n\n``````def humanize_length(number)\nnumber.humanize do |magnitude, number|\ncase magnitude\nwhen -2, -1 then {-2, \" cm\"}\nwhen .>=(4)\n{3, \" km\"}\nelse\nmagnitude = Number.prefix_index(magnitude)\n{magnitude, \" #{Number.si_prefix(magnitude)}m\"}\nend\nend\nend\n\nhumanize_length(1_420) # => \"1.42 km\"\nhumanize_length(0.23) # => \"23.0 cm\"``````\n\nSee `Int#humanize_bytes` to format a file size.\n\ndef humanize(precision = 3, separator = '.', delimiter = ',', *, base = 10 ** 3, significant = true, prefixes = SI_PREFIXES) : String #\n\nPretty prints this number as a `String` in a human-readable format.\n\nThis is particularly useful if a number can have a wide value range and the exact value is less relevant.\n\nIt rounds the number to the nearest thousands magnitude with precision number of significant digits. The order of magnitude is expressed with an appended quantifier. By default, SI prefixes are used (see `SI_PREFIXES`).\n\n``````1_200_000_000.humanize # => \"1.2G\"\n0.000_000_012.humanize # => \"12.0n\"``````\n\nIf significant is `false`, the number of precision digits is preserved after the decimal separator.\n\n``````1_234.567_890.humanize(precision: 2) # => \"1.2k\"\n1_234.567_890.humanize(precision: 2, significant: false) # => \"1.23k\"``````\n\nseparator describes the decimal separator, delimiter the thousands delimiter (see `#format`).\n\nSee `Int#humanize_bytes` to format a file size.\n\ndef humanize(io : IO, precision = 3, separator = '.', delimiter = ',', *, base = 10 ** 3, significant = true, &prefixes : Int32, Float64 -> Tuple(Int32, _) | Tuple(Int32, _, Bool)) : Nil #\n\nPretty prints this number as a `String` in a human-readable format.\n\nThis is particularly useful if a number can have a wide value range and the exact value is less relevant.\n\nIt rounds the number to the nearest thousands magnitude with precision number of significant digits. The order of magnitude is expressed with an appended quantifier. By default, SI prefixes are used (see `SI_PREFIXES`).\n\n``````1_200_000_000.humanize # => \"1.2G\"\n0.000_000_012.humanize # => \"12.0n\"``````\n\nIf significant is `false`, the number of precision digits is preserved after the decimal separator.\n\n``````1_234.567_890.humanize(precision: 2) # => \"1.2k\"\n1_234.567_890.humanize(precision: 2, significant: false) # => \"1.23k\"``````\n\nseparator describes the decimal separator, delimiter the thousands delimiter (see `#format`).\n\nThis methods yields the order of magnitude and `self` and expects the block to return a `Tuple(Int32, _)` containing the (adjusted) magnitude and unit. The magnitude is typically adjusted to a multiple of `3`.\n\n``````def humanize_length(number)\nnumber.humanize do |magnitude, number|\ncase magnitude\nwhen -2, -1 then {-2, \" cm\"}\nwhen .>=(4)\n{3, \" km\"}\nelse\nmagnitude = Number.prefix_index(magnitude)\n{magnitude, \" #{Number.si_prefix(magnitude)}m\"}\nend\nend\nend\n\nhumanize_length(1_420) # => \"1.42 km\"\nhumanize_length(0.23) # => \"23.0 cm\"``````\n\nSee `Int#humanize_bytes` to format a file size.\n\ndef humanize(precision = 3, separator = '.', delimiter = ',', *, base = 10 ** 3, significant = true, &) : String #\n\nPretty prints this number as a `String` in a human-readable format.\n\nThis is particularly useful if a number can have a wide value range and the exact value is less relevant.\n\nIt rounds the number to the nearest thousands magnitude with precision number of significant digits. The order of magnitude is expressed with an appended quantifier. By default, SI prefixes are used (see `SI_PREFIXES`).\n\n``````1_200_000_000.humanize # => \"1.2G\"\n0.000_000_012.humanize # => \"12.0n\"``````\n\nIf significant is `false`, the number of precision digits is preserved after the decimal separator.\n\n``````1_234.567_890.humanize(precision: 2) # => \"1.2k\"\n1_234.567_890.humanize(precision: 2, significant: false) # => \"1.23k\"``````\n\nseparator describes the decimal separator, delimiter the thousands delimiter (see `#format`).\n\nThis methods yields the order of magnitude and `self` and expects the block to return a `Tuple(Int32, _)` containing the (adjusted) magnitude and unit. The magnitude is typically adjusted to a multiple of `3`.\n\n``````def humanize_length(number)\nnumber.humanize do |magnitude, number|\ncase magnitude\nwhen -2, -1 then {-2, \" cm\"}\nwhen .>=(4)\n{3, \" km\"}\nelse\nmagnitude = Number.prefix_index(magnitude)\n{magnitude, \" #{Number.si_prefix(magnitude)}m\"}\nend\nend\nend\n\nhumanize_length(1_420) # => \"1.42 km\"\nhumanize_length(0.23) # => \"23.0 cm\"``````\n\nSee `Int#humanize_bytes` to format a file size.\n\ndef humanize(precision = 3, separator = '.', delimiter = ',', *, base = 10 ** 3, significant = true, prefixes : Proc) : String #\n\nPretty prints this number as a `String` in a human-readable format.\n\nThis is particularly useful if a number can have a wide value range and the exact value is less relevant.\n\nIt rounds the number to the nearest thousands magnitude with precision number of significant digits. The order of magnitude is expressed with an appended quantifier. By default, SI prefixes are used (see `SI_PREFIXES`).\n\n``````1_200_000_000.humanize # => \"1.2G\"\n0.000_000_012.humanize # => \"12.0n\"``````\n\nIf significant is `false`, the number of precision digits is preserved after the decimal separator.\n\n``````1_234.567_890.humanize(precision: 2) # => \"1.2k\"\n1_234.567_890.humanize(precision: 2, significant: false) # => \"1.23k\"``````\n\nseparator describes the decimal separator, delimiter the thousands delimiter (see `#format`).\n\nThis methods yields the order of magnitude and `self` and expects the block to return a `Tuple(Int32, _)` containing the (adjusted) magnitude and unit. The magnitude is typically adjusted to a multiple of `3`.\n\n``````def humanize_length(number)\nnumber.humanize do |magnitude, number|\ncase magnitude\nwhen -2, -1 then {-2, \" cm\"}\nwhen .>=(4)\n{3, \" km\"}\nelse\nmagnitude = Number.prefix_index(magnitude)\n{magnitude, \" #{Number.si_prefix(magnitude)}m\"}\nend\nend\nend\n\nhumanize_length(1_420) # => \"1.42 km\"\nhumanize_length(0.23) # => \"23.0 cm\"``````\n\nSee `Int#humanize_bytes` to format a file size.\n\ndef i : Complex #\n\ndef negative? : Bool #\n\nReturns `true` if `self` is less than zero.\n\n``````-1.negative? # => true\n0.negative? # => false\n1.negative? # => false``````\n\ndef positive? : Bool #\n\nReturns `true` if `self` is greater than zero.\n\n``````-1.positive? # => false\n0.positive? # => false\n1.positive? # => true``````\n\ndef round(mode : RoundingMode = :ties_even) : self #\n\nRounds `self` to an integer value using rounding mode.\n\nThe rounding mode controls the direction of the rounding. The default is `RoundingMode::TIES_EVEN` which rounds to the nearest integer, with ties (fractional value of `0.5`) being rounded to the even neighbor (Banker's rounding).\n\ndef round(digits : Number, base = 10, *, mode : RoundingMode = :ties_even) #\n\nRounds this number to a given precision.\n\nRounds to the specified number of digits after the decimal place, (or before if negative), in base base.\n\nThe rounding mode controls the direction of the rounding. The default is `RoundingMode::TIES_EVEN` which rounds to the nearest integer, with ties (fractional value of `0.5`) being rounded to the even neighbor (Banker's rounding).\n\n``-1763.116.round(2) # => -1763.12``\n\ndef sign : Int32 #\n\nReturns the sign of this number as an `Int32`.\n\n• `-1` if this number is negative\n• `0` if this number is zero\n• `1` if this number is positive\n``````123.sign # => 1\n0.sign # => 0\n-42.sign # => -1``````\n\ndef significant(digits, base = 10) #\n\nKeeps digits significant digits of this number in the given base.\n\n``````1234.567.significant(1) # => 1000\n1234.567.significant(2) # => 1200\n1234.567.significant(3) # => 1230\n1234.567.significant(4) # => 1235\n1234.567.significant(5) # => 1234.6\n1234.567.significant(6) # => 1234.57\n1234.567.significant(7) # => 1234.567\n1234.567.significant(8) # => 1234.567\n\n15.159.significant(1, base = 2) # => 16``````\n\ndef step(*, to limit = nil, exclusive : Bool = false, &) : Nil #\n\nPerforms a `#step` in the direction of the limit. For instance:\n\n``````10.step(to: 5).to_a # => [10, 9, 8, 7, 6, 5]\n5.step(to: 10).to_a # => [5, 6, 7, 8, 9, 10]``````\n\ndef step(*, to limit = nil, exclusive : Bool = false) #\n\nPerforms a `#step` in the direction of the limit. For instance:\n\n``````10.step(to: 5).to_a # => [10, 9, 8, 7, 6, 5]\n5.step(to: 10).to_a # => [5, 6, 7, 8, 9, 10]``````\n\ndef to_big_f : BigFloat #\n\ndef to_c : Complex #\n\ndef to_yaml(yaml : YAML::Nodes::Builder) : Nil #\n\ndef zero? : Bool #\n\nReturns `true` if `self` is equal to zero.\n\n``````0.zero? # => true\n5.zero? # => false``````\n\n## Macro Detail\n\nmacro [](*nums) #\n\nCreates an `Array` of `self` with the given values, which will be casted to this type with the `new` method (defined in each `Number` type).\n\n``````floats = Float64[1, 2, 3, 4]\nfloats.class # => Array(Float64)\n\nints = Int64[1, 2, 3]\nints.class # => Array(Int64)``````\n\nmacro slice(*nums, read_only = false) #\n\nCreates a `Slice` of `self` with the given values, which will be casted to this type with the `new` method (defined in each `Number` type).\n\nThe slice is allocated on the heap.\n\n``````floats = Float64.slice(1, 2, 3, 4)\nfloats.class # => Slice(Float64)\n\nints = Int64.slice(1, 2, 3)\nints.class # => Slice(Int64)``````\n\nmacro static_array(*nums) #\n\nCreates a `StaticArray` of `self` with the given values, which will be casted to this type with the `new` method (defined in each `Number` type).\n\n``````floats = Float64.static_array(1, 2, 3, 4)\nfloats.class # => StaticArray(Float64, 4)\n\nints = Int64.static_array(1, 2, 3)\nints.class # => StaticArray(Int64, 3)``````"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.57362235,"math_prob":0.9124929,"size":18710,"snap":"2022-40-2023-06","text_gpt3_token_len":5381,"char_repetition_ratio":0.14973806,"word_repetition_ratio":0.6012312,"special_character_ratio":0.33303046,"punctuation_ratio":0.23079035,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99156445,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-02-06T11:54:23Z\",\"WARC-Record-ID\":\"<urn:uuid:0f7d79e8-b00f-4ffd-ac69-1d291689be6f>\",\"Content-Length\":\"197605\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:912bf168-9285-4bac-a006-f681137955f6>\",\"WARC-Concurrent-To\":\"<urn:uuid:7b6014d4-d184-4592-9fe2-04da6db23ae6>\",\"WARC-IP-Address\":\"18.160.41.58\",\"WARC-Target-URI\":\"https://crystal-lang.org/api/1.7.2/Number.html\",\"WARC-Payload-Digest\":\"sha1:62S6YZH6OUBGX444SYWJR52RR4WOFX4J\",\"WARC-Block-Digest\":\"sha1:RVXA6XAPRCP4TAMXIINX7VKI5V27CJVI\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764500339.37_warc_CC-MAIN-20230206113934-20230206143934-00710.warc.gz\"}"} |
https://fr.mathworks.com/help/finance/valuation-with-missing-data.html | [
"## Valuation with Missing Data\n\n### Introduction\n\nThe Capital Asset Pricing Model (CAPM) is a venerable but often maligned tool to characterize comovements between asset and market prices. Although many issues arise in CAPM implementation and interpretation, one problem that practitioners face is to estimate the coefficients of the CAPM with incomplete stock price data.\n\nThis example shows how to use the missing data regression functions to estimate the coefficients of the CAPM. You can run the example directly using `CAPMdemo.m` located at `matlabroot``/toolbox/finance/findemos`.\n\n### Capital Asset Pricing Model\n\nGiven a host of assumptions that can be found in the references (see Sharpe , Lintner , Jarrow , and Sharpe, et. al. ), the CAPM concludes that asset returns have a linear relationship with market returns. Specifically, given the return of all stocks that constitute a market denoted as M and the return of a riskless asset denoted as C, the CAPM states that the return of each asset Ri in the market has the expectational form\n\n`$E\\left[{R}_{i}\\right]={\\alpha }_{i}+C+{\\beta }_{i}\\left(E\\left[M\\right]-C\\right)$`\n\nfor assets i = 1, ..., n, where βi is a parameter that specifies the degree of comovement between a given asset and the underlying market. In other words, the expected return of each asset is equal to the return on a riskless asset plus a risk-adjusted expected market return net of riskless asset returns. The collection of parameters β1, ..., βn is called asset betas.\n\nThe beta of an asset has the form\n\n`${\\beta }_{i}=\\frac{\\mathrm{cov}\\left({R}_{i},M\\right)}{\\mathrm{var}\\left(M\\right)},$`\n\nwhich is the ratio of the covariance between asset and market returns divided by the variance of market returns.Beta is the price volatility of a financial instrument relative to the price volatility of a market or index as a whole. Beta is commonly used with respect to equities. A high-beta instrument is riskier than a low-beta instrument. If an asset has a beta = 1, the asset is said to move with the market; if an asset has a beta > 1, the asset is said to be more volatile than the market. Conversely, if an asset has a beta < 1, the asset is said to be less volatile than the market.\n\n### Estimation of the CAPM\n\nThe standard CAPM model is a linear model with additional parameters for each asset to characterize residual errors. For each of n assets with m samples of observed asset returns Rk,i, market returns Mk, and riskless asset returns Ck, the estimation model has the form\n\n`${R}_{k,i}={\\alpha }_{i}+{C}_{k}+{\\beta }_{i}\\left({M}_{k}-{C}_{k}\\right)+{V}_{k,i}$`\n\nfor samples k = 1, ..., m and assets i = 1, ..., n, where αi is a parameter that specifies the nonsystematic return of an asset, βi is the asset beta, and Vk,i is the residual error for each asset with associated random variable Vi.\n\nThe collection of parameters α1, ..., αn are called asset alphas. The strict form of the CAPM specifies that alphas must be zero and that deviations from zero are the result of temporary disequilibria. In practice, however, assets may have nonzero alphas, where much of active investment management is devoted to the search for assets with exploitable nonzero alphas.\n\nTo allow for the possibility of nonzero alphas, the estimation model generally seeks to estimate alphas and to perform tests to determine if the alphas are statistically equal to zero.\n\nThe residual errors Vi are assumed to have moments\n\n`$E\\left[{V}_{i}\\right]=0$`\n\nand\n\n`$E\\left[{V}_{i}{V}_{j}\\right]={S}_{ij}$`\n\nfor assets i,j = 1, ..., n, where the parameters S11, ..., Snn are called residual or nonsystematic variances/covariances.\n\nThe square root of the residual variance of each asset, for example, sqrt(Sii) for i = 1, ..., n, is said to be the residual or nonsystematic risk of the asset since it characterizes the residual variation in asset prices that are not explained by variations in market prices.\n\n### Estimation with Missing Data\n\nAlthough betas can be estimated for companies with sufficiently long histories of asset returns, it is difficult to estimate betas for recent IPOs. However, if a collection of sufficiently observable companies exists that can be expected to have some degree of correlation with the new company's stock price movements, that is, companies within the same industry as the new company, it is possible to obtain imputed estimates for new company betas with the missing-data regression routines.\n\n### Estimation of Some Technology Stock Betas\n\nTo illustrate how to use the missing-data regression routines, estimate betas for 12 technology stocks, where a single stock (GOOG) is an IPO.\n\n1. Load dates, total returns, and ticker symbols for the 12 stocks from the MAT-file `CAPMuniverse`.\n\n```load CAPMuniverse whos Assets Data Dates```\n``` Name Size Bytes Class Attributes Assets 1x14 1568 cell Data 1471x14 164752 double Dates 1471x1 11768 double ```\n\nThe assets in the model have the following symbols, where the last two series are proxies for the market and the riskless asset:\n\n```Assets(1:7) Assets(8:14)```\n```ans = 'AAPL' 'AMZN' 'CSCO' 'DELL' 'EBAY' 'GOOG' 'HPQ' ans = 'IBM' 'INTC' 'MSFT' 'ORCL' 'YHOO' 'MARKET' 'CASH' ```\n\nThe data covers the period from January 1, 2000 to November 7, 2005 with daily total returns. Two stocks in this universe have missing values that are represented by `NaN`s. One of the two stocks had an IPO during this period and, so, has significantly less data than the other stocks.\n\n2. Compute separate regressions for each stock, where the stocks with missing data have estimates that reflect their reduced observability.\n\n```[NumSamples, NumSeries] = size(Data); NumAssets = NumSeries - 2; StartDate = Dates(1); EndDate = Dates(end); fprintf(1,'Separate regressions with '); fprintf(1,'daily total return data from %s to %s ...\\n', ... datestr(StartDate,1),datestr(EndDate,1)); fprintf(1,' %4s %-20s %-20s %-20s\\n','','Alpha','Beta','Sigma'); fprintf(1,' ---- -------------------- '); fprintf(1,'-------------------- --------------------\\n'); for i = 1:NumAssets % Set up separate asset data and design matrices TestData = zeros(NumSamples,1); TestDesign = zeros(NumSamples,2); TestData(:) = Data(:,i) - Data(:,14); TestDesign(:,1) = 1.0; TestDesign(:,2) = Data(:,13) - Data(:,14); % Estimate CAPM for each asset separately [Param, Covar] = ecmmvnrmle(TestData, TestDesign); % Estimate ideal standard errors for covariance parameters [StdParam, StdCovar] = ecmmvnrstd(TestData, TestDesign, ... Covar, 'fisher'); % Estimate sample standard errors for model parameters StdParam = ecmmvnrstd(TestData, TestDesign, Covar, 'hessian'); % Set up results for output Alpha = Param(1); Beta = Param(2); Sigma = sqrt(Covar); StdAlpha = StdParam(1); StdBeta = StdParam(2); StdSigma = sqrt(StdCovar); % Display estimates fprintf(' %4s %9.4f (%8.4f) %9.4f (%8.4f) %9.4f (%8.4f)\\n', ... Assets{i},Alpha(1),abs(Alpha(1)/StdAlpha(1)), ... Beta(1),abs(Beta(1)/StdBeta(1)),Sigma(1),StdSigma(1)); end```\n\nThis code fragment generates the following table.\n\n```Separate regressions with daily total return data from 03-Jan-2000 to 07-Nov-2005 ... Alpha Beta Sigma -------------------- -------------------- -------------------- AAPL 0.0012 ( 1.3882) 1.2294 ( 17.1839) 0.0322 ( 0.0062) AMZN 0.0006 ( 0.5326) 1.3661 ( 13.6579) 0.0449 ( 0.0086) CSCO -0.0002 ( 0.2878) 1.5653 ( 23.6085) 0.0298 ( 0.0057) DELL -0.0000 ( 0.0368) 1.2594 ( 22.2164) 0.0255 ( 0.0049) EBAY 0.0014 ( 1.4326) 1.3441 ( 16.0732) 0.0376 ( 0.0072) GOOG 0.0046 ( 3.2107) 0.3742 ( 1.7328) 0.0252 ( 0.0071) HPQ 0.0001 ( 0.1747) 1.3745 ( 24.2390) 0.0255 ( 0.0049) IBM -0.0000 ( 0.0312) 1.0807 ( 28.7576) 0.0169 ( 0.0032) INTC 0.0001 ( 0.1608) 1.6002 ( 27.3684) 0.0263 ( 0.0050) MSFT -0.0002 ( 0.4871) 1.1765 ( 27.4554) 0.0193 ( 0.0037) ORCL 0.0000 ( 0.0389) 1.5010 ( 21.1855) 0.0319 ( 0.0061) YHOO 0.0001 ( 0.1282) 1.6543 ( 19.3838) 0.0384 ( 0.0074) ```\n\nThe `Alpha` column contains alpha estimates for each stock that are near zero as expected. In addition, the t-statistics (which are enclosed in parentheses) generally reject the hypothesis that the alphas are nonzero at the 99.5% level of significance.\n\nThe `Beta` column contains beta estimates for each stock that also have t-statistics enclosed in parentheses. For all stocks but GOOG, the hypothesis that the betas are nonzero is accepted at the 99.5% level of significance. It seems, however, that GOOG does not have enough data to obtain a meaningful estimate for beta since its t-statistic would imply rejection of the hypothesis of a nonzero beta.\n\nThe `Sigma` column contains residual standard deviations, that is, estimates for nonsystematic risks. Instead of t-statistics, the associated standard errors for the residual standard deviations are enclosed in parentheses.\n\n### Grouped Estimation of Some Technology Stock Betas\n\nTo estimate stock betas for all 12 stocks, set up a joint regression model that groups all 12 stocks within a single design. (Since each stock has the same design matrix, this model is actually an example of seemingly unrelated regression.) The routine to estimate model parameters is `ecmmvnrmle`, and the routine to estimate standard errors is `ecmmvnrstd`.\n\nBecause GOOG has a significant number of missing values, a direct use of the missing data routine `ecmmvnrmle` takes 482 iterations to converge. This can take a long time to compute. For the sake of brevity, the parameter and covariance estimates after the first 480 iterations are contained in a MAT-file and are used as initial estimates to compute stock betas.\n\n```load CAPMgroupparam whos Param0 Covar0```\n```Name Size Bytes Class Attributes Covar0 12x12 1152 double Param0 24x1 192 double ```\n\nNow estimate the parameters for the collection of 12 stocks.\n\n```fprintf(1,'\\n'); fprintf(1,'Grouped regression with '); fprintf(1,'daily total return data from %s to %s ...\\n', ... datestr(StartDate,1),datestr(EndDate,1)); fprintf(1,' %4s %-20s %-20s %-20s\\n','','Alpha','Beta','Sigma'); fprintf(1,' ---- -------------------- '); fprintf(1,'-------------------- --------------------\\n'); NumParams = 2 * NumAssets; % Set up grouped asset data and design matrices TestData = zeros(NumSamples, NumAssets); TestDesign = cell(NumSamples, 1); Design = zeros(NumAssets, NumParams); for k = 1:NumSamples for i = 1:NumAssets TestData(k,i) = Data(k,i) - Data(k,14); Design(i,2*i - 1) = 1.0; Design(i,2*i) = Data(k,13) - Data(k,14); end TestDesign{k} = Design; end % Estimate CAPM for all assets together with initial parameter % estimates [Param, Covar] = ecmmvnrmle(TestData, TestDesign, [], [], [],... Param0, Covar0); % Estimate ideal standard errors for covariance parameters [StdParam, StdCovar] = ecmmvnrstd(TestData, TestDesign, Covar,... 'fisher'); % Estimate sample standard errors for model parameters StdParam = ecmmvnrstd(TestData, TestDesign, Covar, 'hessian'); % Set up results for output Alpha = Param(1:2:end-1); Beta = Param(2:2:end); Sigma = sqrt(diag(Covar)); StdAlpha = StdParam(1:2:end-1); StdBeta = StdParam(2:2:end); StdSigma = sqrt(diag(StdCovar)); % Display estimates for i = 1:NumAssets fprintf(' %4s %9.4f (%8.4f) %9.4f (%8.4f) %9.4f (%8.4f)\\n', ... Assets{i},Alpha(i),abs(Alpha(i)/StdAlpha(i)), ... Beta(i),abs(Beta(i)/StdBeta(i)),Sigma(i),StdSigma(i)); end```\n\nThis code fragment generates the following table.\n\n```Grouped regression with daily total return data from 03-Jan-2000 to 07-Nov-2005 ... Alpha Beta Sigma ---------------------- ---------------------------------------- AAPL 0.0012 ( 1.3882) 1.2294 ( 17.1839) 0.0322 ( 0.0062) AMZN 0.0007 ( 0.6086) 1.3673 ( 13.6427) 0.0450 ( 0.0086) CSCO -0.0002 ( 0.2878) 1.5653 ( 23.6085) 0.0298 ( 0.0057) DELL -0.0000 ( 0.0368) 1.2594 ( 22.2164) 0.0255 ( 0.0049) EBAY 0.0014 ( 1.4326) 1.3441 ( 16.0732) 0.0376 ( 0.0072) GOOG 0.0041 ( 2.8907) 0.6173 ( 3.1100) 0.0337 ( 0.0065) HPQ 0.0001 ( 0.1747) 1.3745 ( 24.2390) 0.0255 ( 0.0049) IBM -0.0000 ( 0.0312) 1.0807 ( 28.7576) 0.0169 ( 0.0032) INTC 0.0001 ( 0.1608) 1.6002 ( 27.3684) 0.0263 ( 0.0050) MSFT -0.0002 ( 0.4871) 1.1765 ( 27.4554) 0.0193 ( 0.0037) ORCL 0.0000 ( 0.0389) 1.5010 ( 21.1855) 0.0319 ( 0.0061) YHOO 0.0001 ( 0.1282) 1.6543 ( 19.3838) 0.0384 ( 0.0074) ```\n\nAlthough the results for complete-data stocks are the same, the beta estimates for AMZN and GOOG (the two stocks with missing values) are different from the estimates derived for each stock separately. Since AMZN has few missing values, the differences in the estimates are small. With GOOG, however, the differences are more pronounced.\n\nThe t-statistic for the beta estimate of GOOG is now significant at the 99.5% level of significance. However, the t-statistics for beta estimates are based on standard errors from the sample Hessian which, in contrast to the Fisher information matrix, accounts for the increased uncertainty in an estimate due to missing values. If the t-statistic is obtained from the more optimistic Fisher information matrix, the t-statistic for GOOG is `8.25`. Thus, despite the increase in uncertainty due to missing data, GOOG nonetheless has a statistically significant estimate for beta.\n\nFinally, note that the beta estimate for GOOG is `0.62` — a value that may require some explanation. Although the market has been volatile over this period with sideways price movements, GOOG has steadily appreciated in value. So, it is less tightly correlated with the market, implying that it is less volatile than the market (beta < 1).\n\n### References\n\n Caines, Peter E. Linear Stochastic Systems. John Wiley & Sons, Inc., 1988.\n\n Cramér, Harald. Mathematical Methods of Statistics. Princeton University Press, 1946.\n\n Dempster, A.P, N.M. Laird, and D.B Rubin. “Maximum Likelihood from Incomplete Data via the EM Algorithm.”Journal of the Royal Statistical Society, Series B. Vol. 39, No. 1, 1977, pp. 1-37.\n\n Greene, William H. Econometric Analysis. 5th ed., Pearson Education, Inc., 2003.\n\n Jarrow, R.A. Finance Theory. Prentice-Hall, Inc., 1988.\n\n Lintner, J. “The Valuation of Risk Assets and the Selection of Risky Investments in Stocks.” Review of Economics and Statistics. Vol. 14, 1965, pp. 13-37.\n\n Little, Roderick J. A and Donald B. Rubin. Statistical Analysis with Missing Data. 2nd ed., John Wiley & Sons, Inc., 2002.\n\n Meng, Xiao-Li and Donald B. Rubin. “Maximum Likelihood Estimation via the ECM Algorithm.” Biometrika. Vol. 80, No. 2, 1993, pp. 267-278.\n\n Sexton, Joe and Anders Rygh Swensen. “ECM Algorithms that Converge at the Rate of EM.” Biometrika. Vol. 87, No. 3, 2000, pp. 651-662.\n\n Shafer, J. L. Analysis of Incomplete Multivariate Data. Chapman & Hall/CRC, 1997.\n\n Sharpe, W. F. “Capital Asset Prices: A Theory of Market Equilibrium Under Conditions of Risk.” Journal of Finance. Vol. 19, 1964, pp. 425-442.\n\n Sharpe, W. F., G. J. Alexander, and J. V. Bailey. Investments. 6th ed., Prentice-Hall, Inc., 1999."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.7491135,"math_prob":0.98489684,"size":14376,"snap":"2021-31-2021-39","text_gpt3_token_len":4302,"char_repetition_ratio":0.12969664,"word_repetition_ratio":0.16576332,"special_character_ratio":0.33924598,"punctuation_ratio":0.21449752,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9875551,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-27T06:14:12Z\",\"WARC-Record-ID\":\"<urn:uuid:93321614-e051-4deb-94a9-b548d0ff9eb7>\",\"Content-Length\":\"96107\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8db3a8ac-470b-4ad4-8140-7afadb0ec556>\",\"WARC-Concurrent-To\":\"<urn:uuid:d2b7e4ce-283b-41eb-8dcd-46e3ce35d9c6>\",\"WARC-IP-Address\":\"23.212.144.59\",\"WARC-Target-URI\":\"https://fr.mathworks.com/help/finance/valuation-with-missing-data.html\",\"WARC-Payload-Digest\":\"sha1:Z7MGUXPAPNV4TD45VQYRYVAME3D3JHSD\",\"WARC-Block-Digest\":\"sha1:XTVOYSVVJRIOMSHIGBANHWISQ7LMII62\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780058373.45_warc_CC-MAIN-20210927060117-20210927090117-00076.warc.gz\"}"} |
https://pacforest.com/index.php?app=cms&ns=display&ref=Treeheight | [
"Login to enhance your online experience. Login or Create an Account\nShopping Cart",
null,
"0 Items (Empty)\n\nQuick Store Search",
null,
"",
null,
"# ABC's of Measuring Tree Heights\n\nWith a clinometer, a measuring tape, and a little mathematics (calculators are OK), it is relatively easy to determine tree heights. First, and the clinometer. It has two scales, most often a percent and a degree combo. The degree scale (left side) is necessary to convert slope distance from the tree to horizontal distance. If you are on flat ground, or level with the tree, no conversion is needed. The percent scale (right side) is used to take the height of the tree. Now put the clino to your right eye, keep BOTH eyes open and view the horizontal line. This is what you \"aim\" with. Practice superimposing that line with your left eye while tilting you head back and forth. You will need to \"shoot\" the top of the tree and base of the tree, requiring a decent view of each. The readings you take are based on being 100ft from the tree (this is an absolute requirement to remember, based on the science of math). Don't worry if you can't measure 100ft from the tree. For example: if you measure 75ft, you would multiply your result by 0.75; or if 48ft, you would multiply by 0.48 to determine the actual height.\n\nNow you are ready.\nLet's start on flat ground and measure 65ft from the tree. Look eye level at the tree (percent scale at Zero). You will have a minus percent to the base (usually about 8%) and a plus percent to the top. These will be added together (above and below eye level) to get total height. Now, let's say the top measurement is +132 and the base measurement is -8; your total is 140. Multiply that by your distance from the tree (in this example 0.65) to get a total height of 91ft for the tree.\nNow you are on steep ground, and best view of the tree is sidehill AND uphill, so your distance measurement is slope and not horizontal, and must be converted. Take a reading using the left scale (degree) at approximately your eye height relative to the tree.\n(A conversion scale is on the back of the clino, expressed in decimals.)",
null,
""
]
| [
null,
"https://pacforest.com/media/ecom/images/cart.png",
null,
"https://pacforest.com/media/cms/banners/banner1b.gif",
null,
"https://pacforest.com/media/cms/banners/banner2.gif",
null,
"https://pacforest.com/media/core/kryptronic-cornerlogo.png",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.9383028,"math_prob":0.932339,"size":1913,"snap":"2019-35-2019-39","text_gpt3_token_len":451,"char_repetition_ratio":0.13881613,"word_repetition_ratio":0.0,"special_character_ratio":0.23784631,"punctuation_ratio":0.110275686,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95104176,"pos_list":[0,1,2,3,4,5,6,7,8],"im_url_duplicate_count":[null,1,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-19T04:40:49Z\",\"WARC-Record-ID\":\"<urn:uuid:85ecf475-a792-474f-88dd-6190652d3db8>\",\"Content-Length\":\"43625\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d4787bcb-95ee-4b39-ad64-48cf2d94b2df>\",\"WARC-Concurrent-To\":\"<urn:uuid:90550e59-97f9-415e-bcc3-c566ebe35062>\",\"WARC-IP-Address\":\"209.164.108.31\",\"WARC-Target-URI\":\"https://pacforest.com/index.php?app=cms&ns=display&ref=Treeheight\",\"WARC-Payload-Digest\":\"sha1:KKBQMDKFOKL26QZERJR5SK763OSZK4OK\",\"WARC-Block-Digest\":\"sha1:ZBKXG3BISD7GP6DTK7IB4J2JW2X7WRJY\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514573439.64_warc_CC-MAIN-20190919040032-20190919062032-00322.warc.gz\"}"} |
https://cs.stackexchange.com/questions/141101/create-a-data-structure-with-d-successor-running-in-o1 | [
"# Create a data structure with D-SUCCESSOR running in $O(1)$\n\nGiven an integer $$d$$, I need to devise a data structure $$S$$ with the following actions:\n\n1. BUILD(S): build the data structure $$S$$ from $$n$$ elements in $$\\Theta(n\\lg{n})$$\n2. INSERT(S, k): insert a new element to $$S$$ with the key $$k$$ in $$\\Theta(\\lg{n} + d)$$\n3. DELETE(S, k): delete the element in $$S$$ with the key $$k$$ in $$\\Theta(\\lg{n} + d)$$\n4. D-SUCCESSOR(S, p): find the $$d$$ successor of the element pointed by $$p$$ in $$\\Theta(1)$$\n5. K-SUCCESSOR(S, p, k): find the $$k$$ successor of element pointed by $$p$$ in $$\\Theta(\\lg{n})$$\n\n$$d$$ is part of the data structure and I can't treat it like a const in efficiency calculations. Also I need to use minimal space.\n\nSuccessor is defined as the next element after given element $$p$$ if all $$n$$ elements in $$S$$ were ordered, thus the k-successor is defined recursively as the successor for the (k-1)-successor, and the d-successor is the k-successor when $$k=d$$\n\nMy idea is to use an Order-Static tree, OST, because it can do actions 1-3 & 5 in $$\\Theta(n\\lg{n})$$ and $$\\Theta(n)$$ respectively, and I'm left with action 4, and due to the requirement for $$\\Theta(1)$$ I summarized that each node in the tree needs to have a pointer to its d-successor, and maintaining it is what adds $$d$$ to the insert and delete actions. But maintaining this additional pointer means I need to update it after every insert and delete for all $$d$$ predecessors of the element added (or deleted) doing this using OST existing functions will add $$\\Theta(d\\lg{n})$$ to both insert and delete making them run in more than $$\\Theta(\\lg{n} + d)$$.\n\nSo I've decided to add another pointer, in addition to the one to the d-successor. The second pointer will point to the predecessor of each node. In insert after adding the new node to the tree I get the new node successor in $$\\Theta(\\lg{n})$$ and update its and the new node's predecessor pointer, then I loop to the previous $$d$$ predecessors and for each I update the d-successor pointer to be pointer of its predecessor with the last one (the d-predecessor) pointing to the new node. I do the same for deletion, and now both run in $$\\Theta(\\lg{n} + d)$$.\n\nThough I found the desired $$S$$ I'm wondering if I can make it without adding more than 1 pointer? maybe even without additional pointers at all?\n\n• What's a $d$-successor? What's a $k$-successor? Where do the pointers $p$ come from? Jun 8 at 0:33\n• k-successor is the k-th successor to the element pointed by $p$, e.g if $p$ points to the first element in the tree in-order traversal and $k=1$ then the k-successor is the second element in the traversal, and if $k=2$ then the k-successor is the third, etc. the d-successor is the k-successor when $k=d$. The pointers $p$ are passed as arguments to the functions, the user can get them by using the tree search function, or calling successor/predecessor calls on available pointers, e.g the tree root Jun 8 at 8:30\n• Thanks, please add this info to the question. \"in the tree in-order traversal\" -- what tree? And what order is it kept in? E.g., are the keys taken from some ordered universe? Or insertion order? Jun 8 at 8:47\n• \"what tree\" the one I describe as the my data structure $S$, in this case an Order-Static tree. It is inferred that the elements in the data structure has an order function, i.e you can do $k_1 < k_2$, otherwise actions like successor are meaningless, and I don't think the identity of said order function is relevant to the discussion Jun 8 at 9:49\n• No tree is described as part of the problem specification -- that's just something you decided to use to implement the spec, so it can't be used to define the term \"successor\", which is part of the spec. \"Successor\" could mean a variety of things, including at least the 2 examples I gave. Jun 8 at 13:38"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.91632855,"math_prob":0.99760056,"size":2244,"snap":"2021-31-2021-39","text_gpt3_token_len":588,"char_repetition_ratio":0.17321429,"word_repetition_ratio":0.035897437,"special_character_ratio":0.2704991,"punctuation_ratio":0.069716774,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99901927,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-21T16:27:47Z\",\"WARC-Record-ID\":\"<urn:uuid:f7111d64-dad6-4730-9e0f-6e0812fa8c2a>\",\"Content-Length\":\"164499\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6778fb85-678e-4ce0-928d-cef189aa7d2d>\",\"WARC-Concurrent-To\":\"<urn:uuid:507543d8-23a0-4f59-9de9-000b117407e5>\",\"WARC-IP-Address\":\"151.101.1.69\",\"WARC-Target-URI\":\"https://cs.stackexchange.com/questions/141101/create-a-data-structure-with-d-successor-running-in-o1\",\"WARC-Payload-Digest\":\"sha1:TF3IESYC4XAA5AT7V526YPLQTY4XHKQJ\",\"WARC-Block-Digest\":\"sha1:UVBJZR3XIQYZFLDXOLQBDAIBBFELQA6U\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780057225.57_warc_CC-MAIN-20210921161350-20210921191350-00559.warc.gz\"}"} |
https://michaelacheong.com/discrete-maths-ii/ | [
"## I Basic Counting (pg. 5)#\n\n### 1 Selections (pg. 5)#\n\n#### 1.1-1.4 Basic counting formulas#\n\nGiven a set of $$n$$ objects, the number of ways of selecting $$r$$ objects can be found according to the table below.\n\nNo repetitionWith repetition\nOrder matters (Ordered)$$\\frac{n!}{(n-r)!}$$$$n^r$$\nOrder does not matter (Unordered)$$\\binom{n}{r} = \\frac{n!}{(n-r)!r!}$$$$\\binom{n+r-1}{r} = \\binom{n+r-1}{n-1}$$\n\n#### 1.4 Intuition for unordered selections with repetition#\n\nThis is the balls and buckets representation. If we wish to select $$r$$ objects from an $$n$$-set, we essentially want to count the number of ways we can split up the $$n$$ objects (i.e. the balls) into $$r$$ parts (i.e. the buckets). Say we have $$n=8$$ balls and set $$r=3$$. Under the original question, we ask\" “how many unordered selections of 3 objects from 8 objects are there with repetition allowed?”. Under this buckets and balls framework, we ask, “how many ways can we fill 3 buckets with 8 balls, if some of those buckets can be empty?”.\n\n(to edit)\n\n(to edit)\n\n### 2 Combinatorial Identities (pg. 9)#\n\nPascal’s Triangle\n\n• $$\\binom{n+1}{r} = \\binom{n}{r} + \\binom{n}{r-1}$$\n• $$\\left(x+y\\right)^n = \\sum_{r=0}^{n} \\binom{n}{r} x^{n}y^{n-r}$$\n• $$\\sum_{r=0}^{n} \\binom{n}{r} = 2^n$$\n• $$\\binom{n}{r} = \\sum_{i=0}^{n-1} \\binom{i}{r-1}$$\n• Equivalently, can index from $$r-1$$ to $$n$$\n• $$\\sum_{r=0}^{n} (-1)^{r}\\binom{n}{r}=0$$\n\n## Upcoming#\n\n• 6 Partially Ordered Sets (pg. 20)\n• 7 M¨obius Function for Posets (pg. 22)\n• III Counting with Groups (pg. 24)\n• 8 Symmetry Groups and Group Actions (pg. 24)\n• 9 Orbits and Stabilizers (pg. 26)\n• 10 The Counting Theorem (pg. 28)\n• IV Generating Functions and Partitions (pg. 31)\n• 11 Ordinary Generating Functions (pg. 31)\n• 12 Exponential Generating Functions (pg. 36)\n• 13 Linear Recurrence Relations (pg. 40)\n• 14 Partitions (pg. 44)\n• V Classification of surfaces (pg. 49)\n• 15 Basic concepts (pg. 49)\n• 16 The big questions (pg. 51)\n• 17 More surfaces (pg. 52)\n• 18 Invariants and Euler characteristic (pg. 54)\n• 19 Small polygonal constructions (pg. 56)\n• 20 Orientability (pg. 58)\n• 21 Operations on polygons (pg. 59)\n• 22 Word representations (pg. 61)\n• 23 Rules for words (pg. 63)\n• 24 The classification theorem (pg. 66)\n• VI Graph Theory (pg. 70)\n• 25 Introduction to Graphs (pg. 70)\n• 26 Walks in graphs (pg. 75)\n• 27 Trees (pg. 78)\n• 28 Matchings (pg. 80)\n• 29 Graph colouring (pg. 82)\n• VII Graph Algorithms (pg. 87)\n• 30 Shortest Paths (pg. 87)\n• 31 Spanning Trees (pg. 88)\n• 32 Finding patterns in strings (pg. 89)\n• 33 Algorithms for maximum matchings in bipartite graphs (pg. 90)\n• VIII Design Theory (pg. 95)\n• 34 Introduction to Combinatorial Design Theory (pg. 95)\n• 35 Latin Squares (pg. 96)\n• 36 Steiner Triple Systems (pg. 97)\n\nEverything sourced from my discrete maths course unless stated otherwise.\n\nRelated notes:"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.7494879,"math_prob":0.99764585,"size":3059,"snap":"2023-40-2023-50","text_gpt3_token_len":1037,"char_repetition_ratio":0.14500818,"word_repetition_ratio":0.0040241447,"special_character_ratio":0.36940175,"punctuation_ratio":0.12146422,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99975616,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-28T15:18:25Z\",\"WARC-Record-ID\":\"<urn:uuid:210400c8-8dce-40d5-b175-c7a6c84cf5f3>\",\"Content-Length\":\"24452\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:cd8a6a74-d1a2-4e8d-ac8a-5ccd6297e765>\",\"WARC-Concurrent-To\":\"<urn:uuid:37d1a43b-eafc-4b12-9cf6-7d85110e24f7>\",\"WARC-IP-Address\":\"185.199.109.153\",\"WARC-Target-URI\":\"https://michaelacheong.com/discrete-maths-ii/\",\"WARC-Payload-Digest\":\"sha1:TVS7QE6DVIHXXZ6DAFRXUSOV6A6DK3MY\",\"WARC-Block-Digest\":\"sha1:FWPB76SZSBCZ777BIQF3O76VU5CKPYBZ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233510412.43_warc_CC-MAIN-20230928130936-20230928160936-00207.warc.gz\"}"} |
https://ncatlab.org/nlab/show/relevance+monoidal+category | [
"# nLab relevance monoidal category\n\nRelevance monoidal categories\n\n### Context\n\n#### Monoidal categories\n\nmonoidal categories\n\n# Relevance monoidal categories\n\n## Idea\n\nA relevance monoidal category is a symmetric monoidal category which has diagonal maps $A\\to A\\otimes A$, but not projection maps $A \\to I$. (If it had both, it would be a cartesian monoidal category; while if it had projection maps but not diagonals it would be a semicartesian monoidal category.) The name comes from the connection with relevance logic, and seems to have been introduced in (Petrić 2002).\n\n## Definition\n\nGiven a symmetric monoidal category $C$, let $CCSG(C)$ denote the category of commutative co-semigroups in $C$, i.e. objects $A$ equipped with a “comultiplication” $A\\to A\\otimes A$ that is coassociative and cocommutative. There is an obvious forgetful functor $CCSG(C) \\to C$. Moreover, $CCSG(C)$ has a symmetric monoidal structure making the forgetful functor strict symmetric monoidal: if $A$ and $B$ are cosemigroups then $A\\otimes B \\to (A\\otimes A)\\otimes (B\\otimes B) \\cong (A\\otimes B) \\otimes (A\\otimes B)$ makes $A\\otimes B$ into a commutative cosemigroup as well, and the unit is the unit object $I$ of $C$ with its a canonical commutative cosemigroup structure given by the coherence isomorphism $I\\cong I\\otimes I$.\n\nWe say that $C$ is a relevance monoidal category if this functor $CCSG(C) \\to C$ is equipped with a strict section that is also a strict symmetric monoidal functor. That is, we have a functor assigning to every object of $C$ a commutative cosemigroup structure on that object, in such a way that every morphism becomes a cosemigroup map, the structure on $A\\otimes B$ is induced from those on $A$ and $B$ as above, and the structure on $I$ is the canonical one. This amounts to a natural assignment of “diagonal maps” $A\\to A\\otimes A$ satisfying some straightforward axioms.\n\n(If we replaced cosemigroups with comonoids, then the analogous property would characterize cartesian monoidal categories, while if instead we used copointed objects — that is, the slice $C/I$ — it would characterize semicartesian monoidal categories. Interestingly, unlike in those two cases, the relevance case doesn’t seem to imply any universal property for the monoidal product or the unit.)\n\nOne can of course additionally ask that a relevance monoidal category be closed, or that it have finite products or coproducts. One might also ask it to be star-autonomous, although in that case there might need to be some compatibility between the star-autonomy and the relevance.\n\n## Examples\n\n• The category of pointed sets, which is equivalent to the category of sets and partial functions, is a relevance monoidal category with its pointed smash product (Došen-Petrić 2007). The unit for this tensor product is not the terminal object, which is the 1-element pointed set, but instead the 2-element pointed set, so this relevance monoidal category is not cartesian. The category of pointed sets can also be given a cartesian monoidal structure.\n\n• Any Church monoid is a relevance monoidal category whose underlying category is a poset.\n\n• B. Jacobs, Semantics of Weakening and Contraction, Annals of Pure and Applied Logic, volume 69, Issue 1, (1994) pp.73-106, https://doi.org/10.1016/0168-0072(94)90020-5\n\n• Z. Petrić, Coherence in Substructural Categories, Studia Logica volume 70, (2002) pp.271–296, doi:10.1023/A:1015186718090, arXiv:math/0006061\n\n• K. Došen and Z. Petrić, Relevant Categories and Partial Functions, Publications de l’Institut Mathématique, Nouvelle Série, Vol. 82(96), pp. 17–23 (2007) (doi:10.2298/PIM0796017D, arxiv:math/0504133)"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.8828669,"math_prob":0.9578156,"size":3391,"snap":"2022-27-2022-33","text_gpt3_token_len":814,"char_repetition_ratio":0.15293771,"word_repetition_ratio":0.0058708414,"special_character_ratio":0.23031554,"punctuation_ratio":0.1399371,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9934493,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-03T21:48:17Z\",\"WARC-Record-ID\":\"<urn:uuid:ba796fb1-f235-485e-904b-a8388e5ce3cd>\",\"Content-Length\":\"33030\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5c903592-8880-4741-b79b-49d039b47d9c>\",\"WARC-Concurrent-To\":\"<urn:uuid:1fe86a0d-71e0-41d4-8fe3-6cd2ade01863>\",\"WARC-IP-Address\":\"104.21.17.153\",\"WARC-Target-URI\":\"https://ncatlab.org/nlab/show/relevance+monoidal+category\",\"WARC-Payload-Digest\":\"sha1:36IQ6ZB7ZNWDUYBNNYID346PYSAJ5MRX\",\"WARC-Block-Digest\":\"sha1:4YYFKIEVNUXJHLMAAY2URKJATUWS4XBG\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656104249664.70_warc_CC-MAIN-20220703195118-20220703225118-00232.warc.gz\"}"} |
https://www.slideread.com/slide/powerpoint-presentation-ktie6z | [
"# SWBAT: Construct and interpret dotplots, stemplots, and histograms.",
null,
"SWBAT: Construct and interpret dotplots, stemplots, and histograms. Dot Plot: above its Each data value is shown as a dot location on a number line. 1. Draw a horizontal axis (a number line) and label it with the variable name. 2. Scale the axis from the minimum to the maximum value. 3. Mark a dot above the location on the horizontal axis corresponding to each data value. EXAMPLE: How\n\ngood was the 2004 U.S. womens soccer team? With players like Brandi Chastain, Mia Hamm, and Briana Scurry, the team put on an impressive showing en route to winning the gold medal at the 2004 Olympics in Athens. Here are data on the number of goals scored by the team in 34 games played during the 2004 season SWBAT: Construct and interpret dotplots, stemplots, and histograms. When examining the distribution of quantitative variables look for patterns in: Shape: overall pattern of the data Symmetric: the right and left sides of the graph are approx. mirror images of each other Skewed: The direction of skewness is the direction of the long tail Skewed left Skewed right\n\nCenter: Spread: Point that divides the data roughly in half (median) The spread of a distribution tells us how much variability there is in the data. Range of values from smallest to largest. Outliers: A potential outlier is a value that stands out from the rest of the distribution SWBAT: Construct and interpret dotplots, stemplots, and histograms. EXAMPLE: The table below displays the EPA (Environmental Protection Agency) estimates of highway gas mileage in miles per gallon(mpg) for a sample of 24 model year 2009 midsize cars.\n\nDescribe: ShapeCenterSpreadOutliers- SWBAT: Construct and interpret dotplots, stemplots, and histograms. Stem Plot: Stemplots give us a quick picture of the small distribution while including the actual numerical values. 1. Separate each observation into a stem (all but the final digit) and a leaf (the final digit). 2. Arrange the leaves in increasing order out from the stem. 3.Provide a key explains in shoes context\n\nwhat the stems and leaves EXAMPLE: Howthat many pairs of does a typical teenager have?represent. To find out, a group of AP Statistics students conducted a survey. They selected a random sample of 20 female students from their school. Then they recorded the number of pairs of shoes that each respondent reported having. Here are the data:\n\nSWBAT: Construct and interpret dotplots, stemplots, and histograms. Splitting stems: A method for spreading out a stem plot that has too few stems. SWBAT: Construct and interpret dotplots, stemplots, and histograms. Back-to-back stem plot: Used to compare the distribution of a quantitative variable for two groups. EXAMPLE: The AP Statistics students in the previous example also collected data from a random sample of 20 male students at their school. Here are the numbers of pairs of shoes reported by each male in the sample: a) Create a stem plot of the data above.\n\nb) Using the female data as well, lets create a back-to-back stem plot comparing males and females. SWBAT: Construct and interpret dotplots, stemplots, and histograms. Histogram: Displays the distribution of a quantitative variable 1. Divide the range of the data into classes of equal width 2. Find the count of individuals in each class 3. Label and scale your axes and draw the histogram EXAMPLE: The table below presents the data for all 50 states of the percent of residents who were born outside of the United States."
]
| [
null,
"https://cdn.slideread.com/cover/powerpoint-presentation-ktie6z.jpg",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.91844004,"math_prob":0.92735964,"size":323,"snap":"2020-24-2020-29","text_gpt3_token_len":64,"char_repetition_ratio":0.037617553,"word_repetition_ratio":0.0,"special_character_ratio":0.18266253,"punctuation_ratio":0.24561404,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9755963,"pos_list":[0,1,2],"im_url_duplicate_count":[null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-07-16T14:51:40Z\",\"WARC-Record-ID\":\"<urn:uuid:243fbe60-e034-4571-8998-afb05c2257f8>\",\"Content-Length\":\"34126\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7224f57d-8eed-4455-93a6-7bb7af72b48b>\",\"WARC-Concurrent-To\":\"<urn:uuid:ccc32c1d-23f0-477d-bca3-a1256e41de0d>\",\"WARC-IP-Address\":\"104.31.82.54\",\"WARC-Target-URI\":\"https://www.slideread.com/slide/powerpoint-presentation-ktie6z\",\"WARC-Payload-Digest\":\"sha1:7IPUNCLVNGO32E7YM4GF724PDRJ4E4HY\",\"WARC-Block-Digest\":\"sha1:2JBAVXDND4752Q5JL5ZLGM73AOT5BU25\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593657169226.65_warc_CC-MAIN-20200716122414-20200716152414-00052.warc.gz\"}"} |
https://math.stackexchange.com/questions/79325/singular-functions | [
"# Singular functions\n\nA monotone function $f$ on $[a,b]$ is called singular if $f'=0$ almost everywhere.\n\nLet $f$ be a nondecreasing function on $[a,b]$ such that given $\\epsilon~,~\\delta\\gt 0$, $\\exists$ a finite collection $\\{[y_k,x_k]\\}$ of nonoverlapping intervals such that $$\\sum |x_k-y_k|\\lt \\delta~~~~~\\text{and}~~~~\\sum\\left(f(x_k)-f(y_k)\\right)\\gt f(b)-f(a)-\\epsilon.$$\nI would like to show that $f$ is singular.\n\nAttempt:\n\nFrom a previous exercise, I showed that a monotone function $f$ can be written as the sum of an absolutely continuous function, $g$ and a singular function, $h$. Thus $$f = g + h ,~~~\\text{where}~~g=\\int_a^x f' .$$\nMy goal is to show that $g=0$ almost everywhere. Let $I=\\bigcup (y_k,x_k).$ Then $$\\int_I f' = \\sum \\int_{(x_k,y_k)}~f' = \\sum\\left(f(x_k)-f(y_k)\\right)\\lt \\epsilon.$$\nNow, I know that since $f'$ is integrable, there is an $\\epsilon$ such that $$\\int_{[a,b]\\setminus I}~f'\\lt \\epsilon.$$ But \\begin{align*} 0\\leq \\int_a^b f' & = \\int_I f'+\\int_{[a,b]\\setminus I}~f'\\\\ & \\lt \\epsilon + \\epsilon\\\\ & = 2\\epsilon. \\end{align*}\nSince $\\epsilon$ is arbitrary, we can let $\\epsilon \\rightarrow 0$ and thus $$\\int_a^b f'=0 ~~\\text{and }~~g = 0.$$\n\nIs what I've done right? Is there another way of approaching the problem?\nThanks.\n\n• What are $(\\alpha_i,\\beta_i)$? – Jonas Meyer Nov 5 '11 at 21:36\n• $\\int_{(x_k,y_k)}~f' = f(x_k)-f(y_k)$ is incorrect; is this a typo? In any case, it is true that $\\int_I f'$ can be made arbitrarily small, but this is by choosing $\\delta$ small enough and using integrability of $f'$; I do not see justification in your solution. – Jonas Meyer Nov 5 '11 at 21:39\n• $\\bigcup(\\alpha_i,\\beta_i)=[a,b]\\setminus I$...so how do I justify that there is such a $\\delta$? – Nana Nov 5 '11 at 22:23\n• $[a,b]\\setminus I$ will not be a union of open intervals. (So you could just leave it as $[a,b]\\setminus I$ or give it a shorter name if you want.) As for the question in your comment, see math.stackexchange.com/questions/40384/…. – Jonas Meyer Nov 5 '11 at 22:27\n• okay. Thanks for the link. – Nana Nov 5 '11 at 22:38\n\nGiven $\\varepsilon>0$, there is a $\\delta>0$ such that $\\int_I f'<\\varepsilon$ whenever $m(I)<\\delta$. Thus you can choose $I=\\cup(x_k,y_k)$ such that $\\int_I f'<\\varepsilon$ and $\\sum_k f(y_k)-f(x_k)>f(b)-f(a)-\\varepsilon$.\n\\begin{align*} &f(b)-f(a)-(h(b)-h(a))\\\\ &\\leq f(b)-f(a) - (\\sum_k h(y_k)-h(x_k))\\\\ &<\\sum_k(g(y_k)-g(x_k))+\\varepsilon\\\\ &=\\int_I f' +\\varepsilon\\\\ &<2\\varepsilon. \\end{align*}\nSince $\\varepsilon$ was arbitrary, this implies that $f(b)-f(a)=h(b)-h(a)$, so $g(b)-g(a)=0$, which in turn implies that $g=0$ everywhere. (Note how monotonicity is used here several times.)\n• Assume that there are $N$ intervals arranged so that $x_1<y_1\\leq x_2<y_2\\leq x_3<y_3\\leq\\cdots \\leq x_N<y_N$. Then $(h(y_1)-h(x_1))+(h(y_2)-h(x_2))+\\cdots+(h(y_N)-h(x_N))$ $=h(y_N)+(h(y_{N-1})-h(x_N))+\\cdots+(h(y_1)-h(x_2))-h(x_1)$ $\\leq h(y_N)-h(x_1)\\leq h(b)-h(a)$ because $h$ is increasing. Perhaps more clearly (but less precisely), $h(b)-h(a)$ gives the total amount that $h$ changes, whereas $\\sum_k h(y_k)-h(x_k)$ only counts the change that $h$ does on some nonoverlapping subintervals of $[a,b]$. – Jonas Meyer Nov 14 '11 at 18:33"
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.7543136,"math_prob":0.9999714,"size":1285,"snap":"2021-31-2021-39","text_gpt3_token_len":445,"char_repetition_ratio":0.12334114,"word_repetition_ratio":0.0,"special_character_ratio":0.36342412,"punctuation_ratio":0.12355212,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000095,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-07-31T08:03:22Z\",\"WARC-Record-ID\":\"<urn:uuid:9a2144c9-cf5b-443c-8bb8-a762f558f494>\",\"Content-Length\":\"171078\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:bf99cbe4-11fe-4f53-a1c4-d9f493a62ab9>\",\"WARC-Concurrent-To\":\"<urn:uuid:f58880a5-dfe9-4594-a469-a8c7894a5069>\",\"WARC-IP-Address\":\"151.101.65.69\",\"WARC-Target-URI\":\"https://math.stackexchange.com/questions/79325/singular-functions\",\"WARC-Payload-Digest\":\"sha1:X7DEPG6Q4GBN76DDXRTTYWEHQXSM2CW7\",\"WARC-Block-Digest\":\"sha1:FB65R3EHSVPBLRKCLUOCUCB2YM7NH2IJ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-31/CC-MAIN-2021-31_segments_1627046154085.58_warc_CC-MAIN-20210731074335-20210731104335-00537.warc.gz\"}"} |
https://www.physicsforums.com/threads/differentiability-of-a-function-of-two-variables.957922/ | [
"# Differentiability of a function of two variables\n\n• I\n• Jazzyrohan\nIn summary, the author has been studying multivariable calculus but can't quite think visually how a function will be differentiable at a point. Consider a function ##f(t) = t^2 \\sin(1/t)## when ##t \\neq 0## and ##f(0) =0##. This function is differentiable on ##\\mathbb{R}## but its derivative isn't continuous. Why would the result hold in the higher derivative case? Got it.f\n\n#### Jazzyrohan\n\nI have been studying multivariable calculus but I can't quite think visually how a function will be differentiable at a point.\n\nHow can a function be differentiable if its partial derivatives are not continuous?\n\nThis can even fail in the 1 dimensional case.\n\nConsider ##f(t) = t^2 \\sin(1/t)## when ##t \\neq 0## and ##f(0) =0##. This function is differentiable on ##\\mathbb{R}## but its derivative isn't continuous.\n\nWhy would the result hold in the higher derivative case? (Similar counterexamples are possible)\n\nGot it but directing to my first doubt how can differentiability be defined for a function of two variables,like,what is the basic condition for such a function to be differentiable?\n\nFor a real-valued function of one real variable, the differentiability means that the difference ##f(x+\\Delta x) - f(x)## can be arbitrarily well approximated by a differential ##f'(x)\\Delta x##, and the error of this approximation decreases as fast as ##(\\Delta x)^2## when the ##\\Delta x## is approaching zero. The real number ##f'(x)## is the derivative.\n\nFor a real-valued function of two variables, the equivalent definition is that the difference ##f(\\mathbf{x}+\\mathbf{\\Delta x}) - f(\\mathbf{x})## can be similarly approximated with a dot product ##\\mathbf{f'(x)}\\cdot\\mathbf{\\Delta x}##. Here the derivative ##\\mathbf{f'(x)}## is now a two-component vector and it is the same as the gradient of the function ##f(\\mathbf{x})##.\n\nIf the function takes two arguments and returns a two-component vector, the derivative ##\\mathbf{f'(x)}## is a ##2\\times 2## matrix and the differential is ##\\mathbf{f'(x)}\\mathbf{\\Delta x}##, where there's a matrix-vector multiplication instead of a dot product.\n\nGot it but directing to my first doubt how can differentiability be defined for a function of two variables,like,what is the basic condition for such a function to be differentiable?\nMaybe the beginning of https://www.physicsforums.com/insights/the-pantheon-of-derivatives-i/ can help you here. As @hilbert2 has said: differentiability is only the possibility to approximate a function locally by a linear function. The question, whether these many local events result in a continuous dependency of the location is a completely different one. The most common mistake comes from the notation: ##f\\,'(x)##. It is wrong. It should better be ##f\\,'(a)##, since this is what differentiation does: it gives a slope at a certain point. Differentiability now means, that this can be done at all points ##x=a##, such that we get a new function ##a \\longmapsto f\\,'(a)## which people write ##x \\longmapsto f\\,'(x)## and since people are lazy, abbreviate it by ##f\\,'(x)##. The result is, that the dependency of the location, at which ##x \\longmapsto f(x)## has been approximated by a linear function via the calculation ##\\left.\\dfrac{d}{dx}\\right|_{x=a}f(x)## is completely lost.\n\nSo what differentiablity means is that those linear approximations exist, at a point or everywhere.\nNow whether this differentiabilty depends continuously or differentiable from said location is another step.\n\nYes, I should have emphasized that the point ##x## where the derivative is evaluated is kept constant and only the ##\\Delta x## is varied.\n\n,what is the basic condition for such a function to be differentiable?\n\nAre you asking for necessary and sufficient conditions for a function of several variables to be differentiable? As other's have indicated, those conditions are that it satisfies the definition of being differentiable. That's a trivial answer, but I don't know a way to express such conditions in terms of simpler concepts.\n\nYes, I should have emphasized that the point ##x## where the derivative is evaluated is kept constant and only the ##\\Delta x## is varied.\nI didn't want to criticize you. My post has been meant as a general reminder, because there are so many different ways to regard a differentiation, and that short notations often disguise the individual view. I once listed a few views of it and found ##10##: first page here https://www.physicsforums.com/insights/journey-manifold-su2mathbbc-part/ and the word \"solpe\" didn't even occur in the list. It was fun to see how a simple tangent can have so many roles.\n\nI was confused about a few things and I think I get it now.Heartiest thanks to all of you .I really do appreciate your help.\nCan you also tell me some books containing good theory or visualization and a few books for problem solving?I am currently in first year of college."
]
| [
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.94461143,"math_prob":0.940267,"size":310,"snap":"2023-40-2023-50","text_gpt3_token_len":69,"char_repetition_ratio":0.14379086,"word_repetition_ratio":0.36,"special_character_ratio":0.21290323,"punctuation_ratio":0.056603774,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9903407,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-24T00:34:00Z\",\"WARC-Record-ID\":\"<urn:uuid:89eb5fc1-115c-4f16-b57d-eb0f80b2a5d5>\",\"Content-Length\":\"97920\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e1b65bda-8622-4b11-8a97-90496eb6edb5>\",\"WARC-Concurrent-To\":\"<urn:uuid:fccc9427-01bf-4791-87a5-ac53be3729fc>\",\"WARC-IP-Address\":\"104.26.14.132\",\"WARC-Target-URI\":\"https://www.physicsforums.com/threads/differentiability-of-a-function-of-two-variables.957922/\",\"WARC-Payload-Digest\":\"sha1:PY5BZAEFXQ5JYB7AMYF4NHQPMDXKQYPG\",\"WARC-Block-Digest\":\"sha1:QGI546RWDXXH4VC4CALFI3BOC6TTMI2R\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233506539.13_warc_CC-MAIN-20230923231031-20230924021031-00413.warc.gz\"}"} |
https://www.techopedia.com/definition/8030/least-significant-bit-lsb | [
"# Least Significant Bit\n\n## What Does Least Significant Bit Mean?\n\nIn computing, the least significant bit is the bit which is farthest to the right and holds the least value in a multi-bit binary number. As binary numbers are largely used in computing and other related areas, the least significant bit holds importance, especially when it comes to transmission of binary numbers.\n\n## Techopedia Explains Least Significant Bit\n\nDigital data is computed in binary format, and similarly to numerical notation, the right digit is considered the lowest digit whereas the leftmost is considered the highest digit. Due to the positional notation, the least significant bit is also known as the rightmost bit. It is the opposite of the most significant bit, which carries the highest value in a multiple-bit binary number as well as the number which is farthest to the right. In a multi-bit binary number, the significance of a bit decreases as it approaches the least significant bit. Since it is binary, the most significant bit can be either 1 or 0.\n\nWhen a transmission of binary data is done with the least significant bit first technique, the least significant bit is the one which is transmitted first, followed by other bits of increasing significance. The least significant bit is frequently employed in hash functions, checksums and pseudorandom number generators.",
null,
"",
null,
""
]
| [
null,
"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20172%2037'%3E%3C/svg%3E",
null,
"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20400%20400'%3E%3C/svg%3E",
null
]
| {"ft_lang_label":"__label__en","ft_lang_prob":0.94113934,"math_prob":0.94442284,"size":1333,"snap":"2023-40-2023-50","text_gpt3_token_len":255,"char_repetition_ratio":0.21595185,"word_repetition_ratio":0.032863848,"special_character_ratio":0.18229558,"punctuation_ratio":0.09090909,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.990434,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-05T11:31:03Z\",\"WARC-Record-ID\":\"<urn:uuid:1ac3fcfe-e4b8-4c4f-8412-d7d81ad4b01c>\",\"Content-Length\":\"414684\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:06a5da37-e957-413c-9c97-93ed1784a843>\",\"WARC-Concurrent-To\":\"<urn:uuid:6acfa5c8-2fb6-47d3-865a-808c88ffdd62>\",\"WARC-IP-Address\":\"104.18.29.153\",\"WARC-Target-URI\":\"https://www.techopedia.com/definition/8030/least-significant-bit-lsb\",\"WARC-Payload-Digest\":\"sha1:AWDMOKPBVETRDLOXUY7LC5TJN36Y6J4W\",\"WARC-Block-Digest\":\"sha1:6NZUF4QBBTTOWCCMO4QBX4DNGY44L3AJ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100551.17_warc_CC-MAIN-20231205105136-20231205135136-00184.warc.gz\"}"} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.