url stringlengths 14 1.76k | text stringlengths 100 1.02M | metadata stringlengths 1.06k 1.1k |
|---|---|---|
https://physics.stackexchange.com/questions/509315/why-is-there-no-constant-factor-in-the-equation-e-mc2 | # Why is there no constant factor in the equation $E=mc^2$? [duplicate]
As I understand, the metric system starts with an arbitrary weight, and calls it $$1\, \mathrm{kg}$$, then the volume of this weight in water gives the meter. And then the energy is defined based on the meter, second and kilogram.
My question is: given that the relation between meter, kg and joule relies on the density of water (or did so originally), how can we possibly tie them again with $$E=mc^2$$ by adding the speed of light? The density of water seems completely uncorrelated to the speed of light.
Intuitively I would have added an extra constant to Einstein's equation.
• Also what is the constant you propose adding? That might help make the question clearer. – BioPhysicist Oct 21 '19 at 6:04
• Dear all, I feel all the answers arent addressing my issue. I'm not asking wether units are consistent in the sense that they boil down to the same sub units but rather that we have units that were defined initially around the density of water (and then redefined but it still matches with water) and that in E=mc2 we are matching mass & energy around the unrelated speed of light. – Manu de Hanoi Oct 22 '19 at 1:14
• @ManudeHanoi I don't quite understand your confusion. The equation e=MC2 is no different in principle to the equation for KE =1/2MV2- in both equations the physical quantity of energy is the product of a mass and a velocity squared. The choice of units is irrelevant. – Marco Ocram Oct 22 '19 at 8:50
The assumptions on the SI units are not correct.
The kilogram isn't 'defined by an arbitrary weight', it's defined using Planck's constant since 2018:
The kilogram is defined by setting the Planck constant h exactly to 6.62607015×10−34 J⋅s (J = kg⋅m2⋅s−2), given the definitions of the metre and the second
Hence, the kilogram is now essentially defined in terms of the second and the metre. Though it did used to be defined by a platinum-iridium cylinder (and before that a pure platinum cylinder), whose mass was (as close as possible) to the absolute weight of a volume of pure water equal to the cube of the hundredth part of the metre, at 4 Celsius.
The metre is not a derived unit in SI, it's one of the base units, defined in 1983 as:
The metre is the length of the path travelled by light in vacuum during a time interval of 1/299792458 of a second.
I'm not too sure where the water based definition you mention comes from, but if you can elaborate, I can see if I can see where it fits into the story for you.
You are correct that the Joule is based on the kilogram, metre and second (since $$J = kg \cdot m^2/s^2$$). And if you did a dimensional analysis on the Joule, you would find it based on the above combination of the units you mention, it doesn't necessarily mean whatever energy you are measuring (in this case some particle, i presume) is correlated to that cylinder of platinum or any other thing used to make a definition.
Put simply, a unit is just shorthand for saying "is equal to this many of a quantity". For example we can define our own unit, the Dave, as equal to 63 times the average mass of a male platypus. I weigh 1 Dave (yeh, I need to lose some mass...). It doesn't mean that me and the average male platypus are in anyway correlated.
To answer, the 'extra constant' bit, what I think you're asking is:
Why is there no constant of proportionality used in $$E=mc^2$$ to relate the Joule to kilogram, metre, and second, since their definitions seem unrelated?
Feel free to correct me if I misunderstood. Constants of proportionality (and other constants) are used, as a way to get a certain unit out of an equation. $$E=mc^2$$ is just an equation, it doesn't require any constant until you choose a system of units to work in. Let's try adding the constant you mentioned, we will call it, k, so now the equation is $$E=kmc^2$$. For getting an answer in Joules, from kilograms, metres and seconds, k would be 1 (it is how the Joule is defined). If you wanted an answer in milliJoules ($$1/1000$$ Joules) from kilograms, metres and seconds, k would now have to be 1000, to balance the units. If you wanted an answer in milliJoules, from grams ($$1/1000$$ Kilograms), metres and seconds, k would be back to being 1, since the alterations made to both sides balance.
A good real world example of this, is natural units, where c=1 (whereas, in SI it's 299792458 $$m/s^2$$, but here the value and units are adjusted to output an energy in electronVolts, instead of Joules), and Energy and mass are measured in eV, but the equation is still $$E=mc^2$$. All the equation says, regardless of any constants, is it takes this much energy to create this much mass from the vacuum.
Hope that helps, feel free to ask more if I was unclear or didn't cover some of your questions - either units or platypus related.
Sources:
SI Unit Definitions
Platypus Mass
• if you define 1 Joule as equal to platypus times mass. and then comes e=mc2 that can be used to define 1 joule as the energy contained in a mass of 1kg/c2 you end up with having 2 redundant definitions of energy implying that 1 platypus =1/c2 . My question is how could platypus(=density of water) and inverse square of the speed of light be related – Manu de Hanoi Oct 22 '19 at 1:32
• @ManudeHanoi The point that everybody is telling you is that the numeric value of $c^2$, in the units you are using, depends on the units you are using. If you change what "platypus" means, that indirectly changes what number $c^2$ is equal to, in platypus units. – knzhou Oct 22 '19 at 5:02
• @ManudeHanoi This is like being amazed that the height and width of a wooden square are always the same in any units, $h = w$, even though you could have measured them in, say, platypus lengths. What do platypuses have to do with the sides of a wooden square? Nothing, but still $h = w$. – knzhou Oct 22 '19 at 5:04
• @knzhou, if so, can you prove it ? Can you prove that 1 joule =1kg(1m/s)^2 is equivalent to 1 joule = energy of (1/c^2) kg ? – Manu de Hanoi Oct 22 '19 at 8:14
• @ManudeHanoi For the proof, see any special relativity textbook. You are correct that it is a nontrivial fact that there is no numeric coefficient in $E = mc^2$. But this has nothing to do with the unit system: if there were a coefficient, it would be the same in every reasonable unit system. – knzhou Oct 22 '19 at 16:13
Well, $$E=mc^2$$ doesn't mean that a Joule is equal to a kilogram times (the speed of light) squared. Actually, if a Joule is defined to be $$\operatorname{Joule} =\operatorname{Newton}\cdot \operatorname{meter} = (\operatorname{kg}\cdot \frac{\operatorname{meter}}{\operatorname{second}^2})\cdot \operatorname{meter}=\operatorname{kg}\cdot \left( \frac{\operatorname{meter}}{\operatorname{second}} \right) ^2$$ Then by plugging 1 kilogram to Einstein's equation, you get that rouphly
$$E = 1\operatorname{kg}\cdot (3\cdot 10^8 \frac{\operatorname{meter}}{\operatorname{second}})^2 = 9 \cdot 10^{16} \operatorname{kg}\cdot \left( \frac{\operatorname{meter}}{\operatorname{second}} \right) ^2=9\cdot10^{16}\operatorname{Joule}$$ Meaning the energy you need to create from nothing a kilogram is that much of energy.
Constants come in handy when we specifically wanted to create a relation that when you plug in some units you will get other units.
For example, if Newtonian gravity says that $$F\propto \frac{m_1 m_2}{r^2}$$ That means that on the left side we have the units $$\operatorname{kg}\cdot \frac{\operatorname{meter}}{\operatorname{second}^2}$$ and on the right we have $$\frac{\operatorname{kg}^2}{\operatorname{meter}^2}$$. If we want the units to match we need a constant with the units of $$\frac{\operatorname{meter}^3}{\operatorname{kg}\cdot \operatorname{second}^2}$$ and give it a value that really gives the force between two masses of a kg one meter apart (in Newtons). In $$E=mc^2$$ you don't need such a constant to balance the units, this formula is derived no matter which units you use.
This concept if constants in physical relations as a way to work with a specific unit system is actually what makes the equations of electromagnetism differ depending on which units you use. In the SI system (meters, kilograms, seconds), one likes to work with the "Coulomb" unit for electric charge, but then needs a constant in Coulomb's law. In the cgs system of units (centimeter, grams, seconds), one defines the electric charge to be such that you don't need a constant. I hope I didn't confuse you with the last paragraph. You are welcome to ask more questions :)
• Can you reconcile the fact that : 1) 1 joule is equal to the energy transferred to (or work done on) an object when a force of one newton acts on that object in the direction of the force's motion through a distance of one metre AND that: 1)1 joule is the energy in 1/c2 kg ? Yes the units match but I see no correlation between the speed of light and the acceleration of 1 newton over 1 meter – Manu de Hanoi Oct 22 '19 at 1:59
• I think what the OP is really asking is why is it $E=mc^2$ and not, say, $E=\frac{1}{2}mc^2$, which would be similar to Newtonian kinetic energy which has the same kinds of variables on both sides of the equation. – Mark H Oct 22 '19 at 3:13
This is completely wrong. The international system of units SI
Time: $$1$$ second equals:
The duration of 9192631770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the caesium-133 atom.
Length: $$1$$ meter equals:
The distance travelled by light in vacuum in $$(1/299792458) \times$$ second.
Mass: $$1$$ kilogram equals:
The kilogram is defined by setting the Planck constant h exactly to $$6.62607015×10^{−34}\,\mathrm{J\cdot s}\;(\mathrm J = \,\mathrm{kg⋅m^2⋅s^{−2}}$$), given the definitions of the metre and the second.
So we are in the twenty-first century, and the definition of the kilogram depends on the Planck constant, it ain't simple, and it takes care of densities and such.
In addition, the m in $$E=mc^2$$ is not constant anyway, because it is velocity dependent. It is called the relativistic mass and is no longer used in physics, as it is useful to calculate the inertial mass for velocity nearing the speed of light, not the mass of the particle and the weight we find in our scales. One uses the invariant mass given by the length of the four vector:
$$\sqrt{P\cdot P}=\sqrt{E^2-(pc)^2}=m_0c^2.$$
The length of this 4-vector is the rest energy of the particle. The invariance is associated with the fact that the rest mass is the same in any inertial frame of reference.
• dear Anna, the constants used to define the units were choosen so the side of a cube of 1000 kg of water still measures 1meter. Using arbitrary constants like "The duration of 9192631770 periods of the radiation" instead of the historical arbitrary choice of water doesnt change my question – Manu de Hanoi Oct 22 '19 at 1:37
• @ManudeHanoi Of course it changes it. The new definitions do not depend on density, this was the correction for the desnity,getting a stable to external influences definition. Worth reading the history of SIhttps://usma.org/si-unit-definitions – anna v Oct 22 '19 at 3:49
• it doesnt matter Anna, you've replaced the arbitrary constant of density of water with the arbitrary constant of "9192631770" and "1/299792458" in either case, you end up with 2 definitions of the joule, one based directly on the above constants (1joule=1kg x (1m/s)^2) and one based on the speed of light (1joule = energy of (1/c2) kg). So in order to reconcile the 2 definitions you'd have to somehow prove that they are the same mathematically. And I can't do that, can you ? – Manu de Hanoi Oct 22 '19 at 8:08
• @ManudeHanoi No, these definitions are not mathematically the same! You can not establish natural unit-of-measure-independent correspondence between mass and energy using the first definition. Second definition is not actually a mathematical definition, it says "energy of $1/9 * 10^{-16}$ kg" - but how much is it? Would it be enough to lift some object, or heat some water? It's more like not a definition of Joule, but a statement, that if object of mass $m$ decays into massless objects, an energy $m*c^2$ would be released. – lesnik Oct 22 '19 at 9:10
• Think a bit: there used to be an independent unit, the foot. Obviously it is connected with the human foot. Whose foot? my foot, your foot? An averaged foot?en.wikipedia.org/wiki/Foot_(unit)#Historical_origin . It is obvous that the older defintions have an error, dependent on the width of the average value of a male foot : thats why it was different from city to city. To request that the old foot measure can be connected with the new SI meter unit through a fomula is obviously not possible. The new SI definitions try to use theory constants whose measurement errors are very small. – anna v Oct 22 '19 at 12:01
Short answer: there are no additional factors in this formula because unit of measure for energy is consistent with units of measure for mass, time and distance.
Suppose you decided to create your own system of units and let's forget about relativity theory so far.
You can choose arbitrary unit for mass. You can choose arbitrary unit for time. You can choose arbitrary unit for distance.
But after that you can't arbitrarily choose unit of measure for speed. You'd better use (unit of distance)/(unit of time). Otherwise formulas in your system of units will have some weird constant factors in it.
And you can't use arbitrary choose unit of measure for energy. You'd better use (unit of mass) * (unit of speed)^2. For the same reason.
And in this designed from scratch system of units the classic formula for energy $$E = m * v^2/2$$ will hold. No additional factors appear in this formula, because you have chosen units of measure for speed and energy corresponding to (arbitrarily selected) units for mass, time and distance.
Similarly, numeric values of mass and the speed of light will be different in your system of units, but the equation $$E = m * c^2$$ will hold.
UPDATE (answer to a question in comment).
So, if formulas $$E = m * v^2/2$$ and $$E = m * c^2$$ are correct with one system of units of measure, these formulas would be correct with all other systems of units of measure if the unit of measure of energy "corresponds" to units of measure of time, distance and mass. This is just a pure math. From your question I guess that this is clear. Let me know if it is not. Please note, that these two formulas have very different physical meaning, but when switching from one units of measure to another the math is the same.
The classic formula $$E = m * v^2/2$$ is correct with all units of measure. It does not matter if the unit of distance was defined as some fraction of distance from pole to equator of some planet or as a distance between ears of some species living on it.
The second formula ($$E = m * c^2$$) can be formulated in units-of-measure-independent form. It says: there is some universal speed (speed of light), and the total energy of any object is twice as much as you would get if you use the classic formula of kinetic energy to calculate the kinetic energy of that object moving with our universal speed.
Why "twice as much" - it's a different question. It's relativity theory. But as long as there are no weird constant factors depending on units of measure in the formula $$E = m * v^2/2$$ there would be no such factors in $$E = m * c^2$$.
• Can you reconcile the fact that : 1) 1 joule is equal to the energy transferred to (or work done on) an object when a force of one newton acts on that object in the direction of the force's motion through a distance of one metre AND that: 1)1 joule is the energy in 1/c2 kg ? Yes the units match but I see no correlation between the speed of light and the acceleration of 1 newton over 1 meter – Manu de Hanoi Oct 22 '19 at 2:00
• @ManudeHanoi I tried to answer your question and updated my original post - the answer did not fit into comment. – lesnik Oct 22 '19 at 7:48
• I have no problem with and never mentionned the kinetic energy definition, I dont know why your edit mentions it. My problem is that we have defined the joules using 2 definitions, one that involves the density of water and one that involves the speed of light. And these 2 constants are unrelted – Manu de Hanoi Oct 22 '19 at 7:57
• @ManudeHanoi Note, that definition of Newton is that this is the force which is required to accelerate 1 kg with 1 $(meter/sec)^2$. It also involves kilogram, so the first of your definitions of Joule (1 Newton * 1 meter) also involves density of water! – lesnik Oct 22 '19 at 8:08
• @ManudeHanoi So, density of water is involved in both definitions, so there are no problems with it? Ok. And only one of these formulas mentions speed of light. This second definition ($E=mc^2$) brings some new physical meaning, it establishes some natural correspondence between mass and energy. It tells that there is a natural unit-of-measure-independent way to measure energy in kilograms or mass in Joules or electron-vaults or whatever. Why the factor between mass and energy is exactly $c^2$ - well, this is subject of relativity theory. Absence of UOM-dependent constants in it - pure math. – lesnik Oct 22 '19 at 8:29
Historically, the kilogram was defined in terms of the metre and not the other way around. Originally, the metre was defined as "one ten-millionth of the shortest distance from the North Pole to the equator passing through Paris." Based on this definition of the metre, the kilogram was defined as the mass of one litre of water. So the kilogram was not just some arbitrary mass.
Of course, these definitions are historically where they came from. Today, these unit are defined in more sophisticated ways, as explained in some of the other answers provided here.
About the lack of constants in the famous equation $$E=m c^2$$. Remember, this equation is not proposed as a definition of units and should not be interpreted that way. Instead, it gives the relationship between mass and energy. It shows that one is proportional to the other. The role of the $$c^2$$ is to match the dimensions. In that sense, a numerical dimensionless constant factor would be meaningless. In fact, arbitrary numerical factors would appear when one assigns various different units of measure to the different quantities in the equation.
That does not mean that one cannot use the equation for the definition of units, by relating a new unit of measure to existing units. In terms of the SI units, the Joule is related to the kilogram and one metre-per-second for velocity. One could in principle use this equation to define a new unit of energy associated with one kilogram.
• we do define the joule based on water and paris position (with the proxy of wavelengths) but we could define the same joule as the energy in 1/c2 kg (E=mc2). How come the 2 definitions amount to the same joule ? – Manu de Hanoi Oct 22 '19 at 8:20
• The current system of units has been defined to be consistent with previous definitions. Remember that we do not use the water and the Paris position anymore, because they don't provide the same accuracy and precision that we can get with the current definitions. – flippiefanus Oct 22 '19 at 9:15
• I understand that, but the constants used to define the units are just as arbitrary as paris and density of water as explained in OP. Be it paris position or 184154131101 the wavelength of khsdfgkjbasdfuh – Manu de Hanoi Oct 22 '19 at 9:58 | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 35, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9529881477355957, "perplexity": 408.6404198492481}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-04/segments/1610703506640.22/warc/CC-MAIN-20210116104719-20210116134719-00657.warc.gz"} |
https://johnhcochrane.blogspot.in/2015/04/ | ## Monday, April 27, 2015
### Unit roots in English and Pictures
After my unit roots redux post, a few people have asked for a nontechnical explanation of what this is all about.
Suppose there is an unexpected movement in any of the data we look at -- inflation, unemployment, GDP, prices, etc. Now, how does this "shock" affect our best estimate of where this variable will be in the future? The graph shows three possibilities.
## Friday, April 24, 2015
### Unit roots, redux
Arnold Kling's askblog and Roger Farmer have a little exchange on GDP and unit roots. My two cents here.
I did a lot of work on this topic a long time ago, in How Big is the Random Walk in GNP? (the first one) Permanent and Transitory Components of GNP and Stock Prices” (The last, and I think best one) "Multivariate estimates" with Argia Sbordone, and "A critique of the application of unit root tests", particularly appropriate to Roger's battery of tests.
The conclusions, which I still think hold up today:
Log GDP has both random walk and stationary components. Consumption is a pretty good indicator of the random walk component. This is also what the standard stochastic growth model predicts: a random walk technology shock induces a random walk component in output but there are transitory dynamics around that value.
## Wednesday, April 22, 2015
### The right to herd
Just when you thought financial regulation couldn't get more expansive and incoherent, our Justice Department comes in to defend morons' right to herd.
As explained in the Wall Street Journal at least, Mr. Navinder Singh Sarao is now under arrest, fighting extradition to the US, and his business ruined, for "spoofing" during the flash crash.
What is that? The Journal's beautiful graph at left explains.
The obvious question: Who are these traders who respond to spoofing orders by placing their own orders? Why is it a crucial goal of law and public policy to prevent Mr. Sarao from plucking their pockets? Is "herding trader" or "momentum trader" or "badly programmed high-speed trading program" or just simple "moron in the market" now a protected minority?
Why is Mr. Sarao being prosecuted and not all the people who wrote badly programmed algorithms that were so easily spoofed? If this caused the flash crash (how, not explained in the article) are they not equally at fault?
I don't mean by this a defense of the crazy stuff going on in high speed trading. As explained here, I think one second batch auctions are a much better market structure. But the whole high speed trading thing is largely a response to SEC regulations in the first place, the order routing regulation, discrete tick size regulation, and strict time precedence regulation. A fact which will probably not enter at Mr. Sarao's trial (he doesn't seem to have billions for a settlement) and will give him little comfort in jail.
And maybe, just maybe, there is something more coherent here than the Journal lets on. I'll keep reading hoping to find it and welcome comments who can.
A larger thought. We still really want to rely on regulators to spot all the problems of finance and keep us safe from more crashes?
Update: Craig Pirrong excellent commentary here via a good FT alphaville post. Great quote:
The complaint alleges that Sarao employed the layering strategy about 250 days, meaning that he caused 250 out of the last one flash crashes. [my emphasis] I can see the defense strategy. When the government expert is on the stand, the defense will go through every day. “You claim Sarao used layering on this day, correct?” “Yes.” “There was no Flash Crash on that day, was there?” “No.” Repeating this 250 times will make the causal connection between his trading and Flash Clash seem very problematic, at best.
Update 2: Reading various commentaries that I can't find to cite any more, I realize that "front running" more than "herding" is the protected class. You "spoof" by putting in a bunch of orders just outside the current spread. The algorithms that respond to that think this behavior means some big orders coming, so try to front run those by buying. They cross the spread to take the small order you put on the other side. Or so the story goes. In any case, viewed as spoofers vs. front-runners it's harder still to have sympathy for the latter.
Update 3: Good Bloomberg View coverage from Matt Levine and John Arnold, the source of the above front-running observation.
## Monday, April 20, 2015
### Consumption-based model and value premium
The consumption based model is not as bad as you think. (This is a problem set for my online PhD class, and I thought the result would be interesting to blog readers.)
I use 4th quarter to 4th quarter nondurable + services consumption, and corresponding annual returns on 10 portfolios sorted on book to market and the three Fama-French factors. (Ken French's website)
The graph is average excess returns plotted against the covariance of excess returns with consumption growth. (The graph is a distillation of Jagannathan and Wang's paper, who get any credit for this observation. The lines are OLS cross-sectional regressions with and without a free intercept.)
## Friday, April 17, 2015
### Macro Handbook 2
Last week I attended the first half of the conference on the Handbook of Macroeconomics Volume 2, organized by John Taylor and Harald Uhlig, held at Hoover. The conference program and most of the papers are here. The second half will be in Chicago April 23-25, program here
Overall, this Handbook is shaping up as a very useful resource. Really good summary and review papers are a natural way in to long literatures. Bad summary and review papers are long and boring. The conference produced the first kind. Most of the papers are rough first drafts, so make a note to come back when they're finished. A few highlights (with apologies to authors I've left out; I can't review them all here.)
## Thursday, April 16, 2015
### Banking at the IRS
A while ago in two blog posts here and here I suggested many ways other than currency to get a zero interest rate if the government tries to lower rates below zero. Buy gift cards, subway cards, stamps; prepay bills, rent, mortgage and especially taxes -- the IRS will happily take your money now and you can credit it against future tax payments; have your bank make out a big certified check in your name, and sit on it, don't cash incoming checks. Start a company that takes money and invests in all these things (as well as currency).
Chris and Miles Kimball have an interesting essay exploring these ideas "However low interest rates might go, the IRS will never act like a bank." Their central point: sure that's how things work now. But with substantial negative interest rates, all of these contracts can change. It's technically possible in each case for people and businesses to charge pre-payment penalties amounting to a negative nominal rate.
Reply: Sure, in principle. Nominal claims can all be dated, and positive or negative interest charged between all dates.
But this did not happen in the US and does not happen in other countries for positive inflation and high nominal rates, despite symmetric incentives, and at rates much higher than the contemplated 3-5% or so negative rates. Yes, with large nominal rates there is pressure to pay faster, inventory cash-management to reduce people's holdings of depreciating nominal claims, but this pervasive indexation of nominal payments did not break out. The IRS did not offer interest for early payment.
More deeply, what they're describing is a tiny step away from perfect price indexing. If all nominal payments are perfectly indexed to the nominal interest rate, accrued daily, then it's a tiny change to index all prices themselves to the CPI, accrued daily. If "how much you owe me," say to rent a house, is legally, contractually, and mechanically determined as a value times e^rt, and changes day by day, then e^(pi t) is just as easy.
So, price stickiness itself would (should!) disappear under this scenario.
Price stickiness has always been a bit of a puzzle for economists. As the Kimballs speculate how easy it is to index payments to negative interest rates, so economists speculate how easy it is to index payments to inflation. Yet it seems not to happen.
So this point of view strikes me as a bit of a catch-22 for its advocates, who generally are of the frame of mind that prices and nominal contracts are sticky and that’s why negative nominal rates are a good idea to "stimulate demand" in the first place. If we can have negative nominal rates and change all these legal and contractual zero-rate promises to allow it, then prices won't be sticky any more! Conversely, I should be cheering, as it amounts to a broad push to unstick prices. That has long seemed to me the natural policy response to the view that sticky prices are the root of all our troubles. It would allow negative rates, but eliminate their need as well.
Alas, the world seems remarkably resistant to time-indexing all payments.
## Wednesday, April 15, 2015
### Gdefault needs not Grexit
The little grumpy cartoon usually represents me pounding my coffee down in agreement as the WSJ exposes some idiocy. Last week, alas, I spilled my grumpy coffee in disagreement with a little part of its otherwise excellent "The case for letting Greece go."
Thursday marks another deadline in Greece’s struggle to avoid default, as a €450 million payment to the International Monetary Fund comes due. Athens says it will meet this obligation, but sooner or later Prime Minister Alexis Tsipras and his government will miss a payment to someone if it doesn’t agree with creditors on a new bailout. An exit from the euro would then be a real possibility.
Please can we stop passing along this canard -- that Greece defaulting on some of its bonds means that Greece must must change currencies. Greece no more needs to leave the euro zone than it needs to leave the meter zone and recalibrate all its rulers, or than it needs to leave the UTC+2 zone and reset all its clocks to Athens time. When large companies default, they do not need to leave the dollar zone. When cities and even US states default they do not need to leave the dollar zone. A common currency means that sovereigns default just like large financial companies. (Yes, a bit of humor in the last one.)
## Tuesday, April 14, 2015
### Blanchard on Countours of Policy
Olivier Blanchard, (IMF research director) has a thoughtful blog post, Contours of Macroeconomic Policy in the Future. In part it's background for the IMF's upcoming conference with the charming title Rethinking Macro Policy III: Progress or Confusion?” (You can guess my choice.)
Olivier cleanly poses some questions which in his view are likely to be the focus of policy-world debate for the next few years. Looking for policy-oriented thesis topics? It's a one-stop shop.
Whether these should be the questions is another matter. (Mostly no, in my view.)
As a blogger, I can't resist a few pithy answers. But please note, I'm mostly having fun, and the questions and essay are much more serious.
## Thursday, April 2, 2015
### The sources of stock market fluctuations
How much do dividend-growth vs. discount-rate shocks account for stock price variations?
An under-appreciated point occurred to me while preparing for my Coursera class and to comment on Daniel Greewald, Martin Lettau and Sydney Ludvigsson's nice paper "Origin of Stock Market Fluctuations" at the last NBER EFG meeting
The answer is, it depends the horizon and the measure. 100% of the variance of price dividend ratios corresponds to expected return (discount rate) shocks, and none to dividend growth (cash flow) shocks. 50% of the variance of one-year returns corresponds to cashflow shocks. And 100% of long-run price variation corresponds to from cashflow shocks, not expected return shocks. These facts all coexist
I think there is some confusion on the point. If nothing else, this makes for a good problem set question.
The last point is easiest to see just with a plot. Prices and dividends are cointegrated. Prices correspond to dividends and expected returns. Dividends have a unit root, but expected returns are stationary. Over the long run prices will not deviate far from dividends. So 100% of long-enough run price variation must come from dividend variation, not expected returns.
Ok, a little more carefully, with equations.
A quick review:
The most basic VAR for asset returns is $\Delta d_{t+1} = b_d \times dp_{t}+\varepsilon_{t+1}^{d}$ $dp_{t+1} = \phi \times dp_{t} +\varepsilon_{t+1}^{dp}$ Using only dividend yields dp, dividend growth is basically unforecastable $$b_d \approx 0$$ and $$\phi\approx0.94$$ and the shocks are conveniently uncorrelated. The behavior of returns follows from the identity, that you need more dividends or a higher price to get a return, $r_{t+1}\approx-\rho dp_{t+1}+dp_{t}+\Delta d_{t+1}%$ (This is the Campbell-Shiller return approximation, with $$\rho \approx 0.96$$.) Thus, the implied regression of returns on dividend yields, $r_{t+1} = b_r \times dp_{t}+\varepsilon_{t+1}^{r}$ has $$b_r = (1-\rho\phi)+0 = 1-0.96\times0.94 = 0.1$$ and a shock negatively correlated with dividend yield shocks and positively correlated with dividend growth shocks.
The impulse response function for this VAR naturally suggests "cashflow" (dividend) and "expected return" shocks, (d/p). (Sorry for recycling old points, but not everyone may know this.)
Three propositions:
• The variance of p/d is 100% risk premiums, 0% cashflow shocks
Iterate forward the return identity, to get $dp_{t} =\sum_{t=1}^{\infty}\rho^{j-1}r_{t+j}-\sum_{t=1}^{\infty}\rho ^{j-1}\Delta d_{t+j}$ multiply by $$dp_t$$ and take expectations (all variables are demeaned) $\sigma^{2}\left( \log\frac{P_{t}}{D_{t}}\right) =\sigma^{2}\left( dp_{t}\right) =\sum_{t=1}^{\infty}\rho^{j-1}cov(dp_{t},r_{t+j})-\sum _{t=1}^{\infty}\rho^{j-1}cov(dp_{t},\Delta d_{t+j}),$ But $$b_d \approx 0$$, so the dividend growth terms are all zero, and 100% of the variance of price-dividend ratios corresponds to time-varying expected returns. (I know this will bore people familiar with it and befuddle those who are not. "Discount rates" has a bit more leisurely review and citations)
But
• The variance of returns is 50% due to risk premiums, 50% due to cashflows.
$r_{t+1}=-\rho dp_{t+1}+dp_{t}+\Delta d_{t+1}%$ $\varepsilon_{t+1}^{r} =-\rho\varepsilon_{t+1}^{dp}+\varepsilon_{t+1}^{d}$ $\sigma^{2}\left( \varepsilon_{t+1}^{r}\right) =\rho^{2}\sigma^{2}\left( \varepsilon_{t+1}^{dp}\right) +\sigma^{2}\left( \varepsilon_{t+1}^{d}\right)$ The variance of the two shocks comes out very close to a 50/50 decomposition at an annual horizon. It's a lot more expected return at a daily horizon, and less at longer horizons. Here I use the fact that dividend growth and dividend yield shocks are basically uncorrelated.
Why are returns and p/d so different? Current cash flow shocks affect returns. But a shock to dividends, when prices rise at the same time, does not affect the dividend price ratio. (This is the essence of the Campbell-Ammer return decomposition.)
The third proposition is less familiar:
• The long-run variance of stock market values (and returns) is 100% due to cash flow shocks and none to expected return or discount rate shocks.
Here's why: $\Delta p_{t+1} =-dp_{t+1}+dp_{t}+\Delta d_{t+1}$ $p_{t+k}-p_{t} =-dp_{t+k}+dp_{t}+\sum_{j=1}^{k}\Delta d_{t+j}$ so as k gets big, ${var} (p_{t+k}-p_{t}) \rightarrow 2 {var}(dp_t) + k {var}(\Delta d_{t})$ The first term approaches a constant, but the second term keeps growing. As above the central fact is that P and D are cointegrated while expected returns are stationary.
This is related to a point made by Fama and French in their Equity Premium paper. Long run average returns are driven by long run dividend growth plus the average value of the dividend yield. The difference in valuation -- higher prices for given set of dividends -- can affect returns in a sample, as higher prices for a given set of dividends boost returns. But that mechanism can't last. (Avdis and Wachter have a nice recent paper formalizing this point.) It's related to a similar point made often by Bob Shiller: Long run investors should buy stocks for the dividends.
A little more generality as this is the new bit.
$p_{t+k}-p_t = dp_{t+k}-dp_t + \sum_{j=1}^{k}\Delta d _{t+j}$ $p_{t+k}-p_t = (\phi^{k}-1)dp_t + \sum_{j=1}^{k}\phi^{k-j} \varepsilon^{dp}_{t+j} + \sum_{j=1}^{k} \varepsilon^d _{t+j}$ $var(p_{t+k}-p_t) = \frac{(1-\phi^{k})^2}{1-\phi^2} \sigma^2(\varepsilon^{dp}) + \frac{(1-\phi^{2k})}{1-\phi^2} \sigma^2(\varepsilon^{dp}) + k\sigma^2(\varepsilon^d)$ $var(p_{t+k}-p_t) = 2\frac{(1-\phi^{k})}{1-\phi^2} var(\varepsilon^{dp}_{t+1}) + k var(\varepsilon^d_{t+j})$ So you can see the last bit takes over. It doesn't take over as fast as you might think. Here's a graph using sample values,
At a one year horizon, it's just about 50/50. The dividend shocks eventually take over, at rate 1/k. But at 50 years, it's still about 80/20.
Exercise for the interested reader/finance professor looking for problem set questions: Do the same thing for long horizon returns, $$r_{t+1}+r_{t+2}+...+r_{t+k}$$ using $$r_{t+1} = -\rho dp_{t+1} + dp_t + \Delta d_ {t+1}$$ It's not so pretty, but you can get a closed form expression here too, and again dividend shocks take over in the long run.
Be forewarned, the long run return has all sorts of pathological properties. But nobody holds assets forever, without eating some of the dividends.
Disclaimer: Notice I have tried to say "associated with" or "correspond to" and not "caused by" here! This is just about facts. The facts have just as easy a "behavioral" interpretation about fads and bubbles in prices as they do a "rationalist" interpretation. Exercise 2: Write the "behavioralist" and then "rationalist" introduction / interpretation of these facts. Hint: they reverse cause and effect about prices and expected returns, and whether people in the market have rational expectations about expected returns. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.3424068093299866, "perplexity": 3397.381512590394}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-51/segments/1512948513784.2/warc/CC-MAIN-20171211164220-20171211184220-00264.warc.gz"} |
https://www.physicsforums.com/threads/lie-dragging-a-vector-around-the-ellipse.156898/ | # Lie dragging a vector around the ellipse
1. Feb 18, 2007
### wandering.the.cosmos
I've been trying to understand exactly how the Lie derivative parallel transports a vector, by working out an explicit example: Lie dragging $\partial/\partial x$ at (a,0) on the x-y plane anticlockwise along the ellipse
$$\frac{x^2}{a^2}+\frac{y^2}{b^2}=1$$
I choose to parametrize the ellipse using
$$x=a\cos[\theta]$$
$$y=b\sin[\theta]$$
so that we have the tangent vector along the ellipse to be
$$\frac{d}{d\theta} = -\frac{a}{b} y \frac{\partial}{\partial x} + \frac{b}{a} x \frac{\partial}{\partial y}$$
Next I compute the Lie brackets
$$\left[\frac{d}{d\theta},\frac{\partial}{\partial x}\right] = \frac{b}{a} \frac{\partial}{\partial y}$$
$$\left[\frac{d}{d\theta},\frac{\partial}{\partial y}\right] = -\frac{a}{b} \frac{\partial}{\partial x}$$
From this I conclude that parallel transporting $\partial/\partial x$ from (a,0) through an angle $\theta$ along the ellipse yields
$$\exp\left[\theta \pounds_{d/d\theta}\right] \frac{\partial}{\partial x} = \sum_{n=0}^\infty \left( \frac{b}{a}\frac{(-1)^n}{(2n+1)!} \theta^{2n+1} \frac{\partial}{\partial y} + \frac{(-1)^n}{(2n)!} \theta^{2n} \frac{\partial}{\partial x} \right) \\ = \frac{b}{a} \sin[\theta] \frac{\partial}{\partial y} + \cos[\theta] \frac{\partial}{\partial x} \\ = \frac{y}{a} \frac{\partial}{\partial y} + \frac{x}{a} \frac{\partial}{\partial x}$$
It seems this implies that the parallel transported $\partial/\partial x$ gives a vector that is inclined at an angle $\phi$ such that
$$\tan[\phi] = \frac{y}{x}$$
But the derivative dy/dx of the ellipse at say the point x = y is $dy/dx = -b^2/a^2$, and so the "outward" normal to the ellipse has a gradient of $a^2/b^2$. Now, can we expect the $\partial/\partial x$ to remain perpendicular to the ellipse as we lie drag it on its circumference? Why or why not? It does not seem to be the case, as this computation shows. If so, how should we understand what parallel transportation on an ellipse means? (Of course, I could have made an error somewhere, and would appreciate any corrections.)
Last edited: Feb 18, 2007
2. Feb 18, 2007
### Doodle Bob
I can't really speak to your computations which at first glance look kosher.
But I can say that one would *not* expect the image of d/dx under the elliptical flow to remain perpendicular to the ellipse at all points. The flow of a vector field will preserve the angles of vectors (or even orthogonality) only if it preserves (up to a nonzero function) the Riemannian metric - which in this case is the Euclidean inner product. i.e. the Lie derivative of the metric with respect to the given vector field should be a multiple of that metric. I don't think that a vector field which is tangent along a noncircular ellipse will satisfy that -- or least the one that you have chosen.
Furthermore, don't confuse parallel translation along a curve with transportation by the flow of a vector field tangent to that curve. Parallel transport *will* by definition preserve angles, the dynamic flow (or rather a dynamic flow -- there are infinitely many after all because there are infinitely many ways to extend a vector field along a curve to a neighborhood abotu that curve) tangent to the curve will not necessarily.
3. Feb 18, 2007
### Doodle Bob
Regarding parallel translation...
Since we're dealing with a flat 2-dimensional Riem. manifold here (The Eucldiean plane), calculating the parallel transport of a vector around the ellipse is easy.
In your case, we have d/dx at the point (a,0). It is of unit length and perpendicular to the tangent vector of the ellipse there and pointing "outside" the filled ellipse. The parallel transport of this vector about the curve will have the very same properties at each given point, i.e. unit length and normal to the curve and pointing outside of the filled ellipse (its relative orientation with respect to the tangent vector will not change). Thus, it will be the outward pointing normal vector field of the ellipse.
Things change, of course, if the metric is not flat (say, hyperbolic 2-space), then we get nontrivial holonomy so that, when we parallel-transport a vector all the way around a closed curve, we often end up with a different vector at the place of origin. In the case of hyperbolci 2-space, the difference between the original vector and its wrap-around parallel-transport is related to the total area enclosed by the curve.
Hope that helps.
4. Feb 18, 2007
### pmb_phy
Note: Lie dragging a vector takes place on a one of the curves which forms a congruence which fills the manifold so keep in mind that the ellipse is part of this congruence.
Pete
5. Feb 19, 2007
### wandering.the.cosmos
I made a sign error with my Lie brackets -- both of them should read
$$\left[\frac{d}{d\theta},\frac{\partial}{\partial x}\right] = -\frac{b}{a} \frac{\partial}{\partial y}$$
$$\left[\frac{d}{d\theta},\frac{\partial}{\partial y}\right] = \frac{a}{b} \frac{\partial}{\partial x}$$
But that'd mean that
$$\exp\left[\theta \pounds_{d/d\theta}\right] \frac{\partial}{\partial x} = -\frac{y}{a} \frac{\partial}{\partial y} + \frac{x}{a} \frac{\partial}{\partial x}$$
And hence it seems that $\partial/\partial x$ would start dipping in the negative y direction as it's being dragged along the ellipse? If so this is quite far from my expectation that Lie dragging gives us a way of parallel transporting w/o using a metric.
Last edited: Feb 19, 2007
6. Feb 19, 2007
### Doodle Bob
That would be because the two processes are very different. The Lie process for example depends *completely* on how you extend the tangent vector of the curve away from the curve. You chose to extend it by creating the family of parallel ellipses. But you could have also chosen a family of conic sections with some other property, say, sharing a directrix. This would have resulted in a different family of curves hence a different vector field to "Lie drag" along and hence a different Lie transportation than the one you ended up with.
As I stated before, some vector fields do result in isometries, but you have to choose them wisely. As noted by Pete, your ellipse vector field will generate non-isometric transformations on the plane. I believe in this case they would have to foliate to circles and lines.
Similar Discussions: Lie dragging a vector around the ellipse | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9060774445533752, "perplexity": 407.3187518278573}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-43/segments/1508187825497.18/warc/CC-MAIN-20171023001732-20171023021732-00263.warc.gz"} |
https://math.stackexchange.com/questions/956684/what-is-probability-that-a-sample-covers-all-classes | # What is probability that a sample covers all classes?
Suppose:
1. there are $n$ distinct classes in a population (i.e. each member of the population is a member of exactly one class),
2. (For simplicity) the classes are all equally sized and the probability of selecting (with replacement) a member from any one class is $1/n$.
3. $x$ samples are taken (with replacement) where $x \ge n$.
What is the probability $p(x,n)$ that each class is represented by at least one of the samples?
What I've tried: special case $$p(n,n) = \frac{n!}{n^n}.$$ e.g. $$p(6,6) = \frac{6!}{6^6} = \frac{6}{6} \times \frac{5}{6} \times ... \times \frac{2}{6} \times \frac{1}{6}.$$
The 6 distinct classes could be the faces 1,2, .. , 6 on a fair die. $p(6,6)$ is the probability that when the die is rolled 6 times, no faces come up twice. Any face is OK for the first roll, then 5 faces, then 4, ... | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8608617782592773, "perplexity": 195.20858921886907}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.3, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-04/segments/1610704803737.78/warc/CC-MAIN-20210126202017-20210126232017-00314.warc.gz"} |
http://www.michaelshell.org/tex/mciteplus/ | # The Mciteplus Package Homepage
## Overview
The mciteplus LaTeX package is an enhanced reimplementation of the mcite package, which was written by Thorsten Ohl, which provides support for the grouping of multiple citations together as is often done in physics journals. An extensive set of features provide for other applications such as reference sublisting.
The most recent version of Mciteplus is v1.2, which was released on September 13, 2013.
Version 1.2 has a few changes from the previous release:
• Add support for \citenum of natbib version 8.0 and later.
• Corrected bug with cross-referenced entries with backref.sty.
## Obtaining Mciteplus
Mciteplus can be obtained at:
## Helpful Tips
Remember:
1. You can't use existing mcite bibstyles (.bst files) with mciteplus. They have to be remodified as described in the mciteplus user manual.
2. When using a sorting bibstyle, it will require additional mciteplus modifications to its sort key code. Also, the tail entries will all have to be declared via mcitetail="yes" in the BibTeX database.
3. If the label spacing is incorrect, make sure that the maximum label width form is correct. Under multiple bibliographies with continuous numbering, make sure that the bibitem counter reset has been turned off via \mciteResetBibitemCountfalse.
4. When using an overall bibliography with the chapterbib package, be sure and use the chapterbibrootbib mciteplus package option.
5. If using the BibTeX wild card entry "\nocite{*}", issue a \mciteErrorOnUnknownfalse so that mciteplus will not complain when it encounters bibliography entries that it does not know about.
6. The mciteplus "debug" package option can be used to see what tracking IDs, etc., mciteplus is using.
## Frequently Asked Questions
### Q: I want to reference tail and/or head references via \mciteSubRef, but I don't want to actually label the subitems. How can I do this?
Just enable sublisting and set the labels to empty:
\mciteSetSublistMode{h}
\mciteSetSublistLabelBeginEnd{}{}{}
Also, remember that, like \ref, at present, \mciteSubRef can only be given one citation key at a time.
## Obtaining Support
You can obtain support for Mciteplus from:
The Usenet newsgroup comp.text.tex
This the primary means of support for LaTeX related issues.
You can contact me via the email address(es) at my contact page.
Please use this option only for packages that I maintain (not general help with LaTeX). | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.6845137476921082, "perplexity": 6257.962744186885}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": false}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2014-49/segments/1416931011456.52/warc/CC-MAIN-20141125155651-00005-ip-10-235-23-156.ec2.internal.warc.gz"} |
https://astronomy.stackexchange.com/questions/28327/if-a-giant-object-would-approach-the-earth-would-earth-start-to-turn-faster-or | If a giant object would approach the Earth, would Earth start to turn faster or slower while the object starts to become nearer and nearer?
I am asking myself this question: if a giant celestial object would approach the Earth, would Earth start to turn faster (then day duration would be diminished) or slower (day duration increased) while the object starts to become nearer and nearer? Thank you!
• I believe it depend on which direction and speed it is coming toward the earth. Of it is a fly by then it depend otherwise, it is going to slow down if its is headed straight for the center of the earth – Arvin Kushwaha Nov 11 '18 at 2:27
• hi @ipmp . Welcome new user. The tidal effects would be absolutely tiny. There are plenty of other effects as well (relativistic! quantum! etc) But this question is simply about simple Newtonian physics of bodies. It is completely inappropriate to confuse the various domains. OP is just asking about how a point mass angular momentum is affected by being moved about. – Fattie Nov 11 '18 at 7:36
• It can be both depending if the approach is kind of prograde or or retrograde as well as depending on the actual position of the passing body. Earth has already gravitational "handles" as it is oblate and everything will depend on the relative position of the giant object. If it is massive enough it can even made its own handles and eventually things might get stripped apart. – Alchimista Dec 24 '18 at 12:24
Could be, you'd be better to ask this on the Physics site, by the way.
No, the spinning of a perfectly round object is not affected at all, it just keeps spinning identically.
Let's say ..
say another Sun appeared, just like that.
Yes, the path that Earth is taking would go crazy. We might fly off, head towards this new Sun, starting making a figure of 8, or some crazy path!
But the spinning as such of the Earth would be totally unchanged.
The "way we point" ("North up" so to speak) would be completely unchanged, and the speed we turn at (ie, 24 hours a turn) would be unchanged.
This might seem surprising but, well, you can learn all about it in Newtonian physics!
Once again, no change to the spin as such of the Earth. the "direction we point" (ie the axis we spin around) and the time taken is totally unchanged if (for some bizarre reason!) we are "moved around in the heavens".
Note that there would be some absolutely tiny effects due to things like relativity (have a read!), the water on our planet sloshing around, and after all our Moon could be moved, bashed, etc. These effects on the speed we are spinning would be extremely small over the short period of time you're considering, in the "sci fi" scenario you outline, as seen in the diagram.
• Can you support "But the spinning as such of the Earth would be totally unchanged" with some science based explanation? Also, tidal distortion is a reality of planetary rotation, and to just say "The tidal effects would be absolutely tiny" and "this question is simply about simple Newtonian physics" and then give a wrong answer is unhelpful and unscientific. – uhoh Nov 11 '18 at 10:12
• The tidal effects would be absolutely tiny. If you can prove otherwise, go for it. This question is about basic Newtonian physics. It is foolish to answer in a different domain. It's not clever or pedantic, it's just incorrect to answer in the wrong domain. – Fattie Nov 11 '18 at 10:15
• tidal effects on Earth alone may be tiny because it is "very round" - but what about tidal effects on the Earth-Moon combo, which is much less symmetric? I suppose the moon orbit could be changed, even drastically, even be "stolen". In the long run this would influence the earth rotation because predictions how Earth rotation changes by 2.5 ms per century needs to be adjusted. Then again, all this is still either negligible or going in unpredictable directions - not to mention that the influx on the Earth orbit (as demonstrated in the highly accurate image) might be a lot more drastic – Hagen von Eitzen Nov 11 '18 at 14:30
• per Wikipedia The solar tidal force is 46% as large as the lunar. Moon: 1.1 × 10−7 g, Sun: 0.52 × 10−7 g, so here you are just saying wrong stuff that no amount of bold, italics or "!!!!!!!!! Gosh!" can right. However, I sure would like to know how you were able to produce the bold italics! – uhoh Nov 11 '18 at 17:10
• @uhoh italics is one asterisk either side of the expression, bold needs two asterisks, bold italics is three :-) – Chappo Hasn't Forgotten Monica Dec 12 '18 at 9:16
If a giant object would approach the Earth, would Earth start to turn faster or slower while the object starts to become nearer and nearer?
tl;dr: Probably will slow it down a small amount, but may induce a wobble that make a simple answer impossible without further details.
The problem is complicated. I'll leave a short answer.
The question is carefully written in (at least two) ways. It is agnostic to the size of the effect, instead asking only about its sign. So arguments that the effects are too tiny to matter are moot. It also does not specify the nature, distance, or duration of the approach. That makes the question quite difficult to answer definitively.
induced tidal distortion
The most straight-forward effect we know about is slowing due to tidal forces. The Theory subsection of Wikipedia's article Tidal acceleration outlines this nicely.
Because the Earth is slightly stretchy, the Moon's or another close body's gravity induces a tidal bulge. Wikipedia's Earth tide gives several components of a thorough decomposition, but the top two are about 38 cm due to the Moon and 17 cm due to the Sun. These exist on both the near and far side of each body.
Because the Earth responds slowly, these have a "lag". The lumps exist offset from the line between the Earth and the other body, and this allows for a torque. In the case of the Earth-Moon system that torque then tends to slow the Earth's rotation.
If the body is double in mass, the induced bulge's mass will be roughly linearly proportional and since the torque proportional to both it will be quadruple, proportional to $$m^2$$. As shown in that subsection it is also proportional to \$r^{-6}. So just for example, a planet about the size of the Earth (~80 Moons) and half the distance of the moon would have a torque 80 x 80 x 64 times larger.
However, it's hard to imagine a scenario where that could last for a thousand years to have a huge effect on Earth's rotation speed. This would be small, but definitely negative.
interaction with equatorial bulge
The body could pass perpendicular to the Earth's equator as well, and produce a really huge torque on Earth's equatorial bulge (expressed often as the $$J_2$$ term). That bulge is more like 30 kilometers, compared to the 30 centimeters of the induced tidal bulge by the Moon.
A perpendicular pass like that would induce a substantial wobble in the Earth's rotation during the time of passage, but I don't think it is easy to say with certainty the sign of the effect on the rotation rate with such complex motion and no further details.
• :) Quantative hurts. So the example is an object the size of Earth, which arrives from outer space and passes us - we'll say as close as you like , 10,000 km separation. Let's say it's near us (within a million miles) for 10 minutes. No wait, let's say a day .. no, let's say a month. How much is the day slowed by tidal effects? – Fattie Nov 13 '18 at 1:39
• @Fattie that's a detailed calculation requiring a detailed description of the particular conditions. The beauty of the question is that it does not ask for the magnitude, only the sign. – uhoh Nov 13 '18 at 1:42
• Heh! :) I just gave you exact figures, that match the story description in the question. – Fattie Nov 13 '18 at 1:43
• @Fattie you can't ask a new question in comments. You are not new to SE and so you already know what comments are for, and what they are not for. – uhoh Nov 13 '18 at 1:46
• BTW it is three asterisks front and back for this :) – Fattie Nov 13 '18 at 3:12 | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 2, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.6981985569000244, "perplexity": 863.061310587522}, "config": {"markdown_headings": false, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-25/segments/1623487620971.25/warc/CC-MAIN-20210615084235-20210615114235-00291.warc.gz"} |
https://www.sqlite.org/src/hexdump?name=8eeb80162074004e906b53d7340a12a14c471a83743aab975947e95ce061efcc | / Hex Artifact Content
## Artifact 8eeb80162074004e906b53d7340a12a14c471a83743aab975947e95ce061efcc:
• File Makefile.msc — part of check-in [a123cb93] at 2017-05-12 14:05:11 on branch trunk — Make sure the 'sqlite3changegroup_*' functions are included in the SQLITE_APICALL handling. (user: mistachkin size: 69384) [more...]
0000: 23 0a 23 20 6e 6d 61 6b 65 20 4d 61 6b 65 66 69 #.# nmake Makefi
0010: 6c 65 20 66 6f 72 20 53 51 4c 69 74 65 0a 23 0a le for SQLite.#.
0020: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
0030: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
0040: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
0050: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
0060: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a ###############.
0070: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
0080: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 20 53 ############## S
0090: 54 41 52 54 20 4f 46 20 4f 50 54 49 4f 4e 53 20 TART OF OPTIONS
00a0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
00b0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a ###############.
00c0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
00d0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
00e0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
00f0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
0100: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a ###############.
0110: 0a 23 20 54 68 65 20 74 6f 70 6c 65 76 65 6c 20 .# The toplevel
0120: 64 69 72 65 63 74 6f 72 79 20 6f 66 20 74 68 65 directory of the
0130: 20 73 6f 75 72 63 65 20 74 72 65 65 2e 20 20 54 source tree. T
0140: 68 69 73 20 69 73 20 74 68 65 20 64 69 72 65 63 his is the direc
0150: 74 6f 72 79 0a 23 20 74 68 61 74 20 63 6f 6e 74 tory.# that cont
0160: 61 69 6e 73 20 74 68 69 73 20 22 4d 61 6b 65 66 ains this "Makef
0170: 69 6c 65 2e 6d 73 63 22 2e 0a 23 0a 54 4f 50 20 ile.msc"..#.TOP
0180: 3d 20 2e 0a 0a 23 20 3c 3c 6d 61 72 6b 3e 3e 0a = ...# <<mark>>.
0190: 23 20 53 65 74 20 74 68 69 73 20 6e 6f 6e 2d 30 # Set this non-0
01a0: 20 74 6f 20 63 72 65 61 74 65 20 61 6e 64 20 75 to create and u
01b0: 73 65 20 74 68 65 20 53 51 4c 69 74 65 20 61 6d se the SQLite am
01c0: 61 6c 67 61 6d 61 74 69 6f 6e 20 66 69 6c 65 2e algamation file.
01d0: 0a 23 0a 21 49 46 4e 44 45 46 20 55 53 45 5f 41 .#.!IFNDEF USE_A
01e0: 4d 41 4c 47 41 4d 41 54 49 4f 4e 0a 55 53 45 5f MALGAMATION.USE_
01f0: 41 4d 41 4c 47 41 4d 41 54 49 4f 4e 20 3d 20 31 AMALGAMATION = 1
0200: 0a 21 45 4e 44 49 46 0a 23 20 3c 3c 2f 6d 61 72 .!ENDIF.# <</mar
0210: 6b 3e 3e 0a 0a 23 20 53 65 74 20 74 68 69 73 20 k>>..# Set this
0220: 6e 6f 6e 2d 30 20 74 6f 20 65 6e 61 62 6c 65 20 non-0 to enable
0230: 66 75 6c 6c 20 77 61 72 6e 69 6e 67 73 20 28 2d full warnings (-
0240: 57 34 2c 20 65 74 63 29 20 77 68 65 6e 20 63 6f W4, etc) when co
0250: 6d 70 69 6c 69 6e 67 2e 0a 23 0a 21 49 46 4e 44 mpiling..#.!IFND
0260: 45 46 20 55 53 45 5f 46 55 4c 4c 57 41 52 4e 0a EF USE_FULLWARN.
0270: 55 53 45 5f 46 55 4c 4c 57 41 52 4e 20 3d 20 31 USE_FULLWARN = 1
0280: 0a 21 45 4e 44 49 46 0a 0a 23 20 53 65 74 20 74 .!ENDIF..# Set t
0290: 68 69 73 20 6e 6f 6e 2d 30 20 74 6f 20 65 6e 61 his non-0 to ena
02a0: 62 6c 65 20 74 72 65 61 74 69 6e 67 20 77 61 72 ble treating war
02b0: 6e 69 6e 67 73 20 61 73 20 65 72 72 6f 72 73 20 nings as errors
02c0: 28 2d 57 58 2c 20 65 74 63 29 20 77 68 65 6e 0a (-WX, etc) when.
02d0: 23 20 63 6f 6d 70 69 6c 69 6e 67 2e 0a 23 0a 21 # compiling..#.!
02e0: 49 46 4e 44 45 46 20 55 53 45 5f 46 41 54 41 4c IFNDEF USE_FATAL
02f0: 5f 57 41 52 4e 0a 55 53 45 5f 46 41 54 41 4c 5f _WARN.USE_FATAL_
0300: 57 41 52 4e 20 3d 20 30 0a 21 45 4e 44 49 46 0a WARN = 0.!ENDIF.
0310: 0a 23 20 53 65 74 20 74 68 69 73 20 6e 6f 6e 2d .# Set this non-
0320: 30 20 74 6f 20 65 6e 61 62 6c 65 20 66 75 6c 6c 0 to enable full
0330: 20 72 75 6e 74 69 6d 65 20 65 72 72 6f 72 20 63 runtime error c
0340: 68 65 63 6b 73 20 28 2d 52 54 43 31 2c 20 65 74 hecks (-RTC1, et
0350: 63 29 2e 20 20 54 68 69 73 0a 23 20 68 61 73 20 c). This.# has
0360: 6e 6f 20 65 66 66 65 63 74 20 69 66 20 28 61 6e no effect if (an
0370: 79 29 20 6f 70 74 69 6d 69 7a 61 74 69 6f 6e 73 y) optimizations
0380: 20 61 72 65 20 65 6e 61 62 6c 65 64 2e 0a 23 0a are enabled..#.
0390: 21 49 46 4e 44 45 46 20 55 53 45 5f 52 55 4e 54 !IFNDEF USE_RUNT
03a0: 49 4d 45 5f 43 48 45 43 4b 53 0a 55 53 45 5f 52 IME_CHECKS.USE_R
03b0: 55 4e 54 49 4d 45 5f 43 48 45 43 4b 53 20 3d 20 UNTIME_CHECKS =
03c0: 30 0a 21 45 4e 44 49 46 0a 0a 23 20 53 65 74 20 0.!ENDIF..# Set
03d0: 74 68 69 73 20 6e 6f 6e 2d 30 20 74 6f 20 63 72 this non-0 to cr
03e0: 65 61 74 65 20 61 20 53 51 4c 69 74 65 20 61 6d eate a SQLite am
03f0: 61 6c 67 61 6d 61 74 69 6f 6e 20 66 69 6c 65 20 algamation file
0400: 74 68 61 74 20 65 78 63 6c 75 64 65 73 20 74 68 that excludes th
0410: 65 0a 23 20 76 61 72 69 6f 75 73 20 62 75 69 6c e.# various buil
0420: 74 2d 69 6e 20 65 78 74 65 6e 73 69 6f 6e 73 2e t-in extensions.
0430: 0a 23 0a 21 49 46 4e 44 45 46 20 4d 49 4e 49 4d .#.!IFNDEF MINIM
0440: 41 4c 5f 41 4d 41 4c 47 41 4d 41 54 49 4f 4e 0a AL_AMALGAMATION.
0450: 4d 49 4e 49 4d 41 4c 5f 41 4d 41 4c 47 41 4d 41 MINIMAL_AMALGAMA
0460: 54 49 4f 4e 20 3d 20 30 0a 21 45 4e 44 49 46 0a TION = 0.!ENDIF.
0470: 0a 23 20 53 65 74 20 74 68 69 73 20 6e 6f 6e 2d .# Set this non-
0480: 30 20 74 6f 20 75 73 65 20 22 73 74 64 63 61 6c 0 to use "stdcal
0490: 6c 22 20 63 61 6c 6c 69 6e 67 20 63 6f 6e 76 65 l" calling conve
04a0: 6e 74 69 6f 6e 20 66 6f 72 20 74 68 65 20 63 6f ntion for the co
04b0: 72 65 20 6c 69 62 72 61 72 79 0a 23 20 61 6e 64 re library.# and
04c0: 20 73 68 65 6c 6c 20 65 78 65 63 75 74 61 62 6c shell executabl
04d0: 65 2e 0a 23 0a 21 49 46 4e 44 45 46 20 55 53 45 e..#.!IFNDEF USE
04e0: 5f 53 54 44 43 41 4c 4c 0a 55 53 45 5f 53 54 44 _STDCALL.USE_STD
04f0: 43 41 4c 4c 20 3d 20 30 0a 21 45 4e 44 49 46 0a CALL = 0.!ENDIF.
0500: 0a 23 20 53 65 74 20 74 68 69 73 20 6e 6f 6e 2d .# Set this non-
0510: 30 20 74 6f 20 68 61 76 65 20 74 68 65 20 73 68 0 to have the sh
0520: 65 6c 6c 20 65 78 65 63 75 74 61 62 6c 65 20 6c ell executable l
0530: 69 6e 6b 20 61 67 61 69 6e 73 74 20 74 68 65 20 ink against the
0540: 63 6f 72 65 20 64 79 6e 61 6d 69 63 0a 23 20 6c core dynamic.# l
0550: 69 6e 6b 20 6c 69 62 72 61 72 79 2e 0a 23 0a 21 ink library..#.!
0560: 49 46 4e 44 45 46 20 44 59 4e 41 4d 49 43 5f 53 IFNDEF DYNAMIC_S
0570: 48 45 4c 4c 0a 44 59 4e 41 4d 49 43 5f 53 48 45 HELL.DYNAMIC_SHE
0580: 4c 4c 20 3d 20 30 0a 21 45 4e 44 49 46 0a 0a 23 LL = 0.!ENDIF..#
0590: 20 53 65 74 20 74 68 69 73 20 6e 6f 6e 2d 30 20 Set this non-0
05a0: 74 6f 20 65 6e 61 62 6c 65 20 65 78 74 72 61 20 to enable extra
05b0: 63 6f 64 65 20 74 68 61 74 20 61 74 74 65 6d 70 code that attemp
05c0: 74 73 20 74 6f 20 64 65 74 65 63 74 20 6d 69 73 ts to detect mis
05d0: 75 73 65 20 6f 66 20 74 68 65 0a 23 20 53 51 4c use of the.# SQL
05e0: 69 74 65 20 41 50 49 2e 0a 23 0a 21 49 46 4e 44 ite API..#.!IFND
05f0: 45 46 20 41 50 49 5f 41 52 4d 4f 52 0a 41 50 49 EF API_ARMOR.API
0600: 5f 41 52 4d 4f 52 20 3d 20 30 0a 21 45 4e 44 49 _ARMOR = 0.!ENDI
0610: 46 0a 0a 23 20 49 66 20 6e 65 63 65 73 73 61 72 F..# If necessar
0620: 79 2c 20 63 72 65 61 74 65 20 61 20 6c 69 73 74 y, create a list
0630: 20 6f 66 20 68 61 72 6d 6c 65 73 73 20 63 6f 6d of harmless com
0640: 70 69 6c 65 72 20 77 61 72 6e 69 6e 67 73 20 74 piler warnings t
0650: 6f 20 64 69 73 61 62 6c 65 20 77 68 65 6e 0a 23 o disable when.#
0660: 20 63 6f 6d 70 69 6c 69 6e 67 20 74 68 65 20 76 compiling the v
0670: 61 72 69 6f 75 73 20 74 6f 6f 6c 73 2e 20 20 46 arious tools. F
0680: 6f 72 20 74 68 65 20 53 51 4c 69 74 65 20 73 6f or the SQLite so
0690: 75 72 63 65 20 63 6f 64 65 20 69 74 73 65 6c 66 urce code itself
06a0: 2c 20 77 61 72 6e 69 6e 67 73 2c 0a 23 20 69 66 , warnings,.# if
06b0: 20 61 6e 79 2c 20 77 69 6c 6c 20 62 65 20 64 69 any, will be di
06c0: 73 61 62 6c 65 64 20 66 72 6f 6d 20 77 69 74 68 sabled from with
06d0: 69 6e 20 69 74 2e 0a 23 0a 21 49 46 4e 44 45 46 in it..#.!IFNDEF
06e0: 20 4e 4f 5f 57 41 52 4e 0a 21 49 46 20 24 28 55 NO_WARN.!IF $(U 06f0: 53 45 5f 46 55 4c 4c 57 41 52 4e 29 21 3d 30 0a SE_FULLWARN)!=0. 0700: 4e 4f 5f 57 41 52 4e 20 3d 20 2d 77 64 34 30 35 NO_WARN = -wd405 0710: 34 20 2d 77 64 34 30 35 35 20 2d 77 64 34 31 30 4 -wd4055 -wd410 0720: 30 20 2d 77 64 34 31 32 37 20 2d 77 64 34 31 33 0 -wd4127 -wd413 0730: 30 20 2d 77 64 34 31 35 32 20 2d 77 64 34 31 38 0 -wd4152 -wd418 0740: 39 20 2d 77 64 34 32 30 36 0a 4e 4f 5f 57 41 52 9 -wd4206.NO_WAR 0750: 4e 20 3d 20 24 28 4e 4f 5f 57 41 52 4e 29 20 2d N =$(NO_WARN) -
0760: 77 64 34 32 31 30 20 2d 77 64 34 32 33 32 20 2d wd4210 -wd4232 -
0770: 77 64 34 33 30 35 20 2d 77 64 34 33 30 36 20 2d wd4305 -wd4306 -
0780: 77 64 34 37 30 32 20 2d 77 64 34 37 30 36 0a 21 wd4702 -wd4706.!
0790: 45 4e 44 49 46 0a 21 45 4e 44 49 46 0a 0a 23 20 ENDIF.!ENDIF..#
07a0: 53 65 74 20 74 68 69 73 20 6e 6f 6e 2d 30 20 74 Set this non-0 t
07b0: 6f 20 75 73 65 20 74 68 65 20 6c 69 62 72 61 72 o use the librar
07c0: 79 20 70 61 74 68 73 20 61 6e 64 20 6f 74 68 65 y paths and othe
07d0: 72 20 6f 70 74 69 6f 6e 73 20 6e 65 63 65 73 73 r options necess
07e0: 61 72 79 20 66 6f 72 0a 23 20 57 69 6e 64 6f 77 ary for.# Window
07f0: 73 20 50 68 6f 6e 65 20 38 2e 31 2e 0a 23 0a 21 s Phone 8.1..#.!
0800: 49 46 4e 44 45 46 20 55 53 45 5f 57 50 38 31 5f IFNDEF USE_WP81_
0810: 4f 50 54 53 0a 55 53 45 5f 57 50 38 31 5f 4f 50 OPTS.USE_WP81_OP
0820: 54 53 20 3d 20 30 0a 21 45 4e 44 49 46 0a 0a 23 TS = 0.!ENDIF..#
0830: 20 53 65 74 20 74 68 69 73 20 6e 6f 6e 2d 30 20 Set this non-0
0840: 74 6f 20 73 70 6c 69 74 20 74 68 65 20 53 51 4c to split the SQL
0850: 69 74 65 20 61 6d 61 6c 67 61 6d 61 74 69 6f 6e ite amalgamation
0860: 20 66 69 6c 65 20 69 6e 74 6f 20 63 68 75 6e 6b file into chunk
0870: 73 20 74 6f 0a 23 20 62 65 20 75 73 65 64 20 66 s to.# be used f
0880: 6f 72 20 64 65 62 75 67 67 69 6e 67 20 77 69 74 or debugging wit
0890: 68 20 56 69 73 75 61 6c 20 53 74 75 64 69 6f 2e h Visual Studio.
08a0: 0a 23 0a 21 49 46 4e 44 45 46 20 53 50 4c 49 54 .#.!IFNDEF SPLIT
08b0: 5f 41 4d 41 4c 47 41 4d 41 54 49 4f 4e 0a 53 50 _AMALGAMATION.SP
08c0: 4c 49 54 5f 41 4d 41 4c 47 41 4d 41 54 49 4f 4e LIT_AMALGAMATION
08d0: 20 3d 20 30 0a 21 45 4e 44 49 46 0a 0a 23 20 3c = 0.!ENDIF..# <
08e0: 3c 6d 61 72 6b 3e 3e 0a 23 20 53 65 74 20 74 68 <mark>>.# Set th
08f0: 69 73 20 6e 6f 6e 2d 30 20 74 6f 20 75 73 65 20 is non-0 to use
0900: 74 68 65 20 49 6e 74 65 72 6e 61 74 69 6f 6e 61 the Internationa
0910: 6c 20 43 6f 6d 70 6f 6e 65 6e 74 73 20 66 6f 72 l Components for
0920: 20 55 6e 69 63 6f 64 65 20 28 49 43 55 29 2e 0a Unicode (ICU)..
0930: 23 0a 21 49 46 4e 44 45 46 20 55 53 45 5f 49 43 #.!IFNDEF USE_IC
0940: 55 0a 55 53 45 5f 49 43 55 20 3d 20 30 0a 21 45 U.USE_ICU = 0.!E
0950: 4e 44 49 46 0a 23 20 3c 3c 2f 6d 61 72 6b 3e 3e NDIF.# <</mark>>
0960: 0a 0a 23 20 53 65 74 20 74 68 69 73 20 6e 6f 6e ..# Set this non
0970: 2d 30 20 74 6f 20 64 79 6e 61 6d 69 63 61 6c 6c -0 to dynamicall
0980: 79 20 6c 69 6e 6b 20 74 6f 20 74 68 65 20 4d 53 y link to the MS
0990: 56 43 20 72 75 6e 74 69 6d 65 20 6c 69 62 72 61 VC runtime libra
09a0: 72 79 2e 0a 23 0a 21 49 46 4e 44 45 46 20 55 53 ry..#.!IFNDEF US
09b0: 45 5f 43 52 54 5f 44 4c 4c 0a 55 53 45 5f 43 52 E_CRT_DLL.USE_CR
09c0: 54 5f 44 4c 4c 20 3d 20 30 0a 21 45 4e 44 49 46 T_DLL = 0.!ENDIF
09d0: 0a 0a 23 20 53 65 74 20 74 68 69 73 20 6e 6f 6e ..# Set this non
09e0: 2d 30 20 74 6f 20 6c 69 6e 6b 20 74 6f 20 74 68 -0 to link to th
09f0: 65 20 52 50 43 52 54 34 20 6c 69 62 72 61 72 79 e RPCRT4 library
0a00: 2e 0a 23 0a 21 49 46 4e 44 45 46 20 55 53 45 5f ..#.!IFNDEF USE_
0a10: 52 50 43 52 54 34 5f 4c 49 42 0a 55 53 45 5f 52 RPCRT4_LIB.USE_R
0a20: 50 43 52 54 34 5f 4c 49 42 20 3d 20 30 0a 21 45 PCRT4_LIB = 0.!E
0a30: 4e 44 49 46 0a 0a 23 20 53 65 74 20 74 68 69 73 NDIF..# Set this
0a40: 20 6e 6f 6e 2d 30 20 74 6f 20 67 65 6e 65 72 61 non-0 to genera
0a50: 74 65 20 61 73 73 65 6d 62 6c 79 20 63 6f 64 65 te assembly code
0a60: 20 6c 69 73 74 69 6e 67 73 20 66 6f 72 20 74 68 listings for th
0a70: 65 20 73 6f 75 72 63 65 20 63 6f 64 65 0a 23 20 e source code.#
0a80: 66 69 6c 65 73 2e 0a 23 0a 21 49 46 4e 44 45 46 files..#.!IFNDEF
0a90: 20 55 53 45 5f 4c 49 53 54 49 4e 47 53 0a 55 53 USE_LISTINGS.US
0aa0: 45 5f 4c 49 53 54 49 4e 47 53 20 3d 20 30 0a 21 E_LISTINGS = 0.!
0ab0: 45 4e 44 49 46 0a 0a 23 20 53 65 74 20 74 68 69 ENDIF..# Set thi
0ac0: 73 20 6e 6f 6e 2d 30 20 74 6f 20 61 74 74 65 6d s non-0 to attem
0ad0: 70 74 20 73 65 74 74 69 6e 67 20 74 68 65 20 6e pt setting the n
0ae0: 61 74 69 76 65 20 63 6f 6d 70 69 6c 65 72 20 61 ative compiler a
0af0: 75 74 6f 6d 61 74 69 63 61 6c 6c 79 0a 23 20 66 utomatically.# f
0b00: 6f 72 20 63 72 6f 73 73 2d 63 6f 6d 70 69 6c 69 or cross-compili
0b10: 6e 67 20 74 68 65 20 63 6f 6d 6d 61 6e 64 20 6c ng the command l
0b20: 69 6e 65 20 74 6f 6f 6c 73 20 6e 65 65 64 65 64 ine tools needed
0b30: 20 64 75 72 69 6e 67 20 74 68 65 20 63 6f 6d 70 during the comp
0b40: 69 6c 61 74 69 6f 6e 0a 23 20 70 72 6f 63 65 73 ilation.# proces
0b50: 73 2e 0a 23 0a 21 49 46 4e 44 45 46 20 58 43 4f s..#.!IFNDEF XCO
0b60: 4d 50 49 4c 45 0a 58 43 4f 4d 50 49 4c 45 20 3d MPILE.XCOMPILE =
0b70: 20 30 0a 21 45 4e 44 49 46 0a 0a 23 20 53 65 74 0.!ENDIF..# Set
0b80: 20 74 68 69 73 20 6e 6f 6e 2d 30 20 74 6f 20 75 this non-0 to u
0b90: 73 65 20 74 68 65 20 6e 61 74 69 76 65 20 6c 69 se the native li
0ba0: 62 72 61 72 69 65 73 20 70 61 74 68 73 20 66 6f braries paths fo
0bb0: 72 20 63 72 6f 73 73 2d 63 6f 6d 70 69 6c 69 6e r cross-compilin
0bc0: 67 0a 23 20 74 68 65 20 63 6f 6d 6d 61 6e 64 20 g.# the command
0bd0: 6c 69 6e 65 20 74 6f 6f 6c 73 20 6e 65 65 64 65 line tools neede
0be0: 64 20 64 75 72 69 6e 67 20 74 68 65 20 63 6f 6d d during the com
0bf0: 70 69 6c 61 74 69 6f 6e 20 70 72 6f 63 65 73 73 pilation process
0c00: 2e 0a 23 0a 21 49 46 4e 44 45 46 20 55 53 45 5f ..#.!IFNDEF USE_
0c10: 4e 41 54 49 56 45 5f 4c 49 42 50 41 54 48 53 0a NATIVE_LIBPATHS.
0c20: 55 53 45 5f 4e 41 54 49 56 45 5f 4c 49 42 50 41 USE_NATIVE_LIBPA
0c30: 54 48 53 20 3d 20 30 0a 21 45 4e 44 49 46 0a 0a THS = 0.!ENDIF..
0c40: 23 20 53 65 74 20 74 68 69 73 20 30 20 74 6f 20 # Set this 0 to
0c50: 73 6b 69 70 20 74 68 65 20 63 6f 6d 70 69 6c 69 skip the compili
0c60: 6e 67 20 61 6e 64 20 65 6d 62 65 64 64 69 6e 67 ng and embedding
0c70: 20 6f 66 20 76 65 72 73 69 6f 6e 20 72 65 73 6f of version reso
0c80: 75 72 63 65 73 2e 0a 23 0a 21 49 46 4e 44 45 46 urces..#.!IFNDEF
0c90: 20 55 53 45 5f 52 43 0a 55 53 45 5f 52 43 20 3d USE_RC.USE_RC =
0ca0: 20 31 0a 21 45 4e 44 49 46 0a 0a 23 20 53 65 74 1.!ENDIF..# Set
0cb0: 20 74 68 69 73 20 6e 6f 6e 2d 30 20 74 6f 20 63 this non-0 to c
0cc0: 6f 6d 70 69 6c 65 20 62 69 6e 61 72 69 65 73 20 ompile binaries
0cd0: 73 75 69 74 61 62 6c 65 20 66 6f 72 20 74 68 65 suitable for the
0ce0: 20 57 69 6e 52 54 20 65 6e 76 69 72 6f 6e 6d 65 WinRT environme
0cf0: 6e 74 2e 0a 23 20 54 68 69 73 20 73 65 74 74 69 nt..# This setti
0d00: 6e 67 20 64 6f 65 73 20 6e 6f 74 20 61 70 70 6c ng does not appl
0d10: 79 20 74 6f 20 61 6e 79 20 62 69 6e 61 72 69 65 y to any binarie
0d20: 73 20 74 68 61 74 20 72 65 71 75 69 72 65 20 54 s that require T
0d30: 63 6c 20 74 6f 20 6f 70 65 72 61 74 65 0a 23 20 cl to operate.#
0d40: 70 72 6f 70 65 72 6c 79 20 28 69 2e 65 2e 20 74 properly (i.e. t
0d50: 68 65 20 74 65 78 74 20 66 69 78 74 75 72 65 2c he text fixture,
0d60: 20 65 74 63 29 2e 0a 23 0a 21 49 46 4e 44 45 46 etc)..#.!IFNDEF
0d70: 20 46 4f 52 5f 57 49 4e 52 54 0a 46 4f 52 5f 57 FOR_WINRT.FOR_W
0d80: 49 4e 52 54 20 3d 20 30 0a 21 45 4e 44 49 46 0a INRT = 0.!ENDIF.
0d90: 0a 23 20 53 65 74 20 74 68 69 73 20 6e 6f 6e 2d .# Set this non-
0da0: 30 20 74 6f 20 63 6f 6d 70 69 6c 65 20 62 69 6e 0 to compile bin
0db0: 61 72 69 65 73 20 73 75 69 74 61 62 6c 65 20 66 aries suitable f
0dc0: 6f 72 20 74 68 65 20 55 57 50 20 65 6e 76 69 72 or the UWP envir
0dd0: 6f 6e 6d 65 6e 74 2e 0a 23 20 54 68 69 73 20 73 onment..# This s
0de0: 65 74 74 69 6e 67 20 64 6f 65 73 20 6e 6f 74 20 etting does not
0df0: 61 70 70 6c 79 20 74 6f 20 61 6e 79 20 62 69 6e apply to any bin
0e00: 61 72 69 65 73 20 74 68 61 74 20 72 65 71 75 69 aries that requi
0e10: 72 65 20 54 63 6c 20 74 6f 20 6f 70 65 72 61 74 re Tcl to operat
0e20: 65 0a 23 20 70 72 6f 70 65 72 6c 79 20 28 69 2e e.# properly (i.
0e30: 65 2e 20 74 68 65 20 74 65 78 74 20 66 69 78 74 e. the text fixt
0e40: 75 72 65 2c 20 65 74 63 29 2e 0a 23 0a 21 49 46 ure, etc)..#.!IF
0e50: 4e 44 45 46 20 46 4f 52 5f 55 57 50 0a 46 4f 52 NDEF FOR_UWP.FOR
0e60: 5f 55 57 50 20 3d 20 30 0a 21 45 4e 44 49 46 0a _UWP = 0.!ENDIF.
0e70: 0a 23 20 53 65 74 20 74 68 69 73 20 6e 6f 6e 2d .# Set this non-
0e80: 30 20 74 6f 20 63 6f 6d 70 69 6c 65 20 62 69 6e 0 to compile bin
0e90: 61 72 69 65 73 20 73 75 69 74 61 62 6c 65 20 66 aries suitable f
0ea0: 6f 72 20 74 68 65 20 57 69 6e 64 6f 77 73 20 31 or the Windows 1
0eb0: 30 20 70 6c 61 74 66 6f 72 6d 2e 0a 23 0a 21 49 0 platform..#.!I
0ec0: 46 4e 44 45 46 20 46 4f 52 5f 57 49 4e 31 30 0a FNDEF FOR_WIN10.
0ed0: 46 4f 52 5f 57 49 4e 31 30 20 3d 20 30 0a 21 45 FOR_WIN10 = 0.!E
0ee0: 4e 44 49 46 0a 0a 23 20 3c 3c 6d 61 72 6b 3e 3e NDIF..# <<mark>>
0ef0: 0a 23 20 53 65 74 20 74 68 69 73 20 6e 6f 6e 2d .# Set this non-
0f00: 30 20 74 6f 20 73 6b 69 70 20 61 74 74 65 6d 70 0 to skip attemp
0f10: 74 69 6e 67 20 74 6f 20 6c 6f 6f 6b 20 66 6f 72 ting to look for
0f20: 20 61 6e 64 2f 6f 72 20 6c 69 6e 6b 20 77 69 74 and/or link wit
0f30: 68 20 74 68 65 20 54 63 6c 0a 23 20 72 75 6e 74 h the Tcl.# runt
0f40: 69 6d 65 20 6c 69 62 72 61 72 79 2e 0a 23 0a 21 ime library..#.!
0f50: 49 46 4e 44 45 46 20 4e 4f 5f 54 43 4c 0a 4e 4f IFNDEF NO_TCL.NO
0f60: 5f 54 43 4c 20 3d 20 30 0a 21 45 4e 44 49 46 0a _TCL = 0.!ENDIF.
0f70: 23 20 3c 3c 2f 6d 61 72 6b 3e 3e 0a 0a 23 20 53 # <</mark>>..# S
0f80: 65 74 20 74 68 69 73 20 74 6f 20 6e 6f 6e 2d 30 et this to non-0
0f90: 20 74 6f 20 63 72 65 61 74 65 20 61 6e 64 20 75 to create and u
0fa0: 73 65 20 50 44 42 73 2e 0a 23 0a 21 49 46 4e 44 se PDBs..#.!IFND
0fb0: 45 46 20 53 59 4d 42 4f 4c 53 0a 53 59 4d 42 4f EF SYMBOLS.SYMBO
0fc0: 4c 53 20 3d 20 31 0a 21 45 4e 44 49 46 0a 0a 23 LS = 1.!ENDIF..#
0fd0: 20 53 65 74 20 74 68 69 73 20 74 6f 20 6e 6f 6e Set this to non
0fe0: 2d 30 20 74 6f 20 75 73 65 20 74 68 65 20 53 51 -0 to use the SQ
0ff0: 4c 69 74 65 20 64 65 62 75 67 67 69 6e 67 20 68 Lite debugging h
1000: 65 61 70 20 73 75 62 73 79 73 74 65 6d 2e 0a 23 eap subsystem..#
1010: 0a 21 49 46 4e 44 45 46 20 4d 45 4d 44 45 42 55 .!IFNDEF MEMDEBU
1020: 47 0a 4d 45 4d 44 45 42 55 47 20 3d 20 30 0a 21 G.MEMDEBUG = 0.!
1030: 45 4e 44 49 46 0a 0a 23 20 53 65 74 20 74 68 69 ENDIF..# Set thi
1040: 73 20 74 6f 20 6e 6f 6e 2d 30 20 74 6f 20 75 73 s to non-0 to us
1050: 65 20 74 68 65 20 57 69 6e 33 32 20 6e 61 74 69 e the Win32 nati
1060: 76 65 20 68 65 61 70 20 73 75 62 73 79 73 74 65 ve heap subsyste
1070: 6d 2e 0a 23 0a 21 49 46 4e 44 45 46 20 57 49 4e m..#.!IFNDEF WIN
1080: 33 32 48 45 41 50 0a 57 49 4e 33 32 48 45 41 50 32HEAP.WIN32HEAP
1090: 20 3d 20 30 0a 21 45 4e 44 49 46 0a 0a 23 20 53 = 0.!ENDIF..# S
10a0: 65 74 20 74 68 69 73 20 74 6f 20 6e 6f 6e 2d 30 et this to non-0
10b0: 20 74 6f 20 65 6e 61 62 6c 65 20 4f 53 54 52 41 to enable OSTRA
10c0: 43 45 28 29 20 6d 61 63 72 6f 73 2c 20 77 68 69 CE() macros, whi
10d0: 63 68 20 63 61 6e 20 62 65 20 75 73 65 66 75 6c ch can be useful
10e0: 20 77 68 65 6e 0a 23 20 64 65 62 75 67 67 69 6e when.# debuggin
10f0: 67 2e 0a 23 0a 21 49 46 4e 44 45 46 20 4f 53 54 g..#.!IFNDEF OST
1100: 52 41 43 45 0a 4f 53 54 52 41 43 45 20 3d 20 30 RACE.OSTRACE = 0
1110: 0a 21 45 4e 44 49 46 0a 0a 23 20 53 65 74 20 74 .!ENDIF..# Set t
1120: 68 69 73 20 74 6f 20 6f 6e 65 20 6f 66 20 74 68 his to one of th
1130: 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 76 61 6c 75 e following valu
1140: 65 73 20 74 6f 20 65 6e 61 62 6c 65 20 76 61 72 es to enable var
1150: 69 6f 75 73 20 64 65 62 75 67 67 69 6e 67 0a 23 ious debugging.#
1160: 20 66 65 61 74 75 72 65 73 2e 20 20 45 61 63 68 features. Each
1170: 20 6c 65 76 65 6c 20 69 6e 63 6c 75 64 65 73 20 level includes
1180: 74 68 65 20 64 65 62 75 67 67 69 6e 67 20 6f 70 the debugging op
1190: 74 69 6f 6e 73 20 66 72 6f 6d 20 74 68 65 20 70 tions from the p
11a0: 72 65 76 69 6f 75 73 0a 23 20 6c 65 76 65 6c 73 revious.# levels
11b0: 2e 20 20 43 75 72 72 65 6e 74 6c 79 2c 20 74 68 . Currently, th
11c0: 65 20 72 65 63 6f 67 6e 69 7a 65 64 20 76 61 6c e recognized val
11d0: 75 65 73 20 66 6f 72 20 44 45 42 55 47 20 61 72 ues for DEBUG ar
11e0: 65 3a 0a 23 0a 23 20 30 20 3d 3d 20 4e 44 45 42 e:.#.# 0 == NDEB
11f0: 55 47 3a 20 44 69 73 61 62 6c 65 73 20 61 73 73 UG: Disables ass
1200: 65 72 74 28 29 20 61 6e 64 20 6f 74 68 65 72 20 ert() and other
1210: 72 75 6e 74 69 6d 65 20 64 69 61 67 6e 6f 73 74 runtime diagnost
1220: 69 63 73 2e 0a 23 20 31 20 3d 3d 20 53 51 4c 49 ics..# 1 == SQLI
1230: 54 45 5f 45 4e 41 42 4c 45 5f 41 50 49 5f 41 52 TE_ENABLE_API_AR
1240: 4d 4f 52 3a 20 65 78 74 72 61 20 61 74 74 65 6d MOR: extra attem
1250: 70 74 73 20 74 6f 20 64 65 74 65 63 74 20 6d 69 pts to detect mi
1260: 73 75 73 65 20 6f 66 20 74 68 65 20 41 50 49 2e suse of the API.
1270: 0a 23 20 32 20 3d 3d 20 44 69 73 61 62 6c 65 73 .# 2 == Disables
1280: 20 4e 44 45 42 55 47 20 61 6e 64 20 61 6c 6c 20 NDEBUG and all
1290: 6f 70 74 69 6d 69 7a 61 74 69 6f 6e 73 20 61 6e optimizations an
12a0: 64 20 74 68 65 6e 20 65 6e 61 62 6c 65 73 20 50 d then enables P
12b0: 44 42 73 2e 0a 23 20 33 20 3d 3d 20 53 51 4c 49 DBs..# 3 == SQLI
12c0: 54 45 5f 44 45 42 55 47 3a 20 45 6e 61 62 6c 65 TE_DEBUG: Enable
12d0: 73 20 76 61 72 69 6f 75 73 20 64 69 61 67 6e 6f s various diagno
12e0: 73 74 69 63 73 20 6d 65 73 73 61 67 65 73 20 61 stics messages a
12f0: 6e 64 20 63 6f 64 65 2e 0a 23 20 34 20 3d 3d 20 nd code..# 4 ==
1300: 53 51 4c 49 54 45 5f 57 49 4e 33 32 5f 4d 41 4c SQLITE_WIN32_MAL
1310: 4c 4f 43 5f 56 41 4c 49 44 41 54 45 3a 20 56 61 LOC_VALIDATE: Va
1320: 6c 69 64 61 74 65 20 74 68 65 20 57 69 6e 33 32 lidate the Win32
1330: 20 6e 61 74 69 76 65 20 68 65 61 70 20 70 65 72 native heap per
1340: 20 63 61 6c 6c 2e 0a 23 20 35 20 3d 3d 20 53 51 call..# 5 == SQ
1350: 4c 49 54 45 5f 44 45 42 55 47 5f 4f 53 5f 54 52 LITE_DEBUG_OS_TR
1360: 41 43 45 3a 20 45 6e 61 62 6c 65 73 20 6f 75 74 ACE: Enables out
1370: 70 75 74 20 66 72 6f 6d 20 74 68 65 20 4f 53 54 put from the OST
1380: 52 41 43 45 28 29 20 6d 61 63 72 6f 73 2e 0a 23 RACE() macros..#
1390: 20 36 20 3d 3d 20 53 51 4c 49 54 45 5f 45 4e 41 6 == SQLITE_ENA
13a0: 42 4c 45 5f 49 4f 54 52 41 43 45 3a 20 45 6e 61 BLE_IOTRACE: Ena
13b0: 62 6c 65 73 20 6f 75 74 70 75 74 20 66 72 6f 6d bles output from
13c0: 20 74 68 65 20 49 4f 54 52 41 43 45 28 29 20 6d the IOTRACE() m
13d0: 61 63 72 6f 73 2e 0a 23 0a 21 49 46 4e 44 45 46 acros..#.!IFNDEF
13e0: 20 44 45 42 55 47 0a 44 45 42 55 47 20 3d 20 30 DEBUG.DEBUG = 0
13f0: 0a 21 45 4e 44 49 46 0a 0a 23 20 45 6e 61 62 6c .!ENDIF..# Enabl
1400: 65 20 75 73 65 20 6f 66 20 61 76 61 69 6c 61 62 e use of availab
1410: 6c 65 20 63 6f 6d 70 69 6c 65 72 20 6f 70 74 69 le compiler opti
1420: 6d 69 7a 61 74 69 6f 6e 73 3f 20 20 4e 6f 72 6d mizations? Norm
1430: 61 6c 6c 79 2c 20 74 68 69 73 20 73 68 6f 75 6c ally, this shoul
1440: 64 20 62 65 0a 23 20 6e 6f 6e 2d 7a 65 72 6f 2e d be.# non-zero.
1450: 20 20 53 65 74 74 69 6e 67 20 74 68 69 73 20 74 Setting this t
1460: 6f 20 7a 65 72 6f 2c 20 74 68 75 73 20 64 69 73 o zero, thus dis
1470: 61 62 6c 69 6e 67 20 61 6c 6c 20 63 6f 6d 70 69 abling all compi
1480: 6c 65 72 20 6f 70 74 69 6d 69 7a 61 74 69 6f 6e ler optimization
1490: 73 2c 0a 23 20 63 61 6e 20 62 65 20 75 73 65 66 s,.# can be usef
14a0: 75 6c 20 66 6f 72 20 74 65 73 74 69 6e 67 2e 0a ul for testing..
14b0: 23 0a 21 49 46 4e 44 45 46 20 4f 50 54 49 4d 49 #.!IFNDEF OPTIMI
14c0: 5a 41 54 49 4f 4e 53 0a 4f 50 54 49 4d 49 5a 41 ZATIONS.OPTIMIZA
14d0: 54 49 4f 4e 53 20 3d 20 32 0a 21 45 4e 44 49 46 TIONS = 2.!ENDIF
14e0: 0a 0a 23 20 53 65 74 20 74 68 69 73 20 74 6f 20 ..# Set this to
14f0: 6e 6f 6e 2d 30 20 74 6f 20 65 6e 61 62 6c 65 20 non-0 to enable
1500: 73 75 70 70 6f 72 74 20 66 6f 72 20 74 68 65 20 support for the
1510: 73 65 73 73 69 6f 6e 20 65 78 74 65 6e 73 69 6f session extensio
1520: 6e 2e 0a 23 0a 21 49 46 4e 44 45 46 20 53 45 53 n..#.!IFNDEF SES
1530: 53 49 4f 4e 0a 53 45 53 53 49 4f 4e 20 3d 20 30 SION.SESSION = 0
1540: 0a 21 45 4e 44 49 46 0a 0a 23 20 53 65 74 20 74 .!ENDIF..# Set t
1550: 68 65 20 73 6f 75 72 63 65 20 63 6f 64 65 20 66 he source code f
1560: 69 6c 65 20 74 6f 20 62 65 20 75 73 65 64 20 62 ile to be used b
1570: 79 20 65 78 65 63 75 74 61 62 6c 65 73 20 61 6e y executables an
1580: 64 20 6c 69 62 72 61 72 69 65 73 20 77 68 65 6e d libraries when
1590: 0a 23 20 74 68 65 79 20 6e 65 65 64 20 74 68 65 .# they need the
15a0: 20 61 6d 61 6c 67 61 6d 61 74 69 6f 6e 2e 0a 23 amalgamation..#
15b0: 0a 21 49 46 4e 44 45 46 20 53 51 4c 49 54 45 33 .!IFNDEF SQLITE3
15c0: 43 0a 21 49 46 20 24 28 53 50 4c 49 54 5f 41 4d C.!IF $(SPLIT_AM 15d0: 41 4c 47 41 4d 41 54 49 4f 4e 29 21 3d 30 0a 53 ALGAMATION)!=0.S 15e0: 51 4c 49 54 45 33 43 20 3d 20 73 71 6c 69 74 65 QLITE3C = sqlite 15f0: 33 2d 61 6c 6c 2e 63 0a 21 45 4c 53 45 0a 53 51 3-all.c.!ELSE.SQ 1600: 4c 49 54 45 33 43 20 3d 20 73 71 6c 69 74 65 33 LITE3C = sqlite3 1610: 2e 63 0a 21 45 4e 44 49 46 0a 21 45 4e 44 49 46 .c.!ENDIF.!ENDIF 1620: 0a 0a 23 20 53 65 74 20 74 68 65 20 69 6e 63 6c ..# Set the incl 1630: 75 64 65 20 63 6f 64 65 20 66 69 6c 65 20 74 6f ude code file to 1640: 20 62 65 20 75 73 65 64 20 62 79 20 65 78 65 63 be used by exec 1650: 75 74 61 62 6c 65 73 20 61 6e 64 20 6c 69 62 72 utables and libr 1660: 61 72 69 65 73 20 77 68 65 6e 0a 23 20 74 68 65 aries when.# the 1670: 79 20 6e 65 65 64 20 53 51 4c 69 74 65 2e 0a 23 y need SQLite..# 1680: 0a 21 49 46 4e 44 45 46 20 53 51 4c 49 54 45 33 .!IFNDEF SQLITE3 1690: 48 0a 53 51 4c 49 54 45 33 48 20 3d 20 73 71 6c H.SQLITE3H = sql 16a0: 69 74 65 33 2e 68 0a 21 45 4e 44 49 46 0a 0a 23 ite3.h.!ENDIF..# 16b0: 20 54 68 69 73 20 69 73 20 74 68 65 20 6e 61 6d This is the nam 16c0: 65 20 74 6f 20 75 73 65 20 66 6f 72 20 74 68 65 e to use for the 16d0: 20 53 51 4c 69 74 65 20 64 79 6e 61 6d 69 63 20 SQLite dynamic 16e0: 6c 69 6e 6b 20 6c 69 62 72 61 72 79 20 28 44 4c link library (DL 16f0: 4c 29 2e 0a 23 0a 21 49 46 4e 44 45 46 20 53 51 L)..#.!IFNDEF SQ 1700: 4c 49 54 45 33 44 4c 4c 0a 21 49 46 20 24 28 46 LITE3DLL.!IF$(F
1710: 4f 52 5f 57 49 4e 31 30 29 21 3d 30 0a 53 51 4c OR_WIN10)!=0.SQL
1720: 49 54 45 33 44 4c 4c 20 3d 20 77 69 6e 73 71 6c ITE3DLL = winsql
1730: 69 74 65 33 2e 64 6c 6c 0a 21 45 4c 53 45 0a 53 ite3.dll.!ELSE.S
1740: 51 4c 49 54 45 33 44 4c 4c 20 3d 20 73 71 6c 69 QLITE3DLL = sqli
1750: 74 65 33 2e 64 6c 6c 0a 21 45 4e 44 49 46 0a 21 te3.dll.!ENDIF.!
1760: 45 4e 44 49 46 0a 0a 23 20 54 68 69 73 20 69 73 ENDIF..# This is
1770: 20 74 68 65 20 6e 61 6d 65 20 74 6f 20 75 73 65 the name to use
1780: 20 66 6f 72 20 74 68 65 20 53 51 4c 69 74 65 20 for the SQLite
1790: 69 6d 70 6f 72 74 20 6c 69 62 72 61 72 79 20 28 import library (
17a0: 4c 49 42 29 2e 0a 23 0a 21 49 46 4e 44 45 46 20 LIB)..#.!IFNDEF
17b0: 53 51 4c 49 54 45 33 4c 49 42 0a 21 49 46 20 24 SQLITE3LIB.!IF $17c0: 28 46 4f 52 5f 57 49 4e 31 30 29 21 3d 30 0a 53 (FOR_WIN10)!=0.S 17d0: 51 4c 49 54 45 33 4c 49 42 20 3d 20 77 69 6e 73 QLITE3LIB = wins 17e0: 71 6c 69 74 65 33 2e 6c 69 62 0a 21 45 4c 53 45 qlite3.lib.!ELSE 17f0: 0a 53 51 4c 49 54 45 33 4c 49 42 20 3d 20 73 71 .SQLITE3LIB = sq 1800: 6c 69 74 65 33 2e 6c 69 62 0a 21 45 4e 44 49 46 lite3.lib.!ENDIF 1810: 0a 21 45 4e 44 49 46 0a 0a 23 20 54 68 69 73 20 .!ENDIF..# This 1820: 69 73 20 74 68 65 20 6e 61 6d 65 20 74 6f 20 75 is the name to u 1830: 73 65 20 66 6f 72 20 74 68 65 20 53 51 4c 69 74 se for the SQLit 1840: 65 20 73 68 65 6c 6c 20 65 78 65 63 75 74 61 62 e shell executab 1850: 6c 65 20 28 45 58 45 29 2e 0a 23 0a 21 49 46 4e le (EXE)..#.!IFN 1860: 44 45 46 20 53 51 4c 49 54 45 33 45 58 45 0a 21 DEF SQLITE3EXE.! 1870: 49 46 20 24 28 46 4f 52 5f 57 49 4e 31 30 29 21 IF$(FOR_WIN10)!
1880: 3d 30 0a 53 51 4c 49 54 45 33 45 58 45 20 3d 20 =0.SQLITE3EXE =
1890: 77 69 6e 73 71 6c 69 74 65 33 73 68 65 6c 6c 2e winsqlite3shell.
18a0: 65 78 65 0a 21 45 4c 53 45 0a 53 51 4c 49 54 45 exe.!ELSE.SQLITE
18b0: 33 45 58 45 20 3d 20 73 71 6c 69 74 65 33 2e 65 3EXE = sqlite3.e
18c0: 78 65 0a 21 45 4e 44 49 46 0a 21 45 4e 44 49 46 xe.!ENDIF.!ENDIF
18d0: 0a 0a 23 20 54 68 69 73 20 69 73 20 74 68 65 20 ..# This is the
18e0: 61 72 67 75 6d 65 6e 74 20 75 73 65 64 20 74 6f argument used to
18f0: 20 73 65 74 20 74 68 65 20 70 72 6f 67 72 61 6d set the program
1900: 20 64 61 74 61 62 61 73 65 20 28 50 44 42 29 20 database (PDB)
1910: 66 69 6c 65 20 66 6f 72 20 74 68 65 0a 23 20 53 file for the.# S
1920: 51 4c 69 74 65 20 73 68 65 6c 6c 20 65 78 65 63 QLite shell exec
1930: 75 74 61 62 6c 65 20 28 45 58 45 29 2e 0a 23 0a utable (EXE)..#.
1940: 21 49 46 4e 44 45 46 20 53 51 4c 49 54 45 33 45 !IFNDEF SQLITE3E
1950: 58 45 50 44 42 0a 21 49 46 20 24 28 46 4f 52 5f XEPDB.!IF $(FOR_ 1960: 57 49 4e 31 30 29 21 3d 30 0a 53 51 4c 49 54 45 WIN10)!=0.SQLITE 1970: 33 45 58 45 50 44 42 20 3d 0a 21 45 4c 53 45 0a 3EXEPDB =.!ELSE. 1980: 53 51 4c 49 54 45 33 45 58 45 50 44 42 20 3d 20 SQLITE3EXEPDB = 1990: 2f 70 64 62 3a 73 71 6c 69 74 65 33 73 68 2e 70 /pdb:sqlite3sh.p 19a0: 64 62 0a 21 45 4e 44 49 46 0a 21 45 4e 44 49 46 db.!ENDIF.!ENDIF 19b0: 0a 0a 23 20 3c 3c 6d 61 72 6b 3e 3e 0a 23 20 54 ..# <<mark>>.# T 19c0: 68 65 73 65 20 61 72 65 20 74 68 65 20 6e 61 6d hese are the nam 19d0: 65 73 20 6f 66 20 74 68 65 20 63 75 73 74 6f 6d es of the custom 19e0: 69 7a 65 64 20 54 63 6c 20 68 65 61 64 65 72 20 ized Tcl header 19f0: 66 69 6c 65 73 20 75 73 65 64 20 62 79 20 76 61 files used by va 1a00: 72 69 6f 75 73 20 70 61 72 74 73 0a 23 20 6f 66 rious parts.# of 1a10: 20 74 68 69 73 20 6d 61 6b 65 66 69 6c 65 20 77 this makefile w 1a20: 68 65 6e 20 74 68 65 20 73 74 64 63 61 6c 6c 20 hen the stdcall 1a30: 63 61 6c 6c 69 6e 67 20 63 6f 6e 76 65 6e 74 69 calling conventi 1a40: 6f 6e 20 69 73 20 69 6e 20 75 73 65 2e 20 20 49 on is in use. I 1a50: 74 20 69 73 20 6e 6f 74 0a 23 20 75 73 65 64 20 t is not.# used 1a60: 66 6f 72 20 61 6e 79 20 6f 74 68 65 72 20 70 75 for any other pu 1a70: 72 70 6f 73 65 2e 0a 23 0a 21 49 46 4e 44 45 46 rpose..#.!IFNDEF 1a80: 20 53 51 4c 49 54 45 54 43 4c 48 0a 53 51 4c 49 SQLITETCLH.SQLI 1a90: 54 45 54 43 4c 48 20 3d 20 73 71 6c 69 74 65 5f TETCLH = sqlite_ 1aa0: 74 63 6c 2e 68 0a 21 45 4e 44 49 46 0a 0a 21 49 tcl.h.!ENDIF..!I 1ab0: 46 4e 44 45 46 20 53 51 4c 49 54 45 54 43 4c 44 FNDEF SQLITETCLD 1ac0: 45 43 4c 53 48 0a 53 51 4c 49 54 45 54 43 4c 44 ECLSH.SQLITETCLD 1ad0: 45 43 4c 53 48 20 3d 20 73 71 6c 69 74 65 5f 74 ECLSH = sqlite_t 1ae0: 63 6c 44 65 63 6c 73 2e 68 0a 21 45 4e 44 49 46 clDecls.h.!ENDIF 1af0: 0a 0a 23 20 54 68 65 73 65 20 61 72 65 20 74 68 ..# These are th 1b00: 65 20 61 64 64 69 74 69 6f 6e 61 6c 20 74 61 72 e additional tar 1b10: 67 65 74 73 20 74 68 61 74 20 74 68 65 20 74 61 gets that the ta 1b20: 72 67 65 74 73 20 74 68 61 74 20 69 6e 74 65 67 rgets that integ 1b30: 72 61 74 65 20 77 69 74 68 20 74 68 65 0a 23 20 rate with the.# 1b40: 54 63 6c 20 6c 69 62 72 61 72 79 20 73 68 6f 75 Tcl library shou 1b50: 6c 64 20 64 65 70 65 6e 64 20 6f 6e 20 77 68 65 ld depend on whe 1b60: 6e 20 63 6f 6d 70 69 6c 69 6e 67 2c 20 65 74 63 n compiling, etc 1b70: 2e 0a 23 0a 21 49 46 4e 44 45 46 20 53 51 4c 49 ..#.!IFNDEF SQLI 1b80: 54 45 5f 54 43 4c 5f 44 45 50 0a 21 49 46 20 24 TE_TCL_DEP.!IF$
1b90: 28 55 53 45 5f 53 54 44 43 41 4c 4c 29 21 3d 30 (USE_STDCALL)!=0
1ba0: 20 7c 7c 20 24 28 46 4f 52 5f 57 49 4e 31 30 29 || $(FOR_WIN10) 1bb0: 21 3d 30 0a 53 51 4c 49 54 45 5f 54 43 4c 5f 44 !=0.SQLITE_TCL_D 1bc0: 45 50 20 3d 20 24 28 53 51 4c 49 54 45 54 43 4c EP =$(SQLITETCL
1bd0: 44 45 43 4c 53 48 29 20 24 28 53 51 4c 49 54 45 DECLSH) $(SQLITE 1be0: 54 43 4c 48 29 0a 21 45 4c 53 45 0a 53 51 4c 49 TCLH).!ELSE.SQLI 1bf0: 54 45 5f 54 43 4c 5f 44 45 50 20 3d 0a 21 45 4e TE_TCL_DEP =.!EN 1c00: 44 49 46 0a 21 45 4e 44 49 46 0a 23 20 3c 3c 2f DIF.!ENDIF.# <</ 1c10: 6d 61 72 6b 3e 3e 0a 0a 23 20 54 68 65 73 65 20 mark>>..# These 1c20: 61 72 65 20 74 68 65 20 22 73 74 61 6e 64 61 72 are the "standar 1c30: 64 22 20 53 51 4c 69 74 65 20 63 6f 6d 70 69 6c d" SQLite compil 1c40: 61 74 69 6f 6e 20 6f 70 74 69 6f 6e 73 20 75 73 ation options us 1c50: 65 64 20 77 68 65 6e 20 63 6f 6d 70 69 6c 69 6e ed when compilin 1c60: 67 20 66 6f 72 0a 23 20 74 68 65 20 57 69 6e 64 g for.# the Wind 1c70: 6f 77 73 20 70 6c 61 74 66 6f 72 6d 2e 0a 23 0a ows platform..#. 1c80: 21 49 46 4e 44 45 46 20 4f 50 54 5f 46 45 41 54 !IFNDEF OPT_FEAT 1c90: 55 52 45 5f 46 4c 41 47 53 0a 21 49 46 20 24 28 URE_FLAGS.!IF$(
1ca0: 4d 49 4e 49 4d 41 4c 5f 41 4d 41 4c 47 41 4d 41 MINIMAL_AMALGAMA
1cb0: 54 49 4f 4e 29 3d 3d 30 0a 4f 50 54 5f 46 45 41 TION)==0.OPT_FEA
1cc0: 54 55 52 45 5f 46 4c 41 47 53 20 3d 20 24 28 4f TURE_FLAGS = $(O 1cd0: 50 54 5f 46 45 41 54 55 52 45 5f 46 4c 41 47 53 PT_FEATURE_FLAGS 1ce0: 29 20 2d 44 53 51 4c 49 54 45 5f 45 4e 41 42 4c ) -DSQLITE_ENABL 1cf0: 45 5f 46 54 53 33 3d 31 0a 4f 50 54 5f 46 45 41 E_FTS3=1.OPT_FEA 1d00: 54 55 52 45 5f 46 4c 41 47 53 20 3d 20 24 28 4f TURE_FLAGS =$(O
1d10: 50 54 5f 46 45 41 54 55 52 45 5f 46 4c 41 47 53 PT_FEATURE_FLAGS
1d20: 29 20 2d 44 53 51 4c 49 54 45 5f 45 4e 41 42 4c ) -DSQLITE_ENABL
1d30: 45 5f 52 54 52 45 45 3d 31 0a 21 45 4e 44 49 46 E_RTREE=1.!ENDIF
1d40: 0a 4f 50 54 5f 46 45 41 54 55 52 45 5f 46 4c 41 .OPT_FEATURE_FLA
1d50: 47 53 20 3d 20 24 28 4f 50 54 5f 46 45 41 54 55 GS = $(OPT_FEATU 1d60: 52 45 5f 46 4c 41 47 53 29 20 2d 44 53 51 4c 49 RE_FLAGS) -DSQLI 1d70: 54 45 5f 45 4e 41 42 4c 45 5f 43 4f 4c 55 4d 4e TE_ENABLE_COLUMN 1d80: 5f 4d 45 54 41 44 41 54 41 3d 31 0a 21 45 4e 44 _METADATA=1.!END 1d90: 49 46 0a 0a 23 20 53 68 6f 75 6c 64 20 74 68 65 IF..# Should the 1da0: 20 73 65 73 73 69 6f 6e 20 65 78 74 65 6e 73 69 session extensi 1db0: 6f 6e 20 62 65 20 65 6e 61 62 6c 65 64 3f 20 20 on be enabled? 1dc0: 49 66 20 73 6f 2c 20 61 64 64 20 63 6f 6d 70 69 If so, add compi 1dd0: 6c 61 74 69 6f 6e 20 6f 70 74 69 6f 6e 73 0a 23 lation options.# 1de0: 20 74 6f 20 65 6e 61 62 6c 65 20 69 74 2e 0a 23 to enable it..# 1df0: 0a 21 49 46 20 24 28 53 45 53 53 49 4f 4e 29 21 .!IF$(SESSION)!
1e00: 3d 30 0a 4f 50 54 5f 46 45 41 54 55 52 45 5f 46 =0.OPT_FEATURE_F
1e10: 4c 41 47 53 20 3d 20 24 28 4f 50 54 5f 46 45 41 LAGS = $(OPT_FEA 1e20: 54 55 52 45 5f 46 4c 41 47 53 29 20 2d 44 53 51 TURE_FLAGS) -DSQ 1e30: 4c 49 54 45 5f 45 4e 41 42 4c 45 5f 53 45 53 53 LITE_ENABLE_SESS 1e40: 49 4f 4e 3d 31 0a 4f 50 54 5f 46 45 41 54 55 52 ION=1.OPT_FEATUR 1e50: 45 5f 46 4c 41 47 53 20 3d 20 24 28 4f 50 54 5f E_FLAGS =$(OPT_
1e60: 46 45 41 54 55 52 45 5f 46 4c 41 47 53 29 20 2d FEATURE_FLAGS) -
1e70: 44 53 51 4c 49 54 45 5f 45 4e 41 42 4c 45 5f 50 DSQLITE_ENABLE_P
1e80: 52 45 55 50 44 41 54 45 5f 48 4f 4f 4b 3d 31 0a REUPDATE_HOOK=1.
1e90: 21 45 4e 44 49 46 0a 0a 23 20 54 68 65 73 65 20 !ENDIF..# These
1ea0: 61 72 65 20 74 68 65 20 22 65 78 74 65 6e 64 65 are the "extende
1eb0: 64 22 20 53 51 4c 69 74 65 20 63 6f 6d 70 69 6c d" SQLite compil
1ec0: 61 74 69 6f 6e 20 6f 70 74 69 6f 6e 73 20 75 73 ation options us
1ed0: 65 64 20 77 68 65 6e 20 63 6f 6d 70 69 6c 69 6e ed when compilin
1ee0: 67 20 66 6f 72 0a 23 20 74 68 65 20 57 69 6e 64 g for.# the Wind
1ef0: 6f 77 73 20 31 30 20 70 6c 61 74 66 6f 72 6d 2e ows 10 platform.
1f00: 0a 23 0a 21 49 46 4e 44 45 46 20 45 58 54 5f 46 .#.!IFNDEF EXT_F
1f10: 45 41 54 55 52 45 5f 46 4c 41 47 53 0a 21 49 46 EATURE_FLAGS.!IF
1f20: 20 24 28 46 4f 52 5f 57 49 4e 31 30 29 21 3d 30 $(FOR_WIN10)!=0 1f30: 0a 45 58 54 5f 46 45 41 54 55 52 45 5f 46 4c 41 .EXT_FEATURE_FLA 1f40: 47 53 20 3d 20 24 28 45 58 54 5f 46 45 41 54 55 GS =$(EXT_FEATU
1f50: 52 45 5f 46 4c 41 47 53 29 20 2d 44 53 51 4c 49 RE_FLAGS) -DSQLI
1f60: 54 45 5f 45 4e 41 42 4c 45 5f 46 54 53 34 3d 31 TE_ENABLE_FTS4=1
1f70: 0a 45 58 54 5f 46 45 41 54 55 52 45 5f 46 4c 41 .EXT_FEATURE_FLA
1f80: 47 53 20 3d 20 24 28 45 58 54 5f 46 45 41 54 55 GS = $(EXT_FEATU 1f90: 52 45 5f 46 4c 41 47 53 29 20 2d 44 53 51 4c 49 RE_FLAGS) -DSQLI 1fa0: 54 45 5f 53 59 53 54 45 4d 5f 4d 41 4c 4c 4f 43 TE_SYSTEM_MALLOC 1fb0: 3d 31 0a 45 58 54 5f 46 45 41 54 55 52 45 5f 46 =1.EXT_FEATURE_F 1fc0: 4c 41 47 53 20 3d 20 24 28 45 58 54 5f 46 45 41 LAGS =$(EXT_FEA
1fd0: 54 55 52 45 5f 46 4c 41 47 53 29 20 2d 44 53 51 TURE_FLAGS) -DSQ
1fe0: 4c 49 54 45 5f 4f 4d 49 54 5f 4c 4f 43 41 4c 54 LITE_OMIT_LOCALT
1ff0: 49 4d 45 3d 31 0a 21 45 4c 53 45 0a 45 58 54 5f IME=1.!ELSE.EXT_
2000: 46 45 41 54 55 52 45 5f 46 4c 41 47 53 20 3d 0a FEATURE_FLAGS =.
2010: 21 45 4e 44 49 46 0a 21 45 4e 44 49 46 0a 0a 23 !ENDIF.!ENDIF..#
2020: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
2030: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
2040: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
2050: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
2060: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a 23 ##############.#
2070: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
2080: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 20 45 ############## E
2090: 4e 44 20 4f 46 20 4f 50 54 49 4f 4e 53 20 23 23 ND OF OPTIONS ##
20a0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
20b0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a 23 ##############.#
20c0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
20d0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
20e0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
20f0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
2100: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a 0a ##############..
2110: 23 20 57 68 65 6e 20 63 6f 6d 70 69 6c 69 6e 67 # When compiling
2120: 20 66 6f 72 20 74 68 65 20 57 69 6e 64 6f 77 73 for the Windows
2130: 20 31 30 20 70 6c 61 74 66 6f 72 6d 2c 20 74 68 10 platform, th
2140: 65 20 50 4c 41 54 46 4f 52 4d 20 6d 61 63 72 6f e PLATFORM macro
2150: 20 6d 75 73 74 20 62 65 20 73 65 74 0a 23 20 74 must be set.# t
2160: 6f 20 61 6e 20 61 70 70 72 6f 70 72 69 61 74 65 o an appropriate
2170: 20 76 61 6c 75 65 20 28 65 2e 67 2e 20 78 38 36 value (e.g. x86
2180: 2c 20 78 36 34 2c 20 61 72 6d 2c 20 61 72 6d 36 , x64, arm, arm6
2190: 34 2c 20 65 74 63 29 2e 0a 23 0a 21 49 46 20 24 4, etc)..#.!IF $21a0: 28 46 4f 52 5f 57 49 4e 31 30 29 21 3d 30 0a 21 (FOR_WIN10)!=0.! 21b0: 49 46 4e 44 45 46 20 50 4c 41 54 46 4f 52 4d 0a IFNDEF PLATFORM. 21c0: 21 45 52 52 4f 52 20 55 73 69 6e 67 20 74 68 65 !ERROR Using the 21d0: 20 46 4f 52 5f 57 49 4e 31 30 20 6f 70 74 69 6f FOR_WIN10 optio 21e0: 6e 20 72 65 71 75 69 72 65 73 20 61 20 76 61 6c n requires a val 21f0: 75 65 20 66 6f 72 20 50 4c 41 54 46 4f 52 4d 2e ue for PLATFORM. 2200: 0a 21 45 4e 44 49 46 0a 21 45 4e 44 49 46 0a 0a .!ENDIF.!ENDIF.. 2210: 23 20 54 68 69 73 20 61 73 73 75 6d 65 73 20 74 # This assumes t 2220: 68 61 74 20 4d 53 56 43 20 69 73 20 61 6c 77 61 hat MSVC is alwa 2230: 79 73 20 69 6e 73 74 61 6c 6c 65 64 20 69 6e 20 ys installed in 2240: 33 32 2d 62 69 74 20 50 72 6f 67 72 61 6d 20 46 32-bit Program F 2250: 69 6c 65 73 20 64 69 72 65 63 74 6f 72 79 0a 23 iles directory.# 2260: 20 61 6e 64 20 73 65 74 73 20 74 68 65 20 76 61 and sets the va 2270: 72 69 61 62 6c 65 20 66 6f 72 20 75 73 65 20 69 riable for use i 2280: 6e 20 6c 6f 63 61 74 69 6e 67 20 6f 74 68 65 72 n locating other 2290: 20 33 32 2d 62 69 74 20 69 6e 73 74 61 6c 6c 73 32-bit installs 22a0: 20 61 63 63 6f 72 64 69 6e 67 6c 79 2e 0a 23 0a accordingly..#. 22b0: 50 52 4f 47 52 41 4d 46 49 4c 45 53 5f 58 38 36 PROGRAMFILES_X86 22c0: 20 3d 20 24 28 56 43 49 4e 53 54 41 4c 4c 44 49 =$(VCINSTALLDI
22d0: 52 29 5c 2e 2e 5c 2e 2e 0a 50 52 4f 47 52 41 4d R)\..\...PROGRAM
22e0: 46 49 4c 45 53 5f 58 38 36 20 3d 20 24 28 50 52 FILES_X86 = $(PR 22f0: 4f 47 52 41 4d 46 49 4c 45 53 5f 58 38 36 3a 5c OGRAMFILES_X86:\ 2300: 5c 3d 5c 29 0a 0a 23 20 43 68 65 63 6b 20 66 6f \=\)..# Check fo 2310: 72 20 74 68 65 20 70 72 65 64 65 66 69 6e 65 64 r the predefined 2320: 20 63 6f 6d 6d 61 6e 64 20 6d 61 63 72 6f 20 43 command macro C 2330: 43 2e 20 20 54 68 69 73 20 73 68 6f 75 6c 64 20 C. This should 2340: 70 6f 69 6e 74 20 74 6f 20 74 68 65 20 63 6f 6d point to the com 2350: 70 69 6c 65 72 0a 23 20 62 69 6e 61 72 79 20 66 piler.# binary f 2360: 6f 72 20 74 68 65 20 74 61 72 67 65 74 20 70 6c or the target pl 2370: 61 74 66 6f 72 6d 2e 20 20 49 66 20 69 74 20 69 atform. If it i 2380: 73 20 6e 6f 74 20 64 65 66 69 6e 65 64 2c 20 73 s not defined, s 2390: 69 6d 70 6c 79 20 64 65 66 69 6e 65 20 69 74 20 imply define it 23a0: 74 6f 0a 23 20 74 68 65 20 6c 65 67 61 63 79 20 to.# the legacy 23b0: 64 65 66 61 75 6c 74 20 76 61 6c 75 65 20 27 63 default value 'c 23c0: 6c 2e 65 78 65 27 2e 0a 23 0a 21 49 46 4e 44 45 l.exe'..#.!IFNDE 23d0: 46 20 43 43 0a 43 43 20 3d 20 63 6c 2e 65 78 65 F CC.CC = cl.exe 23e0: 0a 21 45 4e 44 49 46 0a 0a 23 20 43 68 65 63 6b .!ENDIF..# Check 23f0: 20 66 6f 72 20 74 68 65 20 70 72 65 64 65 66 69 for the predefi 2400: 6e 65 64 20 63 6f 6d 6d 61 6e 64 20 6d 61 63 72 ned command macr 2410: 6f 20 43 53 43 2e 20 20 54 68 69 73 20 73 68 6f o CSC. This sho 2420: 75 6c 64 20 70 6f 69 6e 74 20 74 6f 20 61 20 77 uld point to a w 2430: 6f 72 6b 69 6e 67 0a 23 20 43 20 53 68 61 72 70 orking.# C Sharp 2440: 20 63 6f 6d 70 69 6c 65 72 20 62 69 6e 61 72 79 compiler binary 2450: 2e 20 20 49 66 20 69 74 20 69 73 20 6e 6f 74 20 . If it is not 2460: 64 65 66 69 6e 65 64 2c 20 73 69 6d 70 6c 79 20 defined, simply 2470: 64 65 66 69 6e 65 20 69 74 20 74 6f 20 74 68 65 define it to the 2480: 0a 23 20 6c 65 67 61 63 79 20 64 65 66 61 75 6c .# legacy defaul 2490: 74 20 76 61 6c 75 65 20 27 63 73 63 2e 65 78 65 t value 'csc.exe 24a0: 27 2e 0a 23 0a 21 49 46 4e 44 45 46 20 43 53 43 '..#.!IFNDEF CSC 24b0: 0a 43 53 43 20 3d 20 63 73 63 2e 65 78 65 0a 21 .CSC = csc.exe.! 24c0: 45 4e 44 49 46 0a 0a 23 20 43 68 65 63 6b 20 66 ENDIF..# Check f 24d0: 6f 72 20 74 68 65 20 63 6f 6d 6d 61 6e 64 20 6d or the command m 24e0: 61 63 72 6f 20 4c 44 2e 20 20 54 68 69 73 20 73 acro LD. This s 24f0: 68 6f 75 6c 64 20 70 6f 69 6e 74 20 74 6f 20 74 hould point to t 2500: 68 65 20 6c 69 6e 6b 65 72 20 62 69 6e 61 72 79 he linker binary 2510: 20 66 6f 72 0a 23 20 74 68 65 20 74 61 72 67 65 for.# the targe 2520: 74 20 70 6c 61 74 66 6f 72 6d 2e 20 20 49 66 20 t platform. If 2530: 69 74 20 69 73 20 6e 6f 74 20 64 65 66 69 6e 65 it is not define 2540: 64 2c 20 73 69 6d 70 6c 79 20 64 65 66 69 6e 65 d, simply define 2550: 20 69 74 20 74 6f 20 74 68 65 20 6c 65 67 61 63 it to the legac 2560: 79 0a 23 20 64 65 66 61 75 6c 74 20 76 61 6c 75 y.# default valu 2570: 65 20 27 6c 69 6e 6b 2e 65 78 65 27 2e 0a 23 0a e 'link.exe'..#. 2580: 21 49 46 4e 44 45 46 20 4c 44 0a 4c 44 20 3d 20 !IFNDEF LD.LD = 2590: 6c 69 6e 6b 2e 65 78 65 0a 21 45 4e 44 49 46 0a link.exe.!ENDIF. 25a0: 0a 23 20 43 68 65 63 6b 20 66 6f 72 20 74 68 65 .# Check for the 25b0: 20 70 72 65 64 65 66 69 6e 65 64 20 63 6f 6d 6d predefined comm 25c0: 61 6e 64 20 6d 61 63 72 6f 20 52 43 2e 20 20 54 and macro RC. T 25d0: 68 69 73 20 73 68 6f 75 6c 64 20 70 6f 69 6e 74 his should point 25e0: 20 74 6f 20 74 68 65 20 72 65 73 6f 75 72 63 65 to the resource 25f0: 0a 23 20 63 6f 6d 70 69 6c 65 72 20 62 69 6e 61 .# compiler bina 2600: 72 79 20 66 6f 72 20 74 68 65 20 74 61 72 67 65 ry for the targe 2610: 74 20 70 6c 61 74 66 6f 72 6d 2e 20 20 49 66 20 t platform. If 2620: 69 74 20 69 73 20 6e 6f 74 20 64 65 66 69 6e 65 it is not define 2630: 64 2c 20 73 69 6d 70 6c 79 20 64 65 66 69 6e 65 d, simply define 2640: 0a 23 20 69 74 20 74 6f 20 74 68 65 20 6c 65 67 .# it to the leg 2650: 61 63 79 20 64 65 66 61 75 6c 74 20 76 61 6c 75 acy default valu 2660: 65 20 27 72 63 2e 65 78 65 27 2e 0a 23 0a 21 49 e 'rc.exe'..#.!I 2670: 46 4e 44 45 46 20 52 43 0a 52 43 20 3d 20 72 63 FNDEF RC.RC = rc 2680: 2e 65 78 65 0a 21 45 4e 44 49 46 0a 0a 23 20 43 .exe.!ENDIF..# C 2690: 68 65 63 6b 20 66 6f 72 20 74 68 65 20 4d 53 56 heck for the MSV 26a0: 43 20 72 75 6e 74 69 6d 65 20 6c 69 62 72 61 72 C runtime librar 26b0: 79 20 70 61 74 68 20 6d 61 63 72 6f 2e 20 20 4f y path macro. O 26c0: 74 68 65 72 77 69 73 65 2c 20 74 68 69 73 20 76 therwise, this v 26d0: 61 6c 75 65 20 77 69 6c 6c 0a 23 20 64 65 66 61 alue will.# defa 26e0: 75 6c 74 20 74 6f 20 74 68 65 20 27 6c 69 62 27 ult to the 'lib' 26f0: 20 64 69 72 65 63 74 6f 72 79 20 75 6e 64 65 72 directory under 2700: 6e 65 61 74 68 20 74 68 65 20 4d 53 56 43 20 69 neath the MSVC i 2710: 6e 73 74 61 6c 6c 61 74 69 6f 6e 20 64 69 72 65 nstallation dire 2720: 63 74 6f 72 79 2e 0a 23 0a 21 49 46 4e 44 45 46 ctory..#.!IFNDEF 2730: 20 43 52 54 4c 49 42 50 41 54 48 0a 43 52 54 4c CRTLIBPATH.CRTL 2740: 49 42 50 41 54 48 20 3d 20 24 28 56 43 49 4e 53 IBPATH =$(VCINS
2750: 54 41 4c 4c 44 49 52 29 5c 6c 69 62 0a 21 45 4e TALLDIR)\lib.!EN
2760: 44 49 46 0a 0a 43 52 54 4c 49 42 50 41 54 48 20 DIF..CRTLIBPATH
2770: 3d 20 24 28 43 52 54 4c 49 42 50 41 54 48 3a 5c = $(CRTLIBPATH:\ 2780: 5c 3d 5c 29 0a 0a 23 20 43 68 65 63 6b 20 66 6f \=\)..# Check fo 2790: 72 20 74 68 65 20 63 6f 6d 6d 61 6e 64 20 6d 61 r the command ma 27a0: 63 72 6f 20 4e 43 43 2e 20 20 54 68 69 73 20 73 cro NCC. This s 27b0: 68 6f 75 6c 64 20 70 6f 69 6e 74 20 74 6f 20 74 hould point to t 27c0: 68 65 20 63 6f 6d 70 69 6c 65 72 20 62 69 6e 61 he compiler bina 27d0: 72 79 0a 23 20 66 6f 72 20 74 68 65 20 70 6c 61 ry.# for the pla 27e0: 74 66 6f 72 6d 20 74 68 65 20 63 6f 6d 70 69 6c tform the compil 27f0: 61 74 69 6f 6e 20 70 72 6f 63 65 73 73 20 69 73 ation process is 2800: 20 74 61 6b 69 6e 67 20 70 6c 61 63 65 20 6f 6e taking place on 2810: 2e 20 20 49 66 20 69 74 20 69 73 20 6e 6f 74 0a . If it is not. 2820: 23 20 64 65 66 69 6e 65 64 2c 20 73 69 6d 70 6c # defined, simpl 2830: 79 20 64 65 66 69 6e 65 20 69 74 20 74 6f 20 68 y define it to h 2840: 61 76 65 20 74 68 65 20 73 61 6d 65 20 76 61 6c ave the same val 2850: 75 65 20 61 73 20 74 68 65 20 43 43 20 6d 61 63 ue as the CC mac 2860: 72 6f 2e 20 20 57 68 65 6e 0a 23 20 63 72 6f 73 ro. When.# cros 2870: 73 2d 63 6f 6d 70 69 6c 69 6e 67 2c 20 69 74 20 s-compiling, it 2880: 69 73 20 73 75 67 67 65 73 74 65 64 20 74 68 61 is suggested tha 2890: 74 20 74 68 69 73 20 6d 61 63 72 6f 20 62 65 20 t this macro be 28a0: 6d 6f 64 69 66 69 65 64 20 76 69 61 20 74 68 65 modified via the 28b0: 20 63 6f 6d 6d 61 6e 64 0a 23 20 6c 69 6e 65 20 command.# line 28c0: 28 73 69 6e 63 65 20 6e 6d 61 6b 65 20 69 74 73 (since nmake its 28d0: 65 6c 66 20 64 6f 65 73 20 6e 6f 74 20 70 72 6f elf does not pro 28e0: 76 69 64 65 20 61 20 62 75 69 6c 74 2d 69 6e 20 vide a built-in 28f0: 6d 65 74 68 6f 64 20 74 6f 20 67 75 65 73 73 20 method to guess 2900: 69 74 29 2e 0a 23 20 46 6f 72 20 65 78 61 6d 70 it)..# For examp 2910: 6c 65 2c 20 74 6f 20 75 73 65 20 74 68 65 20 78 le, to use the x 2920: 38 36 20 63 6f 6d 70 69 6c 65 72 20 77 68 65 6e 86 compiler when 2930: 20 63 72 6f 73 73 2d 63 6f 6d 70 69 6c 69 6e 67 cross-compiling 2940: 20 66 6f 72 20 78 36 34 2c 20 61 20 63 6f 6d 6d for x64, a comm 2950: 61 6e 64 0a 23 20 6c 69 6e 65 20 73 69 6d 69 6c and.# line simil 2960: 61 72 20 74 6f 20 74 68 65 20 66 6f 6c 6c 6f 77 ar to the follow 2970: 69 6e 67 20 63 6f 75 6c 64 20 62 65 20 75 73 65 ing could be use 2980: 64 20 28 61 6c 6c 20 6f 6e 20 6f 6e 65 20 6c 69 d (all on one li 2990: 6e 65 29 3a 0a 23 0a 23 20 20 20 20 20 6e 6d 61 ne):.#.# nma 29a0: 6b 65 20 2f 66 20 4d 61 6b 65 66 69 6c 65 2e 6d ke /f Makefile.m 29b0: 73 63 20 73 71 6c 69 74 65 33 2e 64 6c 6c 0a 23 sc sqlite3.dll.# 29c0: 20 20 20 20 20 20 20 20 20 20 20 58 43 4f 4d 50 XCOMP 29d0: 49 4c 45 3d 31 20 55 53 45 5f 4e 41 54 49 56 45 ILE=1 USE_NATIVE 29e0: 5f 4c 49 42 50 41 54 48 53 3d 31 0a 23 0a 23 20 _LIBPATHS=1.#.# 29f0: 41 6c 74 65 72 6e 61 74 69 76 65 6c 79 2c 20 74 Alternatively, t 2a00: 68 65 20 66 75 6c 6c 20 70 61 74 68 20 61 6e 64 he full path and 2a10: 20 66 69 6c 65 20 6e 61 6d 65 20 74 6f 20 74 68 file name to th 2a20: 65 20 63 6f 6d 70 69 6c 65 72 20 62 69 6e 61 72 e compiler binar 2a30: 79 20 66 6f 72 20 74 68 65 0a 23 20 70 6c 61 74 y for the.# plat 2a40: 66 6f 72 6d 20 74 68 65 20 63 6f 6d 70 69 6c 61 form the compila 2a50: 74 69 6f 6e 20 70 72 6f 63 65 73 73 20 69 73 20 tion process is 2a60: 74 61 6b 69 6e 67 20 70 6c 61 63 65 20 6d 61 79 taking place may 2a70: 20 62 65 20 73 70 65 63 69 66 69 65 64 20 28 61 be specified (a 2a80: 6c 6c 20 6f 6e 0a 23 20 6f 6e 65 20 6c 69 6e 65 ll on.# one line 2a90: 29 3a 0a 23 0a 23 20 20 20 20 20 6e 6d 61 6b 65 ):.#.# nmake 2aa0: 20 2f 66 20 4d 61 6b 65 66 69 6c 65 2e 6d 73 63 /f Makefile.msc 2ab0: 20 73 71 6c 69 74 65 33 2e 64 6c 6c 0a 23 20 20 sqlite3.dll.# 2ac0: 20 20 20 20 20 20 20 20 20 22 4e 43 43 3d 22 22 "NCC="" 2ad0: 25 56 43 49 4e 53 54 41 4c 4c 44 49 52 25 5c 62 %VCINSTALLDIR%\b 2ae0: 69 6e 5c 63 6c 2e 65 78 65 22 22 22 0a 23 20 20 in\cl.exe""".# 2af0: 20 20 20 20 20 20 20 20 20 55 53 45 5f 4e 41 54 USE_NAT 2b00: 49 56 45 5f 4c 49 42 50 41 54 48 53 3d 31 0a 23 IVE_LIBPATHS=1.# 2b10: 0a 21 49 46 44 45 46 20 4e 43 43 0a 4e 43 43 20 .!IFDEF NCC.NCC 2b20: 3d 20 24 28 4e 43 43 3a 5c 5c 3d 5c 29 0a 21 45 =$(NCC:\\=\).!E
2b30: 4c 53 45 49 46 20 24 28 58 43 4f 4d 50 49 4c 45 LSEIF $(XCOMPILE 2b40: 29 21 3d 30 0a 4e 43 43 20 3d 20 22 24 28 56 43 )!=0.NCC = "$(VC
2b50: 49 4e 53 54 41 4c 4c 44 49 52 29 5c 62 69 6e 5c INSTALLDIR)\bin\
2b60: 24 28 43 43 29 22 0a 4e 43 43 20 3d 20 24 28 4e $(CC)".NCC =$(N
2b70: 43 43 3a 5c 5c 3d 5c 29 0a 21 45 4c 53 45 0a 4e CC:\\=\).!ELSE.N
2b80: 43 43 20 3d 20 24 28 43 43 29 0a 21 45 4e 44 49 CC = $(CC).!ENDI 2b90: 46 0a 0a 23 20 43 68 65 63 6b 20 66 6f 72 20 74 F..# Check for t 2ba0: 68 65 20 4d 53 56 43 20 6e 61 74 69 76 65 20 72 he MSVC native r 2bb0: 75 6e 74 69 6d 65 20 6c 69 62 72 61 72 79 20 70 untime library p 2bc0: 61 74 68 20 6d 61 63 72 6f 2e 20 20 4f 74 68 65 ath macro. Othe 2bd0: 72 77 69 73 65 2c 0a 23 20 74 68 69 73 20 76 61 rwise,.# this va 2be0: 6c 75 65 20 77 69 6c 6c 20 64 65 66 61 75 6c 74 lue will default 2bf0: 20 74 6f 20 74 68 65 20 27 6c 69 62 27 20 64 69 to the 'lib' di 2c00: 72 65 63 74 6f 72 79 20 75 6e 64 65 72 6e 65 61 rectory undernea 2c10: 74 68 20 74 68 65 20 4d 53 56 43 0a 23 20 69 6e th the MSVC.# in 2c20: 73 74 61 6c 6c 61 74 69 6f 6e 20 64 69 72 65 63 stallation direc 2c30: 74 6f 72 79 2e 0a 23 0a 21 49 46 4e 44 45 46 20 tory..#.!IFNDEF 2c40: 4e 43 52 54 4c 49 42 50 41 54 48 0a 4e 43 52 54 NCRTLIBPATH.NCRT 2c50: 4c 49 42 50 41 54 48 20 3d 20 24 28 56 43 49 4e LIBPATH =$(VCIN
2c60: 53 54 41 4c 4c 44 49 52 29 5c 6c 69 62 0a 21 45 STALLDIR)\lib.!E
2c70: 4e 44 49 46 0a 0a 4e 43 52 54 4c 49 42 50 41 54 NDIF..NCRTLIBPAT
2c80: 48 20 3d 20 24 28 4e 43 52 54 4c 49 42 50 41 54 H = $(NCRTLIBPAT 2c90: 48 3a 5c 5c 3d 5c 29 0a 0a 23 20 43 68 65 63 6b H:\\=\)..# Check 2ca0: 20 66 6f 72 20 74 68 65 20 50 6c 61 74 66 6f 72 for the Platfor 2cb0: 6d 20 53 44 4b 20 6c 69 62 72 61 72 79 20 70 61 m SDK library pa 2cc0: 74 68 20 6d 61 63 72 6f 2e 20 20 4f 74 68 65 72 th macro. Other 2cd0: 77 69 73 65 2c 20 74 68 69 73 0a 23 20 76 61 6c wise, this.# val 2ce0: 75 65 20 77 69 6c 6c 20 64 65 66 61 75 6c 74 20 ue will default 2cf0: 74 6f 20 74 68 65 20 27 6c 69 62 27 20 64 69 72 to the 'lib' dir 2d00: 65 63 74 6f 72 79 20 75 6e 64 65 72 6e 65 61 74 ectory underneat 2d10: 68 20 74 68 65 20 57 69 6e 64 6f 77 73 0a 23 20 h the Windows.# 2d20: 53 44 4b 20 69 6e 73 74 61 6c 6c 61 74 69 6f 6e SDK installation 2d30: 20 64 69 72 65 63 74 6f 72 79 20 28 74 68 65 20 directory (the 2d40: 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69 environment vari 2d50: 61 62 6c 65 20 75 73 65 64 20 61 70 70 65 61 72 able used appear 2d60: 73 0a 23 20 74 6f 20 62 65 20 61 76 61 69 6c 61 s.# to be availa 2d70: 62 6c 65 20 77 68 65 6e 20 75 73 69 6e 67 20 56 ble when using V 2d80: 69 73 75 61 6c 20 43 2b 2b 20 32 30 30 38 20 6f isual C++ 2008 o 2d90: 72 20 6c 61 74 65 72 20 76 69 61 20 74 68 65 0a r later via the. 2da0: 23 20 63 6f 6d 6d 61 6e 64 20 6c 69 6e 65 29 2e # command line). 2db0: 0a 23 0a 21 49 46 4e 44 45 46 20 4e 53 44 4b 4c .#.!IFNDEF NSDKL 2dc0: 49 42 50 41 54 48 0a 4e 53 44 4b 4c 49 42 50 41 IBPATH.NSDKLIBPA 2dd0: 54 48 20 3d 20 24 28 57 49 4e 44 4f 57 53 53 44 TH =$(WINDOWSSD
2de0: 4b 44 49 52 29 5c 6c 69 62 0a 21 45 4e 44 49 46 KDIR)\lib.!ENDIF
2df0: 0a 0a 4e 53 44 4b 4c 49 42 50 41 54 48 20 3d 20 ..NSDKLIBPATH =
2e00: 24 28 4e 53 44 4b 4c 49 42 50 41 54 48 3a 5c 5c $(NSDKLIBPATH:\\ 2e10: 3d 5c 29 0a 0a 23 20 43 68 65 63 6b 20 66 6f 72 =\)..# Check for 2e20: 20 74 68 65 20 55 43 52 54 20 6c 69 62 72 61 72 the UCRT librar 2e30: 79 20 70 61 74 68 20 6d 61 63 72 6f 2e 20 20 4f y path macro. O 2e40: 74 68 65 72 77 69 73 65 2c 20 74 68 69 73 20 76 therwise, this v 2e50: 61 6c 75 65 20 77 69 6c 6c 0a 23 20 64 65 66 61 alue will.# defa 2e60: 75 6c 74 20 74 6f 20 74 68 65 20 76 65 72 73 69 ult to the versi 2e70: 6f 6e 2d 73 70 65 63 69 66 69 63 2c 20 70 6c 61 on-specific, pla 2e80: 74 66 6f 72 6d 2d 73 70 65 63 69 66 69 63 20 27 tform-specific ' 2e90: 6c 69 62 27 20 64 69 72 65 63 74 6f 72 79 0a 23 lib' directory.# 2ea0: 20 75 6e 64 65 72 6e 65 61 74 68 20 74 68 65 20 underneath the 2eb0: 57 69 6e 64 6f 77 73 20 53 44 4b 20 69 6e 73 74 Windows SDK inst 2ec0: 61 6c 6c 61 74 69 6f 6e 20 64 69 72 65 63 74 6f allation directo 2ed0: 72 79 2e 0a 23 0a 21 49 46 4e 44 45 46 20 55 43 ry..#.!IFNDEF UC 2ee0: 52 54 4c 49 42 50 41 54 48 0a 55 43 52 54 4c 49 RTLIBPATH.UCRTLI 2ef0: 42 50 41 54 48 20 3d 20 24 28 57 49 4e 44 4f 57 BPATH =$(WINDOW
2f00: 53 53 44 4b 44 49 52 29 5c 6c 69 62 5c 24 28 57 SSDKDIR)\lib\$(W 2f10: 49 4e 44 4f 57 53 53 44 4b 4c 49 42 56 45 52 53 INDOWSSDKLIBVERS 2f20: 49 4f 4e 29 5c 75 63 72 74 5c 24 28 50 4c 41 54 ION)\ucrt\$(PLAT
2f30: 46 4f 52 4d 29 0a 21 45 4e 44 49 46 0a 0a 55 43 FORM).!ENDIF..UC
2f40: 52 54 4c 49 42 50 41 54 48 20 3d 20 24 28 55 43 RTLIBPATH = $(UC 2f50: 52 54 4c 49 42 50 41 54 48 3a 5c 5c 3d 5c 29 0a RTLIBPATH:\\=\). 2f60: 0a 23 20 43 20 63 6f 6d 70 69 6c 65 72 20 61 6e .# C compiler an 2f70: 64 20 6f 70 74 69 6f 6e 73 20 66 6f 72 20 75 73 d options for us 2f80: 65 20 69 6e 20 62 75 69 6c 64 69 6e 67 20 65 78 e in building ex 2f90: 65 63 75 74 61 62 6c 65 73 20 74 68 61 74 0a 23 ecutables that.# 2fa0: 20 77 69 6c 6c 20 72 75 6e 20 6f 6e 20 74 68 65 will run on the 2fb0: 20 70 6c 61 74 66 6f 72 6d 20 74 68 61 74 20 69 platform that i 2fc0: 73 20 64 6f 69 6e 67 20 74 68 65 20 62 75 69 6c s doing the buil 2fd0: 64 2e 0a 23 0a 21 49 46 20 24 28 55 53 45 5f 46 d..#.!IF$(USE_F
2fe0: 55 4c 4c 57 41 52 4e 29 21 3d 30 0a 42 43 43 20 ULLWARN)!=0.BCC
2ff0: 3d 20 24 28 4e 43 43 29 20 2d 6e 6f 6c 6f 67 6f = $(NCC) -nologo 3000: 20 2d 57 34 20 24 28 43 43 4f 50 54 53 29 20 24 -W4$(CCOPTS) $3010: 28 42 43 43 4f 50 54 53 29 0a 21 45 4c 53 45 0a (BCCOPTS).!ELSE. 3020: 42 43 43 20 3d 20 24 28 4e 43 43 29 20 2d 6e 6f BCC =$(NCC) -no
3030: 6c 6f 67 6f 20 2d 57 33 20 24 28 43 43 4f 50 54 logo -W3 $(CCOPT 3040: 53 29 20 24 28 42 43 43 4f 50 54 53 29 0a 21 45 S)$(BCCOPTS).!E
3050: 4e 44 49 46 0a 0a 23 20 43 68 65 63 6b 20 69 66 NDIF..# Check if
3060: 20 61 73 73 65 6d 62 6c 79 20 63 6f 64 65 20 6c assembly code l
3070: 69 73 74 69 6e 67 73 20 73 68 6f 75 6c 64 20 62 istings should b
3080: 65 20 67 65 6e 65 72 61 74 65 64 20 66 6f 72 20 e generated for
3090: 74 68 65 20 73 6f 75 72 63 65 0a 23 20 63 6f 64 the source.# cod
30a0: 65 20 66 69 6c 65 73 20 74 6f 20 62 65 20 63 6f e files to be co
30b0: 6d 70 69 6c 65 64 2e 0a 23 0a 21 49 46 20 24 28 mpiled..#.!IF $( 30c0: 55 53 45 5f 4c 49 53 54 49 4e 47 53 29 21 3d 30 USE_LISTINGS)!=0 30d0: 0a 42 43 43 20 3d 20 24 28 42 43 43 29 20 2d 46 .BCC =$(BCC) -F
30e0: 41 63 73 0a 21 45 4e 44 49 46 0a 0a 23 20 43 68 Acs.!ENDIF..# Ch
30f0: 65 63 6b 20 69 66 20 74 68 65 20 6e 61 74 69 76 eck if the nativ
3100: 65 20 6c 69 62 72 61 72 79 20 70 61 74 68 73 20 e library paths
3110: 73 68 6f 75 6c 64 20 62 65 20 75 73 65 64 20 77 should be used w
3120: 68 65 6e 20 63 6f 6d 70 69 6c 69 6e 67 0a 23 20 hen compiling.#
3130: 74 68 65 20 63 6f 6d 6d 61 6e 64 20 6c 69 6e 65 the command line
3140: 20 74 6f 6f 6c 73 20 75 73 65 64 20 64 75 72 69 tools used duri
3150: 6e 67 20 74 68 65 20 63 6f 6d 70 69 6c 61 74 69 ng the compilati
3160: 6f 6e 20 70 72 6f 63 65 73 73 2e 20 20 49 66 0a on process. If.
3170: 23 20 73 6f 2c 20 73 65 74 20 74 68 65 20 6e 65 # so, set the ne
3180: 63 65 73 73 61 72 79 20 6d 61 63 72 6f 20 6e 6f cessary macro no
3190: 77 2e 0a 23 0a 21 49 46 20 24 28 55 53 45 5f 4e w..#.!IF $(USE_N 31a0: 41 54 49 56 45 5f 4c 49 42 50 41 54 48 53 29 21 ATIVE_LIBPATHS)! 31b0: 3d 30 0a 4e 4c 54 4c 49 42 50 41 54 48 53 20 3d =0.NLTLIBPATHS = 31c0: 20 22 2f 4c 49 42 50 41 54 48 3a 24 28 4e 43 52 "/LIBPATH:$(NCR
31d0: 54 4c 49 42 50 41 54 48 29 22 20 22 2f 4c 49 42 TLIBPATH)" "/LIB
31e0: 50 41 54 48 3a 24 28 4e 53 44 4b 4c 49 42 50 41 PATH:$(NSDKLIBPA 31f0: 54 48 29 22 0a 0a 21 49 46 44 45 46 20 4e 55 43 TH)"..!IFDEF NUC 3200: 52 54 4c 49 42 50 41 54 48 0a 4e 55 43 52 54 4c RTLIBPATH.NUCRTL 3210: 49 42 50 41 54 48 20 3d 20 24 28 4e 55 43 52 54 IBPATH =$(NUCRT
3220: 4c 49 42 50 41 54 48 3a 5c 5c 3d 5c 29 0a 4e 4c LIBPATH:\\=\).NL
3230: 54 4c 49 42 50 41 54 48 53 20 3d 20 24 28 4e 4c TLIBPATHS = $(NL 3240: 54 4c 49 42 50 41 54 48 53 29 20 22 2f 4c 49 42 TLIBPATHS) "/LIB 3250: 50 41 54 48 3a 24 28 4e 55 43 52 54 4c 49 42 50 PATH:$(NUCRTLIBP
3260: 41 54 48 29 22 0a 21 45 4e 44 49 46 0a 21 45 4e ATH)".!ENDIF.!EN
3270: 44 49 46 0a 0a 23 20 43 20 63 6f 6d 70 69 6c 65 DIF..# C compile
3280: 72 20 61 6e 64 20 6f 70 74 69 6f 6e 73 20 66 6f r and options fo
3290: 72 20 75 73 65 20 69 6e 20 62 75 69 6c 64 69 6e r use in buildin
32a0: 67 20 65 78 65 63 75 74 61 62 6c 65 73 20 74 68 g executables th
32b0: 61 74 0a 23 20 77 69 6c 6c 20 72 75 6e 20 6f 6e at.# will run on
32c0: 20 74 68 65 20 74 61 72 67 65 74 20 70 6c 61 74 the target plat
32d0: 66 6f 72 6d 2e 20 20 28 42 43 43 20 61 6e 64 20 form. (BCC and
32e0: 54 43 43 20 61 72 65 20 75 73 75 61 6c 6c 79 20 TCC are usually
32f0: 74 68 65 0a 23 20 73 61 6d 65 20 75 6e 6c 65 73 the.# same unles
3300: 73 20 79 6f 75 72 20 61 72 65 20 63 72 6f 73 73 s your are cross
3310: 2d 63 6f 6d 70 69 6c 69 6e 67 2e 29 0a 23 0a 21 -compiling.).#.!
3320: 49 46 20 24 28 55 53 45 5f 46 55 4c 4c 57 41 52 IF $(USE_FULLWAR 3330: 4e 29 21 3d 30 0a 54 43 43 20 3d 20 24 28 43 43 N)!=0.TCC =$(CC
3340: 29 20 2d 6e 6f 6c 6f 67 6f 20 2d 57 34 20 2d 44 ) -nologo -W4 -D
3350: 49 4e 43 4c 55 44 45 5f 4d 53 56 43 5f 48 3d 31 INCLUDE_MSVC_H=1
3360: 20 24 28 43 43 4f 50 54 53 29 20 24 28 54 43 43 $(CCOPTS)$(TCC
3370: 4f 50 54 53 29 0a 21 45 4c 53 45 0a 54 43 43 20 OPTS).!ELSE.TCC
3380: 3d 20 24 28 43 43 29 20 2d 6e 6f 6c 6f 67 6f 20 = $(CC) -nologo 3390: 2d 57 33 20 24 28 43 43 4f 50 54 53 29 20 24 28 -W3$(CCOPTS) $( 33a0: 54 43 43 4f 50 54 53 29 0a 21 45 4e 44 49 46 0a TCCOPTS).!ENDIF. 33b0: 0a 23 20 43 68 65 63 6b 20 69 66 20 77 61 72 6e .# Check if warn 33c0: 69 6e 67 73 20 73 68 6f 75 6c 64 20 62 65 20 74 ings should be t 33d0: 72 65 61 74 65 64 20 61 73 20 65 72 72 6f 72 73 reated as errors 33e0: 20 77 68 65 6e 20 63 6f 6d 70 69 6c 69 6e 67 2e when compiling. 33f0: 0a 23 0a 21 49 46 20 24 28 55 53 45 5f 46 41 54 .#.!IF$(USE_FAT
3400: 41 4c 5f 57 41 52 4e 29 21 3d 30 0a 54 43 43 20 AL_WARN)!=0.TCC
3410: 3d 20 24 28 54 43 43 29 20 2d 57 58 0a 21 45 4e = $(TCC) -WX.!EN 3420: 44 49 46 0a 0a 54 43 43 20 3d 20 24 28 54 43 43 DIF..TCC =$(TCC
3430: 29 20 2d 44 53 51 4c 49 54 45 5f 4f 53 5f 57 49 ) -DSQLITE_OS_WI
3440: 4e 3d 31 20 2d 49 2e 20 2d 49 24 28 54 4f 50 29 N=1 -I. -I$(TOP) 3450: 20 2d 49 24 28 54 4f 50 29 5c 73 72 63 20 2d 66 -I$(TOP)\src -f
3460: 70 3a 70 72 65 63 69 73 65 0a 52 43 43 20 3d 20 p:precise.RCC =
3470: 24 28 52 43 29 20 2d 44 53 51 4c 49 54 45 5f 4f $(RC) -DSQLITE_O 3480: 53 5f 57 49 4e 3d 31 20 2d 49 2e 20 2d 49 24 28 S_WIN=1 -I. -I$(
3490: 54 4f 50 29 20 2d 49 24 28 54 4f 50 29 5c 73 72 TOP) -I$(TOP)\sr 34a0: 63 20 24 28 52 43 4f 50 54 53 29 20 24 28 52 43 c$(RCOPTS) $(RC 34b0: 43 4f 50 54 53 29 0a 0a 23 20 43 68 65 63 6b 20 COPTS)..# Check 34c0: 69 66 20 77 65 20 77 61 6e 74 20 74 6f 20 75 73 if we want to us 34d0: 65 20 74 68 65 20 22 73 74 64 63 61 6c 6c 22 20 e the "stdcall" 34e0: 63 61 6c 6c 69 6e 67 20 63 6f 6e 76 65 6e 74 69 calling conventi 34f0: 6f 6e 20 77 68 65 6e 20 63 6f 6d 70 69 6c 69 6e on when compilin 3500: 67 2e 0a 23 20 54 68 69 73 20 69 73 20 6e 6f 74 g..# This is not 3510: 20 73 75 70 70 6f 72 74 65 64 20 62 79 20 74 68 supported by th 3520: 65 20 63 6f 6d 70 69 6c 65 72 73 20 66 6f 72 20 e compilers for 3530: 6e 6f 6e 2d 78 38 36 20 70 6c 61 74 66 6f 72 6d non-x86 platform 3540: 73 2e 20 20 49 74 20 73 68 6f 75 6c 64 0a 23 20 s. It should.# 3550: 61 6c 73 6f 20 62 65 20 6e 6f 74 65 64 20 68 65 also be noted he 3560: 72 65 20 74 68 61 74 20 62 75 69 6c 64 69 6e 67 re that building 3570: 20 61 6e 79 20 74 61 72 67 65 74 20 77 69 74 68 any target with 3580: 20 74 68 65 73 65 20 22 73 74 64 63 61 6c 6c 22 these "stdcall" 3590: 20 6f 70 74 69 6f 6e 73 0a 23 20 77 69 6c 6c 20 options.# will 35a0: 6d 6f 73 74 20 6c 69 6b 65 6c 79 20 66 61 69 6c most likely fail 35b0: 20 69 66 20 74 68 65 20 54 63 6c 20 6c 69 62 72 if the Tcl libr 35c0: 61 72 79 20 69 73 20 61 6c 73 6f 20 72 65 71 75 ary is also requ 35d0: 69 72 65 64 2e 20 20 54 68 69 73 20 69 73 20 64 ired. This is d 35e0: 75 65 0a 23 20 74 6f 20 68 6f 77 20 74 68 65 20 ue.# to how the 35f0: 54 63 6c 20 6c 69 62 72 61 72 79 20 66 75 6e 63 Tcl library func 3600: 74 69 6f 6e 73 20 61 72 65 20 64 65 63 6c 61 72 tions are declar 3610: 65 64 20 61 6e 64 20 65 78 70 6f 72 74 65 64 20 ed and exported 3620: 28 69 2e 65 2e 20 77 69 74 68 6f 75 74 0a 23 20 (i.e. without.# 3630: 61 6e 20 65 78 70 6c 69 63 69 74 20 63 61 6c 6c an explicit call 3640: 69 6e 67 20 63 6f 6e 76 65 6e 74 69 6f 6e 2c 20 ing convention, 3650: 77 68 69 63 68 20 72 65 73 75 6c 74 73 20 69 6e which results in 3660: 20 22 63 64 65 63 6c 22 29 2e 0a 23 0a 21 49 46 "cdecl")..#.!IF 3670: 20 24 28 55 53 45 5f 53 54 44 43 41 4c 4c 29 21$(USE_STDCALL)!
3680: 3d 30 20 7c 7c 20 24 28 46 4f 52 5f 57 49 4e 31 =0 || $(FOR_WIN1 3690: 30 29 21 3d 30 0a 21 49 46 20 22 24 28 50 4c 41 0)!=0.!IF "$(PLA
36a0: 54 46 4f 52 4d 29 22 3d 3d 22 78 38 36 22 0a 43 TFORM)"=="x86".C
36b0: 4f 52 45 5f 43 43 4f 4e 56 5f 4f 50 54 53 20 3d ORE_CCONV_OPTS =
36c0: 20 2d 47 7a 20 2d 44 53 51 4c 49 54 45 5f 43 44 -Gz -DSQLITE_CD
36d0: 45 43 4c 3d 5f 5f 63 64 65 63 6c 20 2d 44 53 51 ECL=__cdecl -DSQ
36e0: 4c 49 54 45 5f 41 50 49 43 41 4c 4c 3d 5f 5f 73 LITE_APICALL=__s
36f0: 74 64 63 61 6c 6c 20 2d 44 53 51 4c 49 54 45 5f tdcall -DSQLITE_
3700: 43 41 4c 4c 42 41 43 4b 3d 5f 5f 73 74 64 63 61 CALLBACK=__stdca
3710: 6c 6c 20 2d 44 53 51 4c 49 54 45 5f 53 59 53 41 ll -DSQLITE_SYSA
3720: 50 49 3d 5f 5f 73 74 64 63 61 6c 6c 0a 53 48 45 PI=__stdcall.SHE
3730: 4c 4c 5f 43 43 4f 4e 56 5f 4f 50 54 53 20 3d 20 LL_CCONV_OPTS =
3740: 2d 47 7a 20 2d 44 53 51 4c 49 54 45 5f 43 44 45 -Gz -DSQLITE_CDE
3750: 43 4c 3d 5f 5f 63 64 65 63 6c 20 2d 44 53 51 4c CL=__cdecl -DSQL
3760: 49 54 45 5f 41 50 49 43 41 4c 4c 3d 5f 5f 73 74 ITE_APICALL=__st
3770: 64 63 61 6c 6c 20 2d 44 53 51 4c 49 54 45 5f 43 dcall -DSQLITE_C
3780: 41 4c 4c 42 41 43 4b 3d 5f 5f 73 74 64 63 61 6c ALLBACK=__stdcal
3790: 6c 20 2d 44 53 51 4c 49 54 45 5f 53 59 53 41 50 l -DSQLITE_SYSAP
37a0: 49 3d 5f 5f 73 74 64 63 61 6c 6c 0a 23 20 3c 3c I=__stdcall.# <<
37b0: 6d 61 72 6b 3e 3e 0a 54 45 53 54 5f 43 43 4f 4e mark>>.TEST_CCON
37c0: 56 5f 4f 50 54 53 20 3d 20 2d 47 7a 20 2d 44 53 V_OPTS = -Gz -DS
37d0: 51 4c 49 54 45 5f 43 44 45 43 4c 3d 5f 5f 63 64 QLITE_CDECL=__cd
37e0: 65 63 6c 20 2d 44 53 51 4c 49 54 45 5f 41 50 49 ecl -DSQLITE_API
37f0: 43 41 4c 4c 3d 5f 5f 73 74 64 63 61 6c 6c 20 2d CALL=__stdcall -
3800: 44 53 51 4c 49 54 45 5f 43 41 4c 4c 42 41 43 4b DSQLITE_CALLBACK
3810: 3d 5f 5f 73 74 64 63 61 6c 6c 20 2d 44 53 51 4c =__stdcall -DSQL
3820: 49 54 45 5f 53 59 53 41 50 49 3d 5f 5f 73 74 64 ITE_SYSAPI=__std
3830: 63 61 6c 6c 20 2d 44 49 4e 43 4c 55 44 45 5f 53 call -DINCLUDE_S
3840: 51 4c 49 54 45 5f 54 43 4c 5f 48 3d 31 20 2d 44 QLITE_TCL_H=1 -D
3850: 53 51 4c 49 54 45 5f 54 43 4c 41 50 49 3d 5f 5f SQLITE_TCLAPI=__
3860: 63 64 65 63 6c 0a 23 20 3c 3c 2f 6d 61 72 6b 3e cdecl.# <</mark>
3870: 3e 0a 21 45 4c 53 45 0a 21 49 46 4e 44 45 46 20 >.!ELSE.!IFNDEF
3880: 50 4c 41 54 46 4f 52 4d 0a 43 4f 52 45 5f 43 43 PLATFORM.CORE_CC
3890: 4f 4e 56 5f 4f 50 54 53 20 3d 20 2d 47 7a 20 2d ONV_OPTS = -Gz -
38a0: 44 53 51 4c 49 54 45 5f 43 44 45 43 4c 3d 5f 5f DSQLITE_CDECL=__
38b0: 63 64 65 63 6c 20 2d 44 53 51 4c 49 54 45 5f 41 cdecl -DSQLITE_A
38c0: 50 49 43 41 4c 4c 3d 5f 5f 73 74 64 63 61 6c 6c PICALL=__stdcall
38d0: 20 2d 44 53 51 4c 49 54 45 5f 43 41 4c 4c 42 41 -DSQLITE_CALLBA
38e0: 43 4b 3d 5f 5f 73 74 64 63 61 6c 6c 20 2d 44 53 CK=__stdcall -DS
38f0: 51 4c 49 54 45 5f 53 59 53 41 50 49 3d 5f 5f 73 QLITE_SYSAPI=__s
3900: 74 64 63 61 6c 6c 0a 53 48 45 4c 4c 5f 43 43 4f tdcall.SHELL_CCO
3910: 4e 56 5f 4f 50 54 53 20 3d 20 2d 47 7a 20 2d 44 NV_OPTS = -Gz -D
3920: 53 51 4c 49 54 45 5f 43 44 45 43 4c 3d 5f 5f 63 SQLITE_CDECL=__c
3930: 64 65 63 6c 20 2d 44 53 51 4c 49 54 45 5f 41 50 decl -DSQLITE_AP
3940: 49 43 41 4c 4c 3d 5f 5f 73 74 64 63 61 6c 6c 20 ICALL=__stdcall
3950: 2d 44 53 51 4c 49 54 45 5f 43 41 4c 4c 42 41 43 -DSQLITE_CALLBAC
3960: 4b 3d 5f 5f 73 74 64 63 61 6c 6c 20 2d 44 53 51 K=__stdcall -DSQ
3970: 4c 49 54 45 5f 53 59 53 41 50 49 3d 5f 5f 73 74 LITE_SYSAPI=__st
3980: 64 63 61 6c 6c 0a 23 20 3c 3c 6d 61 72 6b 3e 3e dcall.# <<mark>>
3990: 0a 54 45 53 54 5f 43 43 4f 4e 56 5f 4f 50 54 53 .TEST_CCONV_OPTS
39a0: 20 3d 20 2d 47 7a 20 2d 44 53 51 4c 49 54 45 5f = -Gz -DSQLITE_
39b0: 43 44 45 43 4c 3d 5f 5f 63 64 65 63 6c 20 2d 44 CDECL=__cdecl -D
39c0: 53 51 4c 49 54 45 5f 41 50 49 43 41 4c 4c 3d 5f SQLITE_APICALL=_
39d0: 5f 73 74 64 63 61 6c 6c 20 2d 44 53 51 4c 49 54 _stdcall -DSQLIT
39e0: 45 5f 43 41 4c 4c 42 41 43 4b 3d 5f 5f 73 74 64 E_CALLBACK=__std
39f0: 63 61 6c 6c 20 2d 44 53 51 4c 49 54 45 5f 53 59 call -DSQLITE_SY
3a00: 53 41 50 49 3d 5f 5f 73 74 64 63 61 6c 6c 20 2d SAPI=__stdcall -
3a10: 44 49 4e 43 4c 55 44 45 5f 53 51 4c 49 54 45 5f DINCLUDE_SQLITE_
3a20: 54 43 4c 5f 48 3d 31 20 2d 44 53 51 4c 49 54 45 TCL_H=1 -DSQLITE
3a30: 5f 54 43 4c 41 50 49 3d 5f 5f 63 64 65 63 6c 0a _TCLAPI=__cdecl.
3a40: 23 20 3c 3c 2f 6d 61 72 6b 3e 3e 0a 21 45 4c 53 # <</mark>>.!ELS
3a50: 45 0a 43 4f 52 45 5f 43 43 4f 4e 56 5f 4f 50 54 E.CORE_CCONV_OPT
3a60: 53 20 3d 0a 53 48 45 4c 4c 5f 43 43 4f 4e 56 5f S =.SHELL_CCONV_
3a70: 4f 50 54 53 20 3d 0a 23 20 3c 3c 6d 61 72 6b 3e OPTS =.# <<mark>
3a80: 3e 0a 54 45 53 54 5f 43 43 4f 4e 56 5f 4f 50 54 >.TEST_CCONV_OPT
3a90: 53 20 3d 0a 23 20 3c 3c 2f 6d 61 72 6b 3e 3e 0a S =.# <</mark>>.
3aa0: 21 45 4e 44 49 46 0a 21 45 4e 44 49 46 0a 21 45 !ENDIF.!ENDIF.!E
3ab0: 4c 53 45 0a 43 4f 52 45 5f 43 43 4f 4e 56 5f 4f LSE.CORE_CCONV_O
3ac0: 50 54 53 20 3d 0a 53 48 45 4c 4c 5f 43 43 4f 4e PTS =.SHELL_CCON
3ad0: 56 5f 4f 50 54 53 20 3d 0a 23 20 3c 3c 6d 61 72 V_OPTS =.# <<mar
3ae0: 6b 3e 3e 0a 54 45 53 54 5f 43 43 4f 4e 56 5f 4f k>>.TEST_CCONV_O
3af0: 50 54 53 20 3d 0a 23 20 3c 3c 2f 6d 61 72 6b 3e PTS =.# <</mark>
3b00: 3e 0a 21 45 4e 44 49 46 0a 0a 23 20 54 68 65 73 >.!ENDIF..# Thes
3b10: 65 20 61 72 65 20 61 64 64 69 74 69 6f 6e 61 6c e are additional
3b20: 20 63 6f 6d 70 69 6c 65 72 20 6f 70 74 69 6f 6e compiler option
3b30: 73 20 75 73 65 64 20 66 6f 72 20 74 68 65 20 63 s used for the c
3b40: 6f 72 65 20 6c 69 62 72 61 72 79 2e 0a 23 0a 21 ore library..#.!
3b50: 49 46 4e 44 45 46 20 43 4f 52 45 5f 43 4f 4d 50 IFNDEF CORE_COMP
3b60: 49 4c 45 5f 4f 50 54 53 0a 21 49 46 20 24 28 44 ILE_OPTS.!IF $(D 3b70: 59 4e 41 4d 49 43 5f 53 48 45 4c 4c 29 21 3d 30 YNAMIC_SHELL)!=0 3b80: 20 7c 7c 20 24 28 46 4f 52 5f 57 49 4e 31 30 29 ||$(FOR_WIN10)
3b90: 21 3d 30 0a 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 !=0.CORE_COMPILE
3ba0: 5f 4f 50 54 53 20 3d 20 24 28 43 4f 52 45 5f 43 _OPTS = $(CORE_C 3bb0: 43 4f 4e 56 5f 4f 50 54 53 29 20 2d 44 53 51 4c CONV_OPTS) -DSQL 3bc0: 49 54 45 5f 41 50 49 3d 5f 5f 64 65 63 6c 73 70 ITE_API=__declsp 3bd0: 65 63 28 64 6c 6c 65 78 70 6f 72 74 29 0a 21 45 ec(dllexport).!E 3be0: 4c 53 45 0a 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 LSE.CORE_COMPILE 3bf0: 5f 4f 50 54 53 20 3d 20 24 28 43 4f 52 45 5f 43 _OPTS =$(CORE_C
3c00: 43 4f 4e 56 5f 4f 50 54 53 29 0a 21 45 4e 44 49 CONV_OPTS).!ENDI
3c10: 46 0a 21 45 4e 44 49 46 0a 0a 23 20 54 68 65 73 F.!ENDIF..# Thes
3c20: 65 20 61 72 65 20 74 68 65 20 61 64 64 69 74 69 e are the additi
3c30: 6f 6e 61 6c 20 74 61 72 67 65 74 73 20 74 68 61 onal targets tha
3c40: 74 20 74 68 65 20 63 6f 72 65 20 6c 69 62 72 61 t the core libra
3c50: 72 79 20 73 68 6f 75 6c 64 20 64 65 70 65 6e 64 ry should depend
3c60: 20 6f 6e 0a 23 20 77 68 65 6e 20 6c 69 6e 6b 69 on.# when linki
3c70: 6e 67 2e 0a 23 0a 21 49 46 4e 44 45 46 20 43 4f ng..#.!IFNDEF CO
3c80: 52 45 5f 4c 49 4e 4b 5f 44 45 50 0a 21 49 46 20 RE_LINK_DEP.!IF
3c90: 24 28 44 59 4e 41 4d 49 43 5f 53 48 45 4c 4c 29 $(DYNAMIC_SHELL) 3ca0: 21 3d 30 0a 43 4f 52 45 5f 4c 49 4e 4b 5f 44 45 !=0.CORE_LINK_DE 3cb0: 50 20 3d 0a 21 45 4c 53 45 49 46 20 24 28 46 4f P =.!ELSEIF$(FO
3cc0: 52 5f 57 49 4e 31 30 29 3d 3d 30 20 7c 7c 20 22 R_WIN10)==0 || "
3cd0: 24 28 50 4c 41 54 46 4f 52 4d 29 22 3d 3d 22 78 $(PLATFORM)"=="x 3ce0: 38 36 22 0a 43 4f 52 45 5f 4c 49 4e 4b 5f 44 45 86".CORE_LINK_DE 3cf0: 50 20 3d 20 73 71 6c 69 74 65 33 2e 64 65 66 0a P = sqlite3.def. 3d00: 21 45 4c 53 45 0a 43 4f 52 45 5f 4c 49 4e 4b 5f !ELSE.CORE_LINK_ 3d10: 44 45 50 20 3d 0a 21 45 4e 44 49 46 0a 21 45 4e DEP =.!ENDIF.!EN 3d20: 44 49 46 0a 0a 23 20 54 68 65 73 65 20 61 72 65 DIF..# These are 3d30: 20 61 64 64 69 74 69 6f 6e 61 6c 20 6c 69 6e 6b additional link 3d40: 65 72 20 6f 70 74 69 6f 6e 73 20 75 73 65 64 20 er options used 3d50: 66 6f 72 20 74 68 65 20 63 6f 72 65 20 6c 69 62 for the core lib 3d60: 72 61 72 79 2e 0a 23 0a 21 49 46 4e 44 45 46 20 rary..#.!IFNDEF 3d70: 43 4f 52 45 5f 4c 49 4e 4b 5f 4f 50 54 53 0a 21 CORE_LINK_OPTS.! 3d80: 49 46 20 24 28 44 59 4e 41 4d 49 43 5f 53 48 45 IF$(DYNAMIC_SHE
3d90: 4c 4c 29 21 3d 30 0a 43 4f 52 45 5f 4c 49 4e 4b LL)!=0.CORE_LINK
3da0: 5f 4f 50 54 53 20 3d 0a 21 45 4c 53 45 49 46 20 _OPTS =.!ELSEIF
3db0: 24 28 46 4f 52 5f 57 49 4e 31 30 29 3d 3d 30 20 $(FOR_WIN10)==0 3dc0: 7c 7c 20 22 24 28 50 4c 41 54 46 4f 52 4d 29 22 || "$(PLATFORM)"
3dd0: 3d 3d 22 78 38 36 22 0a 43 4f 52 45 5f 4c 49 4e =="x86".CORE_LIN
3de0: 4b 5f 4f 50 54 53 20 3d 20 2f 44 45 46 3a 73 71 K_OPTS = /DEF:sq
3df0: 6c 69 74 65 33 2e 64 65 66 0a 21 45 4c 53 45 0a lite3.def.!ELSE.
3e00: 43 4f 52 45 5f 4c 49 4e 4b 5f 4f 50 54 53 20 3d CORE_LINK_OPTS =
3e10: 0a 21 45 4e 44 49 46 0a 21 45 4e 44 49 46 0a 0a .!ENDIF.!ENDIF..
3e20: 23 20 54 68 65 73 65 20 61 72 65 20 61 64 64 69 # These are addi
3e30: 74 69 6f 6e 61 6c 20 63 6f 6d 70 69 6c 65 72 20 tional compiler
3e40: 6f 70 74 69 6f 6e 73 20 75 73 65 64 20 66 6f 72 options used for
3e50: 20 74 68 65 20 73 68 65 6c 6c 20 65 78 65 63 75 the shell execu
3e60: 74 61 62 6c 65 2e 0a 23 0a 21 49 46 4e 44 45 46 table..#.!IFNDEF
3e70: 20 53 48 45 4c 4c 5f 43 4f 4d 50 49 4c 45 5f 4f SHELL_COMPILE_O
3e80: 50 54 53 0a 21 49 46 20 24 28 44 59 4e 41 4d 49 PTS.!IF $(DYNAMI 3e90: 43 5f 53 48 45 4c 4c 29 21 3d 30 20 7c 7c 20 24 C_SHELL)!=0 ||$
3ea0: 28 46 4f 52 5f 57 49 4e 31 30 29 21 3d 30 0a 53 (FOR_WIN10)!=0.S
3eb0: 48 45 4c 4c 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 HELL_COMPILE_OPT
3ec0: 53 20 3d 20 24 28 53 48 45 4c 4c 5f 43 43 4f 4e S = $(SHELL_CCON 3ed0: 56 5f 4f 50 54 53 29 20 2d 44 53 51 4c 49 54 45 V_OPTS) -DSQLITE 3ee0: 5f 41 50 49 3d 5f 5f 64 65 63 6c 73 70 65 63 28 _API=__declspec( 3ef0: 64 6c 6c 69 6d 70 6f 72 74 29 0a 21 45 4c 53 45 dllimport).!ELSE 3f00: 0a 53 48 45 4c 4c 5f 43 4f 4d 50 49 4c 45 5f 4f .SHELL_COMPILE_O 3f10: 50 54 53 20 3d 20 24 28 53 48 45 4c 4c 5f 43 43 PTS =$(SHELL_CC
3f20: 4f 4e 56 5f 4f 50 54 53 29 0a 21 45 4e 44 49 46 ONV_OPTS).!ENDIF
3f30: 0a 21 45 4e 44 49 46 0a 0a 23 20 54 68 69 73 20 .!ENDIF..# This
3f40: 69 73 20 74 68 65 20 73 6f 75 72 63 65 20 63 6f is the source co
3f50: 64 65 20 74 68 61 74 20 74 68 65 20 73 68 65 6c de that the shel
3f60: 6c 20 65 78 65 63 75 74 61 62 6c 65 20 73 68 6f l executable sho
3f70: 75 6c 64 20 62 65 20 63 6f 6d 70 69 6c 65 64 0a uld be compiled.
3f80: 23 20 77 69 74 68 2e 0a 23 0a 21 49 46 4e 44 45 # with..#.!IFNDE
3f90: 46 20 53 48 45 4c 4c 5f 43 4f 52 45 5f 53 52 43 F SHELL_CORE_SRC
3fa0: 0a 21 49 46 20 24 28 44 59 4e 41 4d 49 43 5f 53 .!IF $(DYNAMIC_S 3fb0: 48 45 4c 4c 29 21 3d 30 20 7c 7c 20 24 28 46 4f HELL)!=0 ||$(FO
3fc0: 52 5f 57 49 4e 31 30 29 21 3d 30 0a 53 48 45 4c R_WIN10)!=0.SHEL
3fd0: 4c 5f 43 4f 52 45 5f 53 52 43 20 3d 0a 21 45 4c L_CORE_SRC =.!EL
3fe0: 53 45 0a 53 48 45 4c 4c 5f 43 4f 52 45 5f 53 52 SE.SHELL_CORE_SR
3ff0: 43 20 3d 20 24 28 53 51 4c 49 54 45 33 43 29 0a C = $(SQLITE3C). 4000: 21 45 4e 44 49 46 0a 21 45 4e 44 49 46 0a 0a 23 !ENDIF.!ENDIF..# 4010: 20 54 68 69 73 20 69 73 20 74 68 65 20 63 6f 72 This is the cor 4020: 65 20 6c 69 62 72 61 72 79 20 74 68 61 74 20 74 e library that t 4030: 68 65 20 73 68 65 6c 6c 20 65 78 65 63 75 74 61 he shell executa 4040: 62 6c 65 20 73 68 6f 75 6c 64 20 64 65 70 65 6e ble should depen 4050: 64 20 6f 6e 2e 0a 23 0a 21 49 46 4e 44 45 46 20 d on..#.!IFNDEF 4060: 53 48 45 4c 4c 5f 43 4f 52 45 5f 44 45 50 0a 21 SHELL_CORE_DEP.! 4070: 49 46 20 24 28 44 59 4e 41 4d 49 43 5f 53 48 45 IF$(DYNAMIC_SHE
4080: 4c 4c 29 21 3d 30 20 7c 7c 20 24 28 46 4f 52 5f LL)!=0 || $(FOR_ 4090: 57 49 4e 31 30 29 21 3d 30 0a 53 48 45 4c 4c 5f WIN10)!=0.SHELL_ 40a0: 43 4f 52 45 5f 44 45 50 20 3d 20 24 28 53 51 4c CORE_DEP =$(SQL
40b0: 49 54 45 33 44 4c 4c 29 0a 21 45 4c 53 45 0a 53 ITE3DLL).!ELSE.S
40c0: 48 45 4c 4c 5f 43 4f 52 45 5f 44 45 50 20 3d 0a HELL_CORE_DEP =.
40d0: 21 45 4e 44 49 46 0a 21 45 4e 44 49 46 0a 0a 23 !ENDIF.!ENDIF..#
40e0: 20 54 68 69 73 20 69 73 20 74 68 65 20 63 6f 72 This is the cor
40f0: 65 20 6c 69 62 72 61 72 79 20 74 68 61 74 20 74 e library that t
4100: 68 65 20 73 68 65 6c 6c 20 65 78 65 63 75 74 61 he shell executa
4110: 62 6c 65 20 73 68 6f 75 6c 64 20 6c 69 6e 6b 20 ble should link
4120: 77 69 74 68 2e 0a 23 0a 21 49 46 4e 44 45 46 20 with..#.!IFNDEF
4130: 53 48 45 4c 4c 5f 43 4f 52 45 5f 4c 49 42 0a 21 SHELL_CORE_LIB.!
4140: 49 46 20 24 28 44 59 4e 41 4d 49 43 5f 53 48 45 IF $(DYNAMIC_SHE 4150: 4c 4c 29 21 3d 30 20 7c 7c 20 24 28 46 4f 52 5f LL)!=0 ||$(FOR_
4160: 57 49 4e 31 30 29 21 3d 30 0a 53 48 45 4c 4c 5f WIN10)!=0.SHELL_
4170: 43 4f 52 45 5f 4c 49 42 20 3d 20 24 28 53 51 4c CORE_LIB = $(SQL 4180: 49 54 45 33 4c 49 42 29 0a 21 45 4c 53 45 0a 53 ITE3LIB).!ELSE.S 4190: 48 45 4c 4c 5f 43 4f 52 45 5f 4c 49 42 20 3d 0a HELL_CORE_LIB =. 41a0: 21 45 4e 44 49 46 0a 21 45 4e 44 49 46 0a 0a 23 !ENDIF.!ENDIF..# 41b0: 20 54 68 65 73 65 20 61 72 65 20 61 64 64 69 74 These are addit 41c0: 69 6f 6e 61 6c 20 6c 69 6e 6b 65 72 20 6f 70 74 ional linker opt 41d0: 69 6f 6e 73 20 75 73 65 64 20 66 6f 72 20 74 68 ions used for th 41e0: 65 20 73 68 65 6c 6c 20 65 78 65 63 75 74 61 62 e shell executab 41f0: 6c 65 2e 0a 23 0a 21 49 46 4e 44 45 46 20 53 48 le..#.!IFNDEF SH 4200: 45 4c 4c 5f 4c 49 4e 4b 5f 4f 50 54 53 0a 53 48 ELL_LINK_OPTS.SH 4210: 45 4c 4c 5f 4c 49 4e 4b 5f 4f 50 54 53 20 3d 20 ELL_LINK_OPTS = 4220: 24 28 53 48 45 4c 4c 5f 43 4f 52 45 5f 4c 49 42$(SHELL_CORE_LIB
4230: 29 0a 21 45 4e 44 49 46 0a 0a 23 20 43 68 65 63 ).!ENDIF..# Chec
4240: 6b 20 69 66 20 61 73 73 65 6d 62 6c 79 20 63 6f k if assembly co
4250: 64 65 20 6c 69 73 74 69 6e 67 73 20 73 68 6f 75 de listings shou
4260: 6c 64 20 62 65 20 67 65 6e 65 72 61 74 65 64 20 ld be generated
4270: 66 6f 72 20 74 68 65 20 73 6f 75 72 63 65 0a 23 for the source.#
4280: 20 63 6f 64 65 20 66 69 6c 65 73 20 74 6f 20 62 code files to b
4290: 65 20 63 6f 6d 70 69 6c 65 64 2e 0a 23 0a 21 49 e compiled..#.!I
42a0: 46 20 24 28 55 53 45 5f 4c 49 53 54 49 4e 47 53 F $(USE_LISTINGS 42b0: 29 21 3d 30 0a 54 43 43 20 3d 20 24 28 54 43 43 )!=0.TCC =$(TCC
42c0: 29 20 2d 46 41 63 73 0a 21 45 4e 44 49 46 0a 0a ) -FAcs.!ENDIF..
42d0: 23 20 57 68 65 6e 20 63 6f 6d 70 69 6c 69 6e 67 # When compiling
42e0: 20 74 68 65 20 6c 69 62 72 61 72 79 20 66 6f 72 the library for
42f0: 20 75 73 65 20 69 6e 20 74 68 65 20 57 69 6e 52 use in the WinR
4300: 54 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 2c 0a 23 T environment,.#
4310: 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 63 the following c
4320: 6f 6d 70 69 6c 65 2d 74 69 6d 65 20 6f 70 74 69 ompile-time opti
4330: 6f 6e 73 20 6d 75 73 74 20 62 65 20 75 73 65 64 ons must be used
4340: 20 61 73 20 77 65 6c 6c 20 74 6f 0a 23 20 64 69 as well to.# di
4350: 73 61 62 6c 65 20 75 73 65 20 6f 66 20 57 69 6e sable use of Win
4360: 33 32 20 41 50 49 73 20 74 68 61 74 20 61 72 65 32 APIs that are
4370: 20 6e 6f 74 20 61 76 61 69 6c 61 62 6c 65 20 61 not available a
4380: 6e 64 20 74 6f 20 65 6e 61 62 6c 65 0a 23 20 75 nd to enable.# u
4390: 73 65 20 6f 66 20 57 69 6e 33 32 20 41 50 49 73 se of Win32 APIs
43a0: 20 74 68 61 74 20 61 72 65 20 73 70 65 63 69 66 that are specif
43b0: 69 63 20 74 6f 20 57 69 6e 64 6f 77 73 20 38 20 ic to Windows 8
43c0: 61 6e 64 2f 6f 72 20 57 69 6e 52 54 2e 0a 23 0a and/or WinRT..#.
43d0: 21 49 46 20 24 28 46 4f 52 5f 57 49 4e 52 54 29 !IF $(FOR_WINRT) 43e0: 21 3d 30 0a 54 43 43 20 3d 20 24 28 54 43 43 29 !=0.TCC =$(TCC)
43f0: 20 2d 44 53 51 4c 49 54 45 5f 4f 53 5f 57 49 4e -DSQLITE_OS_WIN
4400: 52 54 3d 31 0a 52 43 43 20 3d 20 24 28 52 43 43 RT=1.RCC = $(RCC 4410: 29 20 2d 44 53 51 4c 49 54 45 5f 4f 53 5f 57 49 ) -DSQLITE_OS_WI 4420: 4e 52 54 3d 31 0a 54 43 43 20 3d 20 24 28 54 43 NRT=1.TCC =$(TC
4430: 43 29 20 2d 44 57 49 4e 41 50 49 5f 46 41 4d 49 C) -DWINAPI_FAMI
4440: 4c 59 3d 57 49 4e 41 50 49 5f 46 41 4d 49 4c 59 LY=WINAPI_FAMILY
4450: 5f 41 50 50 0a 52 43 43 20 3d 20 24 28 52 43 43 _APP.RCC = $(RCC 4460: 29 20 2d 44 57 49 4e 41 50 49 5f 46 41 4d 49 4c ) -DWINAPI_FAMIL 4470: 59 3d 57 49 4e 41 50 49 5f 46 41 4d 49 4c 59 5f Y=WINAPI_FAMILY_ 4480: 41 50 50 0a 21 45 4e 44 49 46 0a 0a 23 20 43 20 APP.!ENDIF..# C 4490: 63 6f 6d 70 69 6c 65 72 20 6f 70 74 69 6f 6e 73 compiler options 44a0: 20 66 6f 72 20 74 68 65 20 57 69 6e 64 6f 77 73 for the Windows 44b0: 20 31 30 20 70 6c 61 74 66 6f 72 6d 20 28 6e 65 10 platform (ne 44c0: 65 64 73 20 4d 53 56 43 20 32 30 31 35 29 2e 0a eds MSVC 2015).. 44d0: 23 0a 21 49 46 20 24 28 46 4f 52 5f 57 49 4e 31 #.!IF$(FOR_WIN1
44e0: 30 29 21 3d 30 0a 54 43 43 20 3d 20 24 28 54 43 0)!=0.TCC = $(TC 44f0: 43 29 20 2f 64 32 67 75 61 72 64 34 20 2d 44 5f C) /d2guard4 -D_ 4500: 41 52 4d 5f 57 49 4e 41 50 49 5f 50 41 52 54 49 ARM_WINAPI_PARTI 4510: 54 49 4f 4e 5f 44 45 53 4b 54 4f 50 5f 53 44 4b TION_DESKTOP_SDK 4520: 5f 41 56 41 49 4c 41 42 4c 45 0a 42 43 43 20 3d _AVAILABLE.BCC = 4530: 20 24 28 42 43 43 29 20 2f 64 32 67 75 61 72 64$(BCC) /d2guard
4540: 34 20 2d 44 5f 41 52 4d 5f 57 49 4e 41 50 49 5f 4 -D_ARM_WINAPI_
4550: 50 41 52 54 49 54 49 4f 4e 5f 44 45 53 4b 54 4f PARTITION_DESKTO
4560: 50 5f 53 44 4b 5f 41 56 41 49 4c 41 42 4c 45 0a P_SDK_AVAILABLE.
4570: 21 45 4e 44 49 46 0a 0a 23 20 41 6c 73 6f 2c 20 !ENDIF..# Also,
4580: 77 65 20 6e 65 65 64 20 74 6f 20 64 79 6e 61 6d we need to dynam
4590: 69 63 61 6c 6c 79 20 6c 69 6e 6b 20 74 6f 20 74 ically link to t
45a0: 68 65 20 63 6f 72 72 65 63 74 20 4d 53 56 43 20 he correct MSVC
45b0: 72 75 6e 74 69 6d 65 0a 23 20 77 68 65 6e 20 63 runtime.# when c
45c0: 6f 6d 70 69 6c 69 6e 67 20 66 6f 72 20 57 69 6e ompiling for Win
45d0: 52 54 20 28 65 2e 67 2e 20 64 65 62 75 67 20 6f RT (e.g. debug o
45e0: 72 20 72 65 6c 65 61 73 65 29 20 4f 52 20 69 66 r release) OR if
45f0: 20 74 68 65 0a 23 20 55 53 45 5f 43 52 54 5f 44 the.# USE_CRT_D
4600: 4c 4c 20 6f 70 74 69 6f 6e 20 69 73 20 73 65 74 LL option is set
4610: 20 74 6f 20 66 6f 72 63 65 20 64 79 6e 61 6d 69 to force dynami
4620: 63 61 6c 6c 79 20 6c 69 6e 6b 69 6e 67 20 74 6f cally linking to
4630: 20 74 68 65 0a 23 20 4d 53 56 43 20 72 75 6e 74 the.# MSVC runt
4640: 69 6d 65 20 6c 69 62 72 61 72 79 2e 0a 23 0a 21 ime library..#.!
4650: 49 46 20 24 28 46 4f 52 5f 57 49 4e 52 54 29 21 IF $(FOR_WINRT)! 4660: 3d 30 20 7c 7c 20 24 28 55 53 45 5f 43 52 54 5f =0 ||$(USE_CRT_
4670: 44 4c 4c 29 21 3d 30 0a 21 49 46 20 24 28 44 45 DLL)!=0.!IF $(DE 4680: 42 55 47 29 3e 31 0a 54 43 43 20 3d 20 24 28 54 BUG)>1.TCC =$(T
4690: 43 43 29 20 2d 4d 44 64 0a 42 43 43 20 3d 20 24 CC) -MDd.BCC = $46a0: 28 42 43 43 29 20 2d 4d 44 64 0a 21 45 4c 53 45 (BCC) -MDd.!ELSE 46b0: 0a 54 43 43 20 3d 20 24 28 54 43 43 29 20 2d 4d .TCC =$(TCC) -M
46c0: 44 0a 42 43 43 20 3d 20 24 28 42 43 43 29 20 2d D.BCC = $(BCC) - 46d0: 4d 44 0a 21 45 4e 44 49 46 0a 21 45 4c 53 45 0a MD.!ENDIF.!ELSE. 46e0: 21 49 46 20 24 28 44 45 42 55 47 29 3e 31 0a 54 !IF$(DEBUG)>1.T
46f0: 43 43 20 3d 20 24 28 54 43 43 29 20 2d 4d 54 64 CC = $(TCC) -MTd 4700: 0a 42 43 43 20 3d 20 24 28 42 43 43 29 20 2d 4d .BCC =$(BCC) -M
4710: 54 64 0a 21 45 4c 53 45 0a 54 43 43 20 3d 20 24 Td.!ELSE.TCC = $4720: 28 54 43 43 29 20 2d 4d 54 0a 42 43 43 20 3d 20 (TCC) -MT.BCC = 4730: 24 28 42 43 43 29 20 2d 4d 54 0a 21 45 4e 44 49$(BCC) -MT.!ENDI
4740: 46 0a 21 45 4e 44 49 46 0a 0a 23 20 3c 3c 6d 61 F.!ENDIF..# <<ma
4750: 72 6b 3e 3e 0a 23 20 54 68 65 20 6d 6b 73 71 6c rk>>.# The mksql
4760: 69 74 65 33 63 2e 74 63 6c 20 61 6e 64 20 6d 6b ite3c.tcl and mk
4770: 73 71 6c 69 74 65 33 68 2e 74 63 6c 20 73 63 72 sqlite3h.tcl scr
4780: 69 70 74 73 20 77 69 6c 6c 20 70 75 6c 6c 20 69 ipts will pull i
4790: 6e 0a 23 20 61 6e 79 20 65 78 74 65 6e 73 69 6f n.# any extensio
47a0: 6e 20 68 65 61 64 65 72 20 66 69 6c 65 73 20 62 n header files b
47b0: 79 20 64 65 66 61 75 6c 74 2e 20 20 46 6f 72 20 y default. For
47c0: 6e 6f 6e 2d 61 6d 61 6c 67 61 6d 61 74 69 6f 6e non-amalgamation
47d0: 0a 23 20 62 75 69 6c 64 73 2c 20 77 65 20 6e 65 .# builds, we ne
47e0: 65 64 20 74 6f 20 6d 61 6b 65 20 73 75 72 65 20 ed to make sure
47f0: 74 68 65 20 63 6f 6d 70 69 6c 65 72 20 63 61 6e the compiler can
4800: 20 66 69 6e 64 20 74 68 65 73 65 2e 0a 23 0a 21 find these..#.!
4810: 49 46 20 24 28 55 53 45 5f 41 4d 41 4c 47 41 4d IF $(USE_AMALGAM 4820: 41 54 49 4f 4e 29 3d 3d 30 0a 54 43 43 20 3d 20 ATION)==0.TCC = 4830: 24 28 54 43 43 29 20 2d 49 24 28 54 4f 50 29 5c$(TCC) -I$(TOP)\ 4840: 65 78 74 5c 66 74 73 33 0a 52 43 43 20 3d 20 24 ext\fts3.RCC =$
4850: 28 52 43 43 29 20 2d 49 24 28 54 4f 50 29 5c 65 (RCC) -I$(TOP)\e 4860: 78 74 5c 66 74 73 33 0a 54 43 43 20 3d 20 24 28 xt\fts3.TCC =$(
4870: 54 43 43 29 20 2d 49 24 28 54 4f 50 29 5c 65 78 TCC) -I$(TOP)\ex 4880: 74 5c 72 74 72 65 65 0a 52 43 43 20 3d 20 24 28 t\rtree.RCC =$(
4890: 52 43 43 29 20 2d 49 24 28 54 4f 50 29 5c 65 78 RCC) -I$(TOP)\ex 48a0: 74 5c 72 74 72 65 65 0a 54 43 43 20 3d 20 24 28 t\rtree.TCC =$(
48b0: 54 43 43 29 20 2d 49 24 28 54 4f 50 29 5c 65 78 TCC) -I$(TOP)\ex 48c0: 74 5c 73 65 73 73 69 6f 6e 0a 52 43 43 20 3d 20 t\session.RCC = 48d0: 24 28 52 43 43 29 20 2d 49 24 28 54 4f 50 29 5c$(RCC) -I$(TOP)\ 48e0: 65 78 74 5c 73 65 73 73 69 6f 6e 0a 21 45 4e 44 ext\session.!END 48f0: 49 46 0a 0a 23 20 54 68 65 20 6d 6b 73 71 6c 69 IF..# The mksqli 4900: 74 65 33 63 2e 74 63 6c 20 73 63 72 69 70 74 20 te3c.tcl script 4910: 61 63 63 65 70 74 73 20 73 6f 6d 65 20 6f 70 74 accepts some opt 4920: 69 6f 6e 73 20 6f 6e 20 74 68 65 20 63 6f 6d 6d ions on the comm 4930: 61 6e 64 0a 23 20 6c 69 6e 65 2e 20 20 57 68 65 and.# line. Whe 4940: 6e 20 63 6f 6d 70 69 6c 69 6e 67 20 77 69 74 68 n compiling with 4950: 20 64 65 62 75 67 67 69 6e 67 20 65 6e 61 62 6c debugging enabl 4960: 65 64 2c 20 73 6f 6d 65 20 6f 66 20 74 68 65 73 ed, some of thes 4970: 65 0a 23 20 6f 70 74 69 6f 6e 73 20 61 72 65 20 e.# options are 4980: 6e 65 63 65 73 73 61 72 79 20 69 6e 20 6f 72 64 necessary in ord 4990: 65 72 20 74 6f 20 61 6c 6c 6f 77 20 64 65 62 75 er to allow debu 49a0: 67 67 69 6e 67 20 73 79 6d 62 6f 6c 73 20 74 6f gging symbols to 49b0: 0a 23 20 77 6f 72 6b 20 63 6f 72 72 65 63 74 6c .# work correctl 49c0: 79 20 77 69 74 68 20 56 69 73 75 61 6c 20 53 74 y with Visual St 49d0: 75 64 69 6f 20 77 68 65 6e 20 75 73 69 6e 67 20 udio when using 49e0: 74 68 65 20 61 6d 61 6c 67 61 6d 61 74 69 6f 6e the amalgamation 49f0: 2e 0a 23 0a 21 49 46 4e 44 45 46 20 4d 4b 53 51 ..#.!IFNDEF MKSQ 4a00: 4c 49 54 45 33 43 5f 54 4f 4f 4c 0a 21 49 46 20 LITE3C_TOOL.!IF 4a10: 24 28 4d 49 4e 49 4d 41 4c 5f 41 4d 41 4c 47 41$(MINIMAL_AMALGA
4a20: 4d 41 54 49 4f 4e 29 21 3d 30 0a 4d 4b 53 51 4c MATION)!=0.MKSQL
4a30: 49 54 45 33 43 5f 54 4f 4f 4c 20 3d 20 24 28 54 ITE3C_TOOL = $(T 4a40: 4f 50 29 5c 74 6f 6f 6c 5c 6d 6b 73 71 6c 69 74 OP)\tool\mksqlit 4a50: 65 33 63 2d 6e 6f 65 78 74 2e 74 63 6c 0a 21 45 e3c-noext.tcl.!E 4a60: 4c 53 45 0a 4d 4b 53 51 4c 49 54 45 33 43 5f 54 LSE.MKSQLITE3C_T 4a70: 4f 4f 4c 20 3d 20 24 28 54 4f 50 29 5c 74 6f 6f OOL =$(TOP)\too
4a80: 6c 5c 6d 6b 73 71 6c 69 74 65 33 63 2e 74 63 6c l\mksqlite3c.tcl
4a90: 0a 21 45 4e 44 49 46 0a 21 45 4e 44 49 46 0a 0a .!ENDIF.!ENDIF..
4aa0: 21 49 46 4e 44 45 46 20 4d 4b 53 51 4c 49 54 45 !IFNDEF MKSQLITE
4ab0: 33 43 5f 41 52 47 53 0a 21 49 46 20 24 28 44 45 3C_ARGS.!IF $(DE 4ac0: 42 55 47 29 3e 31 0a 4d 4b 53 51 4c 49 54 45 33 BUG)>1.MKSQLITE3 4ad0: 43 5f 41 52 47 53 20 3d 20 2d 2d 6c 69 6e 65 6d C_ARGS = --linem 4ae0: 61 63 72 6f 73 0a 21 45 4c 53 45 0a 4d 4b 53 51 acros.!ELSE.MKSQ 4af0: 4c 49 54 45 33 43 5f 41 52 47 53 20 3d 0a 21 45 LITE3C_ARGS =.!E 4b00: 4e 44 49 46 0a 21 49 46 20 24 28 55 53 45 5f 53 NDIF.!IF$(USE_S
4b10: 54 44 43 41 4c 4c 29 21 3d 30 20 7c 7c 20 24 28 TDCALL)!=0 || $( 4b20: 46 4f 52 5f 57 49 4e 31 30 29 21 3d 30 0a 4d 4b FOR_WIN10)!=0.MK 4b30: 53 51 4c 49 54 45 33 43 5f 41 52 47 53 20 3d 20 SQLITE3C_ARGS = 4b40: 24 28 4d 4b 53 51 4c 49 54 45 33 43 5f 41 52 47$(MKSQLITE3C_ARG
4b50: 53 29 20 2d 2d 75 73 65 61 70 69 63 61 6c 6c 0a S) --useapicall.
4b60: 21 45 4e 44 49 46 0a 21 45 4e 44 49 46 0a 0a 23 !ENDIF.!ENDIF..#
4b70: 20 54 68 65 20 6d 6b 73 71 6c 69 74 65 33 68 2e The mksqlite3h.
4b80: 74 63 6c 20 73 63 72 69 70 74 20 61 63 63 65 70 tcl script accep
4b90: 74 73 20 73 6f 6d 65 20 6f 70 74 69 6f 6e 73 20 ts some options
4ba0: 6f 6e 20 74 68 65 20 63 6f 6d 6d 61 6e 64 20 6c on the command l
4bb0: 69 6e 65 2e 0a 23 20 57 68 65 6e 20 63 6f 6d 70 ine..# When comp
4bc0: 69 6c 69 6e 67 20 77 69 74 68 20 73 74 64 63 61 iling with stdca
4bd0: 6c 6c 20 73 75 70 70 6f 72 74 2c 20 73 6f 6d 65 ll support, some
4be0: 20 6f 66 20 74 68 65 73 65 20 6f 70 74 69 6f 6e of these option
4bf0: 73 20 61 72 65 0a 23 20 6e 65 63 65 73 73 61 72 s are.# necessar
4c00: 79 2e 0a 23 0a 21 49 46 4e 44 45 46 20 4d 4b 53 y..#.!IFNDEF MKS
4c10: 51 4c 49 54 45 33 48 5f 41 52 47 53 0a 21 49 46 QLITE3H_ARGS.!IF
4c20: 20 24 28 55 53 45 5f 53 54 44 43 41 4c 4c 29 21 $(USE_STDCALL)! 4c30: 3d 30 20 7c 7c 20 24 28 46 4f 52 5f 57 49 4e 31 =0 ||$(FOR_WIN1
4c40: 30 29 21 3d 30 0a 4d 4b 53 51 4c 49 54 45 33 48 0)!=0.MKSQLITE3H
4c50: 5f 41 52 47 53 20 3d 20 2d 2d 75 73 65 61 70 69 _ARGS = --useapi
4c60: 63 61 6c 6c 0a 21 45 4c 53 45 0a 4d 4b 53 51 4c call.!ELSE.MKSQL
4c70: 49 54 45 33 48 5f 41 52 47 53 20 3d 0a 21 45 4e ITE3H_ARGS =.!EN
4c80: 44 49 46 0a 21 45 4e 44 49 46 0a 23 20 3c 3c 2f DIF.!ENDIF.# <</
4c90: 6d 61 72 6b 3e 3e 0a 0a 23 20 44 65 66 69 6e 65 mark>>..# Define
4ca0: 20 2d 44 4e 44 45 42 55 47 20 74 6f 20 63 6f 6d -DNDEBUG to com
4cb0: 70 69 6c 65 20 77 69 74 68 6f 75 74 20 64 65 62 pile without deb
4cc0: 75 67 67 69 6e 67 20 28 69 2e 65 2e 2c 20 66 6f ugging (i.e., fo
4cd0: 72 20 70 72 6f 64 75 63 74 69 6f 6e 20 75 73 61 r production usa
4ce0: 67 65 29 0a 23 20 4f 6d 69 74 74 69 6e 67 20 74 ge).# Omitting t
4cf0: 68 65 20 64 65 66 69 6e 65 20 77 69 6c 6c 20 63 he define will c
4d00: 61 75 73 65 20 65 78 74 72 61 20 64 65 62 75 67 ause extra debug
4d10: 67 69 6e 67 20 63 6f 64 65 20 74 6f 20 62 65 20 ging code to be
4d20: 69 6e 73 65 72 74 65 64 20 61 6e 64 0a 23 20 69 inserted and.# i
4d30: 6e 63 6c 75 64 65 73 20 65 78 74 72 61 20 63 6f ncludes extra co
4d40: 6d 6d 65 6e 74 73 20 77 68 65 6e 20 22 45 58 50 mments when "EXP
4d50: 4c 41 49 4e 20 73 74 6d 74 22 20 69 73 20 75 73 LAIN stmt" is us
4d60: 65 64 2e 0a 23 0a 21 49 46 20 24 28 44 45 42 55 ed..#.!IF $(DEBU 4d70: 47 29 3d 3d 30 0a 54 43 43 20 3d 20 24 28 54 43 G)==0.TCC =$(TC
4d80: 43 29 20 2d 44 4e 44 45 42 55 47 0a 42 43 43 20 C) -DNDEBUG.BCC
4d90: 3d 20 24 28 42 43 43 29 20 2d 44 4e 44 45 42 55 = $(BCC) -DNDEBU 4da0: 47 0a 52 43 43 20 3d 20 24 28 52 43 43 29 20 2d G.RCC =$(RCC) -
4db0: 44 4e 44 45 42 55 47 0a 21 45 4e 44 49 46 0a 0a DNDEBUG.!ENDIF..
4dc0: 21 49 46 20 24 28 44 45 42 55 47 29 3e 30 20 7c !IF $(DEBUG)>0 | 4dd0: 7c 20 24 28 41 50 49 5f 41 52 4d 4f 52 29 21 3d |$(API_ARMOR)!=
4de0: 30 20 7c 7c 20 24 28 46 4f 52 5f 57 49 4e 31 30 0 || $(FOR_WIN10 4df0: 29 21 3d 30 0a 54 43 43 20 3d 20 24 28 54 43 43 )!=0.TCC =$(TCC
4e00: 29 20 2d 44 53 51 4c 49 54 45 5f 45 4e 41 42 4c ) -DSQLITE_ENABL
4e10: 45 5f 41 50 49 5f 41 52 4d 4f 52 3d 31 0a 52 43 E_API_ARMOR=1.RC
4e20: 43 20 3d 20 24 28 52 43 43 29 20 2d 44 53 51 4c C = $(RCC) -DSQL 4e30: 49 54 45 5f 45 4e 41 42 4c 45 5f 41 50 49 5f 41 ITE_ENABLE_API_A 4e40: 52 4d 4f 52 3d 31 0a 21 45 4e 44 49 46 0a 0a 21 RMOR=1.!ENDIF..! 4e50: 49 46 20 24 28 44 45 42 55 47 29 3e 32 0a 54 43 IF$(DEBUG)>2.TC
4e60: 43 20 3d 20 24 28 54 43 43 29 20 2d 44 53 51 4c C = $(TCC) -DSQL 4e70: 49 54 45 5f 44 45 42 55 47 3d 31 0a 52 43 43 20 ITE_DEBUG=1.RCC 4e80: 3d 20 24 28 52 43 43 29 20 2d 44 53 51 4c 49 54 =$(RCC) -DSQLIT
4e90: 45 5f 44 45 42 55 47 3d 31 0a 21 49 46 20 24 28 E_DEBUG=1.!IF $( 4ea0: 44 59 4e 41 4d 49 43 5f 53 48 45 4c 4c 29 3d 3d DYNAMIC_SHELL)== 4eb0: 30 0a 54 43 43 20 3d 20 24 28 54 43 43 29 20 2d 0.TCC =$(TCC) -
4ec0: 44 53 51 4c 49 54 45 5f 45 4e 41 42 4c 45 5f 57 DSQLITE_ENABLE_W
4ed0: 48 45 52 45 54 52 41 43 45 20 2d 44 53 51 4c 49 HERETRACE -DSQLI
4ee0: 54 45 5f 45 4e 41 42 4c 45 5f 53 45 4c 45 43 54 TE_ENABLE_SELECT
4ef0: 54 52 41 43 45 0a 52 43 43 20 3d 20 24 28 52 43 TRACE.RCC = $(RC 4f00: 43 29 20 2d 44 53 51 4c 49 54 45 5f 45 4e 41 42 C) -DSQLITE_ENAB 4f10: 4c 45 5f 57 48 45 52 45 54 52 41 43 45 20 2d 44 LE_WHERETRACE -D 4f20: 53 51 4c 49 54 45 5f 45 4e 41 42 4c 45 5f 53 45 SQLITE_ENABLE_SE 4f30: 4c 45 43 54 54 52 41 43 45 0a 21 45 4e 44 49 46 LECTTRACE.!ENDIF 4f40: 0a 21 45 4e 44 49 46 0a 0a 21 49 46 20 24 28 44 .!ENDIF..!IF$(D
4f50: 45 42 55 47 29 3e 34 20 7c 7c 20 24 28 4f 53 54 EBUG)>4 || $(OST 4f60: 52 41 43 45 29 21 3d 30 0a 54 43 43 20 3d 20 24 RACE)!=0.TCC =$
4f70: 28 54 43 43 29 20 2d 44 53 51 4c 49 54 45 5f 46 (TCC) -DSQLITE_F
4f80: 4f 52 43 45 5f 4f 53 5f 54 52 41 43 45 3d 31 20 ORCE_OS_TRACE=1
4f90: 2d 44 53 51 4c 49 54 45 5f 44 45 42 55 47 5f 4f -DSQLITE_DEBUG_O
4fa0: 53 5f 54 52 41 43 45 3d 31 0a 52 43 43 20 3d 20 S_TRACE=1.RCC =
4fb0: 24 28 52 43 43 29 20 2d 44 53 51 4c 49 54 45 5f $(RCC) -DSQLITE_ 4fc0: 46 4f 52 43 45 5f 4f 53 5f 54 52 41 43 45 3d 31 FORCE_OS_TRACE=1 4fd0: 20 2d 44 53 51 4c 49 54 45 5f 44 45 42 55 47 5f -DSQLITE_DEBUG_ 4fe0: 4f 53 5f 54 52 41 43 45 3d 31 0a 21 45 4e 44 49 OS_TRACE=1.!ENDI 4ff0: 46 0a 0a 21 49 46 20 24 28 44 45 42 55 47 29 3e F..!IF$(DEBUG)>
5000: 35 0a 54 43 43 20 3d 20 24 28 54 43 43 29 20 2d 5.TCC = $(TCC) - 5010: 44 53 51 4c 49 54 45 5f 45 4e 41 42 4c 45 5f 49 DSQLITE_ENABLE_I 5020: 4f 54 52 41 43 45 3d 31 0a 52 43 43 20 3d 20 24 OTRACE=1.RCC =$
5030: 28 52 43 43 29 20 2d 44 53 51 4c 49 54 45 5f 45 (RCC) -DSQLITE_E
5040: 4e 41 42 4c 45 5f 49 4f 54 52 41 43 45 3d 31 0a NABLE_IOTRACE=1.
5050: 21 45 4e 44 49 46 0a 0a 23 20 50 72 65 76 65 6e !ENDIF..# Preven
5060: 74 20 77 61 72 6e 69 6e 67 73 20 61 62 6f 75 74 t warnings about
5070: 20 22 69 6e 73 65 63 75 72 65 22 20 4d 53 56 43 "insecure" MSVC
5080: 20 72 75 6e 74 69 6d 65 20 6c 69 62 72 61 72 79 runtime library
5090: 20 66 75 6e 63 74 69 6f 6e 73 0a 23 20 62 65 69 functions.# bei
50a0: 6e 67 20 75 73 65 64 2e 0a 23 0a 54 43 43 20 3d ng used..#.TCC =
50b0: 20 24 28 54 43 43 29 20 2d 44 5f 43 52 54 5f 53 $(TCC) -D_CRT_S 50c0: 45 43 55 52 45 5f 4e 4f 5f 44 45 50 52 45 43 41 ECURE_NO_DEPRECA 50d0: 54 45 20 2d 44 5f 43 52 54 5f 53 45 43 55 52 45 TE -D_CRT_SECURE 50e0: 5f 4e 4f 5f 57 41 52 4e 49 4e 47 53 0a 42 43 43 _NO_WARNINGS.BCC 50f0: 20 3d 20 24 28 42 43 43 29 20 2d 44 5f 43 52 54 =$(BCC) -D_CRT
5100: 5f 53 45 43 55 52 45 5f 4e 4f 5f 44 45 50 52 45 _SECURE_NO_DEPRE
5110: 43 41 54 45 20 2d 44 5f 43 52 54 5f 53 45 43 55 CATE -D_CRT_SECU
5120: 52 45 5f 4e 4f 5f 57 41 52 4e 49 4e 47 53 0a 52 RE_NO_WARNINGS.R
5130: 43 43 20 3d 20 24 28 52 43 43 29 20 2d 44 5f 43 CC = $(RCC) -D_C 5140: 52 54 5f 53 45 43 55 52 45 5f 4e 4f 5f 44 45 50 RT_SECURE_NO_DEP 5150: 52 45 43 41 54 45 20 2d 44 5f 43 52 54 5f 53 45 RECATE -D_CRT_SE 5160: 43 55 52 45 5f 4e 4f 5f 57 41 52 4e 49 4e 47 53 CURE_NO_WARNINGS 5170: 0a 0a 23 20 50 72 65 76 65 6e 74 20 77 61 72 6e ..# Prevent warn 5180: 69 6e 67 73 20 61 62 6f 75 74 20 22 64 65 70 72 ings about "depr 5190: 65 63 61 74 65 64 22 20 50 4f 53 49 58 20 66 75 ecated" POSIX fu 51a0: 6e 63 74 69 6f 6e 73 20 62 65 69 6e 67 20 75 73 nctions being us 51b0: 65 64 2e 0a 23 0a 54 43 43 20 3d 20 24 28 54 43 ed..#.TCC =$(TC
51c0: 43 29 20 2d 44 5f 43 52 54 5f 4e 4f 4e 53 54 44 C) -D_CRT_NONSTD
51d0: 43 5f 4e 4f 5f 44 45 50 52 45 43 41 54 45 20 2d C_NO_DEPRECATE -
51e0: 44 5f 43 52 54 5f 4e 4f 4e 53 54 44 43 5f 4e 4f D_CRT_NONSTDC_NO
51f0: 5f 57 41 52 4e 49 4e 47 53 0a 42 43 43 20 3d 20 _WARNINGS.BCC =
5200: 24 28 42 43 43 29 20 2d 44 5f 43 52 54 5f 4e 4f $(BCC) -D_CRT_NO 5210: 4e 53 54 44 43 5f 4e 4f 5f 44 45 50 52 45 43 41 NSTDC_NO_DEPRECA 5220: 54 45 20 2d 44 5f 43 52 54 5f 4e 4f 4e 53 54 44 TE -D_CRT_NONSTD 5230: 43 5f 4e 4f 5f 57 41 52 4e 49 4e 47 53 0a 52 43 C_NO_WARNINGS.RC 5240: 43 20 3d 20 24 28 52 43 43 29 20 2d 44 5f 43 52 C =$(RCC) -D_CR
5250: 54 5f 4e 4f 4e 53 54 44 43 5f 4e 4f 5f 44 45 50 T_NONSTDC_NO_DEP
5260: 52 45 43 41 54 45 20 2d 44 5f 43 52 54 5f 4e 4f RECATE -D_CRT_NO
5270: 4e 53 54 44 43 5f 4e 4f 5f 57 41 52 4e 49 4e 47 NSTDC_NO_WARNING
5280: 53 0a 0a 23 20 55 73 65 20 74 68 65 20 53 51 4c S..# Use the SQL
5290: 69 74 65 20 64 65 62 75 67 67 69 6e 67 20 68 65 ite debugging he
52a0: 61 70 20 73 75 62 73 79 73 74 65 6d 3f 0a 23 0a ap subsystem?.#.
52b0: 21 49 46 20 24 28 4d 45 4d 44 45 42 55 47 29 21 !IF $(MEMDEBUG)! 52c0: 3d 30 0a 54 43 43 20 3d 20 24 28 54 43 43 29 20 =0.TCC =$(TCC)
52d0: 2d 44 53 51 4c 49 54 45 5f 4d 45 4d 44 45 42 55 -DSQLITE_MEMDEBU
52e0: 47 3d 31 0a 52 43 43 20 3d 20 24 28 52 43 43 29 G=1.RCC = $(RCC) 52f0: 20 2d 44 53 51 4c 49 54 45 5f 4d 45 4d 44 45 42 -DSQLITE_MEMDEB 5300: 55 47 3d 31 0a 0a 23 20 55 73 65 20 6e 61 74 69 UG=1..# Use nati 5310: 76 65 20 57 69 6e 33 32 20 68 65 61 70 20 73 75 ve Win32 heap su 5320: 62 73 79 73 74 65 6d 20 69 6e 73 74 65 61 64 20 bsystem instead 5330: 6f 66 20 6d 61 6c 6c 6f 63 2f 66 72 65 65 3f 0a of malloc/free?. 5340: 23 0a 21 45 4c 53 45 49 46 20 24 28 57 49 4e 33 #.!ELSEIF$(WIN3
5350: 32 48 45 41 50 29 21 3d 30 0a 54 43 43 20 3d 20 2HEAP)!=0.TCC =
5360: 24 28 54 43 43 29 20 2d 44 53 51 4c 49 54 45 5f $(TCC) -DSQLITE_ 5370: 57 49 4e 33 32 5f 4d 41 4c 4c 4f 43 3d 31 0a 52 WIN32_MALLOC=1.R 5380: 43 43 20 3d 20 24 28 52 43 43 29 20 2d 44 53 51 CC =$(RCC) -DSQ
5390: 4c 49 54 45 5f 57 49 4e 33 32 5f 4d 41 4c 4c 4f LITE_WIN32_MALLO
53a0: 43 3d 31 0a 0a 23 20 56 61 6c 69 64 61 74 65 20 C=1..# Validate
53b0: 74 68 65 20 68 65 61 70 20 6f 6e 20 65 76 65 72 the heap on ever
53c0: 79 20 63 61 6c 6c 20 69 6e 74 6f 20 74 68 65 20 y call into the
53d0: 6e 61 74 69 76 65 20 57 69 6e 33 32 20 68 65 61 native Win32 hea
53e0: 70 20 73 75 62 73 79 73 74 65 6d 3f 0a 23 0a 21 p subsystem?.#.!
53f0: 49 46 20 24 28 44 45 42 55 47 29 3e 33 0a 54 43 IF $(DEBUG)>3.TC 5400: 43 20 3d 20 24 28 54 43 43 29 20 2d 44 53 51 4c C =$(TCC) -DSQL
5410: 49 54 45 5f 57 49 4e 33 32 5f 4d 41 4c 4c 4f 43 ITE_WIN32_MALLOC
5420: 5f 56 41 4c 49 44 41 54 45 3d 31 0a 52 43 43 20 _VALIDATE=1.RCC
5430: 3d 20 24 28 52 43 43 29 20 2d 44 53 51 4c 49 54 = $(RCC) -DSQLIT 5440: 45 5f 57 49 4e 33 32 5f 4d 41 4c 4c 4f 43 5f 56 E_WIN32_MALLOC_V 5450: 41 4c 49 44 41 54 45 3d 31 0a 21 45 4e 44 49 46 ALIDATE=1.!ENDIF 5460: 0a 21 45 4e 44 49 46 0a 0a 23 20 3c 3c 6d 61 72 .!ENDIF..# <<mar 5470: 6b 3e 3e 0a 23 20 54 68 65 20 6c 6f 63 61 74 69 k>>.# The locati 5480: 6f 6e 73 20 6f 66 20 74 68 65 20 54 63 6c 20 68 ons of the Tcl h 5490: 65 61 64 65 72 20 61 6e 64 20 6c 69 62 72 61 72 eader and librar 54a0: 79 20 66 69 6c 65 73 2e 20 20 41 6c 73 6f 2c 20 y files. Also, 54b0: 74 68 65 20 6c 69 62 72 61 72 79 20 74 68 61 74 the library that 54c0: 0a 23 20 6e 6f 6e 2d 73 74 75 62 73 20 65 6e 61 .# non-stubs ena 54d0: 62 6c 65 64 20 70 72 6f 67 72 61 6d 73 20 75 73 bled programs us 54e0: 69 6e 67 20 54 63 6c 20 6d 75 73 74 20 6c 69 6e ing Tcl must lin 54f0: 6b 20 61 67 61 69 6e 73 74 2e 20 20 54 68 65 73 k against. Thes 5500: 65 20 76 61 72 69 61 62 6c 65 73 0a 23 20 28 54 e variables.# (T 5510: 43 4c 49 4e 43 44 49 52 2c 20 54 43 4c 4c 49 42 CLINCDIR, TCLLIB 5520: 44 49 52 2c 20 61 6e 64 20 4c 49 42 54 43 4c 29 DIR, and LIBTCL) 5530: 20 6d 61 79 20 62 65 20 6f 76 65 72 72 69 64 64 may be overridd 5540: 65 6e 20 76 69 61 20 74 68 65 20 65 6e 76 69 72 en via the envir 5550: 6f 6e 6d 65 6e 74 0a 23 20 70 72 69 6f 72 20 74 onment.# prior t 5560: 6f 20 72 75 6e 6e 69 6e 67 20 6e 6d 61 6b 65 20 o running nmake 5570: 69 6e 20 6f 72 64 65 72 20 74 6f 20 6d 61 74 63 in order to matc 5580: 68 20 74 68 65 20 61 63 74 75 61 6c 20 69 6e 73 h the actual ins 5590: 74 61 6c 6c 65 64 20 6c 6f 63 61 74 69 6f 6e 20 talled location 55a0: 61 6e 64 0a 23 20 76 65 72 73 69 6f 6e 20 6f 6e and.# version on 55b0: 20 74 68 69 73 20 6d 61 63 68 69 6e 65 2e 0a 23 this machine..# 55c0: 0a 21 49 46 4e 44 45 46 20 54 43 4c 49 4e 43 44 .!IFNDEF TCLINCD 55d0: 49 52 0a 54 43 4c 49 4e 43 44 49 52 20 3d 20 63 IR.TCLINCDIR = c 55e0: 3a 5c 74 63 6c 5c 69 6e 63 6c 75 64 65 0a 21 45 :\tcl\include.!E 55f0: 4e 44 49 46 0a 0a 21 49 46 4e 44 45 46 20 54 43 NDIF..!IFNDEF TC 5600: 4c 4c 49 42 44 49 52 0a 54 43 4c 4c 49 42 44 49 LLIBDIR.TCLLIBDI 5610: 52 20 3d 20 63 3a 5c 74 63 6c 5c 6c 69 62 0a 21 R = c:\tcl\lib.! 5620: 45 4e 44 49 46 0a 0a 21 49 46 4e 44 45 46 20 4c ENDIF..!IFNDEF L 5630: 49 42 54 43 4c 0a 4c 49 42 54 43 4c 20 3d 20 74 IBTCL.LIBTCL = t 5640: 63 6c 38 36 2e 6c 69 62 0a 21 45 4e 44 49 46 0a cl86.lib.!ENDIF. 5650: 0a 21 49 46 4e 44 45 46 20 4c 49 42 54 43 4c 53 .!IFNDEF LIBTCLS 5660: 54 55 42 0a 4c 49 42 54 43 4c 53 54 55 42 20 3d TUB.LIBTCLSTUB = 5670: 20 74 63 6c 73 74 75 62 38 36 2e 6c 69 62 0a 21 tclstub86.lib.! 5680: 45 4e 44 49 46 0a 0a 21 49 46 4e 44 45 46 20 4c ENDIF..!IFNDEF L 5690: 49 42 54 43 4c 50 41 54 48 0a 4c 49 42 54 43 4c IBTCLPATH.LIBTCL 56a0: 50 41 54 48 20 3d 20 63 3a 5c 74 63 6c 5c 62 69 PATH = c:\tcl\bi 56b0: 6e 0a 21 45 4e 44 49 46 0a 0a 23 20 54 68 65 20 n.!ENDIF..# The 56c0: 6c 6f 63 61 74 69 6f 6e 73 20 6f 66 20 74 68 65 locations of the 56d0: 20 49 43 55 20 68 65 61 64 65 72 20 61 6e 64 20 ICU header and 56e0: 6c 69 62 72 61 72 79 20 66 69 6c 65 73 2e 20 20 library files. 56f0: 54 68 65 73 65 20 76 61 72 69 61 62 6c 65 73 0a These variables. 5700: 23 20 28 49 43 55 49 4e 43 44 49 52 2c 20 49 43 # (ICUINCDIR, IC 5710: 55 4c 49 42 44 49 52 2c 20 61 6e 64 20 4c 49 42 ULIBDIR, and LIB 5720: 49 43 55 29 20 6d 61 79 20 62 65 20 6f 76 65 72 ICU) may be over 5730: 72 69 64 64 65 6e 20 76 69 61 20 74 68 65 20 65 ridden via the e 5740: 6e 76 69 72 6f 6e 6d 65 6e 74 0a 23 20 70 72 69 nvironment.# pri 5750: 6f 72 20 74 6f 20 72 75 6e 6e 69 6e 67 20 6e 6d or to running nm 5760: 61 6b 65 20 69 6e 20 6f 72 64 65 72 20 74 6f 20 ake in order to 5770: 6d 61 74 63 68 20 74 68 65 20 61 63 74 75 61 6c match the actual 5780: 20 69 6e 73 74 61 6c 6c 65 64 20 6c 6f 63 61 74 installed locat 5790: 69 6f 6e 20 6f 6e 0a 23 20 74 68 69 73 20 6d 61 ion on.# this ma 57a0: 63 68 69 6e 65 2e 0a 23 0a 21 49 46 4e 44 45 46 chine..#.!IFNDEF 57b0: 20 49 43 55 49 4e 43 44 49 52 0a 49 43 55 49 4e ICUINCDIR.ICUIN 57c0: 43 44 49 52 20 3d 20 63 3a 5c 69 63 75 5c 69 6e CDIR = c:\icu\in 57d0: 63 6c 75 64 65 0a 21 45 4e 44 49 46 0a 0a 21 49 clude.!ENDIF..!I 57e0: 46 4e 44 45 46 20 49 43 55 4c 49 42 44 49 52 0a FNDEF ICULIBDIR. 57f0: 49 43 55 4c 49 42 44 49 52 20 3d 20 63 3a 5c 69 ICULIBDIR = c:\i 5800: 63 75 5c 6c 69 62 0a 21 45 4e 44 49 46 0a 0a 21 cu\lib.!ENDIF..! 5810: 49 46 4e 44 45 46 20 4c 49 42 49 43 55 0a 4c 49 IFNDEF LIBICU.LI 5820: 42 49 43 55 20 3d 20 69 63 75 75 63 2e 6c 69 62 BICU = icuuc.lib 5830: 20 69 63 75 69 6e 2e 6c 69 62 0a 21 45 4e 44 49 icuin.lib.!ENDI 5840: 46 0a 0a 23 20 54 68 69 73 20 69 73 20 74 68 65 F..# This is the 5850: 20 63 6f 6d 6d 61 6e 64 20 74 6f 20 75 73 65 20 command to use 5860: 66 6f 72 20 74 63 6c 73 68 20 2d 20 6e 6f 72 6d for tclsh - norm 5870: 61 6c 6c 79 20 6a 75 73 74 20 22 74 63 6c 73 68 ally just "tclsh 5880: 22 2c 20 62 75 74 20 77 65 20 6d 61 79 0a 23 20 ", but we may.# 5890: 6b 6e 6f 77 20 74 68 65 20 73 70 65 63 69 66 69 know the specifi 58a0: 63 20 76 65 72 73 69 6f 6e 20 77 65 20 77 61 6e c version we wan 58b0: 74 20 74 6f 20 75 73 65 2e 20 20 54 68 69 73 20 t to use. This 58c0: 76 61 72 69 61 62 6c 65 20 28 54 43 4c 53 48 5f variable (TCLSH_ 58d0: 43 4d 44 29 20 6d 61 79 20 62 65 0a 23 20 6f 76 CMD) may be.# ov 58e0: 65 72 72 69 64 64 65 6e 20 76 69 61 20 74 68 65 erridden via the 58f0: 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 70 72 69 environment pri 5900: 6f 72 20 74 6f 20 72 75 6e 6e 69 6e 67 20 6e 6d or to running nm 5910: 61 6b 65 20 69 6e 20 6f 72 64 65 72 20 74 6f 20 ake in order to 5920: 73 65 6c 65 63 74 20 61 0a 23 20 73 70 65 63 69 select a.# speci 5930: 66 69 63 20 54 63 6c 20 73 68 65 6c 6c 20 74 6f fic Tcl shell to 5940: 20 75 73 65 2e 0a 23 0a 21 49 46 4e 44 45 46 20 use..#.!IFNDEF 5950: 54 43 4c 53 48 5f 43 4d 44 0a 54 43 4c 53 48 5f TCLSH_CMD.TCLSH_ 5960: 43 4d 44 20 3d 20 74 63 6c 73 68 0a 21 45 4e 44 CMD = tclsh.!END 5970: 49 46 0a 23 20 3c 3c 2f 6d 61 72 6b 3e 3e 0a 0a IF.# <</mark>>.. 5980: 23 20 43 6f 6d 70 69 6c 65 72 20 6f 70 74 69 6f # Compiler optio 5990: 6e 73 20 6e 65 65 64 65 64 20 66 6f 72 20 70 72 ns needed for pr 59a0: 6f 67 72 61 6d 73 20 74 68 61 74 20 75 73 65 20 ograms that use 59b0: 74 68 65 20 72 65 61 64 6c 69 6e 65 28 29 20 6c the readline() l 59c0: 69 62 72 61 72 79 2e 0a 23 0a 21 49 46 4e 44 45 ibrary..#.!IFNDE 59d0: 46 20 52 45 41 44 4c 49 4e 45 5f 46 4c 41 47 53 F READLINE_FLAGS 59e0: 0a 52 45 41 44 4c 49 4e 45 5f 46 4c 41 47 53 20 .READLINE_FLAGS 59f0: 3d 20 2d 44 48 41 56 45 5f 52 45 41 44 4c 49 4e = -DHAVE_READLIN 5a00: 45 3d 30 0a 21 45 4e 44 49 46 0a 0a 23 20 54 68 E=0.!ENDIF..# Th 5a10: 65 20 6c 69 62 72 61 72 79 20 74 68 61 74 20 70 e library that p 5a20: 72 6f 67 72 61 6d 73 20 75 73 69 6e 67 20 72 65 rograms using re 5a30: 61 64 6c 69 6e 65 28 29 20 6d 75 73 74 20 6c 69 adline() must li 5a40: 6e 6b 20 61 67 61 69 6e 73 74 2e 0a 23 0a 21 49 nk against..#.!I 5a50: 46 4e 44 45 46 20 4c 49 42 52 45 41 44 4c 49 4e FNDEF LIBREADLIN 5a60: 45 0a 4c 49 42 52 45 41 44 4c 49 4e 45 20 3d 0a E.LIBREADLINE =. 5a70: 21 45 4e 44 49 46 0a 0a 23 20 53 68 6f 75 6c 64 !ENDIF..# Should 5a80: 20 74 68 65 20 64 61 74 61 62 61 73 65 20 65 6e the database en 5a90: 67 69 6e 65 20 62 65 20 63 6f 6d 70 69 6c 65 64 gine be compiled 5aa0: 20 74 68 72 65 61 64 73 61 66 65 0a 23 0a 54 43 threadsafe.#.TC 5ab0: 43 20 3d 20 24 28 54 43 43 29 20 2d 44 53 51 4c C =$(TCC) -DSQL
5ac0: 49 54 45 5f 54 48 52 45 41 44 53 41 46 45 3d 31 ITE_THREADSAFE=1
5ad0: 0a 52 43 43 20 3d 20 24 28 52 43 43 29 20 2d 44 .RCC = $(RCC) -D 5ae0: 53 51 4c 49 54 45 5f 54 48 52 45 41 44 53 41 46 SQLITE_THREADSAF 5af0: 45 3d 31 0a 0a 23 20 44 6f 20 74 68 72 65 61 64 E=1..# Do thread 5b00: 73 20 6f 76 65 72 72 69 64 65 20 65 61 63 68 20 s override each 5b10: 6f 74 68 65 72 73 20 6c 6f 63 6b 73 20 62 79 20 others locks by 5b20: 64 65 66 61 75 6c 74 20 28 31 29 2c 20 6f 72 20 default (1), or 5b30: 64 6f 20 77 65 20 74 65 73 74 20 28 2d 31 29 0a do we test (-1). 5b40: 23 0a 54 43 43 20 3d 20 24 28 54 43 43 29 20 2d #.TCC =$(TCC) -
5b50: 44 53 51 4c 49 54 45 5f 54 48 52 45 41 44 5f 4f DSQLITE_THREAD_O
5b60: 56 45 52 52 49 44 45 5f 4c 4f 43 4b 3d 2d 31 0a VERRIDE_LOCK=-1.
5b70: 52 43 43 20 3d 20 24 28 52 43 43 29 20 2d 44 53 RCC = $(RCC) -DS 5b80: 51 4c 49 54 45 5f 54 48 52 45 41 44 5f 4f 56 45 QLITE_THREAD_OVE 5b90: 52 52 49 44 45 5f 4c 4f 43 4b 3d 2d 31 0a 0a 23 RRIDE_LOCK=-1..# 5ba0: 20 41 6e 79 20 74 61 72 67 65 74 20 6c 69 62 72 Any target libr 5bb0: 61 72 69 65 73 20 77 68 69 63 68 20 6c 69 62 73 aries which libs 5bc0: 71 6c 69 74 65 20 6d 75 73 74 20 62 65 20 6c 69 qlite must be li 5bd0: 6e 6b 65 64 20 61 67 61 69 6e 73 74 0a 23 0a 21 nked against.#.! 5be0: 49 46 4e 44 45 46 20 54 4c 49 42 53 0a 54 4c 49 IFNDEF TLIBS.TLI 5bf0: 42 53 20 3d 0a 21 45 4e 44 49 46 0a 0a 23 20 46 BS =.!ENDIF..# F 5c00: 6c 61 67 73 20 63 6f 6e 74 72 6f 6c 6c 69 6e 67 lags controlling 5c10: 20 75 73 65 20 6f 66 20 74 68 65 20 69 6e 20 6d use of the in m 5c20: 65 6d 6f 72 79 20 62 74 72 65 65 20 69 6d 70 6c emory btree impl 5c30: 65 6d 65 6e 74 61 74 69 6f 6e 0a 23 0a 23 20 53 ementation.#.# S 5c40: 51 4c 49 54 45 5f 54 45 4d 50 5f 53 54 4f 52 45 QLITE_TEMP_STORE 5c50: 20 69 73 20 30 20 74 6f 20 66 6f 72 63 65 20 74 is 0 to force t 5c60: 65 6d 70 6f 72 61 72 79 20 74 61 62 6c 65 73 20 emporary tables 5c70: 74 6f 20 62 65 20 69 6e 20 61 20 66 69 6c 65 2c to be in a file, 5c80: 20 31 20 74 6f 0a 23 20 64 65 66 61 75 6c 74 20 1 to.# default 5c90: 74 6f 20 66 69 6c 65 2c 20 32 20 74 6f 20 64 65 to file, 2 to de 5ca0: 66 61 75 6c 74 20 74 6f 20 6d 65 6d 6f 72 79 2c fault to memory, 5cb0: 20 61 6e 64 20 33 20 74 6f 20 66 6f 72 63 65 20 and 3 to force 5cc0: 74 65 6d 70 6f 72 61 72 79 0a 23 20 74 61 62 6c temporary.# tabl 5cd0: 65 73 20 74 6f 20 61 6c 77 61 79 73 20 62 65 20 es to always be 5ce0: 69 6e 20 6d 65 6d 6f 72 79 2e 0a 23 0a 54 43 43 in memory..#.TCC 5cf0: 20 3d 20 24 28 54 43 43 29 20 2d 44 53 51 4c 49 =$(TCC) -DSQLI
5d00: 54 45 5f 54 45 4d 50 5f 53 54 4f 52 45 3d 31 0a TE_TEMP_STORE=1.
5d10: 52 43 43 20 3d 20 24 28 52 43 43 29 20 2d 44 53 RCC = $(RCC) -DS 5d20: 51 4c 49 54 45 5f 54 45 4d 50 5f 53 54 4f 52 45 QLITE_TEMP_STORE 5d30: 3d 31 0a 0a 23 20 45 6e 61 62 6c 65 2f 64 69 73 =1..# Enable/dis 5d40: 61 62 6c 65 20 6c 6f 61 64 61 62 6c 65 20 65 78 able loadable ex 5d50: 74 65 6e 73 69 6f 6e 73 2c 20 61 6e 64 20 6f 74 tensions, and ot 5d60: 68 65 72 20 6f 70 74 69 6f 6e 61 6c 20 66 65 61 her optional fea 5d70: 74 75 72 65 73 0a 23 20 62 61 73 65 64 20 6f 6e tures.# based on 5d80: 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 2e 20 configuration. 5d90: 28 2d 44 53 51 4c 49 54 45 5f 4f 4d 49 54 2a 2c (-DSQLITE_OMIT*, 5da0: 20 2d 44 53 51 4c 49 54 45 5f 45 4e 41 42 4c 45 -DSQLITE_ENABLE 5db0: 2a 29 2e 0a 23 20 54 68 65 20 73 61 6d 65 20 73 *)..# The same s 5dc0: 65 74 20 6f 66 20 4f 4d 49 54 20 61 6e 64 20 45 et of OMIT and E 5dd0: 4e 41 42 4c 45 20 66 6c 61 67 73 20 73 68 6f 75 NABLE flags shou 5de0: 6c 64 20 62 65 20 70 61 73 73 65 64 20 74 6f 20 ld be passed to 5df0: 74 68 65 0a 23 20 4c 45 4d 4f 4e 20 70 61 72 73 the.# LEMON pars 5e00: 65 72 20 67 65 6e 65 72 61 74 6f 72 20 61 6e 64 er generator and 5e10: 20 74 68 65 20 6d 6b 6b 65 79 77 6f 72 64 68 61 the mkkeywordha 5e20: 73 68 20 74 6f 6f 6c 20 61 73 20 77 65 6c 6c 2e sh tool as well. 5e30: 0a 0a 23 20 54 68 65 73 65 20 61 72 65 20 74 68 ..# These are th 5e40: 65 20 72 65 71 75 69 72 65 64 20 53 51 4c 69 74 e required SQLit 5e50: 65 20 63 6f 6d 70 69 6c 61 74 69 6f 6e 20 6f 70 e compilation op 5e60: 74 69 6f 6e 73 20 75 73 65 64 20 77 68 65 6e 20 tions used when 5e70: 63 6f 6d 70 69 6c 69 6e 67 20 66 6f 72 0a 23 20 compiling for.# 5e80: 74 68 65 20 57 69 6e 64 6f 77 73 20 70 6c 61 74 the Windows plat 5e90: 66 6f 72 6d 2e 0a 23 0a 52 45 51 5f 46 45 41 54 form..#.REQ_FEAT 5ea0: 55 52 45 5f 46 4c 41 47 53 20 3d 20 24 28 52 45 URE_FLAGS =$(RE
5eb0: 51 5f 46 45 41 54 55 52 45 5f 46 4c 41 47 53 29 Q_FEATURE_FLAGS)
5ec0: 20 2d 44 53 51 4c 49 54 45 5f 4d 41 58 5f 54 52 -DSQLITE_MAX_TR
5ed0: 49 47 47 45 52 5f 44 45 50 54 48 3d 31 30 30 0a IGGER_DEPTH=100.
5ee0: 0a 23 20 49 66 20 77 65 20 61 72 65 20 6c 69 6e .# If we are lin
5ef0: 6b 69 6e 67 20 74 6f 20 74 68 65 20 52 50 43 52 king to the RPCR
5f00: 54 34 20 6c 69 62 72 61 72 79 2c 20 65 6e 61 62 T4 library, enab
5f10: 6c 65 20 66 65 61 74 75 72 65 73 20 74 68 61 74 le features that
5f20: 20 6e 65 65 64 20 69 74 2e 0a 23 0a 21 49 46 20 need it..#.!IF
5f30: 24 28 55 53 45 5f 52 50 43 52 54 34 5f 4c 49 42 $(USE_RPCRT4_LIB 5f40: 29 21 3d 30 0a 52 45 51 5f 46 45 41 54 55 52 45 )!=0.REQ_FEATURE 5f50: 5f 46 4c 41 47 53 20 3d 20 24 28 52 45 51 5f 46 _FLAGS =$(REQ_F
5f60: 45 41 54 55 52 45 5f 46 4c 41 47 53 29 20 2d 44 EATURE_FLAGS) -D
5f70: 53 51 4c 49 54 45 5f 57 49 4e 33 32 5f 55 53 45 SQLITE_WIN32_USE
5f80: 5f 55 55 49 44 3d 31 0a 21 45 4e 44 49 46 0a 0a _UUID=1.!ENDIF..
5f90: 23 20 41 64 64 20 74 68 65 20 72 65 71 75 69 72 # Add the requir
5fa0: 65 64 20 61 6e 64 20 6f 70 74 69 6f 6e 61 6c 20 ed and optional
5fb0: 53 51 4c 69 74 65 20 63 6f 6d 70 69 6c 61 74 69 SQLite compilati
5fc0: 6f 6e 20 6f 70 74 69 6f 6e 73 20 69 6e 74 6f 20 on options into
5fd0: 74 68 65 20 63 6f 6d 6d 61 6e 64 0a 23 20 6c 69 the command.# li
5fe0: 6e 65 73 20 75 73 65 64 20 74 6f 20 69 6e 76 6f nes used to invo
5ff0: 6b 65 20 74 68 65 20 4d 53 56 43 20 63 6f 64 65 ke the MSVC code
6000: 20 61 6e 64 20 72 65 73 6f 75 72 63 65 20 63 6f and resource co
6010: 6d 70 69 6c 65 72 73 2e 0a 23 0a 54 43 43 20 3d mpilers..#.TCC =
6020: 20 24 28 54 43 43 29 20 24 28 52 45 51 5f 46 45 $(TCC)$(REQ_FE
6030: 41 54 55 52 45 5f 46 4c 41 47 53 29 20 24 28 4f ATURE_FLAGS) $(O 6040: 50 54 5f 46 45 41 54 55 52 45 5f 46 4c 41 47 53 PT_FEATURE_FLAGS 6050: 29 20 24 28 45 58 54 5f 46 45 41 54 55 52 45 5f )$(EXT_FEATURE_
6060: 46 4c 41 47 53 29 0a 52 43 43 20 3d 20 24 28 52 FLAGS).RCC = $(R 6070: 43 43 29 20 24 28 52 45 51 5f 46 45 41 54 55 52 CC)$(REQ_FEATUR
6080: 45 5f 46 4c 41 47 53 29 20 24 28 4f 50 54 5f 46 E_FLAGS) $(OPT_F 6090: 45 41 54 55 52 45 5f 46 4c 41 47 53 29 20 24 28 EATURE_FLAGS)$(
60a0: 45 58 54 5f 46 45 41 54 55 52 45 5f 46 4c 41 47 EXT_FEATURE_FLAG
60b0: 53 29 0a 0a 23 20 41 64 64 20 69 6e 20 61 6e 79 S)..# Add in any
60c0: 20 6f 70 74 69 6f 6e 61 6c 20 70 61 72 61 6d 65 optional parame
60d0: 74 65 72 73 20 73 70 65 63 69 66 69 65 64 20 6f ters specified o
60e0: 6e 20 74 68 65 20 63 6f 6d 6d 61 6e 65 20 6c 69 n the commane li
60f0: 6e 65 2c 20 65 2e 67 2e 0a 23 20 6e 6d 61 6b 65 ne, e.g..# nmake
6100: 20 2f 66 20 4d 61 6b 65 66 69 6c 65 2e 6d 73 63 /f Makefile.msc
6110: 20 61 6c 6c 20 22 4f 50 54 53 3d 2d 44 53 51 4c all "OPTS=-DSQL
6120: 49 54 45 5f 45 4e 41 42 4c 45 5f 46 4f 4f 3d 31 ITE_ENABLE_FOO=1
6130: 20 2d 44 53 51 4c 49 54 45 5f 4f 4d 49 54 5f 46 -DSQLITE_OMIT_F
6140: 4f 4f 3d 31 22 0a 23 0a 54 43 43 20 3d 20 24 28 OO=1".#.TCC = $( 6150: 54 43 43 29 20 24 28 4f 50 54 53 29 0a 52 43 43 TCC)$(OPTS).RCC
6160: 20 3d 20 24 28 52 43 43 29 20 24 28 4f 50 54 53 = $(RCC)$(OPTS
6170: 29 0a 0a 23 20 49 66 20 63 6f 6d 70 69 6c 69 6e )..# If compilin
6180: 67 20 66 6f 72 20 64 65 62 75 67 67 69 6e 67 2c g for debugging,
6190: 20 61 64 64 20 73 6f 6d 65 20 64 65 66 69 6e 65 add some define
61a0: 73 2e 0a 23 0a 21 49 46 20 24 28 44 45 42 55 47 s..#.!IF $(DEBUG 61b0: 29 3e 31 0a 54 43 43 20 3d 20 24 28 54 43 43 29 )>1.TCC =$(TCC)
61c0: 20 2d 44 5f 44 45 42 55 47 0a 42 43 43 20 3d 20 -D_DEBUG.BCC =
61d0: 24 28 42 43 43 29 20 2d 44 5f 44 45 42 55 47 0a $(BCC) -D_DEBUG. 61e0: 52 43 43 20 3d 20 24 28 52 43 43 29 20 2d 44 5f RCC =$(RCC) -D_
61f0: 44 45 42 55 47 0a 21 45 4e 44 49 46 0a 0a 23 20 DEBUG.!ENDIF..#
6200: 49 66 20 6f 70 74 69 6d 69 7a 61 74 69 6f 6e 73 If optimizations
6210: 20 61 72 65 20 65 6e 61 62 6c 65 64 20 6f 72 20 are enabled or
6220: 64 69 73 61 62 6c 65 64 20 28 65 69 74 68 65 72 disabled (either
6230: 20 69 6d 70 6c 69 63 69 74 6c 79 20 6f 72 0a 23 implicitly or.#
6240: 20 65 78 70 6c 69 63 69 74 6c 79 29 2c 20 61 64 explicitly), ad
6250: 64 20 74 68 65 20 6e 65 63 65 73 73 61 72 79 20 d the necessary
6260: 66 6c 61 67 73 2e 0a 23 0a 21 49 46 20 24 28 44 flags..#.!IF $(D 6270: 45 42 55 47 29 3e 31 20 7c 7c 20 24 28 4f 50 54 EBUG)>1 ||$(OPT
6280: 49 4d 49 5a 41 54 49 4f 4e 53 29 3d 3d 30 0a 54 IMIZATIONS)==0.T
6290: 43 43 20 3d 20 24 28 54 43 43 29 20 2d 4f 64 0a CC = $(TCC) -Od. 62a0: 42 43 43 20 3d 20 24 28 42 43 43 29 20 2d 4f 64 BCC =$(BCC) -Od
62b0: 0a 21 49 46 20 24 28 55 53 45 5f 52 55 4e 54 49 .!IF $(USE_RUNTI 62c0: 4d 45 5f 43 48 45 43 4b 53 29 21 3d 30 0a 54 43 ME_CHECKS)!=0.TC 62d0: 43 20 3d 20 24 28 54 43 43 29 20 2d 52 54 43 31 C =$(TCC) -RTC1
62e0: 0a 42 43 43 20 3d 20 24 28 42 43 43 29 20 2d 52 .BCC = $(BCC) -R 62f0: 54 43 31 0a 21 45 4e 44 49 46 0a 21 45 4c 53 45 TC1.!ENDIF.!ELSE 6300: 49 46 20 24 28 4f 50 54 49 4d 49 5a 41 54 49 4f IF$(OPTIMIZATIO
6310: 4e 53 29 3e 3d 33 0a 54 43 43 20 3d 20 24 28 54 NS)>=3.TCC = $(T 6320: 43 43 29 20 2d 4f 78 0a 42 43 43 20 3d 20 24 28 CC) -Ox.BCC =$(
6330: 42 43 43 29 20 2d 4f 78 0a 21 45 4c 53 45 49 46 BCC) -Ox.!ELSEIF
6340: 20 24 28 4f 50 54 49 4d 49 5a 41 54 49 4f 4e 53 $(OPTIMIZATIONS 6350: 29 3d 3d 32 0a 54 43 43 20 3d 20 24 28 54 43 43 )==2.TCC =$(TCC
6360: 29 20 2d 4f 32 0a 42 43 43 20 3d 20 24 28 42 43 ) -O2.BCC = $(BC 6370: 43 29 20 2d 4f 32 0a 21 45 4c 53 45 49 46 20 24 C) -O2.!ELSEIF$
6380: 28 4f 50 54 49 4d 49 5a 41 54 49 4f 4e 53 29 3d (OPTIMIZATIONS)=
6390: 3d 31 0a 54 43 43 20 3d 20 24 28 54 43 43 29 20 =1.TCC = $(TCC) 63a0: 2d 4f 31 0a 42 43 43 20 3d 20 24 28 42 43 43 29 -O1.BCC =$(BCC)
63b0: 20 2d 4f 31 0a 21 45 4e 44 49 46 0a 0a 23 20 49 -O1.!ENDIF..# I
63c0: 66 20 73 79 6d 62 6f 6c 73 20 61 72 65 20 65 6e f symbols are en
63d0: 61 62 6c 65 64 20 28 6f 72 20 63 6f 6d 70 69 6c abled (or compil
63e0: 69 6e 67 20 66 6f 72 20 64 65 62 75 67 67 69 6e ing for debuggin
63f0: 67 29 2c 20 65 6e 61 62 6c 65 20 50 44 42 73 2e g), enable PDBs.
6400: 0a 23 0a 21 49 46 20 24 28 44 45 42 55 47 29 3e .#.!IF $(DEBUG)> 6410: 31 20 7c 7c 20 24 28 53 59 4d 42 4f 4c 53 29 21 1 ||$(SYMBOLS)!
6420: 3d 30 0a 54 43 43 20 3d 20 24 28 54 43 43 29 20 =0.TCC = $(TCC) 6430: 2d 5a 69 0a 42 43 43 20 3d 20 24 28 42 43 43 29 -Zi.BCC =$(BCC)
6440: 20 2d 5a 69 0a 21 45 4e 44 49 46 0a 0a 23 20 3c -Zi.!ENDIF..# <
6450: 3c 6d 61 72 6b 3e 3e 0a 23 20 49 66 20 49 43 55 <mark>>.# If ICU
6460: 20 73 75 70 70 6f 72 74 20 69 73 20 65 6e 61 62 support is enab
6470: 6c 65 64 2c 20 61 64 64 20 74 68 65 20 63 6f 6d led, add the com
6480: 70 69 6c 65 72 20 6f 70 74 69 6f 6e 73 20 66 6f piler options fo
6490: 72 20 69 74 2e 0a 23 0a 21 49 46 20 24 28 55 53 r it..#.!IF $(US 64a0: 45 5f 49 43 55 29 21 3d 30 0a 54 43 43 20 3d 20 E_ICU)!=0.TCC = 64b0: 24 28 54 43 43 29 20 2d 44 53 51 4c 49 54 45 5f$(TCC) -DSQLITE_
64c0: 45 4e 41 42 4c 45 5f 49 43 55 3d 31 0a 52 43 43 ENABLE_ICU=1.RCC
64d0: 20 3d 20 24 28 52 43 43 29 20 2d 44 53 51 4c 49 = $(RCC) -DSQLI 64e0: 54 45 5f 45 4e 41 42 4c 45 5f 49 43 55 3d 31 0a TE_ENABLE_ICU=1. 64f0: 54 43 43 20 3d 20 24 28 54 43 43 29 20 2d 49 24 TCC =$(TCC) -I$6500: 28 54 4f 50 29 5c 65 78 74 5c 69 63 75 0a 52 43 (TOP)\ext\icu.RC 6510: 43 20 3d 20 24 28 52 43 43 29 20 2d 49 24 28 54 C =$(RCC) -I$(T 6520: 4f 50 29 5c 65 78 74 5c 69 63 75 0a 54 43 43 20 OP)\ext\icu.TCC 6530: 3d 20 24 28 54 43 43 29 20 2d 49 24 28 49 43 55 =$(TCC) -I$(ICU 6540: 49 4e 43 44 49 52 29 0a 52 43 43 20 3d 20 24 28 INCDIR).RCC =$(
6550: 52 43 43 29 20 2d 49 24 28 49 43 55 49 4e 43 44 RCC) -I$(ICUINCD 6560: 49 52 29 0a 21 45 4e 44 49 46 0a 23 20 3c 3c 2f IR).!ENDIF.# <</ 6570: 6d 61 72 6b 3e 3e 0a 0a 23 20 43 6f 6d 6d 61 6e mark>>..# Comman 6580: 64 20 6c 69 6e 65 20 70 72 65 66 69 78 65 73 20 d line prefixes 6590: 66 6f 72 20 63 6f 6d 70 69 6c 69 6e 67 20 63 6f for compiling co 65a0: 64 65 2c 20 63 6f 6d 70 69 6c 69 6e 67 20 72 65 de, compiling re 65b0: 73 6f 75 72 63 65 73 2c 0a 23 20 6c 69 6e 6b 69 sources,.# linki 65c0: 6e 67 2c 20 65 74 63 2e 0a 23 0a 4c 54 43 4f 4d ng, etc..#.LTCOM 65d0: 50 49 4c 45 20 3d 20 24 28 54 43 43 29 20 2d 46 PILE =$(TCC) -F
65e0: 6f 24 40 0a 4c 54 52 43 4f 4d 50 49 4c 45 20 3d o$@.LTRCOMPILE = 65f0: 20 24 28 52 43 43 29 20 2d 72 0a 4c 54 4c 49 42$(RCC) -r.LTLIB
6600: 20 3d 20 6c 69 62 2e 65 78 65 0a 4c 54 4c 49 4e = lib.exe.LTLIN
6610: 4b 20 3d 20 24 28 54 43 43 29 20 2d 46 65 24 40 K = $(TCC) -Fe$@
6620: 0a 0a 23 20 49 66 20 72 65 71 75 65 73 74 65 64 ..# If requested
6630: 2c 20 6c 69 6e 6b 20 74 6f 20 74 68 65 20 52 50 , link to the RP
6640: 43 52 54 34 20 6c 69 62 72 61 72 79 2e 0a 23 0a CRT4 library..#.
6650: 21 49 46 20 24 28 55 53 45 5f 52 50 43 52 54 34 !IF $(USE_RPCRT4 6660: 5f 4c 49 42 29 21 3d 30 0a 4c 54 4c 49 4e 4b 20 _LIB)!=0.LTLINK 6670: 3d 20 24 28 4c 54 4c 49 4e 4b 29 20 72 70 63 72 =$(LTLINK) rpcr
6680: 74 34 2e 6c 69 62 0a 21 45 4e 44 49 46 0a 0a 23 t4.lib.!ENDIF..#
6690: 20 49 66 20 61 20 70 6c 61 74 66 6f 72 6d 20 77 If a platform w
66a0: 61 73 20 73 65 74 2c 20 66 6f 72 63 65 20 74 68 as set, force th
66b0: 65 20 6c 69 6e 6b 65 72 20 74 6f 20 74 61 72 67 e linker to targ
66c0: 65 74 20 74 68 61 74 2e 0a 23 20 4e 6f 74 65 20 et that..# Note
66d0: 74 68 61 74 20 74 68 65 20 76 63 76 61 72 73 2a that the vcvars*
66e0: 2e 62 61 74 20 66 61 6d 69 6c 79 20 6f 66 20 62 .bat family of b
66f0: 61 74 63 68 20 66 69 6c 65 73 20 74 79 70 69 63 atch files typic
6700: 61 6c 6c 79 0a 23 20 73 65 74 20 74 68 69 73 20 ally.# set this
6710: 66 6f 72 20 79 6f 75 2e 20 20 4f 74 68 65 72 77 for you. Otherw
6720: 69 73 65 2c 20 74 68 65 20 6c 69 6e 6b 65 72 20 ise, the linker
6730: 77 69 6c 6c 20 61 74 74 65 6d 70 74 0a 23 20 74 will attempt.# t
6740: 6f 20 64 65 64 75 63 65 20 74 68 65 20 62 69 6e o deduce the bin
6750: 61 72 79 20 74 79 70 65 20 62 61 73 65 64 20 6f ary type based o
6760: 6e 20 74 68 65 20 6f 62 6a 65 63 74 20 66 69 6c n the object fil
6770: 65 73 2e 0a 21 49 46 44 45 46 20 50 4c 41 54 46 es..!IFDEF PLATF
6780: 4f 52 4d 0a 4c 54 4c 49 4e 4b 4f 50 54 53 20 3d ORM.LTLINKOPTS =
6790: 20 2f 4e 4f 4c 4f 47 4f 20 2f 4d 41 43 48 49 4e /NOLOGO /MACHIN
67a0: 45 3a 24 28 50 4c 41 54 46 4f 52 4d 29 0a 4c 54 E:$(PLATFORM).LT 67b0: 4c 49 42 4f 50 54 53 20 3d 20 2f 4e 4f 4c 4f 47 LIBOPTS = /NOLOG 67c0: 4f 20 2f 4d 41 43 48 49 4e 45 3a 24 28 50 4c 41 O /MACHINE:$(PLA
67d0: 54 46 4f 52 4d 29 0a 21 45 4c 53 45 0a 4c 54 4c TFORM).!ELSE.LTL
67e0: 49 4e 4b 4f 50 54 53 20 3d 20 2f 4e 4f 4c 4f 47 INKOPTS = /NOLOG
67f0: 4f 0a 4c 54 4c 49 42 4f 50 54 53 20 3d 20 2f 4e O.LTLIBOPTS = /N
6800: 4f 4c 4f 47 4f 0a 21 45 4e 44 49 46 0a 0a 23 20 OLOGO.!ENDIF..#
6810: 57 68 65 6e 20 63 6f 6d 70 69 6c 69 6e 67 20 66 When compiling f
6820: 6f 72 20 75 73 65 20 69 6e 20 74 68 65 20 57 69 or use in the Wi
6830: 6e 52 54 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 2c nRT environment,
6840: 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 0a 23 the following.#
6850: 20 6c 69 6e 6b 65 72 20 6f 70 74 69 6f 6e 20 6d linker option m
6860: 75 73 74 20 62 65 20 75 73 65 64 20 74 6f 20 6d ust be used to m
6870: 61 72 6b 20 74 68 65 20 65 78 65 63 75 74 61 62 ark the executab
6880: 6c 65 20 61 73 20 72 75 6e 6e 61 62 6c 65 0a 23 le as runnable.#
6890: 20 6f 6e 6c 79 20 69 6e 20 74 68 65 20 63 6f 6e only in the con
68a0: 74 65 78 74 20 6f 66 20 61 6e 20 61 70 70 6c 69 text of an appli
68b0: 63 61 74 69 6f 6e 20 63 6f 6e 74 61 69 6e 65 72 cation container
68c0: 2e 0a 23 0a 21 49 46 20 24 28 46 4f 52 5f 57 49 ..#.!IF $(FOR_WI 68d0: 4e 52 54 29 21 3d 30 0a 4c 54 4c 49 4e 4b 4f 50 NRT)!=0.LTLINKOP 68e0: 54 53 20 3d 20 24 28 4c 54 4c 49 4e 4b 4f 50 54 TS =$(LTLINKOPT
68f0: 53 29 20 2f 41 50 50 43 4f 4e 54 41 49 4e 45 52 S) /APPCONTAINER
6900: 0a 21 49 46 20 22 24 28 56 49 53 55 41 4c 53 54 .!IF "$(VISUALST 6910: 55 44 49 4f 56 45 52 53 49 4f 4e 29 22 3d 3d 22 UDIOVERSION)"==" 6920: 31 32 2e 30 22 20 7c 7c 20 22 24 28 56 49 53 55 12.0" || "$(VISU
6930: 41 4c 53 54 55 44 49 4f 56 45 52 53 49 4f 4e 29 ALSTUDIOVERSION)
6940: 22 3d 3d 22 31 34 2e 30 22 0a 21 49 46 4e 44 45 "=="14.0".!IFNDE
6950: 46 20 53 54 4f 52 45 4c 49 42 50 41 54 48 0a 21 F STORELIBPATH.!
6960: 49 46 20 22 24 28 50 4c 41 54 46 4f 52 4d 29 22 IF "$(PLATFORM)" 6970: 3d 3d 22 78 38 36 22 0a 53 54 4f 52 45 4c 49 42 =="x86".STORELIB 6980: 50 41 54 48 20 3d 20 24 28 43 52 54 4c 49 42 50 PATH =$(CRTLIBP
6990: 41 54 48 29 5c 73 74 6f 72 65 0a 21 45 4c 53 45 ATH)\store.!ELSE
69a0: 49 46 20 22 24 28 50 4c 41 54 46 4f 52 4d 29 22 IF "$(PLATFORM)" 69b0: 3d 3d 22 78 36 34 22 0a 53 54 4f 52 45 4c 49 42 =="x64".STORELIB 69c0: 50 41 54 48 20 3d 20 24 28 43 52 54 4c 49 42 50 PATH =$(CRTLIBP
69d0: 41 54 48 29 5c 73 74 6f 72 65 5c 61 6d 64 36 34 ATH)\store\amd64
69e0: 0a 21 45 4c 53 45 49 46 20 22 24 28 50 4c 41 54 .!ELSEIF "$(PLAT 69f0: 46 4f 52 4d 29 22 3d 3d 22 41 52 4d 22 0a 53 54 FORM)"=="ARM".ST 6a00: 4f 52 45 4c 49 42 50 41 54 48 20 3d 20 24 28 43 ORELIBPATH =$(C
6a10: 52 54 4c 49 42 50 41 54 48 29 5c 73 74 6f 72 65 RTLIBPATH)\store
6a20: 5c 61 72 6d 0a 21 45 4c 53 45 0a 53 54 4f 52 45 \arm.!ELSE.STORE
6a30: 4c 49 42 50 41 54 48 20 3d 20 24 28 43 52 54 4c LIBPATH = $(CRTL 6a40: 49 42 50 41 54 48 29 5c 73 74 6f 72 65 0a 21 45 IBPATH)\store.!E 6a50: 4e 44 49 46 0a 21 45 4e 44 49 46 0a 53 54 4f 52 NDIF.!ENDIF.STOR 6a60: 45 4c 49 42 50 41 54 48 20 3d 20 24 28 53 54 4f ELIBPATH =$(STO
6a70: 52 45 4c 49 42 50 41 54 48 3a 5c 5c 3d 5c 29 0a RELIBPATH:\\=\).
6a80: 4c 54 4c 49 4e 4b 4f 50 54 53 20 3d 20 24 28 4c LTLINKOPTS = $(L 6a90: 54 4c 49 4e 4b 4f 50 54 53 29 20 22 2f 4c 49 42 TLINKOPTS) "/LIB 6aa0: 50 41 54 48 3a 24 28 53 54 4f 52 45 4c 49 42 50 PATH:$(STORELIBP
6ab0: 41 54 48 29 22 0a 21 45 4e 44 49 46 0a 21 45 4e ATH)".!ENDIF.!EN
6ac0: 44 49 46 0a 0a 23 20 57 68 65 6e 20 63 6f 6d 70 DIF..# When comp
6ad0: 69 6c 69 6e 67 20 66 6f 72 20 57 69 6e 64 6f 77 iling for Window
6ae0: 73 20 50 68 6f 6e 65 20 38 2e 31 2c 20 61 6e 20 s Phone 8.1, an
6af0: 65 78 74 72 61 20 6c 69 62 72 61 72 79 20 70 61 extra library pa
6b00: 74 68 20 69 73 0a 23 20 72 65 71 75 69 72 65 64 th is.# required
6b10: 2e 0a 23 0a 21 49 46 20 24 28 55 53 45 5f 57 50 ..#.!IF $(USE_WP 6b20: 38 31 5f 4f 50 54 53 29 21 3d 30 0a 21 49 46 4e 81_OPTS)!=0.!IFN 6b30: 44 45 46 20 57 50 38 31 4c 49 42 50 41 54 48 0a DEF WP81LIBPATH. 6b40: 21 49 46 20 22 24 28 50 4c 41 54 46 4f 52 4d 29 !IF "$(PLATFORM)
6b50: 22 3d 3d 22 78 38 36 22 0a 57 50 38 31 4c 49 42 "=="x86".WP81LIB
6b60: 50 41 54 48 20 3d 20 24 28 50 52 4f 47 52 41 4d PATH = $(PROGRAM 6b70: 46 49 4c 45 53 5f 58 38 36 29 5c 57 69 6e 64 6f FILES_X86)\Windo 6b80: 77 73 20 50 68 6f 6e 65 20 4b 69 74 73 5c 38 2e ws Phone Kits\8. 6b90: 31 5c 6c 69 62 5c 78 38 36 0a 21 45 4c 53 45 49 1\lib\x86.!ELSEI 6ba0: 46 20 22 24 28 50 4c 41 54 46 4f 52 4d 29 22 3d F "$(PLATFORM)"=
6bb0: 3d 22 41 52 4d 22 0a 57 50 38 31 4c 49 42 50 41 ="ARM".WP81LIBPA
6bc0: 54 48 20 3d 20 24 28 50 52 4f 47 52 41 4d 46 49 TH = $(PROGRAMFI 6bd0: 4c 45 53 5f 58 38 36 29 5c 57 69 6e 64 6f 77 73 LES_X86)\Windows 6be0: 20 50 68 6f 6e 65 20 4b 69 74 73 5c 38 2e 31 5c Phone Kits\8.1\ 6bf0: 6c 69 62 5c 41 52 4d 0a 21 45 4c 53 45 0a 57 50 lib\ARM.!ELSE.WP 6c00: 38 31 4c 49 42 50 41 54 48 20 3d 20 24 28 50 52 81LIBPATH =$(PR
6c10: 4f 47 52 41 4d 46 49 4c 45 53 5f 58 38 36 29 5c OGRAMFILES_X86)\
6c20: 57 69 6e 64 6f 77 73 20 50 68 6f 6e 65 20 4b 69 Windows Phone Ki
6c30: 74 73 5c 38 2e 31 5c 6c 69 62 5c 78 38 36 0a 21 ts\8.1\lib\x86.!
6c40: 45 4e 44 49 46 0a 21 45 4e 44 49 46 0a 21 45 4e ENDIF.!ENDIF.!EN
6c50: 44 49 46 0a 0a 23 20 57 68 65 6e 20 63 6f 6d 70 DIF..# When comp
6c60: 69 6c 69 6e 67 20 66 6f 72 20 57 69 6e 64 6f 77 iling for Window
6c70: 73 20 50 68 6f 6e 65 20 38 2e 31 2c 20 73 6f 6d s Phone 8.1, som
6c80: 65 20 65 78 74 72 61 20 6c 69 6e 6b 65 72 20 6f e extra linker o
6c90: 70 74 69 6f 6e 73 0a 23 20 61 72 65 20 61 6c 73 ptions.# are als
6ca0: 6f 20 72 65 71 75 69 72 65 64 2e 0a 23 0a 21 49 o required..#.!I
6cb0: 46 20 24 28 55 53 45 5f 57 50 38 31 5f 4f 50 54 F $(USE_WP81_OPT 6cc0: 53 29 21 3d 30 0a 21 49 46 44 45 46 20 57 50 38 S)!=0.!IFDEF WP8 6cd0: 31 4c 49 42 50 41 54 48 0a 4c 54 4c 49 4e 4b 4f 1LIBPATH.LTLINKO 6ce0: 50 54 53 20 3d 20 24 28 4c 54 4c 49 4e 4b 4f 50 PTS =$(LTLINKOP
6cf0: 54 53 29 20 22 2f 4c 49 42 50 41 54 48 3a 24 28 TS) "/LIBPATH:$( 6d00: 57 50 38 31 4c 49 42 50 41 54 48 29 22 0a 21 45 WP81LIBPATH)".!E 6d10: 4e 44 49 46 0a 4c 54 4c 49 4e 4b 4f 50 54 53 20 NDIF.LTLINKOPTS 6d20: 3d 20 24 28 4c 54 4c 49 4e 4b 4f 50 54 53 29 20 =$(LTLINKOPTS)
6d30: 2f 44 59 4e 41 4d 49 43 42 41 53 45 0a 4c 54 4c /DYNAMICBASE.LTL
6d40: 49 4e 4b 4f 50 54 53 20 3d 20 24 28 4c 54 4c 49 INKOPTS = $(LTLI 6d50: 4e 4b 4f 50 54 53 29 20 57 69 6e 64 6f 77 73 50 NKOPTS) WindowsP 6d60: 68 6f 6e 65 43 6f 72 65 2e 6c 69 62 20 52 75 6e honeCore.lib Run 6d70: 74 69 6d 65 4f 62 6a 65 63 74 2e 6c 69 62 20 50 timeObject.lib P 6d80: 68 6f 6e 65 41 70 70 4d 6f 64 65 6c 48 6f 73 74 honeAppModelHost 6d90: 2e 6c 69 62 0a 4c 54 4c 49 4e 4b 4f 50 54 53 20 .lib.LTLINKOPTS 6da0: 3d 20 24 28 4c 54 4c 49 4e 4b 4f 50 54 53 29 20 =$(LTLINKOPTS)
6db0: 2f 4e 4f 44 45 46 41 55 4c 54 4c 49 42 3a 6b 65 /NODEFAULTLIB:ke
6dc0: 72 6e 65 6c 33 32 2e 6c 69 62 20 2f 4e 4f 44 45 rnel32.lib /NODE
6dd0: 46 41 55 4c 54 4c 49 42 3a 6f 6c 65 33 32 2e 6c FAULTLIB:ole32.l
6de0: 69 62 0a 21 45 4e 44 49 46 0a 0a 23 20 57 68 65 ib.!ENDIF..# Whe
6df0: 6e 20 63 6f 6d 70 69 6c 69 6e 67 20 66 6f 72 20 n compiling for
6e00: 55 57 50 20 6f 72 20 74 68 65 20 57 69 6e 64 6f UWP or the Windo
6e10: 77 73 20 31 30 20 70 6c 61 74 66 6f 72 6d 2c 20 ws 10 platform,
6e20: 73 6f 6d 65 20 65 78 74 72 61 20 6c 69 6e 6b 65 some extra linke
6e30: 72 0a 23 20 6f 70 74 69 6f 6e 73 20 61 72 65 20 r.# options are
6e40: 61 6c 73 6f 20 72 65 71 75 69 72 65 64 2e 0a 23 also required..#
6e50: 0a 21 49 46 20 24 28 46 4f 52 5f 55 57 50 29 21 .!IF $(FOR_UWP)! 6e60: 3d 30 20 7c 7c 20 24 28 46 4f 52 5f 57 49 4e 31 =0 ||$(FOR_WIN1
6e70: 30 29 21 3d 30 0a 4c 54 4c 49 4e 4b 4f 50 54 53 0)!=0.LTLINKOPTS
6e80: 20 3d 20 24 28 4c 54 4c 49 4e 4b 4f 50 54 53 29 = $(LTLINKOPTS) 6e90: 20 2f 44 59 4e 41 4d 49 43 42 41 53 45 20 2f 4e /DYNAMICBASE /N 6ea0: 4f 44 45 46 41 55 4c 54 4c 49 42 3a 6b 65 72 6e ODEFAULTLIB:kern 6eb0: 65 6c 33 32 2e 6c 69 62 0a 4c 54 4c 49 4e 4b 4f el32.lib.LTLINKO 6ec0: 50 54 53 20 3d 20 24 28 4c 54 4c 49 4e 4b 4f 50 PTS =$(LTLINKOP
6ed0: 54 53 29 20 6d 69 6e 63 6f 72 65 2e 6c 69 62 0a TS) mincore.lib.
6ee0: 21 49 46 44 45 46 20 50 53 44 4b 4c 49 42 50 41 !IFDEF PSDKLIBPA
6ef0: 54 48 0a 4c 54 4c 49 4e 4b 4f 50 54 53 20 3d 20 TH.LTLINKOPTS =
6f00: 24 28 4c 54 4c 49 4e 4b 4f 50 54 53 29 20 22 2f $(LTLINKOPTS) "/ 6f10: 4c 49 42 50 41 54 48 3a 24 28 50 53 44 4b 4c 49 LIBPATH:$(PSDKLI
6f20: 42 50 41 54 48 29 22 0a 21 45 4e 44 49 46 0a 21 BPATH)".!ENDIF.!
6f30: 45 4e 44 49 46 0a 0a 21 49 46 20 24 28 46 4f 52 ENDIF..!IF $(FOR 6f40: 5f 57 49 4e 31 30 29 21 3d 30 0a 4c 54 4c 49 4e _WIN10)!=0.LTLIN 6f50: 4b 4f 50 54 53 20 3d 20 24 28 4c 54 4c 49 4e 4b KOPTS =$(LTLINK
6f60: 4f 50 54 53 29 20 2f 67 75 61 72 64 3a 63 66 20 OPTS) /guard:cf
6f70: 22 2f 4c 49 42 50 41 54 48 3a 24 28 55 43 52 54 "/LIBPATH:$(UCRT 6f80: 4c 49 42 50 41 54 48 29 22 0a 21 49 46 20 24 28 LIBPATH)".!IF$(
6f90: 44 45 42 55 47 29 3e 31 0a 4c 54 4c 49 4e 4b 4f DEBUG)>1.LTLINKO
6fa0: 50 54 53 20 3d 20 24 28 4c 54 4c 49 4e 4b 4f 50 PTS = $(LTLINKOP 6fb0: 54 53 29 20 2f 4e 4f 44 45 46 41 55 4c 54 4c 49 TS) /NODEFAULTLI 6fc0: 42 3a 6c 69 62 75 63 72 74 64 2e 6c 69 62 20 2f B:libucrtd.lib / 6fd0: 44 45 46 41 55 4c 54 4c 49 42 3a 75 63 72 74 64 DEFAULTLIB:ucrtd 6fe0: 2e 6c 69 62 0a 21 45 4c 53 45 0a 4c 54 4c 49 4e .lib.!ELSE.LTLIN 6ff0: 4b 4f 50 54 53 20 3d 20 24 28 4c 54 4c 49 4e 4b KOPTS =$(LTLINK
7000: 4f 50 54 53 29 20 2f 4e 4f 44 45 46 41 55 4c 54 OPTS) /NODEFAULT
7010: 4c 49 42 3a 6c 69 62 75 63 72 74 2e 6c 69 62 20 LIB:libucrt.lib
7020: 2f 44 45 46 41 55 4c 54 4c 49 42 3a 75 63 72 74 /DEFAULTLIB:ucrt
7030: 2e 6c 69 62 0a 21 45 4e 44 49 46 0a 21 45 4e 44 .lib.!ENDIF.!END
7040: 49 46 0a 0a 23 20 49 66 20 65 69 74 68 65 72 20 IF..# If either
7050: 64 65 62 75 67 67 69 6e 67 20 6f 72 20 73 79 6d debugging or sym
7060: 62 6f 6c 73 20 61 72 65 20 65 6e 61 62 6c 65 64 bols are enabled
7070: 2c 20 65 6e 61 62 6c 65 20 50 44 42 73 2e 0a 23 , enable PDBs..#
7080: 0a 21 49 46 20 24 28 44 45 42 55 47 29 3e 31 20 .!IF $(DEBUG)>1 7090: 7c 7c 20 24 28 53 59 4d 42 4f 4c 53 29 21 3d 30 ||$(SYMBOLS)!=0
70a0: 0a 4c 44 46 4c 41 47 53 20 3d 20 2f 44 45 42 55 .LDFLAGS = /DEBU
70b0: 47 20 24 28 4c 44 4f 50 54 53 29 0a 21 45 4c 53 G $(LDOPTS).!ELS 70c0: 45 0a 4c 44 46 4c 41 47 53 20 3d 20 24 28 4c 44 E.LDFLAGS =$(LD
70d0: 4f 50 54 53 29 0a 21 45 4e 44 49 46 0a 0a 23 20 OPTS).!ENDIF..#
70e0: 3c 3c 6d 61 72 6b 3e 3e 0a 23 20 53 74 61 72 74 <<mark>>.# Start
70f0: 20 77 69 74 68 20 74 68 65 20 54 63 6c 20 72 65 with the Tcl re
7100: 6c 61 74 65 64 20 6c 69 6e 6b 65 72 20 6f 70 74 lated linker opt
7110: 69 6f 6e 73 2e 0a 23 0a 21 49 46 20 24 28 4e 4f ions..#.!IF $(NO 7120: 5f 54 43 4c 29 3d 3d 30 0a 4c 54 4c 49 42 50 41 _TCL)==0.LTLIBPA 7130: 54 48 53 20 3d 20 2f 4c 49 42 50 41 54 48 3a 24 THS = /LIBPATH:$
7140: 28 54 43 4c 4c 49 42 44 49 52 29 0a 4c 54 4c 49 (TCLLIBDIR).LTLI
7150: 42 53 20 3d 20 24 28 4c 49 42 54 43 4c 29 0a 21 BS = $(LIBTCL).! 7160: 45 4e 44 49 46 0a 0a 23 20 49 66 20 49 43 55 20 ENDIF..# If ICU 7170: 73 75 70 70 6f 72 74 20 69 73 20 65 6e 61 62 6c support is enabl 7180: 65 64 2c 20 61 64 64 20 74 68 65 20 6c 69 6e 6b ed, add the link 7190: 65 72 20 6f 70 74 69 6f 6e 73 20 66 6f 72 20 69 er options for i 71a0: 74 2e 0a 23 0a 21 49 46 20 24 28 55 53 45 5f 49 t..#.!IF$(USE_I
71b0: 43 55 29 21 3d 30 0a 4c 54 4c 49 42 50 41 54 48 CU)!=0.LTLIBPATH
71c0: 53 20 3d 20 24 28 4c 54 4c 49 42 50 41 54 48 53 S = $(LTLIBPATHS 71d0: 29 20 2f 4c 49 42 50 41 54 48 3a 24 28 49 43 55 ) /LIBPATH:$(ICU
71e0: 4c 49 42 44 49 52 29 0a 4c 54 4c 49 42 53 20 3d LIBDIR).LTLIBS =
71f0: 20 24 28 4c 54 4c 49 42 53 29 20 24 28 4c 49 42 $(LTLIBS)$(LIB
7200: 49 43 55 29 0a 21 45 4e 44 49 46 0a 23 20 3c 3c ICU).!ENDIF.# <<
7210: 2f 6d 61 72 6b 3e 3e 0a 0a 23 20 59 6f 75 20 73 /mark>>..# You s
7220: 68 6f 75 6c 64 20 6e 6f 74 20 68 61 76 65 20 74 hould not have t
7230: 6f 20 63 68 61 6e 67 65 20 61 6e 79 74 68 69 6e o change anythin
7240: 67 20 62 65 6c 6f 77 20 74 68 69 73 20 6c 69 6e g below this lin
7250: 65 0a 23 23 23 23 23 23 23 23 23 23 23 23 23 23 e.##############
7260: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
7270: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
7280: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
7290: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
72a0: 23 0a 0a 23 20 3c 3c 6d 61 72 6b 3e 3e 0a 23 20 #..# <<mark>>.#
72b0: 4f 62 6a 65 63 74 20 66 69 6c 65 73 20 66 6f 72 Object files for
72c0: 20 74 68 65 20 53 51 4c 69 74 65 20 6c 69 62 72 the SQLite libr
72d0: 61 72 79 20 28 6e 6f 6e 2d 61 6d 61 6c 67 61 6d ary (non-amalgam
72e0: 61 74 69 6f 6e 29 2e 0a 23 0a 4c 49 42 4f 42 4a ation)..#.LIBOBJ
72f0: 53 30 20 3d 20 76 64 62 65 2e 6c 6f 20 70 61 72 S0 = vdbe.lo par
7300: 73 65 2e 6c 6f 20 61 6c 74 65 72 2e 6c 6f 20 61 se.lo alter.lo a
7310: 6e 61 6c 79 7a 65 2e 6c 6f 20 61 74 74 61 63 68 nalyze.lo attach
7320: 2e 6c 6f 20 61 75 74 68 2e 6c 6f 20 5c 0a 20 20 .lo auth.lo \.
7330: 20 20 20 20 20 20 20 62 61 63 6b 75 70 2e 6c 6f backup.lo
7340: 20 62 69 74 76 65 63 2e 6c 6f 20 62 74 6d 75 74 bitvec.lo btmut
7350: 65 78 2e 6c 6f 20 62 74 72 65 65 2e 6c 6f 20 62 ex.lo btree.lo b
7360: 75 69 6c 64 2e 6c 6f 20 5c 0a 20 20 20 20 20 20 uild.lo \.
7370: 20 20 20 63 61 6c 6c 62 61 63 6b 2e 6c 6f 20 63 callback.lo c
7380: 6f 6d 70 6c 65 74 65 2e 6c 6f 20 63 74 69 6d 65 omplete.lo ctime
7390: 2e 6c 6f 20 64 61 74 65 2e 6c 6f 20 64 62 73 74 .lo date.lo dbst
73a0: 61 74 2e 6c 6f 20 64 65 6c 65 74 65 2e 6c 6f 20 at.lo delete.lo
73b0: 5c 0a 20 20 20 20 20 20 20 20 20 65 78 70 72 2e \. expr.
73c0: 6c 6f 20 66 61 75 6c 74 2e 6c 6f 20 66 6b 65 79 lo fault.lo fkey
73d0: 2e 6c 6f 20 5c 0a 20 20 20 20 20 20 20 20 20 66 .lo \. f
73e0: 74 73 33 2e 6c 6f 20 66 74 73 33 5f 61 75 78 2e ts3.lo fts3_aux.
73f0: 6c 6f 20 66 74 73 33 5f 65 78 70 72 2e 6c 6f 20 lo fts3_expr.lo
7400: 66 74 73 33 5f 68 61 73 68 2e 6c 6f 20 66 74 73 fts3_hash.lo fts
7410: 33 5f 69 63 75 2e 6c 6f 20 5c 0a 20 20 20 20 20 3_icu.lo \.
7420: 20 20 20 20 66 74 73 33 5f 70 6f 72 74 65 72 2e fts3_porter.
7430: 6c 6f 20 66 74 73 33 5f 73 6e 69 70 70 65 74 2e lo fts3_snippet.
7440: 6c 6f 20 66 74 73 33 5f 74 6f 6b 65 6e 69 7a 65 lo fts3_tokenize
7450: 72 2e 6c 6f 20 66 74 73 33 5f 74 6f 6b 65 6e 69 r.lo fts3_tokeni
7460: 7a 65 72 31 2e 6c 6f 20 5c 0a 20 20 20 20 20 20 zer1.lo \.
7470: 20 20 20 66 74 73 33 5f 74 6f 6b 65 6e 69 7a 65 fts3_tokenize
7480: 5f 76 74 61 62 2e 6c 6f 20 66 74 73 33 5f 75 6e _vtab.lo fts3_un
7490: 69 63 6f 64 65 2e 6c 6f 20 66 74 73 33 5f 75 6e icode.lo fts3_un
74a0: 69 63 6f 64 65 32 2e 6c 6f 20 66 74 73 33 5f 77 icode2.lo fts3_w
74b0: 72 69 74 65 2e 6c 6f 20 5c 0a 20 20 20 20 20 20 rite.lo \.
74c0: 20 20 20 66 74 73 35 2e 6c 6f 20 5c 0a 20 20 20 fts5.lo \.
74d0: 20 20 20 20 20 20 66 75 6e 63 2e 6c 6f 20 67 6c func.lo gl
74e0: 6f 62 61 6c 2e 6c 6f 20 68 61 73 68 2e 6c 6f 20 obal.lo hash.lo
74f0: 5c 0a 20 20 20 20 20 20 20 20 20 69 63 75 2e 6c \. icu.l
7500: 6f 20 69 6e 73 65 72 74 2e 6c 6f 20 6c 65 67 61 o insert.lo lega
7510: 63 79 2e 6c 6f 20 6c 6f 61 64 65 78 74 2e 6c 6f cy.lo loadext.lo
7520: 20 5c 0a 20 20 20 20 20 20 20 20 20 6d 61 69 6e \. main
7530: 2e 6c 6f 20 6d 61 6c 6c 6f 63 2e 6c 6f 20 6d 65 .lo malloc.lo me
7540: 6d 30 2e 6c 6f 20 6d 65 6d 31 2e 6c 6f 20 6d 65 m0.lo mem1.lo me
7550: 6d 32 2e 6c 6f 20 6d 65 6d 33 2e 6c 6f 20 6d 65 m2.lo mem3.lo me
7560: 6d 35 2e 6c 6f 20 5c 0a 20 20 20 20 20 20 20 20 m5.lo \.
7570: 20 6d 65 6d 6a 6f 75 72 6e 61 6c 2e 6c 6f 20 5c memjournal.lo \
7580: 0a 20 20 20 20 20 20 20 20 20 6d 75 74 65 78 2e . mutex.
7590: 6c 6f 20 6d 75 74 65 78 5f 6e 6f 6f 70 2e 6c 6f lo mutex_noop.lo
75a0: 20 6d 75 74 65 78 5f 75 6e 69 78 2e 6c 6f 20 6d mutex_unix.lo m
75b0: 75 74 65 78 5f 77 33 32 2e 6c 6f 20 5c 0a 20 20 utex_w32.lo \.
75c0: 20 20 20 20 20 20 20 6e 6f 74 69 66 79 2e 6c 6f notify.lo
75d0: 20 6f 70 63 6f 64 65 73 2e 6c 6f 20 6f 73 2e 6c opcodes.lo os.l
75e0: 6f 20 6f 73 5f 75 6e 69 78 2e 6c 6f 20 6f 73 5f o os_unix.lo os_
75f0: 77 69 6e 2e 6c 6f 20 5c 0a 20 20 20 20 20 20 20 win.lo \.
7600: 20 20 70 61 67 65 72 2e 6c 6f 20 70 63 61 63 68 pager.lo pcach
7610: 65 2e 6c 6f 20 70 63 61 63 68 65 31 2e 6c 6f 20 e.lo pcache1.lo
7620: 70 72 61 67 6d 61 2e 6c 6f 20 70 72 65 70 61 72 pragma.lo prepar
7630: 65 2e 6c 6f 20 70 72 69 6e 74 66 2e 6c 6f 20 5c e.lo printf.lo \
7640: 0a 20 20 20 20 20 20 20 20 20 72 61 6e 64 6f 6d . random
7650: 2e 6c 6f 20 72 65 73 6f 6c 76 65 2e 6c 6f 20 72 .lo resolve.lo r
7660: 6f 77 73 65 74 2e 6c 6f 20 72 74 72 65 65 2e 6c owset.lo rtree.l
7670: 6f 20 5c 0a 20 20 20 20 20 20 20 20 20 73 71 6c o \. sql
7680: 69 74 65 33 73 65 73 73 69 6f 6e 2e 6c 6f 20 73 ite3session.lo s
7690: 65 6c 65 63 74 2e 6c 6f 20 73 71 6c 69 74 65 33 elect.lo sqlite3
76a0: 72 62 75 2e 6c 6f 20 73 74 61 74 75 73 2e 6c 6f rbu.lo status.lo
76b0: 20 5c 0a 20 20 20 20 20 20 20 20 20 74 61 62 6c \. tabl
76c0: 65 2e 6c 6f 20 74 68 72 65 61 64 73 2e 6c 6f 20 e.lo threads.lo
76d0: 74 6f 6b 65 6e 69 7a 65 2e 6c 6f 20 74 72 65 65 tokenize.lo tree
76e0: 76 69 65 77 2e 6c 6f 20 74 72 69 67 67 65 72 2e view.lo trigger.
76f0: 6c 6f 20 5c 0a 20 20 20 20 20 20 20 20 20 75 70 lo \. up
7700: 64 61 74 65 2e 6c 6f 20 75 74 69 6c 2e 6c 6f 20 date.lo util.lo
7710: 76 61 63 75 75 6d 2e 6c 6f 20 5c 0a 20 20 20 20 vacuum.lo \.
7720: 20 20 20 20 20 76 64 62 65 61 70 69 2e 6c 6f 20 vdbeapi.lo
7730: 76 64 62 65 61 75 78 2e 6c 6f 20 76 64 62 65 62 vdbeaux.lo vdbeb
7740: 6c 6f 62 2e 6c 6f 20 76 64 62 65 6d 65 6d 2e 6c lob.lo vdbemem.l
7750: 6f 20 76 64 62 65 73 6f 72 74 2e 6c 6f 20 5c 0a o vdbesort.lo \.
7760: 20 20 20 20 20 20 20 20 20 76 64 62 65 74 72 61 vdbetra
7770: 63 65 2e 6c 6f 20 77 61 6c 2e 6c 6f 20 77 61 6c ce.lo wal.lo wal
7780: 6b 65 72 2e 6c 6f 20 77 68 65 72 65 2e 6c 6f 20 ker.lo where.lo
7790: 77 68 65 72 65 63 6f 64 65 2e 6c 6f 20 77 68 65 wherecode.lo whe
77a0: 72 65 65 78 70 72 2e 6c 6f 20 5c 0a 20 20 20 20 reexpr.lo \.
77b0: 20 20 20 20 20 75 74 66 2e 6c 6f 20 76 74 61 62 utf.lo vtab
77c0: 2e 6c 6f 0a 23 20 3c 3c 2f 6d 61 72 6b 3e 3e 0a .lo.# <</mark>>.
77d0: 0a 23 20 4f 62 6a 65 63 74 20 66 69 6c 65 73 20 .# Object files
77e0: 66 6f 72 20 74 68 65 20 61 6d 61 6c 67 61 6d 61 for the amalgama
77f0: 74 69 6f 6e 2e 0a 23 0a 4c 49 42 4f 42 4a 53 31 tion..#.LIBOBJS1
7800: 20 3d 20 73 71 6c 69 74 65 33 2e 6c 6f 0a 0a 23 = sqlite3.lo..#
7810: 20 44 65 74 65 72 6d 69 6e 65 20 74 68 65 20 72 Determine the r
7820: 65 61 6c 20 76 61 6c 75 65 20 6f 66 20 4c 49 42 eal value of LIB
7830: 4f 42 4a 20 62 61 73 65 64 20 6f 6e 20 74 68 65 OBJ based on the
7840: 20 27 63 6f 6e 66 69 67 75 72 65 27 20 73 63 72 'configure' scr
7850: 69 70 74 0a 23 0a 23 20 3c 3c 6d 61 72 6b 3e 3e ipt.#.# <<mark>>
7860: 0a 21 49 46 20 24 28 55 53 45 5f 41 4d 41 4c 47 .!IF $(USE_AMALG 7870: 41 4d 41 54 49 4f 4e 29 3d 3d 30 0a 4c 49 42 4f AMATION)==0.LIBO 7880: 42 4a 20 3d 20 24 28 4c 49 42 4f 42 4a 53 30 29 BJ =$(LIBOBJS0)
7890: 0a 21 45 4c 53 45 0a 23 20 3c 3c 2f 6d 61 72 6b .!ELSE.# <</mark
78a0: 3e 3e 0a 4c 49 42 4f 42 4a 20 3d 20 24 28 4c 49 >>.LIBOBJ = $(LI 78b0: 42 4f 42 4a 53 31 29 0a 23 20 3c 3c 6d 61 72 6b BOBJS1).# <<mark 78c0: 3e 3e 0a 21 45 4e 44 49 46 0a 23 20 3c 3c 2f 6d >>.!ENDIF.# <</m 78d0: 61 72 6b 3e 3e 0a 0a 23 20 44 65 74 65 72 6d 69 ark>>..# Determi 78e0: 6e 65 20 69 66 20 65 6d 62 65 64 64 65 64 20 72 ne if embedded r 78f0: 65 73 6f 75 72 63 65 20 63 6f 6d 70 69 6c 61 74 esource compilat 7900: 69 6f 6e 20 61 6e 64 20 75 73 61 67 65 20 61 72 ion and usage ar 7910: 65 20 65 6e 61 62 6c 65 64 2e 0a 23 0a 21 49 46 e enabled..#.!IF 7920: 20 24 28 55 53 45 5f 52 43 29 21 3d 30 0a 4c 49$(USE_RC)!=0.LI
7930: 42 52 45 53 4f 42 4a 53 20 3d 20 73 71 6c 69 74 BRESOBJS = sqlit
7940: 65 33 72 65 73 2e 6c 6f 0a 21 45 4c 53 45 0a 4c e3res.lo.!ELSE.L
7950: 49 42 52 45 53 4f 42 4a 53 20 3d 0a 21 45 4e 44 IBRESOBJS =.!END
7960: 49 46 0a 0a 23 20 3c 3c 6d 61 72 6b 3e 3e 0a 23 IF..# <<mark>>.#
7970: 20 43 6f 72 65 20 73 6f 75 72 63 65 20 63 6f 64 Core source cod
7980: 65 20 66 69 6c 65 73 2c 20 70 61 72 74 20 31 2e e files, part 1.
7990: 0a 23 0a 53 52 43 30 30 20 3d 20 5c 0a 20 20 24 .#.SRC00 = \. $79a0: 28 54 4f 50 29 5c 73 72 63 5c 61 6c 74 65 72 2e (TOP)\src\alter. 79b0: 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 c \.$(TOP)\src
79c0: 5c 61 6e 61 6c 79 7a 65 2e 63 20 5c 0a 20 20 24 \analyze.c \. $79d0: 28 54 4f 50 29 5c 73 72 63 5c 61 74 74 61 63 68 (TOP)\src\attach 79e0: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 .c \.$(TOP)\sr
79f0: 63 5c 61 75 74 68 2e 63 20 5c 0a 20 20 24 28 54 c\auth.c \. $(T 7a00: 4f 50 29 5c 73 72 63 5c 62 61 63 6b 75 70 2e 63 OP)\src\backup.c 7a10: 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c \.$(TOP)\src\
7a20: 62 69 74 76 65 63 2e 63 20 5c 0a 20 20 24 28 54 bitvec.c \. $(T 7a30: 4f 50 29 5c 73 72 63 5c 62 74 6d 75 74 65 78 2e OP)\src\btmutex. 7a40: 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 c \.$(TOP)\src
7a50: 5c 62 74 72 65 65 2e 63 20 5c 0a 20 20 24 28 54 \btree.c \. $(T 7a60: 4f 50 29 5c 73 72 63 5c 62 75 69 6c 64 2e 63 20 OP)\src\build.c 7a70: 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 63 \.$(TOP)\src\c
7a80: 61 6c 6c 62 61 63 6b 2e 63 20 5c 0a 20 20 24 28 allback.c \. $( 7a90: 54 4f 50 29 5c 73 72 63 5c 63 6f 6d 70 6c 65 74 TOP)\src\complet 7aa0: 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 e.c \.$(TOP)\s
7ab0: 72 63 5c 63 74 69 6d 65 2e 63 20 5c 0a 20 20 24 rc\ctime.c \. $7ac0: 28 54 4f 50 29 5c 73 72 63 5c 64 61 74 65 2e 63 (TOP)\src\date.c 7ad0: 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c \.$(TOP)\src\
7ae0: 64 62 73 74 61 74 2e 63 20 5c 0a 20 20 24 28 54 dbstat.c \. $(T 7af0: 4f 50 29 5c 73 72 63 5c 64 65 6c 65 74 65 2e 63 OP)\src\delete.c 7b00: 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c \.$(TOP)\src\
7b10: 65 78 70 72 2e 63 20 5c 0a 20 20 24 28 54 4f 50 expr.c \. $(TOP 7b20: 29 5c 73 72 63 5c 66 61 75 6c 74 2e 63 20 5c 0a )\src\fault.c \. 7b30: 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 66 6b 65$(TOP)\src\fke
7b40: 79 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 y.c \. $(TOP)\s 7b50: 72 63 5c 66 75 6e 63 2e 63 20 5c 0a 20 20 24 28 rc\func.c \.$(
7b60: 54 4f 50 29 5c 73 72 63 5c 67 6c 6f 62 61 6c 2e TOP)\src\global.
7b70: 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 c \. $(TOP)\src 7b80: 5c 68 61 73 68 2e 63 20 5c 0a 20 20 24 28 54 4f \hash.c \.$(TO
7b90: 50 29 5c 73 72 63 5c 69 6e 73 65 72 74 2e 63 20 P)\src\insert.c
7ba0: 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 6c \. $(TOP)\src\l 7bb0: 65 67 61 63 79 2e 63 20 5c 0a 20 20 24 28 54 4f egacy.c \.$(TO
7bc0: 50 29 5c 73 72 63 5c 6c 6f 61 64 65 78 74 2e 63 P)\src\loadext.c
7bd0: 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c \. $(TOP)\src\ 7be0: 6d 61 69 6e 2e 63 20 5c 0a 20 20 24 28 54 4f 50 main.c \.$(TOP
7bf0: 29 5c 73 72 63 5c 6d 61 6c 6c 6f 63 2e 63 20 5c )\src\malloc.c \
7c00: 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 6d 65 . $(TOP)\src\me 7c10: 6d 30 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c m0.c \.$(TOP)\
7c20: 73 72 63 5c 6d 65 6d 31 2e 63 20 5c 0a 20 20 24 src\mem1.c \. $7c30: 28 54 4f 50 29 5c 73 72 63 5c 6d 65 6d 32 2e 63 (TOP)\src\mem2.c 7c40: 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c \.$(TOP)\src\
7c50: 6d 65 6d 33 2e 63 20 5c 0a 20 20 24 28 54 4f 50 mem3.c \. $(TOP 7c60: 29 5c 73 72 63 5c 6d 65 6d 35 2e 63 20 5c 0a 20 )\src\mem5.c \. 7c70: 20 24 28 54 4f 50 29 5c 73 72 63 5c 6d 65 6d 6a$(TOP)\src\memj
7c80: 6f 75 72 6e 61 6c 2e 63 20 5c 0a 20 20 24 28 54 ournal.c \. $(T 7c90: 4f 50 29 5c 73 72 63 5c 6d 75 74 65 78 2e 63 20 OP)\src\mutex.c 7ca0: 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 6d \.$(TOP)\src\m
7cb0: 75 74 65 78 5f 6e 6f 6f 70 2e 63 20 5c 0a 20 20 utex_noop.c \.
7cc0: 24 28 54 4f 50 29 5c 73 72 63 5c 6d 75 74 65 78 $(TOP)\src\mutex 7cd0: 5f 75 6e 69 78 2e 63 20 5c 0a 20 20 24 28 54 4f _unix.c \.$(TO
7ce0: 50 29 5c 73 72 63 5c 6d 75 74 65 78 5f 77 33 32 P)\src\mutex_w32
7cf0: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 .c \. $(TOP)\sr 7d00: 63 5c 6e 6f 74 69 66 79 2e 63 20 5c 0a 20 20 24 c\notify.c \.$
7d10: 28 54 4f 50 29 5c 73 72 63 5c 6f 73 2e 63 20 5c (TOP)\src\os.c \
7d20: 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 6f 73 . $(TOP)\src\os 7d30: 5f 75 6e 69 78 2e 63 20 5c 0a 20 20 24 28 54 4f _unix.c \.$(TO
7d40: 50 29 5c 73 72 63 5c 6f 73 5f 77 69 6e 2e 63 0a P)\src\os_win.c.
7d50: 0a 23 20 43 6f 72 65 20 73 6f 75 72 63 65 20 63 .# Core source c
7d60: 6f 64 65 20 66 69 6c 65 73 2c 20 70 61 72 74 20 ode files, part
7d70: 32 2e 0a 23 0a 53 52 43 30 31 20 3d 20 5c 0a 20 2..#.SRC01 = \.
7d80: 20 24 28 54 4f 50 29 5c 73 72 63 5c 70 61 67 65 $(TOP)\src\page 7d90: 72 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 r.c \.$(TOP)\s
7da0: 72 63 5c 70 63 61 63 68 65 2e 63 20 5c 0a 20 20 rc\pcache.c \.
7db0: 24 28 54 4f 50 29 5c 73 72 63 5c 70 63 61 63 68 $(TOP)\src\pcach 7dc0: 65 31 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c e1.c \.$(TOP)\
7dd0: 73 72 63 5c 70 72 61 67 6d 61 2e 63 20 5c 0a 20 src\pragma.c \.
7de0: 20 24 28 54 4f 50 29 5c 73 72 63 5c 70 72 65 70 $(TOP)\src\prep 7df0: 61 72 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 are.c \.$(TOP)
7e00: 5c 73 72 63 5c 70 72 69 6e 74 66 2e 63 20 5c 0a \src\printf.c \.
7e10: 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 72 61 6e $(TOP)\src\ran 7e20: 64 6f 6d 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 dom.c \.$(TOP)
7e30: 5c 73 72 63 5c 72 65 73 6f 6c 76 65 2e 63 20 5c \src\resolve.c \
7e40: 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 72 6f . $(TOP)\src\ro 7e50: 77 73 65 74 2e 63 20 5c 0a 20 20 24 28 54 4f 50 wset.c \.$(TOP
7e60: 29 5c 73 72 63 5c 73 65 6c 65 63 74 2e 63 20 5c )\src\select.c \
7e70: 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 73 74 . $(TOP)\src\st 7e80: 61 74 75 73 2e 63 20 5c 0a 20 20 24 28 54 4f 50 atus.c \.$(TOP
7e90: 29 5c 73 72 63 5c 74 61 62 6c 65 2e 63 20 5c 0a )\src\table.c \.
7ea0: 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 74 68 72 $(TOP)\src\thr 7eb0: 65 61 64 73 2e 63 20 5c 0a 20 20 24 28 54 4f 50 eads.c \.$(TOP
7ec0: 29 5c 73 72 63 5c 74 63 6c 73 71 6c 69 74 65 2e )\src\tclsqlite.
7ed0: 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 c \. $(TOP)\src 7ee0: 5c 74 6f 6b 65 6e 69 7a 65 2e 63 20 5c 0a 20 20 \tokenize.c \. 7ef0: 24 28 54 4f 50 29 5c 73 72 63 5c 74 72 65 65 76$(TOP)\src\treev
7f00: 69 65 77 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 iew.c \. $(TOP) 7f10: 5c 73 72 63 5c 74 72 69 67 67 65 72 2e 63 20 5c \src\trigger.c \ 7f20: 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 75 74 .$(TOP)\src\ut
7f30: 66 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 f.c \. $(TOP)\s 7f40: 72 63 5c 75 70 64 61 74 65 2e 63 20 5c 0a 20 20 rc\update.c \. 7f50: 24 28 54 4f 50 29 5c 73 72 63 5c 75 74 69 6c 2e$(TOP)\src\util.
7f60: 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 c \. $(TOP)\src 7f70: 5c 76 61 63 75 75 6d 2e 63 20 5c 0a 20 20 24 28 \vacuum.c \.$(
7f80: 54 4f 50 29 5c 73 72 63 5c 76 64 62 65 2e 63 20 TOP)\src\vdbe.c
7f90: 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 76 \. $(TOP)\src\v 7fa0: 64 62 65 61 70 69 2e 63 20 5c 0a 20 20 24 28 54 dbeapi.c \.$(T
7fb0: 4f 50 29 5c 73 72 63 5c 76 64 62 65 61 75 78 2e OP)\src\vdbeaux.
7fc0: 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 c \. $(TOP)\src 7fd0: 5c 76 64 62 65 62 6c 6f 62 2e 63 20 5c 0a 20 20 \vdbeblob.c \. 7fe0: 24 28 54 4f 50 29 5c 73 72 63 5c 76 64 62 65 6d$(TOP)\src\vdbem
7ff0: 65 6d 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c em.c \. $(TOP)\ 8000: 73 72 63 5c 76 64 62 65 73 6f 72 74 2e 63 20 5c src\vdbesort.c \ 8010: 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 76 64 .$(TOP)\src\vd
8020: 62 65 74 72 61 63 65 2e 63 20 5c 0a 20 20 24 28 betrace.c \. $( 8030: 54 4f 50 29 5c 73 72 63 5c 76 74 61 62 2e 63 20 TOP)\src\vtab.c 8040: 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 77 \.$(TOP)\src\w
8050: 61 6c 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c al.c \. $(TOP)\ 8060: 73 72 63 5c 77 61 6c 6b 65 72 2e 63 20 5c 0a 20 src\walker.c \. 8070: 20 24 28 54 4f 50 29 5c 73 72 63 5c 77 68 65 72$(TOP)\src\wher
8080: 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 e.c \. $(TOP)\s 8090: 72 63 5c 77 68 65 72 65 63 6f 64 65 2e 63 20 5c rc\wherecode.c \ 80a0: 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 77 68 .$(TOP)\src\wh
80b0: 65 72 65 65 78 70 72 2e 63 0a 0a 23 20 53 68 65 ereexpr.c..# She
80c0: 6c 6c 20 73 6f 75 72 63 65 20 63 6f 64 65 20 66 ll source code f
80d0: 69 6c 65 73 2e 0a 23 0a 53 52 43 30 32 20 3d 20 iles..#.SRC02 =
80e0: 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 73 \. $(TOP)\src\s 80f0: 68 65 6c 6c 2e 63 0a 0a 23 20 43 6f 72 65 20 6d hell.c..# Core m 8100: 69 73 63 65 6c 6c 61 6e 65 6f 75 73 20 66 69 6c iscellaneous fil 8110: 65 73 2e 0a 23 0a 53 52 43 30 33 20 3d 20 5c 0a es..#.SRC03 = \. 8120: 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 70 61 72$(TOP)\src\par
8130: 73 65 2e 79 0a 0a 23 20 43 6f 72 65 20 68 65 61 se.y..# Core hea
8140: 64 65 72 20 66 69 6c 65 73 2c 20 70 61 72 74 20 der files, part
8150: 31 2e 0a 23 0a 53 52 43 30 34 20 3d 20 5c 0a 20 1..#.SRC04 = \.
8160: 20 24 28 54 4f 50 29 5c 73 72 63 5c 62 74 72 65 $(TOP)\src\btre 8170: 65 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 e.h \.$(TOP)\s
8180: 72 63 5c 62 74 72 65 65 49 6e 74 2e 68 20 5c 0a rc\btreeInt.h \.
8190: 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 68 61 73 $(TOP)\src\has 81a0: 68 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 h.h \.$(TOP)\s
81b0: 72 63 5c 68 77 74 69 6d 65 2e 68 20 5c 0a 20 20 rc\hwtime.h \.
81c0: 24 28 54 4f 50 29 5c 73 72 63 5c 6d 73 76 63 2e $(TOP)\src\msvc. 81d0: 68 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 h \.$(TOP)\src
81e0: 5c 6d 75 74 65 78 2e 68 20 5c 0a 20 20 24 28 54 \mutex.h \. $(T 81f0: 4f 50 29 5c 73 72 63 5c 6f 73 2e 68 20 5c 0a 20 OP)\src\os.h \. 8200: 20 24 28 54 4f 50 29 5c 73 72 63 5c 6f 73 5f 63$(TOP)\src\os_c
8210: 6f 6d 6d 6f 6e 2e 68 20 5c 0a 20 20 24 28 54 4f ommon.h \. $(TO 8220: 50 29 5c 73 72 63 5c 6f 73 5f 73 65 74 75 70 2e P)\src\os_setup. 8230: 68 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 h \.$(TOP)\src
8240: 5c 6f 73 5f 77 69 6e 2e 68 0a 0a 23 20 43 6f 72 \os_win.h..# Cor
8250: 65 20 68 65 61 64 65 72 20 66 69 6c 65 73 2c 20 e header files,
8260: 70 61 72 74 20 32 2e 0a 23 0a 53 52 43 30 35 20 part 2..#.SRC05
8270: 3d 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 = \. $(TOP)\src 8280: 5c 70 61 67 65 72 2e 68 20 5c 0a 20 20 24 28 54 \pager.h \.$(T
8290: 4f 50 29 5c 73 72 63 5c 70 63 61 63 68 65 2e 68 OP)\src\pcache.h
82a0: 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c \. $(TOP)\src\ 82b0: 70 72 61 67 6d 61 2e 68 20 5c 0a 20 20 24 28 54 pragma.h \.$(T
82c0: 4f 50 29 5c 73 72 63 5c 73 71 6c 69 74 65 2e 68 OP)\src\sqlite.h
82d0: 2e 69 6e 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 .in \. $(TOP)\s 82e0: 72 63 5c 73 71 6c 69 74 65 33 65 78 74 2e 68 20 rc\sqlite3ext.h 82f0: 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 73 \.$(TOP)\src\s
8300: 71 6c 69 74 65 49 6e 74 2e 68 20 5c 0a 20 20 24 qliteInt.h \. $8310: 28 54 4f 50 29 5c 73 72 63 5c 73 71 6c 69 74 65 (TOP)\src\sqlite 8320: 4c 69 6d 69 74 2e 68 20 5c 0a 20 20 24 28 54 4f Limit.h \.$(TO
8330: 50 29 5c 73 72 63 5c 76 64 62 65 2e 68 20 5c 0a P)\src\vdbe.h \.
8340: 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 76 64 62 $(TOP)\src\vdb 8350: 65 49 6e 74 2e 68 20 5c 0a 20 20 24 28 54 4f 50 eInt.h \.$(TOP
8360: 29 5c 73 72 63 5c 76 78 77 6f 72 6b 73 2e 68 20 )\src\vxworks.h
8370: 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 77 \. $(TOP)\src\w 8380: 61 6c 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 5c al.h \.$(TOP)\
8390: 73 72 63 5c 77 68 65 72 65 49 6e 74 2e 68 0a 0a src\whereInt.h..
83a0: 23 20 45 78 74 65 6e 73 69 6f 6e 20 73 6f 75 72 # Extension sour
83b0: 63 65 20 63 6f 64 65 20 66 69 6c 65 73 2c 20 70 ce code files, p
83c0: 61 72 74 20 31 2e 0a 23 0a 53 52 43 30 36 20 3d art 1..#.SRC06 =
83d0: 20 5c 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 5c \. $(TOP)\ext\ 83e0: 66 74 73 31 5c 66 74 73 31 2e 63 20 5c 0a 20 20 fts1\fts1.c \. 83f0: 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 31 5c$(TOP)\ext\fts1\
8400: 66 74 73 31 5f 68 61 73 68 2e 63 20 5c 0a 20 20 fts1_hash.c \.
8410: 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 31 5c $(TOP)\ext\fts1\ 8420: 66 74 73 31 5f 70 6f 72 74 65 72 2e 63 20 5c 0a fts1_porter.c \. 8430: 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73$(TOP)\ext\fts
8440: 31 5c 66 74 73 31 5f 74 6f 6b 65 6e 69 7a 65 72 1\fts1_tokenizer
8450: 31 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 65 1.c \. $(TOP)\e 8460: 78 74 5c 66 74 73 32 5c 66 74 73 32 2e 63 20 5c xt\fts2\fts2.c \ 8470: 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 .$(TOP)\ext\ft
8480: 73 32 5c 66 74 73 32 5f 68 61 73 68 2e 63 20 5c s2\fts2_hash.c \
8490: 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 . $(TOP)\ext\ft 84a0: 73 32 5c 66 74 73 32 5f 69 63 75 2e 63 20 5c 0a s2\fts2_icu.c \. 84b0: 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73$(TOP)\ext\fts
84c0: 32 5c 66 74 73 32 5f 70 6f 72 74 65 72 2e 63 20 2\fts2_porter.c
84d0: 5c 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 \. $(TOP)\ext\f 84e0: 74 73 32 5c 66 74 73 32 5f 74 6f 6b 65 6e 69 7a ts2\fts2_tokeniz 84f0: 65 72 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c er.c \.$(TOP)\
8500: 65 78 74 5c 66 74 73 32 5c 66 74 73 32 5f 74 6f ext\fts2\fts2_to
8510: 6b 65 6e 69 7a 65 72 31 2e 63 0a 0a 23 20 45 78 kenizer1.c..# Ex
8520: 74 65 6e 73 69 6f 6e 20 73 6f 75 72 63 65 20 63 tension source c
8530: 6f 64 65 20 66 69 6c 65 73 2c 20 70 61 72 74 20 ode files, part
8540: 32 2e 0a 23 0a 53 52 43 30 37 20 3d 20 5c 0a 20 2..#.SRC07 = \.
8550: 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 33 $(TOP)\ext\fts3 8560: 5c 66 74 73 33 2e 63 20 5c 0a 20 20 24 28 54 4f \fts3.c \.$(TO
8570: 50 29 5c 65 78 74 5c 66 74 73 33 5c 66 74 73 33 P)\ext\fts3\fts3
8580: 5f 61 75 78 2e 63 20 5c 0a 20 20 24 28 54 4f 50 _aux.c \. $(TOP 8590: 29 5c 65 78 74 5c 66 74 73 33 5c 66 74 73 33 5f )\ext\fts3\fts3_ 85a0: 65 78 70 72 2e 63 20 5c 0a 20 20 24 28 54 4f 50 expr.c \.$(TOP
85b0: 29 5c 65 78 74 5c 66 74 73 33 5c 66 74 73 33 5f )\ext\fts3\fts3_
85c0: 68 61 73 68 2e 63 20 5c 0a 20 20 24 28 54 4f 50 hash.c \. $(TOP 85d0: 29 5c 65 78 74 5c 66 74 73 33 5c 66 74 73 33 5f )\ext\fts3\fts3_ 85e0: 69 63 75 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 icu.c \.$(TOP)
85f0: 5c 65 78 74 5c 66 74 73 33 5c 66 74 73 33 5f 70 \ext\fts3\fts3_p
8600: 6f 72 74 65 72 2e 63 20 5c 0a 20 20 24 28 54 4f orter.c \. $(TO 8610: 50 29 5c 65 78 74 5c 66 74 73 33 5c 66 74 73 33 P)\ext\fts3\fts3 8620: 5f 73 6e 69 70 70 65 74 2e 63 20 5c 0a 20 20 24 _snippet.c \.$
8630: 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 33 5c 66 (TOP)\ext\fts3\f
8640: 74 73 33 5f 74 6f 6b 65 6e 69 7a 65 72 2e 63 20 ts3_tokenizer.c
8650: 5c 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 \. $(TOP)\ext\f 8660: 74 73 33 5c 66 74 73 33 5f 74 6f 6b 65 6e 69 7a ts3\fts3_tokeniz 8670: 65 72 31 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 er1.c \.$(TOP)
8680: 5c 65 78 74 5c 66 74 73 33 5c 66 74 73 33 5f 74 \ext\fts3\fts3_t
8690: 6f 6b 65 6e 69 7a 65 5f 76 74 61 62 2e 63 20 5c okenize_vtab.c \
86a0: 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 . $(TOP)\ext\ft 86b0: 73 33 5c 66 74 73 33 5f 75 6e 69 63 6f 64 65 2e s3\fts3_unicode. 86c0: 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 c \.$(TOP)\ext
86d0: 5c 66 74 73 33 5c 66 74 73 33 5f 75 6e 69 63 6f \fts3\fts3_unico
86e0: 64 65 32 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 de2.c \. $(TOP) 86f0: 5c 65 78 74 5c 66 74 73 33 5c 66 74 73 33 5f 77 \ext\fts3\fts3_w 8700: 72 69 74 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 rite.c \.$(TOP
8710: 29 5c 65 78 74 5c 69 63 75 5c 69 63 75 2e 63 20 )\ext\icu\icu.c
8720: 5c 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 72 \. $(TOP)\ext\r 8730: 74 72 65 65 5c 72 74 72 65 65 2e 63 20 5c 0a 20 tree\rtree.c \. 8740: 20 24 28 54 4f 50 29 5c 65 78 74 5c 73 65 73 73$(TOP)\ext\sess
8750: 69 6f 6e 5c 73 71 6c 69 74 65 33 73 65 73 73 69 ion\sqlite3sessi
8760: 6f 6e 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c on.c \. $(TOP)\ 8770: 65 78 74 5c 72 62 75 5c 73 71 6c 69 74 65 33 72 ext\rbu\sqlite3r 8780: 62 75 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c bu.c \.$(TOP)\
8790: 65 78 74 5c 6d 69 73 63 5c 6a 73 6f 6e 31 2e 63 ext\misc\json1.c
87a0: 0a 0a 23 20 45 78 74 65 6e 73 69 6f 6e 20 68 65 ..# Extension he
87b0: 61 64 65 72 20 66 69 6c 65 73 2c 20 70 61 72 74 ader files, part
87c0: 20 31 2e 0a 23 0a 53 52 43 30 38 20 3d 20 5c 0a 1..#.SRC08 = \.
87d0: 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 $(TOP)\ext\fts 87e0: 31 5c 66 74 73 31 2e 68 20 5c 0a 20 20 24 28 54 1\fts1.h \.$(T
87f0: 4f 50 29 5c 65 78 74 5c 66 74 73 31 5c 66 74 73 OP)\ext\fts1\fts
8800: 31 5f 68 61 73 68 2e 68 20 5c 0a 20 20 24 28 54 1_hash.h \. $(T 8810: 4f 50 29 5c 65 78 74 5c 66 74 73 31 5c 66 74 73 OP)\ext\fts1\fts 8820: 31 5f 74 6f 6b 65 6e 69 7a 65 72 2e 68 20 5c 0a 1_tokenizer.h \. 8830: 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73$(TOP)\ext\fts
8840: 32 5c 66 74 73 32 2e 68 20 5c 0a 20 20 24 28 54 2\fts2.h \. $(T 8850: 4f 50 29 5c 65 78 74 5c 66 74 73 32 5c 66 74 73 OP)\ext\fts2\fts 8860: 32 5f 68 61 73 68 2e 68 20 5c 0a 20 20 24 28 54 2_hash.h \.$(T
8870: 4f 50 29 5c 65 78 74 5c 66 74 73 32 5c 66 74 73 OP)\ext\fts2\fts
8880: 32 5f 74 6f 6b 65 6e 69 7a 65 72 2e 68 0a 0a 23 2_tokenizer.h..#
8890: 20 45 78 74 65 6e 73 69 6f 6e 20 68 65 61 64 65 Extension heade
88a0: 72 20 66 69 6c 65 73 2c 20 70 61 72 74 20 32 2e r files, part 2.
88b0: 0a 23 0a 53 52 43 30 39 20 3d 20 5c 0a 20 20 24 .#.SRC09 = \. $88c0: 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 33 5c 66 (TOP)\ext\fts3\f 88d0: 74 73 33 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 ts3.h \.$(TOP)
88e0: 5c 65 78 74 5c 66 74 73 33 5c 66 74 73 33 49 6e \ext\fts3\fts3In
88f0: 74 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 5c 65 t.h \. $(TOP)\e 8900: 78 74 5c 66 74 73 33 5c 66 74 73 33 5f 68 61 73 xt\fts3\fts3_has 8910: 68 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 5c 65 h.h \.$(TOP)\e
8920: 78 74 5c 66 74 73 33 5c 66 74 73 33 5f 74 6f 6b xt\fts3\fts3_tok
8930: 65 6e 69 7a 65 72 2e 68 20 5c 0a 20 20 24 28 54 enizer.h \. $(T 8940: 4f 50 29 5c 65 78 74 5c 69 63 75 5c 73 71 6c 69 OP)\ext\icu\sqli 8950: 74 65 69 63 75 2e 68 20 5c 0a 20 20 24 28 54 4f teicu.h \.$(TO
8960: 50 29 5c 65 78 74 5c 72 74 72 65 65 5c 72 74 72 P)\ext\rtree\rtr
8970: 65 65 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 5c ee.h \. $(TOP)\ 8980: 65 78 74 5c 72 62 75 5c 73 71 6c 69 74 65 33 72 ext\rbu\sqlite3r 8990: 62 75 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 5c bu.h \.$(TOP)\
89a0: 65 78 74 5c 73 65 73 73 69 6f 6e 5c 73 71 6c 69 ext\session\sqli
89b0: 74 65 33 73 65 73 73 69 6f 6e 2e 68 0a 0a 23 20 te3session.h..#
89c0: 47 65 6e 65 72 61 74 65 64 20 73 6f 75 72 63 65 Generated source
89d0: 20 63 6f 64 65 20 66 69 6c 65 73 0a 23 0a 53 52 code files.#.SR
89e0: 43 31 30 20 3d 20 5c 0a 20 20 6f 70 63 6f 64 65 C10 = \. opcode
89f0: 73 2e 63 20 5c 0a 20 20 70 61 72 73 65 2e 63 0a s.c \. parse.c.
8a00: 0a 23 20 47 65 6e 65 72 61 74 65 64 20 68 65 61 .# Generated hea
8a10: 64 65 72 20 66 69 6c 65 73 0a 23 0a 53 52 43 31 der files.#.SRC1
8a20: 31 20 3d 20 5c 0a 20 20 6b 65 79 77 6f 72 64 68 1 = \. keywordh
8a30: 61 73 68 2e 68 20 5c 0a 20 20 6f 70 63 6f 64 65 ash.h \. opcode
8a40: 73 2e 68 20 5c 0a 20 20 70 61 72 73 65 2e 68 20 s.h \. parse.h
8a50: 5c 0a 20 20 24 28 53 51 4c 49 54 45 33 48 29 0a \. $(SQLITE3H). 8a60: 0a 23 20 47 65 6e 65 72 61 74 65 64 20 54 63 6c .# Generated Tcl 8a70: 20 68 65 61 64 65 72 20 66 69 6c 65 73 0a 23 0a header files.#. 8a80: 21 49 46 20 24 28 55 53 45 5f 53 54 44 43 41 4c !IF$(USE_STDCAL
8a90: 4c 29 21 3d 30 20 7c 7c 20 24 28 46 4f 52 5f 57 L)!=0 || $(FOR_W 8aa0: 49 4e 31 30 29 21 3d 30 0a 53 52 43 31 32 20 3d IN10)!=0.SRC12 = 8ab0: 20 5c 0a 20 20 24 28 53 51 4c 49 54 45 54 43 4c \.$(SQLITETCL
8ac0: 48 29 20 5c 0a 20 20 24 28 53 51 4c 49 54 45 54 H) \. $(SQLITET 8ad0: 43 4c 44 45 43 4c 53 48 29 0a 21 45 4c 53 45 0a CLDECLSH).!ELSE. 8ae0: 53 52 43 31 32 20 3d 0a 21 45 4e 44 49 46 0a 0a SRC12 =.!ENDIF.. 8af0: 23 20 41 6c 6c 20 73 6f 75 72 63 65 20 63 6f 64 # All source cod 8b00: 65 20 66 69 6c 65 73 2e 0a 23 0a 53 52 43 20 3d e files..#.SRC = 8b10: 20 24 28 53 52 43 30 30 29 20 24 28 53 52 43 30$(SRC00) $(SRC0 8b20: 31 29 20 24 28 53 52 43 30 32 29 20 24 28 53 52 1)$(SRC02) $(SR 8b30: 43 30 33 29 20 24 28 53 52 43 30 34 29 20 24 28 C03)$(SRC04) $( 8b40: 53 52 43 30 35 29 20 24 28 53 52 43 30 36 29 20 SRC05)$(SRC06)
8b50: 24 28 53 52 43 30 37 29 20 24 28 53 52 43 30 38 $(SRC07)$(SRC08
8b60: 29 20 24 28 53 52 43 30 39 29 20 24 28 53 52 43 ) $(SRC09)$(SRC
8b70: 31 30 29 20 24 28 53 52 43 31 31 29 0a 0a 23 20 10) $(SRC11)..# 8b80: 53 6f 75 72 63 65 20 63 6f 64 65 20 74 6f 20 74 Source code to t 8b90: 68 65 20 74 65 73 74 20 66 69 6c 65 73 2e 0a 23 he test files..# 8ba0: 0a 54 45 53 54 53 52 43 20 3d 20 5c 0a 20 20 24 .TESTSRC = \.$
8bb0: 28 54 4f 50 29 5c 73 72 63 5c 74 65 73 74 31 2e (TOP)\src\test1.
8bc0: 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 c \. $(TOP)\src 8bd0: 5c 74 65 73 74 32 2e 63 20 5c 0a 20 20 24 28 54 \test2.c \.$(T
8be0: 4f 50 29 5c 73 72 63 5c 74 65 73 74 33 2e 63 20 OP)\src\test3.c
8bf0: 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 74 \. $(TOP)\src\t 8c00: 65 73 74 34 2e 63 20 5c 0a 20 20 24 28 54 4f 50 est4.c \.$(TOP
8c10: 29 5c 73 72 63 5c 74 65 73 74 35 2e 63 20 5c 0a )\src\test5.c \.
8c20: 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 74 65 73 $(TOP)\src\tes 8c30: 74 36 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c t6.c \.$(TOP)\
8c40: 73 72 63 5c 74 65 73 74 37 2e 63 20 5c 0a 20 20 src\test7.c \.
8c50: 24 28 54 4f 50 29 5c 73 72 63 5c 74 65 73 74 38 $(TOP)\src\test8 8c60: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 .c \.$(TOP)\sr
8c70: 63 5c 74 65 73 74 39 2e 63 20 5c 0a 20 20 24 28 c\test9.c \. $( 8c80: 54 4f 50 29 5c 73 72 63 5c 74 65 73 74 5f 61 75 TOP)\src\test_au 8c90: 74 6f 65 78 74 2e 63 20 5c 0a 20 20 24 28 54 4f toext.c \.$(TO
8ca0: 50 29 5c 73 72 63 5c 74 65 73 74 5f 61 73 79 6e P)\src\test_asyn
8cb0: 63 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 c.c \. $(TOP)\s 8cc0: 72 63 5c 74 65 73 74 5f 62 61 63 6b 75 70 2e 63 rc\test_backup.c 8cd0: 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c \.$(TOP)\src\
8ce0: 74 65 73 74 5f 62 65 73 74 69 6e 64 65 78 2e 63 test_bestindex.c
8cf0: 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c \. $(TOP)\src\ 8d00: 74 65 73 74 5f 62 6c 6f 62 2e 63 20 5c 0a 20 20 test_blob.c \. 8d10: 24 28 54 4f 50 29 5c 73 72 63 5c 74 65 73 74 5f$(TOP)\src\test_
8d20: 62 74 72 65 65 2e 63 20 5c 0a 20 20 24 28 54 4f btree.c \. $(TO 8d30: 50 29 5c 73 72 63 5c 74 65 73 74 5f 63 6f 6e 66 P)\src\test_conf 8d40: 69 67 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c ig.c \.$(TOP)\
8d50: 73 72 63 5c 74 65 73 74 5f 64 65 6c 65 74 65 2e src\test_delete.
8d60: 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 c \. $(TOP)\src 8d70: 5c 74 65 73 74 5f 64 65 6d 6f 76 66 73 2e 63 20 \test_demovfs.c 8d80: 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 74 \.$(TOP)\src\t
8d90: 65 73 74 5f 64 65 76 73 79 6d 2e 63 20 5c 0a 20 est_devsym.c \.
8da0: 20 24 28 54 4f 50 29 5c 73 72 63 5c 74 65 73 74 $(TOP)\src\test 8db0: 5f 66 73 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 _fs.c \.$(TOP)
8dc0: 5c 73 72 63 5c 74 65 73 74 5f 66 75 6e 63 2e 63 \src\test_func.c
8dd0: 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c \. $(TOP)\src\ 8de0: 74 65 73 74 5f 68 65 78 69 6f 2e 63 20 5c 0a 20 test_hexio.c \. 8df0: 20 24 28 54 4f 50 29 5c 73 72 63 5c 74 65 73 74$(TOP)\src\test
8e00: 5f 69 6e 69 74 2e 63 20 5c 0a 20 20 24 28 54 4f _init.c \. $(TO 8e10: 50 29 5c 73 72 63 5c 74 65 73 74 5f 69 6e 74 61 P)\src\test_inta 8e20: 72 72 61 79 2e 63 20 5c 0a 20 20 24 28 54 4f 50 rray.c \.$(TOP
8e30: 29 5c 73 72 63 5c 74 65 73 74 5f 6a 6f 75 72 6e )\src\test_journ
8e40: 61 6c 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c al.c \. $(TOP)\ 8e50: 73 72 63 5c 74 65 73 74 5f 6d 61 6c 6c 6f 63 2e src\test_malloc. 8e60: 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 c \.$(TOP)\src
8e70: 5c 74 65 73 74 5f 6d 75 6c 74 69 70 6c 65 78 2e \test_multiplex.
8e80: 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 c \. $(TOP)\src 8e90: 5c 74 65 73 74 5f 6d 75 74 65 78 2e 63 20 5c 0a \test_mutex.c \. 8ea0: 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 74 65 73$(TOP)\src\tes
8eb0: 74 5f 6f 6e 65 66 69 6c 65 2e 63 20 5c 0a 20 20 t_onefile.c \.
8ec0: 24 28 54 4f 50 29 5c 73 72 63 5c 74 65 73 74 5f $(TOP)\src\test_ 8ed0: 6f 73 69 6e 73 74 2e 63 20 5c 0a 20 20 24 28 54 osinst.c \.$(T
8ee0: 4f 50 29 5c 73 72 63 5c 74 65 73 74 5f 70 63 61 OP)\src\test_pca
8ef0: 63 68 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 che.c \. $(TOP) 8f00: 5c 73 72 63 5c 74 65 73 74 5f 71 75 6f 74 61 2e \src\test_quota. 8f10: 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 c \.$(TOP)\src
8f20: 5c 74 65 73 74 5f 72 74 72 65 65 2e 63 20 5c 0a \test_rtree.c \.
8f30: 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 74 65 73 $(TOP)\src\tes 8f40: 74 5f 73 63 68 65 6d 61 2e 63 20 5c 0a 20 20 24 t_schema.c \.$
8f50: 28 54 4f 50 29 5c 73 72 63 5c 74 65 73 74 5f 73 (TOP)\src\test_s
8f60: 65 72 76 65 72 2e 63 20 5c 0a 20 20 24 28 54 4f erver.c \. $(TO 8f70: 50 29 5c 73 72 63 5c 74 65 73 74 5f 73 75 70 65 P)\src\test_supe 8f80: 72 6c 6f 63 6b 2e 63 20 5c 0a 20 20 24 28 54 4f rlock.c \.$(TO
8f90: 50 29 5c 73 72 63 5c 74 65 73 74 5f 73 79 73 63 P)\src\test_sysc
8fa0: 61 6c 6c 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 all.c \. $(TOP) 8fb0: 5c 73 72 63 5c 74 65 73 74 5f 74 63 6c 76 61 72 \src\test_tclvar 8fc0: 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 .c \.$(TOP)\sr
8fd0: 63 5c 74 65 73 74 5f 74 68 72 65 61 64 2e 63 20 c\test_thread.c
8fe0: 5c 0a 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 74 \. $(TOP)\src\t 8ff0: 65 73 74 5f 76 66 73 2e 63 20 5c 0a 20 20 24 28 est_vfs.c \.$(
9000: 54 4f 50 29 5c 73 72 63 5c 74 65 73 74 5f 77 69 TOP)\src\test_wi
9010: 6e 64 69 72 65 6e 74 2e 63 20 5c 0a 20 20 24 28 ndirent.c \. $( 9020: 54 4f 50 29 5c 73 72 63 5c 74 65 73 74 5f 77 73 TOP)\src\test_ws 9030: 64 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 65 d.c \.$(TOP)\e
9040: 78 74 5c 66 74 73 33 5c 66 74 73 33 5f 74 65 72 xt\fts3\fts3_ter
9050: 6d 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 65 m.c \. $(TOP)\e 9060: 78 74 5c 66 74 73 33 5c 66 74 73 33 5f 74 65 73 xt\fts3\fts3_tes 9070: 74 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 65 t.c \.$(TOP)\e
9080: 78 74 5c 72 62 75 5c 74 65 73 74 5f 72 62 75 2e xt\rbu\test_rbu.
9090: 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 c \. $(TOP)\ext 90a0: 5c 73 65 73 73 69 6f 6e 5c 74 65 73 74 5f 73 65 \session\test_se 90b0: 73 73 69 6f 6e 2e 63 0a 0a 23 20 53 74 61 74 69 ssion.c..# Stati 90c0: 63 61 6c 6c 79 20 6c 69 6e 6b 65 64 20 65 78 74 cally linked ext 90d0: 65 6e 73 69 6f 6e 73 2e 0a 23 0a 54 45 53 54 45 ensions..#.TESTE 90e0: 58 54 20 3d 20 5c 0a 20 20 24 28 54 4f 50 29 5c XT = \.$(TOP)\
90f0: 65 78 74 5c 6d 69 73 63 5c 61 6d 61 74 63 68 2e ext\misc\amatch.
9100: 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 c \. $(TOP)\ext 9110: 5c 6d 69 73 63 5c 63 61 72 72 61 79 2e 63 20 5c \misc\carray.c \ 9120: 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 6d 69 .$(TOP)\ext\mi
9130: 73 63 5c 63 6c 6f 73 75 72 65 2e 63 20 5c 0a 20 sc\closure.c \.
9140: 20 24 28 54 4f 50 29 5c 65 78 74 5c 6d 69 73 63 $(TOP)\ext\misc 9150: 5c 63 73 76 2e 63 20 5c 0a 20 20 24 28 54 4f 50 \csv.c \.$(TOP
9160: 29 5c 65 78 74 5c 6d 69 73 63 5c 65 76 61 6c 2e )\ext\misc\eval.
9170: 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 c \. $(TOP)\ext 9180: 5c 6d 69 73 63 5c 66 69 6c 65 69 6f 2e 63 20 5c \misc\fileio.c \ 9190: 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 6d 69 .$(TOP)\ext\mi
91a0: 73 63 5c 66 75 7a 7a 65 72 2e 63 20 5c 0a 20 20 sc\fuzzer.c \.
91b0: 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 35 5c $(TOP)\ext\fts5\ 91c0: 66 74 73 35 5f 74 63 6c 2e 63 20 5c 0a 20 20 24 fts5_tcl.c \.$
91d0: 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 35 5c 66 (TOP)\ext\fts5\f
91e0: 74 73 35 5f 74 65 73 74 5f 6d 69 2e 63 20 5c 0a ts5_test_mi.c \.
91f0: 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 $(TOP)\ext\fts 9200: 35 5c 66 74 73 35 5f 74 65 73 74 5f 74 6f 6b 2e 5\fts5_test_tok. 9210: 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 c \.$(TOP)\ext
9220: 5c 6d 69 73 63 5c 69 65 65 65 37 35 34 2e 63 20 \misc\ieee754.c
9230: 5c 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 6d \. $(TOP)\ext\m 9240: 69 73 63 5c 6e 65 78 74 63 68 61 72 2e 63 20 5c isc\nextchar.c \ 9250: 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 6d 69 .$(TOP)\ext\mi
9260: 73 63 5c 70 65 72 63 65 6e 74 69 6c 65 2e 63 20 sc\percentile.c
9270: 5c 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 6d \. $(TOP)\ext\m 9280: 69 73 63 5c 72 65 67 65 78 70 2e 63 20 5c 0a 20 isc\regexp.c \. 9290: 20 24 28 54 4f 50 29 5c 65 78 74 5c 6d 69 73 63$(TOP)\ext\misc
92a0: 5c 72 65 6d 65 6d 62 65 72 2e 63 20 5c 0a 20 20 \remember.c \.
92b0: 24 28 54 4f 50 29 5c 65 78 74 5c 6d 69 73 63 5c $(TOP)\ext\misc\ 92c0: 73 65 72 69 65 73 2e 63 20 5c 0a 20 20 24 28 54 series.c \.$(T
92d0: 4f 50 29 5c 65 78 74 5c 6d 69 73 63 5c 73 70 65 OP)\ext\misc\spe
92e0: 6c 6c 66 69 78 2e 63 20 5c 0a 20 20 24 28 54 4f llfix.c \. $(TO 92f0: 50 29 5c 65 78 74 5c 6d 69 73 63 5c 74 6f 74 79 P)\ext\misc\toty 9300: 70 65 2e 63 20 5c 0a 20 20 24 28 54 4f 50 29 5c pe.c \.$(TOP)\
9310: 65 78 74 5c 6d 69 73 63 5c 77 68 6f 6c 65 6e 75 ext\misc\wholenu
9320: 6d 62 65 72 2e 63 0a 0a 23 20 53 6f 75 72 63 65 mber.c..# Source
9330: 20 63 6f 64 65 20 74 6f 20 74 68 65 20 6c 69 62 code to the lib
9340: 72 61 72 79 20 66 69 6c 65 73 20 6e 65 65 64 65 rary files neede
9350: 64 20 62 79 20 74 68 65 20 74 65 73 74 20 66 69 d by the test fi
9360: 78 74 75 72 65 0a 23 20 28 6e 6f 6e 2d 61 6d 61 xture.# (non-ama
9370: 6c 67 61 6d 61 74 69 6f 6e 29 0a 23 0a 54 45 53 lgamation).#.TES
9380: 54 53 52 43 32 20 3d 20 5c 0a 20 20 24 28 53 52 TSRC2 = \. $(SR 9390: 43 30 30 29 20 5c 0a 20 20 24 28 53 52 43 30 31 C00) \.$(SRC01
93a0: 29 20 5c 0a 20 20 24 28 53 52 43 30 36 29 20 5c ) \. $(SRC06) \ 93b0: 0a 20 20 24 28 53 52 43 30 37 29 20 5c 0a 20 20 .$(SRC07) \.
93c0: 24 28 53 52 43 31 30 29 20 5c 0a 20 20 24 28 54 $(SRC10) \.$(T
93d0: 4f 50 29 5c 65 78 74 5c 61 73 79 6e 63 5c 73 71 OP)\ext\async\sq
93e0: 6c 69 74 65 33 61 73 79 6e 63 2e 63 0a 0a 23 20 lite3async.c..#
93f0: 48 65 61 64 65 72 20 66 69 6c 65 73 20 75 73 65 Header files use
9400: 64 20 62 79 20 61 6c 6c 20 6c 69 62 72 61 72 79 d by all library
9410: 20 73 6f 75 72 63 65 20 66 69 6c 65 73 2e 0a 23 source files..#
9420: 0a 48 44 52 20 3d 20 5c 0a 20 20 20 24 28 54 4f .HDR = \. $(TO 9430: 50 29 5c 73 72 63 5c 62 74 72 65 65 2e 68 20 5c P)\src\btree.h \ 9440: 0a 20 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 62 .$(TOP)\src\b
9450: 74 72 65 65 49 6e 74 2e 68 20 5c 0a 20 20 20 24 treeInt.h \. $9460: 28 54 4f 50 29 5c 73 72 63 5c 68 61 73 68 2e 68 (TOP)\src\hash.h 9470: 20 5c 0a 20 20 20 24 28 54 4f 50 29 5c 73 72 63 \.$(TOP)\src
9480: 5c 68 77 74 69 6d 65 2e 68 20 5c 0a 20 20 20 6b \hwtime.h \. k
9490: 65 79 77 6f 72 64 68 61 73 68 2e 68 20 5c 0a 20 eywordhash.h \.
94a0: 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 6d 73 76 $(TOP)\src\msv 94b0: 63 2e 68 20 5c 0a 20 20 20 24 28 54 4f 50 29 5c c.h \.$(TOP)\
94c0: 73 72 63 5c 6d 75 74 65 78 2e 68 20 5c 0a 20 20 src\mutex.h \.
94d0: 20 6f 70 63 6f 64 65 73 2e 68 20 5c 0a 20 20 20 opcodes.h \.
94e0: 24 28 54 4f 50 29 5c 73 72 63 5c 6f 73 2e 68 20 $(TOP)\src\os.h 94f0: 5c 0a 20 20 20 24 28 54 4f 50 29 5c 73 72 63 5c \.$(TOP)\src\
9500: 6f 73 5f 63 6f 6d 6d 6f 6e 2e 68 20 5c 0a 20 20 os_common.h \.
9510: 20 24 28 54 4f 50 29 5c 73 72 63 5c 6f 73 5f 73 $(TOP)\src\os_s 9520: 65 74 75 70 2e 68 20 5c 0a 20 20 20 24 28 54 4f etup.h \.$(TO
9530: 50 29 5c 73 72 63 5c 6f 73 5f 77 69 6e 2e 68 20 P)\src\os_win.h
9540: 5c 0a 20 20 20 24 28 54 4f 50 29 5c 73 72 63 5c \. $(TOP)\src\ 9550: 70 61 67 65 72 2e 68 20 5c 0a 20 20 20 24 28 54 pager.h \.$(T
9560: 4f 50 29 5c 73 72 63 5c 70 63 61 63 68 65 2e 68 OP)\src\pcache.h
9570: 20 5c 0a 20 20 20 70 61 72 73 65 2e 68 20 5c 0a \. parse.h \.
9580: 20 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 70 72 $(TOP)\src\pr 9590: 61 67 6d 61 2e 68 20 5c 0a 20 20 20 24 28 53 51 agma.h \.$(SQ
95a0: 4c 49 54 45 33 48 29 20 5c 0a 20 20 20 73 71 6c LITE3H) \. sql
95b0: 69 74 65 33 65 78 74 2e 68 20 5c 0a 20 20 20 24 ite3ext.h \. $95c0: 28 54 4f 50 29 5c 73 72 63 5c 73 71 6c 69 74 65 (TOP)\src\sqlite 95d0: 49 6e 74 2e 68 20 5c 0a 20 20 20 24 28 54 4f 50 Int.h \.$(TOP
95e0: 29 5c 73 72 63 5c 73 71 6c 69 74 65 4c 69 6d 69 )\src\sqliteLimi
95f0: 74 2e 68 20 5c 0a 20 20 20 24 28 54 4f 50 29 5c t.h \. $(TOP)\ 9600: 73 72 63 5c 76 64 62 65 2e 68 20 5c 0a 20 20 20 src\vdbe.h \. 9610: 24 28 54 4f 50 29 5c 73 72 63 5c 76 64 62 65 49$(TOP)\src\vdbeI
9620: 6e 74 2e 68 20 5c 0a 20 20 20 24 28 54 4f 50 29 nt.h \. $(TOP) 9630: 5c 73 72 63 5c 76 78 77 6f 72 6b 73 2e 68 20 5c \src\vxworks.h \ 9640: 0a 20 20 20 24 28 54 4f 50 29 5c 73 72 63 5c 77 .$(TOP)\src\w
9650: 68 65 72 65 49 6e 74 2e 68 0a 0a 23 20 48 65 61 hereInt.h..# Hea
9660: 64 65 72 20 66 69 6c 65 73 20 75 73 65 64 20 62 der files used b
9670: 79 20 65 78 74 65 6e 73 69 6f 6e 73 0a 23 0a 45 y extensions.#.E
9680: 58 54 48 44 52 20 3d 20 24 28 45 58 54 48 44 52 XTHDR = $(EXTHDR 9690: 29 20 5c 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 ) \.$(TOP)\ext
96a0: 5c 66 74 73 31 5c 66 74 73 31 2e 68 20 5c 0a 20 \fts1\fts1.h \.
96b0: 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 31 $(TOP)\ext\fts1 96c0: 5c 66 74 73 31 5f 68 61 73 68 2e 68 20 5c 0a 20 \fts1_hash.h \. 96d0: 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 31$(TOP)\ext\fts1
96e0: 5c 66 74 73 31 5f 74 6f 6b 65 6e 69 7a 65 72 2e \fts1_tokenizer.
96f0: 68 0a 45 58 54 48 44 52 20 3d 20 24 28 45 58 54 h.EXTHDR = $(EXT 9700: 48 44 52 29 20 5c 0a 20 20 24 28 54 4f 50 29 5c HDR) \.$(TOP)\
9710: 65 78 74 5c 66 74 73 32 5c 66 74 73 32 2e 68 20 ext\fts2\fts2.h
9720: 5c 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 \. $(TOP)\ext\f 9730: 74 73 32 5c 66 74 73 32 5f 68 61 73 68 2e 68 20 ts2\fts2_hash.h 9740: 5c 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 \.$(TOP)\ext\f
9750: 74 73 32 5c 66 74 73 32 5f 74 6f 6b 65 6e 69 7a ts2\fts2_tokeniz
9760: 65 72 2e 68 0a 45 58 54 48 44 52 20 3d 20 24 28 er.h.EXTHDR = $( 9770: 45 58 54 48 44 52 29 20 5c 0a 20 20 24 28 54 4f EXTHDR) \.$(TO
9780: 50 29 5c 65 78 74 5c 66 74 73 33 5c 66 74 73 33 P)\ext\fts3\fts3
9790: 2e 68 20 5c 0a 20 20 24 28 54 4f 50 29 5c 65 78 .h \. $(TOP)\ex 97a0: 74 5c 66 74 73 33 5c 66 74 73 33 49 6e 74 2e 68 t\fts3\fts3Int.h 97b0: 20 5c 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 5c \.$(TOP)\ext\
97c0: 66 74 73 33 5c 66 74 73 33 5f 68 61 73 68 2e 68 fts3\fts3_hash.h
97d0: 20 5c 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 5c \. $(TOP)\ext\ 97e0: 66 74 73 33 5c 66 74 73 33 5f 74 6f 6b 65 6e 69 fts3\fts3_tokeni 97f0: 7a 65 72 2e 68 0a 45 58 54 48 44 52 20 3d 20 24 zer.h.EXTHDR =$
9800: 28 45 58 54 48 44 52 29 20 5c 0a 20 20 24 28 54 (EXTHDR) \. $(T 9810: 4f 50 29 5c 65 78 74 5c 72 74 72 65 65 5c 72 74 OP)\ext\rtree\rt 9820: 72 65 65 2e 68 0a 45 58 54 48 44 52 20 3d 20 24 ree.h.EXTHDR =$
9830: 28 45 58 54 48 44 52 29 20 5c 0a 20 20 24 28 54 (EXTHDR) \. $(T 9840: 4f 50 29 5c 65 78 74 5c 69 63 75 5c 73 71 6c 69 OP)\ext\icu\sqli 9850: 74 65 69 63 75 2e 68 0a 45 58 54 48 44 52 20 3d teicu.h.EXTHDR = 9860: 20 24 28 45 58 54 48 44 52 29 20 5c 0a 20 20 24$(EXTHDR) \. $9870: 28 54 4f 50 29 5c 65 78 74 5c 72 74 72 65 65 5c (TOP)\ext\rtree\ 9880: 73 71 6c 69 74 65 33 72 74 72 65 65 2e 68 0a 45 sqlite3rtree.h.E 9890: 58 54 48 44 52 20 3d 20 24 28 45 58 54 48 44 52 XTHDR =$(EXTHDR
98a0: 29 20 5c 0a 20 20 24 28 54 4f 50 29 5c 65 78 74 ) \. $(TOP)\ext 98b0: 5c 73 65 73 73 69 6f 6e 5c 73 71 6c 69 74 65 33 \session\sqlite3 98c0: 73 65 73 73 69 6f 6e 2e 68 0a 0a 23 20 65 78 65 session.h..# exe 98d0: 63 75 74 61 62 6c 65 73 20 6e 65 65 64 65 64 20 cutables needed 98e0: 66 6f 72 20 74 65 73 74 69 6e 67 0a 23 0a 54 45 for testing.#.TE 98f0: 53 54 50 52 4f 47 53 20 3d 20 5c 0a 20 20 74 65 STPROGS = \. te 9900: 73 74 66 69 78 74 75 72 65 2e 65 78 65 20 5c 0a stfixture.exe \. 9910: 20 20 24 28 53 51 4c 49 54 45 33 45 58 45 29 20$(SQLITE3EXE)
9920: 5c 0a 20 20 73 71 6c 69 74 65 33 5f 61 6e 61 6c \. sqlite3_anal
9930: 79 7a 65 72 2e 65 78 65 20 5c 0a 20 20 73 71 6c yzer.exe \. sql
9940: 64 69 66 66 2e 65 78 65 20 5c 0a 20 20 64 62 68 diff.exe \. dbh
9950: 61 73 68 2e 65 78 65 0a 0a 23 20 44 61 74 61 62 ash.exe..# Datab
9960: 61 73 65 73 20 63 6f 6e 74 61 69 6e 69 6e 67 20 ases containing
9970: 66 75 7a 7a 65 72 20 74 65 73 74 20 63 61 73 65 fuzzer test case
9980: 73 0a 23 0a 46 55 5a 5a 44 41 54 41 20 3d 20 5c s.#.FUZZDATA = \
9990: 0a 20 20 24 28 54 4f 50 29 5c 74 65 73 74 5c 66 . $(TOP)\test\f 99a0: 75 7a 7a 64 61 74 61 31 2e 64 62 20 5c 0a 20 20 uzzdata1.db \. 99b0: 24 28 54 4f 50 29 5c 74 65 73 74 5c 66 75 7a 7a$(TOP)\test\fuzz
99c0: 64 61 74 61 32 2e 64 62 20 5c 0a 20 20 24 28 54 data2.db \. $(T 99d0: 4f 50 29 5c 74 65 73 74 5c 66 75 7a 7a 64 61 74 OP)\test\fuzzdat 99e0: 61 33 2e 64 62 20 5c 0a 20 20 24 28 54 4f 50 29 a3.db \.$(TOP)
99f0: 5c 74 65 73 74 5c 66 75 7a 7a 64 61 74 61 34 2e \test\fuzzdata4.
9a00: 64 62 20 5c 0a 20 20 24 28 54 4f 50 29 5c 74 65 db \. $(TOP)\te 9a10: 73 74 5c 66 75 7a 7a 64 61 74 61 35 2e 64 62 0a st\fuzzdata5.db. 9a20: 23 20 3c 3c 2f 6d 61 72 6b 3e 3e 0a 0a 23 20 41 # <</mark>>..# A 9a30: 64 64 69 74 69 6f 6e 61 6c 20 63 6f 6d 70 69 6c dditional compil 9a40: 65 72 20 6f 70 74 69 6f 6e 73 20 66 6f 72 20 74 er options for t 9a50: 68 65 20 73 68 65 6c 6c 2e 20 20 54 68 65 73 65 he shell. These 9a60: 20 61 72 65 20 6f 6e 6c 79 20 65 66 66 65 63 74 are only effect 9a70: 69 76 65 0a 23 20 77 68 65 6e 20 74 68 65 20 73 ive.# when the s 9a80: 68 65 6c 6c 20 69 73 20 6e 6f 74 20 62 65 69 6e hell is not bein 9a90: 67 20 64 79 6e 61 6d 69 63 61 6c 6c 79 20 6c 69 g dynamically li 9aa0: 6e 6b 65 64 2e 0a 23 0a 21 49 46 20 24 28 44 59 nked..#.!IF$(DY
9ab0: 4e 41 4d 49 43 5f 53 48 45 4c 4c 29 3d 3d 30 20 NAMIC_SHELL)==0
9ac0: 26 26 20 24 28 46 4f 52 5f 57 49 4e 31 30 29 3d && $(FOR_WIN10)= 9ad0: 3d 30 0a 53 48 45 4c 4c 5f 43 4f 4d 50 49 4c 45 =0.SHELL_COMPILE 9ae0: 5f 4f 50 54 53 20 3d 20 24 28 53 48 45 4c 4c 5f _OPTS =$(SHELL_
9af0: 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 44 COMPILE_OPTS) -D
9b00: 53 51 4c 49 54 45 5f 53 48 45 4c 4c 5f 4a 53 4f SQLITE_SHELL_JSO
9b10: 4e 31 20 2d 44 53 51 4c 49 54 45 5f 45 4e 41 42 N1 -DSQLITE_ENAB
9b20: 4c 45 5f 46 54 53 34 20 2d 44 53 51 4c 49 54 45 LE_FTS4 -DSQLITE
9b30: 5f 45 4e 41 42 4c 45 5f 45 58 50 4c 41 49 4e 5f _ENABLE_EXPLAIN_
9b40: 43 4f 4d 4d 45 4e 54 53 0a 21 45 4e 44 49 46 0a COMMENTS.!ENDIF.
9b50: 0a 23 20 3c 3c 6d 61 72 6b 3e 3e 0a 23 20 45 78 .# <<mark>>.# Ex
9b60: 74 72 61 20 63 6f 6d 70 69 6c 65 72 20 6f 70 74 tra compiler opt
9b70: 69 6f 6e 73 20 66 6f 72 20 76 61 72 69 6f 75 73 ions for various
9b80: 20 74 65 73 74 20 74 6f 6f 6c 73 2e 0a 23 0a 4d test tools..#.M
9b90: 50 54 45 53 54 45 52 5f 43 4f 4d 50 49 4c 45 5f PTESTER_COMPILE_
9ba0: 4f 50 54 53 20 3d 20 2d 44 53 51 4c 49 54 45 5f OPTS = -DSQLITE_
9bb0: 53 48 45 4c 4c 5f 4a 53 4f 4e 31 20 2d 44 53 51 SHELL_JSON1 -DSQ
9bc0: 4c 49 54 45 5f 45 4e 41 42 4c 45 5f 46 54 53 35 LITE_ENABLE_FTS5
9bd0: 0a 46 55 5a 5a 45 52 53 48 45 4c 4c 5f 43 4f 4d .FUZZERSHELL_COM
9be0: 50 49 4c 45 5f 4f 50 54 53 20 3d 20 2d 44 53 51 PILE_OPTS = -DSQ
9bf0: 4c 49 54 45 5f 45 4e 41 42 4c 45 5f 4a 53 4f 4e LITE_ENABLE_JSON
9c00: 31 0a 46 55 5a 5a 43 48 45 43 4b 5f 43 4f 4d 50 1.FUZZCHECK_COMP
9c10: 49 4c 45 5f 4f 50 54 53 20 3d 20 2d 44 53 51 4c ILE_OPTS = -DSQL
9c20: 49 54 45 5f 45 4e 41 42 4c 45 5f 4a 53 4f 4e 31 ITE_ENABLE_JSON1
9c30: 20 2d 44 53 51 4c 49 54 45 5f 45 4e 41 42 4c 45 -DSQLITE_ENABLE
9c40: 5f 4d 45 4d 53 59 53 35 20 2d 44 53 51 4c 49 54 _MEMSYS5 -DSQLIT
9c50: 45 5f 4f 53 53 5f 46 55 5a 5a 20 2d 44 53 51 4c E_OSS_FUZZ -DSQL
9c60: 49 54 45 5f 4d 41 58 5f 4d 45 4d 4f 52 59 3d 35 ITE_MAX_MEMORY=5
9c70: 30 30 30 30 30 30 30 0a 46 55 5a 5a 43 48 45 43 0000000.FUZZCHEC
9c80: 4b 5f 53 52 43 20 3d 20 24 28 54 4f 50 29 5c 74 K_SRC = $(TOP)\t 9c90: 65 73 74 5c 66 75 7a 7a 63 68 65 63 6b 2e 63 20 est\fuzzcheck.c 9ca0: 24 28 54 4f 50 29 5c 74 65 73 74 5c 6f 73 73 66$(TOP)\test\ossf
9cb0: 75 7a 7a 2e 63 0a 4f 53 53 53 48 45 4c 4c 5f 53 uzz.c.OSSSHELL_S
9cc0: 52 43 20 3d 20 24 28 54 4f 50 29 5c 74 65 73 74 RC = $(TOP)\test 9cd0: 5c 6f 73 73 73 68 65 6c 6c 2e 63 20 24 28 54 4f \ossshell.c$(TO
9ce0: 50 29 5c 74 65 73 74 5c 6f 73 73 66 75 7a 7a 2e P)\test\ossfuzz.
9cf0: 63 0a 44 42 46 55 5a 5a 5f 43 4f 4d 50 49 4c 45 c.DBFUZZ_COMPILE
9d00: 5f 4f 50 54 53 20 3d 20 2d 44 53 51 4c 49 54 45 _OPTS = -DSQLITE
9d10: 5f 54 48 52 45 41 44 53 41 46 45 3d 30 20 2d 44 _THREADSAFE=0 -D
9d20: 53 51 4c 49 54 45 5f 4f 4d 49 54 5f 4c 4f 41 44 SQLITE_OMIT_LOAD
9d30: 5f 45 58 54 45 4e 53 49 4f 4e 0a 4b 56 5f 43 4f _EXTENSION.KV_CO
9d40: 4d 50 49 4c 45 5f 4f 50 54 53 20 3d 20 2d 44 53 MPILE_OPTS = -DS
9d50: 51 4c 49 54 45 5f 54 48 52 45 41 44 53 41 46 45 QLITE_THREADSAFE
9d60: 3d 30 20 2d 44 53 51 4c 49 54 45 5f 44 49 52 45 =0 -DSQLITE_DIRE
9d70: 43 54 5f 4f 56 45 52 46 4c 4f 57 5f 52 45 41 44 CT_OVERFLOW_READ
9d80: 0a 44 42 53 45 4c 46 54 45 53 54 5f 43 4f 4d 50 .DBSELFTEST_COMP
9d90: 49 4c 45 5f 4f 50 54 53 20 3d 20 2d 44 53 51 4c ILE_OPTS = -DSQL
9da0: 49 54 45 5f 54 48 52 45 41 44 53 41 46 45 3d 30 ITE_THREADSAFE=0
9db0: 20 2d 44 53 51 4c 49 54 45 5f 4f 4d 49 54 5f 4c -DSQLITE_OMIT_L
9dc0: 4f 41 44 5f 45 58 54 45 4e 53 49 4f 4e 20 2d 44 OAD_EXTENSION -D
9dd0: 53 51 4c 49 54 45 5f 45 4e 41 42 4c 45 5f 52 54 SQLITE_ENABLE_RT
9de0: 52 45 45 20 2d 44 53 51 4c 49 54 45 5f 45 4e 41 REE -DSQLITE_ENA
9df0: 42 4c 45 5f 46 54 53 34 20 2d 44 53 51 4c 49 54 BLE_FTS4 -DSQLIT
9e00: 45 5f 45 4e 41 42 4c 45 5f 46 54 53 35 0a 53 54 E_ENABLE_FTS5.ST
9e10: 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 20 3d 20 _COMPILE_OPTS =
9e20: 2d 44 53 51 4c 49 54 45 5f 54 48 52 45 41 44 53 -DSQLITE_THREADS
9e30: 41 46 45 3d 30 0a 0a 23 20 53 74 61 6e 64 61 72 AFE=0..# Standar
9e40: 64 20 6f 70 74 69 6f 6e 73 20 74 6f 20 74 65 73 d options to tes
9e50: 74 66 69 78 74 75 72 65 2e 0a 23 0a 54 45 53 54 tfixture..#.TEST
9e60: 4f 50 54 53 20 3d 20 2d 2d 76 65 72 62 6f 73 65 OPTS = --verbose
9e70: 3d 66 69 6c 65 20 2d 2d 6f 75 74 70 75 74 3d 74 =file --output=t
9e80: 65 73 74 2d 6f 75 74 2e 74 78 74 0a 0a 23 20 45 est-out.txt..# E
9e90: 78 74 72 61 20 74 61 72 67 65 74 73 20 66 6f 72 xtra targets for
9ea0: 20 74 68 65 20 22 61 6c 6c 22 20 74 61 72 67 65 the "all" targe
9eb0: 74 20 74 68 61 74 20 72 65 71 75 69 72 65 20 54 t that require T
9ec0: 63 6c 2e 0a 23 0a 21 49 46 20 24 28 4e 4f 5f 54 cl..#.!IF $(NO_T 9ed0: 43 4c 29 3d 3d 30 0a 41 4c 4c 5f 54 43 4c 5f 54 CL)==0.ALL_TCL_T 9ee0: 41 52 47 45 54 53 20 3d 20 6c 69 62 74 63 6c 73 ARGETS = libtcls 9ef0: 71 6c 69 74 65 33 2e 6c 69 62 0a 21 45 4c 53 45 qlite3.lib.!ELSE 9f00: 0a 41 4c 4c 5f 54 43 4c 5f 54 41 52 47 45 54 53 .ALL_TCL_TARGETS 9f10: 20 3d 0a 21 45 4e 44 49 46 0a 23 20 3c 3c 2f 6d =.!ENDIF.# <</m 9f20: 61 72 6b 3e 3e 0a 0a 23 20 54 68 69 73 20 69 73 ark>>..# This is 9f30: 20 74 68 65 20 64 65 66 61 75 6c 74 20 4d 61 6b the default Mak 9f40: 65 66 69 6c 65 20 74 61 72 67 65 74 2e 20 20 54 efile target. T 9f50: 68 65 20 6f 62 6a 65 63 74 73 20 6c 69 73 74 65 he objects liste 9f60: 64 20 68 65 72 65 0a 23 20 61 72 65 20 77 68 61 d here.# are wha 9f70: 74 20 67 65 74 20 62 75 69 6c 64 20 77 68 65 6e t get build when 9f80: 20 79 6f 75 20 74 79 70 65 20 6a 75 73 74 20 22 you type just " 9f90: 6d 61 6b 65 22 20 77 69 74 68 20 6e 6f 20 61 72 make" with no ar 9fa0: 67 75 6d 65 6e 74 73 2e 0a 23 0a 61 6c 6c 3a 09 guments..#.all:. 9fb0: 64 6c 6c 20 6c 69 62 73 71 6c 69 74 65 33 2e 6c dll libsqlite3.l 9fc0: 69 62 20 73 68 65 6c 6c 20 24 28 41 4c 4c 5f 54 ib shell$(ALL_T
9fd0: 43 4c 5f 54 41 52 47 45 54 53 29 0a 0a 23 20 44 CL_TARGETS)..# D
9fe0: 79 6e 61 6d 69 63 20 6c 69 6e 6b 20 6c 69 62 72 ynamic link libr
9ff0: 61 72 79 20 73 65 63 74 69 6f 6e 2e 0a 23 0a 64 ary section..#.d
a000: 6c 6c 3a 09 24 28 53 51 4c 49 54 45 33 44 4c 4c ll:.$(SQLITE3DLL a010: 29 0a 0a 23 20 53 68 65 6c 6c 20 65 78 65 63 75 )..# Shell execu a020: 74 61 62 6c 65 2e 0a 23 0a 73 68 65 6c 6c 3a 09 table..#.shell:. a030: 24 28 53 51 4c 49 54 45 33 45 58 45 29 0a 0a 23$(SQLITE3EXE)..#
a040: 20 3c 3c 6d 61 72 6b 3e 3e 0a 6c 69 62 73 71 6c <<mark>>.libsql
a050: 69 74 65 33 2e 6c 69 62 3a 09 24 28 4c 49 42 4f ite3.lib:.$(LIBO a060: 42 4a 29 0a 09 24 28 4c 54 4c 49 42 29 20 24 28 BJ)..$(LTLIB) $( a070: 4c 54 4c 49 42 4f 50 54 53 29 20 2f 4f 55 54 3a LTLIBOPTS) /OUT: a080: 24 40 20 24 28 4c 49 42 4f 42 4a 29 20 24 28 54$@ $(LIBOBJ)$(T
a090: 4c 49 42 53 29 0a 0a 6c 69 62 74 63 6c 73 71 6c LIBS)..libtclsql
a0a0: 69 74 65 33 2e 6c 69 62 3a 09 74 63 6c 73 71 6c ite3.lib:.tclsql
a0b0: 69 74 65 2e 6c 6f 20 6c 69 62 73 71 6c 69 74 65 ite.lo libsqlite
a0c0: 33 2e 6c 69 62 0a 09 24 28 4c 54 4c 49 42 29 20 3.lib..$(LTLIB) a0d0: 24 28 4c 54 4c 49 42 4f 50 54 53 29 20 24 28 4c$(LTLIBOPTS) $(L a0e0: 54 4c 49 42 50 41 54 48 53 29 20 2f 4f 55 54 3a TLIBPATHS) /OUT: a0f0: 24 40 20 74 63 6c 73 71 6c 69 74 65 2e 6c 6f 20$@ tclsqlite.lo
a100: 6c 69 62 73 71 6c 69 74 65 33 2e 6c 69 62 20 24 libsqlite3.lib $a110: 28 4c 49 42 54 43 4c 53 54 55 42 29 20 24 28 54 (LIBTCLSTUB)$(T
a120: 4c 49 42 53 29 0a 23 20 3c 3c 2f 6d 61 72 6b 3e LIBS).# <</mark>
a130: 3e 0a 0a 24 28 53 51 4c 49 54 45 33 44 4c 4c 29 >..$(SQLITE3DLL) a140: 3a 09 24 28 4c 49 42 4f 42 4a 29 20 24 28 4c 49 :.$(LIBOBJ) $(LI a150: 42 52 45 53 4f 42 4a 53 29 20 24 28 43 4f 52 45 BRESOBJS)$(CORE
a160: 5f 4c 49 4e 4b 5f 44 45 50 29 0a 09 24 28 4c 44 _LINK_DEP)..$(LD a170: 29 20 24 28 4c 44 46 4c 41 47 53 29 20 24 28 4c )$(LDFLAGS) $(L a180: 54 4c 49 4e 4b 4f 50 54 53 29 20 24 28 4c 54 4c TLINKOPTS)$(LTL
a190: 49 42 50 41 54 48 53 29 20 2f 44 4c 4c 20 24 28 IBPATHS) /DLL $( a1a0: 43 4f 52 45 5f 4c 49 4e 4b 5f 4f 50 54 53 29 20 CORE_LINK_OPTS) a1b0: 2f 4f 55 54 3a 24 40 20 24 28 4c 49 42 4f 42 4a /OUT:$@ $(LIBOBJ a1c0: 29 20 24 28 4c 49 42 52 45 53 4f 42 4a 53 29 20 )$(LIBRESOBJS)
a1d0: 24 28 4c 54 4c 49 42 53 29 20 24 28 54 4c 49 42 $(LTLIBS)$(TLIB
a1e0: 53 29 0a 0a 23 20 3c 3c 62 6c 6f 63 6b 32 3e 3e S)..# <<block2>>
a1f0: 0a 73 71 6c 69 74 65 33 2e 64 65 66 3a 09 6c 69 .sqlite3.def:.li
a200: 62 73 71 6c 69 74 65 33 2e 6c 69 62 0a 09 65 63 bsqlite3.lib..ec
a210: 68 6f 20 45 58 50 4f 52 54 53 20 3e 20 73 71 6c ho EXPORTS > sql
a220: 69 74 65 33 2e 64 65 66 0a 09 64 75 6d 70 62 69 ite3.def..dumpbi
a230: 6e 20 2f 61 6c 6c 20 6c 69 62 73 71 6c 69 74 65 n /all libsqlite
a240: 33 2e 6c 69 62 20 5c 0a 09 09 7c 20 24 28 54 43 3.lib \...| $(TC a250: 4c 53 48 5f 43 4d 44 29 20 24 28 54 4f 50 29 5c LSH_CMD)$(TOP)\
a260: 74 6f 6f 6c 5c 72 65 70 6c 61 63 65 2e 74 63 6c tool\replace.tcl
a270: 20 69 6e 63 6c 75 64 65 20 22 5e 5c 73 2b 31 20 include "^\s+1
a280: 5f 3f 28 73 71 6c 69 74 65 33 28 3f 3a 73 65 73 _?(sqlite3(?:ses
a290: 73 69 6f 6e 7c 63 68 61 6e 67 65 73 65 74 7c 63 sion|changeset|c
a2a0: 68 61 6e 67 65 67 72 6f 75 70 29 3f 5f 5b 5e 40 hangegroup)?_[^@
a2b0: 5d 2a 29 28 3f 3a 40 5c 64 2b 29 3f 24 24 22 20 ]*)(?:@\d+)?"
a2c0: 5c 31 20 5c 0a 09 09 7c 20 73 6f 72 74 20 3e 3e \1 \...| sort >>
a2d0: 20 73 71 6c 69 74 65 33 2e 64 65 66 0a 23 20 3c sqlite3.def.# <
a2e0: 3c 2f 62 6c 6f 63 6b 32 3e 3e 0a 0a 24 28 53 51 </block2>>..$(SQ a2f0: 4c 49 54 45 33 45 58 45 29 3a 09 24 28 54 4f 50 LITE3EXE):.$(TOP
a300: 29 5c 73 72 63 5c 73 68 65 6c 6c 2e 63 20 24 28 )\src\shell.c $( a310: 53 48 45 4c 4c 5f 43 4f 52 45 5f 44 45 50 29 20 SHELL_CORE_DEP) a320: 24 28 4c 49 42 52 45 53 4f 42 4a 53 29 20 24 28$(LIBRESOBJS) $( a330: 53 48 45 4c 4c 5f 43 4f 52 45 5f 53 52 43 29 20 SHELL_CORE_SRC) a340: 24 28 53 51 4c 49 54 45 33 48 29 0a 09 24 28 4c$(SQLITE3H)..$(L a350: 54 4c 49 4e 4b 29 20 24 28 53 48 45 4c 4c 5f 43 TLINK)$(SHELL_C
a360: 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 24 28 52 OMPILE_OPTS) $(R a370: 45 41 44 4c 49 4e 45 5f 46 4c 41 47 53 29 20 24 EADLINE_FLAGS)$
a380: 28 54 4f 50 29 5c 73 72 63 5c 73 68 65 6c 6c 2e (TOP)\src\shell.
a390: 63 20 24 28 53 48 45 4c 4c 5f 43 4f 52 45 5f 53 c $(SHELL_CORE_S a3a0: 52 43 29 20 5c 0a 09 09 2f 6c 69 6e 6b 20 24 28 RC) \.../link$(
a3b0: 53 51 4c 49 54 45 33 45 58 45 50 44 42 29 20 24 SQLITE3EXEPDB) $a3c0: 28 4c 44 46 4c 41 47 53 29 20 24 28 4c 54 4c 49 (LDFLAGS)$(LTLI
a3d0: 4e 4b 4f 50 54 53 29 20 24 28 53 48 45 4c 4c 5f NKOPTS) $(SHELL_ a3e0: 4c 49 4e 4b 5f 4f 50 54 53 29 20 24 28 4c 54 4c LINK_OPTS)$(LTL
a3f0: 49 42 50 41 54 48 53 29 20 24 28 4c 49 42 52 45 IBPATHS) $(LIBRE a400: 53 4f 42 4a 53 29 20 24 28 4c 49 42 52 45 41 44 SOBJS)$(LIBREAD
a410: 4c 49 4e 45 29 20 24 28 4c 54 4c 49 42 53 29 20 LINE) $(LTLIBS) a420: 24 28 54 4c 49 42 53 29 0a 0a 23 20 3c 3c 6d 61$(TLIBS)..# <<ma
a430: 72 6b 3e 3e 0a 73 71 6c 64 69 66 66 2e 65 78 65 rk>>.sqldiff.exe
a440: 3a 09 24 28 54 4f 50 29 5c 74 6f 6f 6c 5c 73 71 :.$(TOP)\tool\sq a450: 6c 64 69 66 66 2e 63 20 24 28 53 51 4c 49 54 45 ldiff.c$(SQLITE
a460: 33 43 29 20 24 28 53 51 4c 49 54 45 33 48 29 0a 3C) $(SQLITE3H). a470: 09 24 28 4c 54 4c 49 4e 4b 29 20 24 28 4e 4f 5f .$(LTLINK) $(NO_ a480: 57 41 52 4e 29 20 24 28 54 4f 50 29 5c 74 6f 6f WARN)$(TOP)\too
a490: 6c 5c 73 71 6c 64 69 66 66 2e 63 20 24 28 53 51 l\sqldiff.c $(SQ a4a0: 4c 49 54 45 33 43 29 20 2f 6c 69 6e 6b 20 24 28 LITE3C) /link$(
a4b0: 4c 44 46 4c 41 47 53 29 20 24 28 4c 54 4c 49 4e LDFLAGS) $(LTLIN a4c0: 4b 4f 50 54 53 29 0a 0a 64 62 68 61 73 68 2e 65 KOPTS)..dbhash.e a4d0: 78 65 3a 09 24 28 54 4f 50 29 5c 74 6f 6f 6c 5c xe:.$(TOP)\tool\
a4e0: 64 62 68 61 73 68 2e 63 20 24 28 53 51 4c 49 54 dbhash.c $(SQLIT a4f0: 45 33 43 29 20 24 28 53 51 4c 49 54 45 33 48 29 E3C)$(SQLITE3H)
a500: 0a 09 24 28 4c 54 4c 49 4e 4b 29 20 24 28 4e 4f ..$(LTLINK)$(NO
a510: 5f 57 41 52 4e 29 20 24 28 54 4f 50 29 5c 74 6f _WARN) $(TOP)\to a520: 6f 6c 5c 64 62 68 61 73 68 2e 63 20 24 28 53 51 ol\dbhash.c$(SQ
a530: 4c 49 54 45 33 43 29 20 2f 6c 69 6e 6b 20 24 28 LITE3C) /link $( a540: 4c 44 46 4c 41 47 53 29 20 24 28 4c 54 4c 49 4e LDFLAGS)$(LTLIN
a550: 4b 4f 50 54 53 29 0a 0a 73 63 72 75 62 2e 65 78 KOPTS)..scrub.ex
a560: 65 3a 09 24 28 54 4f 50 29 5c 65 78 74 5c 6d 69 e:.$(TOP)\ext\mi a570: 73 63 5c 73 63 72 75 62 2e 63 20 24 28 53 51 4c sc\scrub.c$(SQL
a580: 49 54 45 33 43 29 20 24 28 53 51 4c 49 54 45 33 ITE3C) $(SQLITE3 a590: 48 29 0a 09 24 28 4c 54 4c 49 4e 4b 29 20 24 28 H)..$(LTLINK) $( a5a0: 4e 4f 5f 57 41 52 4e 29 20 24 28 54 4f 50 29 5c NO_WARN)$(TOP)\
a5b0: 65 78 74 5c 6d 69 73 63 5c 73 63 72 75 62 2e 63 ext\misc\scrub.c
a5c0: 20 24 28 53 51 4c 49 54 45 33 43 29 20 2f 6c 69 $(SQLITE3C) /li a5d0: 6e 6b 20 24 28 4c 44 46 4c 41 47 53 29 20 24 28 nk$(LDFLAGS) $( a5e0: 4c 54 4c 49 4e 4b 4f 50 54 53 29 0a 0a 73 72 63 LTLINKOPTS)..src a5f0: 63 6b 31 2e 65 78 65 3a 09 24 28 54 4f 50 29 5c ck1.exe:.$(TOP)\
a600: 74 6f 6f 6c 5c 73 72 63 63 6b 31 2e 63 0a 09 24 tool\srcck1.c..$a610: 28 42 43 43 29 20 24 28 4e 4f 5f 57 41 52 4e 29 (BCC)$(NO_WARN)
a620: 20 2d 46 65 24 40 20 24 28 54 4f 50 29 5c 74 6f -Fe$@$(TOP)\to
a630: 6f 6c 5c 73 72 63 63 6b 31 2e 63 0a 0a 73 6f 75 ol\srcck1.c..sou
a640: 72 63 65 74 65 73 74 3a 09 73 72 63 63 6b 31 2e rcetest:.srcck1.
a650: 65 78 65 20 73 71 6c 69 74 65 33 2e 63 0a 09 73 exe sqlite3.c..s
a660: 72 63 63 6b 31 2e 65 78 65 20 73 71 6c 69 74 65 rcck1.exe sqlite
a670: 33 2e 63 0a 0a 66 75 7a 7a 65 72 73 68 65 6c 6c 3.c..fuzzershell
a680: 2e 65 78 65 3a 09 24 28 54 4f 50 29 5c 74 6f 6f .exe:.$(TOP)\too a690: 6c 5c 66 75 7a 7a 65 72 73 68 65 6c 6c 2e 63 20 l\fuzzershell.c a6a0: 24 28 53 51 4c 49 54 45 33 43 29 20 24 28 53 51$(SQLITE3C) $(SQ a6b0: 4c 49 54 45 33 48 29 0a 09 24 28 4c 54 4c 49 4e LITE3H)..$(LTLIN
a6c0: 4b 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 24 28 K) $(NO_WARN)$(
a6d0: 46 55 5a 5a 45 52 53 48 45 4c 4c 5f 43 4f 4d 50 FUZZERSHELL_COMP
a6e0: 49 4c 45 5f 4f 50 54 53 29 20 24 28 54 4f 50 29 ILE_OPTS) $(TOP) a6f0: 5c 74 6f 6f 6c 5c 66 75 7a 7a 65 72 73 68 65 6c \tool\fuzzershel a700: 6c 2e 63 20 24 28 53 51 4c 49 54 45 33 43 29 20 l.c$(SQLITE3C)
a710: 2f 6c 69 6e 6b 20 24 28 4c 44 46 4c 41 47 53 29 /link $(LDFLAGS) a720: 20 24 28 4c 54 4c 49 4e 4b 4f 50 54 53 29 0a 0a$(LTLINKOPTS)..
a730: 64 62 66 75 7a 7a 2e 65 78 65 3a 09 24 28 54 4f dbfuzz.exe:.$(TO a740: 50 29 5c 74 65 73 74 5c 64 62 66 75 7a 7a 2e 63 P)\test\dbfuzz.c a750: 20 24 28 53 51 4c 49 54 45 33 43 29 20 24 28 53$(SQLITE3C) $(S a760: 51 4c 49 54 45 33 48 29 0a 09 24 28 4c 54 4c 49 QLITE3H)..$(LTLI
a770: 4e 4b 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 24 NK) $(NO_WARN)$
a780: 28 44 42 46 55 5a 5a 5f 43 4f 4d 50 49 4c 45 5f (DBFUZZ_COMPILE_
a790: 4f 50 54 53 29 20 24 28 54 4f 50 29 5c 74 65 73 OPTS) $(TOP)\tes a7a0: 74 5c 64 62 66 75 7a 7a 2e 63 20 24 28 53 51 4c t\dbfuzz.c$(SQL
a7b0: 49 54 45 33 43 29 20 2f 6c 69 6e 6b 20 24 28 4c ITE3C) /link $(L a7c0: 44 46 4c 41 47 53 29 20 24 28 4c 54 4c 49 4e 4b DFLAGS)$(LTLINK
a7d0: 4f 50 54 53 29 0a 0a 66 75 7a 7a 63 68 65 63 6b OPTS)..fuzzcheck
a7e0: 2e 65 78 65 3a 09 24 28 46 55 5a 5a 43 48 45 43 .exe:.$(FUZZCHEC a7f0: 4b 5f 53 52 43 29 20 24 28 53 51 4c 49 54 45 33 K_SRC)$(SQLITE3
a800: 43 29 20 24 28 53 51 4c 49 54 45 33 48 29 0a 09 C) $(SQLITE3H).. a810: 24 28 4c 54 4c 49 4e 4b 29 20 24 28 4e 4f 5f 57$(LTLINK) $(NO_W a820: 41 52 4e 29 20 24 28 46 55 5a 5a 43 48 45 43 4b ARN)$(FUZZCHECK
a830: 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 24 _COMPILE_OPTS) $a840: 28 46 55 5a 5a 43 48 45 43 4b 5f 53 52 43 29 20 (FUZZCHECK_SRC) a850: 24 28 53 51 4c 49 54 45 33 43 29 20 2f 6c 69 6e$(SQLITE3C) /lin
a860: 6b 20 24 28 4c 44 46 4c 41 47 53 29 20 24 28 4c k $(LDFLAGS)$(L
a870: 54 4c 49 4e 4b 4f 50 54 53 29 0a 0a 6f 73 73 73 TLINKOPTS)..osss
a880: 68 65 6c 6c 2e 65 78 65 3a 09 24 28 4f 53 53 53 hell.exe:.$(OSSS a890: 48 45 4c 4c 5f 53 52 43 29 20 24 28 53 51 4c 49 HELL_SRC)$(SQLI
a8a0: 54 45 33 43 29 20 24 28 53 51 4c 49 54 45 33 48 TE3C) $(SQLITE3H a8b0: 29 0a 09 24 28 4c 54 4c 49 4e 4b 29 20 24 28 4e )..$(LTLINK) $(N a8c0: 4f 5f 57 41 52 4e 29 20 24 28 46 55 5a 5a 43 48 O_WARN)$(FUZZCH
a8d0: 45 43 4b 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 ECK_COMPILE_OPTS
a8e0: 29 20 24 28 4f 53 53 53 48 45 4c 4c 5f 53 52 43 ) $(OSSSHELL_SRC a8f0: 29 20 24 28 53 51 4c 49 54 45 33 43 29 20 2f 6c )$(SQLITE3C) /l
a900: 69 6e 6b 20 24 28 4c 44 46 4c 41 47 53 29 20 24 ink $(LDFLAGS)$
a910: 28 4c 54 4c 49 4e 4b 4f 50 54 53 29 0a 0a 6d 70 (LTLINKOPTS)..mp
a920: 74 65 73 74 65 72 2e 65 78 65 3a 09 24 28 54 4f tester.exe:.$(TO a930: 50 29 5c 6d 70 74 65 73 74 5c 6d 70 74 65 73 74 P)\mptest\mptest a940: 2e 63 20 24 28 53 51 4c 49 54 45 33 43 29 20 24 .c$(SQLITE3C) $a950: 28 53 51 4c 49 54 45 33 48 29 0a 09 24 28 4c 54 (SQLITE3H)..$(LT
a960: 4c 49 4e 4b 29 20 24 28 4e 4f 5f 57 41 52 4e 29 LINK) $(NO_WARN) a970: 20 24 28 4d 50 54 45 53 54 45 52 5f 43 4f 4d 50$(MPTESTER_COMP
a980: 49 4c 45 5f 4f 50 54 53 29 20 24 28 54 4f 50 29 ILE_OPTS) $(TOP) a990: 5c 6d 70 74 65 73 74 5c 6d 70 74 65 73 74 2e 63 \mptest\mptest.c a9a0: 20 24 28 53 51 4c 49 54 45 33 43 29 20 2f 6c 69$(SQLITE3C) /li
a9b0: 6e 6b 20 24 28 4c 44 46 4c 41 47 53 29 20 24 28 nk $(LDFLAGS)$(
a9c0: 4c 54 4c 49 4e 4b 4f 50 54 53 29 0a 0a 4d 50 54 LTLINKOPTS)..MPT
a9d0: 45 53 54 31 20 3d 20 6d 70 74 65 73 74 65 72 20 EST1 = mptester
a9e0: 6d 70 74 65 73 74 2e 64 62 20 24 28 54 4f 50 29 mptest.db $(TOP) a9f0: 5c 6d 70 74 65 73 74 5c 63 72 61 73 68 30 31 2e \mptest\crash01. aa00: 74 65 73 74 20 2d 2d 72 65 70 65 61 74 20 32 30 test --repeat 20 aa10: 0a 4d 50 54 45 53 54 32 20 3d 20 6d 70 74 65 73 .MPTEST2 = mptes aa20: 74 65 72 20 6d 70 74 65 73 74 2e 64 62 20 24 28 ter mptest.db$(
aa30: 54 4f 50 29 5c 6d 70 74 65 73 74 5c 6d 75 6c 74 TOP)\mptest\mult
aa40: 69 77 72 69 74 65 30 31 2e 74 65 73 74 20 2d 2d iwrite01.test --
aa50: 72 65 70 65 61 74 20 32 30 0a 0a 6d 70 74 65 73 repeat 20..mptes
aa60: 74 3a 09 6d 70 74 65 73 74 65 72 2e 65 78 65 0a t:.mptester.exe.
aa70: 09 64 65 6c 20 2f 51 20 6d 70 74 65 73 74 2e 64 .del /Q mptest.d
aa80: 62 20 32 3e 4e 55 4c 0a 09 24 28 4d 50 54 45 53 b 2>NUL..$(MPTES aa90: 54 31 29 20 2d 2d 6a 6f 75 72 6e 61 6c 6d 6f 64 T1) --journalmod aaa0: 65 20 44 45 4c 45 54 45 0a 09 24 28 4d 50 54 45 e DELETE..$(MPTE
aab0: 53 54 32 29 20 2d 2d 6a 6f 75 72 6e 61 6c 6d 6f ST2) --journalmo
aac0: 64 65 20 57 41 4c 0a 09 24 28 4d 50 54 45 53 54 de WAL..$(MPTEST aad0: 31 29 20 2d 2d 6a 6f 75 72 6e 61 6c 6d 6f 64 65 1) --journalmode aae0: 20 57 41 4c 0a 09 24 28 4d 50 54 45 53 54 32 29 WAL..$(MPTEST2)
aaf0: 20 2d 2d 6a 6f 75 72 6e 61 6c 6d 6f 64 65 20 50 --journalmode P
ab00: 45 52 53 49 53 54 0a 09 24 28 4d 50 54 45 53 54 ERSIST..$(MPTEST ab10: 31 29 20 2d 2d 6a 6f 75 72 6e 61 6c 6d 6f 64 65 1) --journalmode ab20: 20 50 45 52 53 49 53 54 0a 09 24 28 4d 50 54 45 PERSIST..$(MPTE
ab30: 53 54 32 29 20 2d 2d 6a 6f 75 72 6e 61 6c 6d 6f ST2) --journalmo
ab40: 64 65 20 54 52 55 4e 43 41 54 45 0a 09 24 28 4d de TRUNCATE..$(M ab50: 50 54 45 53 54 31 29 20 2d 2d 6a 6f 75 72 6e 61 PTEST1) --journa ab60: 6c 6d 6f 64 65 20 54 52 55 4e 43 41 54 45 0a 09 lmode TRUNCATE.. ab70: 24 28 4d 50 54 45 53 54 32 29 20 2d 2d 6a 6f 75$(MPTEST2) --jou
ab80: 72 6e 61 6c 6d 6f 64 65 20 44 45 4c 45 54 45 0a rnalmode DELETE.
ab90: 0a 23 20 54 68 69 73 20 74 61 72 67 65 74 20 63 .# This target c
aba0: 72 65 61 74 65 73 20 61 20 64 69 72 65 63 74 6f reates a directo
abb0: 72 79 20 6e 61 6d 65 64 20 22 74 73 72 63 22 20 ry named "tsrc"
abc0: 61 6e 64 20 66 69 6c 6c 73 20 69 74 20 77 69 74 and fills it wit
abd0: 68 0a 23 20 63 6f 70 69 65 73 20 6f 66 20 61 6c h.# copies of al
abe0: 6c 20 6f 66 20 74 68 65 20 43 20 73 6f 75 72 63 l of the C sourc
abf0: 65 20 63 6f 64 65 20 61 6e 64 20 68 65 61 64 65 e code and heade
ac00: 72 20 66 69 6c 65 73 20 6e 65 65 64 65 64 20 74 r files needed t
ac10: 6f 0a 23 20 62 75 69 6c 64 20 6f 6e 20 74 68 65 o.# build on the
ac20: 20 74 61 72 67 65 74 20 73 79 73 74 65 6d 2e 20 target system.
ac30: 20 53 6f 6d 65 20 6f 66 20 74 68 65 20 43 20 73 Some of the C s
ac40: 6f 75 72 63 65 20 63 6f 64 65 20 61 6e 64 20 68 ource code and h
ac50: 65 61 64 65 72 0a 23 20 66 69 6c 65 73 20 61 72 eader.# files ar
ac60: 65 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 e automatically
ac70: 67 65 6e 65 72 61 74 65 64 2e 20 20 54 68 69 73 generated. This
ac80: 20 74 61 72 67 65 74 20 74 61 6b 65 73 20 63 61 target takes ca
ac90: 72 65 20 6f 66 0a 23 20 61 6c 6c 20 74 68 61 74 re of.# all that
aca0: 20 61 75 74 6f 6d 61 74 69 63 20 67 65 6e 65 72 automatic gener
acb0: 61 74 69 6f 6e 2e 0a 23 0a 2e 74 61 72 67 65 74 ation..#..target
acc0: 5f 73 6f 75 72 63 65 3a 09 24 28 53 52 43 29 20 _source:.$(SRC) acd0: 24 28 54 4f 50 29 5c 74 6f 6f 6c 5c 76 64 62 65$(TOP)\tool\vdbe
ace0: 2d 63 6f 6d 70 72 65 73 73 2e 74 63 6c 20 66 74 -compress.tcl ft
acf0: 73 35 2e 63 20 24 28 53 51 4c 49 54 45 5f 54 43 s5.c $(SQLITE_TC ad00: 4c 5f 44 45 50 29 0a 09 2d 72 6d 64 69 72 20 2f L_DEP)..-rmdir / ad10: 51 2f 53 20 74 73 72 63 20 32 3e 4e 55 4c 0a 09 Q/S tsrc 2>NUL.. ad20: 2d 6d 6b 64 69 72 20 74 73 72 63 0a 09 66 6f 72 -mkdir tsrc..for ad30: 20 25 69 20 69 6e 20 28 24 28 53 52 43 30 30 29 %i in ($(SRC00)
ad40: 29 20 64 6f 20 63 6f 70 79 20 2f 59 20 25 69 20 ) do copy /Y %i
ad50: 74 73 72 63 0a 09 66 6f 72 20 25 69 20 69 6e 20 tsrc..for %i in
ad60: 28 24 28 53 52 43 30 31 29 29 20 64 6f 20 63 6f ($(SRC01)) do co ad70: 70 79 20 2f 59 20 25 69 20 74 73 72 63 0a 09 66 py /Y %i tsrc..f ad80: 6f 72 20 25 69 20 69 6e 20 28 24 28 53 52 43 30 or %i in ($(SRC0
ad90: 32 29 29 20 64 6f 20 63 6f 70 79 20 2f 59 20 25 2)) do copy /Y %
ada0: 69 20 74 73 72 63 0a 09 66 6f 72 20 25 69 20 69 i tsrc..for %i i
adb0: 6e 20 28 24 28 53 52 43 30 33 29 29 20 64 6f 20 n ($(SRC03)) do adc0: 63 6f 70 79 20 2f 59 20 25 69 20 74 73 72 63 0a copy /Y %i tsrc. add0: 09 66 6f 72 20 25 69 20 69 6e 20 28 24 28 53 52 .for %i in ($(SR
ade0: 43 30 34 29 29 20 64 6f 20 63 6f 70 79 20 2f 59 C04)) do copy /Y
adf0: 20 25 69 20 74 73 72 63 0a 09 66 6f 72 20 25 69 %i tsrc..for %i
ae00: 20 69 6e 20 28 24 28 53 52 43 30 35 29 29 20 64 in ($(SRC05)) d ae10: 6f 20 63 6f 70 79 20 2f 59 20 25 69 20 74 73 72 o copy /Y %i tsr ae20: 63 0a 09 66 6f 72 20 25 69 20 69 6e 20 28 24 28 c..for %i in ($(
ae30: 53 52 43 30 36 29 29 20 64 6f 20 63 6f 70 79 20 SRC06)) do copy
ae40: 2f 59 20 25 69 20 74 73 72 63 0a 09 66 6f 72 20 /Y %i tsrc..for
ae50: 25 69 20 69 6e 20 28 24 28 53 52 43 30 37 29 29 %i in ($(SRC07)) ae60: 20 64 6f 20 63 6f 70 79 20 2f 59 20 25 69 20 74 do copy /Y %i t ae70: 73 72 63 0a 09 66 6f 72 20 25 69 20 69 6e 20 28 src..for %i in ( ae80: 24 28 53 52 43 30 38 29 29 20 64 6f 20 63 6f 70$(SRC08)) do cop
ae90: 79 20 2f 59 20 25 69 20 74 73 72 63 0a 09 66 6f y /Y %i tsrc..fo
aea0: 72 20 25 69 20 69 6e 20 28 24 28 53 52 43 30 39 r %i in ($(SRC09 aeb0: 29 29 20 64 6f 20 63 6f 70 79 20 2f 59 20 25 69 )) do copy /Y %i aec0: 20 74 73 72 63 0a 09 66 6f 72 20 25 69 20 69 6e tsrc..for %i in aed0: 20 28 24 28 53 52 43 31 30 29 29 20 64 6f 20 63 ($(SRC10)) do c
aee0: 6f 70 79 20 2f 59 20 25 69 20 74 73 72 63 0a 09 opy /Y %i tsrc..
aef0: 66 6f 72 20 25 69 20 69 6e 20 28 24 28 53 52 43 for %i in ($(SRC af00: 31 31 29 29 20 64 6f 20 63 6f 70 79 20 2f 59 20 11)) do copy /Y af10: 25 69 20 74 73 72 63 0a 09 66 6f 72 20 25 69 20 %i tsrc..for %i af20: 69 6e 20 28 24 28 53 52 43 31 32 29 29 20 64 6f in ($(SRC12)) do
af30: 20 63 6f 70 79 20 2f 59 20 25 69 20 74 73 72 63 copy /Y %i tsrc
af40: 0a 09 63 6f 70 79 20 2f 59 20 66 74 73 35 2e 63 ..copy /Y fts5.c
af50: 20 74 73 72 63 0a 09 63 6f 70 79 20 2f 59 20 66 tsrc..copy /Y f
af60: 74 73 35 2e 68 20 74 73 72 63 0a 09 64 65 6c 20 ts5.h tsrc..del
af70: 2f 51 20 74 73 72 63 5c 73 71 6c 69 74 65 2e 68 /Q tsrc\sqlite.h
af80: 2e 69 6e 20 74 73 72 63 5c 70 61 72 73 65 2e 79 .in tsrc\parse.y
af90: 20 32 3e 4e 55 4c 0a 09 24 28 54 43 4c 53 48 5f 2>NUL..$(TCLSH_ afa0: 43 4d 44 29 20 24 28 54 4f 50 29 5c 74 6f 6f 6c CMD)$(TOP)\tool
afb0: 5c 76 64 62 65 2d 63 6f 6d 70 72 65 73 73 2e 74 \vdbe-compress.t
afc0: 63 6c 20 24 28 4f 50 54 53 29 20 3c 20 74 73 72 cl $(OPTS) < tsr afd0: 63 5c 76 64 62 65 2e 63 20 3e 20 76 64 62 65 2e c\vdbe.c > vdbe. afe0: 6e 65 77 0a 09 6d 6f 76 65 20 76 64 62 65 2e 6e new..move vdbe.n aff0: 65 77 20 74 73 72 63 5c 76 64 62 65 2e 63 0a 09 ew tsrc\vdbe.c.. b000: 65 63 68 6f 20 3e 20 2e 74 61 72 67 65 74 5f 73 echo > .target_s b010: 6f 75 72 63 65 0a 0a 73 71 6c 69 74 65 33 2e 63 ource..sqlite3.c b020: 3a 09 2e 74 61 72 67 65 74 5f 73 6f 75 72 63 65 :..target_source b030: 20 73 71 6c 69 74 65 33 65 78 74 2e 68 20 24 28 sqlite3ext.h$(
b040: 4d 4b 53 51 4c 49 54 45 33 43 5f 54 4f 4f 4c 29 MKSQLITE3C_TOOL)
b050: 0a 09 24 28 54 43 4c 53 48 5f 43 4d 44 29 20 24 ..$(TCLSH_CMD)$
b060: 28 4d 4b 53 51 4c 49 54 45 33 43 5f 54 4f 4f 4c (MKSQLITE3C_TOOL
b070: 29 20 24 28 4d 4b 53 51 4c 49 54 45 33 43 5f 41 ) $(MKSQLITE3C_A b080: 52 47 53 29 0a 09 63 6f 70 79 20 74 73 72 63 5c RGS)..copy tsrc\ b090: 73 68 65 6c 6c 2e 63 20 2e 0a 09 63 6f 70 79 20 shell.c ...copy b0a0: 24 28 54 4f 50 29 5c 65 78 74 5c 73 65 73 73 69$(TOP)\ext\sessi
b0b0: 6f 6e 5c 73 71 6c 69 74 65 33 73 65 73 73 69 6f on\sqlite3sessio
b0c0: 6e 2e 68 20 2e 0a 0a 73 71 6c 69 74 65 33 2d 61 n.h ...sqlite3-a
b0d0: 6c 6c 2e 63 3a 09 73 71 6c 69 74 65 33 2e 63 20 ll.c:.sqlite3.c
b0e0: 24 28 54 4f 50 29 5c 74 6f 6f 6c 5c 73 70 6c 69 $(TOP)\tool\spli b0f0: 74 2d 73 71 6c 69 74 65 33 63 2e 74 63 6c 0a 09 t-sqlite3c.tcl.. b100: 24 28 54 43 4c 53 48 5f 43 4d 44 29 20 24 28 54$(TCLSH_CMD) $(T b110: 4f 50 29 5c 74 6f 6f 6c 5c 73 70 6c 69 74 2d 73 OP)\tool\split-s b120: 71 6c 69 74 65 33 63 2e 74 63 6c 0a 23 20 3c 3c qlite3c.tcl.# << b130: 2f 6d 61 72 6b 3e 3e 0a 0a 23 20 52 75 6c 65 20 /mark>>..# Rule b140: 74 6f 20 62 75 69 6c 64 20 74 68 65 20 61 6d 61 to build the ama b150: 6c 67 61 6d 61 74 69 6f 6e 0a 23 0a 73 71 6c 69 lgamation.#.sqli b160: 74 65 33 2e 6c 6f 3a 09 24 28 53 51 4c 49 54 45 te3.lo:.$(SQLITE
b170: 33 43 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 3C)..$(LTCOMPILE b180: 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 )$(CORE_COMPILE
b190: 5f 4f 50 54 53 29 20 2d 63 20 24 28 53 51 4c 49 _OPTS) -c $(SQLI b1a0: 54 45 33 43 29 0a 0a 23 20 3c 3c 6d 61 72 6b 3e TE3C)..# <<mark> b1b0: 3e 0a 23 20 52 75 6c 65 73 20 74 6f 20 62 75 69 >.# Rules to bui b1c0: 6c 64 20 74 68 65 20 4c 45 4d 4f 4e 20 63 6f 6d ld the LEMON com b1d0: 70 69 6c 65 72 20 67 65 6e 65 72 61 74 6f 72 0a piler generator. b1e0: 23 0a 6c 65 6d 70 61 72 2e 63 3a 09 24 28 54 4f #.lempar.c:.$(TO
b1f0: 50 29 5c 74 6f 6f 6c 5c 6c 65 6d 70 61 72 2e 63 P)\tool\lempar.c
b200: 0a 09 63 6f 70 79 20 24 28 54 4f 50 29 5c 74 6f ..copy $(TOP)\to b210: 6f 6c 5c 6c 65 6d 70 61 72 2e 63 20 2e 0a 0a 6c ol\lempar.c ...l b220: 65 6d 6f 6e 2e 65 78 65 3a 09 24 28 54 4f 50 29 emon.exe:.$(TOP)
b230: 5c 74 6f 6f 6c 5c 6c 65 6d 6f 6e 2e 63 20 6c 65 \tool\lemon.c le
b240: 6d 70 61 72 2e 63 0a 09 24 28 42 43 43 29 20 24 mpar.c..$(BCC)$
b250: 28 4e 4f 5f 57 41 52 4e 29 20 2d 44 61 63 63 65 (NO_WARN) -Dacce
b260: 73 73 3d 5f 61 63 63 65 73 73 20 5c 0a 09 09 2d ss=_access \...-
b270: 46 65 24 40 20 24 28 54 4f 50 29 5c 74 6f 6f 6c Fe$@$(TOP)\tool
b280: 5c 6c 65 6d 6f 6e 2e 63 20 2f 6c 69 6e 6b 20 24 \lemon.c /link $b290: 28 4c 44 46 4c 41 47 53 29 20 24 28 4e 4c 54 4c (LDFLAGS)$(NLTL
b2a0: 49 4e 4b 4f 50 54 53 29 20 24 28 4e 4c 54 4c 49 INKOPTS) $(NLTLI b2b0: 42 50 41 54 48 53 29 0a 0a 23 20 52 75 6c 65 73 BPATHS)..# Rules b2c0: 20 74 6f 20 62 75 69 6c 64 20 69 6e 64 69 76 69 to build indivi b2d0: 64 75 61 6c 20 2a 2e 6c 6f 20 66 69 6c 65 73 20 dual *.lo files b2e0: 66 72 6f 6d 20 67 65 6e 65 72 61 74 65 64 20 2a from generated * b2f0: 2e 63 20 66 69 6c 65 73 2e 20 54 68 69 73 0a 23 .c files. This.# b300: 20 61 70 70 6c 69 65 73 20 74 6f 3a 0a 23 0a 23 applies to:.#.# b310: 20 20 20 20 20 70 61 72 73 65 2e 6c 6f 0a 23 20 parse.lo.# b320: 20 20 20 20 6f 70 63 6f 64 65 73 2e 6c 6f 0a 23 opcodes.lo.# b330: 0a 70 61 72 73 65 2e 6c 6f 3a 09 70 61 72 73 65 .parse.lo:.parse b340: 2e 63 20 24 28 48 44 52 29 0a 09 24 28 4c 54 43 .c$(HDR)..$(LTC b350: 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 OMPILE)$(CORE_C
b360: 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 20 OMPILE_OPTS) -c
b370: 70 61 72 73 65 2e 63 0a 0a 6f 70 63 6f 64 65 73 parse.c..opcodes
b380: 2e 6c 6f 3a 09 6f 70 63 6f 64 65 73 2e 63 0a 09 .lo:.opcodes.c..
b390: 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 43 $(LTCOMPILE)$(C
b3a0: 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 ORE_COMPILE_OPTS
b3b0: 29 20 2d 63 20 6f 70 63 6f 64 65 73 2e 63 0a 23 ) -c opcodes.c.#
b3c0: 20 3c 3c 2f 6d 61 72 6b 3e 3e 0a 0a 23 20 52 75 <</mark>>..# Ru
b3d0: 6c 65 20 74 6f 20 62 75 69 6c 64 20 74 68 65 20 le to build the
b3e0: 57 69 6e 33 32 20 72 65 73 6f 75 72 63 65 73 20 Win32 resources
b3f0: 6f 62 6a 65 63 74 20 66 69 6c 65 2e 0a 23 0a 21 object file..#.!
b400: 49 46 20 24 28 55 53 45 5f 52 43 29 21 3d 30 0a IF $(USE_RC)!=0. b410: 23 20 3c 3c 62 6c 6f 63 6b 31 3e 3e 0a 24 28 4c # <<block1>>.$(L
b420: 49 42 52 45 53 4f 42 4a 53 29 3a 09 24 28 54 4f IBRESOBJS):.$(TO b430: 50 29 5c 73 72 63 5c 73 71 6c 69 74 65 33 2e 72 P)\src\sqlite3.r b440: 63 20 24 28 53 51 4c 49 54 45 33 48 29 0a 09 65 c$(SQLITE3H)..e
b450: 63 68 6f 20 23 69 66 6e 64 65 66 20 53 51 4c 49 cho #ifndef SQLI
b460: 54 45 5f 52 45 53 4f 55 52 43 45 5f 56 45 52 53 TE_RESOURCE_VERS
b470: 49 4f 4e 20 3e 20 73 71 6c 69 74 65 33 72 63 2e ION > sqlite3rc.
b480: 68 0a 09 66 6f 72 20 2f 46 20 25 25 56 20 69 6e h..for /F %%V in
b490: 20 28 27 74 79 70 65 20 22 24 28 54 4f 50 29 5c ('type "$(TOP)\ b4a0: 56 45 52 53 49 4f 4e 22 27 29 20 64 6f 20 28 20 VERSION"') do ( b4b0: 5c 0a 09 09 65 63 68 6f 20 23 64 65 66 69 6e 65 \...echo #define b4c0: 20 53 51 4c 49 54 45 5f 52 45 53 4f 55 52 43 45 SQLITE_RESOURCE b4d0: 5f 56 45 52 53 49 4f 4e 20 25 25 56 20 5c 0a 09 _VERSION %%V \.. b4e0: 09 09 7c 20 24 28 54 43 4c 53 48 5f 43 4d 44 29 ..|$(TCLSH_CMD)
b4f0: 20 24 28 54 4f 50 29 5c 74 6f 6f 6c 5c 72 65 70 $(TOP)\tool\rep b500: 6c 61 63 65 2e 74 63 6c 20 65 78 61 63 74 20 2e lace.tcl exact . b510: 20 5e 2c 20 3e 3e 20 73 71 6c 69 74 65 33 72 63 ^, >> sqlite3rc b520: 2e 68 20 5c 0a 09 29 0a 09 65 63 68 6f 20 23 65 .h \..)..echo #e b530: 6e 64 69 66 20 3e 3e 20 73 71 6c 69 74 65 33 72 ndif >> sqlite3r b540: 63 2e 68 0a 09 24 28 4c 54 52 43 4f 4d 50 49 4c c.h..$(LTRCOMPIL
b550: 45 29 20 2d 66 6f 20 24 28 4c 49 42 52 45 53 4f E) -fo $(LIBRESO b560: 42 4a 53 29 20 24 28 54 4f 50 29 5c 73 72 63 5c BJS)$(TOP)\src\
b570: 73 71 6c 69 74 65 33 2e 72 63 0a 23 20 3c 3c 2f sqlite3.rc.# <</
b580: 62 6c 6f 63 6b 31 3e 3e 0a 21 45 4e 44 49 46 0a block1>>.!ENDIF.
b590: 0a 23 20 3c 3c 6d 61 72 6b 3e 3e 0a 23 20 52 75 .# <<mark>>.# Ru
b5a0: 6c 65 73 20 74 6f 20 62 75 69 6c 64 20 69 6e 64 les to build ind
b5b0: 69 76 69 64 75 61 6c 20 2a 2e 6c 6f 20 66 69 6c ividual *.lo fil
b5c0: 65 73 20 66 72 6f 6d 20 66 69 6c 65 73 20 69 6e es from files in
b5d0: 20 74 68 65 20 73 72 63 20 64 69 72 65 63 74 6f the src directo
b5e0: 72 79 2e 0a 23 0a 61 6c 74 65 72 2e 6c 6f 3a 09 ry..#.alter.lo:.
b5f0: 24 28 54 4f 50 29 5c 73 72 63 5c 61 6c 74 65 72 $(TOP)\src\alter b600: 2e 63 20 24 28 48 44 52 29 0a 09 24 28 4c 54 43 .c$(HDR)..$(LTC b610: 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 OMPILE)$(CORE_C
b620: 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 20 OMPILE_OPTS) -c
b630: 24 28 54 4f 50 29 5c 73 72 63 5c 61 6c 74 65 72 $(TOP)\src\alter b640: 2e 63 0a 0a 61 6e 61 6c 79 7a 65 2e 6c 6f 3a 09 .c..analyze.lo:. b650: 24 28 54 4f 50 29 5c 73 72 63 5c 61 6e 61 6c 79$(TOP)\src\analy
b660: 7a 65 2e 63 20 24 28 48 44 52 29 0a 09 24 28 4c ze.c $(HDR)..$(L
b670: 54 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 TCOMPILE) $(CORE b680: 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d _COMPILE_OPTS) - b690: 63 20 24 28 54 4f 50 29 5c 73 72 63 5c 61 6e 61 c$(TOP)\src\ana
b6a0: 6c 79 7a 65 2e 63 0a 0a 61 74 74 61 63 68 2e 6c lyze.c..attach.l
b6b0: 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c 61 74 o:.$(TOP)\src\at b6c0: 74 61 63 68 2e 63 20 24 28 48 44 52 29 0a 09 24 tach.c$(HDR)..$b6d0: 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f (LTCOMPILE)$(CO
b6e0: 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 RE_COMPILE_OPTS)
b6f0: 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 5c 61 -c $(TOP)\src\a b700: 74 74 61 63 68 2e 63 0a 0a 61 75 74 68 2e 6c 6f ttach.c..auth.lo b710: 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c 61 75 74 :.$(TOP)\src\aut
b720: 68 2e 63 20 24 28 48 44 52 29 0a 09 24 28 4c 54 h.c $(HDR)..$(LT
b730: 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f COMPILE) $(CORE_ b740: 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 COMPILE_OPTS) -c b750: 20 24 28 54 4f 50 29 5c 73 72 63 5c 61 75 74 68$(TOP)\src\auth
b760: 2e 63 0a 0a 62 61 63 6b 75 70 2e 6c 6f 3a 09 24 .c..backup.lo:.$b770: 28 54 4f 50 29 5c 73 72 63 5c 62 61 63 6b 75 70 (TOP)\src\backup b780: 2e 63 20 24 28 48 44 52 29 0a 09 24 28 4c 54 43 .c$(HDR)..$(LTC b790: 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 OMPILE)$(CORE_C
b7a0: 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 20 OMPILE_OPTS) -c
b7b0: 24 28 54 4f 50 29 5c 73 72 63 5c 62 61 63 6b 75 $(TOP)\src\backu b7c0: 70 2e 63 0a 0a 62 69 74 76 65 63 2e 6c 6f 3a 09 p.c..bitvec.lo:. b7d0: 24 28 54 4f 50 29 5c 73 72 63 5c 62 69 74 76 65$(TOP)\src\bitve
b7e0: 63 2e 63 20 24 28 48 44 52 29 0a 09 24 28 4c 54 c.c $(HDR)..$(LT
b7f0: 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f COMPILE) $(CORE_ b800: 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 COMPILE_OPTS) -c b810: 20 24 28 54 4f 50 29 5c 73 72 63 5c 62 69 74 76$(TOP)\src\bitv
b820: 65 63 2e 63 0a 0a 62 74 6d 75 74 65 78 2e 6c 6f ec.c..btmutex.lo
b830: 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c 62 74 6d :.$(TOP)\src\btm b840: 75 74 65 78 2e 63 20 24 28 48 44 52 29 0a 09 24 utex.c$(HDR)..$b850: 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f (LTCOMPILE)$(CO
b860: 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 RE_COMPILE_OPTS)
b870: 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 5c 62 -c $(TOP)\src\b b880: 74 6d 75 74 65 78 2e 63 0a 0a 62 74 72 65 65 2e tmutex.c..btree. b890: 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c 62 lo:.$(TOP)\src\b
b8a0: 74 72 65 65 2e 63 20 24 28 48 44 52 29 20 24 28 tree.c $(HDR)$(
b8b0: 54 4f 50 29 5c 73 72 63 5c 70 61 67 65 72 2e 68 TOP)\src\pager.h
b8c0: 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 ..$(LTCOMPILE)$
b8d0: 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 (CORE_COMPILE_OP
b8e0: 54 53 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 TS) -c $(TOP)\sr b8f0: 63 5c 62 74 72 65 65 2e 63 0a 0a 62 75 69 6c 64 c\btree.c..build b900: 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c .lo:.$(TOP)\src\
b910: 62 75 69 6c 64 2e 63 20 24 28 48 44 52 29 0a 09 build.c $(HDR).. b920: 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 43$(LTCOMPILE) $(C b930: 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 ORE_COMPILE_OPTS b940: 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 5c ) -c$(TOP)\src\
b950: 62 75 69 6c 64 2e 63 0a 0a 63 61 6c 6c 62 61 63 build.c..callbac
b960: 6b 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 k.lo:.$(TOP)\src b970: 5c 63 61 6c 6c 62 61 63 6b 2e 63 20 24 28 48 44 \callback.c$(HD
b980: 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 R)..$(LTCOMPILE) b990: 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f$(CORE_COMPILE_
b9a0: 4f 50 54 53 29 20 2d 63 20 24 28 54 4f 50 29 5c OPTS) -c $(TOP)\ b9b0: 73 72 63 5c 63 61 6c 6c 62 61 63 6b 2e 63 0a 0a src\callback.c.. b9c0: 63 6f 6d 70 6c 65 74 65 2e 6c 6f 3a 09 24 28 54 complete.lo:.$(T
b9d0: 4f 50 29 5c 73 72 63 5c 63 6f 6d 70 6c 65 74 65 OP)\src\complete
b9e0: 2e 63 20 24 28 48 44 52 29 0a 09 24 28 4c 54 43 .c $(HDR)..$(LTC
b9f0: 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 OMPILE) $(CORE_C ba00: 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 20 OMPILE_OPTS) -c ba10: 24 28 54 4f 50 29 5c 73 72 63 5c 63 6f 6d 70 6c$(TOP)\src\compl
ba20: 65 74 65 2e 63 0a 0a 63 74 69 6d 65 2e 6c 6f 3a ete.c..ctime.lo:
ba30: 09 24 28 54 4f 50 29 5c 73 72 63 5c 63 74 69 6d .$(TOP)\src\ctim ba40: 65 2e 63 20 24 28 48 44 52 29 0a 09 24 28 4c 54 e.c$(HDR)..$(LT ba50: 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f COMPILE)$(CORE_
ba60: 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 COMPILE_OPTS) -c
ba70: 20 24 28 54 4f 50 29 5c 73 72 63 5c 63 74 69 6d $(TOP)\src\ctim ba80: 65 2e 63 0a 0a 64 61 74 65 2e 6c 6f 3a 09 24 28 e.c..date.lo:.$(
ba90: 54 4f 50 29 5c 73 72 63 5c 64 61 74 65 2e 63 20 TOP)\src\date.c
baa0: 24 28 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 $(HDR)..$(LTCOMP
bab0: 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 ILE) $(CORE_COMP bac0: 49 4c 45 5f 4f 50 54 53 29 20 2d 63 20 24 28 54 ILE_OPTS) -c$(T
bad0: 4f 50 29 5c 73 72 63 5c 64 61 74 65 2e 63 0a 0a OP)\src\date.c..
bae0: 64 62 73 74 61 74 2e 6c 6f 3a 09 24 28 54 4f 50 dbstat.lo:.$(TOP baf0: 29 5c 73 72 63 5c 64 61 74 65 2e 63 20 24 28 48 )\src\date.c$(H
bb00: 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 DR)..$(LTCOMPILE bb10: 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 )$(CORE_COMPILE
bb20: 5f 4f 50 54 53 29 20 2d 63 20 24 28 54 4f 50 29 _OPTS) -c $(TOP) bb30: 5c 73 72 63 5c 64 62 73 74 61 74 2e 63 0a 0a 64 \src\dbstat.c..d bb40: 65 6c 65 74 65 2e 6c 6f 3a 09 24 28 54 4f 50 29 elete.lo:.$(TOP)
bb50: 5c 73 72 63 5c 64 65 6c 65 74 65 2e 63 20 24 28 \src\delete.c $( bb60: 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c HDR)..$(LTCOMPIL
bb70: 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c E) $(CORE_COMPIL bb80: 45 5f 4f 50 54 53 29 20 2d 63 20 24 28 54 4f 50 E_OPTS) -c$(TOP
bb90: 29 5c 73 72 63 5c 64 65 6c 65 74 65 2e 63 0a 0a )\src\delete.c..
bba0: 65 78 70 72 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c expr.lo:.$(TOP)\ bbb0: 73 72 63 5c 65 78 70 72 2e 63 20 24 28 48 44 52 src\expr.c$(HDR
bbc0: 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 )..$(LTCOMPILE) bbd0: 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f$(CORE_COMPILE_O
bbe0: 50 54 53 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 PTS) -c $(TOP)\s bbf0: 72 63 5c 65 78 70 72 2e 63 0a 0a 66 61 75 6c 74 rc\expr.c..fault bc00: 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c .lo:.$(TOP)\src\
bc10: 66 61 75 6c 74 2e 63 20 24 28 48 44 52 29 0a 09 fault.c $(HDR).. bc20: 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 43$(LTCOMPILE) $(C bc30: 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 ORE_COMPILE_OPTS bc40: 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 5c ) -c$(TOP)\src\
bc50: 66 61 75 6c 74 2e 63 0a 0a 66 6b 65 79 2e 6c 6f fault.c..fkey.lo
bc60: 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c 66 6b 65 :.$(TOP)\src\fke bc70: 79 2e 63 20 24 28 48 44 52 29 0a 09 24 28 4c 54 y.c$(HDR)..$(LT bc80: 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f COMPILE)$(CORE_
bc90: 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 COMPILE_OPTS) -c
bca0: 20 24 28 54 4f 50 29 5c 73 72 63 5c 66 6b 65 79 $(TOP)\src\fkey bcb0: 2e 63 0a 0a 66 75 6e 63 2e 6c 6f 3a 09 24 28 54 .c..func.lo:.$(T
bcc0: 4f 50 29 5c 73 72 63 5c 66 75 6e 63 2e 63 20 24 OP)\src\func.c $bcd0: 28 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 (HDR)..$(LTCOMPI
bce0: 4c 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 LE) $(CORE_COMPI bcf0: 4c 45 5f 4f 50 54 53 29 20 2d 63 20 24 28 54 4f LE_OPTS) -c$(TO
bd00: 50 29 5c 73 72 63 5c 66 75 6e 63 2e 63 0a 0a 67 P)\src\func.c..g
bd10: 6c 6f 62 61 6c 2e 6c 6f 3a 09 24 28 54 4f 50 29 lobal.lo:.$(TOP) bd20: 5c 73 72 63 5c 67 6c 6f 62 61 6c 2e 63 20 24 28 \src\global.c$(
bd30: 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c HDR)..$(LTCOMPIL bd40: 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c E)$(CORE_COMPIL
bd50: 45 5f 4f 50 54 53 29 20 2d 63 20 24 28 54 4f 50 E_OPTS) -c $(TOP bd60: 29 5c 73 72 63 5c 67 6c 6f 62 61 6c 2e 63 0a 0a )\src\global.c.. bd70: 68 61 73 68 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c hash.lo:.$(TOP)\
bd80: 73 72 63 5c 68 61 73 68 2e 63 20 24 28 48 44 52 src\hash.c $(HDR bd90: 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 )..$(LTCOMPILE)
bda0: 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f $(CORE_COMPILE_O bdb0: 50 54 53 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 PTS) -c$(TOP)\s
bdc0: 72 63 5c 68 61 73 68 2e 63 0a 0a 69 6e 73 65 72 rc\hash.c..inser
bdd0: 74 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 t.lo:.$(TOP)\src bde0: 5c 69 6e 73 65 72 74 2e 63 20 24 28 48 44 52 29 \insert.c$(HDR)
bdf0: 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 ..$(LTCOMPILE)$
be00: 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 (CORE_COMPILE_OP
be10: 54 53 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 TS) -c $(TOP)\sr be20: 63 5c 69 6e 73 65 72 74 2e 63 0a 0a 6c 65 67 61 c\insert.c..lega be30: 63 79 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 cy.lo:.$(TOP)\sr
be40: 63 5c 6c 65 67 61 63 79 2e 63 20 24 28 48 44 52 c\legacy.c $(HDR be50: 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 )..$(LTCOMPILE)
be60: 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f $(CORE_COMPILE_O be70: 50 54 53 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 PTS) -c$(TOP)\s
be80: 72 63 5c 6c 65 67 61 63 79 2e 63 0a 0a 6c 6f 61 rc\legacy.c..loa
be90: 64 65 78 74 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c dext.lo:.$(TOP)\ bea0: 73 72 63 5c 6c 6f 61 64 65 78 74 2e 63 20 24 28 src\loadext.c$(
beb0: 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c HDR)..$(LTCOMPIL bec0: 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c E)$(CORE_COMPIL
bed0: 45 5f 4f 50 54 53 29 20 2d 63 20 24 28 54 4f 50 E_OPTS) -c $(TOP bee0: 29 5c 73 72 63 5c 6c 6f 61 64 65 78 74 2e 63 0a )\src\loadext.c. bef0: 0a 6d 61 69 6e 2e 6c 6f 3a 09 24 28 54 4f 50 29 .main.lo:.$(TOP)
bf00: 5c 73 72 63 5c 6d 61 69 6e 2e 63 20 24 28 48 44 \src\main.c $(HD bf10: 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 R)..$(LTCOMPILE)
bf20: 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f $(CORE_COMPILE_ bf30: 4f 50 54 53 29 20 2d 63 20 24 28 54 4f 50 29 5c OPTS) -c$(TOP)\
bf40: 73 72 63 5c 6d 61 69 6e 2e 63 0a 0a 6d 61 6c 6c src\main.c..mall
bf50: 6f 63 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 oc.lo:.$(TOP)\sr bf60: 63 5c 6d 61 6c 6c 6f 63 2e 63 20 24 28 48 44 52 c\malloc.c$(HDR
bf70: 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 )..$(LTCOMPILE) bf80: 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f$(CORE_COMPILE_O
bf90: 50 54 53 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 PTS) -c $(TOP)\s bfa0: 72 63 5c 6d 61 6c 6c 6f 63 2e 63 0a 0a 6d 65 6d rc\malloc.c..mem bfb0: 30 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 0.lo:.$(TOP)\src
bfc0: 5c 6d 65 6d 30 2e 63 20 24 28 48 44 52 29 0a 09 \mem0.c $(HDR).. bfd0: 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 43$(LTCOMPILE) $(C bfe0: 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 ORE_COMPILE_OPTS bff0: 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 5c ) -c$(TOP)\src\
c000: 6d 65 6d 30 2e 63 0a 0a 6d 65 6d 31 2e 6c 6f 3a mem0.c..mem1.lo:
c010: 09 24 28 54 4f 50 29 5c 73 72 63 5c 6d 65 6d 31 .$(TOP)\src\mem1 c020: 2e 63 20 24 28 48 44 52 29 0a 09 24 28 4c 54 43 .c$(HDR)..$(LTC c030: 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 OMPILE)$(CORE_C
c040: 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 20 OMPILE_OPTS) -c
c050: 24 28 54 4f 50 29 5c 73 72 63 5c 6d 65 6d 31 2e $(TOP)\src\mem1. c060: 63 0a 0a 6d 65 6d 32 2e 6c 6f 3a 09 24 28 54 4f c..mem2.lo:.$(TO
c070: 50 29 5c 73 72 63 5c 6d 65 6d 32 2e 63 20 24 28 P)\src\mem2.c $( c080: 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c HDR)..$(LTCOMPIL
c090: 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c E) $(CORE_COMPIL c0a0: 45 5f 4f 50 54 53 29 20 2d 63 20 24 28 54 4f 50 E_OPTS) -c$(TOP
c0b0: 29 5c 73 72 63 5c 6d 65 6d 32 2e 63 0a 0a 6d 65 )\src\mem2.c..me
c0c0: 6d 33 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 m3.lo:.$(TOP)\sr c0d0: 63 5c 6d 65 6d 33 2e 63 20 24 28 48 44 52 29 0a c\mem3.c$(HDR).
c0e0: 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 .$(LTCOMPILE)$(
c0f0: 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 CORE_COMPILE_OPT
c100: 53 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 S) -c $(TOP)\src c110: 5c 6d 65 6d 33 2e 63 0a 0a 6d 65 6d 35 2e 6c 6f \mem3.c..mem5.lo c120: 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c 6d 65 6d :.$(TOP)\src\mem
c130: 35 2e 63 20 24 28 48 44 52 29 0a 09 24 28 4c 54 5.c $(HDR)..$(LT
c140: 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f COMPILE) $(CORE_ c150: 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 COMPILE_OPTS) -c c160: 20 24 28 54 4f 50 29 5c 73 72 63 5c 6d 65 6d 35$(TOP)\src\mem5
c170: 2e 63 0a 0a 6d 65 6d 6a 6f 75 72 6e 61 6c 2e 6c .c..memjournal.l
c180: 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c 6d 65 o:.$(TOP)\src\me c190: 6d 6a 6f 75 72 6e 61 6c 2e 63 20 24 28 48 44 52 mjournal.c$(HDR
c1a0: 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 )..$(LTCOMPILE) c1b0: 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f$(CORE_COMPILE_O
c1c0: 50 54 53 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 PTS) -c $(TOP)\s c1d0: 72 63 5c 6d 65 6d 6a 6f 75 72 6e 61 6c 2e 63 0a rc\memjournal.c. c1e0: 0a 6d 75 74 65 78 2e 6c 6f 3a 09 24 28 54 4f 50 .mutex.lo:.$(TOP
c1f0: 29 5c 73 72 63 5c 6d 75 74 65 78 2e 63 20 24 28 )\src\mutex.c $( c200: 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c HDR)..$(LTCOMPIL
c210: 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c E) $(CORE_COMPIL c220: 45 5f 4f 50 54 53 29 20 2d 63 20 24 28 54 4f 50 E_OPTS) -c$(TOP
c230: 29 5c 73 72 63 5c 6d 75 74 65 78 2e 63 0a 0a 6d )\src\mutex.c..m
c240: 75 74 65 78 5f 6e 6f 6f 70 2e 6c 6f 3a 09 24 28 utex_noop.lo:.$( c250: 54 4f 50 29 5c 73 72 63 5c 6d 75 74 65 78 5f 6e TOP)\src\mutex_n c260: 6f 6f 70 2e 63 20 24 28 48 44 52 29 0a 09 24 28 oop.c$(HDR)..$( c270: 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 LTCOMPILE)$(COR
c280: 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 E_COMPILE_OPTS)
c290: 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 5c 6d 75 -c $(TOP)\src\mu c2a0: 74 65 78 5f 6e 6f 6f 70 2e 63 0a 0a 6d 75 74 65 tex_noop.c..mute c2b0: 78 5f 75 6e 69 78 2e 6c 6f 3a 09 24 28 54 4f 50 x_unix.lo:.$(TOP
c2c0: 29 5c 73 72 63 5c 6d 75 74 65 78 5f 75 6e 69 78 )\src\mutex_unix
c2d0: 2e 63 20 24 28 48 44 52 29 0a 09 24 28 4c 54 43 .c $(HDR)..$(LTC
c2e0: 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 OMPILE) $(CORE_C c2f0: 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 20 OMPILE_OPTS) -c c300: 24 28 54 4f 50 29 5c 73 72 63 5c 6d 75 74 65 78$(TOP)\src\mutex
c310: 5f 75 6e 69 78 2e 63 0a 0a 6d 75 74 65 78 5f 77 _unix.c..mutex_w
c320: 33 32 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 32.lo:.$(TOP)\sr c330: 63 5c 6d 75 74 65 78 5f 77 33 32 2e 63 20 24 28 c\mutex_w32.c$(
c340: 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c HDR)..$(LTCOMPIL c350: 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c E)$(CORE_COMPIL
c360: 45 5f 4f 50 54 53 29 20 2d 63 20 24 28 54 4f 50 E_OPTS) -c $(TOP c370: 29 5c 73 72 63 5c 6d 75 74 65 78 5f 77 33 32 2e )\src\mutex_w32. c380: 63 0a 0a 6e 6f 74 69 66 79 2e 6c 6f 3a 09 24 28 c..notify.lo:.$(
c390: 54 4f 50 29 5c 73 72 63 5c 6e 6f 74 69 66 79 2e TOP)\src\notify.
c3a0: 63 20 24 28 48 44 52 29 0a 09 24 28 4c 54 43 4f c $(HDR)..$(LTCO
c3b0: 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 4f MPILE) $(CORE_CO c3c0: 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 20 24 MPILE_OPTS) -c$
c3d0: 28 54 4f 50 29 5c 73 72 63 5c 6e 6f 74 69 66 79 (TOP)\src\notify
c3e0: 2e 63 0a 0a 70 61 67 65 72 2e 6c 6f 3a 09 24 28 .c..pager.lo:.$( c3f0: 54 4f 50 29 5c 73 72 63 5c 70 61 67 65 72 2e 63 TOP)\src\pager.c c400: 20 24 28 48 44 52 29 20 24 28 54 4f 50 29 5c 73$(HDR) $(TOP)\s c410: 72 63 5c 70 61 67 65 72 2e 68 0a 09 24 28 4c 54 rc\pager.h..$(LT
c420: 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f COMPILE) $(CORE_ c430: 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 COMPILE_OPTS) -c c440: 20 24 28 54 4f 50 29 5c 73 72 63 5c 70 61 67 65$(TOP)\src\page
c450: 72 2e 63 0a 0a 70 63 61 63 68 65 2e 6c 6f 3a 09 r.c..pcache.lo:.
c460: 24 28 54 4f 50 29 5c 73 72 63 5c 70 63 61 63 68 $(TOP)\src\pcach c470: 65 2e 63 20 24 28 48 44 52 29 20 24 28 54 4f 50 e.c$(HDR) $(TOP c480: 29 5c 73 72 63 5c 70 63 61 63 68 65 2e 68 0a 09 )\src\pcache.h.. c490: 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 43$(LTCOMPILE) $(C c4a0: 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 ORE_COMPILE_OPTS c4b0: 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 5c ) -c$(TOP)\src\
c4c0: 70 63 61 63 68 65 2e 63 0a 0a 70 63 61 63 68 65 pcache.c..pcache
c4d0: 31 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 1.lo:.$(TOP)\src c4e0: 5c 70 63 61 63 68 65 31 2e 63 20 24 28 48 44 52 \pcache1.c$(HDR
c4f0: 29 20 24 28 54 4f 50 29 5c 73 72 63 5c 70 63 61 ) $(TOP)\src\pca c500: 63 68 65 2e 68 0a 09 24 28 4c 54 43 4f 4d 50 49 che.h..$(LTCOMPI
c510: 4c 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 LE) $(CORE_COMPI c520: 4c 45 5f 4f 50 54 53 29 20 2d 63 20 24 28 54 4f LE_OPTS) -c$(TO
c530: 50 29 5c 73 72 63 5c 70 63 61 63 68 65 31 2e 63 P)\src\pcache1.c
c540: 0a 0a 6f 73 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c ..os.lo:.$(TOP)\ c550: 73 72 63 5c 6f 73 2e 63 20 24 28 48 44 52 29 0a src\os.c$(HDR).
c560: 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 .$(LTCOMPILE)$(
c570: 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 CORE_COMPILE_OPT
c580: 53 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 S) -c $(TOP)\src c590: 5c 6f 73 2e 63 0a 0a 6f 73 5f 75 6e 69 78 2e 6c \os.c..os_unix.l c5a0: 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c 6f 73 o:.$(TOP)\src\os
c5b0: 5f 75 6e 69 78 2e 63 20 24 28 48 44 52 29 0a 09 _unix.c $(HDR).. c5c0: 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 43$(LTCOMPILE) $(C c5d0: 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 ORE_COMPILE_OPTS c5e0: 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 5c ) -c$(TOP)\src\
c5f0: 6f 73 5f 75 6e 69 78 2e 63 0a 0a 6f 73 5f 77 69 os_unix.c..os_wi
c600: 6e 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 n.lo:.$(TOP)\src c610: 5c 6f 73 5f 77 69 6e 2e 63 20 24 28 48 44 52 29 \os_win.c$(HDR)
c620: 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 ..$(LTCOMPILE)$
c630: 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 (CORE_COMPILE_OP
c640: 54 53 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 TS) -c $(TOP)\sr c650: 63 5c 6f 73 5f 77 69 6e 2e 63 0a 0a 70 72 61 67 c\os_win.c..prag c660: 6d 61 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 ma.lo:.$(TOP)\sr
c670: 63 5c 70 72 61 67 6d 61 2e 63 20 24 28 48 44 52 c\pragma.c $(HDR c680: 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 )..$(LTCOMPILE)
c690: 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f $(CORE_COMPILE_O c6a0: 50 54 53 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 PTS) -c$(TOP)\s
c6b0: 72 63 5c 70 72 61 67 6d 61 2e 63 0a 0a 70 72 65 rc\pragma.c..pre
c6c0: 70 61 72 65 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c pare.lo:.$(TOP)\ c6d0: 73 72 63 5c 70 72 65 70 61 72 65 2e 63 20 24 28 src\prepare.c$(
c6e0: 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c HDR)..$(LTCOMPIL c6f0: 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c E)$(CORE_COMPIL
c700: 45 5f 4f 50 54 53 29 20 2d 63 20 24 28 54 4f 50 E_OPTS) -c $(TOP c710: 29 5c 73 72 63 5c 70 72 65 70 61 72 65 2e 63 0a )\src\prepare.c. c720: 0a 70 72 69 6e 74 66 2e 6c 6f 3a 09 24 28 54 4f .printf.lo:.$(TO
c730: 50 29 5c 73 72 63 5c 70 72 69 6e 74 66 2e 63 20 P)\src\printf.c
c740: 24 28 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 $(HDR)..$(LTCOMP
c750: 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 ILE) $(CORE_COMP c760: 49 4c 45 5f 4f 50 54 53 29 20 2d 63 20 24 28 54 ILE_OPTS) -c$(T
c770: 4f 50 29 5c 73 72 63 5c 70 72 69 6e 74 66 2e 63 OP)\src\printf.c
c780: 0a 0a 72 61 6e 64 6f 6d 2e 6c 6f 3a 09 24 28 54 ..random.lo:.$(T c790: 4f 50 29 5c 73 72 63 5c 72 61 6e 64 6f 6d 2e 63 OP)\src\random.c c7a0: 20 24 28 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d$(HDR)..$(LTCOM c7b0: 50 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d PILE)$(CORE_COM
c7c0: 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 20 24 28 PILE_OPTS) -c $( c7d0: 54 4f 50 29 5c 73 72 63 5c 72 61 6e 64 6f 6d 2e TOP)\src\random. c7e0: 63 0a 0a 72 65 73 6f 6c 76 65 2e 6c 6f 3a 09 24 c..resolve.lo:.$
c7f0: 28 54 4f 50 29 5c 73 72 63 5c 72 65 73 6f 6c 76 (TOP)\src\resolv
c800: 65 2e 63 20 24 28 48 44 52 29 0a 09 24 28 4c 54 e.c $(HDR)..$(LT
c810: 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f COMPILE) $(CORE_ c820: 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 COMPILE_OPTS) -c c830: 20 24 28 54 4f 50 29 5c 73 72 63 5c 72 65 73 6f$(TOP)\src\reso
c840: 6c 76 65 2e 63 0a 0a 72 6f 77 73 65 74 2e 6c 6f lve.c..rowset.lo
c850: 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c 72 6f 77 :.$(TOP)\src\row c860: 73 65 74 2e 63 20 24 28 48 44 52 29 0a 09 24 28 set.c$(HDR)..$( c870: 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 LTCOMPILE)$(COR
c880: 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 E_COMPILE_OPTS)
c890: 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 5c 72 6f -c $(TOP)\src\ro c8a0: 77 73 65 74 2e 63 0a 0a 73 65 6c 65 63 74 2e 6c wset.c..select.l c8b0: 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c 73 65 o:.$(TOP)\src\se
c8c0: 6c 65 63 74 2e 63 20 24 28 48 44 52 29 0a 09 24 lect.c $(HDR)..$
c8d0: 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f (LTCOMPILE) $(CO c8e0: 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 RE_COMPILE_OPTS) c8f0: 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 5c 73 -c$(TOP)\src\s
c900: 65 6c 65 63 74 2e 63 0a 0a 73 74 61 74 75 73 2e elect.c..status.
c910: 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c 73 lo:.$(TOP)\src\s c920: 74 61 74 75 73 2e 63 20 24 28 48 44 52 29 0a 09 tatus.c$(HDR)..
c930: 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 43 $(LTCOMPILE)$(C
c940: 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 ORE_COMPILE_OPTS
c950: 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 5c ) -c $(TOP)\src\ c960: 73 74 61 74 75 73 2e 63 0a 0a 74 61 62 6c 65 2e status.c..table. c970: 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c 74 lo:.$(TOP)\src\t
c980: 61 62 6c 65 2e 63 20 24 28 48 44 52 29 0a 09 24 able.c $(HDR)..$
c990: 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f (LTCOMPILE) $(CO c9a0: 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 RE_COMPILE_OPTS) c9b0: 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 5c 74 -c$(TOP)\src\t
c9c0: 61 62 6c 65 2e 63 0a 0a 74 68 72 65 61 64 73 2e able.c..threads.
c9d0: 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c 74 lo:.$(TOP)\src\t c9e0: 68 72 65 61 64 73 2e 63 20 24 28 48 44 52 29 0a hreads.c$(HDR).
c9f0: 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 .$(LTCOMPILE)$(
ca00: 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 CORE_COMPILE_OPT
ca10: 53 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 S) -c $(TOP)\src ca20: 5c 74 68 72 65 61 64 73 2e 63 0a 0a 74 6f 6b 65 \threads.c..toke ca30: 6e 69 7a 65 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c nize.lo:.$(TOP)\
ca40: 73 72 63 5c 74 6f 6b 65 6e 69 7a 65 2e 63 20 6b src\tokenize.c k
ca50: 65 79 77 6f 72 64 68 61 73 68 2e 68 20 24 28 48 eywordhash.h $(H ca60: 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 DR)..$(LTCOMPILE
ca70: 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 ) $(CORE_COMPILE ca80: 5f 4f 50 54 53 29 20 2d 63 20 24 28 54 4f 50 29 _OPTS) -c$(TOP)
ca90: 5c 73 72 63 5c 74 6f 6b 65 6e 69 7a 65 2e 63 0a \src\tokenize.c.
caa0: 0a 74 72 65 65 76 69 65 77 2e 6c 6f 3a 09 24 28 .treeview.lo:.$( cab0: 54 4f 50 29 5c 73 72 63 5c 74 72 65 65 76 69 65 TOP)\src\treevie cac0: 77 2e 63 20 24 28 48 44 52 29 0a 09 24 28 4c 54 w.c$(HDR)..$(LT cad0: 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f COMPILE)$(CORE_
cae0: 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 COMPILE_OPTS) -c
caf0: 20 24 28 54 4f 50 29 5c 73 72 63 5c 74 72 65 65 $(TOP)\src\tree cb00: 76 69 65 77 2e 63 0a 0a 74 72 69 67 67 65 72 2e view.c..trigger. cb10: 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c 74 lo:.$(TOP)\src\t
cb20: 72 69 67 67 65 72 2e 63 20 24 28 48 44 52 29 0a rigger.c $(HDR). cb30: 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 .$(LTCOMPILE) $( cb40: 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 CORE_COMPILE_OPT cb50: 53 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 S) -c$(TOP)\src
cb60: 5c 74 72 69 67 67 65 72 2e 63 0a 0a 75 70 64 61 \trigger.c..upda
cb70: 74 65 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 te.lo:.$(TOP)\sr cb80: 63 5c 75 70 64 61 74 65 2e 63 20 24 28 48 44 52 c\update.c$(HDR
cb90: 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 )..$(LTCOMPILE) cba0: 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f$(CORE_COMPILE_O
cbb0: 50 54 53 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 PTS) -c $(TOP)\s cbc0: 72 63 5c 75 70 64 61 74 65 2e 63 0a 0a 75 74 66 rc\update.c..utf cbd0: 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c .lo:.$(TOP)\src\
cbe0: 75 74 66 2e 63 20 24 28 48 44 52 29 0a 09 24 28 utf.c $(HDR)..$(
cbf0: 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 LTCOMPILE) $(COR cc00: 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 E_COMPILE_OPTS) cc10: 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 5c 75 74 -c$(TOP)\src\ut
cc20: 66 2e 63 0a 0a 75 74 69 6c 2e 6c 6f 3a 09 24 28 f.c..util.lo:.$( cc30: 54 4f 50 29 5c 73 72 63 5c 75 74 69 6c 2e 63 20 TOP)\src\util.c cc40: 24 28 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50$(HDR)..$(LTCOMP cc50: 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 ILE)$(CORE_COMP
cc60: 49 4c 45 5f 4f 50 54 53 29 20 2d 63 20 24 28 54 ILE_OPTS) -c $(T cc70: 4f 50 29 5c 73 72 63 5c 75 74 69 6c 2e 63 0a 0a OP)\src\util.c.. cc80: 76 61 63 75 75 6d 2e 6c 6f 3a 09 24 28 54 4f 50 vacuum.lo:.$(TOP
cc90: 29 5c 73 72 63 5c 76 61 63 75 75 6d 2e 63 20 24 )\src\vacuum.c $cca0: 28 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 (HDR)..$(LTCOMPI
ccb0: 4c 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 LE) $(CORE_COMPI ccc0: 4c 45 5f 4f 50 54 53 29 20 2d 63 20 24 28 54 4f LE_OPTS) -c$(TO
ccd0: 50 29 5c 73 72 63 5c 76 61 63 75 75 6d 2e 63 0a P)\src\vacuum.c.
cce0: 0a 76 64 62 65 2e 6c 6f 3a 09 24 28 54 4f 50 29 .vdbe.lo:.$(TOP) ccf0: 5c 73 72 63 5c 76 64 62 65 2e 63 20 24 28 48 44 \src\vdbe.c$(HD
cd00: 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 R)..$(LTCOMPILE) cd10: 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f$(CORE_COMPILE_
cd20: 4f 50 54 53 29 20 2d 63 20 24 28 54 4f 50 29 5c OPTS) -c $(TOP)\ cd30: 73 72 63 5c 76 64 62 65 2e 63 0a 0a 76 64 62 65 src\vdbe.c..vdbe cd40: 61 70 69 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 api.lo:.$(TOP)\s
cd50: 72 63 5c 76 64 62 65 61 70 69 2e 63 20 24 28 48 rc\vdbeapi.c $(H cd60: 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 DR)..$(LTCOMPILE
cd70: 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 ) $(CORE_COMPILE cd80: 5f 4f 50 54 53 29 20 2d 63 20 24 28 54 4f 50 29 _OPTS) -c$(TOP)
cd90: 5c 73 72 63 5c 76 64 62 65 61 70 69 2e 63 0a 0a \src\vdbeapi.c..
cda0: 76 64 62 65 61 75 78 2e 6c 6f 3a 09 24 28 54 4f vdbeaux.lo:.$(TO cdb0: 50 29 5c 73 72 63 5c 76 64 62 65 61 75 78 2e 63 P)\src\vdbeaux.c cdc0: 20 24 28 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d$(HDR)..$(LTCOM cdd0: 50 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d PILE)$(CORE_COM
cde0: 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 20 24 28 PILE_OPTS) -c $( cdf0: 54 4f 50 29 5c 73 72 63 5c 76 64 62 65 61 75 78 TOP)\src\vdbeaux ce00: 2e 63 0a 0a 76 64 62 65 62 6c 6f 62 2e 6c 6f 3a .c..vdbeblob.lo: ce10: 09 24 28 54 4f 50 29 5c 73 72 63 5c 76 64 62 65 .$(TOP)\src\vdbe
ce20: 62 6c 6f 62 2e 63 20 24 28 48 44 52 29 0a 09 24 blob.c $(HDR)..$
ce30: 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f (LTCOMPILE) $(CO ce40: 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 RE_COMPILE_OPTS) ce50: 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 5c 76 -c$(TOP)\src\v
ce60: 64 62 65 62 6c 6f 62 2e 63 0a 0a 76 64 62 65 6d dbeblob.c..vdbem
ce70: 65 6d 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 em.lo:.$(TOP)\sr ce80: 63 5c 76 64 62 65 6d 65 6d 2e 63 20 24 28 48 44 c\vdbemem.c$(HD
ce90: 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 R)..$(LTCOMPILE) cea0: 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f$(CORE_COMPILE_
ceb0: 4f 50 54 53 29 20 2d 63 20 24 28 54 4f 50 29 5c OPTS) -c $(TOP)\ cec0: 73 72 63 5c 76 64 62 65 6d 65 6d 2e 63 0a 0a 76 src\vdbemem.c..v ced0: 64 62 65 73 6f 72 74 2e 6c 6f 3a 09 24 28 54 4f dbesort.lo:.$(TO
cee0: 50 29 5c 73 72 63 5c 76 64 62 65 73 6f 72 74 2e P)\src\vdbesort.
cef0: 63 20 24 28 48 44 52 29 0a 09 24 28 4c 54 43 4f c $(HDR)..$(LTCO
cf00: 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 4f MPILE) $(CORE_CO cf10: 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 20 24 MPILE_OPTS) -c$
cf20: 28 54 4f 50 29 5c 73 72 63 5c 76 64 62 65 73 6f (TOP)\src\vdbeso
cf30: 72 74 2e 63 0a 0a 76 64 62 65 74 72 61 63 65 2e rt.c..vdbetrace.
cf40: 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c 76 lo:.$(TOP)\src\v cf50: 64 62 65 74 72 61 63 65 2e 63 20 24 28 48 44 52 dbetrace.c$(HDR
cf60: 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 )..$(LTCOMPILE) cf70: 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f$(CORE_COMPILE_O
cf80: 50 54 53 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 PTS) -c $(TOP)\s cf90: 72 63 5c 76 64 62 65 74 72 61 63 65 2e 63 0a 0a rc\vdbetrace.c.. cfa0: 76 74 61 62 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c vtab.lo:.$(TOP)\
cfb0: 73 72 63 5c 76 74 61 62 2e 63 20 24 28 48 44 52 src\vtab.c $(HDR cfc0: 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 )..$(LTCOMPILE)
cfd0: 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f $(CORE_COMPILE_O cfe0: 50 54 53 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 PTS) -c$(TOP)\s
cff0: 72 63 5c 76 74 61 62 2e 63 0a 0a 77 61 6c 2e 6c rc\vtab.c..wal.l
d000: 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c 77 61 o:.$(TOP)\src\wa d010: 6c 2e 63 20 24 28 48 44 52 29 0a 09 24 28 4c 54 l.c$(HDR)..$(LT d020: 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f COMPILE)$(CORE_
d030: 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 COMPILE_OPTS) -c
d040: 20 24 28 54 4f 50 29 5c 73 72 63 5c 77 61 6c 2e $(TOP)\src\wal. d050: 63 0a 0a 77 61 6c 6b 65 72 2e 6c 6f 3a 09 24 28 c..walker.lo:.$(
d060: 54 4f 50 29 5c 73 72 63 5c 77 61 6c 6b 65 72 2e TOP)\src\walker.
d070: 63 20 24 28 48 44 52 29 0a 09 24 28 4c 54 43 4f c $(HDR)..$(LTCO
d080: 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 4f MPILE) $(CORE_CO d090: 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 20 24 MPILE_OPTS) -c$
d0a0: 28 54 4f 50 29 5c 73 72 63 5c 77 61 6c 6b 65 72 (TOP)\src\walker
d0b0: 2e 63 0a 0a 77 68 65 72 65 2e 6c 6f 3a 09 24 28 .c..where.lo:.$( d0c0: 54 4f 50 29 5c 73 72 63 5c 77 68 65 72 65 2e 63 TOP)\src\where.c d0d0: 20 24 28 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d$(HDR)..$(LTCOM d0e0: 50 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d PILE)$(CORE_COM
d0f0: 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 20 24 28 PILE_OPTS) -c $( d100: 54 4f 50 29 5c 73 72 63 5c 77 68 65 72 65 2e 63 TOP)\src\where.c d110: 0a 0a 77 68 65 72 65 63 6f 64 65 2e 6c 6f 3a 09 ..wherecode.lo:. d120: 24 28 54 4f 50 29 5c 73 72 63 5c 77 68 65 72 65$(TOP)\src\where
d130: 63 6f 64 65 2e 63 20 24 28 48 44 52 29 0a 09 24 code.c $(HDR)..$
d140: 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f (LTCOMPILE) $(CO d150: 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 RE_COMPILE_OPTS) d160: 20 2d 63 20 24 28 54 4f 50 29 5c 73 72 63 5c 77 -c$(TOP)\src\w
d170: 68 65 72 65 63 6f 64 65 2e 63 0a 0a 77 68 65 72 herecode.c..wher
d180: 65 65 78 70 72 2e 6c 6f 3a 09 24 28 54 4f 50 29 eexpr.lo:.$(TOP) d190: 5c 73 72 63 5c 77 68 65 72 65 65 78 70 72 2e 63 \src\whereexpr.c d1a0: 20 24 28 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d$(HDR)..$(LTCOM d1b0: 50 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d PILE)$(CORE_COM
d1c0: 50 49 4c 45 5f 4f 50 54 53 29 20 2d 63 20 24 28 PILE_OPTS) -c $( d1d0: 54 4f 50 29 5c 73 72 63 5c 77 68 65 72 65 65 78 TOP)\src\whereex d1e0: 70 72 2e 63 0a 0a 74 63 6c 73 71 6c 69 74 65 2e pr.c..tclsqlite. d1f0: 6c 6f 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c 74 lo:.$(TOP)\src\t
d200: 63 6c 73 71 6c 69 74 65 2e 63 20 24 28 48 44 52 clsqlite.c $(HDR d210: 29 20 24 28 53 51 4c 49 54 45 5f 54 43 4c 5f 44 )$(SQLITE_TCL_D
d220: 45 50 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 EP)..$(LTCOMPILE d230: 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 2d 44 55 )$(NO_WARN) -DU
d240: 53 45 5f 54 43 4c 5f 53 54 55 42 53 3d 31 20 2d SE_TCL_STUBS=1 -
d250: 44 42 55 49 4c 44 5f 73 71 6c 69 74 65 20 2d 49 DBUILD_sqlite -I
d260: 24 28 54 43 4c 49 4e 43 44 49 52 29 20 2d 63 20 $(TCLINCDIR) -c d270: 24 28 54 4f 50 29 5c 73 72 63 5c 74 63 6c 73 71$(TOP)\src\tclsq
d280: 6c 69 74 65 2e 63 0a 0a 74 63 6c 73 71 6c 69 74 lite.c..tclsqlit
d290: 65 2d 73 68 65 6c 6c 2e 6c 6f 3a 09 24 28 54 4f e-shell.lo:.$(TO d2a0: 50 29 5c 73 72 63 5c 74 63 6c 73 71 6c 69 74 65 P)\src\tclsqlite d2b0: 2e 63 20 24 28 48 44 52 29 20 24 28 53 51 4c 49 .c$(HDR) $(SQLI d2c0: 54 45 5f 54 43 4c 5f 44 45 50 29 0a 09 24 28 4c TE_TCL_DEP)..$(L
d2d0: 54 43 4f 4d 50 49 4c 45 29 20 24 28 4e 4f 5f 57 TCOMPILE) $(NO_W d2e0: 41 52 4e 29 20 2d 44 54 43 4c 53 48 3d 31 20 2d ARN) -DTCLSH=1 - d2f0: 44 42 55 49 4c 44 5f 73 71 6c 69 74 65 20 2d 49 DBUILD_sqlite -I d300: 24 28 54 43 4c 49 4e 43 44 49 52 29 20 2d 63 20$(TCLINCDIR) -c
d310: 24 28 54 4f 50 29 5c 73 72 63 5c 74 63 6c 73 71 $(TOP)\src\tclsq d320: 6c 69 74 65 2e 63 0a 0a 74 63 6c 73 71 6c 69 74 lite.c..tclsqlit d330: 65 33 2e 65 78 65 3a 09 74 63 6c 73 71 6c 69 74 e3.exe:.tclsqlit d340: 65 2d 73 68 65 6c 6c 2e 6c 6f 20 24 28 53 51 4c e-shell.lo$(SQL
d350: 49 54 45 33 43 29 20 24 28 53 51 4c 49 54 45 33 ITE3C) $(SQLITE3 d360: 48 29 20 24 28 4c 49 42 52 45 53 4f 42 4a 53 29 H)$(LIBRESOBJS)
d370: 0a 09 24 28 4c 54 4c 49 4e 4b 29 20 24 28 53 51 ..$(LTLINK)$(SQ
d380: 4c 49 54 45 33 43 29 20 2f 6c 69 6e 6b 20 24 28 LITE3C) /link $( d390: 4c 44 46 4c 41 47 53 29 20 24 28 4c 54 4c 49 4e LDFLAGS)$(LTLIN
d3a0: 4b 4f 50 54 53 29 20 24 28 4c 54 4c 49 42 50 41 KOPTS) $(LTLIBPA d3b0: 54 48 53 29 20 2f 4f 55 54 3a 24 40 20 74 63 6c THS) /OUT:$@ tcl
d3c0: 73 71 6c 69 74 65 2d 73 68 65 6c 6c 2e 6c 6f 20 sqlite-shell.lo
d3d0: 24 28 4c 49 42 52 45 53 4f 42 4a 53 29 20 24 28 $(LIBRESOBJS)$(
d3e0: 4c 54 4c 49 42 53 29 20 24 28 54 4c 49 42 53 29 LTLIBS) $(TLIBS) d3f0: 0a 0a 23 20 52 75 6c 65 73 20 74 6f 20 62 75 69 ..# Rules to bui d400: 6c 64 20 6f 70 63 6f 64 65 73 2e 63 20 61 6e 64 ld opcodes.c and d410: 20 6f 70 63 6f 64 65 73 2e 68 0a 23 0a 6f 70 63 opcodes.h.#.opc d420: 6f 64 65 73 2e 63 3a 09 6f 70 63 6f 64 65 73 2e odes.c:.opcodes. d430: 68 20 24 28 54 4f 50 29 5c 74 6f 6f 6c 5c 6d 6b h$(TOP)\tool\mk
d440: 6f 70 63 6f 64 65 63 2e 74 63 6c 0a 09 24 28 54 opcodec.tcl..$(T d450: 43 4c 53 48 5f 43 4d 44 29 20 24 28 54 4f 50 29 CLSH_CMD)$(TOP)
d460: 5c 74 6f 6f 6c 5c 6d 6b 6f 70 63 6f 64 65 63 2e \tool\mkopcodec.
d470: 74 63 6c 20 6f 70 63 6f 64 65 73 2e 68 20 3e 20 tcl opcodes.h >
d480: 6f 70 63 6f 64 65 73 2e 63 0a 0a 6f 70 63 6f 64 opcodes.c..opcod
d490: 65 73 2e 68 3a 09 70 61 72 73 65 2e 68 20 24 28 es.h:.parse.h $( d4a0: 54 4f 50 29 5c 73 72 63 5c 76 64 62 65 2e 63 20 TOP)\src\vdbe.c d4b0: 24 28 54 4f 50 29 5c 74 6f 6f 6c 5c 6d 6b 6f 70$(TOP)\tool\mkop
d4c0: 63 6f 64 65 68 2e 74 63 6c 0a 09 74 79 70 65 20 codeh.tcl..type
d4d0: 70 61 72 73 65 2e 68 20 24 28 54 4f 50 29 5c 73 parse.h $(TOP)\s d4e0: 72 63 5c 76 64 62 65 2e 63 20 7c 20 24 28 54 43 rc\vdbe.c |$(TC
d4f0: 4c 53 48 5f 43 4d 44 29 20 24 28 54 4f 50 29 5c LSH_CMD) $(TOP)\ d500: 74 6f 6f 6c 5c 6d 6b 6f 70 63 6f 64 65 68 2e 74 tool\mkopcodeh.t d510: 63 6c 20 3e 20 6f 70 63 6f 64 65 73 2e 68 0a 0a cl > opcodes.h.. d520: 23 20 52 75 6c 65 73 20 74 6f 20 62 75 69 6c 64 # Rules to build d530: 20 70 61 72 73 65 2e 63 20 61 6e 64 20 70 61 72 parse.c and par d540: 73 65 2e 68 20 2d 20 74 68 65 20 6f 75 74 70 75 se.h - the outpu d550: 74 73 20 6f 66 20 6c 65 6d 6f 6e 2e 0a 23 0a 70 ts of lemon..#.p d560: 61 72 73 65 2e 68 3a 09 70 61 72 73 65 2e 63 0a arse.h:.parse.c. d570: 0a 70 61 72 73 65 2e 63 3a 09 24 28 54 4f 50 29 .parse.c:.$(TOP)
d580: 5c 73 72 63 5c 70 61 72 73 65 2e 79 20 6c 65 6d \src\parse.y lem
d590: 6f 6e 2e 65 78 65 20 24 28 54 4f 50 29 5c 74 6f on.exe $(TOP)\to d5a0: 6f 6c 5c 61 64 64 6f 70 63 6f 64 65 73 2e 74 63 ol\addopcodes.tc d5b0: 6c 0a 09 64 65 6c 20 2f 51 20 70 61 72 73 65 2e l..del /Q parse. d5c0: 79 20 70 61 72 73 65 2e 68 20 70 61 72 73 65 2e y parse.h parse. d5d0: 68 2e 74 65 6d 70 20 32 3e 4e 55 4c 0a 09 63 6f h.temp 2>NUL..co d5e0: 70 79 20 24 28 54 4f 50 29 5c 73 72 63 5c 70 61 py$(TOP)\src\pa
d5f0: 72 73 65 2e 79 20 2e 0a 09 2e 5c 6c 65 6d 6f 6e rse.y ....\lemon
d600: 2e 65 78 65 20 24 28 52 45 51 5f 46 45 41 54 55 .exe $(REQ_FEATU d610: 52 45 5f 46 4c 41 47 53 29 20 24 28 4f 50 54 5f RE_FLAGS)$(OPT_
d620: 46 45 41 54 55 52 45 5f 46 4c 41 47 53 29 20 24 FEATURE_FLAGS) $d630: 28 45 58 54 5f 46 45 41 54 55 52 45 5f 46 4c 41 (EXT_FEATURE_FLA d640: 47 53 29 20 24 28 4f 50 54 53 29 20 70 61 72 73 GS)$(OPTS) pars
d650: 65 2e 79 0a 09 6d 6f 76 65 20 70 61 72 73 65 2e e.y..move parse.
d660: 68 20 70 61 72 73 65 2e 68 2e 74 65 6d 70 0a 09 h parse.h.temp..
d670: 24 28 54 43 4c 53 48 5f 43 4d 44 29 20 24 28 54 $(TCLSH_CMD)$(T
d680: 4f 50 29 5c 74 6f 6f 6c 5c 61 64 64 6f 70 63 6f OP)\tool\addopco
d690: 64 65 73 2e 74 63 6c 20 70 61 72 73 65 2e 68 2e des.tcl parse.h.
d6a0: 74 65 6d 70 20 3e 20 70 61 72 73 65 2e 68 0a 0a temp > parse.h..
d6b0: 24 28 53 51 4c 49 54 45 33 48 29 3a 09 24 28 54 $(SQLITE3H):.$(T
d6c0: 4f 50 29 5c 73 72 63 5c 73 71 6c 69 74 65 2e 68 OP)\src\sqlite.h
d6d0: 2e 69 6e 20 24 28 54 4f 50 29 5c 6d 61 6e 69 66 .in $(TOP)\manif d6e0: 65 73 74 2e 75 75 69 64 20 24 28 54 4f 50 29 5c est.uuid$(TOP)\
d6f0: 56 45 52 53 49 4f 4e 0a 09 24 28 54 43 4c 53 48 VERSION..$(TCLSH d700: 5f 43 4d 44 29 20 24 28 54 4f 50 29 5c 74 6f 6f _CMD)$(TOP)\too
d710: 6c 5c 6d 6b 73 71 6c 69 74 65 33 68 2e 74 63 6c l\mksqlite3h.tcl
d720: 20 24 28 54 4f 50 3a 5c 3d 2f 29 20 3e 20 24 28 $(TOP:\=/) >$(
d730: 53 51 4c 49 54 45 33 48 29 20 24 28 4d 4b 53 51 SQLITE3H) $(MKSQ d740: 4c 49 54 45 33 48 5f 41 52 47 53 29 0a 0a 73 71 LITE3H_ARGS)..sq d750: 6c 69 74 65 33 65 78 74 2e 68 3a 09 2e 74 61 72 lite3ext.h:..tar d760: 67 65 74 5f 73 6f 75 72 63 65 0a 21 49 46 20 24 get_source.!IF$
d770: 28 55 53 45 5f 53 54 44 43 41 4c 4c 29 21 3d 30 (USE_STDCALL)!=0
d780: 20 7c 7c 20 24 28 46 4f 52 5f 57 49 4e 31 30 29 || $(FOR_WIN10) d790: 21 3d 30 0a 09 74 79 70 65 20 74 73 72 63 5c 73 !=0..type tsrc\s d7a0: 71 6c 69 74 65 33 65 78 74 2e 68 20 7c 20 24 28 qlite3ext.h |$(
d7b0: 54 43 4c 53 48 5f 43 4d 44 29 20 24 28 54 4f 50 TCLSH_CMD) $(TOP d7c0: 29 5c 74 6f 6f 6c 5c 72 65 70 6c 61 63 65 2e 74 )\tool\replace.t d7d0: 63 6c 20 72 65 67 73 75 62 20 22 5c 28 5c 2a 5c cl regsub "\(\*\ d7e0: 29 22 20 22 28 53 51 4c 49 54 45 5f 43 41 4c 4c )" "(SQLITE_CALL d7f0: 42 41 43 4b 20 2a 29 22 20 5c 0a 09 09 7c 20 24 BACK *)" \...|$
d800: 28 54 43 4c 53 48 5f 43 4d 44 29 20 24 28 54 4f (TCLSH_CMD) $(TO d810: 50 29 5c 74 6f 6f 6c 5c 72 65 70 6c 61 63 65 2e P)\tool\replace. d820: 74 63 6c 20 72 65 67 73 75 62 20 22 5c 28 5c 2a tcl regsub "\(\* d830: 22 20 22 28 53 51 4c 49 54 45 5f 41 50 49 43 41 " "(SQLITE_APICA d840: 4c 4c 20 2a 22 20 3e 20 73 71 6c 69 74 65 33 65 LL *" > sqlite3e d850: 78 74 2e 68 0a 09 63 6f 70 79 20 2f 59 20 73 71 xt.h..copy /Y sq d860: 6c 69 74 65 33 65 78 74 2e 68 20 74 73 72 63 5c lite3ext.h tsrc\ d870: 73 71 6c 69 74 65 33 65 78 74 2e 68 0a 21 45 4c sqlite3ext.h.!EL d880: 53 45 0a 09 63 6f 70 79 20 2f 59 20 74 73 72 63 SE..copy /Y tsrc d890: 5c 73 71 6c 69 74 65 33 65 78 74 2e 68 20 73 71 \sqlite3ext.h sq d8a0: 6c 69 74 65 33 65 78 74 2e 68 0a 21 45 4e 44 49 lite3ext.h.!ENDI d8b0: 46 0a 0a 6d 6b 6b 65 79 77 6f 72 64 68 61 73 68 F..mkkeywordhash d8c0: 2e 65 78 65 3a 09 24 28 54 4f 50 29 5c 74 6f 6f .exe:.$(TOP)\too
d8d0: 6c 5c 6d 6b 6b 65 79 77 6f 72 64 68 61 73 68 2e l\mkkeywordhash.
d8e0: 63 0a 09 24 28 42 43 43 29 20 24 28 4e 4f 5f 57 c..$(BCC)$(NO_W
d8f0: 41 52 4e 29 20 2d 46 65 24 40 20 24 28 52 45 51 ARN) -Fe$@$(REQ
d900: 5f 46 45 41 54 55 52 45 5f 46 4c 41 47 53 29 20 _FEATURE_FLAGS)
d910: 24 28 4f 50 54 5f 46 45 41 54 55 52 45 5f 46 4c $(OPT_FEATURE_FL d920: 41 47 53 29 20 24 28 45 58 54 5f 46 45 41 54 55 AGS)$(EXT_FEATU
d930: 52 45 5f 46 4c 41 47 53 29 20 24 28 4f 50 54 53 RE_FLAGS) $(OPTS d940: 29 20 5c 0a 09 09 24 28 54 4f 50 29 5c 74 6f 6f ) \...$(TOP)\too
d950: 6c 5c 6d 6b 6b 65 79 77 6f 72 64 68 61 73 68 2e l\mkkeywordhash.
d960: 63 20 2f 6c 69 6e 6b 20 24 28 4c 44 46 4c 41 47 c /link $(LDFLAG d970: 53 29 20 24 28 4e 4c 54 4c 49 4e 4b 4f 50 54 53 S)$(NLTLINKOPTS
d980: 29 20 24 28 4e 4c 54 4c 49 42 50 41 54 48 53 29 ) $(NLTLIBPATHS) d990: 0a 0a 6b 65 79 77 6f 72 64 68 61 73 68 2e 68 3a ..keywordhash.h: d9a0: 09 24 28 54 4f 50 29 5c 74 6f 6f 6c 5c 6d 6b 6b .$(TOP)\tool\mkk
d9b0: 65 79 77 6f 72 64 68 61 73 68 2e 63 20 6d 6b 6b eywordhash.c mkk
d9c0: 65 79 77 6f 72 64 68 61 73 68 2e 65 78 65 0a 09 eywordhash.exe..
d9d0: 2e 5c 6d 6b 6b 65 79 77 6f 72 64 68 61 73 68 2e .\mkkeywordhash.
d9e0: 65 78 65 20 3e 20 6b 65 79 77 6f 72 64 68 61 73 exe > keywordhas
d9f0: 68 2e 68 0a 0a 0a 0a 23 20 52 75 6c 65 73 20 74 h.h....# Rules t
da00: 6f 20 62 75 69 6c 64 20 74 68 65 20 65 78 74 65 o build the exte
da10: 6e 73 69 6f 6e 20 6f 62 6a 65 63 74 73 2e 0a 23 nsion objects..#
da20: 0a 69 63 75 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c .icu.lo:.$(TOP)\ da30: 65 78 74 5c 69 63 75 5c 69 63 75 2e 63 20 24 28 ext\icu\icu.c$(
da40: 48 44 52 29 20 24 28 45 58 54 48 44 52 29 0a 09 HDR) $(EXTHDR).. da50: 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 43$(LTCOMPILE) $(C da60: 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 ORE_COMPILE_OPTS da70: 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 2d 44 53 )$(NO_WARN) -DS
da80: 51 4c 49 54 45 5f 43 4f 52 45 20 2d 63 20 24 28 QLITE_CORE -c $( da90: 54 4f 50 29 5c 65 78 74 5c 69 63 75 5c 69 63 75 TOP)\ext\icu\icu daa0: 2e 63 0a 0a 66 74 73 32 2e 6c 6f 3a 09 24 28 54 .c..fts2.lo:.$(T
dab0: 4f 50 29 5c 65 78 74 5c 66 74 73 32 5c 66 74 73 OP)\ext\fts2\fts
dac0: 32 2e 63 20 24 28 48 44 52 29 20 24 28 45 58 54 2.c $(HDR)$(EXT
dad0: 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c HDR)..$(LTCOMPIL dae0: 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c E)$(CORE_COMPIL
daf0: 45 5f 4f 50 54 53 29 20 24 28 4e 4f 5f 57 41 52 E_OPTS) $(NO_WAR db00: 4e 29 20 2d 44 53 51 4c 49 54 45 5f 43 4f 52 45 N) -DSQLITE_CORE db10: 20 2d 63 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 -c$(TOP)\ext\f
db20: 74 73 32 5c 66 74 73 32 2e 63 0a 0a 66 74 73 32 ts2\fts2.c..fts2
db30: 5f 68 61 73 68 2e 6c 6f 3a 09 24 28 54 4f 50 29 _hash.lo:.$(TOP) db40: 5c 65 78 74 5c 66 74 73 32 5c 66 74 73 32 5f 68 \ext\fts2\fts2_h db50: 61 73 68 2e 63 20 24 28 48 44 52 29 20 24 28 45 ash.c$(HDR) $(E db60: 58 54 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 XTHDR)..$(LTCOMP
db70: 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 ILE) $(CORE_COMP db80: 49 4c 45 5f 4f 50 54 53 29 20 24 28 4e 4f 5f 57 ILE_OPTS)$(NO_W
db90: 41 52 4e 29 20 2d 44 53 51 4c 49 54 45 5f 43 4f ARN) -DSQLITE_CO
dba0: 52 45 20 2d 63 20 24 28 54 4f 50 29 5c 65 78 74 RE -c $(TOP)\ext dbb0: 5c 66 74 73 32 5c 66 74 73 32 5f 68 61 73 68 2e \fts2\fts2_hash. dbc0: 63 0a 0a 66 74 73 32 5f 69 63 75 2e 6c 6f 3a 09 c..fts2_icu.lo:. dbd0: 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 32 5c$(TOP)\ext\fts2\
dbe0: 66 74 73 32 5f 69 63 75 2e 63 20 24 28 48 44 52 fts2_icu.c $(HDR dbf0: 29 20 24 28 45 58 54 48 44 52 29 0a 09 24 28 4c )$(EXTHDR)..$(L dc00: 54 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 TCOMPILE)$(CORE
dc10: 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 24 _COMPILE_OPTS) $dc20: 28 4e 4f 5f 57 41 52 4e 29 20 2d 44 53 51 4c 49 (NO_WARN) -DSQLI dc30: 54 45 5f 43 4f 52 45 20 2d 63 20 24 28 54 4f 50 TE_CORE -c$(TOP
dc40: 29 5c 65 78 74 5c 66 74 73 32 5c 66 74 73 32 5f )\ext\fts2\fts2_
dc50: 69 63 75 2e 63 0a 0a 66 74 73 32 5f 70 6f 72 74 icu.c..fts2_port
dc60: 65 72 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 65 78 er.lo:.$(TOP)\ex dc70: 74 5c 66 74 73 32 5c 66 74 73 32 5f 70 6f 72 74 t\fts2\fts2_port dc80: 65 72 2e 63 20 24 28 48 44 52 29 20 24 28 45 58 er.c$(HDR) $(EX dc90: 54 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 THDR)..$(LTCOMPI
dca0: 4c 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 LE) $(CORE_COMPI dcb0: 4c 45 5f 4f 50 54 53 29 20 24 28 4e 4f 5f 57 41 LE_OPTS)$(NO_WA
dcc0: 52 4e 29 20 2d 44 53 51 4c 49 54 45 5f 43 4f 52 RN) -DSQLITE_COR
dcd0: 45 20 2d 63 20 24 28 54 4f 50 29 5c 65 78 74 5c E -c $(TOP)\ext\ dce0: 66 74 73 32 5c 66 74 73 32 5f 70 6f 72 74 65 72 fts2\fts2_porter dcf0: 2e 63 0a 0a 66 74 73 32 5f 74 6f 6b 65 6e 69 7a .c..fts2_tokeniz dd00: 65 72 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 65 78 er.lo:.$(TOP)\ex
dd10: 74 5c 66 74 73 32 5c 66 74 73 32 5f 74 6f 6b 65 t\fts2\fts2_toke
dd20: 6e 69 7a 65 72 2e 63 20 24 28 48 44 52 29 20 24 nizer.c $(HDR)$
dd30: 28 45 58 54 48 44 52 29 0a 09 24 28 4c 54 43 4f (EXTHDR)..$(LTCO dd40: 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 4f MPILE)$(CORE_CO
dd50: 4d 50 49 4c 45 5f 4f 50 54 53 29 20 24 28 4e 4f MPILE_OPTS) $(NO dd60: 5f 57 41 52 4e 29 20 2d 44 53 51 4c 49 54 45 5f _WARN) -DSQLITE_ dd70: 43 4f 52 45 20 2d 63 20 24 28 54 4f 50 29 5c 65 CORE -c$(TOP)\e
dd80: 78 74 5c 66 74 73 32 5c 66 74 73 32 5f 74 6f 6b xt\fts2\fts2_tok
dd90: 65 6e 69 7a 65 72 2e 63 0a 0a 66 74 73 32 5f 74 enizer.c..fts2_t
dda0: 6f 6b 65 6e 69 7a 65 72 31 2e 6c 6f 3a 09 24 28 okenizer1.lo:.$( ddb0: 54 4f 50 29 5c 65 78 74 5c 66 74 73 32 5c 66 74 TOP)\ext\fts2\ft ddc0: 73 32 5f 74 6f 6b 65 6e 69 7a 65 72 31 2e 63 20 s2_tokenizer1.c ddd0: 24 28 48 44 52 29 20 24 28 45 58 54 48 44 52 29$(HDR) $(EXTHDR) dde0: 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 ..$(LTCOMPILE) $ddf0: 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 (CORE_COMPILE_OP de00: 54 53 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 2d TS)$(NO_WARN) -
de10: 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d 63 20 DSQLITE_CORE -c
de20: 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 32 5c $(TOP)\ext\fts2\ de30: 66 74 73 32 5f 74 6f 6b 65 6e 69 7a 65 72 31 2e fts2_tokenizer1. de40: 63 0a 0a 66 74 73 33 2e 6c 6f 3a 09 24 28 54 4f c..fts3.lo:.$(TO
de50: 50 29 5c 65 78 74 5c 66 74 73 33 5c 66 74 73 33 P)\ext\fts3\fts3
de60: 2e 63 20 24 28 48 44 52 29 20 24 28 45 58 54 48 .c $(HDR)$(EXTH
de70: 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 DR)..$(LTCOMPILE de80: 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 )$(CORE_COMPILE
de90: 5f 4f 50 54 53 29 20 24 28 4e 4f 5f 57 41 52 4e _OPTS) $(NO_WARN dea0: 29 20 2d 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 ) -DSQLITE_CORE deb0: 2d 63 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 -c$(TOP)\ext\ft
dec0: 73 33 5c 66 74 73 33 2e 63 0a 0a 66 74 73 33 5f s3\fts3.c..fts3_
ded0: 61 75 78 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 65 aux.lo:.$(TOP)\e dee0: 78 74 5c 66 74 73 33 5c 66 74 73 33 5f 61 75 78 xt\fts3\fts3_aux def0: 2e 63 20 24 28 48 44 52 29 20 24 28 45 58 54 48 .c$(HDR) $(EXTH df00: 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 DR)..$(LTCOMPILE
df10: 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 ) $(CORE_COMPILE df20: 5f 4f 50 54 53 29 20 24 28 4e 4f 5f 57 41 52 4e _OPTS)$(NO_WARN
df30: 29 20 2d 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 ) -DSQLITE_CORE
df40: 2d 63 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 -c $(TOP)\ext\ft df50: 73 33 5c 66 74 73 33 5f 61 75 78 2e 63 0a 0a 66 s3\fts3_aux.c..f df60: 74 73 33 5f 65 78 70 72 2e 6c 6f 3a 09 24 28 54 ts3_expr.lo:.$(T
df70: 4f 50 29 5c 65 78 74 5c 66 74 73 33 5c 66 74 73 OP)\ext\fts3\fts
df80: 33 5f 65 78 70 72 2e 63 20 24 28 48 44 52 29 20 3_expr.c $(HDR) df90: 24 28 45 58 54 48 44 52 29 0a 09 24 28 4c 54 43$(EXTHDR)..$(LTC dfa0: 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 OMPILE)$(CORE_C
dfb0: 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 24 28 4e OMPILE_OPTS) $(N dfc0: 4f 5f 57 41 52 4e 29 20 2d 44 53 51 4c 49 54 45 O_WARN) -DSQLITE dfd0: 5f 43 4f 52 45 20 2d 63 20 24 28 54 4f 50 29 5c _CORE -c$(TOP)\
dfe0: 65 78 74 5c 66 74 73 33 5c 66 74 73 33 5f 65 78 ext\fts3\fts3_ex
dff0: 70 72 2e 63 0a 0a 66 74 73 33 5f 68 61 73 68 2e pr.c..fts3_hash.
e000: 6c 6f 3a 09 24 28 54 4f 50 29 5c 65 78 74 5c 66 lo:.$(TOP)\ext\f e010: 74 73 33 5c 66 74 73 33 5f 68 61 73 68 2e 63 20 ts3\fts3_hash.c e020: 24 28 48 44 52 29 20 24 28 45 58 54 48 44 52 29$(HDR) $(EXTHDR) e030: 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 ..$(LTCOMPILE) $e040: 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 (CORE_COMPILE_OP e050: 54 53 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 2d TS)$(NO_WARN) -
e060: 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d 63 20 DSQLITE_CORE -c
e070: 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 33 5c $(TOP)\ext\fts3\ e080: 66 74 73 33 5f 68 61 73 68 2e 63 0a 0a 66 74 73 fts3_hash.c..fts e090: 33 5f 69 63 75 2e 6c 6f 3a 09 24 28 54 4f 50 29 3_icu.lo:.$(TOP)
e0a0: 5c 65 78 74 5c 66 74 73 33 5c 66 74 73 33 5f 69 \ext\fts3\fts3_i
e0b0: 63 75 2e 63 20 24 28 48 44 52 29 20 24 28 45 58 cu.c $(HDR)$(EX
e0c0: 54 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 THDR)..$(LTCOMPI e0d0: 4c 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 LE)$(CORE_COMPI
e0e0: 4c 45 5f 4f 50 54 53 29 20 24 28 4e 4f 5f 57 41 LE_OPTS) $(NO_WA e0f0: 52 4e 29 20 2d 44 53 51 4c 49 54 45 5f 43 4f 52 RN) -DSQLITE_COR e100: 45 20 2d 63 20 24 28 54 4f 50 29 5c 65 78 74 5c E -c$(TOP)\ext\
e110: 66 74 73 33 5c 66 74 73 33 5f 69 63 75 2e 63 0a fts3\fts3_icu.c.
e120: 0a 66 74 73 33 5f 73 6e 69 70 70 65 74 2e 6c 6f .fts3_snippet.lo
e130: 3a 09 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 :.$(TOP)\ext\fts e140: 33 5c 66 74 73 33 5f 73 6e 69 70 70 65 74 2e 63 3\fts3_snippet.c e150: 20 24 28 48 44 52 29 20 24 28 45 58 54 48 44 52$(HDR) $(EXTHDR e160: 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 )..$(LTCOMPILE)
e170: 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f $(CORE_COMPILE_O e180: 50 54 53 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 PTS)$(NO_WARN)
e190: 2d 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d 63 -DSQLITE_CORE -c
e1a0: 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 33 $(TOP)\ext\fts3 e1b0: 5c 66 74 73 33 5f 73 6e 69 70 70 65 74 2e 63 0a \fts3_snippet.c. e1c0: 0a 66 74 73 33 5f 70 6f 72 74 65 72 2e 6c 6f 3a .fts3_porter.lo: e1d0: 09 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 33 .$(TOP)\ext\fts3
e1e0: 5c 66 74 73 33 5f 70 6f 72 74 65 72 2e 63 20 24 \fts3_porter.c $e1f0: 28 48 44 52 29 20 24 28 45 58 54 48 44 52 29 0a (HDR)$(EXTHDR).
e200: 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 .$(LTCOMPILE)$(
e210: 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 CORE_COMPILE_OPT
e220: 53 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 2d 44 S) $(NO_WARN) -D e230: 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d 63 20 24 SQLITE_CORE -c$
e240: 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 33 5c 66 (TOP)\ext\fts3\f
e250: 74 73 33 5f 70 6f 72 74 65 72 2e 63 0a 0a 66 74 ts3_porter.c..ft
e260: 73 33 5f 74 6f 6b 65 6e 69 7a 65 72 2e 6c 6f 3a s3_tokenizer.lo:
e270: 09 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 33 .$(TOP)\ext\fts3 e280: 5c 66 74 73 33 5f 74 6f 6b 65 6e 69 7a 65 72 2e \fts3_tokenizer. e290: 63 20 24 28 48 44 52 29 20 24 28 45 58 54 48 44 c$(HDR) $(EXTHD e2a0: 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 R)..$(LTCOMPILE)
e2b0: 20 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f $(CORE_COMPILE_ e2c0: 4f 50 54 53 29 20 24 28 4e 4f 5f 57 41 52 4e 29 OPTS)$(NO_WARN)
e2d0: 20 2d 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d -DSQLITE_CORE -
e2e0: 63 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 c $(TOP)\ext\fts e2f0: 33 5c 66 74 73 33 5f 74 6f 6b 65 6e 69 7a 65 72 3\fts3_tokenizer e300: 2e 63 0a 0a 66 74 73 33 5f 74 6f 6b 65 6e 69 7a .c..fts3_tokeniz e310: 65 72 31 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 65 er1.lo:.$(TOP)\e
e320: 78 74 5c 66 74 73 33 5c 66 74 73 33 5f 74 6f 6b xt\fts3\fts3_tok
e330: 65 6e 69 7a 65 72 31 2e 63 20 24 28 48 44 52 29 enizer1.c $(HDR) e340: 20 24 28 45 58 54 48 44 52 29 0a 09 24 28 4c 54$(EXTHDR)..$(LT e350: 43 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f COMPILE)$(CORE_
e360: 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 24 28 COMPILE_OPTS) $( e370: 4e 4f 5f 57 41 52 4e 29 20 2d 44 53 51 4c 49 54 NO_WARN) -DSQLIT e380: 45 5f 43 4f 52 45 20 2d 63 20 24 28 54 4f 50 29 E_CORE -c$(TOP)
e390: 5c 65 78 74 5c 66 74 73 33 5c 66 74 73 33 5f 74 \ext\fts3\fts3_t
e3a0: 6f 6b 65 6e 69 7a 65 72 31 2e 63 0a 0a 66 74 73 okenizer1.c..fts
e3b0: 33 5f 74 6f 6b 65 6e 69 7a 65 5f 76 74 61 62 2e 3_tokenize_vtab.
e3c0: 6c 6f 3a 09 24 28 54 4f 50 29 5c 65 78 74 5c 66 lo:.$(TOP)\ext\f e3d0: 74 73 33 5c 66 74 73 33 5f 74 6f 6b 65 6e 69 7a ts3\fts3_tokeniz e3e0: 65 5f 76 74 61 62 2e 63 20 24 28 48 44 52 29 20 e_vtab.c$(HDR)
e3f0: 24 28 45 58 54 48 44 52 29 0a 09 24 28 4c 54 43 $(EXTHDR)..$(LTC
e400: 4f 4d 50 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 OMPILE) $(CORE_C e410: 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 24 28 4e OMPILE_OPTS)$(N
e420: 4f 5f 57 41 52 4e 29 20 2d 44 53 51 4c 49 54 45 O_WARN) -DSQLITE
e430: 5f 43 4f 52 45 20 2d 63 20 24 28 54 4f 50 29 5c _CORE -c $(TOP)\ e440: 65 78 74 5c 66 74 73 33 5c 66 74 73 33 5f 74 6f ext\fts3\fts3_to e450: 6b 65 6e 69 7a 65 5f 76 74 61 62 2e 63 0a 0a 66 kenize_vtab.c..f e460: 74 73 33 5f 75 6e 69 63 6f 64 65 2e 6c 6f 3a 09 ts3_unicode.lo:. e470: 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 33 5c$(TOP)\ext\fts3\
e480: 66 74 73 33 5f 75 6e 69 63 6f 64 65 2e 63 20 24 fts3_unicode.c $e490: 28 48 44 52 29 20 24 28 45 58 54 48 44 52 29 0a (HDR)$(EXTHDR).
e4a0: 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 .$(LTCOMPILE)$(
e4b0: 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 CORE_COMPILE_OPT
e4c0: 53 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 2d 44 S) $(NO_WARN) -D e4d0: 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d 63 20 24 SQLITE_CORE -c$
e4e0: 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 33 5c 66 (TOP)\ext\fts3\f
e4f0: 74 73 33 5f 75 6e 69 63 6f 64 65 2e 63 0a 0a 66 ts3_unicode.c..f
e500: 74 73 33 5f 75 6e 69 63 6f 64 65 32 2e 6c 6f 3a ts3_unicode2.lo:
e510: 09 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 33 .$(TOP)\ext\fts3 e520: 5c 66 74 73 33 5f 75 6e 69 63 6f 64 65 32 2e 63 \fts3_unicode2.c e530: 20 24 28 48 44 52 29 20 24 28 45 58 54 48 44 52$(HDR) $(EXTHDR e540: 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 )..$(LTCOMPILE)
e550: 24 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f $(CORE_COMPILE_O e560: 50 54 53 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 PTS)$(NO_WARN)
e570: 2d 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d 63 -DSQLITE_CORE -c
e580: 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 33 $(TOP)\ext\fts3 e590: 5c 66 74 73 33 5f 75 6e 69 63 6f 64 65 32 2e 63 \fts3_unicode2.c e5a0: 0a 0a 66 74 73 33 5f 77 72 69 74 65 2e 6c 6f 3a ..fts3_write.lo: e5b0: 09 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 33 .$(TOP)\ext\fts3
e5c0: 5c 66 74 73 33 5f 77 72 69 74 65 2e 63 20 24 28 \fts3_write.c $( e5d0: 48 44 52 29 20 24 28 45 58 54 48 44 52 29 0a 09 HDR)$(EXTHDR)..
e5e0: 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 43 $(LTCOMPILE)$(C
e5f0: 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 ORE_COMPILE_OPTS
e600: 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 2d 44 53 ) $(NO_WARN) -DS e610: 51 4c 49 54 45 5f 43 4f 52 45 20 2d 63 20 24 28 QLITE_CORE -c$(
e620: 54 4f 50 29 5c 65 78 74 5c 66 74 73 33 5c 66 74 TOP)\ext\fts3\ft
e630: 73 33 5f 77 72 69 74 65 2e 63 0a 0a 72 74 72 65 s3_write.c..rtre
e640: 65 2e 6c 6f 3a 09 24 28 54 4f 50 29 5c 65 78 74 e.lo:.$(TOP)\ext e650: 5c 72 74 72 65 65 5c 72 74 72 65 65 2e 63 20 24 \rtree\rtree.c$
e660: 28 48 44 52 29 20 24 28 45 58 54 48 44 52 29 0a (HDR) $(EXTHDR). e670: 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 28 .$(LTCOMPILE) $( e680: 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 CORE_COMPILE_OPT e690: 53 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 2d 44 S)$(NO_WARN) -D
e6a0: 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d 63 20 24 SQLITE_CORE -c $e6b0: 28 54 4f 50 29 5c 65 78 74 5c 72 74 72 65 65 5c (TOP)\ext\rtree\ e6c0: 72 74 72 65 65 2e 63 0a 0a 73 71 6c 69 74 65 33 rtree.c..sqlite3 e6d0: 73 65 73 73 69 6f 6e 2e 6c 6f 3a 09 24 28 54 4f session.lo:.$(TO
e6e0: 50 29 5c 65 78 74 5c 73 65 73 73 69 6f 6e 5c 73 P)\ext\session\s
e6f0: 71 6c 69 74 65 33 73 65 73 73 69 6f 6e 2e 63 20 qlite3session.c
e700: 24 28 48 44 52 29 20 24 28 45 58 54 48 44 52 29 $(HDR)$(EXTHDR)
e710: 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 24 ..$(LTCOMPILE)$
e720: 28 43 4f 52 45 5f 43 4f 4d 50 49 4c 45 5f 4f 50 (CORE_COMPILE_OP
e730: 54 53 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 2d TS) $(NO_WARN) - e740: 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d 63 20 DSQLITE_CORE -c e750: 24 28 54 4f 50 29 5c 65 78 74 5c 73 65 73 73 69$(TOP)\ext\sessi
e760: 6f 6e 5c 73 71 6c 69 74 65 33 73 65 73 73 69 6f on\sqlite3sessio
e770: 6e 2e 63 0a 0a 23 20 46 54 53 35 20 74 68 69 6e n.c..# FTS5 thin
e780: 67 73 0a 23 0a 46 54 53 35 5f 53 52 43 20 3d 20 gs.#.FTS5_SRC =
e790: 5c 0a 20 20 20 24 28 54 4f 50 29 5c 65 78 74 5c \. $(TOP)\ext\ e7a0: 66 74 73 35 5c 66 74 73 35 2e 68 20 5c 0a 20 20 fts5\fts5.h \. e7b0: 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 35$(TOP)\ext\fts5
e7c0: 5c 66 74 73 35 49 6e 74 2e 68 20 5c 0a 20 20 20 \fts5Int.h \.
e7d0: 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 35 5c $(TOP)\ext\fts5\ e7e0: 66 74 73 35 5f 61 75 78 2e 63 20 5c 0a 20 20 20 fts5_aux.c \. e7f0: 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 35 5c$(TOP)\ext\fts5\
e800: 66 74 73 35 5f 62 75 66 66 65 72 2e 63 20 5c 0a fts5_buffer.c \.
e810: 20 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 $(TOP)\ext\ft e820: 73 35 5c 66 74 73 35 5f 6d 61 69 6e 2e 63 20 5c s5\fts5_main.c \ e830: 0a 20 20 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 .$(TOP)\ext\f
e840: 74 73 35 5c 66 74 73 35 5f 63 6f 6e 66 69 67 2e ts5\fts5_config.
e850: 63 20 5c 0a 20 20 20 24 28 54 4f 50 29 5c 65 78 c \. $(TOP)\ex e860: 74 5c 66 74 73 35 5c 66 74 73 35 5f 65 78 70 72 t\fts5\fts5_expr e870: 2e 63 20 5c 0a 20 20 20 24 28 54 4f 50 29 5c 65 .c \.$(TOP)\e
e880: 78 74 5c 66 74 73 35 5c 66 74 73 35 5f 68 61 73 xt\fts5\fts5_has
e890: 68 2e 63 20 5c 0a 20 20 20 24 28 54 4f 50 29 5c h.c \. $(TOP)\ e8a0: 65 78 74 5c 66 74 73 35 5c 66 74 73 35 5f 69 6e ext\fts5\fts5_in e8b0: 64 65 78 2e 63 20 5c 0a 20 20 20 66 74 73 35 70 dex.c \. fts5p e8c0: 61 72 73 65 2e 63 20 66 74 73 35 70 61 72 73 65 arse.c fts5parse e8d0: 2e 68 20 5c 0a 20 20 20 24 28 54 4f 50 29 5c 65 .h \.$(TOP)\e
e8e0: 78 74 5c 66 74 73 35 5c 66 74 73 35 5f 73 74 6f xt\fts5\fts5_sto
e8f0: 72 61 67 65 2e 63 20 5c 0a 20 20 20 24 28 54 4f rage.c \. $(TO e900: 50 29 5c 65 78 74 5c 66 74 73 35 5c 66 74 73 35 P)\ext\fts5\fts5 e910: 5f 74 6f 6b 65 6e 69 7a 65 2e 63 20 5c 0a 20 20 _tokenize.c \. e920: 20 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 35$(TOP)\ext\fts5
e930: 5c 66 74 73 35 5f 75 6e 69 63 6f 64 65 32 2e 63 \fts5_unicode2.c
e940: 20 5c 0a 20 20 20 24 28 54 4f 50 29 5c 65 78 74 \. $(TOP)\ext e950: 5c 66 74 73 35 5c 66 74 73 35 5f 76 61 72 69 6e \fts5\fts5_varin e960: 74 2e 63 20 5c 0a 20 20 20 24 28 54 4f 50 29 5c t.c \.$(TOP)\
e970: 65 78 74 5c 66 74 73 35 5c 66 74 73 35 5f 76 6f ext\fts5\fts5_vo
e980: 63 61 62 2e 63 0a 0a 66 74 73 35 70 61 72 73 65 cab.c..fts5parse
e990: 2e 63 3a 09 24 28 54 4f 50 29 5c 65 78 74 5c 66 .c:.$(TOP)\ext\f e9a0: 74 73 35 5c 66 74 73 35 70 61 72 73 65 2e 79 20 ts5\fts5parse.y e9b0: 6c 65 6d 6f 6e 2e 65 78 65 0a 09 63 6f 70 79 20 lemon.exe..copy e9c0: 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 35 5c$(TOP)\ext\fts5\
e9d0: 66 74 73 35 70 61 72 73 65 2e 79 20 2e 0a 09 64 fts5parse.y ...d
e9e0: 65 6c 20 2f 51 20 66 74 73 35 70 61 72 73 65 2e el /Q fts5parse.
e9f0: 68 20 32 3e 4e 55 4c 0a 09 2e 5c 6c 65 6d 6f 6e h 2>NUL...\lemon
ea00: 2e 65 78 65 20 24 28 52 45 51 5f 46 45 41 54 55 .exe $(REQ_FEATU ea10: 52 45 5f 46 4c 41 47 53 29 20 24 28 4f 50 54 5f RE_FLAGS)$(OPT_
ea20: 46 45 41 54 55 52 45 5f 46 4c 41 47 53 29 20 24 FEATURE_FLAGS) $ea30: 28 45 58 54 5f 46 45 41 54 55 52 45 5f 46 4c 41 (EXT_FEATURE_FLA ea40: 47 53 29 20 24 28 4f 50 54 53 29 20 66 74 73 35 GS)$(OPTS) fts5
ea50: 70 61 72 73 65 2e 79 0a 0a 66 74 73 35 70 61 72 parse.y..fts5par
ea60: 73 65 2e 68 3a 09 66 74 73 35 70 61 72 73 65 2e se.h:.fts5parse.
ea70: 63 0a 0a 66 74 73 35 2e 63 3a 09 24 28 46 54 53 c..fts5.c:.$(FTS ea80: 35 5f 53 52 43 29 0a 09 24 28 54 43 4c 53 48 5f 5_SRC)..$(TCLSH_
ea90: 43 4d 44 29 20 24 28 54 4f 50 29 5c 65 78 74 5c CMD) $(TOP)\ext\ eaa0: 66 74 73 35 5c 74 6f 6f 6c 5c 6d 6b 66 74 73 35 fts5\tool\mkfts5 eab0: 63 2e 74 63 6c 0a 09 63 6f 70 79 20 24 28 54 4f c.tcl..copy$(TO
eac0: 50 29 5c 65 78 74 5c 66 74 73 35 5c 66 74 73 35 P)\ext\fts5\fts5
ead0: 2e 68 20 2e 0a 0a 66 74 73 35 2e 6c 6f 3a 09 66 .h ...fts5.lo:.f
eae0: 74 73 35 2e 63 20 24 28 48 44 52 29 20 24 28 45 ts5.c $(HDR)$(E
eaf0: 58 54 48 44 52 29 0a 09 24 28 4c 54 43 4f 4d 50 XTHDR)..$(LTCOMP eb00: 49 4c 45 29 20 24 28 43 4f 52 45 5f 43 4f 4d 50 ILE)$(CORE_COMP
eb10: 49 4c 45 5f 4f 50 54 53 29 20 24 28 4e 4f 5f 57 ILE_OPTS) $(NO_W eb20: 41 52 4e 29 20 2d 44 53 51 4c 49 54 45 5f 43 4f ARN) -DSQLITE_CO eb30: 52 45 20 2d 63 20 66 74 73 35 2e 63 0a 0a 66 74 RE -c fts5.c..ft eb40: 73 35 5f 65 78 74 2e 6c 6f 3a 09 66 74 73 35 2e s5_ext.lo:.fts5. eb50: 63 20 24 28 48 44 52 29 20 24 28 45 58 54 48 44 c$(HDR) $(EXTHD eb60: 52 29 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 R)..$(LTCOMPILE)
eb70: 20 24 28 4e 4f 5f 57 41 52 4e 29 20 2d 63 20 66 $(NO_WARN) -c f eb80: 74 73 35 2e 63 0a 0a 66 74 73 35 2e 64 6c 6c 3a ts5.c..fts5.dll: eb90: 09 66 74 73 35 5f 65 78 74 2e 6c 6f 0a 09 24 28 .fts5_ext.lo..$(
eba0: 4c 44 29 20 24 28 4c 44 46 4c 41 47 53 29 20 24 LD) $(LDFLAGS)$
ebb0: 28 4c 54 4c 49 4e 4b 4f 50 54 53 29 20 24 28 4c (LTLINKOPTS) $(L ebc0: 54 4c 49 42 50 41 54 48 53 29 20 2f 44 4c 4c 20 TLIBPATHS) /DLL ebd0: 2f 4f 55 54 3a 24 40 20 66 74 73 35 5f 65 78 74 /OUT:$@ fts5_ext
ebe0: 2e 6c 6f 0a 0a 73 71 6c 69 74 65 33 72 62 75 2e .lo..sqlite3rbu.
ebf0: 6c 6f 3a 09 24 28 54 4f 50 29 5c 65 78 74 5c 72 lo:.$(TOP)\ext\r ec00: 62 75 5c 73 71 6c 69 74 65 33 72 62 75 2e 63 20 bu\sqlite3rbu.c ec10: 24 28 48 44 52 29 20 24 28 45 58 54 48 44 52 29$(HDR) $(EXTHDR) ec20: 0a 09 24 28 4c 54 43 4f 4d 50 49 4c 45 29 20 2d ..$(LTCOMPILE) -
ec30: 44 53 51 4c 49 54 45 5f 43 4f 52 45 20 2d 63 20 DSQLITE_CORE -c
ec40: 24 28 54 4f 50 29 5c 65 78 74 5c 72 62 75 5c 73 $(TOP)\ext\rbu\s ec50: 71 6c 69 74 65 33 72 62 75 2e 63 0a 0a 23 20 52 qlite3rbu.c..# R ec60: 75 6c 65 73 20 74 6f 20 62 75 69 6c 64 20 74 68 ules to build th ec70: 65 20 27 74 65 73 74 66 69 78 74 75 72 65 27 20 e 'testfixture' ec80: 61 70 70 6c 69 63 61 74 69 6f 6e 2e 0a 23 0a 23 application..#.# ec90: 20 49 66 20 75 73 69 6e 67 20 74 68 65 20 61 6d If using the am eca0: 61 6c 67 61 6d 61 74 69 6f 6e 2c 20 75 73 65 20 algamation, use ecb0: 73 71 6c 69 74 65 33 2e 63 20 64 69 72 65 63 74 sqlite3.c direct ecc0: 6c 79 20 74 6f 20 62 75 69 6c 64 20 74 68 65 20 ly to build the ecd0: 74 65 73 74 0a 23 20 66 69 78 74 75 72 65 2e 20 test.# fixture. ece0: 20 4f 74 68 65 72 77 69 73 65 20 6c 69 6e 6b 20 Otherwise link ecf0: 61 67 61 69 6e 73 74 20 6c 69 62 73 71 6c 69 74 against libsqlit ed00: 65 33 2e 6c 69 62 2e 20 20 28 54 68 69 73 20 64 e3.lib. (This d ed10: 69 73 74 69 6e 63 74 69 6f 6e 20 69 73 0a 23 20 istinction is.# ed20: 6e 65 63 65 73 73 61 72 79 20 62 65 63 61 75 73 necessary becaus ed30: 65 20 74 68 65 20 74 65 73 74 20 66 69 78 74 75 e the test fixtu ed40: 72 65 20 72 65 71 75 69 72 65 73 20 6e 6f 6e 2d re requires non- ed50: 41 50 49 20 73 79 6d 62 6f 6c 73 20 77 68 69 63 API symbols whic ed60: 68 20 61 72 65 0a 23 20 68 69 64 64 65 6e 20 77 h are.# hidden w ed70: 68 65 6e 20 74 68 65 20 6c 69 62 72 61 72 79 20 hen the library ed80: 69 73 20 62 75 69 6c 74 20 76 69 61 20 74 68 65 is built via the ed90: 20 61 6d 61 6c 67 61 6d 61 74 69 6f 6e 29 2e 0a amalgamation).. eda0: 23 0a 54 45 53 54 46 49 58 54 55 52 45 5f 46 4c #.TESTFIXTURE_FL edb0: 41 47 53 20 3d 20 2d 44 54 43 4c 53 48 3d 31 20 AGS = -DTCLSH=1 edc0: 2d 44 53 51 4c 49 54 45 5f 54 45 53 54 3d 31 20 -DSQLITE_TEST=1 edd0: 2d 44 53 51 4c 49 54 45 5f 43 52 41 53 48 5f 54 -DSQLITE_CRASH_T ede0: 45 53 54 3d 31 0a 54 45 53 54 46 49 58 54 55 52 EST=1.TESTFIXTUR edf0: 45 5f 46 4c 41 47 53 20 3d 20 24 28 54 45 53 54 E_FLAGS =$(TEST
ee00: 46 49 58 54 55 52 45 5f 46 4c 41 47 53 29 20 2d FIXTURE_FLAGS) -
ee10: 44 53 51 4c 49 54 45 5f 53 45 52 56 45 52 3d 31 DSQLITE_SERVER=1
ee20: 20 2d 44 53 51 4c 49 54 45 5f 50 52 49 56 41 54 -DSQLITE_PRIVAT
ee30: 45 3d 22 22 0a 54 45 53 54 46 49 58 54 55 52 45 E="".TESTFIXTURE
ee40: 5f 46 4c 41 47 53 20 3d 20 24 28 54 45 53 54 46 _FLAGS = $(TESTF ee50: 49 58 54 55 52 45 5f 46 4c 41 47 53 29 20 2d 44 IXTURE_FLAGS) -D ee60: 53 51 4c 49 54 45 5f 43 4f 52 45 20 24 28 4e 4f SQLITE_CORE$(NO
ee70: 5f 57 41 52 4e 29 0a 54 45 53 54 46 49 58 54 55 _WARN).TESTFIXTU
ee80: 52 45 5f 46 4c 41 47 53 20 3d 20 24 28 54 45 53 RE_FLAGS = $(TES ee90: 54 46 49 58 54 55 52 45 5f 46 4c 41 47 53 29 20 TFIXTURE_FLAGS) eea0: 2d 44 53 51 4c 49 54 45 5f 53 45 52 49 45 53 5f -DSQLITE_SERIES_ eeb0: 43 4f 4e 53 54 52 41 49 4e 54 5f 56 45 52 49 46 CONSTRAINT_VERIF eec0: 59 3d 31 0a 54 45 53 54 46 49 58 54 55 52 45 5f Y=1.TESTFIXTURE_ eed0: 46 4c 41 47 53 20 3d 20 24 28 54 45 53 54 46 49 FLAGS =$(TESTFI
eee0: 58 54 55 52 45 5f 46 4c 41 47 53 29 20 2d 44 53 XTURE_FLAGS) -DS
eef0: 51 4c 49 54 45 5f 44 45 46 41 55 4c 54 5f 50 41 QLITE_DEFAULT_PA
ef00: 47 45 5f 53 49 5a 45 3d 31 30 32 34 0a 54 45 53 GE_SIZE=1024.TES
ef10: 54 46 49 58 54 55 52 45 5f 46 4c 41 47 53 20 3d TFIXTURE_FLAGS =
ef20: 20 24 28 54 45 53 54 46 49 58 54 55 52 45 5f 46 $(TESTFIXTURE_F ef30: 4c 41 47 53 29 20 24 28 54 45 53 54 5f 43 43 4f LAGS)$(TEST_CCO
ef40: 4e 56 5f 4f 50 54 53 29 0a 0a 54 45 53 54 46 49 NV_OPTS)..TESTFI
ef50: 58 54 55 52 45 5f 53 52 43 30 20 3d 20 24 28 54 XTURE_SRC0 = $(T ef60: 45 53 54 45 58 54 29 20 24 28 54 45 53 54 53 52 ESTEXT)$(TESTSR
ef70: 43 32 29 0a 54 45 53 54 46 49 58 54 55 52 45 5f C2).TESTFIXTURE_
ef80: 53 52 43 31 20 3d 20 24 28 54 45 53 54 45 58 54 SRC1 = $(TESTEXT ef90: 29 20 24 28 53 51 4c 49 54 45 33 43 29 0a 21 49 )$(SQLITE3C).!I
efa0: 46 20 24 28 55 53 45 5f 41 4d 41 4c 47 41 4d 41 F $(USE_AMALGAMA efb0: 54 49 4f 4e 29 3d 3d 30 0a 54 45 53 54 46 49 58 TION)==0.TESTFIX efc0: 54 55 52 45 5f 53 52 43 20 3d 20 24 28 54 45 53 TURE_SRC =$(TES
efd0: 54 53 52 43 29 20 24 28 54 4f 50 29 5c 73 72 63 TSRC) $(TOP)\src efe0: 5c 74 63 6c 73 71 6c 69 74 65 2e 63 20 24 28 54 \tclsqlite.c$(T
eff0: 45 53 54 46 49 58 54 55 52 45 5f 53 52 43 30 29 ESTFIXTURE_SRC0)
f000: 0a 21 45 4c 53 45 0a 54 45 53 54 46 49 58 54 55 .!ELSE.TESTFIXTU
f010: 52 45 5f 53 52 43 20 3d 20 24 28 54 45 53 54 53 RE_SRC = $(TESTS f020: 52 43 29 20 24 28 54 4f 50 29 5c 73 72 63 5c 74 RC)$(TOP)\src\t
f030: 63 6c 73 71 6c 69 74 65 2e 63 20 24 28 54 45 53 clsqlite.c $(TES f040: 54 46 49 58 54 55 52 45 5f 53 52 43 31 29 0a 21 TFIXTURE_SRC1).! f050: 45 4e 44 49 46 0a 0a 21 49 46 20 24 28 55 53 45 ENDIF..!IF$(USE
f060: 5f 53 54 44 43 41 4c 4c 29 21 3d 30 20 7c 7c 20 _STDCALL)!=0 ||
f070: 24 28 46 4f 52 5f 57 49 4e 31 30 29 21 3d 30 0a $(FOR_WIN10)!=0. f080: 73 71 6c 69 74 65 5f 74 63 6c 44 65 63 6c 73 2e sqlite_tclDecls. f090: 68 3a 0a 09 65 63 68 6f 20 23 69 66 6e 64 65 66 h:..echo #ifndef f0a0: 20 53 51 4c 49 54 45 5f 54 43 4c 41 50 49 20 3e SQLITE_TCLAPI > f0b0: 20 24 28 53 51 4c 49 54 45 54 43 4c 44 45 43 4c$(SQLITETCLDECL
f0c0: 53 48 29 0a 09 65 63 68 6f 20 23 20 20 64 65 66 SH)..echo # def
f0d0: 69 6e 65 20 53 51 4c 49 54 45 5f 54 43 4c 41 50 ine SQLITE_TCLAP
f0e0: 49 20 3e 3e 20 24 28 53 51 4c 49 54 45 54 43 4c I >> $(SQLITETCL f0f0: 44 45 43 4c 53 48 29 0a 09 65 63 68 6f 20 23 65 DECLSH)..echo #e f100: 6e 64 69 66 20 3e 3e 20 24 28 53 51 4c 49 54 45 ndif >>$(SQLITE
f110: 54 43 4c 44 45 43 4c 53 48 29 0a 09 74 79 70 65 TCLDECLSH)..type
f120: 20 22 24 28 54 43 4c 49 4e 43 44 49 52 29 5c 74 "$(TCLINCDIR)\t f130: 63 6c 44 65 63 6c 73 2e 68 22 20 5c 0a 09 09 7c clDecls.h" \...| f140: 20 24 28 54 43 4c 53 48 5f 43 4d 44 29 20 24 28$(TCLSH_CMD) $( f150: 54 4f 50 29 5c 74 6f 6f 6c 5c 72 65 70 6c 61 63 TOP)\tool\replac f160: 65 2e 74 63 6c 20 72 65 67 73 75 62 20 22 5e 28 e.tcl regsub "^( f170: 45 58 54 45 52 4e 28 3f 3a 20 43 4f 4e 53 54 5c EXTERN(?: CONST\ f180: 64 2b 3f 29 3f 5c 73 2b 3f 5b 5e 5c 28 5d 2a 3f d+?)?\s+?[^\(]*? f190: 5c 73 2b 3f 29 54 63 6c 5f 22 20 22 5c 31 20 53 \s+?)Tcl_" "\1 S f1a0: 51 4c 49 54 45 5f 54 43 4c 41 50 49 20 54 63 6c QLITE_TCLAPI Tcl f1b0: 5f 22 20 5c 0a 09 09 7c 20 24 28 54 43 4c 53 48 _" \...|$(TCLSH
f1c0: 5f 43 4d 44 29 20 24 28 54 4f 50 29 5c 74 6f 6f _CMD) $(TOP)\too f1d0: 6c 5c 72 65 70 6c 61 63 65 2e 74 63 6c 20 72 65 l\replace.tcl re f1e0: 67 73 75 62 20 22 5e 28 45 58 54 45 52 4e 5c 73 gsub "^(EXTERN\s f1f0: 2b 3f 28 3f 3a 76 6f 69 64 7c 56 4f 49 44 29 5c +?(?:void|VOID)\ f200: 73 2b 3f 29 54 63 6c 46 72 65 65 4f 62 6a 22 20 s+?)TclFreeObj" f210: 22 5c 31 20 53 51 4c 49 54 45 5f 54 43 4c 41 50 "\1 SQLITE_TCLAP f220: 49 20 54 63 6c 46 72 65 65 4f 62 6a 22 20 5c 0a I TclFreeObj" \. f230: 09 09 7c 20 24 28 54 43 4c 53 48 5f 43 4d 44 29 ..|$(TCLSH_CMD)
f240: 20 24 28 54 4f 50 29 5c 74 6f 6f 6c 5c 72 65 70 $(TOP)\tool\rep f250: 6c 61 63 65 2e 74 63 6c 20 72 65 67 73 75 62 20 lace.tcl regsub f260: 22 5c 28 5c 2a 74 63 6c 5f 22 20 22 28 53 51 4c "\(\*tcl_" "(SQL f270: 49 54 45 5f 54 43 4c 41 50 49 20 2a 74 63 6c 5f ITE_TCLAPI *tcl_ f280: 22 20 5c 0a 09 09 7c 20 24 28 54 43 4c 53 48 5f " \...|$(TCLSH_
f290: 43 4d 44 29 20 24 28 54 4f 50 29 5c 74 6f 6f 6c CMD) $(TOP)\tool f2a0: 5c 72 65 70 6c 61 63 65 2e 74 63 6c 20 72 65 67 \replace.tcl reg f2b0: 73 75 62 20 22 5c 28 5c 2a 74 63 6c 46 72 65 65 sub "\(\*tclFree f2c0: 4f 62 6a 22 20 22 28 53 51 4c 49 54 45 5f 54 43 Obj" "(SQLITE_TC f2d0: 4c 41 50 49 20 2a 74 63 6c 46 72 65 65 4f 62 6a LAPI *tclFreeObj f2e0: 22 20 5c 0a 09 09 7c 20 24 28 54 43 4c 53 48 5f " \...|$(TCLSH_
f2f0: 43 4d 44 29 20 24 28 54 4f 50 29 5c 74 6f 6f 6c CMD) $(TOP)\tool f300: 5c 72 65 70 6c 61 63 65 2e 74 63 6c 20 72 65 67 \replace.tcl reg f310: 73 75 62 20 22 5c 28 5c 2a 22 20 22 28 53 51 4c sub "\(\*" "(SQL f320: 49 54 45 5f 54 43 4c 41 50 49 20 2a 22 20 3e 3e ITE_TCLAPI *" >> f330: 20 24 28 53 51 4c 49 54 45 54 43 4c 44 45 43 4c$(SQLITETCLDECL
f340: 53 48 29 0a 0a 73 71 6c 69 74 65 5f 74 63 6c 2e SH)..sqlite_tcl.
f350: 68 3a 0a 09 74 79 70 65 20 22 24 28 54 43 4c 49 h:..type "$(TCLI f360: 4e 43 44 49 52 29 5c 74 63 6c 2e 68 22 20 7c 20 NCDIR)\tcl.h" | f370: 24 28 54 43 4c 53 48 5f 43 4d 44 29 20 24 28 54$(TCLSH_CMD) $(T f380: 4f 50 29 5c 74 6f 6f 6c 5c 72 65 70 6c 61 63 65 OP)\tool\replace f390: 2e 74 63 6c 20 65 78 61 63 74 20 74 63 6c 44 65 .tcl exact tclDe f3a0: 63 6c 73 2e 68 20 73 71 6c 69 74 65 5f 74 63 6c cls.h sqlite_tcl f3b0: 44 65 63 6c 73 2e 68 20 5c 0a 09 09 7c 20 24 28 Decls.h \...|$(
f3c0: 54 43 4c 53 48 5f 43 4d 44 29 20 24 28 54 4f 50 TCLSH_CMD) $(TOP f3d0: 29 5c 74 6f 6f 6c 5c 72 65 70 6c 61 63 65 2e 74 )\tool\replace.t f3e0: 63 6c 20 72 65 67 73 75 62 20 22 74 79 70 65 64 cl regsub "typed f3f0: 65 66 20 28 2e 2a 3f 29 5c 28 54 63 6c 5f 22 20 ef (.*?)\(Tcl_" f400: 22 74 79 70 65 64 65 66 20 5c 31 20 28 53 51 4c "typedef \1 (SQL f410: 49 54 45 5f 54 43 4c 41 50 49 20 54 63 6c 5f 22 ITE_TCLAPI Tcl_" f420: 20 5c 0a 09 09 7c 20 24 28 54 43 4c 53 48 5f 43 \...|$(TCLSH_C
f430: 4d 44 29 20 24 28 54 4f 50 29 5c 74 6f 6f 6c 5c MD) $(TOP)\tool\ f440: 72 65 70 6c 61 63 65 2e 74 63 6c 20 65 78 61 63 replace.tcl exac f450: 74 20 22 76 6f 69 64 20 28 2a 66 72 65 65 50 72 t "void (*freePr f460: 6f 63 29 22 20 22 76 6f 69 64 20 28 53 51 4c 49 oc)" "void (SQLI f470: 54 45 5f 54 43 4c 41 50 49 20 2a 66 72 65 65 50 TE_TCLAPI *freeP f480: 72 6f 63 29 22 20 5c 0a 09 09 7c 20 24 28 54 43 roc)" \...|$(TC
f490: 4c 53 48 5f 43 4d 44 29 20 24 28 54 4f 50 29 5c LSH_CMD) $(TOP)\ f4a0: 74 6f 6f 6c 5c 72 65 70 6c 61 63 65 2e 74 63 6c tool\replace.tcl f4b0: 20 65 78 61 63 74 20 22 54 63 6c 5f 48 61 73 68 exact "Tcl_Hash f4c0: 45 6e 74 72 79 20 2a 28 2a 66 69 6e 64 50 72 6f Entry *(*findPro f4d0: 63 29 22 20 22 54 63 6c 5f 48 61 73 68 45 6e 74 c)" "Tcl_HashEnt f4e0: 72 79 20 2a 28 53 51 4c 49 54 45 5f 54 43 4c 41 ry *(SQLITE_TCLA f4f0: 50 49 20 2a 66 69 6e 64 50 72 6f 63 29 22 20 5c PI *findProc)" \ f500: 0a 09 09 7c 20 24 28 54 43 4c 53 48 5f 43 4d 44 ...|$(TCLSH_CMD
f510: 29 20 24 28 54 4f 50 29 5c 74 6f 6f 6c 5c 72 65 ) $(TOP)\tool\re f520: 70 6c 61 63 65 2e 74 63 6c 20 65 78 61 63 74 20 place.tcl exact f530: 22 54 63 6c 5f 48 61 73 68 45 6e 74 72 79 20 2a "Tcl_HashEntry * f540: 28 2a 63 72 65 61 74 65 50 72 6f 63 29 22 20 22 (*createProc)" " f550: 54 63 6c 5f 48 61 73 68 45 6e 74 72 79 20 2a 28 Tcl_HashEntry *( f560: 53 51 4c 49 54 45 5f 54 43 4c 41 50 49 20 2a 63 SQLITE_TCLAPI *c f570: 72 65 61 74 65 50 72 6f 63 29 22 20 3e 3e 20 24 reateProc)" >>$
f580: 28 53 51 4c 49 54 45 54 43 4c 48 29 0a 21 45 4e (SQLITETCLH).!EN
f590: 44 49 46 0a 0a 74 65 73 74 66 69 78 74 75 72 65 DIF..testfixture
f5a0: 2e 65 78 65 3a 09 24 28 54 45 53 54 46 49 58 54 .exe:.$(TESTFIXT f5b0: 55 52 45 5f 53 52 43 29 20 24 28 53 51 4c 49 54 URE_SRC)$(SQLIT
f5c0: 45 33 48 29 20 24 28 4c 49 42 52 45 53 4f 42 4a E3H) $(LIBRESOBJ f5d0: 53 29 20 24 28 48 44 52 29 20 24 28 53 51 4c 49 S)$(HDR) $(SQLI f5e0: 54 45 5f 54 43 4c 5f 44 45 50 29 0a 09 24 28 4c TE_TCL_DEP)..$(L
f5f0: 54 4c 49 4e 4b 29 20 2d 44 53 51 4c 49 54 45 5f TLINK) -DSQLITE_
f600: 4e 4f 5f 53 59 4e 43 3d 31 20 24 28 54 45 53 54 NO_SYNC=1 $(TEST f610: 46 49 58 54 55 52 45 5f 46 4c 41 47 53 29 20 5c FIXTURE_FLAGS) \ f620: 0a 09 09 2d 44 42 55 49 4c 44 5f 73 71 6c 69 74 ...-DBUILD_sqlit f630: 65 20 2d 49 24 28 54 43 4c 49 4e 43 44 49 52 29 e -I$(TCLINCDIR)
f640: 20 5c 0a 09 09 24 28 54 45 53 54 46 49 58 54 55 \...$(TESTFIXTU f650: 52 45 5f 53 52 43 29 20 5c 0a 09 09 2f 6c 69 6e RE_SRC) \.../lin f660: 6b 20 24 28 4c 44 46 4c 41 47 53 29 20 24 28 4c k$(LDFLAGS) $(L f670: 54 4c 49 4e 4b 4f 50 54 53 29 20 24 28 4c 54 4c TLINKOPTS)$(LTL
f680: 49 42 50 41 54 48 53 29 20 24 28 4c 49 42 52 45 IBPATHS) $(LIBRE f690: 53 4f 42 4a 53 29 20 24 28 4c 54 4c 49 42 53 29 SOBJS)$(LTLIBS)
f6a0: 20 24 28 54 4c 49 42 53 29 0a 0a 65 78 74 65 6e $(TLIBS)..exten f6b0: 73 69 6f 6e 74 65 73 74 3a 09 74 65 73 74 66 69 siontest:.testfi f6c0: 78 74 75 72 65 2e 65 78 65 20 74 65 73 74 6c 6f xture.exe testlo f6d0: 61 64 65 78 74 2e 64 6c 6c 0a 09 40 73 65 74 20 adext.dll..@set f6e0: 50 41 54 48 3d 24 28 4c 49 42 54 43 4c 50 41 54 PATH=$(LIBTCLPAT
f6f0: 48 29 3b 24 28 50 41 54 48 29 0a 09 2e 5c 74 65 H);$(PATH)...\te f700: 73 74 66 69 78 74 75 72 65 2e 65 78 65 20 24 28 stfixture.exe$(
f710: 54 4f 50 29 5c 74 65 73 74 5c 6c 6f 61 64 65 78 TOP)\test\loadex
f720: 74 2e 74 65 73 74 20 24 28 54 45 53 54 4f 50 54 t.test $(TESTOPT f730: 53 29 0a 0a 66 75 6c 6c 74 65 73 74 3a 09 24 28 S)..fulltest:.$(
f740: 54 45 53 54 50 52 4f 47 53 29 20 66 75 7a 7a 74 TESTPROGS) fuzzt
f750: 65 73 74 0a 09 40 73 65 74 20 50 41 54 48 3d 24 est..@set PATH=$f760: 28 4c 49 42 54 43 4c 50 41 54 48 29 3b 24 28 50 (LIBTCLPATH);$(P
f770: 41 54 48 29 0a 09 2e 5c 74 65 73 74 66 69 78 74 ATH)...\testfixt
f780: 75 72 65 2e 65 78 65 20 24 28 54 4f 50 29 5c 74 ure.exe $(TOP)\t f790: 65 73 74 5c 61 6c 6c 2e 74 65 73 74 20 24 28 54 est\all.test$(T
f7a0: 45 53 54 4f 50 54 53 29 0a 0a 73 6f 61 6b 74 65 ESTOPTS)..soakte
f7b0: 73 74 3a 09 24 28 54 45 53 54 50 52 4f 47 53 29 st:.$(TESTPROGS) f7c0: 0a 09 40 73 65 74 20 50 41 54 48 3d 24 28 4c 49 ..@set PATH=$(LI
f7d0: 42 54 43 4c 50 41 54 48 29 3b 24 28 50 41 54 48 BTCLPATH);$(PATH f7e0: 29 0a 09 2e 5c 74 65 73 74 66 69 78 74 75 72 65 )...\testfixture f7f0: 2e 65 78 65 20 24 28 54 4f 50 29 5c 74 65 73 74 .exe$(TOP)\test
f800: 5c 61 6c 6c 2e 74 65 73 74 20 2d 73 6f 61 6b 3d \all.test -soak=
f810: 31 20 24 28 54 45 53 54 4f 50 54 53 29 0a 0a 66 1 $(TESTOPTS)..f f820: 75 6c 6c 74 65 73 74 6f 6e 6c 79 3a 09 24 28 54 ulltestonly:.$(T
f830: 45 53 54 50 52 4f 47 53 29 20 66 75 7a 7a 74 65 ESTPROGS) fuzzte
f840: 73 74 0a 09 40 73 65 74 20 50 41 54 48 3d 24 28 st..@set PATH=$( f850: 4c 49 42 54 43 4c 50 41 54 48 29 3b 24 28 50 41 LIBTCLPATH);$(PA
f860: 54 48 29 0a 09 2e 5c 74 65 73 74 66 69 78 74 75 TH)...\testfixtu
f870: 72 65 2e 65 78 65 20 24 28 54 4f 50 29 5c 74 65 re.exe $(TOP)\te f880: 73 74 5c 66 75 6c 6c 2e 74 65 73 74 0a 0a 71 75 st\full.test..qu f890: 65 72 79 70 6c 61 6e 74 65 73 74 3a 09 74 65 73 eryplantest:.tes f8a0: 74 66 69 78 74 75 72 65 2e 65 78 65 20 73 68 65 tfixture.exe she f8b0: 6c 6c 0a 09 40 73 65 74 20 50 41 54 48 3d 24 28 ll..@set PATH=$(
f8c0: 4c 49 42 54 43 4c 50 41 54 48 29 3b 24 28 50 41 LIBTCLPATH);$(PA f8d0: 54 48 29 0a 09 2e 5c 74 65 73 74 66 69 78 74 75 TH)...\testfixtu f8e0: 72 65 2e 65 78 65 20 24 28 54 4f 50 29 5c 74 65 re.exe$(TOP)\te
f8f0: 73 74 5c 70 65 72 6d 75 74 61 74 69 6f 6e 73 2e st\permutations.
f900: 74 65 73 74 20 71 75 65 72 79 70 6c 61 6e 6e 65 test queryplanne
f910: 72 20 24 28 54 45 53 54 4f 50 54 53 29 0a 0a 66 r $(TESTOPTS)..f f920: 75 7a 7a 74 65 73 74 3a 09 66 75 7a 7a 63 68 65 uzztest:.fuzzche f930: 63 6b 2e 65 78 65 0a 09 2e 5c 66 75 7a 7a 63 68 ck.exe...\fuzzch f940: 65 63 6b 2e 65 78 65 20 24 28 46 55 5a 5a 44 41 eck.exe$(FUZZDA
f950: 54 41 29 0a 0a 66 61 73 74 66 75 7a 7a 74 65 73 TA)..fastfuzztes
f960: 74 3a 09 66 75 7a 7a 63 68 65 63 6b 2e 65 78 65 t:.fuzzcheck.exe
f970: 0a 09 2e 5c 66 75 7a 7a 63 68 65 63 6b 2e 65 78 ...\fuzzcheck.ex
f980: 65 20 2d 2d 6c 69 6d 69 74 2d 6d 65 6d 20 31 30 e --limit-mem 10
f990: 30 4d 20 24 28 46 55 5a 5a 44 41 54 41 29 0a 0a 0M $(FUZZDATA).. f9a0: 23 20 4d 69 6e 69 6d 61 6c 20 74 65 73 74 69 6e # Minimal testin f9b0: 67 20 74 68 61 74 20 72 75 6e 73 20 69 6e 20 6c g that runs in l f9c0: 65 73 73 20 74 68 61 6e 20 33 20 6d 69 6e 75 74 ess than 3 minut f9d0: 65 73 20 28 6f 6e 20 61 20 66 61 73 74 20 6d 61 es (on a fast ma f9e0: 63 68 69 6e 65 29 0a 23 0a 71 75 69 63 6b 74 65 chine).#.quickte f9f0: 73 74 3a 09 74 65 73 74 66 69 78 74 75 72 65 2e st:.testfixture. fa00: 65 78 65 20 73 6f 75 72 63 65 74 65 73 74 0a 09 exe sourcetest.. fa10: 40 73 65 74 20 50 41 54 48 3d 24 28 4c 49 42 54 @set PATH=$(LIBT
fa20: 43 4c 50 41 54 48 29 3b 24 28 50 41 54 48 29 0a CLPATH);$(PATH). fa30: 09 2e 5c 74 65 73 74 66 69 78 74 75 72 65 2e 65 ..\testfixture.e fa40: 78 65 20 24 28 54 4f 50 29 5c 74 65 73 74 5c 65 xe$(TOP)\test\e
fa50: 78 74 72 61 71 75 69 63 6b 2e 74 65 73 74 20 24 xtraquick.test $fa60: 28 54 45 53 54 4f 50 54 53 29 0a 0a 23 20 54 68 (TESTOPTS)..# Th fa70: 69 73 20 69 73 20 74 68 65 20 63 6f 6d 6d 6f 6e is is the common fa80: 20 63 61 73 65 2e 20 20 52 75 6e 20 6d 61 6e 79 case. Run many fa90: 20 74 65 73 74 73 20 74 68 61 74 20 64 6f 20 6e tests that do n faa0: 6f 74 20 74 61 6b 65 20 74 6f 6f 20 6c 6f 6e 67 ot take too long fab0: 2c 0a 23 20 69 6e 63 6c 75 64 69 6e 67 20 66 75 ,.# including fu fac0: 7a 7a 63 68 65 63 6b 2c 20 73 71 6c 69 74 65 33 zzcheck, sqlite3 fad0: 5f 61 6e 61 6c 79 7a 65 72 2c 20 61 6e 64 20 73 _analyzer, and s fae0: 71 6c 64 69 66 66 20 74 65 73 74 73 2e 0a 23 0a qldiff tests..#. faf0: 74 65 73 74 3a 09 24 28 54 45 53 54 50 52 4f 47 test:.$(TESTPROG
fb00: 53 29 20 73 6f 75 72 63 65 74 65 73 74 20 66 61 S) sourcetest fa
fb10: 73 74 66 75 7a 7a 74 65 73 74 0a 09 40 73 65 74 stfuzztest..@set
fb20: 20 50 41 54 48 3d 24 28 4c 49 42 54 43 4c 50 41 PATH=$(LIBTCLPA fb30: 54 48 29 3b 24 28 50 41 54 48 29 0a 09 2e 5c 74 TH);$(PATH)...\t
fb40: 65 73 74 66 69 78 74 75 72 65 2e 65 78 65 20 24 estfixture.exe $fb50: 28 54 4f 50 29 5c 74 65 73 74 5c 76 65 72 79 71 (TOP)\test\veryq fb60: 75 69 63 6b 2e 74 65 73 74 20 24 28 54 45 53 54 uick.test$(TEST
fb70: 4f 50 54 53 29 0a 0a 73 6d 6f 6b 65 74 65 73 74 OPTS)..smoketest
fb80: 3a 09 24 28 54 45 53 54 50 52 4f 47 53 29 0a 09 :.$(TESTPROGS).. fb90: 40 73 65 74 20 50 41 54 48 3d 24 28 4c 49 42 54 @set PATH=$(LIBT
fba0: 43 4c 50 41 54 48 29 3b 24 28 50 41 54 48 29 0a CLPATH);$(PATH). fbb0: 09 2e 5c 74 65 73 74 66 69 78 74 75 72 65 2e 65 ..\testfixture.e fbc0: 78 65 20 24 28 54 4f 50 29 5c 74 65 73 74 5c 6d xe$(TOP)\test\m
fbd0: 61 69 6e 2e 74 65 73 74 20 24 28 54 45 53 54 4f ain.test $(TESTO fbe0: 50 54 53 29 0a 0a 73 71 6c 69 74 65 33 5f 61 6e PTS)..sqlite3_an fbf0: 61 6c 79 7a 65 72 2e 63 3a 09 24 28 53 51 4c 49 alyzer.c:.$(SQLI
fc00: 54 45 33 43 29 20 24 28 53 51 4c 49 54 45 33 48 TE3C) $(SQLITE3H fc10: 29 20 24 28 54 4f 50 29 5c 73 72 63 5c 74 63 6c )$(TOP)\src\tcl
fc20: 73 71 6c 69 74 65 2e 63 20 24 28 54 4f 50 29 5c sqlite.c $(TOP)\ fc30: 74 6f 6f 6c 5c 73 70 61 63 65 61 6e 61 6c 2e 74 tool\spaceanal.t fc40: 63 6c 20 24 28 53 51 4c 49 54 45 5f 54 43 4c 5f cl$(SQLITE_TCL_
fc50: 44 45 50 29 0a 09 65 63 68 6f 20 23 64 65 66 69 DEP)..echo #defi
fc60: 6e 65 20 54 43 4c 53 48 20 32 20 3e 20 24 40 0a ne TCLSH 2 > $@. fc70: 09 65 63 68 6f 20 23 64 65 66 69 6e 65 20 53 51 .echo #define SQ fc80: 4c 49 54 45 5f 45 4e 41 42 4c 45 5f 44 42 53 54 LITE_ENABLE_DBST fc90: 41 54 5f 56 54 41 42 20 31 20 3e 3e 20 24 40 0a AT_VTAB 1 >>$@.
fca0: 09 63 6f 70 79 20 24 40 20 2b 20 24 28 53 51 4c .copy $@ +$(SQL
fcb0: 49 54 45 33 43 29 20 2b 20 24 28 54 4f 50 29 5c ITE3C) + $(TOP)\ fcc0: 73 72 63 5c 74 63 6c 73 71 6c 69 74 65 2e 63 20 src\tclsqlite.c fcd0: 24 40 0a 09 65 63 68 6f 20 73 74 61 74 69 63 20$@..echo static
fce0: 63 6f 6e 73 74 20 63 68 61 72 20 2a 74 63 6c 73 const char *tcls
fcf0: 68 5f 6d 61 69 6e 5f 6c 6f 6f 70 28 76 6f 69 64 h_main_loop(void
fd00: 29 7b 20 3e 3e 20 24 40 0a 09 65 63 68 6f 20 73 ){ >> $@..echo s fd10: 74 61 74 69 63 20 63 6f 6e 73 74 20 63 68 61 72 tatic const char fd20: 20 2a 7a 4d 61 69 6e 6c 6f 6f 70 20 3d 20 3e 3e *zMainloop = >> fd30: 20 24 40 0a 09 24 28 54 43 4c 53 48 5f 43 4d 44$@..$(TCLSH_CMD fd40: 29 20 24 28 54 4f 50 29 5c 74 6f 6f 6c 5c 74 6f )$(TOP)\tool\to
fd50: 73 74 72 2e 74 63 6c 20 24 28 54 4f 50 29 5c 74 str.tcl $(TOP)\t fd60: 6f 6f 6c 5c 73 70 61 63 65 61 6e 61 6c 2e 74 63 ool\spaceanal.tc fd70: 6c 20 3e 3e 20 24 40 0a 09 65 63 68 6f 20 3b 20 l >>$@..echo ;
fd80: 72 65 74 75 72 6e 20 7a 4d 61 69 6e 6c 6f 6f 70 return zMainloop
fd90: 3b 20 7d 20 3e 3e 20 24 40 0a 0a 73 71 6c 69 74 ; } >> $@..sqlit fda0: 65 33 5f 61 6e 61 6c 79 7a 65 72 2e 65 78 65 3a e3_analyzer.exe: fdb0: 09 73 71 6c 69 74 65 33 5f 61 6e 61 6c 79 7a 65 .sqlite3_analyze fdc0: 72 2e 63 20 24 28 4c 49 42 52 45 53 4f 42 4a 53 r.c$(LIBRESOBJS
fdd0: 29 0a 09 24 28 4c 54 4c 49 4e 4b 29 20 24 28 4e )..$(LTLINK)$(N
fde0: 4f 5f 57 41 52 4e 29 20 2d 44 42 55 49 4c 44 5f O_WARN) -DBUILD_
fdf0: 73 71 6c 69 74 65 20 2d 49 24 28 54 43 4c 49 4e sqlite -I$(TCLIN fe00: 43 44 49 52 29 20 73 71 6c 69 74 65 33 5f 61 6e CDIR) sqlite3_an fe10: 61 6c 79 7a 65 72 2e 63 20 5c 0a 09 09 2f 6c 69 alyzer.c \.../li fe20: 6e 6b 20 24 28 4c 44 46 4c 41 47 53 29 20 24 28 nk$(LDFLAGS) $( fe30: 4c 54 4c 49 4e 4b 4f 50 54 53 29 20 24 28 4c 54 LTLINKOPTS)$(LT
fe40: 4c 49 42 50 41 54 48 53 29 20 24 28 4c 49 42 52 LIBPATHS) $(LIBR fe50: 45 53 4f 42 4a 53 29 20 24 28 4c 54 4c 49 42 53 ESOBJS)$(LTLIBS
fe60: 29 20 24 28 54 4c 49 42 53 29 0a 0a 64 62 64 75 ) $(TLIBS)..dbdu fe70: 6d 70 2e 65 78 65 3a 09 24 28 54 4f 50 29 5c 65 mp.exe:.$(TOP)\e
fe80: 78 74 5c 6d 69 73 63 5c 64 62 64 75 6d 70 2e 63 xt\misc\dbdump.c
fe90: 20 24 28 53 51 4c 49 54 45 33 43 29 20 24 28 53 $(SQLITE3C)$(S
fea0: 51 4c 49 54 45 33 48 29 0a 09 24 28 4c 54 4c 49 QLITE3H)..$(LTLI feb0: 4e 4b 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 2d NK)$(NO_WARN) -
fec0: 44 44 42 44 55 4d 50 5f 53 54 41 4e 44 41 4c 4f DDBDUMP_STANDALO
fed0: 4e 45 20 24 28 54 4f 50 29 5c 65 78 74 5c 6d 69 NE $(TOP)\ext\mi fee0: 73 63 5c 64 62 64 75 6d 70 2e 63 20 24 28 53 51 sc\dbdump.c$(SQ
fef0: 4c 49 54 45 33 43 29 20 5c 0a 09 09 2f 6c 69 6e LITE3C) \.../lin
ff00: 6b 20 24 28 4c 44 46 4c 41 47 53 29 20 24 28 4c k $(LDFLAGS)$(L
ff10: 54 4c 49 4e 4b 4f 50 54 53 29 20 24 28 4c 54 4c TLINKOPTS) $(LTL ff20: 49 42 50 41 54 48 53 29 20 24 28 4c 49 42 52 45 IBPATHS)$(LIBRE
ff30: 53 4f 42 4a 53 29 20 24 28 4c 54 4c 49 42 53 29 SOBJS) $(LTLIBS) ff40: 0a 0a 74 65 73 74 6c 6f 61 64 65 78 74 2e 6c 6f ..testloadext.lo ff50: 3a 09 24 28 54 4f 50 29 5c 73 72 63 5c 74 65 73 :.$(TOP)\src\tes
ff60: 74 5f 6c 6f 61 64 65 78 74 2e 63 0a 09 24 28 4c t_loadext.c..$(L ff70: 54 43 4f 4d 50 49 4c 45 29 20 24 28 4e 4f 5f 57 TCOMPILE)$(NO_W
ff80: 41 52 4e 29 20 2d 63 20 24 28 54 4f 50 29 5c 73 ARN) -c $(TOP)\s ff90: 72 63 5c 74 65 73 74 5f 6c 6f 61 64 65 78 74 2e rc\test_loadext. ffa0: 63 0a 0a 74 65 73 74 6c 6f 61 64 65 78 74 2e 64 c..testloadext.d ffb0: 6c 6c 3a 09 74 65 73 74 6c 6f 61 64 65 78 74 2e ll:.testloadext. ffc0: 6c 6f 0a 09 24 28 4c 44 29 20 24 28 4c 44 46 4c lo..$(LD) $(LDFL ffd0: 41 47 53 29 20 24 28 4c 54 4c 49 4e 4b 4f 50 54 AGS)$(LTLINKOPT
ffe0: 53 29 20 24 28 4c 54 4c 49 42 50 41 54 48 53 29 S) $(LTLIBPATHS) fff0: 20 2f 44 4c 4c 20 2f 4f 55 54 3a 24 40 20 74 65 /DLL /OUT:$@ te
10000 73 74 6c 6f 61 64 65 78 74 2e 6c 6f 0a 0a 73 68 stloadext.lo..sh
10010 6f 77 64 62 2e 65 78 65 3a 09 24 28 54 4f 50 29 owdb.exe:.$(TOP) 10020 5c 74 6f 6f 6c 5c 73 68 6f 77 64 62 2e 63 20 24 \tool\showdb.c$
10030 28 53 51 4c 49 54 45 33 43 29 20 24 28 53 51 4c (SQLITE3C) $(SQL 10040 49 54 45 33 48 29 0a 09 24 28 4c 54 4c 49 4e 4b ITE3H)..$(LTLINK
10050 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 2d 44 53 ) $(NO_WARN) -DS 10060 51 4c 49 54 45 5f 54 48 52 45 41 44 53 41 46 45 QLITE_THREADSAFE 10070 3d 30 20 2d 44 53 51 4c 49 54 45 5f 4f 4d 49 54 =0 -DSQLITE_OMIT 10080 5f 4c 4f 41 44 5f 45 58 54 45 4e 53 49 4f 4e 20 _LOAD_EXTENSION 10090 5c 0a 09 09 24 28 54 4f 50 29 5c 74 6f 6f 6c 5c \...$(TOP)\tool\
100a0 73 68 6f 77 64 62 2e 63 20 24 28 53 51 4c 49 54 showdb.c $(SQLIT 100b0 45 33 43 29 20 2f 6c 69 6e 6b 20 24 28 4c 44 46 E3C) /link$(LDF
100c0 4c 41 47 53 29 20 24 28 4c 54 4c 49 4e 4b 4f 50 LAGS) $(LTLINKOP 100d0 54 53 29 0a 0a 73 68 6f 77 73 74 61 74 34 2e 65 TS)..showstat4.e 100e0 78 65 3a 09 24 28 54 4f 50 29 5c 74 6f 6f 6c 5c xe:.$(TOP)\tool\
100f0 73 68 6f 77 73 74 61 74 34 2e 63 20 24 28 53 51 showstat4.c $(SQ 10100 4c 49 54 45 33 43 29 20 24 28 53 51 4c 49 54 45 LITE3C)$(SQLITE
10110 33 48 29 0a 09 24 28 4c 54 4c 49 4e 4b 29 20 24 3H)..$(LTLINK)$
10120 28 4e 4f 5f 57 41 52 4e 29 20 2d 44 53 51 4c 49 (NO_WARN) -DSQLI
10130 54 45 5f 54 48 52 45 41 44 53 41 46 45 3d 30 20 TE_THREADSAFE=0
10140 2d 44 53 51 4c 49 54 45 5f 4f 4d 49 54 5f 4c 4f -DSQLITE_OMIT_LO
10150 41 44 5f 45 58 54 45 4e 53 49 4f 4e 20 5c 0a 09 AD_EXTENSION \..
10160 09 24 28 54 4f 50 29 5c 74 6f 6f 6c 5c 73 68 6f .$(TOP)\tool\sho 10170 77 73 74 61 74 34 2e 63 20 24 28 53 51 4c 49 54 wstat4.c$(SQLIT
10180 45 33 43 29 20 2f 6c 69 6e 6b 20 24 28 4c 44 46 E3C) /link $(LDF 10190 4c 41 47 53 29 20 24 28 4c 54 4c 49 4e 4b 4f 50 LAGS)$(LTLINKOP
101a0 54 53 29 0a 0a 73 68 6f 77 6a 6f 75 72 6e 61 6c TS)..showjournal
101b0 2e 65 78 65 3a 09 24 28 54 4f 50 29 5c 74 6f 6f .exe:.$(TOP)\too 101c0 6c 5c 73 68 6f 77 6a 6f 75 72 6e 61 6c 2e 63 20 l\showjournal.c 101d0 24 28 53 51 4c 49 54 45 33 43 29 20 24 28 53 51$(SQLITE3C) $(SQ 101e0 4c 49 54 45 33 48 29 0a 09 24 28 4c 54 4c 49 4e LITE3H)..$(LTLIN
101f0 4b 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 2d 44 K) $(NO_WARN) -D 10200 53 51 4c 49 54 45 5f 54 48 52 45 41 44 53 41 46 SQLITE_THREADSAF 10210 45 3d 30 20 2d 44 53 51 4c 49 54 45 5f 4f 4d 49 E=0 -DSQLITE_OMI 10220 54 5f 4c 4f 41 44 5f 45 58 54 45 4e 53 49 4f 4e T_LOAD_EXTENSION 10230 20 5c 0a 09 09 24 28 54 4f 50 29 5c 74 6f 6f 6c \...$(TOP)\tool
10240 5c 73 68 6f 77 6a 6f 75 72 6e 61 6c 2e 63 20 24 \showjournal.c $10250 28 53 51 4c 49 54 45 33 43 29 20 2f 6c 69 6e 6b (SQLITE3C) /link 10260 20 24 28 4c 44 46 4c 41 47 53 29 20 24 28 4c 54$(LDFLAGS) $(LT 10270 4c 49 4e 4b 4f 50 54 53 29 0a 0a 73 68 6f 77 77 LINKOPTS)..showw 10280 61 6c 2e 65 78 65 3a 09 24 28 54 4f 50 29 5c 74 al.exe:.$(TOP)\t
10290 6f 6f 6c 5c 73 68 6f 77 77 61 6c 2e 63 20 24 28 ool\showwal.c $( 102a0 53 51 4c 49 54 45 33 43 29 20 24 28 53 51 4c 49 SQLITE3C)$(SQLI
102b0 54 45 33 48 29 0a 09 24 28 4c 54 4c 49 4e 4b 29 TE3H)..$(LTLINK) 102c0 20 24 28 4e 4f 5f 57 41 52 4e 29 20 2d 44 53 51$(NO_WARN) -DSQ
102d0 4c 49 54 45 5f 54 48 52 45 41 44 53 41 46 45 3d LITE_THREADSAFE=
102e0 30 20 2d 44 53 51 4c 49 54 45 5f 4f 4d 49 54 5f 0 -DSQLITE_OMIT_
102f0 4c 4f 41 44 5f 45 58 54 45 4e 53 49 4f 4e 20 5c LOAD_EXTENSION \
10300 0a 09 09 24 28 54 4f 50 29 5c 74 6f 6f 6c 5c 73 ...$(TOP)\tool\s 10310 68 6f 77 77 61 6c 2e 63 20 24 28 53 51 4c 49 54 howwal.c$(SQLIT
10320 45 33 43 29 20 2f 6c 69 6e 6b 20 24 28 4c 44 46 E3C) /link $(LDF 10330 4c 41 47 53 29 20 24 28 4c 54 4c 49 4e 4b 4f 50 LAGS)$(LTLINKOP
10340 54 53 29 0a 0a 63 68 61 6e 67 65 73 65 74 2e 65 TS)..changeset.e
10350 78 65 3a 09 24 28 54 4f 50 29 5c 65 78 74 5c 73 xe:.$(TOP)\ext\s 10360 65 73 73 69 6f 6e 5c 63 68 61 6e 67 65 73 65 74 ession\changeset 10370 2e 63 20 24 28 53 51 4c 49 54 45 33 43 29 20 24 .c$(SQLITE3C) $10380 28 53 51 4c 49 54 45 33 48 29 0a 09 24 28 4c 54 (SQLITE3H)..$(LT
10390 4c 49 4e 4b 29 20 24 28 4e 4f 5f 57 41 52 4e 29 LINK) $(NO_WARN) 103a0 20 2d 44 53 51 4c 49 54 45 5f 54 48 52 45 41 44 -DSQLITE_THREAD 103b0 53 41 46 45 3d 30 20 2d 44 53 51 4c 49 54 45 5f SAFE=0 -DSQLITE_ 103c0 4f 4d 49 54 5f 4c 4f 41 44 5f 45 58 54 45 4e 53 OMIT_LOAD_EXTENS 103d0 49 4f 4e 20 5c 0a 09 09 2d 44 53 51 4c 49 54 45 ION \...-DSQLITE 103e0 5f 45 4e 41 42 4c 45 5f 53 45 53 53 49 4f 4e 3d _ENABLE_SESSION= 103f0 31 20 2d 44 53 51 4c 49 54 45 5f 45 4e 41 42 4c 1 -DSQLITE_ENABL 10400 45 5f 50 52 45 55 50 44 41 54 45 5f 48 4f 4f 4b E_PREUPDATE_HOOK 10410 3d 31 20 5c 0a 09 09 24 28 54 4f 50 29 5c 65 78 =1 \...$(TOP)\ex
10420 74 5c 73 65 73 73 69 6f 6e 5c 63 68 61 6e 67 65 t\session\change
10430 73 65 74 2e 63 20 24 28 53 51 4c 49 54 45 33 43 set.c $(SQLITE3C 10440 29 20 2f 6c 69 6e 6b 20 24 28 4c 44 46 4c 41 47 ) /link$(LDFLAG
10450 53 29 20 24 28 4c 54 4c 49 4e 4b 4f 50 54 53 29 S) $(LTLINKOPTS) 10460 0a 0a 66 74 73 33 76 69 65 77 2e 65 78 65 3a 09 ..fts3view.exe:. 10470 24 28 54 4f 50 29 5c 65 78 74 5c 66 74 73 33 5c$(TOP)\ext\fts3\
10480 74 6f 6f 6c 5c 66 74 73 33 76 69 65 77 2e 63 20 tool\fts3view.c
10490 24 28 53 51 4c 49 54 45 33 43 29 20 24 28 53 51 $(SQLITE3C)$(SQ
104a0 4c 49 54 45 33 48 29 0a 09 24 28 4c 54 4c 49 4e LITE3H)..$(LTLIN 104b0 4b 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 2d 44 K)$(NO_WARN) -D
104c0 53 51 4c 49 54 45 5f 54 48 52 45 41 44 53 41 46 SQLITE_THREADSAF
104d0 45 3d 30 20 2d 44 53 51 4c 49 54 45 5f 4f 4d 49 E=0 -DSQLITE_OMI
104e0 54 5f 4c 4f 41 44 5f 45 58 54 45 4e 53 49 4f 4e T_LOAD_EXTENSION
104f0 20 5c 0a 09 09 24 28 54 4f 50 29 5c 65 78 74 5c \...$(TOP)\ext\ 10500 66 74 73 33 5c 74 6f 6f 6c 5c 66 74 73 33 76 69 fts3\tool\fts3vi 10510 65 77 2e 63 20 24 28 53 51 4c 49 54 45 33 43 29 ew.c$(SQLITE3C)
10520 20 2f 6c 69 6e 6b 20 24 28 4c 44 46 4c 41 47 53 /link $(LDFLAGS 10530 29 20 24 28 4c 54 4c 49 4e 4b 4f 50 54 53 29 0a )$(LTLINKOPTS).
10540 0a 72 6f 6c 6c 62 61 63 6b 2d 74 65 73 74 2e 65 .rollback-test.e
10550 78 65 3a 09 24 28 54 4f 50 29 5c 74 6f 6f 6c 5c xe:.$(TOP)\tool\ 10560 72 6f 6c 6c 62 61 63 6b 2d 74 65 73 74 2e 63 20 rollback-test.c 10570 24 28 53 51 4c 49 54 45 33 43 29 20 24 28 53 51$(SQLITE3C) $(SQ 10580 4c 49 54 45 33 48 29 0a 09 24 28 4c 54 4c 49 4e LITE3H)..$(LTLIN
10590 4b 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 2d 44 K) $(NO_WARN) -D 105a0 53 51 4c 49 54 45 5f 54 48 52 45 41 44 53 41 46 SQLITE_THREADSAF 105b0 45 3d 30 20 2d 44 53 51 4c 49 54 45 5f 4f 4d 49 E=0 -DSQLITE_OMI 105c0 54 5f 4c 4f 41 44 5f 45 58 54 45 4e 53 49 4f 4e T_LOAD_EXTENSION 105d0 20 5c 0a 09 09 24 28 54 4f 50 29 5c 74 6f 6f 6c \...$(TOP)\tool
105e0 5c 72 6f 6c 6c 62 61 63 6b 2d 74 65 73 74 2e 63 \rollback-test.c
105f0 20 24 28 53 51 4c 49 54 45 33 43 29 20 2f 6c 69 $(SQLITE3C) /li 10600 6e 6b 20 24 28 4c 44 46 4c 41 47 53 29 20 24 28 nk$(LDFLAGS) $( 10610 4c 54 4c 49 4e 4b 4f 50 54 53 29 0a 0a 4c 6f 67 LTLINKOPTS)..Log 10620 45 73 74 2e 65 78 65 3a 09 24 28 54 4f 50 29 5c Est.exe:.$(TOP)\
10630 74 6f 6f 6c 5c 6c 6f 67 65 73 74 2e 63 20 24 28 tool\logest.c $( 10640 53 51 4c 49 54 45 33 48 29 0a 09 24 28 4c 54 4c SQLITE3H)..$(LTL
10650 49 4e 4b 29 20 24 28 4e 4f 5f 57 41 52 4e 29 20 INK) $(NO_WARN) 10660 24 28 54 4f 50 29 5c 74 6f 6f 6c 5c 4c 6f 67 45$(TOP)\tool\LogE
10670 73 74 2e 63 20 2f 6c 69 6e 6b 20 24 28 4c 44 46 st.c /link $(LDF 10680 4c 41 47 53 29 20 24 28 4c 54 4c 49 4e 4b 4f 50 LAGS)$(LTLINKOP
10690 54 53 29 0a 0a 77 6f 72 64 63 6f 75 6e 74 2e 65 TS)..wordcount.e
106a0 78 65 3a 09 24 28 54 4f 50 29 5c 74 65 73 74 5c xe:.$(TOP)\test\ 106b0 77 6f 72 64 63 6f 75 6e 74 2e 63 20 24 28 53 51 wordcount.c$(SQ
106c0 4c 49 54 45 33 43 29 20 24 28 53 51 4c 49 54 45 LITE3C) $(SQLITE 106d0 33 48 29 0a 09 24 28 4c 54 4c 49 4e 4b 29 20 24 3H)..$(LTLINK) $106e0 28 4e 4f 5f 57 41 52 4e 29 20 2d 44 53 51 4c 49 (NO_WARN) -DSQLI 106f0 54 45 5f 54 48 52 45 41 44 53 41 46 45 3d 30 20 TE_THREADSAFE=0 10700 2d 44 53 51 4c 49 54 45 5f 4f 4d 49 54 5f 4c 4f -DSQLITE_OMIT_LO 10710 41 44 5f 45 58 54 45 4e 53 49 4f 4e 20 5c 0a 09 AD_EXTENSION \.. 10720 09 24 28 54 4f 50 29 5c 74 65 73 74 5c 77 6f 72 .$(TOP)\test\wor
10730 64 63 6f 75 6e 74 2e 63 20 24 28 53 51 4c 49 54 dcount.c $(SQLIT 10740 45 33 43 29 20 2f 6c 69 6e 6b 20 24 28 4c 44 46 E3C) /link$(LDF
10750 4c 41 47 53 29 20 24 28 4c 54 4c 49 4e 4b 4f 50 LAGS) $(LTLINKOP 10760 54 53 29 0a 0a 73 70 65 65 64 74 65 73 74 31 2e TS)..speedtest1. 10770 65 78 65 3a 09 24 28 54 4f 50 29 5c 74 65 73 74 exe:.$(TOP)\test
10780 5c 73 70 65 65 64 74 65 73 74 31 2e 63 20 24 28 \speedtest1.c $( 10790 53 51 4c 49 54 45 33 43 29 20 24 28 53 51 4c 49 SQLITE3C)$(SQLI
107a0 54 45 33 48 29 0a 09 24 28 4c 54 4c 49 4e 4b 29 TE3H)..$(LTLINK) 107b0 20 24 28 4e 4f 5f 57 41 52 4e 29 20 24 28 53 54$(NO_WARN) $(ST 107c0 5f 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 2d _COMPILE_OPTS) - 107d0 44 53 51 4c 49 54 45 5f 4f 4d 49 54 5f 4c 4f 41 DSQLITE_OMIT_LOA 107e0 44 5f 45 58 54 45 4e 53 49 4f 4e 20 5c 0a 09 09 D_EXTENSION \... 107f0 24 28 54 4f 50 29 5c 74 65 73 74 5c 73 70 65 65$(TOP)\test\spee
10800 64 74 65 73 74 31 2e 63 20 24 28 53 51 4c 49 54 dtest1.c $(SQLIT 10810 45 33 43 29 20 2f 6c 69 6e 6b 20 24 28 4c 44 46 E3C) /link$(LDF
10820 4c 41 47 53 29 20 24 28 4c 54 4c 49 4e 4b 4f 50 LAGS) $(LTLINKOP 10830 54 53 29 0a 0a 6b 76 74 65 73 74 2e 65 78 65 3a TS)..kvtest.exe: 10840 09 24 28 54 4f 50 29 5c 74 65 73 74 5c 6b 76 74 .$(TOP)\test\kvt
10850 65 73 74 2e 63 20 24 28 53 51 4c 49 54 45 33 43 est.c $(SQLITE3C 10860 29 20 24 28 53 51 4c 49 54 45 33 48 29 0a 09 24 )$(SQLITE3H)..$10870 28 4c 54 4c 49 4e 4b 29 20 24 28 4e 4f 5f 57 41 (LTLINK)$(NO_WA
10880 52 4e 29 20 24 28 4b 56 5f 43 4f 4d 50 49 4c 45 RN) $(KV_COMPILE 10890 5f 4f 50 54 53 29 20 5c 0a 09 09 24 28 54 4f 50 _OPTS) \...$(TOP
108a0 29 5c 74 65 73 74 5c 6b 76 74 65 73 74 2e 63 20 )\test\kvtest.c
108b0 24 28 53 51 4c 49 54 45 33 43 29 20 2f 6c 69 6e $(SQLITE3C) /lin 108c0 6b 20 24 28 4c 44 46 4c 41 47 53 29 20 24 28 4c k$(LDFLAGS) $(L 108d0 54 4c 49 4e 4b 4f 50 54 53 29 0a 0a 64 62 73 65 TLINKOPTS)..dbse 108e0 6c 66 74 65 73 74 2e 65 78 65 3a 09 24 28 54 4f lftest.exe:.$(TO
108f0 50 29 5c 74 65 73 74 5c 64 62 73 65 6c 66 74 65 P)\test\dbselfte
10900 73 74 2e 63 20 24 28 53 51 4c 49 54 45 33 43 29 st.c $(SQLITE3C) 10910 20 24 28 53 51 4c 49 54 45 33 48 29 0a 09 24 28$(SQLITE3H)..$( 10920 4c 54 4c 49 4e 4b 29 20 24 28 4e 4f 5f 57 41 52 LTLINK)$(NO_WAR
10930 4e 29 20 24 28 44 42 53 45 4c 46 54 45 53 54 5f N) $(DBSELFTEST_ 10940 43 4f 4d 50 49 4c 45 5f 4f 50 54 53 29 20 24 28 COMPILE_OPTS)$(
10950 54 4f 50 29 5c 74 65 73 74 5c 64 62 73 65 6c 66 TOP)\test\dbself
10960 74 65 73 74 2e 63 20 24 28 53 51 4c 49 54 45 33 test.c $(SQLITE3 10970 43 29 0a 0a 72 62 75 2e 65 78 65 3a 09 24 28 54 C)..rbu.exe:.$(T
10980 4f 50 29 5c 65 78 74 5c 72 62 75 5c 72 62 75 2e OP)\ext\rbu\rbu.
10990 63 20 24 28 54 4f 50 29 5c 65 78 74 5c 72 62 75 c $(TOP)\ext\rbu 109a0 5c 73 71 6c 69 74 65 33 72 62 75 2e 63 20 24 28 \sqlite3rbu.c$(
109b0 53 51 4c 49 54 45 33 43 29 20 24 28 53 51 4c 49 SQLITE3C) $(SQLI 109c0 54 45 33 48 29 0a 09 24 28 4c 54 4c 49 4e 4b 29 TE3H)..$(LTLINK)
109d0 20 24 28 4e 4f 5f 57 41 52 4e 29 20 2d 44 53 51 $(NO_WARN) -DSQ 109e0 4c 49 54 45 5f 45 4e 41 42 4c 45 5f 52 42 55 20 LITE_ENABLE_RBU 109f0 5c 0a 09 09 24 28 54 4f 50 29 5c 65 78 74 5c 72 \...$(TOP)\ext\r
10a00 62 75 5c 72 62 75 2e 63 20 24 28 53 51 4c 49 54 bu\rbu.c $(SQLIT 10a10 45 33 43 29 20 2f 6c 69 6e 6b 20 24 28 4c 44 46 E3C) /link$(LDF
10a20 4c 41 47 53 29 20 24 28 4c 54 4c 49 4e 4b 4f 50 LAGS) $(LTLINKOP 10a30 54 53 29 0a 0a 6d 6f 72 65 63 6c 65 61 6e 3a 09 TS)..moreclean:. 10a40 63 6c 65 61 6e 0a 09 64 65 6c 20 2f 51 20 24 28 clean..del /Q$(
10a50 53 51 4c 49 54 45 33 43 29 20 24 28 53 51 4c 49 SQLITE3C) $(SQLI 10a60 54 45 33 48 29 20 32 3e 4e 55 4c 0a 23 20 3c 3c TE3H) 2>NUL.# << 10a70 2f 6d 61 72 6b 3e 3e 0a 0a 63 6c 65 61 6e 3a 0a /mark>>..clean:. 10a80 09 64 65 6c 20 2f 51 20 2a 2e 65 78 70 20 2a 2e .del /Q *.exp *. 10a90 6c 6f 20 2a 2e 69 6c 6b 20 2a 2e 6c 69 62 20 2a lo *.ilk *.lib * 10aa0 2e 6f 62 6a 20 2a 2e 6e 63 62 20 2a 2e 70 64 62 .obj *.ncb *.pdb 10ab0 20 2a 2e 73 64 66 20 2a 2e 73 75 6f 20 32 3e 4e *.sdf *.suo 2>N 10ac0 55 4c 0a 09 64 65 6c 20 2f 51 20 2a 2e 62 73 63 UL..del /Q *.bsc 10ad0 20 2a 2e 64 65 66 20 2a 2e 63 6f 64 20 2a 2e 64 *.def *.cod *.d 10ae0 61 20 2a 2e 62 62 20 2a 2e 62 62 67 20 2a 2e 76 a *.bb *.bbg *.v 10af0 63 20 67 6d 6f 6e 2e 6f 75 74 20 32 3e 4e 55 4c c gmon.out 2>NUL 10b00 0a 09 64 65 6c 20 2f 51 20 24 28 53 51 4c 49 54 ..del /Q$(SQLIT
10b10 45 33 45 58 45 29 20 24 28 53 51 4c 49 54 45 33 E3EXE) $(SQLITE3 10b20 44 4c 4c 29 20 52 65 70 6c 61 63 65 2e 65 78 65 DLL) Replace.exe 10b30 20 32 3e 4e 55 4c 0a 23 20 3c 3c 6d 61 72 6b 3e 2>NUL.# <<mark> 10b40 3e 0a 09 64 65 6c 20 2f 51 20 73 71 6c 69 74 65 >..del /Q sqlite 10b50 33 2e 63 20 73 71 6c 69 74 65 33 2e 68 20 32 3e 3.c sqlite3.h 2> 10b60 4e 55 4c 0a 09 64 65 6c 20 2f 51 20 6f 70 63 6f NUL..del /Q opco 10b70 64 65 73 2e 63 20 6f 70 63 6f 64 65 73 2e 68 20 des.c opcodes.h 10b80 32 3e 4e 55 4c 0a 09 64 65 6c 20 2f 51 20 6c 65 2>NUL..del /Q le 10b90 6d 6f 6e 2e 2a 20 6c 65 6d 70 61 72 2e 63 20 70 mon.* lempar.c p 10ba0 61 72 73 65 2e 2a 20 32 3e 4e 55 4c 0a 09 64 65 arse.* 2>NUL..de 10bb0 6c 20 2f 51 20 6d 6b 6b 65 79 77 6f 72 64 68 61 l /Q mkkeywordha 10bc0 73 68 2e 2a 20 6b 65 79 77 6f 72 64 68 61 73 68 sh.* keywordhash 10bd0 2e 68 20 32 3e 4e 55 4c 0a 09 64 65 6c 20 2f 51 .h 2>NUL..del /Q 10be0 20 6e 6f 74 61 73 68 61 72 65 64 6c 69 62 2e 2a notasharedlib.* 10bf0 20 32 3e 4e 55 4c 0a 09 2d 72 6d 64 69 72 20 2f 2>NUL..-rmdir / 10c00 51 2f 53 20 2e 64 65 70 73 20 32 3e 4e 55 4c 0a Q/S .deps 2>NUL. 10c10 09 2d 72 6d 64 69 72 20 2f 51 2f 53 20 2e 6c 69 .-rmdir /Q/S .li 10c20 62 73 20 32 3e 4e 55 4c 0a 09 2d 72 6d 64 69 72 bs 2>NUL..-rmdir 10c30 20 2f 51 2f 53 20 74 73 72 63 20 32 3e 4e 55 4c /Q/S tsrc 2>NUL 10c40 0a 09 64 65 6c 20 2f 51 20 2e 74 61 72 67 65 74 ..del /Q .target 10c50 5f 73 6f 75 72 63 65 20 32 3e 4e 55 4c 0a 09 64 _source 2>NUL..d 10c60 65 6c 20 2f 51 20 74 63 6c 73 71 6c 69 74 65 33 el /Q tclsqlite3 10c70 2e 65 78 65 20 24 28 53 51 4c 49 54 45 54 43 4c .exe$(SQLITETCL
10c80 48 29 20 24 28 53 51 4c 49 54 45 54 43 4c 44 45 H) \$(SQLITETCLDE
10c90 43 4c 53 48 29 20 32 3e 4e 55 4c 0a 09 64 65 6c CLSH) 2>NUL..del
10ca0 20 2f 51 20 74 65 73 74 6c 6f 61 64 65 78 74 2e /Q testloadext.
10cb0 64 6c 6c 20 32 3e 4e 55 4c 0a 09 64 65 6c 20 2f dll 2>NUL..del /
10cc0 51 20 74 65 73 74 66 69 78 74 75 72 65 2e 65 78 Q testfixture.ex
10cd0 65 20 74 65 73 74 2e 64 62 20 32 3e 4e 55 4c 0a e test.db 2>NUL.
10ce0 09 64 65 6c 20 2f 51 20 4c 6f 67 45 73 74 2e 65 .del /Q LogEst.e
10cf0 78 65 20 66 74 73 33 76 69 65 77 2e 65 78 65 20 xe fts3view.exe
10d00 72 6f 6c 6c 62 61 63 6b 2d 74 65 73 74 2e 65 78 rollback-test.ex
10d10 65 20 73 68 6f 77 64 62 2e 65 78 65 20 64 62 64 e showdb.exe dbd
10d20 75 6d 70 2e 65 78 65 20 32 3e 4e 55 4c 0a 09 64 ump.exe 2>NUL..d
10d30 65 6c 20 2f 51 20 63 68 61 6e 67 65 73 65 74 2e el /Q changeset.
10d40 65 78 65 20 32 3e 4e 55 4c 0a 09 64 65 6c 20 2f exe 2>NUL..del /
10d50 51 20 73 68 6f 77 6a 6f 75 72 6e 61 6c 2e 65 78 Q showjournal.ex
10d60 65 20 73 68 6f 77 73 74 61 74 34 2e 65 78 65 20 e showstat4.exe
10d70 73 68 6f 77 77 61 6c 2e 65 78 65 20 73 70 65 65 showwal.exe spee
10d80 64 74 65 73 74 31 2e 65 78 65 20 32 3e 4e 55 4c dtest1.exe 2>NUL
10d90 0a 09 64 65 6c 20 2f 51 20 6d 70 74 65 73 74 65 ..del /Q mpteste
10da0 72 2e 65 78 65 20 77 6f 72 64 63 6f 75 6e 74 2e r.exe wordcount.
10db0 65 78 65 20 72 62 75 2e 65 78 65 20 73 72 63 63 exe rbu.exe srcc
10dc0 6b 31 2e 65 78 65 20 32 3e 4e 55 4c 0a 09 64 65 k1.exe 2>NUL..de
10dd0 6c 20 2f 51 20 73 71 6c 69 74 65 33 2e 63 20 73 l /Q sqlite3.c s
10de0 71 6c 69 74 65 33 2d 2a 2e 63 20 32 3e 4e 55 4c qlite3-*.c 2>NUL
10df0 0a 09 64 65 6c 20 2f 51 20 73 71 6c 69 74 65 33 ..del /Q sqlite3
10e00 72 63 2e 68 20 32 3e 4e 55 4c 0a 09 64 65 6c 20 rc.h 2>NUL..del
10e10 2f 51 20 73 68 65 6c 6c 2e 63 20 73 71 6c 69 74 /Q shell.c sqlit
10e20 65 33 65 78 74 2e 68 20 73 71 6c 69 74 65 33 73 e3ext.h sqlite3s
10e30 65 73 73 69 6f 6e 2e 68 20 32 3e 4e 55 4c 0a 09 ession.h 2>NUL..
10e40 64 65 6c 20 2f 51 20 73 71 6c 69 74 65 33 5f 61 del /Q sqlite3_a
10e50 6e 61 6c 79 7a 65 72 2e 65 78 65 20 73 71 6c 69 nalyzer.exe sqli
10e60 74 65 33 5f 61 6e 61 6c 79 7a 65 72 2e 63 20 32 te3_analyzer.c 2
10e70 3e 4e 55 4c 0a 09 64 65 6c 20 2f 51 20 73 71 6c >NUL..del /Q sql
10e80 69 74 65 2d 2a 2d 6f 75 74 70 75 74 2e 76 73 69 ite-*-output.vsi
10e90 78 20 32 3e 4e 55 4c 0a 09 64 65 6c 20 2f 51 20 x 2>NUL..del /Q
10ea0 66 75 7a 7a 65 72 73 68 65 6c 6c 2e 65 78 65 20 fuzzershell.exe
10eb0 66 75 7a 7a 63 68 65 63 6b 2e 65 78 65 20 73 71 fuzzcheck.exe sq
10ec0 6c 64 69 66 66 2e 65 78 65 20 64 62 68 61 73 68 ldiff.exe dbhash
10ed0 2e 65 78 65 20 32 3e 4e 55 4c 0a 09 64 65 6c 20 .exe 2>NUL..del
10ee0 2f 51 20 66 74 73 35 2e 2a 20 66 74 73 35 70 61 /Q fts5.* fts5pa
10ef0 72 73 65 2e 2a 20 32 3e 4e 55 4c 0a 23 20 3c 3c rse.* 2>NUL.# <<
10f00 2f 6d 61 72 6b 3e 3e 0a /mark>>. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9830307960510254, "perplexity": 218.19581149260554}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-18/segments/1555578616424.69/warc/CC-MAIN-20190423234808-20190424020808-00434.warc.gz"} |
http://www.aanda.org/articles/aa/abs/2005/48/aa3592-05/aa3592-05.html | Free Access
Issue A&A Volume 444, Number 3, December IV 2005 767 - 775 Extragalactic astronomy https://doi.org/10.1051/0004-6361:20053592
A&A 444, 767-775 (2005)
DOI: 10.1051/0004-6361:20053592
## COMPTEL observations of the -ray blazars 3C 454.3 and CTA 102 during the CGRO mission
S. Zhang1, 2, W. Collmar2 and V. Schönfelder2
1 Laboratory for Particle Astrophysics, Institute of High Energy Physics, PO Box 918-3, Beijing 100049, PR China
e-mail: szhang@mail.ihep.ac.cn
2 Max-Planck-Institut für extraterrestrische Physik, Postfach 1613, 85741 Garching, Germany
(Received 8 June 2005 / Accepted 5 August 2005 )
Abstract
We have investigated the MeV behaviour of the -ray blazars 3C 454.3 and CTA 102 by analyzing all COMPTEL observations of this sky region during the complete CGRO mission. Both sources are detected by COMPTEL at the upper COMPTEL energies, although their flux estimates may be uncertain by possible minor contributions of nearby unidentified EGRET -ray sources. While CTA 102 was only detected at energies above 10 MeV during the early mission, 3C 454.3 is most significantly detected in the COMPTEL 3-10 MeV band in the sum of all data. Time-resolved analyses indicate a weak (near COMPTEL threshold) but likely steady 3-10 MeV emission over years, being independent of the observed time variability at energies above 100 MeV as observed by EGRET. This energy-dependent variability behaviour suggests different emission mechanisms at work in the two bands. Putting the COMPTEL fluxes in multifrequency perspective (radio to -rays) reveals for both sources the typical two-hump blazar spectrum, with a low-energy maximum around the IR and a high-energy maximum at MeV energies. The latter one dominates the energy output across the whole electro-magnetic spectrum. The results of our analyses are discussed in the framework of current blazar modeling.
Key words: rays: observations -- galaxies: active -- galaxies: quasars: individual: 3C 454.3, CTA 102 | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8941606283187866, "perplexity": 5964.108840441644}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-09/segments/1487501173866.98/warc/CC-MAIN-20170219104613-00301-ip-10-171-10-108.ec2.internal.warc.gz"} |
https://thiscondensedlife.wordpress.com/tag/graphene/ | # Tag Archives: Graphene
## Timing
Rather than being linear, the historical progression of topics in physics sometimes takes a tortuous route. There are two Annual Reviews of Condensed Matter Physics articles, one by P. Nozieres and one by M. Dresselhaus, that describe how widespread interest on certain subjects in the study of condensed matter were affected by timing.
In the article by Dresselhaus, she notes that HP Boehm and co-workers had actually isolated monolayer graphene back in 1962 (pdf!, and in German). On the theoretical front, P. Nozieres says in his article:
But neither I nor any of these famous people ever suspected what was hiding behind that linear dispersion. Fifty years later, graphene became a frontier of physics with far-reaching quantum effects.
Dresselhaus also mentions that carbon nanotubes were observed in 1952 in Russia followed by another reported discovery in the 1970s by M. Endo. These reports occurred well before its rediscovery in 1991 by Iijima that sparked a wealth of studies. The controversy over the discovery of nanotubes actually seems to date back even further, perhaps even to 1889 (pdf)!
In the field of topological insulators, again there seems to have been an oversight from the greater condensed matter physics community. As early as 1985, in the Soviet journal JETP, B.A. Volhov and O.A. Pankratov discussed the possibility of Dirac electrons at the surface between a normal band-gap semiconductor and an “inverted” band-gap semiconductor (pdf). Startlingly, the authors suggest CdHgTe and PbSnSe as materials in which to investigate the possibility. A HgTe/(Hg,Cd)Te quantum well hosted the first definitive observation of the quantum spin hall effect, while the Pb$_{1-x}$Sn$_x$Se system was later found to be a topological crystalline insulator.
One can probably find many more examples of historical inattention if one were to do a thorough study. One also wonders what other kinds of gems are hidden within the vastness of the scientific literature. P. Nozieres notes that perhaps the timing of these discoveries has something to do with why these initial discoveries went relatively unnoticed:
When a problem is not ripe you simply do not see it.
I don’t know how one quantifies “ripeness”, but he seems to be suggesting that the perceived importance of scientific works are correlated in some way to the scientific zeitgeist. In this vein, it is amusing to think about what would have happened had one discovered, say, topological insulators in Newton’s time. In all likelihood, no one would have paid the slightest attention.
## What Happens in 2D Stays in 2D.
There was a recent paper published in Nature Nanotechnology demonstrating that single-layer NbSe$_2$ exhibits a charge density wave transition at 145K and superconductivity at 2K. Bulk NbSe$_2$ has a CDW transition at ~34K and a superconducting transition at ~7.5K. The authors speculate (plausibly) that the enhanced CDW transition temperature occurs because of an increase in electron-phonon coupling due to the reduction in screening. An important detail is that the authors used a sapphire substrate for the experiments.
This paper is among a general trend of papers that examine the physics of solids in the 2D limit in single-layer form or at the interface between two solids. This frontier was opened up by the discovery of graphene and also by the discovery of superconductivity and ferromagnetism in the 2D electron gas at the LAO/STO interface. The nature of these transitions at the LAO/STO interface is a prominent area of research in condensed matter physics. Part of the reason for this interest stems from researchers having been ingrained with the Mermin-Wagner theorem. I have written before about the limitations of such theorems.
Nevertheless, it has now been found that the transition temperatures of materials can be significantly enhanced in single layer form. Besides the NbSe$_2$ case, it was found that the CDW transition temperature in single-layer TiSe$_2$ was also enhanced by about 40K in monolayer form. Probably most spectacularly, it was reported that single-layer FeSe on an STO substrate exhibited superconductivity at temperatures higher than 100K (bulk FeSe only exhibits superconductivity at 8K). It should be mentioned that in bulk form the aforementioned materials are all quasi-2D and layered.
The phase transitions in these compounds obviously raise some fundamental questions about the nature of solids in 2D. One would expect, naively, for the transition temperature to be suppressed in reduced dimensions due to enhanced fluctuations. Obviously, this is not experimentally observed, and there must therefore be a boost from another parameter, such as the electron-phonon coupling in the NbSe$_2$ case, that must be taken into account.
I find this trend towards studying 2D compounds a particularly interesting avenue in the current condensed matter physics climate for a few reasons: (1) whether or not these phase transitions make sense within the Kosterlitz-Thouless paradigm (which works well to explain transitions in 2D superfluid and superconducting films) still needs to be investigated, (2) the need for adequate probes to study interfacial and monolayer compounds will necessarily lead to new experimental techniques and (3) qualitatively different phenomena can occur in the 2D limit that do not necessarily occur in their 3D counterparts (the quantum hall effect being a prime example).
Sometimes trends in condensed matter physics can lead to intellectual atrophy — I think that this one may lead to some fundamental and major discoveries in the years to come on the theoretical, experimental and perhaps even on the technological fronts.
Update: The day after I wrote this post, I also came upon an article demonstrating evidence for a ferroelectric phase transition in thin Strontium Titanate (STO), a material known to exhibit no ferroelectric phase transition in bulk form at all.
## Do “Theorems” in Condensed Matter Physics Limit the Imagination?
There are many so-called “theorems” in physics. The most famously quoted in the field of condensed matter are the ones associated with the names of Goldstone, Mermin-Wagner, and McMillan.
If you aren’t familiar with these often (mis)quoted theorems, then let me (mis)quote them for you:
1) Goldstone: For each continuous symmetry a phase of matter breaks, there is an associated collective excitation that is gapless for long wavelengths, usually referred to as a Nambu-Goldstone mode.
2) Mermin-Wagner: Continuous symmetries cannot be spontaneously broken at finite temperature in systems with sufficiently short-range interactions in dimensions d ≤ 2. (From Wikipedia)
3) McMillan (PDF link!): Electron-phonon induced superconductivity cannot have a higher Tc than approximately 40K.
All these three theorems in condensed matter physics have been violated to a certain extent. My gut feeling, though, is that these theorems can have the adverse consequence of limiting one’s imagination. As an experimental physicist, I can see the value in such theorems, but I don’t think that it is constructive to believe them outright. The number of times that nature has proven that she is much more creative and elusive than our human minds should tell us that we should use these theorems as guidance but to always be wary of such ideas.
For instance, had one believed the Mermin-Wagner theorem outright, would someone have thought the existence of graphene possible? In a solid, which breaks translational symmetry in three directions and rotational symmetry in three directions, why are there only three acoustic phonons? McMillan’s formula still holds true for electron-phonon coupled superconductors (marginal case being MgB2 which has a Tc~40K), though a startling discovery recently may even shatter this claim. However, placed in its historical context (it was stated before the discovery of high-temperature superconductors), one wonders whether McMillan’s formula disheartened some experimentalists from pursuing the goal of a higher transition temperature superconductor.
My message: One may use the theorems as guidance, but they are really there to be broken. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 7, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.7912139296531677, "perplexity": 1234.8495944422627}, "config": {"markdown_headings": true, "markdown_code": false, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-21/segments/1620243989812.47/warc/CC-MAIN-20210515035645-20210515065645-00560.warc.gz"} |
http://dianken.mew.ru/library/art-and-aesthetics-after-adorno-by-j-m-bernstein-2014-08-18 | By J. M. Bernstein, Claudia Brodsky, Anthony J. Cascardi, among others
Theodor Adorno's Aesthetic concept (1970) bargains probably the most robust and finished reviews of artwork and of the self-discipline of aesthetics ever written. The paintings deals a deeply serious engagement with the heritage and philosophy of aesthetics and with the traditions of eu artwork during the heart of the twentieth century. it really is coupled with formidable claims approximately what aesthetic concept needs to be. however the cultural horizon of Adorno's Aesthetic conception was once the area of excessive modernism, and lots more and plenty has occurred due to the fact then either in thought and in perform. Adorno's robust imaginative and prescient of aesthetics demands reconsideration during this mild. needs to his paintings be defended, up-to-date, resisted, or just left in the back of? This quantity gathers new essays by way of best philosophers, critics, and theorists writing within the wake of Adorno on the way to tackle those questions. They carry in universal a deep recognize for the facility of Adorno's aesthetic critique and a priority for the way forward for aesthetic concept according to fresh advancements in aesthetics and its contexts.
Best Art books
n-Harmonic Mappings Between Annuli: The Art of Integrating Free Lagrangians (Memoirs of the American Mathematical Society)
The vital subject matter of this paper is the variational research of homeomorphisms $h: {\mathbb X} \overset{\textnormal{\tiny{onto}}}{\longrightarrow} {\mathbb Y}$ among given domain names ${\mathbb X}, {\mathbb Y} \subset {\mathbb R}^n$. The authors search for the extremal mappings within the Sobolev house ${\mathscr W}^{1,n}({\mathbb X},{\mathbb Y})$ which reduce the strength vital \${\mathscr E}_h=\int_{{\mathbb X}} \,|\!
Model Driven Architecture – Foundations and Applications: First European Conference, ECMDA-FA 2005, Nuremberg, Germany, November 7-10, 2005. Proceedings
This booklet constitutes the refereed lawsuits of the 1st eu convention, Workshops on version pushed structure - Foundations and functions, ECMDA-FA 2005, held in Nuremberg, Germany in November 2005. The 24 revised complete papers offered, nine papers from the purposes tune and 15 from the principles song, have been rigorously reviewed and chosen from eighty two submissions.
Additional resources for Art and Aesthetics After Adorno by J. M. Bernstein (2014-08-18)
Show sample text content
Rated 4.76 of 5 – based on 17 votes | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.25931525230407715, "perplexity": 7138.332445632528}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-39/segments/1537267160568.87/warc/CC-MAIN-20180924145620-20180924170020-00185.warc.gz"} |
http://mathhelpforum.com/trigonometry/49435-how-d-they-get-cos-out-here.html | # Math Help - How'd they get cos out here?
1. ## How'd they get cos out here?
Hi folks,
Firstly this is the page I'm looking at to try and learn some trig,
SparkNotes: SAT Subject Test: Math Level 1: Trigonometric Identities
The question goes as follows
$(\cos\theta \times \tan\theta) / (\sin\theta -\cos\theta^2)$
In their working, they re write this as follows
$\frac{\cos\theta \times \tan\theta}{\sin\theta} - \cos\theta^2$
My question is - How did they get the $\cos\theta^2$ out from under the fraction? Shouldn't it be under there instead of out seperately?
Why isn't it
$\frac{\cos\theta \times \tan\theta}{\sin\theta - \cos\theta^2}$
Thanks folks.
2. Originally Posted by Peleus
Hi folks,
Firstly this is the page I'm looking at to try and learn some trig,
SparkNotes: SAT Subject Test: Math Level 1: Trigonometric Identities
The question goes as follows
$(\cos\theta \times \tan\theta) / (\sin\theta -\cos\theta^2)$
In their working, they re write this as follows
$\frac{\cos\theta \times \tan\theta}{\sin\theta} - \cos\theta^2$ Mr F says: This is wrong.
My question is - How did they get the $\cos\theta^2$ out from under the fraction? Shouldn't it be under there instead of out seperately?
Why isn't it
$\frac{\cos\theta \times \tan\theta}{\sin\theta - \cos\theta^2}$ Mr F says: This is right.
Thanks folks.
.. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 8, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9107150435447693, "perplexity": 2842.6395111080074}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2014-10/segments/1393999653645/warc/CC-MAIN-20140305060733-00057-ip-10-183-142-35.ec2.internal.warc.gz"} |
http://mathhelpforum.com/calculus/107133-integral-print.html | # Integral
• October 10th 2009, 02:18 AM
Dranalion
Integral
Hey,
I am looking to antiderive the following:
$\int (3-sin{3x})(cos{3x})dx$
Any help is much appreciated,
Dranalion
• October 10th 2009, 03:42 AM
galactus
$\int (3-sin(3x))cos(3x)dx$
Just make the sub $u=sin(3x), \;\ \frac{du}{3}=cos(3x)dx$
Now, it should be easier.
$\frac{1}{3}\int (3-u)du$
• October 10th 2009, 03:50 AM
Dranalion
Using this, does this give the answer:
= sin(3x) - 1/6(sin^2(3x)) + c ?
I am just checking to see if I followed it correctly.
• October 10th 2009, 04:17 AM
mr fantastic
Quote:
Originally Posted by Dranalion
Using this, does this give the answer:
= sin(3x) - 1/6(sin^2(3x)) + c ?
I am just checking to see if I followed it correctly.
When you differentiate your answer do you get the integrand?
• October 10th 2009, 04:19 AM
Defunkt
Quote:
Originally Posted by Dranalion
Using this, does this give the answer:
= sin(3x) - 1/6(sin^2(3x)) + c ?
I am just checking to see if I followed it correctly.
$\frac{1}{3} \int(3-u)du = \frac{1}{3} (3u - \frac{u^2}{2}) + C = u - \frac{u^2}{6} + C = sin(3x) - \frac{sin^2(3x)}{6} + C$ so yes | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 5, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.7899285554885864, "perplexity": 3199.4033365703426}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.3, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-18/segments/1429246661675.84/warc/CC-MAIN-20150417045741-00273-ip-10-235-10-82.ec2.internal.warc.gz"} |
https://www.tutorialspoint.com/a-c-programming-language-puzzle | # A C Programming Language Puzzle?
CServer Side ProgrammingProgramming
#### C in Depth: The Complete C Programming Guide for Beginners
45 Lectures 4.5 hours
#### Practical C++: Learn C++ Basics Step by Step
Most Popular
50 Lectures 4.5 hours
#### Master C and Embedded C Programming- Learn as you go
66 Lectures 5.5 hours
Here we will see one C programming language puzzle question. Suppose we have two numbers 48 and 96. We have to add the first number after the second one. So final result will be like 9648. But we cannot use any logical, arithmetic, string related operations, also cannot use any pre-defined functions. So how can we do that?
This is easy. We can do by using Token Pasting operator(##) in C. The Token Pasting operator is a preprocessor operator. It sends commands to compiler to add or concatenate two tokens into one string. We use this operator at the macro definition.
## Example
Live Demo
#include<stdio.h>
#define MERGE(x, y) y##x
main() {
printf("%d", MERGE(48, 96));
}
## Output
9648
Updated on 30-Jul-2019 22:30:26 | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.6312024593353271, "perplexity": 6075.6814282486985}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-40/segments/1664030335504.22/warc/CC-MAIN-20220930181143-20220930211143-00015.warc.gz"} |
http://deggles.csoft.net/index.php?month=10&year=2015 | ## U-19 Qualifiers and ICC News; Associate and Affiliate Cricket Podcast Russell Degnan
The podcast returns with a little cricket and a lot of news. Andrew Nixon (@andrewnixon79) joins Russell Degnan (@idlesummers) to discuss the under-19 World Cup qualifiers (0:23), the Ireland (1:50) and Afghanistan (7:20) tours of Zimbabwe, the Africa T20 Cup (9:58), and the South American championship in Chile (13:11). There are lots of news topics to digest, including player eligibility issue for Suriname at WCL6 (17:17). From the ICC meeting there were mooted changes to the world cup qualification process (20:46) , the womens world cup format (24:23), the formalisation of changes to funding for associates and affiliates (26:06), a renewed look at the Olympics (29:19), administrative problems in Nepal (34:18) and the end of WCL6? (37:52). There is more news from the Americas with the ICC team and the Warne-Tendulkar All-Star series (39:38), and globally: associate involvement in the WBBL (52:05) amongst some previews for WCL and Hong Kongs tour of the UAE.
Direct Download Running Time 55min. Music from Martin Solveig, "Big in Japan"
The associate and affiliate cricket podcast is an attempt to expand coverage of associate tournaments by obtaining local knowledge of the relevant nations. If you have or intend to go to a tournament at associate level - mens womens, ICC, unaffiliated - then please get in touch in the comments or by email.
Idle Summers 29th October, 2015 08:25:16 [#] [0 comments]
## Batting form and the "hot hand" Russell Degnan
There has been an interesting paper in circulation recently that deals with the idea of a "hot hand", which in cricket terms wed refer to as "good form". It is primarily interesting because for several decades, the idea of streaks being anything other than random luck has been derided. Attempts to measure it in cricket have been few and far between, but there was little to suggest a batsman was more likely to score runs having just done so - or indeed, that they werent largely replicable with a random number generator.
The paper in question upends a key piece of prior research because of a rather simple, but slightly counter-intuitive piece of statistics. The various explanationstend towards the counter-intuitive end of the scale but Ill try to explain.
The technique being used is very elegant: take an action that occurs roughly 50% of the time and measure the number of successes that follow a previous success. If they are completely independent, the subsequent attempt will continue to have a probability of 50%. If the successes are clustered around other successes, that number ought to be higher.
The quirk, is that because strings of attempts are being measured, the average probability found in those strings will not actually be 50%. This is the counter-intuitive part, but is relatively easily seen on a simple graph:
Here is shown strings of eight attempts broken down into the number of times a measure took place (that is, the previous attempt saw a success). The number of instances of measurements breaks down as a binomial distribution centred on 3.5: 2 of zero (ooooooox and oooooooo) and seven (xxxxxxxx and xxxxxxxo), 14 of one and six, and so on as follows:
AttemptsOpportunities usedInstancesPercentage
002
114147.14
2844221.43
32107035.71
42807050.00
52104264.29
6841478.57
714292.86
The distribution of opportunities to take a measurement is similar, but because it takes more successful attempts to generate higher opportunities, it is shifted slightly across, and centred around 4 (or n/2). The breakdown also demonstrates the key to the problem: if four opportunities are to be had, the attempts will be distributed in such a way that the average success rate is 50%. But the only way to generate 7 opportunities is to have succeeded in each of the first 7 measurements. The percentage will be either 6/7 (83.33%) or 7/7 (100%). And as a consequence, the average of multiple strings of measurements ought to sit not at 50% (the middle of the opportunity distribution), but at the centre of the instances of measurement distribution (plus a term for the two extras) - around 45% for strings of length 8.
All very fascinating, particularly as it implies that previous studies showed a "hot hand" after all. But what does it say about cricket? The short answer is that this is a very elegant way of measuring form: find the median score for a batsman, if they surpass it, then test their subsequent score.
For Tendulkar, who played so many innings that the expected percentage is close to 50, his test "form" saw a 53.1% success rate in innings where hed surpassed the median (excluding not outs below the median). In ODIs however (counting only matches where he opened) the figure drops to 50.5%.
That is only a single data point, and some batsmen are likely to be more prone to runs of form than others, but it also points to an issue. In ODI cricket, where multi-lateral series exist, a batsman tends to shuffle opposition quite quickly, and therefore face a reasonable variety of bowling strength from match to match. In test cricket, the subsequent innings is less likely to be independent from the first, without being held in identical conditions - the second innings being on a wearing pitch. Apparent runs of form may just be a string of matches against poor opposition.
Conversely, ODI cricket may be less prone to form, being a format that requires a higher amount of risk-taking, and therefore more luck. Hence a discrepancy between test and ODI matches is feasible. Comparing all innings adds in time gaps when a player might fall out of form (and vice versa), and a proper study ought to remove them. The relative sparsity of innings means that when a player is really in form, it would be hard to distinguish between that and luck with any method. Most likely the effect is small - perhaps three or four runs on a batting average, but probably half that.
Hence measuring the effect, if any, of form remains difficult. On selection matters, - the only avenue where form might matter - there is a lot to be said for judging a player on technique, temperament and overall career trajectory and ignoring runs of form. Everything else is largely academic, albeit an interesting question.
Idle Summers 16th October, 2015 00:45:10 [#] [0 comments]
## Control is not always everything, but often, ratings 10th October Russell Degnan
A somewhat belated recap somewhat belatedly marking the start of the new season
5th TestEnglandvAustralia
Pre-rating1107.01204.3
Form+39.4-51.2
Expected MarginEngland by 1 run
Actual MarginAustralia by an innings and 46 runs
Post-rating1098.81214.4
Series rating1153.71162.5
It would be easy to point to the opening of this test match and say that Rogers and Warner batted as they ought to have throughout, laying a foundation foa big total, and allowing their bowlers to attack. But for the most part, Rogers and Warner tried (and largely succeeded) to make that foundation. The issue was that their inevitable failures (all failures are) resulted in cataclysms through the middle order. It isnt clear whether Smith is a number three, as he is only making starts against the old ball. But as with the openers, he mostly did the job. A team should expect to be two down in the first hour relatively often, partcularly in England - it isnt acceptable to turn that into all out by tea.
The lessons of the last three Ashes series in England (if not every series in England, ever) remain unheeded. At home, Australia can largely avoid collapses because the pitches are flat. In England, there are times when the play is wth the bowlers and the side that lost (the series but also individual tests) in 2005, 2009 and 2013, was the one that failed to arrest the collapse, and wait for better conditions.
Australias bowling showed similar flaws (as indeed they have in previous series), failing to keep control of the run-scoring when times were bad, and underestimating the value of putting the ball in the right spot consistently when times were good. Siddle, in this respect, ought to have played more matches. The allure of a 2013/14 Johnson and a 2015 World Cup Starc running rampant was too strong to exclude either; and the reputation Hazlewood has attained for being McGrath-like seems to have afflicted the judgement of his actual accuracy.
In the end, the series rating shows this to be close, when actually, Englands victory was near inevitable given the fragility of Australias batting. A evidenced in this match, England have their own worries in this department, but they have a young side with talent, so they can expect to improve. Australia have gone from an old side to half a side within days of the Ashes ending. That is a problem for another day though.
2nd/3rd TestsSri LankavIndia
Pre-rating1013.81083.9
Form-16.1-14.5
Expected MarginSri Lanka by 15 runs
Actual MarginIndia by 278 runs
India by 117 runs
Post-rating980.81109.5
Series rating938.31159.6
If you took Angelo Mathews out of this Sri Lankan side and theyd be a rabble. Chandimal provided runs in the first test, but in the following two, India managed consistent contributions across the board - with bat and ball - while Sri Lanka had two tons from Mathews, 14 wickets from Prasad and not a whole lot else. They didnt lose by a huge amount, but a failure to pass 306 in four innings nor keep India below 274 meant that they were well behind.
The result pushes Sri Lanka beow New Zealand and lifts India above England, with a reasonable chance to move into third or better across the forthcoming series. Sri Lanka, meanwhile, need to stave off the West Indies, who they are slowly drifting towards. With so few contributions of note, and the loss now of Sangakarra and Jayawardene as well, it may be some time before they again challenge for the top few places in the rankings.
I-Cup MatchNetherlandsvScotland
Pre-rating164.7418.9
Form-45.3-12.6
Expected MarginScotland by 77 runs
Actual MarginNetherlands by 44 runs
Post-rating174.8408.0
The sort of low-scoring match that is exciting to watch unfold, and ought to be covered better. There were only three fifties in the match, and two came on the closing morning when Scotland looked briefly to have put themselves back in contention, after the top-order collapsed in both innings. The unlikely bowling of Borren capped the victory for the Dutch, after Rippon again provided the partnership breaker.
Netherlands play so few first class fixtures it wasnt until they won that you realised just how long theyd been poor. Their rating reflects the seven year gap between wins, and their form-line shows how far they have to regain any sort of respectability. If they can keep van der Merwe in the side though, coupled with the relatively solid and committed lineup that is playing well, they will move back to where they belong. Challenging for a victory in the I-Cup is unlikely - though not impossible, as neither Ireland nor Afghanistan look strong - but this victory did seriously dent the chances of the Scottish.
2 TestsPakistanvEngland
Pre-rating1115.21098.8
Form+15.7+13.1
Expected MarginPakistan by 8 runs
Nominally an incredibly close series on neutral territory, in reality, Pakistan plays in the UAE as well as, or even better than they did at home. They are also facing a side that doesnt play well in the UAE, is young, and notwithstanding the home win, recently drew series against lesser rank sides, in more familiar conditions. Compounding that, while Yasir Shah is a loss for Pakistan, his opposite spinners are prone to loose deliveries, and in Mooen Alis case, will need to open on top of the bowling workload, having been shifted out of number eight for Adil Rashid.
It is questionable Wood offers a lot extra, on top of Broad and Anderson, with Stokes and two spinners. If Englands spinners cant take the wickets required, then theyll need to the extra batting moreso than the extra bowler. The benefit of three all-rounders being lost when the tail still starts at nine.
If Pakistan play nearly as well as they did against Australia theyll win this comfortably. They did subsequently lose to New Zealand, but that seems to be a growing trend, and in any case, was an unusual match in thr wake of Hughes death in Australia. Assuming their ageless batsmen dont suddenly do so, England will be in for a difficult short tour.
3 TestsSr LankavWest Indies
Pre-rating980.8867.0
Form-40.8-10.9
Expected MarginSri Lanka by 107 runs
A series that exemplifies the need for the ICC discussions on context and bilaterals. Optimally, not having bilaterals series, and absorbing this contest (and it is a close contest) into a championship would make it less of an afterthought for fans and players alike. Sri Lankas plan will be the same as always: try and score enugh runs for Herath to grind the opposition into dust. The West Indies bowling lineup is as good as it has been in some time (Taylor, Roach, Holder, Gabriel) but they are sporadically world class, and the batting looks shaky. If they can make this close it will count as a success.
Rankings at 10th October 2015
1.South Africa1267.9
2.Australia1214.4
3.Pakistan1115.2
4.India1109.5
5.England1098.8
6.New Zealand1000.5
7.Sri Lanka980.8
8.West Indies867.0
9.Bangladesh613.3
12.Zimbabwe559.8
10.Ireland611.1
11.Afghanistan586.2
13.Scotland408.0
14.Namibia369.1
15.Kenya276.4
16.U.A.E.248.5
17.Papua New Guinea219.4
18.Netherlands174.8
19.Hong Kong150.1
20.Canada147.9
Shaded teams have played fewer than 2 games per season. Non-test team ratings are not comparable to test ratings as they don`t play each other.
Idle Summers 14th October, 2015 22:57:29 [#] [0 comments] | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.31369373202323914, "perplexity": 3303.9177249856675}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": false}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-04/segments/1610703495901.0/warc/CC-MAIN-20210115134101-20210115164101-00452.warc.gz"} |
https://www.wisdomjobs.com/e-university/php-tutorial-223/choosing-banner-ads-430.html | Another use for random numbers is choosing from banner ads. Suppose you've signed up three sponsors for your Web site. Each has a single banner you promise to display on an equal proportion of hits to your site. To accomplish this, generate a random number and match each number to a particular banner. It is used a switch statement on a call to mt_rand. In a situation like this, you don't need to worry too much about using good seeds. You simply want a reasonable distribution of the three choices. Someone guessing which banner will display at midnight poses no security risk.
Generating a Session Identifier
<?
//Seed the generator
mt_srand(doubleval(microtime()) * 100000000);
//choose banner
switch(mt_rand(1,3))
{
case 1:
$bannerURL =$bannerImage = "leon.jpg";
break;
case 2:
$bannerImage = "php_lang.jpg"; break; default:$bannerImage = "phptr.jpg";
}
//display banner
print("<A HREF="$bannerURL">"); print("<IMG SRC= "$bannerImage" ");
print("WIDTH="400" HEIGHT="148" BORDER="0"
>");
print("</A>");
?> | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.18175920844078064, "perplexity": 3613.0791009138907}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-34/segments/1534221217951.76/warc/CC-MAIN-20180821034002-20180821054002-00136.warc.gz"} |
http://link.springer.com/article/10.1023/A:1014275232713 | , Volume 5, Issue 1, pp 1-9
# Miracles and the limits of medical knowledge
Rent the article at a discount
Rent now
* Final gross prices may vary according to local VAT.
## Abstract
In considering whether medical miracles occur, thelimits of epistemology bring us to confront ourmetaphysical worldview of medicine and nature ingeneral. This raises epistemological questions of ahigher order. David Hume's understanding of miraclesas violations of the laws of nature assumes thatnature is completely regular, whereas doctrines suchas C. S. Peirce's tychism'' hold that there is anelement of absolute chance in the workings of theuniverse. Process philosophy gives yet another viewof the working of nature. Physicians have noepistemological grounds for declaring any cure to bemiraculous. Miracles are theological (orphilosophical) entities, and not medical entities. All physicians can do is to determine whether or nota cure is scientifically inexplicable according to thecurrent epistemological standards of medical science. As these standards change, what is currentlyunexplainable may become explainable. However, we canalso come to realize that our current explanations arein fact unsatisfactory. Our justifications ofknowledge claims about miracles will depend on ourviews about determinism and indeterminism. If theuniverse is not a deterministic one, we should be opento the possibility of encountering what appear to usas sui generis events. These would not beviolations of immutable laws of nature, butmanifestations of the true workings of nature, andcertainly causes for wonder. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.5164061784744263, "perplexity": 9431.4943088911}, "config": {"markdown_headings": true, "markdown_code": false, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2014-23/segments/1406510268660.14/warc/CC-MAIN-20140728011748-00064-ip-10-146-231-18.ec2.internal.warc.gz"} |
https://eccc.weizmann.ac.il/eccc-reports/1995/TR95-021/ | Under the auspices of the Computational Complexity Foundation (CCF)
REPORTS > DETAIL:
### Paper:
TR95-021 | 20th April 1995 00:00
#### On Randomized Versus Deterministic Computation
TR95-021
Authors: Marek Karpinski, Rutger Verbeek
Publication: 20th April 1995 16:12
Keywords:
Abstract:
In contrast to deterministic or nondeterministic computation, it is
a fundamental open problem in randomized computation how to separate
different randomized time classes (at this point we do not even know
how to separate linear randomized time from ${\mathcal O}(n^{\log n})$
randomized time) or how to compare them relative to corresponding
deterministic time classes. In other words we are far from
understanding the power of {\em random coin tosses} in the
computation, and the possible ways of simulating them
deterministically.
In this paper we study the relative power of linear and polynomial
randomized time compared with exponential deterministic time.
Surprisingly, we are able to construct an oracle $A$ such that
exponential time (with or without the oracle $A$) is simulated by
linear time Las~Vegas algorithms using the oracle $A$.
ISSN 1433-8092 | Imprint | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8751042485237122, "perplexity": 3081.7835955850983}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-25/segments/1623487623596.16/warc/CC-MAIN-20210616093937-20210616123937-00268.warc.gz"} |
http://mathematica.stackexchange.com/questions/38294/nsolve-with-numerical-function | NSolve with numerical function
I would like to solve numerically an equation which involves a numerical function constructed by fitting some data:
data := {{0, 1}, {1, 1}, {.2, 3}, {.4, 5}, {.6, 2}};
try[x_?NumberQ, y_?NumberQ] := (auy = y;
solution = FindFit[data, A (aux - auy) + B Exp[aux - auy], {A, B}, aux];
myFit[aux_?NumberQ] = (A (aux - auy) + B Exp[aux - auy]) /.
solution; Return[myFit[x]])
NSolve[y - try[1, y] == 0, y]
I tried with this code but it does not function (various errors). Does anyone know how to help me?
-
Did you even try to test call your try function? What happens when you type try[1, y] ? does not return anything? This is really strange that no body seems to do any testing of anything any more. – Nasser Dec 5 '13 at 11:55
I tried try[1,2] and it works. try[1,y] has not to return an output since it need numerical parameters to work. What I want is a way to solve the problem I described, i.e. using NSolve to solve the equation which involve a function numerically determined by a fit. My code obviously does not work, that's why I asked help. Does anyone knows how to solve my issue? I hope I clarified my post! – user9994 Dec 5 '13 at 12:44
I modified a little the example code above, now it should be more clear. – user9994 Dec 5 '13 at 13:40
Welcome to Mathematica.SE! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Read the faq! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! – belisarius Dec 5 '13 at 15:34
data = {{0, 1}, {1, 1}, {.2, 3}, {.4, 5}, {.6, 2}};
try[x_?NumericQ, y_?NumericQ, data_] := (A (x - y) + B Exp[x - y]) /.
FindFit[data, A (xx - y) + B Exp[xx - y], {A, B}, xx]
FindRoot[y - try[1, y, data] == 0, {y, 1}]
(*
{y -> 1.78209}
*)
-
ok, this helps a lot: FindRoot is what I need. But I have to scal a big range of "y", right? Maybe with a Do[ ] statement. is there someway to optimize it?. Thank you for your help belisarius! – user9994 Dec 5 '13 at 15:17
Sorry, I don't understand your sentence But I have to scal a big range of "y", right?. Can you explain it further for me, please? – belisarius Dec 5 '13 at 15:37
I am really sorry, I had to write "scan" and not "scal". What I meant is that I have to search for solution in a range of ys to find more than one solution. – user9994 Dec 5 '13 at 16:34
@user9994 FindRoot should take care of that. Just try to give it a good initial guess – belisarius Dec 5 '13 at 16:45
But if I suspect the existence of different solutions I have to repeat the FindRoot with different intial guesses right? – user9994 Dec 5 '13 at 17:11 | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.24776944518089294, "perplexity": 2228.2538973386763}, "config": {"markdown_headings": false, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 5, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2014-42/segments/1413507447819.35/warc/CC-MAIN-20141017005727-00231-ip-10-16-133-185.ec2.internal.warc.gz"} |
http://www.jmlr.org/papers/v17/collier16a.html | ## Minimax Rates in Permutation Estimation for Feature Matching
Olivier Collier, Arnak S. Dalalyan; 17(6):1−31, 2016.
### Abstract
The problem of matching two sets of features appears in various tasks of computer vision and can be often formalized as a problem of permutation estimation. We address this problem from a statistical point of view and provide a theoretical analysis of the accuracy of several natural estimators. To this end, the minimax rate of separation is investigated and its expression is obtained as a function of the sample size, noise level and dimension of the features. We consider the cases of homoscedastic and heteroscedastic noise and establish, in each case, tight upper bounds on the separation distance of several estimators. These upper bounds are shown to be unimprovable both in the homoscedastic and heteroscedastic settings. Interestingly, these bounds demonstrate that a phase transition occurs when the dimension $d$ of the features is of the order of the logarithm of the number of features $n$. For $d=O(\log n)$, the rate is dimension free and equals $\sigma (\log n)^{1/2}$, where $\sigma$ is the noise level. In contrast, when $d$ is larger than $c\log n$ for some constant $c>0$, the minimax rate increases with $d$ and is of the order of $\sigma(d\log n)^{1/4}$. We also discuss the computational aspects of the estimators and provide empirical evidence of their consistency on synthetic data. Finally, we show that our results extend to more general matching criteria.
[abs][pdf][bib] | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9655516147613525, "perplexity": 116.93332831784628}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.3, "absolute_threshold": 10, "end_threshold": 5, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-13/segments/1490218188717.24/warc/CC-MAIN-20170322212948-00082-ip-10-233-31-227.ec2.internal.warc.gz"} |
https://jupyter.brynmawr.edu/services/public/dblank/CS110%20Intro%20to%20Computing/2017-Spring/Notes/Mathematical%20Functions.ipynb | ## Jupyter at Bryn Mawr College
Public notebooks: /services/public/dblank / CS110 Intro to Computing / 2017-Spring / Notes
# 1. Mathematical Functions¶
Functions that return true or false (boolean values).
## 1.1 isPrime¶
In [1]:
boolean isPrime(int number) {
// if number is evenly divided by any number less than number
// (except 1) then it is prime
// otherwise, not prime
for (int i = 2; i < number; i++) {
if ((number % i) == 0) {
return false;
}
}
return true;
}
void setup() {
println("isPrime(100): " + isPrime(100));
println("isPrime(101): " + isPrime(101));
println("isPrime(107): " + isPrime(107));
}
Sketch #1:
## 1.2 GCD¶
Greatest common divisor: the largest positive integer that divides all of the numbers without a remainder. For example, the GCD of 8 and 12 is 4.
Euclid's Algorithm (after https://en.wikipedia.org/wiki/Greatest_common_divisor):
1. Find the GCD of a and b
2. If a or b is zero, then return the other
3. if a > b, set a to a - b
4. if b > a, set b to b - a
5. go to step 2
Example:
1. Let a = 8, and b = 12
2. Neither is zero
3. a = 4 (12 - 8), b = 12
4. a = 4, b = 8 (12 - 4)
5. a = 4, b = 4 (8 - 4)
6. a = 0 (4 - 4), b = 4
6. return 4
In [5]:
int gcd(int a, int b) {
if (a == 0) // base case
return b;
else if (b == 0) // base case
return a;
else if (a > b)
return gcd(a - b, b);
else //
return gcd(a, b - a);
}
void setup() {
println("gcd(8, 12): " + gcd(8, 12));
println("gcd(3, 2): " + gcd(3, 2));
}
Sketch #4:
## 1.3 isLeapyear¶
In [6]:
boolean isLeapyear(int year) {
// if a year is evenly divided by 100
// but it is not evenly divided by 400
// it is a leapyear
// else if a year is evenly divided by 4, it is a leap year
// otherwise, not a leapyear
return true;
}
void setup() {
println("isLeapyear(2000): " + isLeapyear(2000) + " (should be true)");
println("isLeapyear(1904): " + isLeapyear(1904) + " (should be true)");
println("isLeapyear(1900): " + isLeapyear(1900) + " (should be false)");
println("isLeapyear(1901): " + isLeapyear(1901) + " (should be false)");
}
Sketch #5: | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.5036958456039429, "perplexity": 4662.941715922705}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-39/segments/1631780058589.72/warc/CC-MAIN-20210928002254-20210928032254-00048.warc.gz"} |
http://mathhelpforum.com/pre-calculus/170604-distance-between-point-line.html | # Math Help - distance between a point and a line.
1. ## distance between a point and a line.
Show that the distance from a point (xZERO,yZERO) to a line Ax+By+C=0 is given by
|AxZERO+ByZERO+C| / sqrt(A^2+B^2)
Why absolute value? I get that hes putting the points into the slope of the other one to get maybe a parallel line. but thats all I get. why the sqrt of (a^2+b^2) ?
2. Hello, frankinaround!
$\text}Show that the distance from a point }(x_o,y_o)\text{ to a line }Ax+By+C\:=\:0$
$\text{is given by: }\;d \;=\;\dfrac{|Ax_o +By_o+C|}{\sqrt{A^2+B^2}}$
Why absolute value? . Because distance is a positive measure.
I get that hes putting the points into the slope of the other one . What?
to get maybe a parallel line, but thats all I get.
Why the sqrt of (A^2+B^2) ? . Why not?
You're expected to derive that formula, aren't you?
Well, do it . . . and you'll see why.
3. Originally Posted by Soroban
Hello, frankinaround!
You're expected to derive that formula, aren't you?
Well, do it . . . and you'll see why.
That's a bit harsh, the OP obviously does not know how to...
Hint, the slope of the shortest line segment going through $\displaystyle (x_0, y_0)$ and touching $\displaystyle Ax + By + C = 0$ will be perpendicular to the slope of $\displaystyle Ax + By + C = 0$.
4. um... so im trying to do this. I can see ax/-b + c/-b = y and that the slop is a/-b, so then bx0/a should be the perpendicular slope. then I think I would need to take the point of intersection and use the distance formula to get to the next part of this question. but Im not sure how, because how do I know the point of intersection ? I have almost 2 equations. y=ax/-b+c/-b and bx/a + ? = y. I can TRY to substitute with y, so like bx/a + ? = ax/-b + c/-b. But it seems strange. what do you think?
5. the equation of a line with slope $\frac{B}{A}$ (perpendicular to the given line) through the point $(x_0, y_0)$ is $y= \frac{B}{A}(x- x_0)+ y_0$. Where does that intersect $y= -\frac{A}{B}x- \frac{C}{A}$? | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 9, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9217534065246582, "perplexity": 718.7722899326351}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2016-18/segments/1461860118807.54/warc/CC-MAIN-20160428161518-00138-ip-10-239-7-51.ec2.internal.warc.gz"} |
http://link.springer.com/article/10.1007%2Fs11804-011-1035-8 | , Volume 10, Issue 1, pp 7-16
Date: 02 Apr 2011
# Effect of bottom undulation on the waves generated due to rolling of a plate
Rent the article at a discount
Rent now
* Final gross prices may vary according to local VAT.
## Abstract
In the present paper, the effect of a small bottom undulation of the sea bed in the form of periodic bed form on the surface waves generated due to a rolling oscillation of a vertical barrier either partially immersed or completely submerged in water of non uniform finite depth is investigated. A simplified perturbation technique involving a non dimensional parameter characterizing the smallness of the bottom deformation is applied to reduce the given boundary value problem to two independent boundary value problems upto first order. The first boundary value problem corresponds to the problem of water wave generation due to rolling oscillation of a vertical barrier either partially immersed or completely submerged in water of uniform finite depth. This is a well known problem whose solution is available in the literature. From the second boundary value problem, the first order correction to the wave amplitude at infinity is evaluated in terms of the shape function characterizing the bottom undulation, by employing Green’s integral theorem. For a patch of sinusoidal ripples at the sea bottom, the first order correction to the wave amplitude at infinity for both the configuration of the barrier is then evaluated numerically and illustrated graphically for various values of the wave number. It is observed that resonant interaction of the wave generated, with the sinusoidal bottom undulation occurs when the ratio of twice the wavelength of the sinusoidal ripple to the wave length of waves generated, approaches unity. Also it is found that the resonance increases as the length of the barrier increases.
Foundation item: Supported by DST through the Research Project No. SR/SY/MS: 521/08.
Puspendu Rakshit was born in 1979. He is presently a PhD candidate at Jadavpur University Kolkata, India. His current research interest includes theory of water waves and integral equations.
Sudeshna Banerjea was born in 1963. She presently works in the Department of Mathematics, at Jadavpur University, Kolkata, India. Her current research interest includes theory of water waves and integral equations. | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9343881011009216, "perplexity": 632.8731181911544}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2014-42/segments/1414119648438.26/warc/CC-MAIN-20141024030048-00072-ip-10-16-133-185.ec2.internal.warc.gz"} |
https://scholars.ncu.edu.tw/zh/publications/radial-variations-of-outward-and-inward-alfv%C3%A9nic-fluctuations-bas | # Radial Variations of Outward and Inward Alfvénic Fluctuations Based on Ulysses Observations
L. Yang, L. C. Lee, J. P. Li, Q. Y. Luo, C. L. Kuo, J. K. Shi, D. J. Wu
1 引文 斯高帕斯(Scopus)
## 摘要
Ulysses magnetic and plasma data are used to study hourly scale Alfvénic fluctuations in the solar polar wind. The calculated energy ratio R2VA(cal) of inward to outward Alfvén waves is obtained from the observed Walén slope through an analytical expression, and the observed R2VA(obs) is based on a direct decomposition of original Alfvénic fluctuations into outward- and inward-propagating Alfvén waves. The radial variation of R2VA(cal) shows a monotonically increasing trend with heliocentric distance r, implying the increasing local generation or contribution of inward Alfvén waves. The contribution is also shown by the radial increase in the occurrence of dominant inward fluctuations. We further pointed out a higher occurrence (∼80% of a day in average) of dominant outward Alfvénic fluctuations in the solar wind than previously estimated. Since R2VA(cal) is more accurate than R2VA(obs) in the measurement of the energy ratio for dominant outward fluctuations, the values of R2VA(cal) in our results are likely more realistic in the solar wind than those previously estimated as well as R2VA(obs) in our results. The duration ratio RT of dominant inward to all Alfvénic fluctuations increases monotonically with r, and is about two or more times that from Voyager 2 observations at r ≥ 4 au. These results reveal new qualitative and quantitative features of Alfvénic fluctuations therein compared with previous studies and put constraints on modeling the variation of solar wind fluctuations.
原文 ???core.languages.en_GB??? 177 Astrophysical Journal 850 2 https://doi.org/10.3847/1538-4357/aa9615 已出版 - 1 12月 2017 | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9428049921989441, "perplexity": 3246.7899301414964}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2023-06/segments/1674764500813.58/warc/CC-MAIN-20230208123621-20230208153621-00362.warc.gz"} |
http://authors.library.caltech.edu/1312/ | CaltechAUTHORS
A Caltech Library Service
# Induced-charge electro-osmosis
Squires, Todd M. and Bazant, Martin Z. (2004) Induced-charge electro-osmosis. Journal of Fluid Mechanics, 509 . pp. 217-252. ISSN 0022-1120. http://resolver.caltech.edu/CaltechAUTHORS:SQUjfm04
Preview
PDF
See Usage Policy.
520Kb
Use this Persistent URL to link to this item: http://resolver.caltech.edu/CaltechAUTHORS:SQUjfm04
## Abstract
We describe the general phenomenon of ‘induced-charge electro-osmosis’ (ICEO) – the nonlinear electro-osmotic slip that occurs when an applied field acts on the ionic charge it induces around a polarizable surface. Motivated by a simple physical picture, we calculate ICEO flows around conducting cylinders in steady (DC), oscillatory (AC), and suddenly applied electric fields. This picture, and these systems, represent perhaps the clearest example of nonlinear electrokinetic phenomena. We complement and verify this physically motivated approach using a matched asymptotic expansion to the electrokinetic equations in the thin-double-layer and low-potential limits. ICEO slip velocities vary as $u_s \,{\propto}\,E_0^2 L$, where $E_0$ is the field strength and $L$ is a geometric length scale, and are set up on a time scale $\tau_c \,{=}\,\lambda_D L/D$, where $\lambda_D$ is the screening length and $D$ is the ionic diffusion constant. We propose and analyse ICEO microfluidic pumps and mixers that operate without moving parts under low applied potentials. Similar flows around metallic colloids with fixed total charge have been described in the Russian literature (largely unnoticed in the West). ICEO flows around conductors with fixed potential, on the other hand, have no colloidal analogue and offer further possibilities for microfluidic applications.
Item Type: Article "Reprinted with the permission of Cambridge University Press." Received May 5 2003; Revised February 13 2004; Published Online 07 Jun 2004 The authors would like to thank E´cole Supe´rieure de Physique et Chimie Industrielles (Laboratoire de Physico-chimie Th´eorique) for hospitality and partial support, and the referees for extensive comments and Russian references. This research was supported in part by the US Army through the Institute for Soldier Nanotechnologies, under Contract DAAD-19-02-0002 with the US Army Research Office (M. Z.B.), and by the NSF Mathematical Sciences Postdoctoral Fellowship and Lee A. Dubridge Prize Postdoctoral Fellowship (T. M. S.). CaltechAUTHORS:SQUjfm04 http://resolver.caltech.edu/CaltechAUTHORS:SQUjfm04 http://dx.doi.org/10.1017/S0022112004009309 No commercial reproduction, distribution, display or performance rights in this work are provided. 1312 CaltechAUTHORS Archive Administrator 10 Jan 2006 26 Dec 2012 08:43
Repository Staff Only: item control page | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.5636194348335266, "perplexity": 4255.613980830516}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-32/segments/1438042989507.42/warc/CC-MAIN-20150728002309-00091-ip-10-236-191-2.ec2.internal.warc.gz"} |
http://mathhelpforum.com/calculus/33710-tangent-e-x-through-origin.html | # Thread: Tangent to e^x through origin
1. ## Tangent to e^x through origin
Find the value of A such as that the tangent to y=e^x is a line through origin when x=a
This is what I've done so far,
Derivative of e^x is e^x, so the slope is e^x
(y-e^a)=e^a(x-a)
0-e^a=e^a(0-a)
-e^a=-a(e^a)
That's what I get in the end, how can I solve for a? Did I make an error? This corresponds to a question asking a similar question for lnx, where a would be the value e, so I suppose there has to be some connection....
2. ## Here is what you do
Originally Posted by theowne
Find the value of A such as that the tangent to y=e^x is a line through origin when x=a
This is what I've done so far,
Derivative of e^x is e^x, so the slope is e^x
(y-e^a)=e^a(x-a)
0-e^a=e^a(0-a)
-e^a=-a(e^a)
That's what I get in the end, how can I solve for a? Did I make an error? This corresponds to a question asking a similar question for lnx, where a would be the value e, so I suppose there has to be some connection....
$-e^{a}=-a\cdot{e^{a}}$... $a=1$?...o you made a mistake I think you should have $y-0=e^{a}(x-0)$...so $y=e^{a}x$....a=0...you just forgot that the slope for tangent line must be the same point as is shown in the equation for a tangent line $y-f(x_1)=f'(x_1)(x-x_1)$
3. That's what I figured, but what connection exists between that and the value e? The question seems to imply a relation between the answer here, and e..
4. ## The seeming connection would be
Originally Posted by theowne
That's what I figured, but what connection exists between that and the value e? The question seems to imply a relation between the answer here, and e..
$f(x)=\ln(x)$ both give the equation $y=x$? since $y-e=\ln(e)(x-e)$...so $y=\ln(e)x-\ln(e)e+e=x$...andy maybe that $\ln(e)=1,e^{0}=1$?
5. I think my earlier form was correct....(which results in a=1)..I plugged it into graphmatica and I can see the relationship more clearly now...for ln(x), it's when x=e, for e^x, it's when y=e. Thanks.....
6. ## Hmm
Originally Posted by theowne
I think my earlier form was correct....(which results in a=1)..I plugged it into graphmatica and I can see the relationship more clearly now...for ln(x), it's when x=e, for e^x, it's when y=e. Thanks.....
Maybe I am misunderstanding your question then...but based on you think what you just said...maybe you are supposed to realize that since $\ln(x)$ and $e^{x}$ are inverse functions their domain and ranges are switched | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 12, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9280014038085938, "perplexity": 1080.416092643256}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-43/segments/1508187824931.84/warc/CC-MAIN-20171022003552-20171022023552-00183.warc.gz"} |
http://mathhelpforum.com/algebra/213930-arithematic-progression-logarithm.html | 1. ## Arithematic Progression -Logarithm
If $log_k x, log_m x , log_nx$ are in A.P then prove that $n^2 = (kn)^{log_km}$
If the terms are in A.P then : $2 log_mx = log_k x + log_nx = \frac{2}{log_xm} = \frac{1}{log_xk}+ \frac{1}{log_xn}$
= $\frac{2}{log_xm}= \frac{log_xn+log_xk}{log_xklog_xn}$ can we solve this way or not..............please guide
2. ## Re: Arithematic Progression -Logarithm
$2\log_{m}x = \log_{k}x + \log_{n}x.$
Start by using the change of base formula so that all logs are to base $k.$
Cancel the $\log_{k}x$ throughout, cross multiply and that gets you a $2\log_{k}n$ (which becomes) $\log_{k}n^2$ on the LHS.
Try finishing from there.
3. ## Re: Arithematic Progression -Logarithm
thanks a lot....i got it..regards,sachin | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 9, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9136804938316345, "perplexity": 3351.559408753751}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-17/segments/1492917121453.27/warc/CC-MAIN-20170423031201-00581-ip-10-145-167-34.ec2.internal.warc.gz"} |
http://mathhelpforum.com/differential-geometry/168076-question-uniform-convergence-print.html | # A Question on Uniform Convergence
• January 11th 2011, 12:09 PM
garunas
A Question on Uniform Convergence
Give an example of a uniformly convergent sequence $(f_{n})_{n\in\mathbb N}$ of continuously differentiable functions such that $(f\prime_{n})_{n\in\mathbb N}$ is not uniformly continuous.
Just preparing for my exams in a few weeks. Need to know the answer to this one to have as an example. Just in case!
• January 11th 2011, 12:26 PM
FernandoRevilla
Choose:
$f_n(x)=\dfrac{\sin nx}{n}$
Fernando Revilla
• January 11th 2011, 12:28 PM
garunas
Many many thanks. Simple when you know how isn't it??
• January 11th 2011, 12:32 PM
FernandoRevilla
Quote:
Originally Posted by garunas
Many many thanks. Simple when you know how isn't it??
No wonder. It is a typical counter example. :)
Fernando Revilla
• January 11th 2011, 12:39 PM
emakarov
Quote:
Originally Posted by garunas
Give an example of a uniformly convergent sequence $(f_{n})_{n\in\mathbb N}$ of continuously differentiable functions such that $(f\prime_{n})_{n\in\mathbb N}$ is not uniformly continuous.
Sorry, what exactly is not uniformly continuous? Should $f'_n$ be not uniformly continuous for every $n$?
• January 11th 2011, 12:46 PM
FernandoRevilla
Quote:
Originally Posted by emakarov
Sorry, what exactly is not uniformly continuous? Should $f'_n$ be not uniformly continuous for every $n$?
I supposed that is a typo and he meant " ... $(f'_n)$ not uniformly convergent".
Fernando Revilla
• January 11th 2011, 01:30 PM
garunas
Yeah sorry I am a bit new to Latex | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 10, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9101979732513428, "perplexity": 1116.8735228921119}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2016-36/segments/1471982294158.7/warc/CC-MAIN-20160823195814-00177-ip-10-153-172-175.ec2.internal.warc.gz"} |
http://www.chegg.com/homework-help/questions-and-answers/pulsar-rapidly-rotating-neutron-star-emits-radio-beam-way-lighthouse-emits-light-beam-rece-q2693073 | A pulsar is a rapidly rotating neutron star that emits a radio beam the way a lighthouse emits a light beam. We receive a radio pulse for each rotation of the star. The period T of rotation is found by measuring the time between pulses. The pulsar in the Crab nebula has a period of rotation of T = 0.033 s that is increasing at the rate of 1.26 x 10^-5 sec/year. (a) What is the pulsar�s angular acceleration? (b) If the angular acceleration is constant, how many years from now will the pulsar stop rotating? (c) The pulsar originated in a supernova explosion seen in the year 1054. Assuming constant angular acceleration, find the initial T. | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9319376945495605, "perplexity": 471.40348955034085}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2016-26/segments/1466783396224.52/warc/CC-MAIN-20160624154956-00020-ip-10-164-35-72.ec2.internal.warc.gz"} |
http://www.koreascience.or.kr/search.page?keywords=supercritical+fluid+extraction | • Title, Summary, Keyword: supercritical fluid extraction
### Quality and characteristics of ginseng seed oil treated using different extraction methods
• Lee, Myung-Hee;Kim, Sung-Soo;Cho, Chang-Won;Choi, Sang-Yoon;In, Gyo;Kim, Kyung-Tack
• Journal of Ginseng Research
• /
• v.37 no.4
• /
• pp.468-474
• /
• 2013
• Ginseng seed oil was prepared using compressed, solvent, and supercritical fluid extraction methods of ginseng seeds, and the extraction yield, color, phenolic compounds, fatty acid contents, and phytosterol contents of the ginseng seed oil were analyzed. Yields were different depending on the roasting pretreatment and extraction method. Among the extraction methods, the yield of ginseng seed oil from supercritical fluid extraction under the conditions of 500 bar and $65^{\circ}C$ was the highest, at 17.48%. Color was not different based on the extraction method, but the b-value increased as the roasting time for compression extraction was increased. The b-values of ginseng seed oil following supercritical fluid extraction were 3.54 to 15.6 and those following compression extraction after roasting treatment at $200^{\circ}C$ for 30 min, were 20.49, which was the highest value. The result of the phenolic compounds composition showed the presence of gentisic acid, vanillic acid, ferulic acid, and cinnamic acid in the ginseng seed oil. No differences were detected in phenolic acid levels in ginseng seed oil extracted by compression extraction or solvent extraction, but vanillic acid tended to decrease as extraction pressure and temperature were increased for seed oil extracted by a supercritical fluid extraction method. The fatty acid composition of ginseng seed oil was not different based on the extraction method, and unsaturated fatty acids were >90% of all fatty acids, among which, oleic acid was the highest at 80%. Phytosterol analysis showed that ${\beta}$-sitosterol and stigmasterol were detected. The phytosterol content of ginseng seed oil following supercritical fluid extraction was 100.4 to 135.5 mg/100 g, and the phytosterol content following compression extraction and solvent extraction was 71.8 to 80.9 mg/100 g.
### The Current Status of Supercritical Fluid Extraction Technology and Industrial Applications (초임계유체 추출 기술 및 상업화 현황)
• Ju Young-Woon;Lee Moon Young;Woo Moon Jea;Byun Sang Yo
• KSBB Journal
• /
• v.20 no.5
• /
• pp.329-337
• /
• 2005
• Because of their unique properties, supercritical fluids have been known as one of the most promising materials for the future technology. Supercritical fluid technologies have been widely applied to various operations such as extraction, impregnation, nano-particle generation, oxidation, reaction etc. Industrial applications, especially their successful usage of supercritical fluid, have been reviewed. A special case for the first successful industrial application of supercritical $CO_2$ extraction in Korea was reviewed. Its unique characteristics of enriched antioxidant, $'\grmma-tocopherol'$ enabled this industrial application in Korea in spite of its low market price. Also its size and operation conditions were known as world records.
### Extraction of Docosahexaenoic Acid (DHA) from Lyophilized Thraustochitrium sp.
• CHO, JOONG-HOON;GWI-SUK HEO;JI-WON YANG
• Journal of Microbiology and Biotechnology
• /
• v.6 no.5
• /
• pp.358-360
• /
• 1996
• Solvent extraction, soxhlet method, and supercritical fluid extracion were considered, respectively, as the method of choice for the recovery of DHA from lyophilized Thraustochitrium sp., and the results of corresponding extraction were compared. Supercritical fluid extraction seems to be the most appropriate process with respect to time, process simplicity, and extractant intoxicity.
### Antimicrobial Activity of Extracted by Supercritical Fluid from Origanum vulgare, Cinnamomum cassia, Chamaecyparis obtusa and Scutellariae baicalensis (오레가노, 육계, 편백 및 황금의 초임계 유체 추출물의 항균 활성)
• Kim, Woo-Jin;Cho, Jun-Young;Choi, Chang-Suk;Yoon, Gee-Sun;Lee, Won-Kyu;Ryu, Yeon-Woo
• KSBB Journal
• /
• v.23 no.2
• /
• pp.147-152
• /
• 2008
• The variety of functional plants has an attention for new natural food preservation and natural antiseptic development. The extracts from functional plants with various methods (ethanol extraction, hot water extraction and supercritical fluid extraction) tested antimicrobial activity against 10 strains including the pathogenic and food poisoning bacteria, the yeast and fungi. The antimicrobial activities of supercritical fluid extracts were shown higher than ethanol extract and hot water extract when tested with disc-diffusion method and minimum inhibitory concentration (MIC). Antimicrobial activity of supercritical fluid extract was two times higher than ethanol extract in Cinnaonomum cassia. In addition, the supercritical fluid extractions of Chamaecyparis obtuas and the C. cassia showed the higher yield than Origanum vulgare and Scutellariae baicalensis. The supercritical fluid extract of C. cassia showed an antimicrobial activity against all strains tested. The supercritical fluid extract of S. baicalensis showed strong antimicrobial activity on Listeria monocytogenes. Supercritical fluid extraction of O. vulgare and C. obtuas showed strong antimicrobial activity on Salmonella typhimuriium. In MIC test, C. obtuas was shown the best natural material for the preparation of natural antimicrobial agent by supercritical fluid extraction. In conclusion, these results suggest that supercritical fluid extraction technique was effective to obtain functional ingredient with higher antimicrobial activity in the development of new antimicrobial reagent from natural materials.
### Supercritical Fluid Extraction of Physiologically Active materials from Agaricus blazei Fruiting Bodies (Agaricus blazei 자실체로부터 초임계 유체를 이용한 생리활성물질 추출공정)
• 최정우
• KSBB Journal
• /
• v.15 no.4
• /
• pp.408-410
• /
• 2000
• The supercritical fluid extraction(SFE) technique was applied for the isolation and purification of nonpolar physiologically acitve mateials from Agaricus blazei fruiting bodies. the qualitative analysis of extract was accomplished by gas chromatography-mass spectrometer(GC-MS) and extract was determined as linoleic acid(cis-9 cis-12-octadecadienoic acid) In order to obtain the optimum operating conditions of supercritical fluid extraction process the various temperatures and pressures were applied for process operation. From the comparison of exraction efficiencies $50^{\circ}C and 200 kg_f/cm^2$ were determined as optimum conditions.
### Effect of Solvents as Subcritical and Supercritical Fluid on Decomposition and Extraction of Used Automotive Tire (아임계와 초임계유체로써 폐타이어 분해와 추출에 미치는 용매의 영향)
• Kang, W.S.;Na, D.Y.;Kim, I.S.;Han, S.B.;Park, P.W.
• Elastomers and Composites
• /
• v.34 no.3
• /
• pp.239-246
• /
• 1999
• Side wall samples from a used automotive tire were subjected to subcritical and supercritical decomposition and extraction with three solvents, water, 28% ammonia solution and ammonia. For 6mm cube samples the rate of supercritical extraction with water followed a first-order kinetics with an activation energy of 140 kJ/mol. Solvent power of 28% ammonia so lotion at supercritical condition was found to be higher than supercritical water at initial extraction as pressure decreased. These phenomena were considered to be an effect of ammonia involved in water.
### Removal of toxic compounds from Acer tegmentosum using supercritical fluid extraction (초임계유체 추출을 이용한 산겨릅나무로부터 독성성분들의 제거)
• Pyo, Dongjin;Jin, Jungeun
• Analytical Science and Technology
• /
• v.21 no.5
• /
• pp.392-396
• /
• 2008
• Acer tegmentosum is a tree used to treat various liver diseases in Korea. There have been some concern regarding the safety of Acer tegmentosum due to some toxic chemical compounds in its stems. Supercritical fluid extraction (SFE) was employed to develop a removing method of toxic compounds from Acer tegmentosum. The toxic compounds were effectively extracted with ethanol modified supercritical fluid $CO_2$. The optimum condition of SFE was 100 bar of pressure, $40^{\circ}C$ of extraction temperature, 3 mL/min of $CO_2$ flow rate, 0.2 mL/min of modifier (ethanol) flow rate.
### Efficient Extraction of Bioethanol from Freshwater Cyanobacteria Using Supercritical Fluid Pretreatment
• Pyo, Dongjin;Kim, Taemin;Yoo, Jisun
• Bulletin of the Korean Chemical Society
• /
• v.34 no.2
• /
• pp.379-383
• /
• 2013
• For the production of ethanol from freshwater cyanobacteria, a new pretreatment method using supercritical fluid was introduced. In this study, it was found that the supercritical fluid could penetrate inside the cell wall and help to liberate starch from cyanobacterial cells which resulted in the increase of the efficiency of ethanol production. For Microcystis aeruginosa, supercritical fluid pretreatment increased the amount of ethanol produced from cyanobacteria from 1.53 g/L to 2.66 g/L. For Anabaena variabilis, the amount of ethanol was increased from 1.25 g/L to 2.28 g/L. With use of supercritical fluid pretreatment, the efficiency of the process to obtain higher ethanol yields from freshwater cyanobacteria was improved upto 80%. The optimum temperature and pressure conditions for supercritical fluid pretreatment were determined as the temperature of $40^{\circ}C$ and the pressure of 120 atm. This study demonstrates the feasibility of using supercritical fluid pretreatment for ethanol production using freshwater cyanobacteria.
### Comparison of Essential Oil Composition Extracted from Agastache rugosa by Steam Distillation and Supercritical Fluid Extraction (수증기 증류법과 초임계유체 추출법으로 분리한 배초향의 정유성분 조성 비교)
• 김근수;김삼곤;김용하;김영회;이종철
• Journal of the Korean Society of Tobacco Science
• /
• v.23 no.1
• /
• pp.65-70
• /
• 2001
• In order to compare the extraction patterns of main components from the raw material between the extraction methods, the aerial parts (dried stem, leaves, and flowers) of Agastache rugosa were extracted by SDE simultaneous steam distillation & extraction) and SFE (supercritical fluid extraction). Volatile components of essential oil and extract were identified by GC and GC-MSD. The contents of essential oil extracted by SDE were 0.49% in aerial part of Agastache rugosa on dry basis. Major components were methyl chavicol(27.2%), isomenthone(24.6%), hexadecanoic acid(13.0%). menthone (5.5%) among 32 kinds of components confirmed in essential oil. On the other hand, the contents of SFE extracts revealed 3.21% on dry basis, 6 times higher than those of SDE. Major components were isomenthone(15.3%), hexadecanoic acid(13.7%), methyl chavicol(12.6%), benzoic acid(3.8%) among 33 kinds of components identified in extract.
### Detection of estrogenic hormone 17β-estradiol in soil samples by a recombinant yeast bioassay and supercritical fluid extraction
• Shim, Jae-Han;Kim, Mi-Ra;Topp, Edward;Choi, Jeong-Heui;Mamun, Iqbal Rouf
• Korean Journal of Environmental Agriculture
• /
• v.27 no.4
• /
• pp.447-455
• /
• 2008
• Recombinant yeast estrogenicity (YES) assay was used as a bioanalytical tool in order to screen $17{\beta}$-estradiol in the soil samples collected from different sites of South Korea. Solvent extraction and supercritical fluid extraction (SFE) methods were compared for the extraction of the estradiol from the soils. Most high detection of the estradiol based on YES assay was observed in the soils extracted with methanol. Different types of estrogenic hormones including $17{\beta}$-estradiol were suggested to be possibly exiting in the soils, since the methanol extracts of the soils showed an estrogenic activity that was not observed in the hexane extracts of the soil. SFE extracts showed estrogenic activity in some of the samples but methanol extract showed best activity. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.6302857398986816, "perplexity": 20678.992384767378}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2020-34/segments/1596439740838.3/warc/CC-MAIN-20200815094903-20200815124903-00225.warc.gz"} |
https://www.physicsforums.com/threads/confused-charles-law.145885/ | Confused, charles law
1. Nov 29, 2006
MRCHEM
why is the answer different if you didnt convert T into kelvin considering that
they have the same temp in actual process
2. Nov 29, 2006
HallsofIvy
Staff Emeritus
The same temperature? Yes, but Kelvin and Celcius use different numbers to represent that temperature! Using different numbers in a formula typically gives different answers.
Oh, I see what you mean! Charles Law says that $V_1/T_1= V_2/T_2$ so $V_1/V_2= T_1/T_2$ and you are asking why the differences don't "cancel". They would IF Kelvin temperature were simply a multiple of Celcius Temperature. If K= aC, then $K_1/K_2= (aC_1)/(aC_2)= C_1/C_2$. But they are not: Kelvin temperature is Celcius temperature minus 273.15. That is K= C-a. $K_1/K_2= (C_1- a)/(C_2-a)$ and we can't cancel.
3. Nov 29, 2006
dextercioby
And keep it then in Celsius, Fahrenheit, Reaumur, Beufort, Mercali, Richter or other scales ? Maybe it's probably Charles law was valid only when both the volume and the temperature are expressed in SI units, with T the absolute thermodynamical temperature measured in Kelvin.
Daniel. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.779824435710907, "perplexity": 3052.1943722881024}, "config": {"markdown_headings": false, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-09/segments/1487501171632.91/warc/CC-MAIN-20170219104611-00199-ip-10-171-10-108.ec2.internal.warc.gz"} |
http://aimpl.org/highlowforcing/3/ | $\newcommand{\Cat}{{\rm Cat}}$ $\newcommand{\A}{\mathcal A}$ $\newcommand{\freestar}{ \framebox[7pt]{\star} }$
## 3. Problems in the Overlap of High and Low Forcing
1. #### Problem 3.1.
Is there a model for $\text{TP}_{\kappa^{++}}$, with $\kappa$ a singular strong limit of countable cofinality, where we use side conditions in place of the Mitchell poset?
• #### Problem 3.2.
Is there a model for $\text{TP}_{\aleph_2} + \text{TP}_{\aleph_3}$ using side conditions?
• #### Problem 3.3.
Is there a model where both $I[\aleph_2]$ and $I[\aleph_3]$ are trivial? In other words, is $\text{AP}_{\aleph_2} + \text{AP}_{\aleph_3}$ consistent?
• #### Problem 3.4.
Is the forcing axiom for proper posets of size $\aleph_1$ with $\aleph_2$-many dense sets consistent? If so, what if we replace the size-$\aleph_2$ requirement with the $\aleph_2$-chain condition?
• There is a coloring $F:[\aleph_2]^2 \rightarrow {0,1}$ of pairs from $\aleph_2$ in $2$ colors so that the poset of finite approximations to a $0$- or $1$-homogeneous set has the $\aleph_2$-chain condition. (We mean either the poset $\mathbb P$ of finite functions $f:\omega \rightarrow F^{-1}(0)$ or the poset of $f:\omega \rightarrow F^{-1}(0)$, ordered by inclusion)
#### Problem 3.5.
Can this forcing be made proper using side conditions? Does this preserve the $\aleph_2$-chain condition?
If we do obtain properness, then the fprcing axiom for $\aleph_2$-many dense sets proper posets of size $\aleph_1$—and for proper posets with the $\aleph_2$-chain condition—is inconsistent.
• #### Problem 3.6.
[David Aspero] Suppose $\aleph_\omega$ is a strong limit. Is there a poset ${\mathbb P}$ of size $<\aleph_\omega$, which adds a club guessing sequence for $S^{\omega_2}_{\omega_1}$, preserving $\omega_1$, $\omega_2$, and $\omega_3$.
If yes than by PCF theory, in ZFC it would be provable that $2^{\aleph_\omega}<\aleph_{\omega_3}$ when $\aleph_\omega$ is a strong limit.
Cite this as: AimPL: High and Low forcing, available at http://aimpl.org/highlowforcing. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 2, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9573376178741455, "perplexity": 914.3976056935571}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-18/segments/1555578527865.32/warc/CC-MAIN-20190419161226-20190419183226-00156.warc.gz"} |
https://pureportal.coventry.ac.uk/en/publications/evaluation-of-near-field-electromagnetic-shielding-effectiveness- | # Evaluation of near-field electromagnetic shielding effectiveness at low frequencies
Yessica Arellano, Andrew Hunt, Olivier Haas
Research output: Contribution to journalArticlepeer-review
5 Citations (Scopus)
## Abstract
Magnetic induction tomography (MIT) is a novel technology for flow measurement offering significant promise in the measurement of multiphase flows containing low-conductivity fluids such as saline water. Such measurements rely on optimal effective shielding to avoid external field interference and extraneous capacitive coupling that can lead to false readings and overestimations of the eddy current-induced fields. The performance of various attenuation materials in the low megahertz frequency spectrum is presented and compared with outcomes from a numerical computational method. The results demonstrate that the shielding mechanism that prevails at low frequencies is that of reflection. Consequently, hard shields such as metals show superior wave attenuation performance for MIT systems operating below 13 MHz. For higher frequencies, the absorption effect on the incident wave path within soft electromagnetic shields presents enhanced shielding properties. This paper also explores the limitations of traditional testing geometry for shielding effectiveness and proposes an alternative approach to near-field, free-space measurement for MIT sensors. The proposed semi-enclosed approach shows enhanced shielding effectiveness measurements compared with the traditional transversal barrier method. The proposed method was used to assess the electromagnetic shielding effectiveness of ferromagnetic and various metallic materials.
Original language English 8481434 121 - 128 8 IEEE Sensors Journal 19 1 4 Oct 2018 https://doi.org/10.1109/JSEN.2018.2873909 Published - 1 Jan 2019
### Bibliographical note
© 2018 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.
## Keywords
• Eddy currents
• electromagnetic compatibility
• electromagnetic induction
• electromagnetic shielding
• tomography
## ASJC Scopus subject areas
• Instrumentation
• Electrical and Electronic Engineering | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8033386468887329, "perplexity": 1443.272278823165}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-21/segments/1620243988850.21/warc/CC-MAIN-20210508061546-20210508091546-00280.warc.gz"} |
http://crypto.stackexchange.com/users/592/samuel-neves?tab=activity&sort=posts | Samuel Neves
Reputation
3,622
Top tag
Next privilege 4,000 Rep.
Access 'trusted user' tools
Jun13 answered Can we reduce Diffie-Hellman problem to “Discrete-log inversion” problem? Jun8 answered RSA public key recovery from signatures Jun5 answered Why does anyone use elliptic curves for a CSPRNG? May23 answered Logjam on Elliptic Curves? May7 answered Encoding a message to a point of curve y^2=x^3+7 and Bitcoin Core May6 answered How is HMAC(message,key) more secure than Hash(key1+message+key2) May4 answered Factoring two RSA moduli $N_i=p_i\cdot q_i$ knowing that $p_2=p_1+2$? Mar28 answered What aspect of elliptic curve encryption paradigms makes them especially susceptible to quantum based attack algorithms? Nov19 answered Do data-dependent rotations have any advantage over fixed rotations? Oct29 answered Understanding Twist Security with respect to short Weierstrass curves Aug18 answered SRP-6 vulnerabilities when N is small Jun19 answered Parallelized Pollard's Rho algorithm for ECDLP + Jacobian coordinates Jun19 answered Fast hashing into elliptic curve Jun15 answered curve25519 weak points for contributory behaviour May6 answered Is knowing the private key of RSA equivalent to the factorization of $N$? Feb9 answered Safe elliptic curve point addition using projective coordinates: How do I tell if the points are the same? Jan19 answered Why is this authentication procedure using Rabin crypto not useful? Jan13 answered Time complexity to solve Discrete log problem Dec26 answered Why are the lower 3 bits of curve25519/ed25519 secret keys cleared during creation? Dec23 answered Why do these Python XTEA implementations require different deltas? | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.675001859664917, "perplexity": 12759.308435357127}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.3, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-27/segments/1435375097038.44/warc/CC-MAIN-20150627031817-00202-ip-10-179-60-89.ec2.internal.warc.gz"} |
http://math.stackexchange.com/users/5676/peter-taylor?tab=activity&sort=revisions | # Peter Taylor
less info
reputation
923
bio website location age member for 2 years, 11 months seen 7 hours ago profile views 634
# 90 Revisions
Nov30 revised What is the minimum number of locks on the cabinet that would satisfy these conditions? Add missing "fi" - I suspect this was copy-pasted from a PDF which used a ligature Nov7 revised Probabilty to win in die rolling game Formatting and linguistic style Nov4 revised is this operating procedure an Abelian Group? added 307 characters in body Nov4 revised is this operating procedure an Abelian Group? added 78 characters in body Nov2 revised Generator of a subgroup of a cyclic group Title and minor tidying Nov1 revised Characteristic roots-recursion. LaTeX, form into sentences, punctuate Oct18 revised Real analysis Proving a sequence lim inf |an|=0 LaTeX Oct14 revised Solutions to $x^3+y^3+z^3 = x^2 + y^2 + z^2=x+y+z=0$ All-Mathjax titles prevent people from right-clicking to open in new tab/window Oct11 revised odds / percent is the game flawed or this seem accurate Formatting, no need for signature Oct9 revised What is the difference between the terms 'equation' and 'algorithm'? This admits a definitive answer and hence is not a "soft question" Oct8 revised Which complete graphs are (edge) magic? added 1 characters in body Oct8 revised Which complete graphs are (edge) magic? added 46 characters in body Sep18 revised Proof for solar declination angle? added 764 characters in body Sep17 revised Proof for solar declination angle? deleted 40 characters in body Sep17 revised Proof for solar declination angle? Grammar, LaTeX Sep17 revised History of the theory of equations: John Colson Remove the link to the wrong paper to avoid confusing more people Sep16 revised Kaprekar's constant-related problem Add graph Sep16 revised Kaprekar's constant-related problem edited body Sep15 revised Find all $n\in\mathbb{Z}^+$ satisfying : $n\mid(2^{\varphi(n)}+3^{\varphi(n)}+\cdots +n^{\varphi(n)}).$ Fix a misplaced } Sep13 revised Prove that every practical number is either a power of two or a power of two times a non-trivial polygonal number Don't need the Stewart/Sierpinski characterisation for these cases - that was a hangover from previous thinking | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.7627665996551514, "perplexity": 5816.072318636889}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2013-48/segments/1386163053669/warc/CC-MAIN-20131204131733-00031-ip-10-33-133-15.ec2.internal.warc.gz"} |
https://www.mapleprimes.com/questions/95060-How-To-Generate-All-Vectors-Of-Length | # Question:How to generate all vectors of length m with entries are 0's or 1's and entries sum to n then sum over these entries?
## Question:How to generate all vectors of length m with entries are 0's or 1's and entries sum to n then sum over these entries?
Maple
Hi,
$\mathop {\sum {...\sum }}\limits_{z_r \in {Q_{2}^{*}}}$ such that
$Q_{2}^{*}=((z_1,...,z_r):z_{j}=0,1,\sum_{j=1}^{r}z_{j}=\ell)$, where $\ell = 0, 1, . . . , r$.
For example. If r=3, $\ell=1$; then we are looking for triples with elements 0's or 1's and sum to 1 i.e. $Q_{2}^{*}={(0,0,1),(0,1,0),(1,0,0)}$. So we would like to sum over theses $z_r$'s. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9417150020599365, "perplexity": 398.27003021034574}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-05/segments/1642320300533.72/warc/CC-MAIN-20220117091246-20220117121246-00661.warc.gz"} |
https://brilliant.org/problems/an-algebra-problem-by-rashi-kumar/ | # A geometry problem by Rashi Kumar
Geometry Level pending
If the length of a rectangle is increased by 10% and the area is unchanged then the corresponding breadth must be decreased by............%
× | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.849597692489624, "perplexity": 1562.0150859477849}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-51/segments/1512948587496.62/warc/CC-MAIN-20171216084601-20171216110601-00079.warc.gz"} |
https://www.lessonplanet.com/teachers/rr-rachel-runs-in-the-rain | # Rr-- Rachel Runs in the Rain
In this printing practice learning exercise, students study both upper and lower case letter r by tracing the words "Rachel runs in the rain" four times. Students then color the picture. This is Zaner-Bloser style.
Concepts
Resource Details | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.837443470954895, "perplexity": 5788.901105450579}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-30/segments/1500549425737.60/warc/CC-MAIN-20170726002333-20170726022333-00449.warc.gz"} |
https://stat.ethz.ch/pipermail/r-devel/2008-August/050542.html | # [Rd] Outdated dependencies and install.packages()
Martin Maechler maechler at stat.math.ethz.ch
Thu Aug 21 09:39:13 CEST 2008
>>>>> "PD" == Peter Dalgaard <P.Dalgaard at biostat.ku.dk>
>>>>> on Wed, 20 Aug 2008 17:06:36 +0200 writes:
PD> Prof Brian Ripley wrote:
>> On Wed, 20 Aug 2008, Peter Dalgaard wrote:
>>
>>> This looks like a buglet:
>>>
>>>> install.packages("lme4", depend=TRUE, lib="~/Rlibrary/")
>>> --- Please select a CRAN mirror for use in this session ---
>>> [...snip...]
>>> Error: package 'Matrix' 0.999375-4 was found, but >= 0.999375.11 is
>>> required by 'lme4'
>>> Execution halted
>>> ** Removing '/home/bs/pd/Rlibrary/lme4'
>>> ** Restoring previous '/home/bs/pd/Rlibrary/lme4'
>>>
>>> and the DESCRIPTION file for lme 4 does have
>>>
>>> Depends: methods, R(≥ 2.7.0), Matrix(≥ 0.999375-11), lattice
>>> <http://cran.r-project.org/web/packages/lattice/index.html>
>>>
>>>
>>> Looks like we're either not checking the version requirement of
>>> dependencies, or something is making 4 > 11... (from my reading of the
>>> code, it is the former, but I could have missed something).
>>
>> We don't check version requirements of dependencies in
>> install.packages(). That's a minefield related to having multiple
>> versions of a package on a system and which gets loaded/namespace
>> loaded, so you can easily have the needed version but pick up a
>> different one.
>>
>> issues) you may or may not need the dependencies to install the
>> package. It's also a problem that you can update dependencies to
>> incompatible ones, so the versions available at installation are only
>> part of the story.
>>
>> I don't see why the message reports .11 not -11, but that may be
>> related to "package_version" classes.
>>
>>> We should at least document the behaviour.
>>
>> I am not sure where you think it should be documented and is not.
>> But for install.packages():
>>
>> dependencies: logical indicating to also install uninstalled packages
>> on which these packages depend/suggest/import (and so on
>> recursively). Not used if 'repos = NULL'. Can also be a
>> character vector, a subset of 'c("Depends", "Imports",
>> "Suggests")'.
>>
>> 'uninstalled' seems pretty clear to me.
>>
PD> It isn't. Matrix 0.999375-11 was 'uninstalled'. The above could just
PD> mean that if you installed it, it wouldn't be installed again.
PD> Something like "Notice that version dependencies are not checked." would
PD> help. (Assuming that people read the help page.)
Or even more:
"
Notice that version dependencies are not checked such that
outdated versions of installed packages are \emph{not} updated.
\code{install.packages()}.
"
Note that --- thanks to Kate Mullen's nice help.request() proposal ---
one of my top "TODOs" for R-devel is
to finish a generalization of the current
update.packages()
function (that I have not quite finished)
which will allow to only look for updates of specified set of
packages rather than all packages in a given lib.loc
{something that should *not* be triggered by a help.request()
for a user (as ours) who has ~ 2000 R packages installed}.
Martin | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.5354468822479248, "perplexity": 13365.840657382541}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2014-15/segments/1397609539705.42/warc/CC-MAIN-20140416005219-00035-ip-10-147-4-33.ec2.internal.warc.gz"} |
https://eprint.iacr.org/2019/095 | ### Variants of the AES Key Schedule for Better Truncated Differential Bounds
Patrick Derbez, Pierre-Alain Fouque, Jérémy Jean, and Baptiste Lambin
##### Abstract
Differential attacks are one of the main ways to attack block ciphers. Hence, we need to evaluate the security of a given block cipher against these attacks. One way to do so is to determine the minimal number of active S-boxes, and use this number along with the maximal differential probability of the S-box to determine the minimal probability of any differential characteristic. Thus, if one wants to build a new block cipher, one should try to maximize the minimal number of active S-boxes. On the other hand, the related-key security model is now quite important, hence, we also need to study the security of block ciphers in this model. In this work, we search how one could design a key schedule to maximize the number of active S-boxes in the related-key model. However, we also want this key schedule to be efficient, and therefore choose to only consider permutations. Our target is AES, and along with a few generic results about the best reachable bounds, we found a permutation to replace the original key schedule that reaches a minimal number of active S-boxes of 20 over 6 rounds, while no differential characteristic with a probability larger than $2^{-128}$ exists. We also describe an algorithm which helped us to show that there is no permutation that can reach 18 or more active S-boxes in 5 rounds. Finally, we give several pairs $(P_s, P_k)$, replacing respectively the ShiftRows operation and the key schedule of the AES, reaching a minimum of 21 active S-boxes over 6 rounds, while again, there is no differential characteristic with a probability larger than $2^{-128}$.
Available format(s)
Category
Secret-key cryptography
Publication info
Published elsewhere. MINOR revision.SAC 2018
DOI
10.1007/978-3-030-10970-7_2
Contact author(s)
baptiste lambin @ irisa fr
History
Short URL
https://ia.cr/2019/095
CC BY
BibTeX
@misc{cryptoeprint:2019/095,
author = {Patrick Derbez and Pierre-Alain Fouque and Jérémy Jean and Baptiste Lambin},
title = {Variants of the AES Key Schedule for Better Truncated Differential Bounds},
howpublished = {Cryptology ePrint Archive, Paper 2019/095},
year = {2019},
doi = {10.1007/978-3-030-10970-7_2},
note = {\url{https://eprint.iacr.org/2019/095}},
url = {https://eprint.iacr.org/2019/095}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.3872942626476288, "perplexity": 1422.7899778030937}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2023-06/segments/1674764499768.15/warc/CC-MAIN-20230129211612-20230130001612-00527.warc.gz"} |
https://www.physicsforums.com/threads/thermo-derivation.283004/ | # Thermo Derivation
1. Jan 5, 2009
### olechka722
Hello,
I am trying to derive a formula for entropy. I have:
dS= Cv/T dT + R/(V-b) dV
and want to get:
S= Cv*ln(T) + R*ln(V-b) + constant.
Math rules seem to say i cant just integrate this up even though it looks obvious since i have two different d's on the right hand side. Maybe something using Maxwell relations? Not sure.
Thank you for any help!
olechka
2. Jan 5, 2009
### Mapes
The first term on the right side contains only a constant, a function of T, and dT. The second term contains only constants, a function of V, and dV. It's OK to integrate the terms separately in this case. You can verify this by differentiating the second expression.
3. Jan 5, 2009
### Renge Ishyo
You can just integrate it up I believe. The derivatives in this instance are actually partial derivates if I am not mistaken (the evidence is that Cv is the heat capacity at constant V...which implies that the second term is the change due to volume at constant T). So the total change in S is the sum of the integration of the two partial derivatives.
4. Jan 5, 2009
### Mapes
Not quite. It's true that the terms represent partial derivatives; that is, we're looking at
$$dS=\left(\frac{\partial S}{\partial T}\right)_V dT+\left(\frac{\partial S}{\partial V}\right)_T dV$$
However, this observation isn't sufficient to conclude that the integral of the right hand side equals the sum of the integrals of the individual terms. We must also require that $C_V(T,V)=T\left(\frac{\partial S(T,V)}{\partial T}\right)_V$, which is generally a function of both T and V, is idealized as a constant, as I stated above. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9728992581367493, "perplexity": 507.32270437767613}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-43/segments/1539583510749.55/warc/CC-MAIN-20181016113811-20181016135311-00283.warc.gz"} |
http://mathhelpforum.com/advanced-statistics/185642-proof-first-date-event-happens-stopping-time-print.html | # Proof of ''The first date for which an event happens is a stopping time.''
Suppose ${X(t,\omega)}$ is a stochastic process on a filtered probability space $(\Omega,\mathbb{F},P)$, and let $A$ be any Borel set.
Then, I want to show that the first date for which $X(t,\omega)\in A$ is a stopping time. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 4, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8174018263816833, "perplexity": 122.10742789319787}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-13/segments/1490218187717.19/warc/CC-MAIN-20170322212947-00445-ip-10-233-31-227.ec2.internal.warc.gz"} |
https://www.physicsforums.com/threads/critical-field-for-a-superconductor-why.163903/ | # Critical field for a superconductor - why?
1. Apr 3, 2007
### postscript07
Cool a cylinder made from a Type I superconducting material below the superconducting transition temperature.
Apply a magnetic field parallel to the cylinder. The cylinder expels the flux.. up until the field reaches a critical value.
Why does a critical value exist? That is, why doesn't the cylinder expel magnetic flux independent of the field strength?
Many thanks.
2. Apr 3, 2007
### marcusl
In short, it is a question of energy balance. The superconducting state has lower energy due to "condensation" of electrons into Cooper pairs. In the absence of a strong field, it is energetically favorable to be in the superconducting state.
The expelled flux, however, exerts a pressure inwards and this represents an unfavorable energy situation. As the field strength rises, the energy penalty to exclude flux exceeds the energy savings of condensation, and the material goes normal.
3. Apr 4, 2007
### postscript07
Thank you marcusl, that is very helpful.
Does a critical field exist for a zero-resistance (not superconducting) cylinder? Hall (1st ed Manchester) p264 suggests this is the case. Why?
4. Apr 4, 2007
### marcusl
Since a non-SC zero resistance material doesn't exist, this is a theoretical discussion. There is no critical field so far as I know.
Do you know the difference in behavior between the Meissner effect (SC) and a perfect conductor? | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9592244029045105, "perplexity": 2137.1878851706592}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-22/segments/1526794867417.71/warc/CC-MAIN-20180526112331-20180526132331-00635.warc.gz"} |
http://mathsvideos.net/2015/01/ | # Golden Ratio Proof
Prove that:
$\frac { a }{ b } =\frac { a+b }{ a } =\frac { 1+\sqrt { 5 } }{ 2 }$
First say that:
$p=\frac { a }{ b }$
$bp=a$
So:
$\frac { a }{ b } =\frac { a+b }{ a } \\ \\ p=\frac { bp+b }{ bp } \\ \\ p=\frac { b\left( p+1 \right) }{ bp } \\ \\ p=\frac { p+1 }{ p } \\ \\ { p }^{ 2 }=p+1\\ \\ { p }^{ 2 }-p=1\\ \\ { \left( p-\frac { 1 }{ 2 } \right) }^{ 2 }-{ \left( \frac { 1 }{ 2 } \right) }^{ 2 }=1\\ \\ { \left( p-\frac { 1 }{ 2 } \right) }^{ 2 }=\frac { 4 }{ 4 } +\frac { 1 }{ 4 } \\ \\ { \left( p-\frac { 1 }{ 2 } \right) }^{ 2 }=\frac { 5 }{ 4 } \\ \\ p-\frac { 1 }{ 2 } =\frac { \sqrt { 5 } }{ \sqrt { 4 } } \\ \\ p-\frac { 1 }{ 2 } =\frac { \sqrt { 5 } }{ 2 } \\ \\ p=\frac { 1 }{ 2 } +\frac { \sqrt { 5 } }{ 2 } \\ \\ p=\frac { 1+\sqrt { 5 } }{ 2 }$
Now:
$\frac { a+b }{ a } \\ \\ =\frac { \left( 1+\sqrt { 5 } \right) +2 }{ \left( 1+\sqrt { 5 } \right) } \\ \\ =\frac { \left( 1+\sqrt { 5 } \right) }{ \left( 1+\sqrt { 5 } \right) } +\frac { 2 }{ \left( 1+\sqrt { 5 } \right) } \cdot \frac { \left( 1-\sqrt { 5 } \right) }{ \left( 1-\sqrt { 5 } \right) } \\ \\ =1+\frac { \left( 2-2\sqrt { 5 } \right) }{ -4 } \\ \\ =\frac { -4 }{ -4 } +\frac { \left( 2-2\sqrt { 5 } \right) }{ -4 } \\ \\ =\frac { -4+\left( 2-2\sqrt { 5 } \right) }{ -4 } \\ \\ =\frac { -4+2-2\sqrt { 5 } }{ -4 } \\ \\ =\frac { -2-2\sqrt { 5 } }{ -4 } \\ \\ =\frac { -2\left( 1+\sqrt { 5 } \right) }{ -2\cdot 2 } \\ \\ =\frac { 1+\sqrt { 5 } }{ 2 }$
# Proving That Two Different Variance Formulas Are Equal To One Another
Prove that:
$\frac { \Sigma { \left( x-\overline { x } \right) }^{ 2 } }{ n } =\frac { \Sigma { x }^{ 2 } }{ n } -{ \left( \frac { \Sigma x }{ n } \right) }^{ 2 }$
Well you first identify these truths:
$x=\left\{ a,\quad b,\quad c \right\} \\ \\ \therefore \quad \overline { x } =\frac { \Sigma x }{ n } =\frac { a+b+c }{ n } ,\quad \\ \\ \therefore \quad n=3\\ \\ \therefore \quad n\overline { x } =a+b+c\\ \\ \therefore \quad \frac { \Sigma { x }^{ 2 } }{ n } =\frac { { a }^{ 2 }+{ b }^{ 2 }+{ c }^{ 2 } }{ n } .\\ \\ \therefore \quad \Sigma { x }^{ 2 }={ a }^{ 2 }+{ b }^{ 2 }+{ c }^{ 2 }$
And next:
The standard deviation formula looks like this:
$\sigma =\sqrt { \frac { \Sigma { \left( x-\overline { x } \right) }^{ 2 } }{ n } } =\sqrt { \frac { \Sigma { x }^{ 2 } }{ n } -{ \left( \frac { \Sigma x }{ n } \right) }^{ 2 } }$ | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 8, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9981181621551514, "perplexity": 7442.500425233811}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-47/segments/1542039741151.56/warc/CC-MAIN-20181112215517-20181113001517-00399.warc.gz"} |
https://testbook.com/blog/signals-and-systems-for-gate-ec-quiz-1/ | • Share
# Signals and Systems for GATE EC Quiz 1
4 years ago .
Save
Here is Signals and Systems for GATE EC Quiz 1 to help you prepare for your upcoming GATE exam. The GATE EC paper has several subjects, each one as important as the last. However, one of the most important subjects in GATE EC is Signals and Systems. The subject is vast, but practice makes tackling it easy.
This quiz contains important questions which match the pattern of the GATE exam. Check your preparation level in every chapter of Signals and Systems for GATE. Simply take the quiz and comparing your ranks. Learn about control system, Feedback principle and more.
Signals and Systems for GATE EC Quiz 1
Que. 1
A real valued signal $$\rm x(t)$$ limited to frequency band $$\rm \left| f \right| < \frac{\omega }{2}$$ is passed through an LTI system whose frequency response is
$$\rm H\left( f \right) = \;\left\{ {\begin{array}{*{20}{c}} {{e^{ – j4\pi f}},}&\rm {\left| f \right| < \frac{\omega }{2}}\\ {0,}& \rm {\left| f \right| > 0} \end{array}} \right.$$
The output of the system is
1.
$$\rm x(t+4)$$
2.
$$\rm x(t-4)$$
3.
$$\rm x(t+2)$$
4.
$$\rm x(t-2)$$
Que. 2
The unilateral Laplace transform of $$f\left( t \right) = \frac{1}{{{s^2} + s + 1}}$$. Which one of the following is unilateral Laplace transform of $$g(t)=tf(t)$$?
1.
$$\frac{{ – s}}{{{{\left( {{s^2} + s + 1} \right)}^2}}}$$
2.
$$\frac{-({2s + 1})}{{{{\left( {{s^2} + s + 1} \right)}^2}}}$$
3.
$$\frac{{ s}}{{{{\left( {{s^2} + s + 1} \right)}^2}}}$$
4.
$$\frac{({2s + 1})}{{{{\left( {{s^2} + s + 1} \right)}^2}}}$$
Que. 3
A stable LTI system has transfer function $$H\left( s \right) = \frac{1}{{{s^2} + s – 6}}$$. To make this system causal and stable it needs to be cascaded with another LTI system having transfer function $$\rm{H_1(s)}$$. Correct choice for $$\rm{H_1(s)}$$ is
1.
$$\rm{s+3}$$
2.
$$\rm{s-2}$$
3.
$$\rm{s-6}$$
4.
$$\rm{s+1}$$
Que. 4
The LTI causal system is given as $$\rm y\left[ n \right] = \alpha y\left[ {n – 1} \right] + \beta x\left[ n \right]$$
If impulse response is given as $$\rm \mathop \sum \limits_{n = 0}^\infty h\left[ n \right] = 2,$$ the relationship between $$\rm \alpha$$ and $$\rm \beta$$ is:
1.
$$\rm \;\alpha = 1 – \frac{\beta }{2}$$
2.
$$\rm \alpha = 1 + \frac{\beta }{2}$$
3.
$$\rm \alpha = 2\beta$$
4.
$$\rm \;\alpha = – 2\beta$$
Que. 5
Which of the following statements is $$\rm{\textbf{not true}}$$ for continuous time causal and stable LTI system.
1.
All poles must lie on left side of jω – axis
2.
Zeros of the system can lie anywhere in s – plane
3.
All poles must lie within |s|=1
4.
All the roots of the characteristics equation must be located on left side of jω axis
## More Signals and Systems for GATE EC Quizzes:
Try 1000+ Questions on our App.
3 years ago
3 years ago
3 years ago
3 years ago | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8700371980667114, "perplexity": 2481.412343721685}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-26/segments/1560627998923.96/warc/CC-MAIN-20190619063711-20190619085711-00424.warc.gz"} |
https://hobbyindia.store/products/flash | ### PRODUCT DETAILS
Material MDF Thickness 8mm and 12 MM Size 8 inch to 24 Inch Variable Notes Best for Mandala Art, Acrylic Paint and Resin Art. Note Bases are Pre-Marked with Laser Process so kids also do painting on it Easily.
Flash
8MM / 8 Inch - Rs. 170.00
• 8MM / 8 Inch - Rs. 170.00
• 8MM / 10 Inch - Rs. 270.00
• 8MM / 12 Inch - Rs. 390.00
• 8MM / 14 Inch - Rs. 530.00
• 8MM / 16 Inch - Rs. 690.00
• 8MM / 18 Inch - Rs. 875.00
• 8MM / 20 Inch - Rs. 1,080.00
• 8MM / 22 Inch - Rs. 1,300.00
• 8MM / 24 Inch - Rs. 1,550.00
• 12MM / 8 Inch - Rs. 200.00
• 12MM / 10 Inch - Rs. 310.00
• 12MM / 12 Inch - Rs. 440.00
• 12MM / 14 Inch - Rs. 600.00
• 12MM / 16 Inch - Rs. 790.00
• 12MM / 18 Inch - Rs. 990.00
• 12MM / 20 Inch - Rs. 1,240.00
• 12MM / 22 Inch - Rs. 1,500.00
• 12MM / 24 Inch - Rs. 1,780.00
### Delivery & Returns
###### for Hobby India
• We Need only 2-3 Working Days for Dispatch. (Depends on Customized Products in order).
• After Dispatch 3-5 Working Days For Delivery, Depends on Distance (From Surat,Gujarat) and Covid Effect or Any Current Circumstances in your Local Area.
Available Offers
Use Code BULK10 and Get 10% off on order Above 5000 INR.
No reviews yet
0%
(0)
0%
(0)
0%
(0)
0%
(0)
0%
(0) | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9122660160064697, "perplexity": 26369.740217304865}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-40/segments/1664030337287.87/warc/CC-MAIN-20221002052710-20221002082710-00268.warc.gz"} |
https://discourse.julialang.org/t/unstable-julia-language-server-was-quarto-vscode-and-unicode-characters/90317 | # Unstable Julia Language Server? (was Quarto VSCode and unicode characters?)
I’m writing a Quarto document as part of a series of tutorials I’m writing, and will announce in a few weeks.
My Quarto document explains the basic ideas of differential calculus using nonstandard analysis. I’ve got a couple places where it would be useful to stick in some math characters… like a \theta specifically within the Julia code blocks… it doesn’t seem like there is any kind of tab-completion for unicode either in the text blocks or the code blocks in Quarto.
Anyone know any suggested method for entering unicode in Quarto code blocks or text blocks? Is there a convenient vscode unicode extension?
EDIT: apparently it was due to the fact that the Julia Language Server had crashed! so now I am able to use \theta to insert a theta… Maybe I need to figure out if I need to file a bug against the language server. I often get a message when I first start vscode that the language server has crashed N times in a row…
EDIT2: It worked once, then crashed again… I’ll look into it. Anyone else experiencing instability in the Julia Language Server?
Ok, here’s some interesting results:
This is the content of my Project.toml in the project directory. There are a bunch of bare null characters in the file which is borking the Language Server. I see that this is happening off and on in many of my projects! Anyone have any idea what’s up?
1 Like | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8004044890403748, "perplexity": 1567.9832224621018}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-49/segments/1669446711077.50/warc/CC-MAIN-20221206092907-20221206122907-00669.warc.gz"} |
http://math.stackexchange.com/questions/210132/invertible-measurable-and-measure-preserving | # invertible, measurable and measure preserving [closed]
$T: [0,1)^{2}\rightarrow[0,1)^{2}$ by
$T(x,y) = (2x,\frac{y}{2})$, with $0 \leq x < \frac{1}{2}$
and
$T(x,y) = (2x-1, \frac{y+1}{2})$, with $\frac{1}{2} \leq x < 1$
In class we said this $T$ is
a) invertivle
b) measurable
c) measure preserving.
My last Analysis and Stochasitc class is quite a time ago and so I do not see that easy how $T$ fulfills a)-c)....
I hope someone can tell my why this is true, or give me some hints how I can find that out myseld :)
Best, Luca
-
## closed as off-topic by Jonas, Shailesh, Leucippus, zz20s, Daniel W. FarlowJun 21 at 2:50
This question appears to be off-topic. The users who voted to close gave this specific reason:
• "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – Jonas, Shailesh, Leucippus, zz20s, Daniel W. Farlow
If this question can be reworded to fit the rules in the help center, please edit the question.
To check it's invertible, you could simply find the inverse. It's a piecewise linear map so it shouldn't be too bad. You know it's measurable because it's piece-wise continuous. You should check the measure-preserving property by drawing what happens to points under $T$. – Christopher A. Wong Oct 9 '12 at 23:37
youre taking the square, smooshing it down and stretching it out. then cut off the excess and put it on top. (draw a picture). clearly invertible (just undo what you did). preserves measure (doesnt change areas, should be clear, what happens to the area of a little rectangle under $T^{-1}$?).
Hey! First thanks for the Answers! My $T^{-1}(x,y) = (\frac{x}{2},2y)$ for $0 \leq y < \frac{1}{2}$ And $= (\frac{x+1}{2},2y-1)$ for $\frac{1}{2} \leq y < 1$. – Luca Oct 10 '12 at 0:40
I pushed enter too early ;) Hey! First thanks for the Answers! The baker trafo describes taking a rectangle, strech it, fold it and turn it a quater. Hence if I name the two halfs $A$ and $B$, then $A$ has $\frac{1}{2}$ of the area and $T(A)$ sends it again to $\frac{1}{2}$ of the area. And then $T(A)$ intersects $A$ and $B$ in a square of area $\frac{1}{2}$. Well so informally, if we take the measure of $A$, and go the streching/folding.. back, than we still have the same area for $A$? How do I write this more formally? – Luca Oct 10 '12 at 0:47 | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.6959730386734009, "perplexity": 801.5868798466041}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.3, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2016-26/segments/1466783395346.72/warc/CC-MAIN-20160624154955-00155-ip-10-164-35-72.ec2.internal.warc.gz"} |
https://www.ima.umn.edu/convergence-multigrid-algorithm-Navier-Stokes-equations | Campuses:
# The convergence on the multigrid algorithm for Navier-Stokes equations
Author:
Chen Zhangxin and Li Kaitai
February
1987
Document:
Number:
300 | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9371891617774963, "perplexity": 21241.06218114494}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-21/segments/1652662525507.54/warc/CC-MAIN-20220519042059-20220519072059-00622.warc.gz"} |
https://math.stackexchange.com/questions/868720/integration-by-substitution-why-do-we-change-the-limits | # Integration by substitution, why do we change the limits?
I've highlighted the part I don't understand in red. Why do we change the limits of integration here? What difference does it make?
Source of Quotation: Calculus: Early Transcendentals, 7th Edition, James Stewart
• Just because you changed variable. When $x=1$ with $u=1+9x/4$, what is $u$ ? – Claude Leibovici Jul 16 '14 at 7:18
Because the function has changed. Let's do an example:
$$\int_{-1}^1 x\,dx =0$$
because the integrand is odd and the interval is symmetric (you can also check directly).
Let's do a simple $u=x+1$ so that $du=dx$ then the right way we have:
$$\int_0^2 u-1\,du = {1\over 2}(u-1)^2\bigg|_0^2={1\over 2}-{1\over 2}=0$$
but if we fail to change the limits:
$$\int_{-1}^1(u-1)\,du = {1\over 2}(u-1)^2\bigg|_{-1}^1=-2$$
The underlying reason is that integration comes from Riemann sums, the function values depend on the interval of integration. When you change the interval, the heights of the rectangles you use in the definition change (remember the heights are the function values) so that you end up adding up different things if you don't change the function to compensate.
No, we don't change the limits. Who said that. They stay the same. Only their representation changes.
$$L = \int\limits^{x=4}_{x=1}\sqrt{1 + \dfrac{9}{4}x}dx$$
Now we substitute $u=1+\dfrac{9}{4}x$:
$$L = \int\limits^{x=4}_{x=1} \sqrt{u} dx$$
See? We didn't change anything. We only substituted $u$ for the $x$ expression in the integrand. But now, it contains mixed variables and not solvable as is. We need to substitute $u$ expressions for other $x$ expressions too.
$$L = \int\limits^{x=4}_{x=1} \sqrt{u} dx = \int\limits^{\dfrac{4}{9}(u-1)=4}_{\dfrac{4}{9}(u-1)=1} \sqrt{u} d\left( \dfrac{4}{9}(u-1) \right)$$
Now, all the variables are in $u$, and the integral is solvable.
$$\dfrac{4}{9}(u-1)=4 \implies u=10, \quad \dfrac{4}{9}(u-1)=1 \implies \dfrac{13}{4} \\ d\left( \dfrac{4}{9}(u-1) \right) = \dfrac{4}{9}du$$
We rewrite the integral expression:
$$L = \int\limits^{\dfrac{4}{9}(u-1)=4}_{\dfrac{4}{9}(u-1)=1} \sqrt{u} d\left( \dfrac{4}{9}(u-1) \right) = \dfrac{4}{9} \int\limits^{u=10}_{u=\dfrac{13}{4}} \sqrt{u} du$$
Have we ever changed the limits in any step? No! They are the exact same limits. There only represented by $u$ instead of $x$ in the final expression.
• I get your point (and I agree that this is more or less the proper way to think about substitution in integrals), but it is, at the very least, really confusing to say that the limits don't change. I would word it differently. – David Z Jul 16 '14 at 17:29
• I'm with @DavidZ, the limits change to $u$ limits, which while representing the same region for $x$ limits, are different. – Adam Hughes Jul 16 '14 at 23:01
By the substitution $x=\varphi(t)$ we have
$$\int_a^b f(x)dx=\int_{\varphi^{-1}(a)}^{\varphi^{-1}(b)}f(\varphi(t))\varphi'(t)dt$$
You asked two questions: “Why do we change the limits of integration here?” and “What difference does it make?” I wonder whether you are also asking “why do we substitute $u=1+\frac9 4 x$ ?” so I’ll cover that briefly too.
Why do we change the limits of integration?
The limits of integration are not actually being changed – just expressed in the language of the new variable $u$. Ironically, this is to stop the value of the answer getting changed!
If you were somehow able to perform the integral in your question directly (without substituting in $u=1+ \frac94 x$), you would naturally then evaluate the answer from $x=1$ to $x=4$. So when someone writes $$L=∫_1^4√(1+9/4 x) dx$$ it's assumed (by them and you) that $4$ and $1$ are $x$-values. That is, they really meant $$L=∫_{x=1}^{x=4}√(1+\frac94x)dx$$
(Make sense? If you performed $∫_1^42xdx$ you'd evaluate the answer, $x^2$, by substituting in $4$ and $1$ for $x$, giving $4^2-1^2=15$. i.e. you just evaluated the answer at $x=4$ and $x=1$, but it was so obvious that $4$ and $1$ referred to $x$-values, that no-one needed to write $∫_{x=1}^{x=4}2xdx$ even though that's what the question really meant. It’s important because if the question was, say, $∫_{y=1}^{y=4}2xdx$ then the answer would probably be different. After you got your general answer of $x^2$, you couldn’t then just substitute $4^2-1^2$; you would need to find out what $x$ is worth at $y=4$ and $y=1$.)
So the question could be more precisely written $$L=∫_{x=1}^{x=4}√(1+\frac94x)dx$$ By the way, we are going to substitute $u=1+\frac94 x$ because it looks like it’s going to be so much easier to integrate: $$L=∫_{x=1}^{x=4}√u dx$$ But we have a problem: integrating $u$ with respect to $x$, we may as well just be back with the original question. So instead we figure out what $dx$ means in the world of $u$: $$\frac{du}{dx}=\frac{d}{dx}(1+\frac94x)=\frac94⇒du=\frac94dx$$ or $$dx=\frac49du$$ So $$L=∫_{x=1}^{x=4}√u⋅\frac49du=\frac49∫_{x=1}^{x=4}u^{\frac12}du=\frac49⋅\frac32 u^{\frac32}\Bigg|_{x=1}^{x=4}=\frac23u^{\frac32}\Bigg|_{x=1}^{x=4}$$ Oh dear. Problem. All very well figuring out what $dx$ meant in the world of $u$, and all very well substituting $u$ for $1+\frac94x$, but we also need to know what $u$ is worth at $x=4$ and $x=1$ or we can’t evaluate the integral. That is why we "change" or "substitute for" the limits of integration: $$u=1+\frac94x⇒$$ $$at\, x=4,\,u=1+\frac94×4=10$$ $$at\, x=1,\,u=1+\frac94×1=3.25$$ Now we can evaluate the integral because the following two statements mean exactly the same thing: $$\frac23u^{\frac32}\Bigg|_{x=1}^{x=4} \,and \, \frac23u^{\frac32}\Bigg|_{u=3.25}^{u=10}$$ the difference being that we can work with the second, but not with the first. Answer: $$L=\bigg(\frac23×10^{\frac32}\bigg)-\bigg(\frac23×3.25^{\frac32}\bigg)=21.08-3.91=17.17 (2 d.p.)$$
What difference does it make?
If we hadn’t changed the limits of integration (i.e. recognised that $4$ and $1$ meant $x=4$ and $x=1$ not $u=4$ and $u=1$) then we’d get a different answer by mistake: $$L=\frac23u^{\frac32}\Bigg|_1^4=\bigg(\frac23×4^{\frac32}\bigg)-\bigg(\frac23×1^{\frac32}\bigg)=16/3-2/3=14/3\,\,i.e.\,4.33 \,(2 d.p.)$$ because we wrongly assumed that 4 and 1 referred to u rather than to x… By the way, it also makes sense to change the limits earlier i.e. at the same time as the other substitutions (although doing it earlier won’t affect your answer.)
The original limits is for variable $x$, and the new limits is for the new variable $u$. If you can get a primitive function $$\frac{8}{27}(1+\frac{9}{4}x)^\frac{3}{2}$$ by observation, it is unnecessary. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9482994079589844, "perplexity": 254.55482724942644}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2020-16/segments/1585370493818.32/warc/CC-MAIN-20200329045008-20200329075008-00001.warc.gz"} |
https://publications.aap.org/pediatrics/article-abstract/110/3/471/64224/Perinatal-Screening-for-Group-B-Streptococci-Cost?redirectedFrom=fulltext | Objective. To evaluate the costs and benefits of a group B streptococci screening strategy using a new, rapid polymerase chain reaction test in a hypothetical cohort of expectant mothers in the United States.
Methods. Design. Cost-benefit analysis using the human capital method. We developed a decision model to analyze the costs and benefits of a hypothetical group B streptococci screening strategy using a new, rapid polymerase chain reaction test as compared with the currently recommended group B streptococci screening guidelines—prenatal culture performed at 35 to 37 weeks or risk-factor-based strategy with subsequent intrapartum treatment of the expectant mothers with antibiotics to prevent early-onset group B streptococcal infections in their infants.
Participants. A hypothetical cohort of pregnant women and their newborns.
Interventions. Screening strategies for group B streptococci using the new polymerase chain reaction technique, the 35- to 37-week culture, or maternal risk factors.
Outcome Measures. Infant infections averted, infant deaths, infant disabilities, costs, and societal benefits of healthy infants.
Results. A screening strategy using the new polymerase chain reaction test generates a net benefit of $7 per birth when compared with the maternal risk-factor strategy. For every 1 million births, 80 700 more women would receive antibiotics, 884 fewer infants would become infected with early-onset group B streptococci, and 23 infants would be saved from death or disability. The polymerase chain reaction-based strategy generates a net benefit of$6 per birth when compared with the 35- to 37-week prenatal culture strategy and results in fewer maternal courses of antibiotics (64 080 per million births), fewer perinatal infections with early-onset group B streptococci (218/million), and a reduction in 6 infant deaths and severe infant disability per million births. The benefits hold over a wide range of assumptions regarding key factors in the analysis.
Conclusions. Although additional clinical trials are needed to establish the accuracy of this new polymerase chain reaction test, initial studies suggest that strategies using this test will be superior to the other 2 strategies. Using the rapid polymerase chain reaction test becomes less attractive as the cost of the test increases. The test’s greatest strengths lie in its ability to identify women and infants at risk at the time of labor, thereby decreasing the number of false-positives and false-negatives seen with the other 2 strategies and allowing for more accurate and effective intrapartum prophylaxis. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.18115223944187164, "perplexity": 4119.984864777081}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-21/segments/1652662521152.22/warc/CC-MAIN-20220518052503-20220518082503-00280.warc.gz"} |
https://brilliant.org/discussions/thread/chandrashaker-limit/ | ×
# Chandrashaker limit
find me near Chandrashaker limit M = 1.49*M☼
Body made up of 'n' particales, so
for spherical symmetric object we write 4/3 ΠR^3 = n(4/3 Πr^3) where R- radius of object; & r- radius of particle of object made from; R = r * (n^1/3) now, mass of object = M = nmass of particles
M = n*m
ζ = M/R = n*m / r *(n^1/3)
= (m/r)*(n^2/3)
= constant
taking m is the mass of neutron = 1.67*E^-27
& r = E^-15
(m/r)^-1 = 0.59*E^12
Now for Black Hole escape velocity is given by, c = (2GM/R)^1/2
so M/R = 0.6304E^27 M/R = (n^2/3)(m/r) n = [(M/R)(r/m)]^3/2 n = 0.733E^58
M = 1.2241*E^31 kg
M☼= 8.169*E^30 kg
M/ M☼ = 1.49
M = 1.49*M☼
3 years, 11 months ago
MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold
- bulleted- list
• bulleted
• list
1. numbered2. list
1. numbered
2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1paragraph 2
paragraph 1
paragraph 2
[example link](https://brilliant.org)example link
> This is a quote
This is a quote
# I indented these lines
# 4 spaces, and now they show
# up as a code block.
print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.
print "hello world"
MathAppears as
Remember to wrap math in $$...$$ or $...$ to ensure proper formatting.
2 \times 3 $$2 \times 3$$
2^{34} $$2^{34}$$
a_{i-1} $$a_{i-1}$$
\frac{2}{3} $$\frac{2}{3}$$
\sqrt{2} $$\sqrt{2}$$
\sum_{i=1}^3 $$\sum_{i=1}^3$$
\sin \theta $$\sin \theta$$
\boxed{123} $$\boxed{123}$$ | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9934537410736084, "perplexity": 24980.24850628457}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-51/segments/1512948544124.40/warc/CC-MAIN-20171214124830-20171214144830-00515.warc.gz"} |
https://jmlr.org/papers/v20/15-504.html | ## Relative Error Bound Analysis for Nuclear Norm Regularized Matrix Completion
Lijun Zhang, Tianbao Yang, Rong Jin, Zhi-Hua Zhou; 20(97):1−22, 2019.
### Abstract
In this paper, we develop a relative error bound for nuclear norm regularized matrix completion, with the focus on the completion of full-rank matrices. Under the assumption that the top eigenspaces of the target matrix are incoherent, we derive a relative upper bound for recovering the best low-rank approximation of the unknown matrix. Although multiple works have been devoted to analyzing the recovery error of full-rank matrix completion, their error bounds are usually additive, making it impossible to obtain the perfect recovery case and more generally difficult to leverage the skewed distribution of eigenvalues. Our analysis is built upon the optimality condition of the regularized formulation and existing guarantees for low-rank matrix completion. To the best of our knowledge, this is the first relative bound that has been proved for the regularized formulation of matrix completion.
[abs][pdf][bib]
© JMLR 2019. (edit, beta) | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.89106684923172, "perplexity": 546.4284274092963}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.3, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-04/segments/1610704824728.92/warc/CC-MAIN-20210127121330-20210127151330-00614.warc.gz"} |
http://tug.org/pipermail/macostex-archives/2014-September/052980.html | # [OS X TeX] bug with the cyrillic fonts
V.Yu. Shavrukov v.yu.shavrukov at gmail.com
Wed Sep 24 04:36:57 CEST 2014
dear Juan,
On Sep 24, 2014, at 03:09, juan tolosa <juantolo at me.com> wrote:
> I am afraid I will show my ignorance, but I don't know what T2A means.
The T2A font encoding is one of the supported ways to associate characters (such as "letter ы") to slots in a TeX font table. In particular, an encoding determines a character set which may — as with T2A — or may not (T1) include Cyrillic.
> The same applies to "UT8 input encoding,"
Same thing but for plain text files. It defines which bit sequences stand for which characters.
> which sounds pretty imposing. I use cyrillic for Russian. What I use is surely outdated, since I have been using it for more years than I care to remember---ever since I started doing translation of math papers for the AMS, which was a long time ago. What I do to typeset in Russian is, follow the indications given for the \cyracc AMS family: one uses the {\cyr ...} environment and, within it, one uses the standard Russian transliteration, except for things like p1 for the soft sign, and p2 for the hard sign, which are not obvious.
>
> If you can help me out with concrete examples of what T2A is, and how one can use it, I would be very grateful. A sample file, with the necessary font declarations included would probably be the best, given my ignorance in the subject.
Here is a minimal example in LaTeX — yours was in plain TeX, to which it ought to be adaptable, but I am not sure how. Success depends on the presence of all the appropriate files for the cmr font family, but this should be automatic on most of this century installations.
%%%%%%%%%%%%%%
\documentclass{amsart}
%%%%%%%%%%
% in the preamble, add the following incantations:
%%%%%%%%%%
\usepackage[utf8]{inputenc}
% make sure that in TeXShop preferences (source/input panel), Unicode (UTF8) encoding is selected.
\usepackage[T1,T2A]{fontenc} % whichever encoding is mentioned first, is the "default"
\def\cyr{\fontencoding{T2A}\fontfamily{cmr}\selectfont}
%%%%%%%%%%
\begin{document}
{\cyr Как бы {\bfseries цыплята} нас по осени {\itshape не {\bfseries посчитали}}.}\par
You don't have to use the ø-less T2A if you don't want to.
\end{document}
%%%%%%%%%%%%%%%
Here is what I get:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-2.pdf
Type: application/pdf
Size: 74186 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20140924/d237546f/attachment.pdf>
-------------- next part --------------
> Thank your for your comment about что касается упражнения, you are absolutely right, my fault. Only I need to make a small correction to your Grammar comment: after the verb касатъся, one uses Genitive, not Accusative (which I should have done, but didn't). The Accusative for упражнение is still упражнение (as a neuter noun).
I stand corrected. Genitive is right. Don't know what I was thinking.
as ever,
Volodya | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.938873291015625, "perplexity": 3877.2311197644476}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-26/segments/1529267866926.96/warc/CC-MAIN-20180624083011-20180624103011-00232.warc.gz"} |
https://www.bankofcanada.ca/2008/09/working-paper-2008-31/ | # Aggregate and Welfare Effects of Redistribution of Wealth Under Inflation and Price-Level Targeting
Available as: PDF
Since the work of Doepke and Schneider (2006a) and Meh and Terajima (2008), we know that inflation causes major redistribution of wealth – between households and the government, between nationals and foreigners, and between households within the same country. Two types of monetary policy, inflation targeting (IT) and price level targeting (PT), have very different implications for the price level path subsequent to a price-level shock, and consequently, have different redistributional properties which is what we explore in this paper. For Canada, we show that the magnitude of redistributions of an unexpected 1% price-level increase under IT is about three times larger than under PT. Households' and foreigners' wealth losses from a price level increase is matched by the gains of the government. Even though this redistribution is zero-sum, we observe positive effects on GDP due to the wealth loss, the lower value of the debt and its associated fiscal adjustment, and the non-linear effects on work effort of the redistribution of wealth across households. Finally, the direction of the change in the weighted welfare of households depends on the fiscal policy.
### Published In:
Journal of Monetary Economics (0304-3932)
Sept. 2010. Vol. 57, Iss. 6, pp. 637-652
JEL Code(s): D, D3, D31, E, E2, E21, E3, E31, E4, E44, E5, E52, E6, E63 | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9078394174575806, "perplexity": 4085.5679824506224}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-21/segments/1620243988725.79/warc/CC-MAIN-20210506023918-20210506053918-00591.warc.gz"} |
http://mathhelpforum.com/calculus/59954-convergence-infinite-series-print.html | # convergence of an infinite series
Decide when $\sum _{n=1} ^{\infty} \frac{n^{n}}{a^{n} n!}$ converges when the ratio test fails.
The ratio test fails when $a=\pm e$. At $a=e$, use the comparison test to compare the series with $\sum n^{-1/2}$, using Stirling's formula. At $a=-e$, use the alternating series test. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 5, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9983483552932739, "perplexity": 176.64834623626678}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2016-22/segments/1464049281869.96/warc/CC-MAIN-20160524002121-00121-ip-10-185-217-139.ec2.internal.warc.gz"} |
https://blogcompsci.wordpress.com/2015/01/20/problem-045/ | # Project Euler
## Triangular, pentagonal, and hexagonal
### Problem 45
Triangle, pentagonal, and hexagonal numbers are generated by the following formulas:
Triangle Tn=n(n+1)/2 1, 3, 6, 10, 15, … Pentagonal Pn=n(3n−1)/2 1, 5, 12, 22, 35, … Hexagonal Hn=n(2n−1) 1, 6, 15, 28, 45, …
It can be verified that T285 = P165 = H143 = 40755.
Find the next triangle number that is also pentagonal and hexagonal.
Following from last problem, we can use similar strategy to check if a number is a triangular, pentagonal, and hexagonal by verifying the following two formulas from here:
$P(s, n) = \frac{n^2(s-2) - n(s-4)}{2}$
$n = \frac{\sqrt{8 (s-2)x + (s-4)^2} + (s-4)}{2(s-2)}$
where P(s, n) = x and s is equal to the number of sides and n is the nth s-gonal number.
Another key observation from above is that every hexagonal number is also a triangular number (you can verify this using the formula above).
$P(6, n) = P(3, 2n-1)$
Therefore, we can minimize our check by finding the next hexagonal number (starting with n = 144) and verify if it is also a pentagonal number. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 3, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.7913721799850464, "perplexity": 873.0813642808421}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-43/segments/1508187823839.40/warc/CC-MAIN-20171020063725-20171020083725-00727.warc.gz"} |
http://nodus.ligo.caltech.edu:8080/40m/?id=13366 | 40m QIL Cryo_Lab CTN SUS_Lab TCS_Lab OMC_Lab CRIME_Lab FEA ENG_Labs OptContFac Mariner WBEEShop
40m Log, Page 74 of 339 Not logged in
ID Date Author Type Category Subject
13377 Thu Oct 12 07:56:33 2017 SteveHowToCamerasETMX GigE side view at 50 deg of IR scattering
Telescope front lens to wall distance 25 cm, GigE camera lenght 6 cm and cat6 cable 2cm
Atm3, Existing short camera can has 16cm lenght to lexan guard on viewport. Available 2" od periscope tube lenght is 8cm. The one in use 16 cm long.
Note: we can fabricate a lite cover with tube that would accomodate longer telescope.
Can we calibrate the AR coated M5018-SW and compare it's performance agains the 2" periscope
Look at the Edmond Optics 3" od camera lens with AR
This lower priced 1" apeture Navitar lens can be an option too.
Atm1, Now I can see dust. This is much better. The focus is not right yet.
Atm2, Chamber viewport wiped and image refocused. Actually I was focusing on the dust.
Quote: I calculated a better lens solution for the ETMX side view with the simple python script that's attached. The camera is still not as close to the viewport as we would like, and now the front lens is almost all the up to the end of the tube. With a little more playing around there maybe a better way, especially if we expand the repertoire of focal lengths. Using Steve's wonderful camera fixture I put the beam spot in focus. I turned the camera sideways for better use of the field of view, and now the beam spot actually fills the center area of the beam, to the point where we probably don't want more magnification or else we start losing the tails of the Gaussian. We'll take a serious of images tomorrow, and will have an estimate of the scatter loss by the end of tomorrow.
Attachment 1: Image__2017-10-11__15-29-52_15k400g.png
Attachment 2: Image__2017-10-12__15-50-18wipedRefocud2.png
Attachment 3: camCan16cm.jpg
13376 Thu Oct 12 01:50:11 2017 gautamUpdateLSCAS55Q Dark Noise
I worked on the daughter board a little more in the evening. I have somehow managed to make the dark noise ~25% worse [Attachment #1].
• Earlier in the day, I had switched out both on-board AD797s for OP27. The latter has ~3x the input voltage noise, and LISO modeling suggests that this is the dominant contribution to the output voltage noise.
• There are some differences in the actual components with which the board is stuffed, and the schematic.
• After updating the LISO model, I expect to get an output voltage noise of ~50nV/rtHz. But I measured ~2x this value (measured with LO input of demod board driven, RFPD input terminated).
• While I had the board out, I replaced most of the installed thick-film resistors with thin film ones. For good measure, I also changed the AD829s.
After making all these changes, I re-installed the card in the eurocrate and repeated the measurement. The Q channel noise was close to the expected value (~50nV/rtHz), but the I channel is twice as noisy. I will continue this investigation tomorrow.
Attachment 1: AS55_dark.png
13375 Thu Oct 12 01:03:49 2017 johannesHowToCamerasETMX GigE side view
I calculated a better lens solution for the ETMX side view with the simple python script that's attached. The camera is still not as close to the viewport as we would like, and now the front lens is almost all the up to the end of the tube. With a little more playing around there maybe a better way, especially if we expand the repertoire of focal lengths. Using Steve's wonderful camera fixture I put the beam spot in focus. I turned the camera sideways for better use of the field of view, and now the beam spot actually fills the center area of the beam, to the point where we probably don't want more magnification or else we start losing the tails of the Gaussian.
We'll take a serious of images tomorrow, and will have an estimate of the scatter loss by the end of tomorrow.
Attachment 1: IMG_20171011_164549698.jpg
Attachment 2: Image__2017-10-11__16-52-01.png
Attachment 3: GigE_lens_position_helper.py.zip
13374 Wed Oct 11 19:31:32 2017 gautamUpdateLSCAS55Q Dark Noise
I tried replacing the AD797s on the daughter board with OP27s, and saw no significant improvement in the electronics noise of the demod board. Note that according to LISO, in this configuration, the voltage noise of the Op27 is expected to dominate the total noise of the daughter board. Measurement condition was that the RFPD input was terminated, but the LO input was still being driven (SR785 input range is -50dBVpk for all traces, and the input ranging was set to "UpOnly"). Need to do a more systematic investigation to figure out where this excess noise is coming from. I will upload photos of the board later.
Quote: This supports the hypothesis that something is wonky on the daughter board, because the purple trace should only be the quad sum of the orange and green traces. I will pull it out and have a look.
Attachment 1: AS55Q_darkNoises.pdf
13373 Wed Oct 11 17:59:45 2017 ranaUpdateElectronicsSR560 noise level
these are not the SR785 settings that you're looking for
Quote: Gautam and Steve, All 3 show the same noise level ~80 nV / rt Hz at 1 kHz as shown. Batteries ordered to be replaced in the top 2 We'll do more measurement to see how can we get to 4 nV / rt Hz specification level.
To get low noise measurements on the SR785, you have to have the input range set to -50 dB, not +20 dB. Its not within the powers of commercial electronics ADCs to give you a 10 nV noise floor with +10 V input signals. The SR560 has an input referred noise of 5 nV/rHz, so the output noise should be 5e-9 x 500 = 2.5 uV/rHz. Your picture shows it giving 1 uV RMS, so you also need to use the PSD units.
13372 Wed Oct 11 14:42:03 2017 gautamUpdateLSCAS55Q Dark Noise
I keep adding traces to this plot, here is the most complete one I have now. Looks like the input noise to the D040179 (measured at "Q out" SMA jack of D990511 with RFPD input terminated) is ~10nV/rtHz. This supports the hypothesis that something is wonky on the daughter board, because the purple trace should only be the quad sum of the orange and green traces. I will pull it out and have a look.
Some other follow-ups on the questions raised at the meeting:
1. Doesn't look like I've implemented thin film resistors on the input of the coil driver boards. De-whitening boards have the critical signal path resistors (judged as the ones with largest contribution as per LISO model) changed to thin film. Pictures are here.
2. I think I didn't make a full elog of my demod board efficiency investigations, but from my notes and Attachment #4 of elog 12972, I calculated the gain in the signal path as the ratio of Vpp_out / Vpp_in.
Quote: I measured the output voltage noise of the Q output of the AS55 Demod Board with the PSL shutter closed, using the SR785 (see Attachment #1). The measured noise is consistent with the expected number of ~120nV/rtHz around 100Hz. I had measured the gain of this board from RFPD input to Q output to be ~5.1: so if the PD dark noise is 16nV/rtHz, this would be amplified to ~80nV/rtHz. Still a discrepancy of ~50%. I didn't measure the noise with the PD input terminated. Added the noise of the demod board output with the RFPD input terminated. The level of ~100nV/rtHz seems consistent with the actual PD dark noise being ~80nV/rtHz, as their quadrature sum is around 130nV/rtHz. Need to dig up the schematics for the demod board + daughter board, and check against LISO, to see if this is consistent with what is expected. Also - I think I was using the wrong value of the DC power on the AS55 photodiode for shot noise calculations - 13mW was for REFL55, not AS55. I did a crude measurement of the power by sticking the Ophir power meter (filter removed) in front of the AS55 PD with the Michelson flashing around, and noticed the maximum value registered was ~1.2mW. So in the DRMI lock, there would be ~2.4mW, which is 10x lower than the value I was assuming. I've made the correction in the NB code, for the next time the plot is generated. A more rigorous measurement would involve sticking the Ophir in front of the AS110 PD during a DRMI lock. The light from the AS port is split by a 50-50 BS to the AS55 and AS110 PDs (so measuring at AS110 is a reasonable proxy for power at AS55), and the AS110 signals are not used for triggering in the DRMI lock, so this is feasible.
Attachment 1: AS55Q_darkNoises.pdf
13371 Wed Oct 11 10:29:43 2017 SteveUpdateElectronicsSR560 noise level
Gautam and Steve,
All 3 show the same noise level ~80 nV / rt Hz at 1 kHz as shown. Batteries ordered to be replaced in the top 2
We'll do more measurement to see how can we get to 4 nV / rt Hz specification level.
Attachment 1: sr560.jpg
Attachment 2: sr560noise.jpg
13370 Tue Oct 10 22:04:06 2017 ranaUpdateLSCAS55Q Dark Noise
how about calibrate the DC channels so that you can just get the acutal power levels from the trend data?
13369 Mon Oct 9 22:18:34 2017 gautamUpdateLSCAS55Q Dark Noise
I measured the output voltage noise of the Q output of the AS55 Demod Board with the PSL shutter closed, using the SR785 (see Attachment #1). The measured noise is consistent with the expected number of ~120nV/rtHz around 100Hz. I had measured the gain of this board from RFPD input to Q output to be ~5.1: so if the PD dark noise is 16nV/rtHz, this would be amplified to ~80nV/rtHz. Still a discrepancy of ~50%. I didn't measure the noise with the PD input terminated. Added the noise of the demod board output with the RFPD input terminated. The level of ~100nV/rtHz seems consistent with the actual PD dark noise being ~80nV/rtHz, as their quadrature sum is around 130nV/rtHz. Need to dig up the schematics for the demod board + daughter board, and check against LISO, to see if this is consistent with what is expected.
Also - I think I was using the wrong value of the DC power on the AS55 photodiode for shot noise calculations - 13mW was for REFL55, not AS55. I did a crude measurement of the power by sticking the Ophir power meter (filter removed) in front of the AS55 PD with the Michelson flashing around, and noticed the maximum value registered was ~1.2mW. So in the DRMI lock, there would be ~2.4mW, which is 10x lower than the value I was assuming. I've made the correction in the NB code, for the next time the plot is generated. A more rigorous measurement would involve sticking the Ophir in front of the AS110 PD during a DRMI lock. The light from the AS port is split by a 50-50 BS to the AS55 and AS110 PDs (so measuring at AS110 is a reasonable proxy for power at AS55), and the AS110 signals are not used for triggering in the DRMI lock, so this is feasible.
Attachment 1: AS55Q_dark.pdf
13368 Mon Oct 9 11:55:01 2017 KojiUpdateLSCDRMI Nosie Budget v3.0
My last characterization of the AS55 PD was on Feb 2013. ELOG 8100
There I said the dark noise at the PD output was 16nV/rtHz. I don't have the measurement of the Voltage noise at the output of the demod board.
Note that the PD can only be limited by shot noise when the DC current is larger then 4mA.
13367 Mon Oct 9 01:29:26 2017 gautamUpdateLSCDRMI Nosie Budget v3.0
## Summary:
I spent this weekend doing a more careful investigation of the DRMI noise. I think I have some new information/insights. Attachment #1 is the noise budget (png attached because pdf takes forever to upload, probably some ImageMagick problem. The last attachment is a tarball of the PDF). Long elog, so here are the Highlights:
1. Coil de-whitening does result in small improvement in noise in the 60-200Hz band.
2. Above 200Hz, we seem to be limited by "Dark" noise. More on this below.
3. The coupling from SRCL->MICH is the other limiting noise in the 60-200Hz band now.
## Sensing Matrix Measurement:
• I rotated the AS55 demod phase from -42 degrees to -82 degrees, the idea being to get more of the MICH error signal in AS55_Q.
• Consequently, the MICH servo gain has been lowered from -0.035 to -0.021. Settings have been updated in the snap file used by the locking script.
• Seems to have worked.
• Attachment #2 is the measured sensing elements.
• One major source of uncertainty in these sensing element numbers is the actuator gains for PRM, SRM and BS. The coil driver electronics for the latter two have been modified recently, and for them, I am using numbers from this elog scaled by the expected factor as a result of removing the x3 gain in the de-whitening boards for SRM and BS.
## MICH OLTF
• Measurement was done in lock using the usual IN1/IN2 method.
• Model made by loading the FOTON filters + assumed models for the BS pendulum and AA/AI filters in Matlab, and fitting to an overall gain + delay.
• Attachment #3 shows the agreement between measurement and model.
• The model was exported and used to invert in-loop signals to their out-of-loop counterparts in the noise budget.
## DAC Noise
• I had claimed that turning on the coil de-whitening did not improve the MICH noise.
• This was not exactly true - I had only compared MICH noise with the BS de-whitening turned ON/OFF, while the ITM de-whitening was always on.
• Turns out that there is in fact a small improvement - see Attachment #4 (DTT crashes everytime I try to print a pdf, so png screenshot will have to do for now).
• I have also changed the way in which DAC noise is plotted in the Noise Budget code:
• I used to directly convert the measured voltage noise (multiplied by appropriate scalar to account for quadrature sum of 4 coils each in 3 optics) to displacement noise using the sensing measurement cts/m values.
• Now I convert the measured voltage noise first to current noise (knowing the series resistance), then to force noise (using the number 0.016 N/A per coil), then to displacement noise (assuming a mirror mas of 250g).
• Quadrature sum is again taken for 4 coils on 3 optics.
• I've also added the option to plot the DAC noise with the de-whitening filter TF applied (taking care that the maximum of filtered DAC noise / coil driver electronics noise is used at each frequency).
• So the major source of uncertainty in the calculated DAC noise is the assumed actuator gain of 0.016 N/A.
The DAC noise is not limiting us anywhere when the coil de-whitening is switched on.
## I think this is the major find.
• The dark noise spectrum is measured with:
• the PSL shutter closed
• the AS55 I and Q analog whitening filters (and corresponding digital de-whitening filters) engaged, to mimic the operating conditions under which the in-lock error signal is acquired.
• Comparing the blue and black traces, it is clear that turning on the analog whitening is having some effect on the dark noise.
• However, the analog whitening filters should suppress the ADC noise by ~30dB @ 100Hz - so assuming 1uV/rtHz, this would be ~30nV/rtHz @100Hz.
• But the measured noise seems to be ~5x higher, with 4*10^-4 cts/rtHz translating to roughly 120nV/rtHz.
• The photodiode dark noise is only 15nV/rtHz according to the wiki. Where is this measured?
So I don't understand the measured Dark Noise level, and it is limiting us at frequencies > 200Hz. Some busted electronics in the input signal chain? Or can the LSC demod daughter board gain of ~5 explain the observed noise?
## Shot noise
• The DC power on AS55 photodiode was measured to be ~13mW with the SRM misaligned.
• This corresponds to ~100cts peak amplitude on the ASDC channel (derived from AS55 photodiode).
• In the DRMI lock, the ASDC level is ~200cts.
• I used these numbers, and equation 2.17 in Tobin's thesis, to calculate this curve.
Edit 1730 9 Oct: I had missed out the factor of 5 gain in the demod board in calculating the shot noise curve. Attachment #7 shows the corrected shot noise level. Explicitly:
$n_{\mathrm{shot}} [m/\sqrt{\mathrm{Hz}}] = \alpha \sqrt{2 h \nu \bar{P} (\frac{1}{2} - \frac{1}{4}\mathrm{cos}2\theta)}$, where $\alpha [m/W] = (\mathcal{M}_{\mathrm{MICH}} [V/m] / 5 [V/V] / 420 [V/A] / 0.7 [A/W])^{-1}$is to convert shot noise in W to displacement units.
## This is the other find.
• While chatting with Gabriele, he suggested measuring the SRCL->MICH and PRCL->MICH cross couplings.
• I injected a signal in SRCL servo EXC channel, and adjusted amplitude till coherence in MICH_IN1 was good.
• The actual TF measured was MICH_IN1 / SRCL_IN1 (so units of cts/ct).
• My multiplying the in-lock PRCL and SRCL IN1 signals by these coupling coefficients (assumed flat in frequency for now, note that measurement was only made between 100Hz and 1kHz), I get the trace labelled "AUX coupling" in Attachment #1 (this is the quadrature sum for SRCL and PRCL couplings).
• Also repeated for PRCL -> MICH coupling in the same way.
• Measurements of these TFs and coherence are shown in Attachment #5 (again png screenshot because of DTT).
• However, there is no significant coherence in MICH/SRCL or MICH/PRCL in this frequency range.
This seems to be limiting us from saturating the dark noise once the coil de-whitening is engaged. But lack of coherence means the mechanism is not re-injection of SRCL/PRCL sensing noise? Need to think about what this means / how we can mitigate it.
## OL A2L coupling
• I didn't measure these
• These couplings would have changed because I modified the Oplev loop shapes to allow engaging of coil de-whitening filters.
• But anyways, their effect will only be below 100Hz because I made the roll-offs steeper.
## Still to measure (but not likely to be limiting us anywhere in the current state):
• Laser intensity noise -> MICH coupling (using AOM).
• Laser frequency noise -> MICH coupling (using CM board IN2).
• Oscillator noise (amplitude + phase) -> MICH coupling (using AM/FM input of Marconi).
I've also made several changes to the NB code - will push to git once I finish cleaning stuff up, but it is now much faster to make these plots and see what's what.
Attachment 1: DRMI_NB.png
Attachment 2: DRMI1f_Oct8.pdf
Attachment 3: MICH_OLTF_model.pdf
Attachment 4: MICH_noises.png
Attachment 5: AUX_couplings.png
Attachment 6: C1NB_disp_40m_MICH_NB_2017-10-08.pdf.tar.gz
Attachment 7: MICH_NB_corrected.png
13366 Fri Oct 6 17:08:09 2017 SteveUpdateALSX End table beam traps corrected
There are no more double sided tape on this table.
Attachment 1: c1.jpg
Attachment 2: c2.jpg
Attachment 3: c3.jpg
Attachment 4: c4.jpg
13365 Fri Oct 6 12:56:40 2017 gautamSummaryLSCRTCDS NN
[gabriele, gautam]
Gabriele had prepared a C code implementation of his NN for MICH/PRCL state estimation. He had been trying to get it going on some of the machines in WB, but was unsuccessful. The version of RCG he was trying to compile and run the code on was rather dated so we decided to give it a whirl on our new RCG3.4 here at the 40m. Just noting down stuff we tried here:
• Code has been installed at /opt/rtcds/userapps/release/cds/c1/src/nn.This is to facilitate compilation by the RCG.
• There is also a simulink block diagram (x3tst.mdl) in there which we copied and pasted into c1pem. Changed the appropriate paths in the C-Code block to point to the location in the previous bullet point.
• c1pem was chosen for this test as it runs at 2k which is what the network is designed for.
• Since we were running the test on c1sus and expected the machine to crash, I shutdown all the watchdogs for the test.
• Code compiled without any problems (i.e. rtcds make c1pem and rtcds install c1pem executed successfully). There were some warning messages related to C-Code blocks but these are not new, they show up in all models in which we have custom C-code blocks.
• Unfortunately, the whole c1sus FE crashed when we tried rtcds restart c1pem.
• We tried a couple of more iterations, and attempted to monitor dmesg during the restart process to see if there were any clues as to why this wasn't working, but got nothing useful.
All models have been reverted to their state prior to this test, and everything on the CDS_OVERVIEW MEDM screen is green now.
Attachment 1: post_NN_test.png
13364 Fri Oct 6 12:46:17 2017 gautamUpdateCDS40m files backup situation
Looks to have worked this time around.
controls@fb1:~ 0sudo dd if=/dev/sda of=/dev/sdc bs=64K conv=noerror,sync 33554416+0 records in 33554416+0 records out 2199022206976 bytes (2.2 TB) copied, 55910.3 s, 39.3 MB/s You have new mail in /var/mail/controls I was able to mount all the partitions on the cloned disk. Will now try booting from this disk on the spare machine I am testing in the office area now. That'd be a "real" test of if this backup is useful in the event of a disk failure. Quote: The 4TB HGST drives have arrived. I've started the FB1 dd backup process. Should take a day or so. 13363 Fri Oct 6 00:25:45 2017 ranaUpdateLSCFS725 for Marconi stabilization Steve, can you please connect this fan to the rack power and remove this extra power supply? Quote: Re-arranged the DC bench supply on the shelf in the PSL enclosure, whose only purpose seems to be to supply 12V to a fan attached to the rear of the PSL NPRO controller. Seems to be a waste of space! The fan was momentarily disconnected but has since been reconnected and is spinning again. 13362 Thu Oct 5 18:40:27 2017 gautamUpdateLSCFS725 for Marconi stabilization [steve, gautam] 1. We installed the FS725 on the shelf inside the PSL enclosure - see Attachment #1. 2. We ran a long BNC cable (labelled "GPS 1pps" on both ends) from 1X7 to the PSL enclosure - this was to pipe the 1PPS signal from the GPS timing unit (EndRun Technologies Tempus LX) rear panel (50 ohm output according to the datasheet) to the 1PPS input of the FS725 (high impedance). See Attachments #2. Note that the 1pps output was already tee'd on the rear panel. One port of the tee was unused (this now goes to the FS725) while the other was going to the 1PPS input of the Master Timing Sequencer (D050239), so I decided that there was no need to tee the 1pps input of the FS725 with a 50ohm terminator. In a few minutes, the Rb standard indicated that it was locked to its internal reference, and also to the external 1pps input (see Attachment #1). 3. We ran a long BNC cable (labelled "Rb 10MHz" on both ends) from the 10MHz output of the FS725 (50 ohm output impedance), in the PSL enclosure to the rear BNC "FREQ_STD IN/OUT" BNC connector of the Marconi (1kohm input impedance). Changed the frequency reference setting on the Marconi to "External Direct". The FS725 datasheet recommends terminating the load with a 50ohm inline terminator, I have not yet done this (see Attachment #3). Is it appropriate to use a Balun (FTB-1-1) here? This would avoid ground loops between the Marconi and the FS725, and also make the load seen by the FS725 50ohms 4. Found that there was an unused long cable from the PSL enclosure to the 1X2 electronics rack. We re-purposed this to drive the AOM driver via the DAC output in 1Y2. The cable is labelled "AOM driver" on both ends. This was to facilitate measurement of the coupling of laser intensity noise to AS55_Q in a DRMI lock. 5. Removed 2 long cables between 1X7 and 1X2 that weren't connected to anything. 6. Re-arranged the DC bench supply on the shelf in the PSL enclosure, whose only purpose seems to be to supply 12V to a fan attached to the rear of the PSL NPRO controller. Seems to be a waste of space! The fan was momentarily disconnected but has since been reconnected and is spinning again. 7. Removed a couple of unused power cables from the mess on the shelf in the PSL enclosure. Also removed an unused Sony Video Squential Switcher YS-S6 from the PSL enclosure. Quote: I've located the Stanford Research FS725 Rb reference unit. The question is where to put it. This afternoon Steve and I put it inside the little electronics rack next to 1X3, but in hindsight, this probably isn't such a great place for a timing reference as there are a bunch of Sorensen power supplies in there (and presumably the accompanying harmonics from these switching supplies). The unit itself was repaired in 2015, and powering it on, it locked to the internal reference within a few minutes as prescribed in the manual. Attachment 1: IMG_7617.JPG Attachment 2: IMG_7619.JPG Attachment 3: IMG_7618.JPG 13361 Thu Oct 5 13:58:26 2017 gautamUpdateCDS40m files backup situation The 4TB HGST drives have arrived. I've started the FB1 dd backup process. Should take a day or so. Quote: Edit: unmounting /frames won't help, since dd makes a bit for bit copy of the drive being cloned. So we need a drive with size that is >= that of the drive we are trying to clone. On FB1, this is /dev/sda, which has a size of 2TB. The HGST drive we got has an advertised size of 2TB, but looks like actually only 1.8TB is available. So I think we need to order a 4TB drive. 13360 Thu Oct 5 11:46:15 2017 gautamUpdateCDSslow machine bootfest MC Autolocker was umnhappy because c1iool0 was unresponsive and hence it couldn't write to the "C1:IOO-MC_AUTOLOCK_BEAT" channel. I keyed the crate and IMC locked almost immediately. I'm moving this channel into the RTCDS model as we did for the IFO_STATE EPICS channel so that the autolocker isn't dependant on c1iool0 (which was the whole point of migrating the IFO-STATE variable anyways). I also commented out all of these channels in /cvs/cds/caltech/target/c1iool0/autolocker.db so that there aren't duplicate channels. Quote: Eurocrate key turning reboots for c1susaux, c1auxex,c1auxey, c1iscaux, c1iscaux2 and c1aux. Usual precautions were taken for ITMX. Did burtrestore for c1iscaux andc1iscaux2 in order to restore the LSC PD whitening gains. Un-related to this work: input pointing into PMC was tweaked as the PMC_REFL spot was pretty bright. 13359 Thu Oct 5 02:14:51 2017 gautamUpdateLSCMore DRMI coupling measurements - setup In the end I decided to access the available spare DAC channels via the C1ASS model - for this purpose, I added a namespace block "TEST" in the C1ASS simulink model, which is a SISO block. Inside is just a single CDS filter module. My idea is to use the EXC of this filter module to inject excitations for measuring various couplings. Rather than have a simple testpoint, we also have the option of adding in some filter shapes in the filter module which could possibly allow a more direct read-off of some coupling TF. Recompiling the model went smooth - there was a crash earlier in the day which required me to hard-reboot c1lsc (and also restart all models on c1sus and c1ioo but no reboots necessary for those machines). Note that to get the newly added channels to show up in the channel lists in DTT/AWGGUI etc, you need to ssh into fb1 and restart the daqd processes via sudo systemctl restart daqd_*. If I remember right, it used to be enough to do telnet fb 8088 followed by shutdown. This is no longer sufficient. It took me a while to get the DRMI locking going again. The model restarts earlier in the evening had changed a bunch of EPICS channel settings (and out config scripts don't catch all of these settings). In particular, I forgot to re-enable the x3 digital gain for the ITMs, BS and SRM (necessitated by removing an analog x3 gain on the de-whitening boards). I was hesitant to spend time re-adjusting all damping / oplev loop gains because if we change the series resistor on the coil driver board, we will have to do this again. I also didn't want this arbitrary FM to be enabled in the SDF safe.snap. But maybe it's worth doing it anyways - if nothing it'll be good practise. Once I hunted down all the setting diffs and tweaked alignment, the DRMI locks were pretty robust. I had hoped to make some of these TF measurements tonight. But I realized I needed to look up a bunch of stuff in manuals/datasheets, and think about these measurements a little. I wasn't sure if the DW/AI board could drive a signal over 40m of BNC cabling so I added an SR560 (DC coupled, gain=1, low noise mode, 50ohm output used) to buffer the output. The Marconi's external modulation input is high impedance (100k) but for the AOM driver we want 50ohm. For the Marconi, the external input accepts 1Vrms max, while for the AOM driver, we want to drive a signal between 0V and 1V at most. The general measurement setup is schematically shown in Fig 1. Questions to address: • What happens if we apply a negative voltage to the input of the AOM driver? What is the damage threshold? Do we have to worry about SR560 offset level? • Is there a way to dynamically adjust the offset in DTT such that we can have different amplitude signals at different frequencies (usually done by specifying an envelope in DTT) but still satisfy the requirement that the entire signal lie between 0-1V? • For the Laser Intensity noise -> MICH coupling TF measurement, I guess we can use the AOM to inject an excitation, and measure the ratio of the response in MC_TRANS and in MICH_IN1. Then we multiply the in-loop MC_TRANS spectrum by the magnitude of this TF to get the Laser Intensity Noise contribution to MICH. • The Laser Frequency Noise coupling should be negligible in MICH - but the measurement principle should be the same. Drive the AO input of the Mode Cleaner Servo board from the DAC, look at ratio of response in MICH_IN1 and MC_F. Multiply the DRMI in-lock MC_F spectrum by this TF. • The oscillator noise seems more tricky to me (also Finesse modeling suggests this may be the most significant of the 3 couplings described in this elog, though I may just be computing the coupling in Finesse wrongly) • I don't understand all the External Modulation options specified in the manual. • DC? AC? FM? PM? AM? Need to figure out what is the right settings to use. • I'm not sure how independent the various modulations will be - i.e. if I select PM, how much AM is induced as a result of me driving the EXT MOD input? • What is the right level of excitation drive? I tried this a bunch of times tonight - set the PM range to 0.1rad (for the full scale 1Vrms sine wave input), but with an excitation of just a few counts, already saw non-lineaer coupling in MICH_IN1 which probably means I'm driving this too hard. • This measurement needs a bit more algebra. We have an estimate of the Marconi phase noise from Rana (is this the right one to use?). But the "Transfer Function" we'd measure is cts in MICH_IN1 in response to counts to Marconi via the signal chain in Attachment #1. So we'd need to know (and divide out) the AI/DW board TF, and the Marconi's TF, which the datasheet suggests has a lower 3dB frequency of 100Hz (assuming SR560 and cable can be treated as flat). • A simpler test may be to just hook up the Marconi to the Rb standard, and the Rb to 1pps from GPS, and look for a change in the MICH noise. Am I missing something? Attachment 1: CB4709D0-3FA7-43E3-BC25-3CF4164E6C6A.jpeg 13357 Wed Oct 4 17:38:25 2017 gautamUpdateLSCFS725 for Marconi stabilization I've located the Stanford Research FS725 Rb reference unit. The question is where to put it. This afternoon Steve and I put it inside the little electronics rack next to 1X3, but in hindsight, this probably isn't such a great place for a timing reference as there are a bunch of Sorensen power supplies in there (and presumably the accompanying harmonics from these switching supplies). The unit itself was repaired in 2015, and powering it on, it locked to the internal reference within a few minutes as prescribed in the manual. 13356 Wed Oct 4 17:18:15 2017 gautamUpdateCDSFree DAC channels in c1lsc There are at least 5 free DAC channels (4 if you discount the one channel from these that I am hijacking) available in the 1Y2 electronics rack. Jamie's nice wiring diagram shows the topology - the actual DAC card sits in 1Y3 inside the c1lsc expansion chassis (while the c1lsc frontend itself is in 1X4). The output of the DAC goes via SCSI to an interface box (D080303) and then to some dewhitening/AI boards (D000316). There are a total of 16 DAC channels available, out of which 8 are used for the TTs, 2 are used for the DAFI model, and one is labeleld "From c1ioo 1X2" (I don't know what this one is for). So I'm going to use some of these channels for measuring the coupling of oscillator noise and intensity noise to MICH in the DRMI lock. The de-whitening/AI board seems to be old - it has 2x 800Hz Butterworth LPFs and no notch for the clock frequency, but maybe this doesn't matter for the tests I have in mind. The AI board available on 1X2 is more modern but routing the DAC channels from 1Y2 to it is going to be some work. I'm going to add my testpoint to c1daf given that it seems to be the least critical model on c1lsc. EDIT: testpoints added to c1daf don't show up in the list of available channels - there was some issue with this model while we were getting the new RTCDS going. So I'm moving my temporary testpoint to c1cal instead. 13355 Tue Oct 3 19:39:10 2017 gautamUpdateCDSslow machine bootfest Eurocrate key turning reboots for c1susaux, c1auxex,c1auxey, c1iscaux, c1iscaux2 and c1aux. Usual precautions were taken for ITMX. Did burtrestore for c1iscaux andc1iscaux2 in order to restore the LSC PD whitening gains. Un-related to this work: input pointing into PMC was tweaked as the PMC_REFL spot was pretty bright. 13354 Tue Oct 3 01:58:32 2017 johannesHowToCamerasCCD calibration Disclaimer: Wrong calibration factors! See https://nodus.ligo.caltech.edu:8081/40m/13391 The factors were indeed enormously off. The correct table reads: Camera IP Calibration Factor CF 192.168.113.152 85.8 pW*s 192.168.113.153 78.3 pW*s I did subtract a 'dark' frame from the images, though not in the sense of your point 1, just an exposure of identical duration with the laser turned off. This was mostly to reduce the effect of residual light, but given similar initial conditions would somewhat compensate for the offset that pre-existing charge and electronics noise put on the pixel values. The white field is of course a difference story. I wonder how close we can get to a white field by putting a thin piece of paper in front of the camera without lenses and illuminate it from the other side. A problem is of course the coherence if we use a laser source... Or we scrap any sort of screen/paper and illuminate directly with a strongly divergent beam? Then there wouldn't be a specular pattern. I'm not sure I understand your point about the 1.5V/A. Just to make sure we're talking about the same thing I made a crude drawing: The PD sees plenty of light at all times, and the 1.5V/uW came from a comparative measurement PD<-->Ophir (which took the place of the CCD) while adjusting the power deflected with the AOM, so it doesn't have immediate connection to the conversion gain of silicon in this case. I can't remember the gain setting of the PD, but I believe it was 0dB, 20dB at most. Attachment 1: gige_calibration.pdf 13353 Tue Oct 3 01:32:39 2017 gautamUpdateLSCLaser intensity noise coupling to MICH (simulated) GV Oct 6: This coupling is probably not correct - Finesse outputs TF magnitude in units of W/W, and not W/RIN Since I was foiled (by lack of DAC) in my attempt to measure the coupling of laser intensity noise to MICH in the DRMI (no arms) configuration, I decided to try understanding the effect with a simulation. For this purpose, I used my DRMI Finesse model - this had mirror positions tuned for locking and photodiode demod phases tuned to give a sensing matrix model that wasn't too far from an actual measurement (within factor of a few). So the model seems okay for a first pass at estimating this coupling. Measuring transfer functions in Finesse is straightforward - use the fsig command to modulate some quantity (in this case the input beam intensity), and use the pd2 detector to demodulate the effect of this modulation at the port of interest (in this case AS55_Q). **Note that to apply a modulation to an input beam (i.e. Laser) in Finesse, the keyword for the "type" argument given to fsig is "amp" and not "amplitude" as the manual would had me believe. In fact, there seem to be quite a few such caveats. The best way to figure this out is to go to the pykat installation directory, find the file components.py, and look for the fsig_name for the component of interest. It is also indicated in the same file, via the canFsig argument, if that property of the component can be modulated for transfer function measurements. Attachment #1 shows the result of such a sweep. To estimate what the actual contribution to the displacement noise is, I used the DQ-ed MC transmission (recorded at 1024Hz) from the DRMI lock, computed the ASD using scipy.signal.welch, divided by the nominal MC transmission of ~15,000 counts to convert to RIN/rtHz. The RIN was then multiplied by the above calculated coupling function, and divided by the sensing matrix element for AS55_Q (in units of W/m) to give the curve shown in Attachment #2. If we believe the simulation, then Laser Intensity Noise shouldn't be the limiting noise between 10Hz-1kHz. I will of course measure the actual coupling and see how it lines up with Attachment #1 - would be a nice additional validation of the Finesse model. I will also try using the Finesse model to estimate some other coupling transfer functions (e.g. Laser Frequency Noise, Oscillator Noise). Quote: The absence of evidence is not evidence of absence. Attachment 1: MICH_intensityNoiseCoupling.pdf Attachment 2: MICH_intensityNoiseASD.pdf 13352 Mon Oct 2 23:16:05 2017 gautamHowToCamerasCCD calibration Going through some astronomy CCD calibration resources ([1]-[3]), I gather that there are in general 3 distinct types of correction that are applied: 1. Dark frames --- this would be what we get with a "zero duration" capture, some documents further subdivide this into various categories like thermal noise in the CCD / readout electronics, poissonian offsets on individual pixels etc. 2. Bias frames --- this effect is attributed to the charge applied to the CCD array prior to the readout. 3. Flat-field calibration --- this effect accounts for the non-uniform responsivity of individual pixels on the CCDs. The flat-field calibration seems to be the most complicated - the idea is to use a source of known radiance, and capture an image of this known radiance with the CCD. Then assuming we know the source radiance well enough, we can use some math to back out what the actual response function of individual pixels are. Then, for an actual image, we would divide by this response-map to get the actual image. There are a number of assumptions that go into this, such as: • We know the source radiance perfectly (I guess we are assuming that the white paper is a Lambertian scatterer so we know its BRDF, and hence the radiance, perfectly, although the work that Jigyas and Amani did this summer suggest that white paper isn't really a Lambertian scatterer). • There is only one wavelength incident on the CCD. • We can neglect the effects of dust on the telescope/CCD array itself, which would obviously modify the responsivity of the CCD, and is presumably not stationary. Best we can do is try and keep the setup as clean as possible during installation. I am not sure what error is incurred by ignoring 2 and 3 in the list at the beginning of this elog, perhaps this won't affect our ability to estimate the scattered power from the test-masses to within a factor of 2. But it may be worth it to do these additional calibration steps. I also wonder what the uncertainty in the 1.5V/A number for the photodiode is (i.e. how much do we trust the Ophir power meter at low power levels?). The datasheet for the PDA100A says the transimpedance gain at 60dB gain is 1.5 MV/A (into high impedance load), and the Si responsivity at 1064nm is ~0.25A/W, so naively I would expect 0.375 V/uW which is ~factor of 4 lower. Is there a reason to trust one method over the other? Also, are the calibration factor units correct? Jigyasa reported something like 0.5nW s / ct in her report. Camera IP Calibration Factor CF 192.168.113.152 8.58 W*s 192.168.113.153 7.83 W*s The incident power can be calculated as Pin =CF*Total(Counts-DarkCounts)/ExposureTime. References: [1] http://www.astrophoto.net/calibration.php [2] https://www.eso.org/~ohainaut/ccd/ [3] http://www.astro.ufl.edu/~lee/ast325/handouts/ccd.pdf 13351 Mon Oct 2 19:03:49 2017 gautamUpdateCDS[Solved] c1ioo DC errors This did the trick - I simply ran sudo systemctl restart daqd_* on FB1, and now all the CDS overview lights are green again. I thought I had done this already, but I realize that I was supposed to restart the daqd processes on FB1 (which is where they are running) and not on c1ioo . Thanks Jamie for the speedy resolution! Quote: Quote: This time the model came back up but I saw a "0x2000" error in the GDS overview MEDM screen. Since there are no DACs installed in the c1ioo expansion chassis, I thought perhaps the problem had to do with the fact that there was a "DAC_0" block in the c1x03 simulink diagram - so I deleted this block, recompiled c1x03, and for good measure, restarted all (three) models on c1ioo. Now, however, I get the same 0x2000 error on both the c1x03 and c1als GDS overview MEDM screens (see Attachment #1). From page 21 of T1100625, DAQ status "0x2000" means that the channel list is out of sync between the front end and the daqd. This usually happens when you add channels to the model and don't restart the daqd processes, which sounds like it might be applicable here. It looks like open-mx is loaded fine (via "rtcds lsmod"), even though the systemd unit is complaining. I think this is because the open-mx service is old style and is not intended for module loading/unloading with the new style systemd stuff. Attachment 1: CDSoverview.png 13350 Mon Oct 2 18:50:55 2017 jamieUpdateCDSc1ioo DC errors Quote: This time the model came back up but I saw a "0x2000" error in the GDS overview MEDM screen. Since there are no DACs installed in the c1ioo expansion chassis, I thought perhaps the problem had to do with the fact that there was a "DAC_0" block in the c1x03 simulink diagram - so I deleted this block, recompiled c1x03, and for good measure, restarted all (three) models on c1ioo. Now, however, I get the same 0x2000 error on both the c1x03 and c1als GDS overview MEDM screens (see Attachment #1). From page 21 of T1100625, DAQ status "0x2000" means that the channel list is out of sync between the front end and the daqd. This usually happens when you add channels to the model and don't restart the daqd processes, which sounds like it might be applicable here. It looks like open-mx is loaded fine (via "rtcds lsmod"), even though the systemd unit is complaining. I think this is because the open-mx service is old style and is not intended for module loading/unloading with the new style systemd stuff. 13349 Mon Oct 2 18:08:10 2017 gautamUpdateCDSc1ioo DC errors I was trying to set up a DAC channel to interface with the AOM driver on the PSL table. • It would have been most convenient to use channels from c1ioo given proximity to the PSL table. • Looking at the 1X2 rack, it looked like there were indeed some spare DAC channels available. • So I thought I'd run a test by adding some TPs to the c1als model (because it seems to have the most head room in terms of CPU time used). • I added the DAC_0 block from CDS_PARTS library to c1als model (after confirming that the same part existed in the IOP model, c1x03). • Model recompiled fine (I ran rtcds make c1als and rtcds install c1als on c1ioo). • However, I got a bunch of errors when I tried to restart the model with rtcds restart c1als. The model itself never came up. • Looking at dmesg, I saw stuff like [4072817.132040] c1als: Failed to allocate DAC channel. [4072817.132040] c1als: DAC local 0 global 16 channel 4 is already allocated. [4072817.132040] c1als: Failed to allocate DAC channel. [4072817.132040] c1als: DAC local 0 global 16 channel 5 is already allocated. [4072817.132040] c1als: Failed to allocate DAC channel. [4072817.132040] c1als: DAC local 0 global 16 channel 6 is already allocated. [4072817.132040] c1als: Failed to allocate DAC channel. [4072817.132040] c1als: DAC local 0 global 16 channel 7 is already allocated. [4073325.317369] c1als: Setting stop_working_threads to 1 • Looking more closely at the log messages, it seemed like rtcds could not find any DAC cards on c1ioo. • I went back to 1X2 and looked inside the expansion chassis. I could only find two ADC cards and 1 BIO card installed. The SCSI cable labelled ("DAC 0") running from the rear of the expansion chassis to the 1U SCSI->40pin IDE breakout chassis wasn't actually connected to anything inside the expansion chassis. • I then undid my changes (i.e. deleted all parts I added in the simulink diagram), and recompiled c1als. • This time the model came back up but I saw a "0x2000" error in the GDS overview MEDM screen. • Since there are no DACs installed in the c1ioo expansion chassis, I thought perhaps the problem had to do with the fact that there was a "DAC_0" block in the c1x03 simulink diagram - so I deleted this block, recompiled c1x03, and for good measure, restarted all (three) models on c1ioo. • Now, however, I get the same 0x2000 error on both the c1x03 and c1als GDS overview MEDM screens (see Attachment #1). • An elog search revealed that perhaps this error is related to DAQ channels being specified without recording rates (e.g. 16384, 2048 etc). There were a few DAQ channels inside c1als which didn't have recording rates specified, so I added the rates, and restarted the models, but the errors persist. • According to the RCG runtime diagnostics document, T1100625 (which admittedly is for RCG v 2.7 while we are running v3.4), this error has to do with a mismatch between the DAQ config files read by the RTS and the DAQD system, but I'm not sure how to debug this further. • I also suspect there is something wrong with the mx processes: controls@c1ioo:~ 130 sudo systemctl status mx ● open-mx.service - LSB: starts Open-MX driver Loaded: loaded (/etc/init.d/open-mx) Active: failed (Result: exit-code) since Tue 2017-10-03 00:27:32 UTC; 34min ago Process: 29572 ExecStop=/etc/init.d/open-mx stop (code=exited, status=1/FAILURE) Process: 32507 ExecStart=/etc/init.d/open-mx start (code=exited, status=1/FAILURE)
Oct 03 00:27:32 c1ioo systemd[1]: Starting LSB: starts Open-MX driver... Oct 03 00:27:32 c1ioo open-mx[32507]: Loading Open-MX driver (with ifnames=eth1 ) Oct 03 00:27:32 c1ioo open-mx[32507]: insmod: ERROR: could not insert module /opt/3.2.88-csp/open-mx-1.5.4/modules/3.2.88-csp/open-mx.ko: File exists Oct 03 00:27:32 c1ioo systemd[1]: open-mx.service: control process exited, code=exited status=1 Oct 03 00:27:32 c1ioo systemd[1]: Failed to start LSB: starts Open-MX driver. Oct 03 00:27:32 c1ioo systemd[1]: Unit open-mx.service entered failed state.
• Not sure if this is related to the DC error though.
Attachment 1: c1ioo_CDS_errors.png
13348 Mon Oct 2 12:44:45 2017 johannesUpdateCamerasBasler 120gm calibration
Disclaimer: Wrong calibration factors! See https://nodus.ligo.caltech.edu:8081/40m/13391
The two acA640-120gm Basler GigE-Cams have been calibrated. I used the collimated output of a fiber that carried the auxiliary laser light from the PSL table. With a non-polarizing beam splitter some of the light was picked off onto a PD, and I modified the RF amplitude of the AOM drive signal to vary the power coming out of the fiber. The fiber output was directed at a white paper, which was placed 1.06m from the front of the lens tube assembly, which is where the focal plane is. Using the Pylon Viewer App I made sure that the entirety of the beam spot was imaged onto the CCD. Since the camera sensor is 1/4" across, I removed the camera from the lens tube and instead placed the Ophir power meter head at the position of the sensor and measured the power reported versus PD voltage, which turned out to be 1.5 V/uW.
The camera was put back in place and I used the Pypylon package Gautam had stumbled upon to sweep the exposure time from 100us to 10ms at different light power settings including no laser light at all for background subtraction, and rather than keeping the full bitmap data for O(100s) of images I recorded only the quantities
1. Pixel Max
2. Pixel Sum
3. Pixel Mean
4. Pixel Standard Deviation
5. Pixel Median
I performed this procedure for both the 152 and 153 cameras and plotted the pixel sum and the pixel max vs the exposure time. All the exposures were taken at a gain setting of 100, which is the smallest possible setting (out of 100-600). To obtain the calibration factor I use the input power Pin=75nW in the 'safe' region 1ms to 10ms where the pixel sum looks smooth and the CCD is reportedly not saturated.
Camera IP Calibration Factor CF 192.168.113.152 8.58 W*s 192.168.113.153 7.83 W*s
The incident power can be calculated as Pin =CF*Total(Counts-DarkCounts)/ExposureTime.
Attachment 1: calib_20170930_152.pdf
Attachment 2: calib_20170930_153.pdf
13347 Fri Sep 29 18:36:25 2017 gautamUpdateLSCDAC noise measurement (again)
BS connections and damping restored.
Quote:
### I will restore these tomorrow.
13346 Fri Sep 29 11:16:52 2017 SteveUpdateALSY End table corrected
The first Faraday isolater rejected beam path from the NPRO is fixed.
Attachment 1: ETMYf1.jpg
13345 Fri Sep 29 11:07:16 2017 gautamUpdateCDS40m files backup situation
The FB1 dd backup process seems to have finished too - but I got the following message:
dd: error writing ‘/dev/sdc’: No space left on device 30523666+0 records in 30523665+0 records out 2000398934016 bytes (2.0 TB) copied, 50865.1 s, 39.3 MB/s
Running lsblk shows the following:
controls@fb1:~ 32$lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb 8:16 0 23.5T 0 disk └─sdb1 8:17 0 23.5T 0 part /frames sda 8:0 0 2T 0 disk ├─sda1 8:1 0 476M 0 part /boot ├─sda2 8:2 0 18.6G 0 part /var ├─sda3 8:3 0 8.4G 0 part [SWAP] └─sda4 8:4 0 2T 0 part / sdc 8:32 0 1.8T 0 disk ├─sdc1 8:33 0 476M 0 part ├─sdc2 8:34 0 18.6G 0 part ├─sdc3 8:35 0 8.4G 0 part └─sdc4 8:36 0 1.8T 0 part While I am able to mount /dev/sdc1, I can't mount /dev/sdc4, for which I get the error message controls@fb1:~ 0$ sudo mount /dev/sdc4 /mnt/HGSTbackup/ mount: wrong fs type, bad option, bad superblock on /dev/sdc4, missing codepage or helper program, or other error
In some cases useful info is found in syslog - try dmesg | tail or so.
Looking at dmesg, it looks like this error is related to the fact that we are trying to clone a 2TB disk onto a 1.8TB disk - it complains about block size exceeding device size.
## So if we either have to get a larger disk (4TB?) to do the dd backup, or do the backing up some other way (e.g. unmount /frames RAID, delete everything in /frames, and then do dd, as Jamie suggested). If I understand correctly, unmounting /frames RAID will require that we stop all the daqd processes for the duration of the dd backup
Quote: sudo dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync in a tmux session on nodus (as I did for chiara and FB1, latter backup is still running).
## Edit: unmounting /frames won't help, since dd makes a bit for bit copy of the drive being cloned. So we need a drive with size that is >= that of the drive we are trying to clone. On FB1, this is /dev/sda, which has a size of 2TB. The HGST drive we got has an advertised size of 2TB, but looks like actually only 1.8TB is available. So I think we need to order a 4TB drive.
13344 Fri Sep 29 09:43:52 2017 jamieHowToCDSpyawg
Quote: I've modified the __init.py__ file located at /ligo/apps/linux-x86_64/cdsutils-480/lib/python2.7/site-packages/cdsutils/__init__.py so that you can now simply import pyawg from cdsutils. On the control room workstations, iPython is set up such that cdsutils is automatically imported as "cds". Now this import also includes the pyawg stuff. So to use some pyawg function, you would just do (for example): exc=cds.awg.ArbitraryLoop(excChan,excit,rate=fs) One could also explicitly do the import if cdsutils isn't automatically imported: from cdsutils import awg pyawg-away! Linking this useful instructional elog from Chris here: https://nodus.ligo.caltech.edu:8081/Cryo_Lab/1748
? Why aren't you able to just import 'awg' directly? You shouldn't have to import it through cdsutils. Something must be funny with the config.
13343 Thu Sep 28 23:50:04 2017 gautamUpdateLSCDAC noise measurement (again)
### I will restore these tomorrow.
As Rana pointed out to me, one important fact to keep in mind w.r.t. DAC noise is that it can be non-linear. So the RMS of the DAC noise in a higher frequency band (say 60-100Hz) can be affected by the RMS of the requested DAC signal in some lower frequency band (say 10-20Hz). One test to see if this hypothesis can explain the difference @100Hz between the ITMX channels and BS channels I observed a couple of days ago is to see if the noise around 100Hz becomes lower when I enable a 20-40Hz bandstop in the digital signal chain.
13342 Thu Sep 28 23:47:38 2017 gautamUpdateCDS40m files backup situation
The nodus backup too is now complete - however, I am unable to mount the backup disk anywhere. I tried on a couple of different machines (optimus, chiara and pianosa), but always get the same error:
mount: unknown filesystem type 'LVM2_member'
The disk itself is being recognized, and I can see the partitions when I run lsblk, but I can't get the disk to actually mount.
Doing a web-search, I came across a few blog posts that look like the problem can be resolved using the vgchange utility - but I am not sure what exactly this does so I am holding off on trying.
To clarify, I performed the cloning by running
sudo dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync
in a tmux session on nodus (as I did for chiara and FB1, latter backup is still running).
13341 Thu Sep 28 23:32:38 2017 gautamHowToCDSpyawg
I've modified the __init.py__ file located at /ligo/apps/linux-x86_64/cdsutils-480/lib/python2.7/site-packages/cdsutils/__init__.py so that you can now simply import pyawg from cdsutils. On the control room workstations, iPython is set up such that cdsutils is automatically imported as "cds". Now this import also includes the pyawg stuff. So to use some pyawg function, you would just do (for example):
exc=cds.awg.ArbitraryLoop(excChan,excit,rate=fs)
One could also explicitly do the import if cdsutils isn't automatically imported:
from cdsutils import awg
pyawg-away!
Linking this useful instructional elog from Chris here: https://nodus.ligo.caltech.edu:8081/Cryo_Lab/1748
13340 Thu Sep 28 11:13:32 2017 jamieUpdateCDS40m files backup situation
Quote: After consulting with Jamie, we reached the conclusion that the reason why the root of FB1 is so huge is because of the way the RAID for /frames is setup. Based on my googling, I couldn't find a way to exclude the nfs stuff while doing a backup using dd, which isn't all that surprising because dd is supposed to make an exact replica of the disk being cloned, including any empty space. So we don't have that flexibility with dd. The advantage of using dd is that if it works, we have a plug-and-play clone of the boot disk and root filesystem which we can use in the event of a hard-disk failure. One option would be to stop all the daqd processes, unmount /frames, and then do a dd backup of the true boot disk and root filesystem. Another option would be to use rsync to do the backup - this way we can selectively copy the files we want and ignore the nfs stuff. I suspect this is what we will have to do for the second layer of backup we have planned, which will be run as a daily cron job. But I don't think this approach will give us a plug-and-play replacement disk in the event of a disk failure. Third option is to use one of the 2TB HGST drives, and just do a dd backup - some of this will be /frames, but that's okay I guess.
This is not quite right. First of all, /frames is not NFS. It's a mount of a local filesystem that happens to be on a RAID. Second, the frames RAID is mounted at /frames. If you do a dd of the underlying block device (in this case /dev/sda*, you're not going to copy anything that's mounted on top of it.
What i was saying about /frames is that I believe there is data in the underlying directory /frames that the frames RAID is mounted on top of. In order to not get that in the copy of /dev/sda4 you would need to unmount the frames RAID from /frames, and delete everything from the /frames directory. This would not harm the frames RAID at all.
But it doesn't really matter because the backup disk has space to cover the whole thing so just don't worry about it. Just dd /dev/sda to the backup disk and you'll just be copying the root filesystem, which is what we want.
13339 Thu Sep 28 10:33:46 2017 gautamUpdateCDS40m files backup situation
After consulting with Jamie, we reached the conclusion that the reason why the root of FB1 is so huge is because of the way the RAID for /frames is setup. Based on my googling, I couldn't find a way to exclude the nfs stuff while doing a backup using dd, which isn't all that surprising because dd is supposed to make an exact replica of the disk being cloned, including any empty space. So we don't have that flexibility with dd. The advantage of using dd is that if it works, we have a plug-and-play clone of the boot disk and root filesystem which we can use in the event of a hard-disk failure.
1. One option would be to stop all the daqd processes, unmount /frames, and then do a dd backup of the true boot disk and root filesystem.
2. Another option would be to use rsync to do the backup - this way we can selectively copy the files we want and ignore the nfs stuff. I suspect this is what we will have to do for the second layer of backup we have planned, which will be run as a daily cron job. But I don't think this approach will give us a plug-and-play replacement disk in the event of a disk failure.
3. Third option is to use one of the 2TB HGST drives, and just do a dd backup - some of this will be /frames, but that's okay I guess.
I am trying option 3 now. dd however does requrie that the destination drive size be >= source drive size - I'm not sure if this is true for the HGST drives. lsblk suggests that the drive size is 1.8TB, while the boot disk, /dev/sda, is 2TB. Let's see if it works.
Backup of chiara is done. I checked that I could mount the external drive at /mnt and access the files. We should still do a check of trying to boot from the LaCie backup disk, need another computer for that.
nodus backup is still not complete according to the console - there is no progress indicator so we just have to wait I guess.
Quote:
### Backups of the root filesystems of chiara and nodus are underway right now. I am backing them up to the 1 TB LaCie external hard drives we recently acquired.
We also wanted to do a backup of the root of FB1 - but I'm not sure if dd will work with the external hard drive, because I think it requires the backup disk size (for us, 1TB) to be >= origin disk size (which on FB1, according to df -h, is 2TB). Unsure why the root filesystem of FB is so big, I'm checking with Jamie what we expect it to be. Anyways we have also acquired 2TB HGST SATA drives, which I will use if the LaCie disks aren't an option.
13338 Thu Sep 28 06:35:44 2017 ChrisUpdateLSCDAC noise measurement (again)
Since you're monitoring two channels simultaneously, you could try subtracting them, as an alternative to carving out bandstops.
1. Drive both channels with the same time series
2. Tweak the filter module gains if needed to equalize the analog outputs
3. Apply SR785 user math to subtract the two channels (or A-B mode of a single input, if you're not using that already?)
4. Measure the residual, which should be the incoherent part containing DAC + coil driver noise
Subtraction can conceal certain annoying effects (like numerical noise or level crossing glitches) that remain coherent for two identical outputs. It might be worth experimenting with a differential offset or sinusoid, to try to break up that kind of coherence if it exists.
13337 Wed Sep 27 23:44:45 2017 gautamUpdateALSProposed PM measurement setup
Attachment #1 is a sketch of the proposed setup to measure the PM response of the EX NPRO. Previously, this measurement was done via PLL. In this approach, we will need to calibrate the DFD output into units of phase, in order to calibrate the transfer function measurement into rad/V. The idea is to repeat the same measurement technique used for the AM - take ~50 1 average measurements with the AG4395, and look at the statistics.
Some more notes:
• Delay line box is passive, just contains a length of cable.
• IQ Demodulation is done using an aLIGO 1U chassis unit, with the actual demod board electronics being D0902745
• The RF beatnote amplitude out of the IR beat PD is ~ -8dBm.
• The ZHL-3A amplifiers have gain of 24dB, so the amplified beat should be ~16dBm
• At the LSC rack, the amplified beat is split into two - one path goes to the LO input of D0902745 (so at most 13dBm), the other goes through the delay line.
• On the demod board, the LO signal is amplified with a AP1053, rated at 10dB gain, max output of 26dBm, so the signal levels should be fine for us, even though the schematic says the nominal LO level is 10dBm - moreover, I've ignored cable losses, insertion losses etc so we should be well within spec.
• The mixer is PE4140. The datasheet quotes LO levels of 17dBm for all the "nominal" tests, we should be within a couple of dBm of this number.
• There is no maximum value specified for the RF input signal level to the mixer on the datasheet, but I expect it to be <10dBm.
• We should park the beatnote around 30MHz as this should be well within the operational ranges for the various components in the signal chain.
Attachment 1: IMG_7609.JPG
13336 Wed Sep 27 22:25:21 2017 gautamUpdateLSCDAC noise measurement (again)
Attachment #1: Summary of results of measurements made on Friday. There is a lot in this plot, here is a breakdown:
• I drove the excitation points of the coil output filter banks with raw time-series data downloaded during a DRMI lock with pyawg. Today during the meeting, Rana pointed out that we could just acquire median (as opposed to mean since the former is more immune to glitches during the averaging process) spectra during a lock, and then do the ifft in python to generate time series data for pyawg. Another advantage of doing it this way is that we don't need to store a large (~200MB in my case) file of 16k data for numerous channels. But since I already had this file, I decided against changing the methodology for this round of tests. Time series plots of the signals do not show any large glitches.
• The SR785 was used in dual channel mode to acquire spectra from 2 coil driver outputs simultaneously, in the interest of saving time. Input range was set to -32dbVpk, AC coupled, which was the smallest value that worked for the given signal profile. Spectra were taken from DC-200Hz, with 801 points, 25 averages. The DB15 output of the coil driver board was connected to a DB15 breakout board, and then a BNC->Pomona mini-grabber adapter was used to connect to the SR785 input. The newly acquired linear power supplies for the GPIB box mean that spurious 60Hz harmonics were not present.
• Initially, I had planned to enable various bandstops from 20Hz-200Hz, to get a more complete profile of the noise. But in the end, I only used two elliptic bandstops (6th order, 60dB stopband attenuation): 60-90Hz, for which data is plotted in red and 90-200Hz, for which data is plotted in green
• I've used the same noise model as I used here, plotted in dashed grey (summed with SR785 noise at the above input range, with input terminated via 50ohm terminator) - but had to tweak the parameters to get the curve to line up with the measurement. It looks like there is considerable variation between DAC channels, and certainly between the ITMX channels and the BS channels as groups.
• I took the measurement in two conditions - with the coil de-whitening off (left column) and coil de-whitening on (right column). Note that the input to the excitation was acquired at the IN1 of the relevant filter bank, and since the de-whitening happens downstream of this, we don't have to do anything special.
• In the right column, I have also plotted the LISO modelled noise, which was shown to match well with the measured curve, admittedly only for one channel (for the coil driver alone, so I am not taking into account the noise of the de-whitening board - I will fix this once I dig up that data).
Some remarks:
1. According to this measurement, the de-whitening filters are the same on the ITMX channels and BS channels. So I don't understand the difference in the right column for BS and ITMX channels.
2. While there is considerable variation between channels and also between ITMX and BS, there is certainly >6dB of reduction in the DAC noise when the de-whitening is engaged. However, no improvement was seen in the MICH error signal spectrum between 60-300Hz. So we have to continue to investigate other noises that can explain the noise in that band.
3. Also, the realized improvement in DAC noise by turning on the coil de-whitening seems marginal - the low pass has gain of ~-80dB at 100Hz, but we seem to be hitting some sort of electronics noise in all channels at the level of ~100nV/rtHz (assuming the actual DAC noise doesn't degrade significantly when the digital simulated de-whitening filter is engaged).
4. It remains to do the test for the ITMY channels.
5. It would be useful to visualize the incoherent sum of all these channels - this is what should go into the MICH displacement NB. To be added.
6. I'm currently loading pyawg from my user directory. Need to figure out a place to put this and add it to \$PATH.
Data + code for this plot will be attached later.
Attachment 1: coilNoises.pdf
13335 Wed Sep 27 00:20:19 2017 gautamUpdateALSMore AM sweeps
Attachment #1: Result of AM sweeps with EX laser crystal at nominal operating temperature ~ 31.75 C.
Attachment #2: Tarball of data for Attachment #1.
Attachment #3: Result of AM sweeps with EX laser crystal at higher operating temperature ~ 40.95 C.
Attachment #4: Tarball of data for Attachment #2.
Remarks:
• Confirmed that PDA 55 is in the "0dB" setting - the actual dial is unmarked, and has 5 states. I guessed that the left-most one is 0dB, and checked that if I twiddled the dial by one state to the right, the DC level on the scope increased by 10dB as advertized. Didn't check all the states.
• DC level is ~2.3V on a high-impedance scope. So it will be ~1.15V to a 50ohm load, which is what the DC block is. The inverse of this value is used to calibrate the vertical axis of the TF measurement to RIN/V.
• Input R (split RF source signal) attenuation: 20dB. Input A (PDA55 output) attenuation: 0dB.
• Main problem is still network hangups when trying to do many sweeps.
• Seems to persist even when I connect the GPIB box to one of the network switches - so don't think we can blame the WiFi.
• Need to explore possibility of speedup - takes >2hours to run ~50scans!
To-do:
• Overlay median and uncertainty plots for the two temp. settings. There is a visible diference in both the locations and depths/heights of various notches/peaks in the AM profile.
• Repeat test with a fast focusing lens to focus the beam more tightly on the PD active area to confirm that the measured AM is indeed due to the PZT drive and not from beam-jitter (presently, spot diameter is ~0.5x active area diameter, to eye).
• Get the PM data.
• Depending on what the PM data looks like, do a more fine-grained scan around some promising AM notches / PM peaks.
Attachment 1: TFAG4395A_26-09-2017_202344_FourSquare.pdf
Attachment 2: lowTemp.tgz
Attachment 3: TFAG4395A_26-09-2017_231630_FourSquare.pdf
Attachment 4: highTemp.tgz
13334 Tue Sep 26 22:11:08 2017 johannesUpdateCameraspost-vent camera capture comparison
I configured the remaining GigE-Camera to work on the 40m network. We currently have 3 operational Basler cameras:
The 120gm's have been assigned the IPs 192.168.113.152 (was already configured) and 192.168.113.153 (freshly configured) and have been labeled accordingly. Note that it was not necessary to connect the out-of-the-box camera directly to a dedicated ethernet adapter whose IP was set manually to 169.254.0.XXX as pointed out in earlier posts - a few seconds after connecting the camera to the control room switch (with PoE adapter to power it) the camera showed up in the configuration software tool which is launched via
/opt/rtcds/caltech/c1/scripts/GigE/pylon5/bin/./IpConfigurator
and can be assigned a corrected, static IP.
We have a plethora of 2" tubes for the lens assembly, but not a great variety of focal lengths for 2" lenses. Present with the camera gear were two f=250 mm and one f=150 mm 2" lenses with a NIR broadband AR coating
To determine the lens positions relativ to the sensor I assumed that the camera we're setting up looks at its test mass from a distance of 1m. Using the two available focal lengths we can look for solutions which have reasonable lens separations <~10cm and suitable magnification. We primarily want to image the central mirror area onto a 1/4" sized sensor, which can be achieved with a magnification of ~1/8.
I chose a lens separation of 6cm, which gives a theoretical magnification of -.12 and a sensor-lens 2 distance of 7.95 cm. I placed the lenses accordingly in the tubes and checked the focusing with Gautam's help:
It's pretty close to what we would expect. We will do the calibration using the auxiliary laser on the PSL table. For this I temporarily routed a fiber from the PSL enclosure to the SP table. Since the main cable hole is sort of cramped it's going in through a gap near the ceiling instead.
Attachment 1: lens_distance.pdf
13333 Tue Sep 26 19:10:13 2017 gautamUpdateALSFiber ALS setup neatened
[steve, gautam]
The Fiber ALS box has been installed on the existing shelf on the PSL table. We had to re-arrange some existing cabling to make this possible, but the end result seems okay (to me). The box lid was also re-installed.
Some stuff that still needs to be fixed:
1. Power supply to ZHL amplifiers - it is coming from a table-top DC supply currently, we should hook these up to the Sorensens.
2. We should probably extend the corrugated fiber protection tubing for the three fibers all the way up to the shelf.
Beat spectrum post changes to follow.
Quote:
Is it better to mount the box in the PSL under the existing shelf, or in a nearby PSL rack?
Quote: Further characterization needs to be done, but the results of this test are encouraging. If we are able to get this kind of out of loop ALS noise with the IR beat, perhaps we can avoid having to frequently fine-tune the green beat alignment on the PSL table. It would also be ideal to mount this whole 1U setup in an electronics rack instead of leaving it on the PSL table
Attachment 1: IMG_7605.JPG
13332 Tue Sep 26 15:55:20 2017 gautamUpdateCDS40m files backup situation
### Backups of the root filesystems of chiara and nodus are underway right now. I am backing them up to the 1 TB LaCie external hard drives we recently acquired.
I first initialized the drives by hooking them up to my computer and running the setup.app file. After this, plugging the drive into the respective machine and running lsblk, I was able to see the mount point of the external drive. To actually initialize the backup, I ran the following command from a tmux session called ddBackupLaCie:
sudo dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync
Here, /dev/sda is the disk with the root filesystem, and /dev/sdb is the external hard-drive. The installed version of dd is 8.13, and from version 8.21 onwards, there is a progress flag available, but I didn't want to go through the exercise of upgrading coreutils on multiple machines, so we just have to wait till the backup finishes.
We also wanted to do a backup of the root of FB1 - but I'm not sure if dd will work with the external hard drive, because I think it requires the backup disk size (for us, 1TB) to be >= origin disk size (which on FB1, according to df -h, is 2TB). Unsure why the root filesystem of FB is so big, I'm checking with Jamie what we expect it to be. Anyways we have also acquired 2TB HGST SATA drives, which I will use if the LaCie disks aren't an option.
13331 Tue Sep 26 13:40:45 2017 gautamUpdateCDSNDS2 server restarted on megatron
Gabriele reported problems with the nds2 server again. I restarted it again.
update: had to do it again at 1730 today - unclear why nds2 is so flaky. Log files don't suggest anything obvious to me...
Quote: I was unable to download data using nds2. Gabriele had reported similar problems a week ago but I hadn't followed up on this. I repeated steps 5-7 from elog 13161, and now it seems that I can get data from the nds2 servers again. Unclear why the nds2 server had to be restarted. I wonder if this is somehow related to the mysterious acromag EPICS server tmux session dropout.
13330 Mon Sep 25 17:56:33 2017 johannesUpdateComputer Scripts / Programstransmitted power during lossmap
I had to do a reboot + burt restore of c1psl today. It was unresponsive and I couldn't get the PMC to lock. I also had to slightly realign the PMC, and the IMC was too misaligned for the autolocker to catch lock. Adjusting it manually, it was predominantly MC1 PIT that was off. The YARM locked on a 10 mode and had to be aligned manually as well.
I left a script running on Donnatella that tilts ETMX and thus moves the beam on ITMX. I'm monitoring the transmitted power to evaluate sane thresholds for the demodulation offsets in a lossmap measurement. The script will return the IFO to normal after it is done and will take <2 hours to complete (no real clue, but there's no way it takes longer than that for ~50 datapoints).
13329 Sun Sep 24 20:47:15 2017 ranaUpdateComputer Scripts / ProgramsRF TF Uncertainties
I have made several changes to Craig's script for better pythonism. Its more robust with different libraries and syntaxes and makes a tarball by default (w/o a command line flag). These kinds of general util scripts will be going into a general use folder in the git.ligo.org/40m/ team area so that it can be used throughout the LSC.
I don't think we need/want a coherence calculation, so I have not included it. Usually, we use coherence to estimate the uncertainty, and here we are just plotting it directly from the dist of the sweeps so coherence seems superfluous.
Attachment 1: TFAG4395A_21-09-2017_115547_FourSquare.pdf
Attachment 2: TFAG4395A_21-09-2017_115547.tgz
13328 Fri Sep 22 18:12:27 2017 gautamUpdateLSCDAC noise measurement (again)
I've been working on setting up some scripts for measuring the DAC noise.
In all the DRMI noise budgets I've posted, the coil-driver noise contribution has been based on this measurement, which could be improved in a couple of ways:
• The measurement was made at the output of the AI board - we can make the measurement at the output of the coil driver board, which will be a closer reflection of the actual current noise at the OSEM coils.
• The measurement was made by driving the DAC with shaped random noise - but we can record the signal to the coils during a lock and make the noise measurement by using awg to drive the coil with this signal, with elliptic bandstops at appropriate frequencies to reveal the electronics noise.
1. The IN1 signals to the coils aren't DQ-ed, but ideally this is the signal we want to inject into the coil_EXC channel for this measurement - so I re-locked the DRMI a couple of nights ago and downloaded the coil IN1 channel data for ~5mins for the ITMs and BS.
2. AWGGUI supposedly has a feature that allows you to drive an EXC channel with an arbitrary signal - but I couldn't figure out how to get this working. I did find some examples of this kind of application using the Python awg packages, so I cobbled together some scripts that allows me to drive some channels and place elliptic bandstop filters as I required.
3. I wasted quite a bit of time trying to implement these signals in Python using available scipy functions, on account of me being a DSP n00b . When trying to design discrete-time filters, of course numerical precision errors become important. Initially I was trying to do everything in the "Transfer function (numerator-denominator)" basis, but as Rana pointed out, the way to go is using SOSs. Fortunately, this is a simple additional argument to the relevant python functions, after which elliptic bandstop filter design was trivial.
4. The actual test was done as follows:
• Save EPICS PIT/YAW offsets, set them to 0, disable Oplev servos, and then shut down optic watchdog once the optic is somewhat damped. This is to avoid the optics getting a large kick when disconnecting the DB15 connector from the coil driver board output.
• Disconnect above-mentioned DB15 connector from the appropriate coil driver board output.
• Turn off inputs to coils in filter module EPICs screens. Since the full signal (local damping servo output + Oplev servo output + LSC servo output) to the coil during a DRMI lock will be injected as an excitation, we don't need any other input.
• Use scripts (which I will upload to a git repo soon) to set up the appropriate excitation.
• To measure the spectrum, I used a DB15 breakout board with test-points soldered on and some mini-grabber-to-BNC adaptors, in order to interface the SR785 to the coil driver output. We can use the two input channels of the SR785 to simultaneously measure two coil driver board output channels to save some time.
• Take a measurement of the SR785 noise (at the appropriate "Input Range" setting) with inputs terminated to estimate the analyzer noise floor.
• Just for kicks, I made the measurement with the de-whitening both OFF/ON.
I only managed to get in measurements for the BS and ITMX today. ITMY to be measured later, and data/analysis to follow.
The ITMX and BS alignments have been restored after this work in case anyone else wants to work with the IFO.
Some slow machine reboots were required today - c1susaux was down, and later, the MC autolocker got stuck because of c1iool0 being unresponsive. I thought we had removed all dependency of the autolocker on c1iool0 when we moved the "IFO-STATE" EPICS variable to the c1ioo model, but clearly there is still some dependancy. To be investigated.
13327 Thu Sep 21 15:23:04 2017 gautamOmnistructureALSLong cable from LSC->IOO
[steve,gautam]
We laid out a 45m long BNC cable from the LSC rack to the IOO rack via overhead cable trays. There is ~5m excess length on either side, which have been coiled up and cable-tied for now. The ends are labelled "TO LSC RACK" and "TO IOO RACK" on the appropriate ends. This is to facilitate hooking up the output of the DFD for making a PM measurement of the AUX X laser. There is already a long cable that runs from the IOO rack to the X end.
ELOG V3.1.3- | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 2, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.6400650143623352, "perplexity": 3323.4949532877786}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": false}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-33/segments/1659882573145.32/warc/CC-MAIN-20220818003501-20220818033501-00138.warc.gz"} |
http://maikolsolis.com/2012/09/ | ## The Delta method: Main Result
Let $latex {T_{n}}&fg=000000$ an estimator of $latex {\theta}&fg=000000$, we want to estimate the parameter $latex {\phi(\theta)}&fg=000000$ where $latex {\phi}&fg=000000$ is a known function. It is natural to estimate $latex {\phi(\theta)}&fg=000000$ by $latex {\phi(T_{n})}&fg=000000$. Now, we can then ask: How the asymptotic properties of $latex {T_{n}}&fg=000000$ could be transfer to $latex {\phi(T_{n})}&fg=000000$?
## Weak Law of Large Numbers and Central Limit Theorem via the Levy’s continuity theorem
The Levy’s continuity theorem is a very important tool in the statistical machinery. For example, it will give us two simple proofs to two classical statistical problems: The Law of Large Numbers and the Central Limit Theorem. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9834875464439392, "perplexity": 102.52615593248807}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": false}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-39/segments/1568514576047.85/warc/CC-MAIN-20190923043830-20190923065830-00188.warc.gz"} |
https://tpfto.wordpress.com/2011/09/ | ## Parametric equations for regular and Reuleaux polygons
September 15, 2011
Not having any other place to note this down, I suppose this blog entry is as good as any.
From this m.SE answer, user Raskolnikov demonstrates a polar equation whose graph is a regular $n$-gon (slightly reformulated):
$r=\cos\frac{\pi}{n}\sec\left(\theta-\frac{\pi}{n}\left(2\left\lfloor\frac{n\theta}{2\pi}\right\rfloor+1\right)\right)$
Through similar considerations, one can derive parametric equations for Reuleaux polygons ($n$ of course being odd):
$x=2\cos\frac{\pi}{2n}\cos\left(\frac12\left(t+\frac{\pi}{n}\left(2\left\lfloor\frac{n t}{2\pi}\right\rfloor+1\right)\right)\right)-\cos\left(\frac{\pi}{n}\left(2\left\lfloor\frac{n t}{2\pi}\right\rfloor+1\right)\right)$
$y=2\cos\frac{\pi}{2n}\sin\left(\frac12\left(t+\frac{\pi}{n}\left(2\left\lfloor\frac{n t}{2\pi}\right\rfloor+1\right)\right)\right)-\sin\left(\frac{\pi}{n}\left(2\left\lfloor\frac{n t}{2\pi}\right\rfloor+1\right)\right)$
Here’s a side-by-side comparison of some odd-sided regular and Reuleaux polygons:
I’m not sure if there are simpler expressions for the parametric equations of the Reuleaux polygon, though, and I would be interested if you, the reader, might come up with something a bit simpler. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 5, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.7509503960609436, "perplexity": 871.8287147423513}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-34/segments/1502886112682.87/warc/CC-MAIN-20170822201124-20170822221124-00241.warc.gz"} |
http://quant.stackexchange.com/tags/monte-carlo/new | Tag Info
New answers tagged monte-carlo
2
I would definitely recommend Volopta as a reliable source of self-contained and commented financial engineering source codes (useful for prototyping/understanding but clearly not production code). I have for instance copy-pasted, the explicit PDE solver you are looking for (centred in space, backward in time) below (+ edited for clarity + improved ...
0
Monte Carlo simulation in the context of Quantitative Finance refers to a set of techniques to generate artificial time series of the stock price overtime, from which option prices can be derived. In this case, the Least-Squares Monte Carlo can be applied to any stock price stochastic process that lends itself to simulation. It is especially useful for ...
0
Assuming deterministic interest rates, the price of an American call option struck at $K$ and expiring at $T$ is given by $$V_0 = \text{sup}_{\tau \in \mathcal{T}[0,T]} \mathbb{E}_0^\mathbb{Q}\left[ e^{-r\tau} \max(S_{\tau}-K, 0) \right]$$ where $\mathcal{T}[0,T]$ denotes a family of stopping times with values in $[0,T]$ and where, under the risk-neutral ...
0
I would suggest to use : $$f(t,S^\theta_t)=\max(K-S^\theta_t,0)\exp(-\theta W_t\color{red}{\mathbf{-}}\frac{1}{2}\theta^2t)$$ where $dS^\theta_t=(r+\sigma\theta)S^\theta_t dt + \sigma S^\theta_t dW_t$
4
Typically when running a Monte Carlo simulation we might simulate an SDE similar to $$\dfrac{dS}{S} = \mu\:dt + \sigma \: dW(t)$$ by some appropriate method (e.g. Euler-Maruyama, Milstein, etc). We notice by dimensional analysis that if $t$ is in units of $\textrm{years}$ then $\mu \sim \textrm{years}^{-1}$ and $\sigma \sim \textrm{years}^{-1/2}$. ...
0
Overall you are not mistaken, although it is worth revisiting a few steps in your question. We assume $S$ follows the SDE $$\dfrac{dS}{S} = \mu\:dt+ \sigma\:dW^\mathbb{P}(t)$$ under the physical measure $\mathbb{P}$. If we change to the risk neutral measure $\mathbb{Q}$ (using Girsanov's theorem) then $\mu \to r$ and we have the following SDE $$\dfrac{dS}... 5 [Short answer] IMHO there is a fundamental problem with wanting to extract a sound implied volatility figure out of a deep ITM option's price. You should use out-of-the-money forward options (OTMF) instead: put options for strikes smaller than the forward price (left wing of the volatility surface) and call options otherwise (right wing of the volatility ... 0 There's nothing wrong with your formulation, in my opinion. If you model the rate z_30 with a fixed mean, then indeed the forward ZCB price is long vega. This means that the forward interest rate is short vega (i.e. the 30yr into 10yr forward rate goes down when vol goes up). This is self-consistent. In most textbooks, however, the forward interest ... 0 I just made things clearer hoping it would help. Let define \mathbb{Q}_\theta as$$\frac{d\mathbb{Q}_\theta}{d\mathbb{P}}|_{\mathcal{F}_t}=\exp(\theta W_t -\frac{1}{2}\theta^2 t)=Z^\theta_t$$By girsanov, if W is a brownian motion under \mathbb{P}, then W^\theta_t=W_t-\theta t is a brownian motion under \mathbb{Q}^\theta$$\begin{split} \mathbb{...
1
Applying Itô's lemma to the Black-Scholes SDE and integrating from $t$ to $t+\Delta t$ gives: $$S_{t+\Delta t} = S_t e^{(r-\frac{1}{2}\sigma^2)\Delta t + \sigma \sqrt{\Delta t}Z}$$ with $Z \sim N(0,1)$, showing that $S_{t+\Delta t}$ given $S_t$ is log-normally distributed. It is then straightforward to write, for any compact $\mathcal{A} = [a_1,a_2]$ ...
1
Note that $${{f}_{W(t)\left| W(s) \right.}}\left(x\left| y \right. \right)=\frac{{{f}_{ W(s),W(t)}}\left( x,y \right)}{{{f}_{ W(s)}}\left( y \right)}=\frac{1}{\sqrt{2\pi(t-s)}}\exp \left[-\frac{{{(x-y)}^{2}}}{2(t-s)} \right]$$ By application of Ito's lemma we have $$ln\,S_{t+\Delta t}=ln\,S_t+\left((\mu-\frac{1}{2}\sigma^2)\Delta t+\sigma(W_{t+\Delta t}-... 4 You are trying to price an option through Monte Carlo simulations. Here is how it should work, assuming the Black-Scholes diffusion framework. Under the Black-Scholes model's assumptions, the value of a risky asset S at the time t=T is a random variable which reads$$ S_T = S_0 e^{\left(\mu-\frac{\sigma^2}{2}\right)T + \sigma \sqrt{T} Z}\tag{1} with ...
Top 50 recent answers are included | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8852811455726624, "perplexity": 589.9506966240847}, "config": {"markdown_headings": false, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.3, "absolute_threshold": 10, "end_threshold": 5, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2016-26/segments/1466783391634.7/warc/CC-MAIN-20160624154951-00025-ip-10-164-35-72.ec2.internal.warc.gz"} |
http://learnyousomeml.com/nb/ul-ml-catalogue.html | # 08.00 Machine Learning Groupings, Again¶
We saw that we can divide machine learning models in four categories.
• Supervised Learning
• Classification
• Regression
• Unsupervised Learning
• Dimensionality Reduction
• Clustering
And although this grouping is quite outdated we will follow it for the time being. We did skim over classification and regression but more importantly we did see how we evaluate ML models and how we automate the evaluation. Now, one may be surprised that we already went through the majority of way of evaluating an ML model.
In unsupervised learning there are no good ways to know whether a model works well or not. Instead, faced with a problem against which we need to attempt unsupervised learning, we need to attempt to transform at least part of the problem into supervised learning and evaluate it with accuracy scores, f1 measures, and so on.
Often we do not have labels for the data we use unsupervised learning on, in such a case any form of model evaluation will be very difficult. Perhaps the easiest way to evaluate a model for a problem for which we have no labels at all and cannot get any labels, is to find a similar problem for which we have labels and train a model on that similar problem. Once we evaluate a good model on the similar problem we assume that it will work in a similar fashion on the original problem.
Most of the time with unsupervised learning we have or can get at least a handful of labels. We can then evaluate our unsupervised model on the handful of labels in a similar fashion as we would do for a supervised one. This can be sometimes called semi-supervised learning, and is our first indication that the list of ML groupings at the top is quite incomplete.
### Dimensionality Reduction¶
Will allow us to explore the data in lesser dimensions, whatever we call the dimension. Here we come back to the concept of distance. We did see different distances such as L-norms, including L1 and L2, but many other measures can be made to work as a distance: sum of coordinates and polynomial functions on top of the data are distances we have already used; other distances include measures such as cosine similarity or probabilities. Don't worry what these exactly are right now, we will explore some of the ways of measuring distance.
Independent of what we use for distance, we say that two points (samples) are similar if they are close to one another, and dissimilar if they are far apart.
One way to evaluate dimensionality reduction is to perform the reduction to a set of numbers we can visualize and then check by-the-eye that things close together are the ones we expect to be similar and things far apart are the ones we expect to be dissimilar.
When we have a handful of labels we can perform the dimensionality reduction and then train another model on top of the reduced data. The performance of the resulting model will be an indication of the performance of the dimensionality reduction technique.
### Clustering¶
Is similar to the models we have already seen when looking at supervised learning. Instead of changing the structure of the space where the data lives as is done with dimensionality reduction, clustering attempts to identify the structure in the data. The identification of this structure is again performed by means of distance in one form or another.
One builds clusters, structures which then allow new (unseen) data to be classified into one of these clusters. We argue that samples that are similar to each other are in a cluster together, and in a different cluster from samples that are dissimilar to them. Contrary to supervised learning one such cluster has no meaning, unless we give it one using a guesstimate, by-the-eye, evaluation. Without labels clusters are just groupings of data, yet seeing such groupings we may be able to guess labels for them.
If we have some labels then we can check what label is present for the majority of samples in a cluster and give the cluster a meaning. In this fashion we can evaluate a clustering model in a similar way to supervised learning models. We can then say that a good clustering would group together the samples according to their labels.
When one has no labels at all and cannot guesstimate them there remains possibility of evaluating the shape of the clusters. Clusters live in the space where the data lives. Evaluation techniques can geometrically check whether the clusters are round or dense. And the concept of round or dense can be changed slightly depending of how we measure distance. Still, geometric techniques for clustering evaluation are rather limited, and are an area of active research.
Let's import a handful of things that will help us with the next topic.
We will need a handful of mathematical concepts, although not necessarily equations, in order to advance from here. We will also have a quick look at a few mathematicians that allowed us to get where we are today.
In [1]:
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
plt.style.use('seaborn-talk')
ul-godel.svg
Kurt Gödel's incompleteness theorems, from 1931, were one of the greatest turns in Mathematical thinking. The theorem's themselves only prove the impossibility of building a full set of mathematical axioms which would explain the axioms themselves. Despite the fact that the theorem's only build upon the axioms of arithmetic, the deepest ideas behind it proved to be revolutionary. Later works and interpretations of Gödel's theorems built the idea that mathematics cannot ever be proven by mathematics themselves, which placed applied mathematics on the same level as "pure" theoretical mathematics. This line of thinking also led to the rejection of the idea that there must exist a set of first principles for every phenomena.
## Linearity¶
For a long time science assumed the linearity of the world. This is another way to say that science believed that every phenomena can be distilled to its first principles and then those first principles will combine in a linear fashion to produce the more complex phenomena. That is a lot of talk that does not actually tell us what this linearity is. It often is the case that the exact definition of linearity is slightly different depending on the discipline one looks at. Instead we will attempt to define where linearity fails and work backward from there.
On the assumption that one would be capable of dividing the world into all its first principles then, by definition, none of the first principles could be correlated with any of the other first principles. Otherwise, if the first principles are indeed correlated, then one first principle is dependent on the other and hence not a first principle but phenomena caused by the other first principle.
Let us play with this concept and build two graphs: the capital letter B, and some white noise - a completely uniform random set of points - and make their histograms in each dimension.
In [2]:
B = np.array([
[.1, .9], [.20, .9],
[.23, .87],
[.1, .8], [.25, .8],
[.1, .7], [.25, .7],
[.23, .63],
[.1, .6], [.20, .6],
[.1, .5], [.20, .5],
[.1, .4], [.27, .4],
[.27, .37],
[.1, .3], [.30, .3],
[.27, .23],
[.1, .2], [.27, .2],
[.1, .1], [.20, .1],
])
noise = []
for i in range(70):
noise.append(B + np.random.random(B.shape)*.12)
B = np.vstack(noise)
white = np.random.random(B.shape)
fig, ax = plt.subplots(2, 5, figsize=(16, 9))
ax[1, 0].scatter(B[:, 0], B[:, 1], s=20, c='crimson')
ax[0, 0].hist(B[:, 0], color='crimson')
ax[0, 0].set_title('Letter B, corr %.06f' % np.corrcoef(B[:, 0], B[:, 1])[0, 1])
ax[1, 1].hist(B[:, 1], color='crimson', orientation='horizontal')
ax[1, 3].scatter(white[:, 0], white[:, 1], s=20, c='steelblue')
ax[0, 3].hist(white[:, 0], color='steelblue')
ax[0, 3].set_title('White Noise, corr %.06f' % np.corrcoef(white[:, 0], white[:, 1])[0, 1])
ax[1, 4].hist(white[:, 1], color='steelblue', orientation='horizontal')
for img in ax.flat:
img.axis('off')
In both graphs we only have points in $2$ dimensions, and we evaluated the correlation between the $2$ dimensions in each case. Both the capital letter B and the white noise have pretty much no correlation between the dimensions in which they exist.
If we accept the approximation that the correlations are indeed exactly zero, then we can argue that we have separated the world where the letter B and the white noise live into its first principles: the positions on the x-axis and the positions on the y-axis. And since the positions and correlations are pretty much the same the letter B and the white noise are exactly the same thing!
Obviously they are not the same thing. We can see the letter B because our human brain is very good at finding non-linear patters. When we draw a capital letter B we do not take notice of exactly where we place each part of the letter. Instead we take effort to make sure that the letter B has one straight side and round holes in it. The exact position of the parts of B does not matter, what matters is the position between the parts of B.
## Here be Dragons - where Linearity Breaks¶
The letter B has a pattern we can identify with our human brain which do not follow from the definition of the two-dimensional world built by positions of points with two coordinates. Finding such patters as the letter B in the example is a case of a non-linear problem.
How do we know that a problem is non-linear? Well, we do not. The only way to know that there is more to be seen than what is possible by splitting the entire world where the problem lives into its first principles, is to perform the splitting and attempting to solve the problem. If the problem cannot be solved by splitting it into first (uncorrelated) principles then it is a non-linear problem. With experience one learns to identify non-linear problems. Notably, the world has many more non-linear problems than linear ones.
Linearity of problems, even when just an approximation, allows for several nice properties. Linear Algebra and Univariate statistics describe linear problems well, and have several closed form solutions (solutions than can be evaluated straight away). Hence it is worth to first attempt a linear solution to a problem before assuming that it is non-linear.
That being said, assuming that everything in the world around us can be explained by splitting it into first principles - and that linear techniques work on every problem - is akin of hitting a square peg into a round hole. In the case above one would just assume that every letter B is just white noise and never find out what B may actually be.
### A Note on Statistics¶
Univariate Statistics, where each random variable (or each feature when thinking about date) is described by a distribution with a singe peak, are not the only form of statistics. There are statistics which account for the possibility of non-linear patterns in the data. Univariate statistics are just more common, since they include the assumption of a Gaussian distribution of the data. And the Central Limit Theorem we mentioned earlier is also a form of univariate statistics since it is a sum of several univariate distributions (distributions with a single peak). Wilcoxon statistics and Tsallis statistics are examples of statistics that account for non-linearities.
Whether the commonalty of univariate statistics is due to the fact that linear problems are easier is up to debate. One can argue that the only reason why linear problems are easier is because we have more tools to deal with them. If mathematics has had developed in a different way than it did, perhaps today we would argue that non-linear problems are easy and non-linear problems are hard. That said, we currently have many more tools to deal with linear problems, hence we often argue that for practical purposes linear problems are easy to solve and non-linear ones are hard. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.6698766350746155, "perplexity": 541.7878842884085}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-40/segments/1664030335034.61/warc/CC-MAIN-20220927131111-20220927161111-00006.warc.gz"} |
https://tex.stackexchange.com/questions/416155/etoolbox-for-loop-over-range | # etoolbox for loop over range
Is there a way to run a command on a range of consecutive integers (say, 11, 12, 13, 14, 15), specifying only the first and last numbers (11 and 15)? Basically I'm looking for the general LaTeX equivalent of tikz's \foreach \x in {11,…,15}.
In the MWE below (using etoolbox), \forcsvlist\mycommand{11,12,13,14,15} correctly runs \mycommand on each of the four inputs, and \myrange{11}{15} indeed expands to 11,12,13,14,15. But putting them together \forcsvlist\mycommand{\myrange{11}{15}} doesn't work. I think it comes down to order of expansion, which is way over my head.
\documentclass{article}
\usepackage{amsmath, etoolbox}
\newcommand\mycommand[1]{\boxed{#1} }
\newcounter{mycounter}
\newcommand\myrange[2]{
\defcounter{mycounter}{#1}
\themycounter%
\whileboolexpr
{test {\ifnumless{\themycounter}{#2}}}
{\stepcounter{mycounter},\themycounter}
}
\begin{document}
\forcsvlist\mycommand{11,12,13,14,15}
does not equal
\forcsvlist\mycommand{\myrange{11}{15}}
\end{document}
I've looked at Loop Multi-Contingency using etoolbox, Print all elements of a working array created with etoolbox package, and Remove extra curly braces, but couldn't figure out how to apply them to this situation.
• You are defining and setting counters in your \myrangemacro -- this can't be expandable. There might be more issues, but I can't check right now – user31729 Feb 19 '18 at 20:45
• Similar (?) tex.stackexchange.com/a/360959/31729 – user31729 Feb 19 '18 at 20:59
It is just as easy to loop without any specific package code in this case.
\documentclass{article}
\usepackage{amsmath}
\newcommand\mycommand[1]{\boxed{#1} }
\makeatletter
\newcommand\zz[3]{%
#1{#2}%
\ifnum#2=\numexpr#3\relax\expandafter\@gobblefour\fi
\zz#1{\the\numexpr#2+1\relax}{#3}%
}
\makeatother
\begin{document}
\zz\mycommand{11}{15}
\end{document}
• you get nested \numexpr which numexperts usually remove by suitable \expandafter ;-) (this may also surprise macro \mycommand if the latter parses in some way its argument and chokes on ten nested \numexpr's) – user4686 Feb 20 '18 at 13:41
• @jfbu I wondered about adding more expandafter but thought it would obscure the main point, it's not actually wrong is it? – David Carlisle Feb 20 '18 at 13:48
• nothing wrong ;-) – user4686 Feb 20 '18 at 15:02
\documentclass{article}
\usepackage{xinttools}
\newcommand\mycommand[1]{\fbox{#1} }
\newcommand\forrange[4][1]%
{\xintFor*##1in{\xintSeq[#1]{#2}{#3}}\do{#4{##1}}}
\begin{document}
\forrange{11}{15}{\mycommand}
\forrange[4]{11}{27}{\mycommand}
\forrange[-1]{15}{11}{\mycommand}
\end{document}
Now I picked over that abstraction from another authoritative answer. For everyday use you can also use
\xintFor #1 in {99, 37, -53, 'zouzou'}\do{ whatever }
and replace #1 by ##1 if inside a macro definition.
Optionally providing also the step; the \int_step_function:nnnN macro takes as argument the starting point, the step, the final point and finally the one parameter macro to which the current value is passed as argument.
\documentclass{article}
\usepackage{xparse}
\newcommand\mycommand[1]{\fbox{#1} }
\ExplSyntaxOn
\NewDocumentCommand{\forrange}{mO{1}mm}
{
\int_step_function:nnnN { #1 } { #2 } { #3 } #4
}
\ExplSyntaxOff
\begin{document}
\forrange{11}{15}{\mycommand}
\forrange{11}[4]{27}{\mycommand}
\forrange{15}[-1]{11}{\mycommand}
\end{document} | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.6686215996742249, "perplexity": 3080.0166864263774}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-04/segments/1610703496947.2/warc/CC-MAIN-20210115194851-20210115224851-00311.warc.gz"} |
https://www.eevblog.com/forum/programming/macro-functions-in-headers/?nowap;PHPSESSID=rept6bug4nn3eq0t6jtk0d9h36 | 0 Members and 1 Guest are viewing this topic.
#### dunkemhigh
• Super Contributor
• Posts: 4218
« on: December 02, 2021, 12:44:00 am »
Title doesn't really cover it properly, so here is what it is:
I have a C module which has a lot of functions which all basically do the same thing apart from using different variables. They are get/set functions for the config, reading and writing NVS. So the string functions might look like this (it is ESP-IDF):
Code: [Select]
void confSetURL(char *url){ nvs_set_string(hconfig, NVS_KEY, url); nvs_commit(hconfig);}
OK, so I am writing a macro that saves me typing that all out:
Code: [Select]
#define confSetStr(NAME, KEY) \void confSet##NAME(char *str) \{ \ nvs_set_str(hconfig, KEY, str); \ nvs_commit(hconfig); \}
and I can then do lots of line like:
Code: [Select]
confSetStr(URL, CFG_KEY_URL);
and call it:
Quote
Except, I have to manually add the real function prototype to the .h in order to achieve that, and I am now looking at not just typos but a non-correlation between header prototype and macro instantiation.
Any way around this?
(I have no doubt someone will say that this - the many nearly identical functions - is not the way to do this, but it's the getting callable prototypes into the header that I'm really interested in here.)
• Super Contributor
• Posts: 3021
• Country:
##### Re: Macro functions in headers
« Reply #1 on: December 02, 2021, 12:54:06 am »
#### SiliconWizard
• Super Contributor
• Posts: 9180
• Country:
##### Re: Macro functions in headers
« Reply #2 on: December 02, 2021, 01:12:42 am »
Several ways to deal with it. Two of them:
- Either define an additional macro to generate the prototypes. Would just be:
Code: [Select]
#define confSetStr_Proto(NAME) void confSet##NAME(char *str)And then in the header file, you'd have to declare the prototypes like so:
Code: [Select]
confSetStr_Proto(URL);
- Or you could define the functions themselves inside the header file. You just need to qualify them static. The added benefit is that they'll get inlined everywhere they'll be called when optimizations are enabled. The drawback is that: possibly excess code size if the functions in question are large, but in the case of very small functions like getters and setters, that's IMHO a good approach:
Code: [Select]
#define confSetStr(NAME, KEY) \static void confSet##NAME(char *str) \{ \ nvs_set_str(hconfig, KEY, str); \ nvs_commit(hconfig); \}And then in the header file, you'd have to define the functions like so:
Code: [Select]
confSetStr(URL, CFG_KEY_URL)(Note that you can't add a final semicolon as you did in your example for defining functions with a body. The semicolon right after the final brace of the function's body will normally give a syntax error.)
#### brucehoult
• Super Contributor
• Posts: 2831
• Country:
• Formerly SiFive, Samsung R&D
##### Re: Macro functions in headers
« Reply #3 on: December 02, 2021, 01:12:55 am »
Put all the calls to confSetStr() in a .inc file (name doesn't matter, it's just a convention) and then #include it into both the header and the C file, with different definitions of the macro in each (and #undef it after)
As I do here:
https://github.com/brucehoult/trv
The following users thanked this post: newbrain
#### dunkemhigh
• Super Contributor
• Posts: 4218
##### Re: Macro functions in headers
« Reply #4 on: December 02, 2021, 08:21:50 am »
#### dunkemhigh
• Super Contributor
• Posts: 4218
##### Re: Macro functions in headers
« Reply #5 on: December 02, 2021, 08:31:50 am »
- Either define an additional macro to generate the prototypes. Would just be:
Code: [Select]
#define confSetStr_Proto(NAME) void confSet##NAME(char *str)And then in the header file, you'd have to declare the prototypes like so:
Code: [Select]
confSetStr_Proto(URL);
That has possibilities, yes. Hmmm.
Quote
- Or you could define the functions themselves inside the header file.
I am reluctant to do that because of potential coupling. The calling code would need to know of, and be calling, nvs_set_str(), and know of hconfig, etc.
Quote
The drawback is that: possibly excess code size if the functions in question are large
The getter is bigger, albeit not by a lot. But I don't think doing this (putting it in the header) would change things since this is all really just saving typing and source size - there would still be the duplicated functions with just differerent names and key variables.
#### Nominal Animal
• Super Contributor
• Posts: 3617
• Country:
##### Re: Macro functions in headers
« Reply #6 on: December 02, 2021, 08:32:16 am »
Do you really need to define a set of functions to perform the functionality? Why not use
Code: [Select]
#define confSet(key, value) do { nvs_set_str(hconfig, NVS_##key, value); nvs_commit(hconfig); } while (0)instead, in only the header file? This way, there is only one "function" to call. Each confSet() is preprocessed into a pair of calls: one to nvs_set_str(), and the other to nvs_commit(). See how the NVS_ prefix is automagically added to the key? This limits the key namespace to constants and macros that begin with NVS_.
I'm pretty sure confSet(URL, value); is just as easy to use as confSetURL(value); is.
Personally, I'd do the following instead:
Code: [Select]
#define confAdd(key, value) nvs_set_str(hconfig, NVS_##key, value)#define confCommit() nvs_commit(hconfig)so that in your code, you have one or more confAdd() lines, followed by a confCommit(). For example,
Code: [Select]
confAdd(URL, CFG_KEY_URL); confAdd(FOO, CFG_KEY_FOO); confAdd(BAR, CFG_KEY_BAR); confCommit();instead. You then put say confAdd(URL, whatever); confAdd(FOO, foovalue); confAdd(BAR, barvalue); confCommit(); in the code.
#### dunkemhigh
• Super Contributor
• Posts: 4218
##### Re: Macro functions in headers
« Reply #7 on: December 02, 2021, 08:38:34 am »
Put all the calls to confSetStr() in a .inc file (name doesn't matter, it's just a convention) and then #include it into both the header and the C file, with different definitions of the macro in each (and #undef it after)
As I do here:
https://github.com/brucehoult/trv
That certainly has potential, thanks
#### Nominal Animal
• Super Contributor
• Posts: 3617
• Country:
##### Re: Macro functions in headers
« Reply #8 on: December 02, 2021, 08:39:52 am »
The calling code would need to know of, and be calling, nvs_set_str(), and know of hconfig, etc.
To hide those, expose the common call in the header file,
Code: [Select]
void confSet(int key, const char *val);You do need to expose the NVS_ constants somehow – but they don't need to have the same names, just the corresponding integer values. So, in addition to the above, the header file does need
Code: [Select]
#define CONFSET_URL the_same_value_as_NVS_URL_hasand so on.
This way the "user" code can do confSet(CONFSET_URL, the_url); .
Then, in the internal implementation that does have access to hconfig etc, define
Code: [Select]
void confSet(int key, const char *val){ nvs_set_str(hconfig, key, str); nvs_commit(hconfig);}This one must have global linkage (not be static), so that it can be called from the "user" code.
#### dunkemhigh
• Super Contributor
• Posts: 4218
##### Re: Macro functions in headers
« Reply #9 on: December 02, 2021, 08:43:59 am »
Quote
Do you really need to define a set of functions to perform the functionality?
No, however it can be done opaquely is OK. But there are things internal to the config module that shouldn't be visible outside (hconfig, for instance, and the commit).
Edit: sorry, you overtook me as I was typing
Quote
You do need to expose the NVS_ constants somehow – but they don't need to have the same names, just the corresponding integer values.
Yes. Hmmm. Well this is another aspect which I haven't actually decided on yet, whether discrete functions for the data is sensible or should there be a single function and an ID key. On a small scale the discrete functions are nice because the prototype can be commented, whereas using an ID it is a bit trickier because it covers many different issues. However, if there were, say, 50 of the things it's wasting code space.
« Last Edit: December 02, 2021, 08:50:39 am by dunkemhigh »
• Super Contributor
• Posts: 3021
• Country:
##### Re: Macro functions in headers
« Reply #10 on: December 02, 2021, 10:18:48 am »
maybe something like the last answer here?
I couldn't see how that was relevant, sorry.
put the functions in the header file so you don't need the prototypes and use __attribute__((weak)) so you only get one copy of each function
#### dunkemhigh
• Super Contributor
• Posts: 4218
##### Re: Macro functions in headers
« Reply #11 on: December 02, 2021, 10:48:08 am »
Ah, OK. As you've no doubt seen since, I was reluctant to put the function body in the header. Bu thanks for the clarification
#### SiliconWizard
• Super Contributor
• Posts: 9180
• Country:
##### Re: Macro functions in headers
« Reply #12 on: December 02, 2021, 07:05:27 pm »
Quote
- Or you could define the functions themselves inside the header file.
I am reluctant to do that because of potential coupling. The calling code would need to know of, and be calling, nvs_set_str(), and know of hconfig, etc.
Unless your concern here is to "hide" this particular information from the caller, it's just a matter of including the required corresponding prototypes and external definitions, in another header file, inside this one header file.
#### dunkemhigh
• Super Contributor
• Posts: 4218
##### Re: Macro functions in headers
« Reply #13 on: December 02, 2021, 10:06:57 pm »
Sure, but it's like leaving live wires hanging from the roof - of course you're not going to grab them so they're not a problem. But we wouldn't be seen dead (sorry!) doing it.
#### Nominal Animal
• Super Contributor
• Posts: 3617
• Country:
##### Re: Macro functions in headers
« Reply #14 on: December 02, 2021, 11:22:36 pm »
If you go by the numeric key route, here is one "trick" that might be useful.
Instead of declaring the keys only as preprocessor macros, you declare them as enums instead:
Code: [Select]
enum { CONF_URL = 1, /*!< Main configuration URL string */#define CONF_URL CONF_URL CONF_FOO, /* !< Some feature named FOO */#define CONF_FOO CONF_FOO};In C, these (CONF_URL and CONF_FOO) are ints. In C++, you can use enum typename: integer-type { ... }; instead, so that you get a new type named typename that is of integer-type, say uint8_t for example.
Instead of maintaining these in that form, you can make a file in your preferred format with three fields per record: name-suffix, integer-value (or a marker for auto-numbering, like CONF_FOO is above), and comment-description, and then use a script to generate a pair of lines for each. If the header file then contains
Code: [Select]
enum {#include "generated-enums.inc"};with the script output saved to generated-enums.inc, you can include the generation in your Makefile-based build facilities very easily. (Just make generated-enums.inc a prerequisite of the target header file, with the rule running the generator script when necessary. If you ever add proper dependency tracking (make dep) so that all affected files get recompiled when any source file gets modified, Everything Just Works, this way.)
If you want, I can easily construct a small example, but do remember I use Linux. (So state your preferred language for the generator: bash, sh, awk, sed, perl, python. Since the generator is run on the host, it makes sense to use a scripting language instead of C, because when cross-compiling to a different architecture, you may not even have a C toolchain that can generate code to run on the host itself.)
#### Ian.M
• Super Contributor
• Posts: 11295
##### Re: Macro functions in headers
« Reply #15 on: December 02, 2021, 11:58:13 pm »
It should be possible to avoid the need for OS specific generator scripts by using X-macros: https://en.wikibooks.org/wiki/C_Programming/Preprocessor_directives_and_macros#X-Macros
#### dunkemhigh
• Super Contributor
• Posts: 4218
##### Re: Macro functions in headers
« Reply #16 on: December 03, 2021, 12:11:30 am »
Quote
Instead of declaring the keys only as preprocessor macros, you declare them as enums instead:
I always do key-type stuff as typedef enums.
Er, except for these because they're actually strings
#### dunkemhigh
• Super Contributor
• Posts: 4218
##### Re: Macro functions in headers
« Reply #17 on: December 03, 2021, 12:13:14 am »
Quote
It should be possible to avoid the need for OS specific generator scripts by using X-macros
Thanks. Looks like the thing that Bruce described - not heard the term xmacro before, but it's descriptive.
#### Nominal Animal
• Super Contributor
• Posts: 3617
• Country:
##### Re: Macro functions in headers
« Reply #18 on: December 03, 2021, 01:00:00 am »
Quote
Instead of declaring the keys only as preprocessor macros, you declare them as enums instead:
I always do key-type stuff as typedef enums.
Er, except for these because they're actually strings
That's one use where I do use the above-kind of header-file generation: collecting a set of strings into a hash table (usually using DJB2-xor variant, so very, very fast) of minimal size; one that is mapped and verified at build time.
That way you could only expose int confSet(const char *key, const char *val); but still very efficiently parse the keys. On an ESP32, the run time difference between an integer key and a string key would then be absolutely neglible, and the only downside be the additional ROM/Flash use (for the key strings and associated little bit of data).
I like to do this for (embedded) configuration parsing. Then, the hash table strings are configuration keys, and the values are pointers to the data, and the value-parsing function and its parameters in an union, so that although each configuration value is parsed using a single function, there only needs to be one per parameter type, instead of one per parameter.
The nice thing is that everything is trivially verified to be okay at build time, and the interface is always easy to extend: there is no risk of accidentally changing the keys (as there is when enumerating them), because the old keys always stay as they are. Only the firmware hash table varies, but since it is only needed to accelerate the finding of the matching key, it's perfectly okay.
#### SiliconWizard
• Super Contributor
• Posts: 9180
• Country:
##### Re: Macro functions in headers
« Reply #19 on: December 03, 2021, 01:42:15 am »
I would also do this with a single function. And yes the difference would be absolutely negligible. Unless you were going to call those functions extensively in time-constrained parts of the code, which I doubt here.
#### SiliconWizard
• Super Contributor
• Posts: 9180
• Country:
##### Re: Macro functions in headers
« Reply #20 on: December 03, 2021, 01:48:17 am »
Sure, but it's like leaving live wires hanging from the roof - of course you're not going to grab them so they're not a problem. But we wouldn't be seen dead (sorry!) doing it.
Frankly, unless you're writing an API for others to use, or are expecting this piece of code to be maintained by many developers over the next decades, it won't make a difference.
Just because it would be exposing those helper functions to the caller doesn't mean you have to use them. Nothing is hanging. As much as I like hiding and encapsulating, you're probably overthinking it here.
That said, all in all I prefer Nominal Animal's approach for your need here. My proposal is more adapted to functions that do not have external dependencies, and that are possibly called very frequently - and most of all, that potentially all have a different argument list. In your case, it's always the same and only the name of the function differs, which makes Nominal's approach easier and a lot more consistent.
#### brucehoult
• Super Contributor
• Posts: 2831
• Country:
• Formerly SiFive, Samsung R&D
##### Re: Macro functions in headers
« Reply #21 on: December 03, 2021, 02:00:09 am »
Quote
It should be possible to avoid the need for OS specific generator scripts by using X-macros
Thanks. Looks like the thing that Bruce described - not heard the term xmacro before, but it's descriptive.
Ha! Exactly the same, yes.
I didn't know it had a name. Or that someone had done it before (but it's unsurprising).
Preprocessor ab-uuuuuuse
I'm pretty certain the ugly hacky preprocessor is 90% of the reason C beat the Wirthian languages outside of the Unix environment.
80% of early C++ was getting rid of preprocessor hacks, one by one.
#### SiliconWizard
• Super Contributor
• Posts: 9180
• Country:
##### Re: Macro functions in headers
« Reply #22 on: December 03, 2021, 02:48:04 am »
80% of early C++ was getting rid of preprocessor hacks, one by one.
And then replacing it with even uglier stuff.
Of course that's a bit tongue-in-cheek, but point is, many languages with a C root that have tried getting rid of the preprocessor have come up with a bunch of stuff that, when it eventually gets to the point of being as flexible as the original preprocessor, becomes horribly convoluted.
« Last Edit: December 03, 2021, 02:50:05 am by SiliconWizard »
#### dunkemhigh
• Super Contributor
• Posts: 4218
##### Re: Macro functions in headers
« Reply #23 on: December 03, 2021, 12:40:50 pm »
Quote
I like to do this for (embedded) configuration parsing. Then, the hash table strings are configuration keys, and the values are pointers to the data, and the value-parsing function and its parameters in an union, so that although each configuration value is parsed using a single function, there only needs to be one per parameter type, instead of one per parameter.
I might be drifting towards this kind of thing. But probably I think I will more likely try each approach and see how they turn out.
#### dunkemhigh
• Super Contributor
• Posts: 4218
##### Re: Macro functions in headers
« Reply #24 on: December 03, 2021, 12:44:32 pm »
Quote
Unless you were going to call those functions extensively in time-constrained parts of the code, which I doubt here
If there is any constraint it would be towards code size. They would typically be called at init, and if a time-sensitive section needed repetitive access it would cache a copy.
Smf | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.3369591534137726, "perplexity": 6411.4973437875315}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-21/segments/1652663039492.94/warc/CC-MAIN-20220529041832-20220529071832-00595.warc.gz"} |
https://chemistry.stackexchange.com/questions/43122/desorption-instead-of-adsorption-from-solution-using-activated-charcoal | I was just trying to see the effect of concentration on adsorption in solutions, i.e. I was trying to verify the Freundlich isotherm. I used oxalic acid and a batch of homemade activated charcoal (using this site).
First I prepared solutions of different concentrations. Then I added the activated charcoal, stirred it for 5 minutes and filtered the solution. When I titrated the filtrate using KMnO4, after calculating the concentration, I found that the concentration of the solution had been increased!
I tried the same process with different concentrations of oxalic acid solution and the result was the same. Can anyone tell me where did I go wrong?
Note: I used the same batch of activated charcoal in all the experiments. (Even then, how did the concentration of the solution increase? Shouldn't it be the same or lower than the initial concentration?)
For titrating oxalic acid, I heated the solution to about 60 degrees C.( After filtering the solution) | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8846035003662109, "perplexity": 912.4221599234276}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-26/segments/1560628000545.97/warc/CC-MAIN-20190626194744-20190626220744-00264.warc.gz"} |
https://cseducators.stackexchange.com/questions/7205/how-to-respond-to-the-two-handed-approach-to-swapping/7218 | # How to respond to the two-handed approach to swapping
I was introducing lists to someone young (in Scratch). Creating a list is boring, so I opted to introduce something that you can do with lists, but requires some thinking: swapping. I introduced it by putting out four pencils in a row, like this. I asked them to swap the second and fourth items in the array (in reality).
| | | |
They took both their hands, picked up the second and fourth pencils (each in one hand), and swapped them! That works in reality... but isn't right in computer science. So, I told them, try doing it with only one hand. Predictably, they couldn't. I introduced a temporary spot, where they could put one pencil. I was hoping they would do something like this:
Second Item -> Temp spot
Fourth Item -> Second spot
Temp spot -> Fourth spot
They figured it out. But they asked me something like this: "Why can't I use two hands?". I wasn't sure how to answer that. The obvious answer is... the computer only has one hand (this was Scratch, so multithreading didn't exist). But... I'm hesitant to say that for two reasons: (1) in Python, the "two-hands" approach works (a, b = b, a, see this Stack Overflow question) and (2) multithreading exists, and there are some (obscure) ways to swap two variables without a temporary variable. So, how should I answer the question "why can't I use two hands"?
Remember, they are just learning lists, so explaining something like multithreading would be too difficult.
What's a good way to answer that question, without confusing them?
• Comments are not for extended discussion; this conversation has been moved to chat.
– Ben I.
Jan 7 at 22:58
Don't overcomplicate things. Your first instinct, that the computer only has one hand, was the correct one.
This is a regular problem that new teachers have, and it sometimes takes a few years of frustration to burn out the idea that everything you say must be formally true. If we say something that is untrue, the reasoning goes, the students will remember it and use that wrong idea to badly misunderstand things later.
Let me give you a slightly different mental model of learning, and you'll find all of the support you need in the absolutely fantastic book "How People Learn II", which is a big volume that describes everything we really know from research about how learning actually works in the brain.
We (1) build mental models by (2) connecting new information (3) to things that we already know. Furthermore, (4) abstraction is the brain-process of finding the similarity in (5) similar mental models. (6) In order to build upon prior knowledge, (7) it must already be fairly well understood. If it's not, and you simply don't have the prerequisite knowledge, you are unlikely to build any mental model at all.
(That should make some sense; if it's not already fairly concrete within your mind, it's too nebulous to glom new ideas onto.)
So, with that as a model of learning, there are a few implications:
1. We need to help students build small, clear mental models. They can then use these in the future to build further, richer models. This lends itself very nicely to the KISS principle. Don't try to introduce too many variations to the idea at once. Leave the complicating for the next step, or you won't obtain any model at all.
2. Before there is already a fairly clear mental model, learning isn't really taking place, so little of what is said will be directly remembered. Corollary to this is that the danger of them being confused by some overly literal interpretation of what you said while explaining how to swap in Scratch once they encounter threading later down the line is completely negligible. They won't remember much of the explanation until they can build a mental model, so they won't remember those kinds of details. In addition, there are simply too many cognitive models that have to be built between swap in Scratch and multithreading for one to hamper the other.
Don't let perfect be the enemy of progress. Keep it simple and focused on the small concept they are learning right now, and be comfortable that that will support them best as they grow and develop and complexify ideas later.
• Let me add that to justify using the simple (sequential, explicit temp) model, ask the students to think about all the ways the two handed model could go wrong. Especially how the simple model doesn't have those defects. Jan 4 at 20:29
• It would also be fine to add the caveat that "right now in our example, the computer only has one hand." This would be less technically incorrect without distracting the student too much, I think. Jan 6 at 20:42
• @2rs2ts Sure! But realize that you do that basically for your own benefit. It won't help the student, and might, by admitting that more complex layers exist, hinder them in their current struggle. But I don't want to sound too negative; I play those sorts of word games every day, and could scarcely stop it if I tried. After all, it bothers me to say it wrong. I just have to be cautious about how much additional complexity I allow into a model that the student already isn't getting (ie they're already at the edge of their cognitive limits). In those moments, when in doubt, leave it out.
– Ben I.
Jan 6 at 22:32
• One name for the "small, clear mental model" you mentioned is Notional Machine, as someone else commented. This idea is why I often say that we have to teach people how computers actually work. I say: computers can only do 5 things - fetch, store, arithmetic, compare and jump. With that in mind, students are more likely to understand programming than if we start with something other than a Notional Machine. Jan 7 at 2:04
### Re-evaluate what you think is "right", because you aren't
but isn't right in computer science
This is simply incorrect. Your student can create two variables called LeftHand and RightHand. Copy value "red" from position 1 to LeftHand, copy value "green" from position 4 to RightHand, copy values back to positions 4 and 1 respectively. Job done.
Is this optimal? No - but you didn't ask for optimal, you asked for a solution which works. Your student gave you a working solution, and you've rejected it because of your own preconceptions of how many variables they "should" use, or how many steps it "should" take. Neither of those preconceptions are correct. There's no time or RAM pressures here, so the student is perfectly free to do it their way. (Edit following your comments elsewhere: Nor do they have to consider concurrency where someone else could move the pencils in between.)
And not only are they free to do it this way - if they find it easier to understand then they should. My background is in safety-related software. Coding standards in safety-related software prioritise readability, maintainability and ease of understanding by other coders, ahead of pure speed, because the most intractable bugs almost always come from people trying to be too clever. If you keep the concepts simple, you don't make mistakes and your code is more likely to work first time.
In short, you are committing a cardinal mistake in software engineering, which is premature optimisation (which as every software engineer should know is the root of all evil). Your student is not making that mistake, and that currently makes them a better software engineer than you!
Certainly after they've got a two-handed solution, you can have them do a one-handed version with a single slot. You can then show them that it takes fewer steps and one less variable. The answer to "why can't we...?" is simply "you can if you want, but look, it's more work". Most people would rather do less work, so it's a win all round.
• Comments are not for extended discussion; this conversation has been moved to chat.
– Ben I.
Jan 7 at 22:58
• I've added an answer that shows your LeftHand, RightHand version as actually better — for one extant architecture — than the OP's : cseducators.stackexchange.com/a/7223/8837
– Rusi
Jan 9 at 5:55
• The gcc compiler happily turns the "standard one temp variable" in C into a 2 registers "both hands" versions. Probably because it is more efficient (read-write, cache...) Jan 13 at 21:27
• @Michelbillaud That's really worth an answer! Hard data that the less efficient notionally is the more efficient actually. Just (1) input program (2) output cut down to relevant parts (3) gcc flags if any (4) gcc version just in case
– Rusi
Jan 18 at 4:09
• Well compiling this with gcc -03 -S void swap(int *a, int *b) { int c = *a; *a = *b; *b = c; } produces this assembler code movl (%rdi), %eax ; movl (%rsi), %edx ; movl %edx, (%rdi) ; movl %eax, (%rsi) ; ret Jan 21 at 9:30
Your problem is that you tried to let your student "program" without establishing a language. Thus they were free to write their own "language" in which you can do two things at once because you have two hands. If you'd asked them to rotate 3 objects, they would have picked up the third pencil in their mouth or so.
You could have asked them "suppose you're a crane driver" then, because they obviously have only one crane, they would have solved the problem "correctly".
May this also be a lesson to you to think very hard about everything you ask your students. Don't improvise. Or just learn for next time.
• I do like your crane idea, and in hindsight, I should have done that... however, how do you come up with these ideas for alternate ways to phrase problems to get students to think about it in a certain way or come to a specific answer? Jan 4 at 23:27
• I actually ran into a very similar problem, but it was about communcating processes. After a student uses the two-handed solution, I now tell them, "you have only one communication channel, so put your left hand in your pocket, and use your right hand". So I had to learn the hard way, like you. Jan 5 at 1:41
• @cocomac -- apart from the obvious canned answer of "practice will do it" that, although true, doesn't help you up front :-), mostly just by going the opposite direction. To think about it first, like "I don't want them to use both hands, so I need to come up with some setup that makes it one hand only, so I need an interface between two-handed people and one-handed manipulator, let me see". Jan 5 at 11:23
• @computercarguy And I'm sure there are people who can juggle with one hand, so they could still do the swap without a temporary variable. Analogies are always imprecise. Jan 5 at 20:05
• @VictorEijkhout, juggling usually means you can handle more than one object with one hand. I've juggled for over 35 years and can do 3 balls in one hand, for example. So yes, the analogy is imprecise, but that doesn't mean it can't still work. I said there was an issue, not a problem. I should have been more precise that it wasn't a critical reason not to use the analogy. This issue with the analogy can easily be avoided by specifying the language, as you say, by not allowing double-picking. We just need to know how to specify the language to avoid these issues, that's all. Jan 5 at 20:23
This question reminds me of when a student failed to understand why a third variable was needed to exchange the value of two variables (i.e. to swap A and B, C=A, A=B, B=C). I managed to illustrate this to them by placing an item (mobile phone) in each of their hands, and asking them to swap the items between the hands. On attempting to do this, they immediately realised they needed a third location (the table) to achieve this.
You may find your list-swapping activity works better if you place the pencils in students' hands. This will help reinforce the idea that each pencil needs a location (hand) to be stored in at all times. You'll obviously need more than one student to make a list that's larger than two pencils, and pandemic-related distancing may be an obstacle.
I'd suggest trying this activity with two or three students sat in a row, and using an odd number of pencils. This will ensure that there is only one hand available for moving pencils about at any time, without appearing to be an arbitrary rule that you've introduced.
• Neat! Hand not the mover (verb) but the place (noun) 👍
– Rusi
Jan 7 at 17:43
They took both their hands, picked up the second and fourth pencils (each in one hand), and swapped them! That works in reality... but isn't right in computer science.
It depends on your paradigm. You are teaching the swap algorithm you know, but haven't explained to the students (or at least in the question) what things are. Here is a perfectly valid way to look at the operation, using two temp variables, 'Left Hand' and 'Right Hand':
Second Item -> Left Hand
Fourth Item -> Right Hand
Left Hand -> Fourth spot
Right Hand -> Second spot
In fact many students will do it this way (with two temp variables) when they attempt to do swapping for the first time, I'm pretty sure I did. Some languages have swap operations built-in so you don't require a temporary variable.
In this particular case I think it would make more sense to say that you can only move one pencil at a time rather than you have only one hand. After all I could pick up the pencil in spot two and place it in slot four while picking up the pencil there at the same time with one hand.
The analogy breaks down in other ways, for instance normally you make a copy of the item in the temp variable and it exists in two places until you overwrite it in the array. I think using things like colored blocks here and making copies into variables would be a better way to visualize what is actually happening too...
In thinking about this, and especially the answer of Graham, I think that what we really do in the standard three step process is a two handed swap without thinking of it. So, it is a failure of the metaphor, actually. So, here is a reframing of the standard process:
Pick up one stick with the left hand (i.e. temp is associated with the left hand). THEN, move the other stick with the right hand (the assignment). THEN put the stick in the left hand into the proper slot.
Or:
Second Item -> Left Hand Fourth Item -> Second spot // using Right Hand Left Hand -> Fourth spot
All you need to explain is that (with a single processor) only one thing can be done at a time and so the swap-with-two-hands has to be sequenced in some way rather than happening simultaneously.
This is to avoid issues in the more general case where you want to swap(m,n) where m and n could be the same. Both hands can't pick up the same stick simultaneously if it has to be sequenced. The bright kids will want to complain that you can't pick up a stick from an empty slot, but the small variation isn't too hard to explain if you think of it beforehand. The really astute ones will notice that assignment is copying, so "picking up one stick" in the program doesn't really leave that slot empty, as it does with physical objects.
(ASIDE: there is a way to avoid that physical/virtual disconnect by using a reference (rather than copy) metaphor of variables, but it is likely not where you want to go with youngsters unless you do it ubiquitously. In essence, a variable is a reference to a value not a box that "holds" the value.)
It also avoids discussions of race conditions with multiple processors.
• Why does "single processor" keep getting brought up? How would you sequence operations by 2 cores to get a swap done correctly? The relevant thing here is a scalar CPU, as opposed to modern superscalar CPU cores that literally can execute two independent load instructions in the same clock cycle. (e.g. AMD since K8, Intel since Sandybridge: realworldtech.com/sandy-bridge/7). Intel since Ice Lake can even execute two store-data uops in the same clock cycle, although commit from store-buffer to L1d cache can only commit two stores in 1 cycle if they're to the same line. Jan 6 at 16:19
• As you say, a normal swap is 2 loads then 2 stores (assuming an optimizing compiler for an AoT compiled language for a register machine), whether we name one or both temporaries. (Or in Python, neither). For (much) more advanced students of CPU architecture, this might be a good illustration of hazards like write-after-read when finding parallelism between operations: you have to finish picking up an object (loading into regs) before a store of the other object writes that location. Jan 6 at 16:27
• @PeterCordes "Why does "single processor" keep getting brought up?" Not because using multiple processors or multiple threads would enable a different solution, but because if you are explaining to a student why they have to solve the problem with one hand then the analogy is justified by the fact that their program can "only do one thing at a time". Jan 6 at 17:10
• @kaya3: Thanks, you're right, I was thinking in terms of finding instruction-level parallelism within instructions for a sequential model of execution, not the need for there to be a sequence in the first place. I think I'd find it less weird to say the code or program is single-threaded, rather than to say there's only one processor to execute it on. As you rightly pointed out, the issue here is the execution model of the programming language, not the CPU details. Jan 6 at 18:17
• @PeterCordes Because if you ask a centipede how it knows which leg to move next, it gets in a hopeless tangle. (That's just a metaphor, of course.) Jan 7 at 2:19
I do the swap example pretending to have two largish (2-hands-to-lift) boxes side-by-side on a desk (with only enough room for two boxes). After we lift the first we have to look for a place to put it, which feels like creating the temp variable.
But I don't think swap is an especially good example with lists. It's easier to explain swapping just any two variables, x and y. Lists are about using indexes. In Scratch we don't get as much fun with loops, but can do 2 step find-the-index-first stuff like "turn the first 9 into a 6" or "put 12's before and after the first 3".
As far as "computer rules" I like a lighter touch. Swap is one of many clever tricks which happen to work, for now. Motivate the problem with how switching x and y starting with "set x to y" permanently erases x. Then explain how that 3-step dance is actually the standard swap trick. We could have had a built-in swap command but everyone was all "no, everyone knows the trick and it's just one extra step".
Esp. in Scratch you're hoping they like it and move onto a real language. At that point you're going to explain how "Scratch rules" like pre-making variables aren't computer rules at all. But we learned lots of concepts which mostly transfer over with minor changes. In the end: switching values of two variables is a thing; everyone calls it a swap; and it's good to know the trick just-in-case there's no built-in way.
• well... to be fair you do need to "pre-make" variables in most languages... Jan 5 at 20:43
• @somebody My understanding is the Scratch language has no declarations -- variables are created manually through the GUI. I assume a Scratch user learning a text-based language would be surprised at something like int x=4. But I've only seen Scratch a few times, is there a better example? Jan 5 at 23:27
• well. while that's true i'd argue that scratch variables are all global, and global variable declarations in other languages are little different from that of scratch - you still "create variables manually". to look at it another way, in scratch, not just variables but everything is created "through the GUI", no? (equivalently, scratch has no (official) textual syntax at all). but either way the point is, imo "pre-making variables" (and scratch in general) is little different from the so-called "computer rules" Jan 5 at 23:47
• tl;dr imo how variables are created in scratch are mostly a side effect of being a graphical (?) language rather than it being fundamentally different from other lanugages Jan 5 at 23:48
Analogies & metaphors are imperfect, so let's share the expectation that they are just illustrative.
Rules of what is possible (and not) are very important, and we can compare the rules of pencils moved with hands and what computers can do — but we need to define both, in part so the rules for the metaphor can be compared with the those of a computer.
These rules can be reasonably terse and simple to state.
The computer can copy a value from one storage location to another storage location. (Computers generally copy data rather than moving it.)
Your hand can simulate action of making a copy, and whether the hand itself represent another storage location that can be utilized while doing something else is a matter of definition and explanation of rules.
Since we're talking about information rather than physical items, I might prefer a metaphor of a spreadsheet: swapping two cells in a spreadsheet generally requires another free cell; a pencil and piece of paper with some boxes holding symbols might also work, you need to stipulate whether human memory is outside of the metaphor (i.e. not be used for storage).
Programming languages support constructs & expressions that require additional implicit storage, and language implementations introduced temporaries for these purposes: Python's a,b=b,a is such a construct, while any language's general purpose expressions is another: you can't really compute a*b+c*d without holding the result of one of the multiplications somewhere (on paper, in your head, in storage...), while doing the other.
• "a * b + c * d" : lovely! This insight is at the heart of functional programming : elide useless names. The more technical name for that is combinatory logic. (The proper name "Haskell" is the name of its second founder)
– Rusi
Jan 6 at 3:45
• @Rusi Are there any Functional Machines? Computers that execute your high level idea of the calculation and not some lower level translation? I would like to see such a machine. I would also like to get to work using a map instead of a car, but you can't have everything. (Where would you put it?) Brains really do seem to implement a Neural Network, but computers not so much. Some day perhaps. Jan 7 at 2:11
• @Scott: Lisp machine, Scheme88. In fact Data flow architectures were actually made for improving efficiency of von Neumann languages eg SISAL. In fact among theoretical models, lambda calculus is more realiable than Turing machines because the latter has an infinite sub part -- the tape. How the F does an engineer make an infinite object?! Nothing infinite about the lambda calculus. Evolution...... is slow
– Rusi
Jan 7 at 2:51
• @ScottRowe All that FP does is generalize "a * b + c * d" from numbers to arbitrary memory data structures. Heck even python Java C# etc -- the whole current mainstream gang -- will allow you to handle complex data structures, manage ing the memory with gc etc. Only difference is the modern crop mess up memory semantics. FPLs don't. Java, C#, JS are identical modulo syntax and minor details.
– Rusi
Jan 7 at 3:23
• Of course IF you're prepared to go outside the mainstream there are heroic exceptions. Eg Rust which strives for C-level efficiency, memory-footprint. Plus almost haskellish purity. And is even highly portable (Compare to C's autoconf!!!). IF... Are you?? (In 1987 I pioneered and initiated C in edu. It was as new and uncharted then as it's passe now. Today I would use rust for that space (if I were younger... If...))"
– Rusi
Jan 7 at 3:42
Ben's answer is great, but allow me to suggest that you don't need to "respond" to the two-handed approach at all: just say when you're explaining the problem in the first place that they can only use one hand and they can only hold one item at a time.
Students are less likely to need a justification this way, because you haven't changed the rules to forbid a solution after they've come up with it themselves. If a justification is required, the question is not "why can't I use two hands?", but rather "why is it useful to know how to do this with one hand?". And the answer to that is that the solution using one hand can be translated directly into code, whereas the solution with two hands can't be.
• Except you perfectly well can translate the solution with two hands into code. Not picking up both simultaneously, sure - at least on most systems - but one at a time works fine. Jan 5 at 13:36
• except you cannot just let it slide without explanation - it's extremely important to make sure the student is understanding it how you think they are. so you'd at the very least have to explain (and get the student to agree) that they are describing a 4 step process left = a; right = b; a = right; b = left rather than a 1 step process a, b = b, a. the problem with this is that it runs the same risk of the student asking why the process must be split into those steps. Jan 5 at 20:49
• @Graham By "the solution with two hands" I refer to the one in the OP where a student picks up both items with both hands at the same time. If you interpret hands as variables rather than as the computer's action of moving (or really, copying) a value from one variable to another, then there are other two-handed solutions, but "the" two-handed solution still doesn't work. As for "on some systems", we are talking about whatever language the students are learning, not the capabilities of all programming languages. Jan 5 at 22:51
• Maybe someday we will build computers that can do many things at once. Quantum, massively parallel, whatever. Then we will not be able to teach anyone how to program them, but we won't have to. Jan 7 at 2:29
• @ScottRowe I don't know what future you're imagining where nobody is a computer programmer, but I want no part of it - I like programming! Jan 7 at 6:03
Graham pointed out that the assumtions of the question are wrong. And Peter Cordes elaborated a bit in the comments.
Considering a target VLIW (Very Long Instruction Word) architecture can help sharpen this argument further.
The basic idea of VLIW is that a Very Long Instruction "horizontally" packs a number of instructions per single VL-instruction, all of which are executed in parallel in one machine cycle. The requirement is that the multiple instructions in a VL-instruction need to access disjoint memory/registers.
In terms of more popular architectures, VLIW is:
• Like pipelined superscalar architectures except that the compiler rather than the hardware does parallelization scheduling
• Like RISC in that the complexity is shifted to the compiler
So
x = 1
y = 2
can be packed as one VL-instruction
x = 1 // y = 2
Whereas
x = 1
y = x + 1
can't because x overlaps.
(Using the notation that multiple VL instructions are on multiple lines and "subinstructions" packed into a VL instruction are on one line "//" separated).
With that background we can write swap as
lh = x // rh = y
x = rh // y = lh
t = x
x = y
y = t
is interlocked at each stage and so is hopelessly sequential.
## tl;dr
The VLIW oriented swap is 33% faster — 2 vs 3 — than the standard imperative one. When it is naively sequentialized it's 25% slower — 4 vs 3.
## Note
The two-hand analogy is right in being more efficient than with one hand. However it's not so right in this that it seems to be able to do it in one single 2-handed swoop. Whereas (for VLIW at least) it's two 2-handed swoops. Our hands have enough muscle intelligence to criss-cross without colliding whereas data-buses dynamically hop-skipping over each other is.. uh... still futuristic sci-fi😂.
IOW analogies/metaphors may help but don't go all the way.
• Premature optimization is... Oh, you already heard that one. Could we venture to teach beginning students something without having to teach them everything? I had a great welding instructor, he could cover one topic or technique each class night. I still think of him as one of the best teachers I had, and still smile when I recall him whistling during class as he thought about going out with his wife afterwards. Jan 13 at 1:40
• 👍 @ScottRowe. In upholding the "Premature..." proverb you'll find me more extreme left (or is it right?) than anyone. The point of this post was.... O well... May the blessing of Fermat be on these comment columns...
– Rusi
Jan 13 at 2:54 | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.4709716737270355, "perplexity": 1259.7307118307344}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-33/segments/1659882571911.5/warc/CC-MAIN-20220813081639-20220813111639-00192.warc.gz"} |
https://www.cut-the-knot.org/m/Geometry/CirclesAtVertices.shtml | # Lines through Circles at Vertices of Equilateral Triangle
### Problem
Circles $(A),$ $(B),$ $(C)$ centered at the vertices of an equilateral triangle $ABC$ with side length $4$ all have radius $\sqrt{3}.$
Describe all straight lines that have common points with all three circles.
The purpose of this writeup is to establish the following result:
Circles $(A),$ $(B),$ $(C)$ centered at the vertices of an equilateral triangle $ABC$ with side length $4,$ all have radius $\sqrt{3}.$
The only straight lines that have common points with all three circles are their common tangents, of which there are three.
### Lemma
The midlines of $\Delta ABC$ are tangent to all three circles $(A),$ $(B),$ $(C).$
For a proof, draw the common tangent of circles $(B)$ and $(C)$ on the side of $(A)$ ($EF$ in the diagram.) Let $D$ be the point of tangency on $(B)$ and $E$ the intersection of that line with $AB.$ $\Delta BDE$ is right with $\angle DBE=30^{\circ}.$ Since $BD=\sqrt{3},$ it follows that $BE=2,$ implying that $E$ is the midpoint of $AB.$
Points $F$ and $G,$ and lines $EG,$ $FG$ are constructed similarly and, by symmetry, are shown to be the common tangents to all three circles.
### Solution
The proof is based on the assertion that a straight line that crosses the interior of $\Delta EG$ may at best have common points with only two of the three circles. This is because, such a line, may have common points with, say, $(A)$ only if it crosses the interior of side $EF.$ On the other hand, a straight line that pass through the interior of a triangle but not through a vertex crosses exactly two of the sides of the triangle. If a line passes through a vertex then it crosses the interior of the opposite side.
More transparently, a straight line that has no common points with $\Delta ABC$ may, at best, have common points with two of the circles. For example, consider a line that crosses $(A).$ If it is parallel to $EF$ it is certainly does not meet either of the remaining circles. Otherwise, it crosses line $EF$ just once outside the segment $EF$ in which case, too, it has common points with at most one of the remaining circles.
In conclusion, the only straight lines that have common points with all three circles are the midlines $EF$, $EG,$ and $FG.$
### Story
The following story could be found in the book 60-odd YEARS of MOSCOW MATHEMATICAL OLYMPIADS now available online.
At the 8-th Olympiad (1945). The organizers believed that the following Problem for grade 8 was relatively easy.
Vertices $A,$ $B,$ and $C$ of triangle $ABC$ are connected with points $A',$ $B',$ and $C'$ lying on the opposite sides, but not in the vertices, as below:
Prove that the midpoints of segments $AA',$ $BB',$ and $CC'$ do not lie on the same straight line.
Indeed, the midpoints $A_{1},$ $B_{1},$ and $C_{1}$ in question lie sides of the medial triangle of $\Delta ABC,$ one per side. Hence, the assertion required, since no line not passing through the vertices of a triangle can cross all the sides in their inner points.
The organizers believed the statement is obvious. However, a participant, Yulik Dobrushin from the 8-th grade (now the world-famous mathematician, Roland Lvovich Dobrushin, Dr.Sc.), reached this stage in the solution and added: "For a long time I have tried to prove that a straight line cannot cross all three sides of a triangle at their inner points but failed to do so. I am horrified to realize that I do not know what a straight line is!"
Dobrushin was crowned with the first prize for this frank recognition of his failure. The members of the organizing committee might have understood the meaning of Dobrushin's phrase better than its author himself. The point is that in modern geometry the answer to the question what is a straight line is given only by listing the line's properties among which the impossibility to cross all three sides of a triangle (or an equivalent property) is usually included.
We'll look into that next.
### Basics
II, 4. $A,$ $B,$ $C$ be three points that do not lie on a line and let $a$ be a line in the plane $ABC$ which does not meet any of the points $A,$ $B,$ $C.$ If the line $a$ passes through a point of the segment $AB,$ it also passes through a point of the segment $AC,$ or through a point of the segment $BC.$
Expressed intuitively, if a line enters the interior of a triangle, it also leaves it. The fact that both segments $AC$ and $BC$ are not intersected by the line $a$ can be proved. (see Supplement I,1.)
From Supplement I,1.
If the line $a$ met the segments $BC,$ $CA,$ $AB$ at points $D,$ $E,$ $F$ then these points wold be distinct. By Theorem 4 one of these points would lie between the other two
If, say, $D$ lay between $E$ and $F,$ then an application of Axiom II,4 to the triangle $AEF$ and the line $BC$ would show that this line would have to pass through a point on segment $AE$ or on segment $AF.$ In both cases a contradiction of Axiom II,3 or Axiom I,2 would result.
References
1. D. Hilbert, Foundations of Geometry, Open Court, 1999
### Acknowledgment
This problem has been posted by Leo Giugiuc (Romania) at the CutTheKnotMath facebook page. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.6184404492378235, "perplexity": 230.94734393877044}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-47/segments/1542039742020.26/warc/CC-MAIN-20181114125234-20181114151234-00487.warc.gz"} |
http://link.springer.com/article/10.1007%2Fs10856-009-3732-2 | Journal of Materials Science: Materials in Medicine
, Volume 20, Issue 8, pp 1611–1618
# The effect of phosphate content on the bioactivity of soda-lime-phosphosilicate glasses
• M. D. O’Donnell
• S. J. Watts
• R. G. Hill
• R. V. Law
Article
DOI: 10.1007/s10856-009-3732-2
O’Donnell, M.D., Watts, S.J., Hill, R.G. et al. J Mater Sci: Mater Med (2009) 20: 1611. doi:10.1007/s10856-009-3732-2
## Abstract
We report on the bioactivity of two series of glasses in the SiO2–Na2O–CaO–P2O5 system after immersion in simulated body fluid (SBF) after 21 days. The effect of P2O5 content was examined for compositions containing 0–9.25 mol.% phosphate. Both series of glasses degraded to basic pH, but the solutions tended towards to neutrality with increasing phosphate content; a result of the acidic phosphate buffering the effect of the alkali metal and alkaline earth ions on degradation. Bioactivity was assessed by the appearance of features in the X-ray diffraction (XRD) traces and Fourier transform infrared (FTIR) spectra consistent with crystalline hydroxyl-carbonate-apatite (HCAp): such as the appearance of the (002) Bragg reflection in XRD and splitting of the P–O stretching vibration around 550 cm−1 in the FTIR respectively. All glasses formed HCAp in SBF over the time periods studied and the time for formation of this crystalline phase occurred more rapidly in both series as the phosphate contents were increased. For P2O5 content >3 mol.% both series exhibited highly crystalline apatite by 16 h immersion in SBF. This indicates that in the compositions studied, phosphate content is more important for bioactivity than network connectivity (NC) of the silicate phase and compositions showing rapid apatite formation are presented, superior to 45S5 Bioglass® which was tested under identical conditions for comparison.
## Authors and Affiliations
• M. D. O’Donnell
• 1
• 2
• 3
• S. J. Watts
• 1
• R. G. Hill
• 1
• R. V. Law
• 2
1. 1.Department of MaterialsImperial College LondonLondonUK
2. 2.Department of ChemistryImperial College LondonLondonUK
3. 3.BioCeramic Therapeutics Ltd.LondonUK | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8685997128486633, "perplexity": 11077.57946625665}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2016-40/segments/1474738661449.76/warc/CC-MAIN-20160924173741-00158-ip-10-143-35-109.ec2.internal.warc.gz"} |
http://math.stackexchange.com/questions/586272/mathematical-definition-of-exponent | # Mathematical definition of exponent [duplicate]
What does it mean by a^b in real number system? How is it defined mathematically?
It is clear in case of exponent being an integer.
i.e., a real number a is multiplied b times where b belongs to Z
If b is a rational..say b=p/q, then a^b can be interpreted as a^(1/q) multiplied p times.
But how is it defined when b is irrational?
-
## marked as duplicate by T. Bongers, Daniel Fischer♦, apnorton, ncmathsadist, leoNov 30 '13 at 4:01
You use the density of rationals in $\Bbb R$.Find a sequence $x_n\to \sqrt 2$ and $x_n<\sqrt 2$ for every $n$. Same for a sequence $y_n\to \sqrt 2$ with $y_n>\sqrt 2$. Then ...? | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9650431275367737, "perplexity": 598.3228341441762}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-40/segments/1443737931434.67/warc/CC-MAIN-20151001221851-00013-ip-10-137-6-227.ec2.internal.warc.gz"} |
https://rd.springer.com/article/10.1007/s00170-018-2246-9 | # Method for the geometric modeling and rapid prototyping of involute bevel gears
• Ricardo García-García
• Max A. González-Palacios
ORIGINAL ARTICLE
## Abstract
The growth of additive manufacturing technology allows the fabrication of complete functional devices with complex geometries with ease and low cost. This technology allows the fabrication of pieces that could not be made in the past with traditional manufacturing techniques, in this case, bevel gears with exact spherical involute (ESI). Focusing on this issue, this paper presents a method for the geometric design and fabrication of practical industrial-like ESI bevel gears with variable surface detail. The definition of the tooth profiles on back cones is proposed introducing a projection procedure for straight and spiral toothing. An in-house-developed software package was developed to test the method, and a pair of plastic examples were fabricated on a generic 3D printer. A comparison between the fabricated pinion and its STL model was conducted for validation purposes. Mean deviations of $$0.22$$ and $$0.15~mm$$ were obtained for the whole model and for the contact surfaces comparison, respectively. Thus, the fabrication of bevel gears using AMT is achieved, and can be implemented to a specific application using a particular additive manufacturing technique.
## Keywords
Bevel gear Geometric design Exact spherical involute Additive manufacturing
## Notes
### Acknowledgements
The first author acknowledges the support of CONACYT (Consejo Nacional de Ciencia y Tecnología), México. The second, acknowledges the support of the SNI (Sistema Nacional de Investigadores), México.
## References
1. 1.
Al-Daccak MJ, Angeles J, Gonzalez-Palacios MA (1994) Modeling of bevel gears using the exact spherical involute. J Mech Des Trans ASME 116(2):364–368
2. 2.
Berger U (2015) Aspects of accuracy and precision in the additive manufacturing of plastic gears. Virtual Phys Prototyp 10(2):49–57
3. 3.
Blaszczak M (1999) Professional MFC with Visual C++ 6, 4th edn. Wrox PressGoogle Scholar
4. 4.
Di Puccio F, Gabiccini M, Guiggiani M (2005) Alternative formulation of the theory of gearing. Mech Mach Theory 40(5):613–637
5. 5.
Fuentes-Aznar A, Gonzalez-Perez I (2016) Mathematical definition and computerized modeling of spherical involute and octoidal bevel gears generated by crown gear. Mech Mach Theory 106:94– 114
6. 6.
Gao W, Zhang Y, Ramanujan D, Ramani K, Chen Y, Williams CB, Wang CC, Shin YC, Zhang S, Zavattieri PD (2015) The status, challenges, and future of additive manufacturing in engineering. Comput Aided Des 69:65–89
7. 7.
González-Palacios M (2012) Advanced engineering platform for industrial development. J Appl Res Technol 10(3):309–326Google Scholar
8. 8.
González-Palacios M A (1995) An algorithm for the synthesis of bevel gears. In: Unicopli E (ed) Ninth World Congress on the Theory of Machines and Mechanisms IFToMM. Politecnico Di Milano, Italy, pp 570–574Google Scholar
9. 9.
Litvin FL, Rahman P, Goldrich RN (1982) Mathematical models for the synthesis and optimization of spiral bevel gear tooth surfaces. Contractor Report 3553, NASAGoogle Scholar
10. 10.
Park NG, Lee HW (2011) The spherical involute bevel gear: its geometry, kinematic behavior and standardization. J Mech Sci Technol 25(4):1023–1034
11. 11.
Shreiner D, Sellers G, Kessenich J, Licea-Kane B (2013) OpenGL programming guide: the official guide to learning OpenGL, version 4.3. Addison-WesleyGoogle Scholar
12. 12.
Stock Drive Products / Sterling Instrument (2010) Elements of metric gear technology. Technical section. Catalog D805. http://sdp-si.com/D805/D805_PDFS/sections/technical.pdf
13. 13.
Traeger MF, Krieger YS, Lueth TC (2013) Automated construction of gear racks, spur gears and helical gears using matlab & stl files for rapid manufacturing. In: 2013 IEEE/ASME International Conference on Advanced Intelligent Mechatronics: mechatronics for human wellbeing, AIM 2013. IEEE, pp 1603–1608Google Scholar
14. 14.
Tsai Y, Chin P (1987) Surface geometry of straight and spiral bevel gears. J Mech Transmiss Autom Des 109(4):443–449
15. 15.
Uicker JJ, Pennock GR, Shigley JE (2017) Theory of machines and mechanisms, 5th edn. Oxford University Press, New York, pp 436–439Google Scholar
16. 16.
Wang J, Kong L, Liu B, Hu X, Yu X, Kong W (2014) The mathematical model of spiral bevel gears—a review. Strojniški vestnik-J Mech Eng 60(2):93–105
© Springer-Verlag London Ltd., part of Springer Nature 2018
## Authors and Affiliations
• Ricardo García-García
• 1
• Max A. González-Palacios
• 1
1. 1.División de Ingenierías Campus Irapuato-SalamancaUniversidad de GuanajuatoSalamancaMéxico | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.7402699589729309, "perplexity": 21937.651940298438}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-47/segments/1542039744750.80/warc/CC-MAIN-20181118221818-20181119003818-00113.warc.gz"} |
https://www.illustrativemathematics.org/content-standards/5/NBT/A/3/tasks/1803 | Update all PDFs
# Placing Thousandths on the Number Line.
Alignments to Content Standards: 5.NBT.A.3
Label all of the tick marks on the number line. Plot and label each of the following numbers on the number line.
\begin{align} &0.100\\ &0.010\\ &0.072\\ &0.038 \end{align}
Which of these numbers is greatest? Which is least? How can you tell by looking at the number line?
## IM Commentary
Though this task primarily deals with comparing decimal numbers on a number line, it also requires students to draw upon what they know about the base ten system. They must recognize that the distance from 0 to 0.1 is partitioned into ten equal pieces and that one tenth of one tenth is 0.01. Once they realize that each increment goes up by 0.01, they can fill in the framework to place other numbers. One of the key instructional points in this task is that our number line orders numbers least to greatest. Therefore, numbers farther to the right are greater than those to the left. This understanding will hold true for future explorations of rational numbers as well. A good precursor task for this one would be 5.NBT Comparing Decimals on the Number Line. Side note: It would be good to have versions of this for thousandths that are not between 0 and 1.
## Solution
0.010 is least because it is the farthest to the left on the number line and 0.100 is greatest because it is the farthest to the right on the number line. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 2, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.4297228753566742, "perplexity": 583.5986598713642}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-30/segments/1531676593004.92/warc/CC-MAIN-20180722022235-20180722042235-00469.warc.gz"} |
http://mathhelpforum.com/advanced-algebra/40576-help-intergral-domain.html | # Thread: Help on Intergral Domain
1. ## Help on Intergral Domain
Consider the integral domain $\displaystyle Z(\sqrt10)=${$\displaystyle a+b\sqrt10|a,b \in Z$}
(a) Using the fact that the norm $\displaystyle N(a+b\sqrt10)=a^2 - 10b^2$ is multaplicative, describle the units of $\displaystyle Z(\sqrt10)$.
(b) Show that all four numbers: $\displaystyle 2,3,4+\sqrt10, 4-\sqrt10$ are irreducible. Are any of these numbers prime?
(c) Deduce that Z(\sqrt10) is not unique factorization domain.
My lecturer go though this topic too fast, so I have difficulty on above question. Please help me.
2. Originally Posted by kleenex
Consider the integral domain $\displaystyle Z(\sqrt10)=${$\displaystyle a+b\sqrt10|a,b \in Z$}
(a) Using the fact that the norm $\displaystyle N(a+b\sqrt10)=a^2 - 10b^2$ is multaplicative, describle the units of $\displaystyle Z(\sqrt10)$.
Put an absolute value on it, then $\displaystyle N(a+b\sqrt{10}) = |a^2 - 10b^2|$ will satisfy $\displaystyle N(\alpha \beta) = N(\alpha)N(\beta)$.
If $\displaystyle u$ is a unit then there is $\displaystyle v$ so that $\displaystyle uv=1$ but then $\displaystyle N(uv) = N(1) = 1$ thus $\displaystyle N(u)N(v) = 1$ which means $\displaystyle N(u)=1$. Thus, the units must have norm equal to $\displaystyle 1$. Conversely, if $\displaystyle N(a+b\sqrt{10}) = 1$ then $\displaystyle \tfrac{a}{a^2 - 10b^2} - \tfrac{b}{a^2 - 10b^2} \sqrt{10}$ (which is in $\displaystyle \mathbb{Z}(\sqrt{10})$) is inverse of $\displaystyle a+b\sqrt{10}$. To find the units we need to solve $\displaystyle |a^2 - 10b^2| = 1 \implies a^2 - 10b^2 = \pm 1$. This equation is Pellian and got infinitely many solution. I assume all you need to do is find a test to determine if a number is a unit or not, that is how to do it.
(b) Show that all four numbers: $\displaystyle 2,3,4+\sqrt10, 4-\sqrt10$ are irreducible. Are any of these numbers prime?
A non-zero non-unit element $\displaystyle \alpha$ is called irreducible iff $\displaystyle \alpha = \beta \gamma$ is an improper trivial factorization, i.e. one of them, say $\displaystyle \beta$, is associate to $\displaystyle \alpha$ and the other one $\displaystyle \gamma$ is a unit. Hence it cannot be reduced further. A non-zero non-unit element $\displaystyle \alpha$ is called prime iff $\displaystyle \alpha | \beta \gamma \implies \alpha | \beta \mbox{ or }\alpha | \gamma$. A simple consequence is that prime elements are irreducible, while not necessarily irreducible elements are prime.
(c) Deduce that Z(\sqrt10) is not unique factorization domain.
In a unique factorization domain the irreducible elements are also prime. Thus, if you can find an irreducible non-prime element (which is probably from the above list) then it would mean this is not a unique factorization domain. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9644820094108582, "perplexity": 242.32809018996682}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-04/segments/1547583671342.16/warc/CC-MAIN-20190119160425-20190119182425-00064.warc.gz"} |
https://en.wikipedia.org/wiki/Negative_frequency | Negative frequency
The concept of negative and positive frequency can be as simple as a wheel rotating one way or the other way: a signed value of frequency can indicate both the rate and direction of rotation. The rate is expressed in units such as revolutions (a.k.a. cycles) per second (hertz) or radian/second (where 1 cycle corresponds to 2π radians).
Sinusoids
Let ω be a nonnegative parameter with units of radians/sec. Then the angular function (angle vs. time) ωt + θ, has slope −ω, which is called a negative frequency. But when the function is used as the argument of a cosine operator, the result is indistinguishable from cos(ωtθ). Similarly, sin(−ωt + θ) is indistinguishable from sin(ωtθ + π). Thus any sinusoids can be represented in terms of positive frequencies. The sign of the underlying phase slope is ambiguous.
A negative frequency causes the sin function (violet) to lead the cos (red) by 1/4 cycle.
The vector (cos t, sin t) rotates counter-clockwise at 1 radian/second, and completes a circle every 2π seconds. The vector (cos −t, sin −t) rotates in the other direction (not shown).
The ambiguity is resolved when the cosine and sine operators can be observed simultaneously, because cos(ωt + θ) leads sin(ωt + θ) by 1/4 cycle (= π/2 radians) when ω > 0, and lags by 1/4 cycle when ω < 0. Similarly, a vector, (cos t, sin t), rotates counter-clockwise at 1 radian/sec, and completes a circle every 2π seconds, and the vector (cos −t, sin −t) rotates in the other direction.
The sign of ω is also preserved in the complex-valued function:
${\displaystyle e^{i\omega t}=\underbrace {\cos(\omega t)} _{R(t)}+i\cdot \underbrace {\sin(\omega t)} _{I(t)},}$ [1]
(Eq.1)
since R(t) and I(t) can be separately extracted and compared. Although ${\displaystyle e^{i\omega t}}$ clearly contains more information than either of its components, a common interpretation is that it is a simpler function, because:
${\displaystyle \cos(\omega t)={\begin{matrix}{\frac {1}{2}}\end{matrix}}\left(e^{i\omega t}+e^{-i\omega t}\right),}$
(Eq.2)
which gives rise to the interpretation that cos(ωt) comprises both positive and negative frequencies. But the sum is actually a cancellation that contains less, not more, information. Any measure that indicates both frequencies includes a false positive, because ω can have only one sign.[3] The Fourier transform, for instance, merely tells us that cos(ωt) correlates equally well with both cos(ωt) + i sin(ωt) and with cos(ωt) − i sin(ωt).
Applications
Perhaps the most well-known application of negative frequency is the calculation:
${\displaystyle X(\omega )=\int _{a}^{b}x(t)\cdot e^{-i\omega t}dt,}$
which is a measure of the amount of frequency ω in the function x(t) over the interval (a, b). When evaluated as a continuous function of ω for the theoretical interval (−∞, ∞), it is known as the Fourier transform of x(t). A brief explanation is that the product of two complex sinusoids is also a complex sinusoid whose frequency is the sum of the original frequencies. So when ω is positive, ${\displaystyle e^{-i\omega t}}$ causes all the frequencies of x(t) to be reduced by amount ω. Whatever part of x(t) that was at frequency ω is changed to frequency zero, which is just a constant whose amplitude level is a measure of the strength of the original ω content. And whatever part of x(t) that was at frequency zero is changed to a sinusoid at frequency −ω. Similarly, all other frequencies are changed to non-zero values. As the interval (a, b) increases, the contribution of the constant term grows in proportion. But the contributions of the sinusoidal terms only oscillate around zero. So X(ω) improves as a relative measure of the amount of frequency ω in the function x(t).
The Fourier transform of ${\displaystyle e^{i\omega t}}$ produces a non-zero response only at frequency ω. The transform of ${\displaystyle \cos(\omega t)}$ has responses at both ω and −ω, as anticipated by Eq.2.
Sampling of positive and negative frequencies and aliasing
This figure depicts two complex sinusoids, colored gold and cyan, that fit the same sets of real and imaginary sample points. They are thus aliases of each other when sampled at the rate (fs) indicated by the grid lines. The gold-colored function depicts a positive frequency, because its real part (the cos function) leads its imaginary part by 1/4 of one cycle. The cyan function depicts a negative frequency, because its real part lags the imaginary part.
Notes
1. ^ The equivalence is called Euler's formula
2. ^ See Euler's formula § Relationship to trigonometry and Phasor § Addition for examples of calculations simplified by the complex representation.
3. ^ Conversely, any measure that indicates only one frequency has made an assumption, perhaps based on collateral information.
References
• Positive and Negative Frequencies
• Lyons, Richard G. (Nov 11, 2010). Chapt 8.4. Understanding Digital Signal Processing (3rd ed.). Prentice Hall. 944 pgs. ISBN 0137027419. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 8, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.967449426651001, "perplexity": 1441.133754864033}, "config": {"markdown_headings": false, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-04/segments/1547583656577.40/warc/CC-MAIN-20190116011131-20190116033131-00538.warc.gz"} |
http://neon.nervanasys.com/generated/neon.layers.recurrent.GRU.html | # neon.layers.recurrent.GRU¶
class neon.layers.recurrent.GRU(output_size, init, init_inner=None, activation=None, gate_activation=None, reset_cells=False, name=None)[source]
Implementation of the Gated Recurrent Unit based on [Cho2014].
• It uses two gates: reset gate (r) and update gate (z)
• The update gate (z) decides how much the activation is updated
• The reset gate (r) decides how much to reset (when r = 0) from the previous activation
• Activation (h_t) is a linear interpolation (by z) between the previous activation (h_t-1) and the new candidate activation ( h_can )
• r and z are computed the same way, using different weights
• gate activation function and unit activation function are usually different
• gate activation is usually logistic
• unit activation is usually tanh
• consider there are 3 gates: r, z, h_can
Parameters: output_size (int) – Number of hidden/output units init (Initializer) – Function for initializing the model’s input to hidden weights. By default, this initializer will also be used for recurrent parameters unless init_inner is also specified. Biases will always be initialized to zero. init_inner (Initializer, optional) – Function for initializing the model’s recurrent parameters. If absent, will default to using same initializer provided to init. activation (Transform) – Activation function for the input modulation. gate_activation (Transform) – Activation function for the gates. reset_cells (bool) – default to be False to make the layer stateful, set to True to be stateless. name (str, optional) – name to refer to this layer as.
x
Tensor – Input data tensor (input_size, sequence_length * batch_size)
W_input
Tensor – Weights on the input units (out size * 3, input size)
W_recur
Tensor – Weights on the recursive inputs (out size * 3, out size)
b
Tensor – Biases (out size * 3 , 1)
References
• Learning phrase representations using rnn encoder-decoder for statistical machine translation [Cho2014]
• Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling [Chung2014]
[Cho2014] (1, 2) http://arxiv.org/abs/1406.1078
__init__(output_size, init, init_inner=None, activation=None, gate_activation=None, reset_cells=False, name=None)[source]
Methods
__init__(output_size, init[, init_inner, …]) accumulates(f) Higher order decorator function that enables accumulation functionality for that function. allocate([shared_outputs]) Allocate output buffer to store activations from fprop. allocate_deltas(global_deltas) bprop(deltas[, alpha, beta]) Backpropagation of errors, output delta for previous layer, and calculate the update on model params. configure(in_obj) Set shape based parameters of this layer given an input tuple, int or input layer. final_state() Return final state for sequence to sequence models fprop(inputs[, inference, init_state]) Apply the forward pass transformation to the input data. gen_class(pdict) get_description([get_weights, keep_states]) Get layer parameters. get_final_hidden_error() Return hidden delta after bprop and adjusting for bprop from decoder to encoder in sequence to sequence models. get_is_mklop() is_mklop true means this op is on mkl backend get_param_attrs() get_params() Get layer parameters, gradients, and states for optimization. get_params_serialize([keep_states]) get_terminal() Used for recursively getting final nodes from layer containers. init_buffers(inputs) Initialize buffers for recurrent internal units and outputs. init_params(shape) Initialize params for GRU including weights and biases. load_weights(pdict[, load_states]) Load weights. nested_str([level]) Utility function for displaying layer info with a given indentation level. recursive_gen(pdict, key) helper method to check whether the definition serialize() Get state parameters for this layer. set_acc_on(acc_on) Set the acc_on flag according to bool argument. set_batch_size(N) Set minibatch size. set_deltas(delta_buffers) Use pre-allocated (by layer containers) list of buffers for backpropagated error. set_is_mklop() set_next(layer) Set next_layer to provided layer. set_not_mklop() set_params(pdict) Set layer parameters (weights). set_seq_len(S) Set sequence length. set_states(pdict)
accumulates(f)
Higher order decorator function that enables accumulation functionality for that function. Object that use this decorator are required to have an acc_param attribute. This attribute tuple declares the names for existing temp parameter and real parameter buffers. The temp parameter buffer copies the value of the parameter buffer before f is called, and after f is called the temp and normal buffers are summed. This decorator could be used to wrap any function that may want to accumulate parameters instead of overwriting.
allocate(shared_outputs=None)[source]
Allocate output buffer to store activations from fprop.
Parameters: shared_outputs (Tensor, optional) – pre-allocated tensor for activations to be computed into
allocate_deltas(global_deltas)
be = None
bprop(deltas, alpha=1.0, beta=0.0)[source]
Backpropagation of errors, output delta for previous layer, and calculate the update on
model params.
Parameters: deltas (Tensor) – error tensors for each time step of unrolling alpha (float, optional) – scale to apply to input for activation gradient bprop. Defaults to 1.0 beta (float, optional) – scale to apply to output activation gradient bprop. Defaults to 0.0
dW_input
dW_recur
db
Returns: Backpropagated errors for each time step of model unrolling Tensor
classnm
Returns the class name.
configure(in_obj)
Set shape based parameters of this layer given an input tuple, int or input layer.
Parameters: in_obj (int, tuple, Layer, Tensor or dataset) – object that provides shape information for layer shape of output data (tuple)
final_state()
Return final state for sequence to sequence models
fprop(inputs, inference=False, init_state=None)[source]
Apply the forward pass transformation to the input data. The input data is a list of
inputs with an element for each time step of model unrolling.
Parameters: inputs (Tensor) – input data as 3D tensors, then converted into a list of 2D tensors. The dimension is (input_size, sequence_length * batch_size) inference (bool, optional) – Set to true if you are running inference (only care about forward propagation without associated backward propagation). Default is False. GRU output for each model time step Tensor
gen_class(pdict)
get_description(get_weights=False, keep_states=True)
Get layer parameters. All parameters are needed for optimization, but only weights are serialized.
Parameters: get_weights (bool, optional) – Control whether all parameters are returned or just weights for serialization. keep_states (bool, optional) – Control whether all parameters are returned or just weights for serialization.
get_final_hidden_error()
Return hidden delta after bprop and adjusting for bprop from decoder to encoder in sequence to sequence models.
get_is_mklop()
is_mklop true means this op is on mkl backend and may require convert when from non-mkl op
get_param_attrs()
get_params()
Get layer parameters, gradients, and states for optimization.
get_params_serialize(keep_states=True)
get_terminal()
Used for recursively getting final nodes from layer containers.
init_buffers(inputs)
Initialize buffers for recurrent internal units and outputs. Buffers are initialized as 2D tensors with second dimension being steps * batch_size. The second dimension is ordered as [s1b1, s1b2, …, s1bn, s2b1, s2b2, …, s2bn, …] A list of views are created on the buffer for easy manipulation of data related to a certain time step
Parameters: inputs (Tensor) – input data as 2D tensor. The dimension is (input_size, sequence_length * batch_size)
init_params(shape)[source]
Initialize params for GRU including weights and biases. The weight matrix and bias matrix are concatenated from the weights for inputs and weights for recurrent inputs and bias. The shape of the weights are (number of inputs + number of outputs +1 ) by (number of outputs * 3)
Parameters: shape (Tuple) – contains number of outputs and number of inputs
load_weights(pdict, load_states=True)
Parameters: pdict – load_states – (Default value = True)
modulenm
Returns the full module path.
nested_str(level=0)
Utility function for displaying layer info with a given indentation level.
Parameters: level (int, optional) – indentation level layer info at the given indentation level str
recursive_gen(pdict, key)
helper method to check whether the definition dictionary is defining a NervanaObject child, if so it will instantiate that object and replace the dictionary element with an instance of that object
serialize()
Get state parameters for this layer.
Returns: whatever data this model wants to receive in order to restore state varies
set_acc_on(acc_on)
Set the acc_on flag according to bool argument. If set to true, the layer will accumulate some (preset) parameters on calls to functions that are decorated with the accumulates decorator. In order to use this feature, accumulate_updates=True must have been passed to the layer’s allocate function
This currently only works for a few hard coded parameters in select layers
Parameters: acc_on (bool) – Value to set the acc_on flag to.
set_batch_size(N)
Set minibatch size.
Parameters: N (int) – minibatch size
set_deltas(delta_buffers)
Use pre-allocated (by layer containers) list of buffers for backpropagated error. Only set deltas for layers that own their own deltas Only allocate space if layer owns its own deltas (e.g., bias and activation work in-place, so do not own their deltas).
Parameters: delta_buffers (list) – list of pre-allocated tensors (provided by layer container)
set_is_mklop()
set_next(layer)
Set next_layer to provided layer.
Parameters: layer (layer) – Next layer
set_not_mklop()
set_params(pdict)
Set layer parameters (weights). Allocate space for other parameters but do not initialize them.
Parameters: pdict (dict, ndarray) – dictionary or ndarray with layer parameters [support for ndarray is DEPRECATED and will be removed]
set_seq_len(S)
Set sequence length.
Parameters: S (int) – sequence length
set_states(pdict) | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.1646992713212967, "perplexity": 10022.770728639449}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-22/segments/1526794868248.78/warc/CC-MAIN-20180527111631-20180527131631-00332.warc.gz"} |
https://impa.br/sobre/memoria/reunioes-cientificas/nonlinear-pdes-impa/ | # Nonlinear PDE`s @ IMPA
IMPA, Rio de Janeiro, June 20 – 24, 2016
The field of nonlinear partial differential equations has experienced a striking evolution over the last fifteen years in Brazil. The number of PhD’s and students has increased creating a critical mass. In this process it is fundamental to have a scientific interchange with researchers leaders in the field. The aim of the workshop is to continuing this process by allowing the community to attend to lectures of recent and important progress in the field delivered by renowned specialists. The workshop will bring together leading experts in nonlinear dispersive equations, nonlinear hyperbolic systems of conservation laws, nonlinear elliptic equations and free-boundary problems. Graduate students and young PhD’s are encouraged to participate of this meeting.
Picture
Videos
## Conference Venue
IMPA is located in the South Zone of Rio de Janeiro, near the Tijuca Forest and the Botanical Gardens, 20 minutes from major hotels of Leblon and Ipanema. You can find our address and some practical information about how to get to the institution below.
Estrada Dona Castorina, 110 Jardim Botânico Zip Code 22460-320 Rio de Janeiro, RJ – Brazil Phone number: (55 21) 2529-5000 Fax: (55 21) 2512-4115 E-mail: eventosimpa.br
How to get to IMPA:
From the airport
On leaving the airport we suggest that you take a taxi. There are several companies that have booths located inside the airport facilities, on the way out. A ride to South Zone costs around R$120 to R$150 and takes about 50 minutes. There are also special buses leaving from Terminals 1 and 2, whose routes you can find here.
Buses
There are three bus lines running near the Institute:
• 409 – Saens Peña – Horto (via Lapa)
• 416 – Saens Peña – Jardim Botânico (Horto) (via Túnel Rebouças)
You can check which buses line is the best for you by clicking here.
The passenger must pay as they enter, using the front door to get on the bus and the rear door to get off the bus. The bus fare is R$3,80 and the maximum change given is for a R$ 20,00 bill.
Should you prefer to use a taxi, we suggest the following companies:
MAP of the area
## Registration
Registration fee
Category Price Researchers and Professors (Ph.D’s) R$200.00 Students (Master and Ph.D) R$ 80.00 IMPA´s Students R\$ 50.00
## Organizing and Scientific Committee
Hermano Frid (IMPA)
## Conference Topics
The main themes in the workshop Nonlinear PDE’s @ IMPA will be:
– Nonlinear Dispersive Equations.
– Nonlinear Hyperbolic systems of Conservation Laws.
– Nonlinear Elliptic Equations.
– Free-Boundary Problems
The meeting will also include related topics such as:
– Equations of Fluid Mechanics.
– Kinetic Equations.
– Optimal Transport
– Variational Problems.
– Homogenization.
Program
## Plenary Speakers
Luis Caffarelli (University of Texas at Austin, USA)
Some non local versions of the Monge Ampere equation
Thierry Cazenave (Univ. Paris 6, France)
Regularity issues in semilinear Schrödinger and heat equations
Scattering of small solutions of the cubic NLS with short range potential
Kenneth H. Karlsen (University of Oslo)
Stochastic Conservation Laws
Ronghua Pan (Georgia Tech)
Global regularity v.s. finite time blowup for compressible Euler equations
Jean-Claude Saut (Univ. Paris Sud, France )
Full dispersion water waves models
Denis Serre (Ecole Normale Superieure Lyon, France)
The singularity of a perfect gas at the vacuum boundary
## 30-Minute Talks
Ricardo Alonso (PUC)
Short introduction to one dimensional dissipative Boltzmann equation
Miguel Angel Alejo (Universidade Federal de Santa Catarina)
Stability of Breathers and Numerical Results
Jaime Angulo (USP)
Stability of Peak Solutions for Nls Equations with Point Interactions
Stefan Berres (Universidad Católica de Temuco, Chile)
Identification of shock profile solutions for bidisperse suspensions
Raimund Bürger (Universidad de Concepción, Chile)
A random sampling approach for a family of Templeclass systems of conservation laws
Emanuel Carneiro (IMPA)
On the regularity of maximal operators on BV spaces
Marcelo M. Cavalcanti (State University of Maringá)
Unilateral Problem for the Wave Equation With Spatial-Time Degenerate Nonlinear Damping: Well-Posedness And Exponential Stability
Gyula Csato (Universidad de Concepción, Chile)
About the Hardy-Sobolev, Moser-Trudinger and isoperimetric inequalities with densities
Generalized Zakharov-Kuznetsov equation in anisotropic weighted Sobolev spaces
Olivier Kneuss (Universidade Federal do Rio de Janeiro)
Nelson’s conjecture revisited
Yachun Li (Shanghai Jiao Tong University, China)
Global Classical Solutions to the Cauchy Problem of Conservation Laws with Degenerate Diffusion
Diego Moreira (UFC)
Hopf-Oleinik Lemma and Applications
Well-posedness for the Novikov-Veselov equation
Stochastic transport equation in bounded domains
Scattering for a 3D Coupled Nonlinear Schrodinger System
Stabilization of a Boussinesq system with generalized damping
Edgard Pimentel (UFSCar)
A priori Sobolev regularity for fully nonlinear parabolic equations
Moritz Reintjes (IMPA)
Is Spacetime Locally Inertial for General Relativistic Shock Wave Solutions?
Jean Carlos da Silva (UFRJ)
On The Almost Periodic Homogenization of Non-Linear Scalar Conservations Laws
Boyan Sirakov (PUC)
A Priori Bounds for Elliptic Inequalities via Regularity Estimates
Erlend Briseid Storrosten (University of Oslo)
Error Estimates for Finite Difference Approximations of Degenerate Convection-Diffusion Equations
## Short Communications
Eduardo Arbieto Alarcon (Universidade Federal de Goiás)
On the Cauchy Problem Associated to the Brinkman Flow in Rn+
Pablo Braz e Silva (Universidade Federal de Pernambuco)
Some asymptotic supnorm estimates for convection-diffusion equations and systems
Gerardo Camacho-de La Rosa (University of Mexico)
Existence and Stability of the Travellingwave Solutions for a Semilinear Wave Equation
Roberto Capistrano-Filho (Universidade Federal de Pernambuco)
Neumann Boundary Controllability of the Korteweg-De Vries Equation
Hardy-Sobolev Type Inequalties with Monomial Weights
Márcio Cavalcante de Melo (Universidade Federal de Alagoas)
The Initial-Boundary-Value Problem For Some Quadratic Nonlinear Schrodinger Equations On The Half-Line
Liliana Esquivel (UNAM Campus Morelia)
Neumann problem for nonlinear Schrödinger equation with the Riesz fractional derivative operator
Marco A. M. Guaraco (IMPA)
Geometric min-max methods and the space of solutions to the Allen-Cahn equation on closed manifolds
Isnaldo Isaac Barbosa (Universidade Federal de Alagoas)
On the Cauchy Problem for Nonlinear Interactions type Schrödinger
Uriel Kaufmann (Universidad Nacional de Cordoba)
Positive Solutions for Singular Problems Involving the P-Laplacian
Bifurcation and Stability of Steady States of Parabolic Problems Under Logistic Flux Boundary Conditions
Wanderley Nunes do Nascimento (IMEEC – UNICAMP)
Semi-linear wave models with power non-linearity and scale-invariant time-dependent mass and dissipation
Tiago Picon (FFCLRP/USP)
Global existence of small data solutions to the semilinear fractional wave equation
Juliana Pimentel (Universidade Federal do ABC)
Infinite time blow-up for the Chafee-Infante equation
Marcelo Rempel Ebert (Universidade de São Paulo)
Some optimal decay estimates for damped semilinear evolution equations
## Poster Session
Amanda A. Feltrin Nunes (Universidade Federal de São Carlos)
Multiple Positive Solutions for a Non-Local Quasilinear Problem from Population Genetics
Marcelo Fernandes de Almeida (Federal University of Sergipe)
Uniform Global Well-Posedness of the Navier-Stokes-Corioles in a new Critical Space
Fernando A. Gallego (Universidade Federal do Rio de Janeiro)
Neumann Boundary Controllability of the Gear-Grimshaw System with Critical Size Restrictions on the Spacial Domain
Carlos M. Guzmán (Universidade Federal de Minas Gerais)
On the inhomogeneous nonlinear Schrödinger equation
Alex Hernandez Ardila (IME-USP)
Stability of ground states for logarithmic Schrödinger equation with a δ‘-interaction
Lucas Fabiano Lima (Universidade Federal de São Carlos)
Regularity Theory for a Mean-Field Game Model of Wealth and Capital Accumulation
Cecilia Saavedra Fresia (Universidad Nacional de Tucumán)
EDP’s no Lineales en el Sistema Vascular
César K. Soares dos Santos
Pointwise regularity for a parabolic equation with log-term singularity
## Call For Abstracts
Besides the main lectures, there will be 30 minutes lectures, 20 minutes short communications and posters. We would like to invite the interested to submit abstracts for these presentations. The abstract should be no longer than 2 pages in PDF or PS format. Full consideration will be given to abstracts which are submitted before April 15th, 2016. The accepted presentations will be communicated by April 30th, 2016.
Be sure your abstract includes the title, and all author names and addresses, indicating who is going to present.
It is strongly recommended that the following template be used to produce the pdf file:
Please send the abstract by e-mail to: nlpde@impa.br
Back
List
## Suggested Accommodations
Rio de Janeiro has a large number of hotels. Lately, for the main congresses, we have been using Hotel Acapulco, Everest Rio Hotel, Everest Park Hotel, Hotel Debret, Hotel Vermont, among others. To take advantage of IMPA´s special rate, please contact Ms. Michele Leite at MMX Eventos – micheleleite@mmxcongressos.com – phone: + 55 21 2210-1732 or visit their homepage at: www.mmxcongressos.com
For other type of accommodation like hostels and bed and breakfast, we suggest the following:
Pouso Verde Bed & Breakfast (very close to IMPA and strongly recommended)
Rua Caminhoá, 14 – Jardim Botânico
Tel: + 55 21 2529-2942 , + 55 21 99971-0511
e-mail: pousoverde@globo.com
www.pousoverde.com
Hostels
Botafogo:
Meiai Hostel:
R. Guilhermina Guinle, 127 – Botafogo
Tel: 55(21) 3495-4481
www.meiai.com.br
Copacabana:
Travessa Angrense, 25 A – Copacabana (entre Santa Clara e Raimundo Correa)
Tel: 55(21)2256-6951 / Fax: 55(21) 2286-5652
Humaitá:
Lagoa Guest House
Rua do Humaitá, 392 – Humaitá
Tel: 55(21) 3518-9000
E-mail: contato@lagoaguesthouse.com
www.lagoaguesthouse.com
Ipanema:
Che Lagarto Ipanema
Rua Paul Redfern 48 – Ipanema
Tel: 55(21) 2512-8076
www.chelagarto.com
Leblon:
Leblon Spot (associado à Hostelling International)
Rua Dias Ferreira, 626 – Leblon
Tel: 55(21) 2137-0090
E-mail: contact@leblonspot.com
www.leblonspot.com
Please check availability and prices directly with them
# Institutional
Flats
Hotels
Others
## Visa Information
The Brazilian visa system operates under a strict reciprocity policy. That means that all citizens from countries which require visas from Brazilians will have to obtain visas to attend the conference. Beware that to attend a scientific conference in Brazil a tourist visa suffices. Source: Consulate General of Brazil
Foreign participants should get in touch with the nearest Brazilian Consulate (click on the map) to find out whether a visa is required.
Here you find the list of nationalities that are exempt from this requirement, see also the official Ministry of Tourism page, that includes the whole of the European Union and Mercosur. Those who do need visa should note that a tourist visa suffices for the conference attendance; for more information about Brazil, visit the official Brazilian Institute of Tourism website. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.22982257604599, "perplexity": 10017.34812954705}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-39/segments/1505818686169.5/warc/CC-MAIN-20170920033426-20170920053426-00253.warc.gz"} |
http://www.ams.org/mathscinet-getitem?mr=2661561 | MathSciNet bibliographic data MR2661561 32A38 (30B50 42B10 46E10) Abanin, A. V.; Khoi, Le Hai Dual of the function algebra $A^{-\infty}(D)$$A^{-\infty}(D)$ and representation of functions in Dirichlet series. Proc. Amer. Math. Soc. 138 (2010), no. 10, 3623–3635. Article
For users without a MathSciNet license , Relay Station allows linking from MR numbers in online mathematical literature directly to electronic journals and original articles. Subscribers receive the added value of full MathSciNet reviews. | {"extraction_info": {"found_math": true, "script_math_tex": 1, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9852445721626282, "perplexity": 4457.2817354391445}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-30/segments/1500549425381.3/warc/CC-MAIN-20170725202416-20170725222416-00662.warc.gz"} |
http://math.stackexchange.com/questions/119176/showing-uniqueness-of-solution-to-ivp-under-certain-conditions | # Showing uniqueness of solution to IVP under certain conditions
Consider the IVP $\mathbf{\dot x} = f(\mathbf{x},t)$ where $\mathbf{x}(0) = 0$, $f$ is continuous in some neighborhood of $(x,t) = (0,0)$ and $|f(x,t)-f(y,t)| \leq \frac{|x-y|}{t^\alpha}$. I would like to show the uniquenesss of the solution if $\alpha\in (0,1)$.
It seems like I would like to show that $f$ is locally Lipschitz in $x$ when $t = 0$ if $\alpha\in(0,1)$, (since it is clearly locally Lipschitz for all $t > 0$) but I haven't been able to tackle that by elementary methods (or any other, really). Another idea might be to bound the sequence of Picard iterates, but that seems very messy. A third idea would be to appeal to general facts about moduli of continuity. The fact that a solution is unique when the integral $\int_0^x\frac{dx}{\omega(x)}$ diverges for the modulus $\omega$ seems almost useful, except that in this case my modulus is a function of both $x$ and $t$. Am I in the right ballpark with these approaches, or is there something very obvious that I'm missing?
Also, this is homework, so I would be grateful for a small hint rather than a full solution. Thanks in advance!
- | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9843271970748901, "perplexity": 92.9261899294166}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2016-30/segments/1469257824756.90/warc/CC-MAIN-20160723071024-00050-ip-10-185-27-174.ec2.internal.warc.gz"} |
http://mathhelpforum.com/advanced-algebra/224896-linear-operator-question.html | 1. ## Linear Operator Question
I'm working on a practice final exam, and I'm stuck on a problem:
Let $\displaystyle T: \mathcal{P}_2 \to \mathcal{P}_2$ be a linear operator defined by $\displaystyle T(f) = f' + f''$. ($\displaystyle \mathcal{P}_2$ is the set of all polynomials of order $\displaystyle \leq 2$).
(Note that $\displaystyle T$ is corresponding to a matrix)
(1) Find the matrix $\displaystyle A$.
For this, I'm not sure if I need to use a basis as a reference or not. Is the matrix representation of $\displaystyle T$ supposed to operate on coordinates of $\displaystyle f$? Could I not just assume the standard basis for this, $\displaystyle B = \{1,x,x^2\}$, and use that to find $\displaystyle A$?
I imagine I'd be solving the problem $\displaystyle A[a \ b \ c]^T = [0 \ 2a \ (2a + b)]^T$ since the general polynomial of order two has the coordinates $\displaystyle [a \ b \ c]^T$ in $\displaystyle B$ and, after being operated on by $\displaystyle T$, has coordinates $\displaystyle [0 \ 2a \ (2a + b)]^T$.
Can you tell me if I'm on the right track?
(2) Is $\displaystyle A$ diagonalizable?
If I continue with the method from (1), then $\displaystyle A$ is NOT diagonalizable, but, of course, I'm not certain that my answer in (1) is correct or not.
(3) Find a basis, $\displaystyle B$ of $\displaystyle \mathcal{P}_2$ such that $\displaystyle [T]_B$ is a diagonal matrix.
In this context, is $\displaystyle [T]_B$ just my $\displaystyle A$ from part (1) just with a different basis? I figured that it would be, but, if that were the case, couldn't I just work backwards from (3) to (1) and everything is obvious?
2. ## Re: Linear Operator Question
Originally Posted by Aryth
I'm working on a practice final exam, and I'm stuck on a problem:
Let $\displaystyle T: \mathcal{P}_2 \to \mathcal{P}_2$ be a linear operator defined by $\displaystyle T(f) = f' + f''$. ($\displaystyle \mathcal{P}_2$ is the set of all polynomials of order $\displaystyle \leq 2$).
(Note that $\displaystyle T$ is corresponding to a matrix)
(1) Find the matrix $\displaystyle A$.
For this, I'm not sure if I need to use a basis as a reference or not. Is the matrix representation of $\displaystyle T$ supposed to operate on coordinates of $\displaystyle f$? Could I not just assume the standard basis for this, $\displaystyle B = \{1,x,x^2\}$, and use that to find $\displaystyle A$?
I imagine I'd be solving the problem $\displaystyle A[a \ b \ c]^T = [0 \ 2a \ (2a + b)]^T$ since the general polynomial of order two has the coordinates $\displaystyle [a \ b \ c]^T$ in $\displaystyle B$ and, after being operated on by $\displaystyle T$, has coordinates $\displaystyle [0 \ 2a \ (2a + b)]^T$.
Can you tell me if I'm on the right track?
(2) Is $\displaystyle A$ diagonalizable?
If I continue with the method from (1), then $\displaystyle A$ is NOT diagonalizable, but, of course, I'm not certain that my answer in (1) is correct or not.
(3) Find a basis, $\displaystyle B$ of $\displaystyle \mathcal{P}_2$ such that $\displaystyle [T]_B$ is a diagonal matrix.
In this context, is $\displaystyle [T]_B$ just my $\displaystyle A$ from part (1) just with a different basis? I figured that it would be, but, if that were the case, couldn't I just work backwards from (3) to (1) and everything is obvious?
I just read a pretty good treatment of this. You do use the basis you mentioned above and you note
T{1 0 0} = {0 0 0}, T{0 1 0} = {1 0 0}, T{0 0 1} = {2 2 0}
in other words T(1) = 0, T(x) = 1, T(x^2) = 2+2x
0 1 2 0 0 2 0 0 0
It's pretty clearly not diagonizable.
3) is above my head atm but you might try the Fourier basis, I saw that done in another article I just read trying to come up to speed on this.
3. ## Re: Linear Operator Question
Originally Posted by romsek
I just read a pretty good treatment of this. You do use the basis you mentioned above and you note
T{1 0 0} = {0 0 0}, T{0 1 0} = {1 0 0}, T{0 0 1} = {2 2 0}
in other words T(1) = 0, T(x) = 1, T(x^2) = 2+2x
0 1 2 0 0 2 0 0 0
It's pretty clearly not diagonizable.
3) is above my head atm but you might try the Fourier basis, I saw that done in another article I just read trying to come up to speed on this.
Yeah, I'm glad I was on the right track. For (3), I have a few bases I can try. If those don't work, I'll certainly give the Fourier basis a try. Thanks for your help.
4. ## Re: Linear Operator Question
Originally Posted by Aryth
Yeah, I'm glad I was on the right track. For (3), I have a few bases I can try. If those don't work, I'll certainly give the Fourier basis a try. Thanks for your help.
a little toying with this convinced me Fourier is not the way to go. It looks like minimal polynomials are going to play a role in this.
This may be of interest.
5. ## Re: Linear Operator Question
I'm not sure why you talk about "trying" a particular basis. A linear transformation, from vector space U to vector V, can only be written as a matrix in given bases for U and V. Are you not told what basis to use? Yes, "1", "x", and "$\displaystyle x^2$". Then T(1)= 0, T(x)= 0+ 1, and [tex]T(x^2)= 2x so, yes, the matrix, in that (ordered) basis is $\displaystyle \begin{bmatrix}0 & 0 & 0 \\ 0 & 0 & 2 \\ 0 & 1 & 2 \end{bmatrix}$.
Now, a 3 by 3 matrix is invertible if and only if it has three independent eigenvectors. So, yes, find the "characteristic polynomial", set it equal to 0, and solve for the eigenvalues. If there are three distinct eigenvalues ,there definitely are three independent eigenvectors and the matrix is diagonalizable. If there are only one or two distinct eigenvalues there still may be three independent eigenvalues, but you would have to check that.
(3) kind of gives the answer to (2) away- it wouldn't make sense to ask for a basis in which A is diagonal if A were NOT "diagonalizable". That basis is the basis consisting of the eigenvectors of A.
6. ## Re: Linear Operator Question
Halls point is pretty obvious if you think about it. If T were diagonalizable you could recover f from f' + f''. This is obviously not possible since you lose any information on the 0th order coefficients when you differentiate. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9059679508209229, "perplexity": 285.18296641579934}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-13/segments/1521257648177.88/warc/CC-MAIN-20180323024544-20180323044544-00387.warc.gz"} |
https://brilliant.org/problems/solve-it-38/ | # clue - starting two numbers of the answer is 14
Calculus Level pending
The digits of a three digit number form a G.P. If 400 is subtracted from it then we get another three digit number whose digits form an arithmetic series what is the sum of these two numbers?
× | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8906724452972412, "perplexity": 456.207973693014}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-30/segments/1500549424645.77/warc/CC-MAIN-20170724002355-20170724022355-00703.warc.gz"} |
https://help.syncfusion.com/js/calculate/overview | # Overview in JQuery Calculate widget
18 Apr 20171 minute to read
Essential Calculate enables to parse and evaluate the formulas. These formulas are equations which performs calculation on values. It allows the user to add extensive calculation support for business objects.
The range of calculations include simple algebraic expressions such as `(1.2^3-1)/8`, to formulas using intrinsic functions like `4 * sqrt(exp(8.4))`, to formulas relying on variables that are defined through controls on a form such as `cos([textBox1] * pi()/180)`, to spreadsheet-like formulas such as `Sum(A2:B14)`.
### Key Features
Important features of Essential Calculate are listed below,
• Parses and evaluates excel based formulas and basic equations.
• It comes with a function library of more than 200 entries of formulas.
• Named ranges, dynamic references, array formulas and formula dependencies are supported.
• Supports cross sheet references (can work with multiple sheets).
• Essential Calculate does not depend upon Microsoft Excel and thus enables you to perform calculations independent of Excel.
• Supports custom functions with n-number of optional arguments.
• Culture-sensitive decimal separator and argument separator .
• Calculate can work without any sheets or references.
• It also supports CalcQuick or Indexer method for calculation. | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.957382321357727, "perplexity": 5060.401516520511}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-31/segments/1627046154214.63/warc/CC-MAIN-20210801154943-20210801184943-00312.warc.gz"} |
http://esrf.eu/home/news/spotlight/content-news/spotlight/spotlight225.html | # New iron hydrides synthesised under pressure
12-05-2015
Many calculations have predicted exceptional properties of hydrides at high pressure, namely a high hydrogen storage capacity and a possible conventional high Tc superconductivity. Yet, these properties remain to be tested. Scientists working at the ESRF have observed an increase of hydrogen content in iron under pressure, with the formation of two novel hydrides, FeH~2 and FeH3. In particular, the structure of FeH~2 is remarkable with alternate planes of Fe and of atomic H.
• Share
Most transition metals form hydrides in contact with H2, usually with a H:metal ratio close to 1. However, this chemistry is predicted to change under pressure. Numerous first-principles calculations have predicted that novel forms of polyhydrides should exist at high pressure, such as LiH2, LiH6 [1], FeH3 and FeH4 [2]. A rough rule is emerging, i.e. the hydrogen content in hydrides should increase significantly with pressure. So far, this rule and the existence of such unusual stoichiometries have yet to be confirmed experimentally.
In this study, we have discovered that under pressure the hydrogen content in iron dramatically increases in discontinuous steps: heating FeH in the presence of hydrogen leads to the formation of FeH~2 at 67 GPa and of FeH3 at 86 GPa.
Iron samples (~2 µm thick) were loaded in diamond anvil cells with hydrogen as a pressure medium, and YAG-laser heated using the online setup at the ID27 beamline. dhcp-FeH forms under pressure at 3.5 GPa and no changes in the X-ray diffraction (XRD) pattern were observed when purely compressing the sample up to 136 GPa. Laser-heating, however, allowed us to induce a chemical reaction, identified by the disappearance of the dhcp-FeH XRD peaks and the appearance of new XRD peaks (Figure 1). Rietveld refinement of the integrated new diffraction patterns give, at 67 GPa, FeH~2 with a tetragonal unit cell (space group I4/mmm), and at 86 GPa, FeH3 with a simple cubic unit cell (space group Pm-3m) corresponding to the structure predicted in Ref. [2] at 300 GPa. The structural positional parameters of the H atoms have been determined by first-principles density functional calculations. The new phase diagram for the Fe-H system is shown in Figure 2.
Figure 1. X-ray diffraction pattern for FeH, FeH2 and FeH3 (right: image plates, left: integrated patterns).
This discovery is a textbook case for the expected increase of the hydrogen stoichiometry in hydrides with pressure. The investigation of the electronic properties of these novel iron compounds could reveal unusual magnetism, dimensionality, proton zero point energy, and correlations. Apart from these fundamental issues, the observed stability of novel iron hydrides under high pressure is of significant importance for planetary interior modelling since iron and hydrogen are two of their main constituents [3]. In particular, hydrogen is considered as a possible light element in the Earth’s core, which is mainly composed of iron.
Figure 2. Phase diagram of the Fe-H system showing the different structures.
Principal publication and authors
New Iron Hydrides under Pressure, C.M. Pépin (a), A. Dewaele (a), P. Loubeyre (a) and M. Mezouar (b), Phys. Rev. Letter 113, 265504 (2014).
(a) Commissariat à l’Énergie Atomique, Direction des Applications Militaires Île de France Arpajon (France)
(b) ESRF
References
[1] E. Zurek, R. Hoffmann, N. Ashcroft, A. Oganov, and A. Lyakhov, Proc. Natl. Acad. Sci. U.S.A. 106, 17640 (2009).
[2] Z. Bazhanova, A. Oganov, and O. Gianola, Phys. Usp. 55, 489 (2012).
[3] D. Stevenson, Nature (London) 268, 1300 (1977).
Top image: Sketch of a diamond anvil cell and microscope image of the sample studied. | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.843957781791687, "perplexity": 4480.779051785206}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-10/segments/1614178376467.86/warc/CC-MAIN-20210307105633-20210307135633-00320.warc.gz"} |
https://0cch.com/archives/2014/04/ | ### 一个查找指定栈回溯符号并执行命令的Windbg脚本
>a<${$arg0} 5 ntdll* ~n就表示在前5个线程里寻找栈回溯有关ntdll的线程,然后执行~n命令挂起线程。
### Windows 8.1中获得系统版本信息的方法
With the release of Windows 8.1, the behavior of the GetVersionEx API has changed in the value it will return for the operating system version. The value returned by the GetVersionEx function now depends on how the application is manifested.
Applications not manifested for Windows 8.1 will return the Windows 8 OS version value (6.2). Once an application is manifested for a given operating system version, GetVersionEx will always return the version that the application is manifested for in future releases.
===============想睡觉的分割线==================== | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.15640024840831757, "perplexity": 2422.40342195132}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-43/segments/1508187820927.48/warc/CC-MAIN-20171017052945-20171017072945-00599.warc.gz"} |
http://ramiro18dabbufhdu.soup.io/ | You are at the newest post.
## January022015
### 8 Romantic Green Coffee Tone And Colon Thin Holidays
There's nothing simpler than putting a espresso pod into the maker and simply pushing a button. You can forget about grinding beans and then attempting to measure out the ideal quantity. Espresso pods are a lot like a tea bag, but filled with precisely the correct quantity of coffee rather. Every cup you brew will usually style new and perfect. There's nothing you can do to screw issues up!
Almost any equipment utilized to pop popcorn can be used to roast coffee beans. The scorching air poppers are great, however, you may want to roast outdoors or in your garage as they blow the chaff out and can be messy. There are a quantity of manufacturers of home coffee roaster, such as a number of that use a gasoline grill and rotisserie.
One doesn't require to consider in a lot of the caffeine that arrives with coffee when using in the Green Coffee Tone Review complement. It only has 20mg of caffeine for each serving which is way much less compared to the regular cup which has 100mg of caffeine. No need to worry about that anxious, jittery feeling that normal coffee provides. Just sit back, unwind and wait for the chlorogenic acid, the energetic component of this specific supplement, to function its way to achieve the ideal body excess weight.
No wonder, nutritionists, physicians and individuals alike are embracing green coffee Tone dietrichson Extract as an efficient alternative weight loss supplement because of to its all-natural capability to burn up fat fast without dieting or exercising. And it functions!
So what do you think? Should Kim be stressing and striving so hard to shed excess weight? Or should she invest her cash on, hmmm, how about pet rescue or an additional worthy cause? Place your comments beneath.
Now there are two thoughts about green bean 900. Some people say it is good while some say it gives aspect results. So, the only way to discover the reality is to find facts. It might be talked about that green bean 900 is considered as 1 of the most effective ingredients. And the pure type is safe. But, now there are a great deal of phony products with fake components. So, this could be the purpose why the component is getting lots of criticism.
Before we begin keep in mind that beans are at their peak of fresh flavor in between 1 working day and two weeks after they are roasted. The initial twenty-4 hours right after the coffee comes out of the roaster is regarded as the resting time period. Throughout this time espresso are as well new to style their very best and require a small time to rest. If you are a house roaster, please maintain this in thoughts when roasting Green Coffee Tone Pills. If you brew coffee during this resting period, as well much carbon dioxide is still contained in the bean. When drinking water is added the beans will increase to the top preventing the espresso from being extracted fully into the drinking water. Numerous purchasers will have little specialty retailers that roast their beans fresh every working day, make sure you maintain the above info in thoughts when buying freshly roasted espresso.
One of the very best places to buy Green Coffee Tone Pills wholesale is on-line rather than buying them from nearby specialty retailers. A number of distributors will let you buy bulk Green Coffee Tone Pills for a fraction of the price you'd pay at the grocery shop for beans that have already been roasted.
Coffee trees develop berries and the fruit of the plant is picked by hand and then processed by machines that strip off the fruit flesh. The raw seeds undergo a type of drying process, after which what arrive out are our coffee beans. They aren't what you'll see in a bag of coffee beans from the supermarket, however. Green Coffee Tone Pills are much smaller sized than the roasted variety and don't have extremely great flavor.
There are several advantages to taking Pure Green Coffee Tone Review capsules containing 50%twenty five Cholorogenic acid. Chlorogenic acid is an amazing natural compound which not only delivers about fast excess weight loss, but it also helps to boost metabolism, is a powerful antioxidant, controls blood stress and strengthens the immune system.
So the month-to-month shipping and delivery or espresso club is an outstanding present and gives you numerous choices to choose from. Ideally you can use these choices to make a good gift and to assist mankind too.
For coffee enthusiasts, there is nothing that compares with the smell of a freshly brewed cup. Even the scent of the floor espresso prior to being brewed can make your senses tingle. But the reality of the make a difference is that these beans do not arrive by that scent naturally. Green espresso beans actually scent kind of bland. It is the roasting of the beans that gives them the aroma that so many people crave. Now envision if you could get that fantastic scent of roasting beans in your home. Really you can by obtaining 1 of the numerous great espresso roasting devices on the market.
## January082014
### How Significantly Caffeine Is There In A Cup Of Coffee
green coffee tone tone pills from complete nutrition
One more gain of green coffee tone tone pills from complete nutrition beans is that they can be substantially more cost-effective to order as an unroasted bean. They are also often ordered from smaller grower spouse and children operations in the establishing world. Ninety p.c or extra of coffee is grown by modest farmers in developing nations. When it is bought and will come less than the Certified Fair Trade, this is promoted by the entire world organisation for fair trade and carries a label to establish manufacturers that have paid out growers a appropriate price tag. This can be to the value of five occasions additional than what other companies pay to growers.
The leaves of the coffee plant are huge and are shiny, dim environmentally friendly. The espresso plant helps make a charming dwelling plant. The espresso plant can develop to be three ft tall.
Analysis is however getting conducted, but it is speculated that coffee can help protect the body towards liver sickness and numerous kinds of most cancers as perfectly. It also seems to lessen the possibility of obtaining type two diabetes, and serves to reduced blood sugar degrees.
With in excess of 28 decades of medical expertise, alternative well being expert and celeb nutritionist is one of the world's major gurus on super meals, organic medicine, purely natural remedies and normal wellness.
Whether or not you contact this your "Slender Coffee" or your "Slimming Coffee" I get the emotion that if you are currently a espresso drinker then creating the alternative to try this "straightforward pounds reduction" discovery will be right up your ally.
I am not always a pattern follower, as traits can promptly fade. Subsequent a terrible development can outcome in a closet total of high-squandered mother denims and leg warmers. I do believe that the green movement must not be treated as a trend. In truth, dwelling a eco-friendly way should be attempted by each and every American loved ones. By going environmentally friendly, a household can exercise social responsibility and make small but significant changes in their everyday life.
Uncover the ideas of the health practitioner. If you have issues together with high-blood pres-sure, stomach concerns o-r sugar troubles ahead of you make the most of the green beans extract. When you do get complications and in particular confusion and faintness get your physicians watch moreover be incredibly mindful about regardless of whether you need to actually deal with an car o-r travel wherever the light headedness might cause you to fall. I understand that is popular awareness none the significantly less you might be shocked how many ladies and adult men have so little. LOL!
Typically all coffee roasters are delicate to your residence voltage. Roast on a circuit that isn't really becoming utilized at the identical time you are roasting. Do not get confused. Home roasters are not the similar as business roasters they should be permitted to amazing down in involving batches or you could established off the thermal protection that will demand the roaster to be reset by the maker. You never want that variety of trouble.
## December302013
### What Goes On To Coffee All Through The Roasted Strategy
Green Coffee Tone Pills
Simple body weight decline is hurriedly used to merchandise we see on late evening television promising over weight males and women of all ages the rapid fix. Typically this variety of simple weight decline adverts get the variety of an infomercial at times lasting as very long as a late night time film.
When the first research was pretty compact, with just sixteen volunteers onboard, the consistency and scope of its discovery maintain much promise for people and researchers alike. Much larger studies are presently currently being prepared to affirm and extrapolate the conclusions.
I am not normally a craze follower, as traits can quickly fade. Next a bad pattern can end result in a closet whole of higher-wasted mom jeans and leg warmers. I do believe that the eco-friendly motion ought to not be treated as a development. In point, dwelling a inexperienced way should really be tried by every American relatives. By likely environmentally friendly, a relatives can observe social accountability and make modest but meaningful alterations in their every day lives.
If you are in the commercial/industrial stop of the decorating/structure business enterprise, what mood maximizing colors do the job very best in a reception location, an open up region with a lot of staff members and the place of work of the CEO?
Residence roasted is once more than and in excess of repeatedly getting popular with all creation of digital drum roasters that definitely support de-strain the technique. Are likely to be a lot of some people who consist of identified sorts of really roasted beans using distinctive warmth pop corn producers.
The pancreas generates glucagon and insulin, which are 2 very important hormones for our system to operate ordinarily. The research that have been built all-around chlorogenic acids that can be observed in the Green Coffee Tone Pills beam, proved the truth that people today can have their sugar metabolism affected by it in a optimistic fashion and this will materialize in the write-up-eating period.
In buy to drop fat there is no alternative to proscribing your calorie intake so that you take in less energy than your body is employing. The overall body thus has to make up the big difference by burning body fat. And anything you can do to reduce your calorie consumption, or maximize the charge you burn extra fat (this sort of as physical exercise) will therefore support pace up the course of action of shedding body weight.
Natural is a label popular in our grocery retailers and anything we are most familiar with. The main big difference between a basic Natural and organic and USDA licensed organic and natural eco-labels is that United States Section of Agriculture labels organic and natural goods dependent on their certification requirements.
### Does The Laxative Diet Plan Get The Job Done
green coffee tone reviews
Exactly where do individuals espresso anti-oxidants arrive from - and are they maximum in green coffee tone reviews beans or beans that have been roasted? According to new research, the organic anti-oxidants in green coffee beans identified as chlorogenic acids are destroyed when coffee is heated to large temperatures. But during the roasting course of action they're changed with much more strong anti-oxidants known as maillard response goods. The anti-oxidants generated by the maillard response when coffee is roasted can make up the vast majority of the espresso anti-oxidants Individuals consume when they sip a cup of coffee.
"Organic and natural body fat burners have now been gaining a great deal of reputation due to the fact they are safe and cost-free of portion effects. A number of of normally the most well known varieties becoming advisable by exercise professionals now consist of garcinia cambogia, environmentally friendly espresso purchase and strawberry ketones. All three of these are confirmed excess fat busters and urge for food suppressants" promises a SlimmersExpert.co.british isles spokesperson.
A twelve-7 days examination of the efficiency of green beans extract was just currently achieved. Via the investigate, each individual a person of these who employed the extract dropped about sixteen.6% of their typical body fats together with 11% of their overall physique unwanted fat, all with no changes inside of their food diets or exercise sessions. Additionally, those people who tried it drop on common seventeen lbs . just about every without the need of section results.
Who realized that getting espresso can be so complicated? Though it could choose time to investigate and educate by yourself about eco-labels and their meanings, you will be superior off realizing the distinction a espresso acquire can make.
"This kind of capsules are the newest tendency in the bodyweight loss circles and men and women are picking these kinds of natural and organic tablets to have back again fit more quickly than in fact before" statements a SlimmersExpert.co.united kingdom spokesperson.
Nevertheless, the course of action of getting the espresso beans picked from their cherries, dried, processed, delivered, packed and Ultimately placed on the shelf for the buyer is a extended one particular, and each working day that passes is a further working day your espresso has aged and missing it is really flavour.
Overview: Coffee bean belongs to rubiaceae household. It originates in tropical zone of Africa with 2000 yrs planting record. By 525 BC, Arabs had now started to plant coffee beans and right after 15 century it started to be planted thoroughly. Then soon after 18 century, this plant commonly distributed in Europe, Asia, Africa and Latin The usa, turning out to be the head of 3 beverage crops in the world.
Ahead of now the coffee beans are commonly roasting, decaf coffee is really initially getting that will help you go through decaffeination. Straight and indirect approach, bodily activity ingesting h2o tactic, CO2/O2 remedy and triglceride software could be the unique approaches of generating decaf coffee.
### Unfavorable Outcomes Of Espresso
green Coffee tone pills from complete nutrition
The positive aspects of coffee have been acknowledged for generations. In simple fact, green Coffee tone pills from complete nutrition bean extract has been bought in wellbeing foodstuff outlets and huge-box chains for several years, marketed as a nutritional complement, a effective antioxidant, an electricity booster, an anti-hypertensive health supplement, and a stimulant for nutritious circulation.
The only kinds who should not drink espresso are individuals who are expecting, are struggling from heart illness or children who will turn into restless with the extra electrical power thanks to the caffeine.
To be regarded as Organic and natural or Certified Organic and natural espresso, farmers expanding the item should really encourage use of renewable assets, and follow water and soil conservation. Espresso is grown without having pesticides or artificial fertilizers, and there is no use of genetic engineering.
This is what is recognized as a "super foods", and is packed whole of anti-oxidants. Anti-oxidants, as you almost certainly know, are wonderful for supporting general overall health, but they also attack excess fat cells, way too, and that means you ought to be able to reduce a fair quantity of fat. When you burn up extra fat in this fashion, you end up with extra "energy" to burn, and that can lead into more activity on your element, burning extra energy!
Residence roasted is when more than and in excess of having common with all development of electronic drum roasters that assist de-strain the course of action. Are usually many some folks who include things like observed methods of really roasted beans employing exceptional hot-air area corn producers.
As soon as you've got begun roasting, you can keep keep track of of the progress by listening. At a specified level, as sugars caramelize and dampness evaporates from the beans, they will make a cracking noise. At this issue, if you favor a light-weight roast, you can contemplate your beans completed. Darker roasts have to have for a longer period, although, and some favor to cook dinner the beans as considerably as the second "crack." At this place, the beans may even burst aside, leaving smaller items. In addition to these sound cues, you can also choose how considerably together your beans are, and when you look at them finished, by their scent.
Is there a big difference in between how kids, teenagers, grownups and the aged respond to shade? If there is, what colors and forms of colors (pastel vs. bright) are greatest for which age group and why?
The all-natural reward of the Green Coffee 800 is the potent Anti-oxidants present in the Green Coffee are valuable for human system for numerous good reasons.
### Green Coffee Extract Bodyweight Decline
green coffee tone pills from complete nutrition
Blooms Svelte, contains Coffea canephora. This is truly an extract of green coffee tone pills from complete nutrition bean and several persons who are struggling from weight problems have efficiently managed it by applying this extract.
No. But what I locate is that way too much saturation of a colour can have a adverse impact (like yellow and nausea) Most of the time it is delicate and you don't recognize it is the space colour or the computer monitor color or or or... Intuitively your entire body will get treatment of you, that blue home will produce tranquil as lengthy as you require tranquil designed.
Seek out out the coffee and tea that have traveled the minimum distance to get to you and also aim at supporting regional, impartial farms, cafs, and roasters.
Recent study has proven that coffee is also wealthy with antioxidants. In truth espresso is the range a person source of antioxidants among the individuals in the state, with black tea becoming next. However, black tea truly consists of a significantly larger sized total of antioxidants, and as its attractiveness catches on, it may well quickly go into the amount one particular posture.
When you examine the Garcinia Cambogia opinions, you will in all probability choose for this products, if only mainly because it does not artificially elevate your metabolic fee. This tends to make it greater for people with heart difficulties or other health issues, but of system you really should often speak to your physician prior to starting any food plan.
Having said that, the procedure of owning the coffee beans picked from their cherries, dried, processed, transported, packed and Eventually placed on the shelf for the purchaser is a extended just one, and each day that passes is another working day your espresso has aged and shed it is really flavour.
Roasting espresso is in essence to regulate the flavour that arrives out of the beans. Environmentally friendly unroasted coffee beans are smaller sized and much heavier than a roasted espresso bean. Unroasted coffee bean can also previous for decades when stored effectively and carefully. Nonetheless, roasted coffee beans are equally essential by people today simply because the coffees that men and women consume are the consequence of coffee roasting the darker the coffee bean soon after roasting, the more robust the style. In actuality, folks are so into coffee roasting that coffee roasting specialty outlets emerged. These coffee roasters use only clean espresso beans roasted into different warmth levels to give their faithful patrons some excellent tasting coffee.
The normal profit of the Green Coffee 800 is the highly effective Anti-oxidants existing in the Green Coffee are useful for human system for a variety of explanations.
## December292013
### Pure Coffee Is Truly A Powerful Excess Fat
green coffee tone reviews
Blooms Svelte, incorporates Coffea canephora. This is really an extract of green coffee tone reviews bean and lots of folks who are struggling from excess weight concerns have effectively managed it by utilizing this extract.
The only types who shouldn't consume coffee are these who are pregnant, are suffering from heart condition or kids who will turn into restless with the excess energy thanks to the caffeine.
New innovations are staying designed routinely for the best solutions to command the human body of your fats. The researchers suggest the having problem could result in a signalling system, which prompts the body to take in more fats. Amidst the several promising experiments, Slimshots have made a breakthrough in the battle versus being overweight. With this, you can management metabolic swelling that potential customers to serious success in the weight problems-connected difficulties.
This is what is identified as a "super food", and is packed total of anti-oxidants. Anti-oxidants, as you likely know, are great for supporting in general overall health, but they also assault fat cells, too, and that implies you should really be ready to eliminate a reasonable amount of money of weight. When you melt away fats in this way, you end up with far more "power" to burn up, and that can lead into far more activity on your section, burning far more calories!
002 saw the start of the S350, the significant advance becoming the large pressure steam jet enabling cappuccino and other frothy drinks to be made available. 2007 saw the start of the most recent design, the C400, compact with a classy contemporary retro look with field main electricity efficiency. With the start of this equipment manufacturing was moved from Basingstoke to Shanghai, the filter pack output stays in Basingstoke.
However, the bold consequences of green coffee extract on body weight decline have astonished many. In a the latest clinical research, executed in India, participants misplaced about 10 % of their body bodyweight in 22 weeks, all with no alter to their each day diet plan or exercise regimen. They lose whopping seventeen lbs ., on average, just by adding the green coffee complement to their everyday regimen.
It is essential to start out with a table that is no cost of any pre-present paints, stains, or grime. (If these are existing, take away with a little bit of paint thinner and scrub with a heavy duty wire brush.) Carefully sand the desk completely smooth with medium grit sandpaper. Eliminate all excessive dust soon after sanding with a tack cloth.
Members ranged from 22 to forty six decades of age and ended up deemed clinically overweight. They ingested products containing either seven hundred milligrams or 1,050 milligrams of the extract about 50 % an hour prior to each and every meal, consuming loads of drinking water to counter the bitterness of the tablets. By the end of the research, lots of returned to their typical fat.
### Where By To Invest In Green Coffee Bean Extract
Green Coffee Tone Pills
The Nature's Ideal web-site description of Verdesse is "We are happy to present Verdesse, a solution built for folks pursuing a calorie managed body weight loss diet plan. Verdesse is a decaffeinated Green Coffee Tone Pills extract named Svetol containing high stages of energetic compounds named chlorogenic acids, and a person in distinct which is called 5-caffeoylquinic acid. The coffee extract in Verdesse is made from unroasted espresso beans, because the typical roasting procedure destroys many of the all-natural compounds.
A great basic principle would be to sustain a history with regards to your pursuits of using the supplements. A lot of folks confuse difficulties pursuing any period of time and the realities get misunderstood. A journal will undoubtedly enable in trying to keep your data files pretty exact. For any having system it really is a exceptional approach to maintain a log and history you are snacking information to assist you regulate your consuming plan to be able to get extraordinary innovations together with aid hold your details exact concerning any type of unwelcome side results of inexperienced beans extract which could probably arrive.
Research is however becoming done, but it is speculated that coffee can assist guard the overall body from liver ailment and lots of styles of cancer as very well. It also seems to lower the chance of receiving type two diabetes, and serves to reduce blood sugar amounts.
I know for-a confirmed reality that putting products to your eating plan routine or any type of alter in your life time together with touring may possibly have an impact in your tummy and bowel motions. I found out any individual experienced acquire-n a laxative and the aches handed they experienced great effects. I uncovered a different specific associated far more fibre for their dinners and their problems vanished they located accomplishment. That is just some detail for a single to look at.
No matter if you connect with this your "Slender Espresso" or your "Slimming Coffee" I get the sensation that if you are previously a espresso drinker then making the choice to attempt this "effortless body weight reduction" discovery will be proper up your ally.
The certain tannins in coffee very easily minimize the cariogenic imminent of foods. In just vitro experiments demonstrate that these polyphenolic worsens could interfere with glucosyltransferase work out of mutans streptococci, which could reduce cavity enducing plaque development.
Overview: Coffee bean belongs to rubiaceae household. It originates in tropical zone of Africa with 2000 years planting historical past. By 525 BC, Arabs experienced currently begun to plant coffee beans and after 15 century it commenced to be planted thoroughly. Then just after eighteen century, this plant widely dispersed in Europe, Asia, Africa and Latin The us, becoming the head of 3 beverage crops in the planet.
## December272013
### Green Coffee Bean Extract. Wonder Diet Capsule
green coffee tone Reviews
The Arabica tree is imagined to have originated from the northeastern part of Africa. The trees are now discovered all above the earth. Gourmand coffee beans that have been generated from the Arabica bushes are ordinarily taken from the bushes three moments every single year for approximately thirty years.
To me, supporting tiny farmers throughout the world is vital as they are the ones escalating and retaining espresso crops. In addition to pretty compensating a farmer's challenging work, it is critical to glimpse for licensed organic and natural labels for coffee that is grown devoid of destructive chemicals.
Exactly where do all those coffee anti-oxidants arrive from - and are they best in green coffee tone Reviews beans or beans that have been roasted? According to new study, the all-natural anti-oxidants in green coffee beans called chlorogenic acids are destroyed when coffee is heated to large temperatures. But during the roasting approach they're changed with a lot more strong antioxidants called maillard reaction solutions. The anti-oxidants developed by the maillard response when espresso is roasted makes up the majority of the coffee antioxidants People in america take in when they sip a cup of coffee.
Tea leaves and in particular coffee grounds make exceptional compost. Coffee's substantial nitrogen content has designed it a fertilizer of preference considering the fact that days of yore. Composting leaves and grounds aids retain organic and natural squander out of landfills, will make terrific soil, and keeps waste baskets dry. If you you should not have a heap to toss it on, just distribute coffee grounds on the top of your plants' soil.
It is really welcome news that coffee has antioxidants considering the fact that several Us residents eat adequate antioxidant-wealthy fruits and vegetables. On the other hand, it's far better to consume espresso in moderation and get at least some of your antioxidants from other resources. Much too a great deal caffeine contributes to sleeplessness, blood pressure elevations and heartburn. It also raises degrees of the strain hormone, cortisol. Take pleasure in a cup of freshly roasted espresso if you can tolerate the caffeine, but will not make it your only resource of anti-oxidants.
## December262013
### The Health Gains Of Green Coffee Beans Extract
green coffee tone tone pills from complete nutrition
The fantasy that way too much coffee can guide to coronary heart condition has been disproved by a team of researchers immediately after conducting a lengthy examine. They surmised that the correlation that experienced previously existed in between coronary heart disorder and coffee drinkers can now be attributed to the truth that quite a few shoppers who drink huge amounts of coffee also are inclined to smoke and get very little training. Nevertheless, persons with large blood strain are nonetheless advised to minimize coffee ingestion. Coffee may perhaps also secure against Parkinson's disease, and maybe Alzheimer's condition.
Several coffee consumers have espresso styles on the kitchen area desk and elect to get beans and operate their pretty possess espresso. They will come across a full new excellent, flavor and odor, when a single grinds their particular beans. If you select to create your have espresso in-the benefit of your possess assets, you may perhaps make it in accordance with your individual style.
Are there any side consequences? Like coffee, green coffee tone tone pills from complete nutrition bean does have a modest quantity of caffeine in it. So if you happen to be really delicate it truly is very best to check out it early in the working day so you will not have sleeplessness difficulties. With any complement of system you need to constantly search for the approval of your health care marketing consultant.
Software: Coffee bean is the most essential substance to make beverages. Espresso beverage is drunk worldwide and welcomed many folks. Aside from, espresso bean is also a health care product. We can acquire caffeine and serve it as anesthetic, diuretic, cordial and cardio tonic.
Quite a few men and women may possibly will need quite espresso mills and that is some factor to just take into account when looking for the quite best espresso mill. Some mills are extremely loud when grinding the beans.
A French press espresso maker fully removes the need for filters at all (kind of) and necessitates no electricity to function (kind of). Invented someday during the late 19th century, French presses mix boiling drinking water with floor coffee allowing for a richer and darker taste to arise from the espresso beans. A plunger presses the espresso grounds to the base of the coffee with a metal strainer or cheesecloth, eliminating the grounds from the espresso as its currently being poured.
The Robusta espresso beans are generally developed in an ecosystem that is extra humid as effectively as hotter than the usual setting for the Arabica beans. The Robusta coffee beans are largely grown in Central The us, parts of South The us and the southeast part of Asia. The Robusta beans are usually blended with the beans from the Arabica trees. The mixing provides a extra sophisticated and richer flavor to gourmet flavored coffee.
Fans of dwelling brewed cups of Joe can also search espresso aisles at their regional grocery retailers for other very good finds. Natural and organic is a time period you will now see on coffee baggage, and it signifies espresso beans are grown with no genetic engineering or synthetic fertilizers.
Tocopherols in espresso possess e Vitamin. Tocopherols in coffee act significantly like area phenols. Tocopherols function as antioxidants and performs a aspect in the development of carbohydrates and lipids. Tocopherols more around guard cells versus hurt and ruin absolutely free radicals in the human system. Tocopherols existing in coffee have turn into crucial for ocular health and fitness, which associated with the functionality of the human eye, and the pores and skin. Tocopherols have the capability to inhibit the raising of gallbladder and kidney stones and could possibly give safety for you versus colon cancer.
### Cappuccino Coffee Espresso Maker
Green Coffee Tone
Men and women really cherished the freshly roasted espresso and its exotic flavor and aroma. Even if there have been any roasting stores, men and women most popular the taste of dwelling roasted espresso since they felt that the previous resulted in a cup of swill. Green Coffee Tone beans were saved by the people and roasted on a day-to-day basis as for each their demands.
Almost 70 a long time back, roasting coffee in the kitchen at property was as a great deal a section of the day-to-day regimen of persons as observing Tv is ours now-a-days. Most of the folks at that time could not find the money for to acquire roasted espresso so they relished roasting espresso at property with the help of solid iron stoves, above their fireplaces or out on their porches. A coffee roasting store at that time was deemed a luxurious enjoyed only by the city community dwellers.
New inventions are being made often for the perfect goods to handle the entire body of your fats. The scientists recommend the consuming disorder might set off a signalling procedure, which prompts the physique to consume additional fat. Amidst the many promising experiments, Slimshots have manufactured a breakthrough in the battle from obesity. With this, you can command metabolic irritation that sales opportunities to continual final results in the weight problems-similar difficulties.
Not only does certified good trade coffee and tea help ensure living wages and safe functioning circumstances for farmers, but TransFair and Rainforest Alliance both include things like demanding environmental benchmarks in their certification standards.
002 observed the launch of the S350, the major advance currently being the large stress steam jet enabling cappuccino and other frothy beverages to be made available. 2007 noticed the launch of the most recent model, the C400, compact with a trendy modern day retro glimpse with field top energy performance. With the start of this machine production was moved from Basingstoke to Shanghai, the filter pack production stays in Basingstoke.
Having said that, the approach of acquiring the espresso beans picked from their cherries, dried, processed, transported, packed and Last but not least put on the shelf for the buyer is a extended a person, and just about every day that passes is a different day your coffee has aged and dropped it is flavour.
Tocopherols in espresso have e Vitamin. Tocopherols in espresso act substantially like location phenols. Tocopherols functionality as anti-oxidants and plays a element in the development of carbohydrates and lipids. Tocopherols much more over guard cells in opposition to harm and wipe out absolutely free radicals in the human body. Tocopherols existing in espresso have become vital for ocular health and fitness, which affiliated with the perform of the human eye, and the pores and skin. Tocopherols have the potential to inhibit the rising of gallbladder and kidney stones and could possibly supply defense for you towards colon cancer.
Generally all coffee roasters are sensitive to your residence voltage. Roast on a circuit that isn't really staying made use of at the very same time you are roasting. You should not get puzzled. Dwelling roasters are not the same as industrial roasters they have to be allowed to amazing down in amongst batches or you could established off the thermal protection that will have to have the roaster to be reset by the company. You don't want that form of hassle.
Tags: Green Coffee Tone
## December252013
### The Place To Obtain Green Coffee Beans
Obtaining a coffee maker that works by using a reusable filter like a gold plated mesh display screen or stainless metal filter can get rid of the need to have for wasteful paper filters. Though, according to some, the use of reusable steel filters alterations the taste of the espresso. Unbleached cotton filters are reusable and keep coffee tasting as fantastic (if not superior in my belief) than metallic filters without making paper filter waste. Simply clean and dry the filters immediately after each use and you are great to go.
Hen Welcoming also refers to espresso beans that are grown in places that supply great hen habitats. Plantations that follow Chook Welcoming requirements should preserve tree canopies, deliver various species of crops and protect purely natural habitats for birds.
But I am empowering myself to now stick to a new extra fair weight loss program. I will much more strictly adhere to the Mediterranean Diet program, that contains far more greens, fruit, olive oil and fish--and decrease my carbs. And at the exact same time, develop into a "health and fitness center rat," and try out to training at my club routinely occasions a 7 days, be it swimming, yoga, or on the cardiovascular devices.
There are a large selection of connoisseur flavored coffees which includes mint, raspberry, vanilla, hazelnut, chocolate, and many other tasty varieties. When you are picking flavored espresso beans it can be a good thought to purchase large high-quality coffee beans. They cost much more than the standard flavored espresso beans, but ordinarily you will observe the greater taste that is provided with the top quality beans.
Folks are recommended SlimShots to shallow tri-system. This indicates that you have to acquire three doses in per day foundation. The formulation is manufactured up of diverse natural ingredients that start out functioning inside 5 minutes. Each and every components commences with your morning breakfast till your very last meal. The quite first dose consumed in the morning involves Green Coffee Tone Review (read this article), mate, meadowsweet, cherry stalk and green tea. Having said that, the prescription for noon is a ideal mix of cider vinegar, apple pectin, and guar gum. And lastly, the important ingredients in the evening include pineapple, grape marc extracts, chromium and orange pores and skin.
The Robusta espresso beans are generally developed in an natural environment that is a lot more humid as very well as hotter than the usual surroundings for the Arabica beans. The Robusta coffee beans are typically grown in Central The united states, parts of South The usa and the southeast portion of Asia. The Robusta beans are commonly blended with the beans from the Arabica trees. The blending offers a much more complex and richer flavor to connoisseur flavored espresso.
Possessing a great mill is just a very good remedy to establish your individual individual excellent tea. Naturally, it may be hard-to select the mill, but with the aid of the Web, you may perhaps read through opinions to be ready to identify which is the better for you. There are various good mills out there, you only have to have to see them.
A whole lot of folks depend on having their early morning stroll as a way to begin their day. Some really feel like they are unable to development, without first having their sit down in other places. Below are a couple of strategies to guarantee it is the prime of place. ought to you require good quality coffee.
### Green Coffee Bean Extract
Green Coffee Tone Free Trial
So, I have henceforth supplied up on the fad diet plan capsule that is the Green Coffee Tone Free Trial tablet. I have also resigned to give up any "wonder heal" to eliminate fat as perfectly. The aged adage that if it seems much too great to be real, then it is too superior to be real, is almost certainly the soundest science in relation to this trend diet program fiasco but.
"Natural and organic fat burners have now been gaining a good deal of reputation simply because they are protected and cost-free of part results. A few of commonly the most well-liked forms currently being encouraged by training experts now have garcinia cambogia, inexperienced espresso obtain and strawberry ketones. All a few of these are proven fat busters and appetite suppressants" claims a SlimmersExpert.co.united kingdom spokesperson.
Though there is no rating process for coffee makers like EnergyStar or Purchaser Reviews Environmentally friendly Selections, there are solutions readily available to people who want to decrease there affect on the earth by reducing the usage of electricity and disposable items that can fill up our landfills. Paper espresso filters are a disposable products that triggers an environmental effects and is not eco-helpful.
With a ruler, evaluate the width and size of the table top. Get rid of one/2" all all over from this measurement, and mark with a pencil on the A two Z Essentials "Paisley Stripe" Print Scrapbook Paper. Reduce the paper out in sections to cover the entire tabletop with a one/two" border of un-papered surface close to the edge. Implement a generous quantity of Mod Podge or other decoupage medium to the back again of the paper. Include an further amount of money to the table itself. Carefully press the paper to the table. Smooth out any bubbles by utilizing a popsicle adhere or your fingers. Permit the paper dry right away.
Straightforward fat reduction is hurriedly applied to goods we see on late evening television promising over weight males and women of all ages the fast take care of. Usually this kind of simple fat decline advertisements choose the form of an infomercial sometimes lasting as extended as a late night time movie.
One more review reveals that the anti-oxidants contained in espresso are a lot more effective than individuals coming from fruits and vegetables. This is for the reason that not all of the nutrition listed here have completed significantly to safeguard the unique from a variety of conditions.
GCB MAX or Purely natural Espresso Vegetable MAX is normally the most well-liked of all eco-friendly espresso fat reduction health supplements as a outcome of substantial amount of chlorogenic p in it. It incorporates 800 mg of genuine environmentally friendly espresso get with at the extremely least fifty% chlorogenic acid. This is a health supplement that might warranty bodyweight loss without diet plan and physical exercise. Persons have now been obtaining fantastic outcomes with it. Mixing it with food plan and work out is confirmed to make absolutely sure a lot faster excess fat decline.
Like many of us, the new calendar year represents a modify in our lives that we could be trying to get or striving to. If weight decline is your major precedence then like many, you have been hunting for a position to commence. No matter whether it's your poor feeding on behaviors, workout plan, or complement program, we are all even now hunting for that "miracle pill" that will allow us to hold indulging in substantial caloric foodstuff that are not useful to our well being in any way.
### Green Coffee Beans
green coffee tone tone pills from complete nutrition
Could green coffee tone tone pills from complete nutrition bean extract be the long-awaited pounds decline tremendous tablet? New study implies that this could certainly be the scenario, delivering a ray of hope for all people who have struggled to drop the additional lbs .. The purely natural electricity of green coffee extract could permit individuals to shed fat properly and successfully, with no necessitating a transform in exercise or consuming habits.
No. But what I find is that as well significantly saturation of a shade can have a damaging effect (like yellow and nausea) Most of the time it is subtle and you you should not know it is the space shade or the computer system display screen shade or or or... Intuitively your human body will take treatment of you, that blue place will create tranquil as lengthy as you will need tranquil established.
To be viewed as Natural or Accredited Natural and organic espresso, farmers escalating the product or service need to motivate use of renewable assets, and follow water and soil conservation. Espresso is grown without the need of pesticides or artificial fertilizers, and there is no use of genetic engineering.
Who realized that obtaining espresso can be so complicated? When it might get time to investigation and teach your self about eco-labels and their meanings, you will be greater off knowing the change a coffee buy can make.
The other individuals, which includes Antony Wild, a author of Black Gold, have advised a pounds and individuals mixed up in espresso market place get significantly in surplus because of to Rhinehart's estimates.
Bravi, Behmor, or Gene Caf are without a doubt the best drum roasters. Burman Coffee Trader Organization has carefully tested each espresso roaster and offered excellent facts with regards to the roasters. On their leading website you will discover the execs and cons regarding the use of these espresso roasters. These roasters are a bit far more high priced.
If you are in the commercial/industrial conclusion of the decorating/style and design company, what mood improving hues do the job greatest in a reception spot, an open place with a lot of workforce and the office environment of the CEO?
Method: The very first technique is dry system which is effortless. Commonly we use electric powered dry oven to dry the beans, and then take out the shells and peels. Right after impurity filtering, we can get the beans we can promote in the industry. The 2nd a person is soaked procedure which has the measures like clean, ferment, dry and so on. This process now is adopted in most planting parts.
## December242013
### How Lengthy Does It Just Take For Raspberry Ketone To Work
green coffee tone extracts; Suggested Web site,
This undertaking generally consists of spray paints and glues. As a result, it is best done in a nicely ventilated outdoors workspace that is protected with newspaper.
When you examine the Garcinia Cambogia assessments, you will likely opt for this product, if only for the reason that it would not artificially increase your metabolic level. This tends to make it far better for men and women with coronary heart difficulties or other wellness troubles, but of program you should normally communicate to your medical doctor right before starting any diet.
"The benefits ended up astounding" explained Dr. Oz, the men and women of all ages who eaten green coffee tone extracts; Suggested Web site, beans missing an ordinary of 17 lbs just about every - ten.5% of their in general overall body bodyweight & sixteen% of their human body body fat! as noticed a the latest "Dr. Oz" televised method.
In most instances, there are experiments that demonstrate that these products will perform, but you should not assume to be equipped to sit again on the sofa, consume potato chips, and check out the pounds just fall off. The dietary supplements only do element of the get the job done, and you will have to do the rest to truly get rid of a good deal of fat.
Drinking of SlimShots has been shown to assist minimize calorie ingestion with no leading to any detrimental aspect outcomes. You do truly feel hungry but not immensely. Far more so, it slashes in your hungry by eight hrs. This raises a sensation of satiety, the extended-expression outcome of a food. In this way, you develop into hungry again when food stuff is eaten at the subsequent food. This urge for food suppressant assists a excess weight management plan that involves wholesome calorie mindful foods.
GCB MAX or Natural Coffee Vegetable MAX is typically the most preferred of all eco-friendly espresso bodyweight loss health supplements as a end result of higher amount of chlorogenic p in it. It incorporates 800 mg of true green espresso receive with at the incredibly least 50% chlorogenic acid. This is a dietary supplement that may possibly guarantee pounds decline without the need of eating plan and exercise. People have now been locating good effects with it. Mixing it with diet program and exercise is tested to make confident significantly quicker excess fat reduction.
Nonetheless, thankfully, in the late 60s and 70s, there commenced a back again to the basics' movement. Men and women resorted to the forgotten and dead industry of coffee roasting once more. Espresso is the 2nd most traded commodity immediately after oil on earth. The proliferation of espresso shops and properties has achieved these huge proportions that sure neighborhoods have in fact placed a ban on any new espresso cafes.
## December222013
### Green Coffee Weight Reduction
green coffee tone extracts (Going At this website)
The fantasy that as well considerably coffee can lead to heart disease has been disproved by a group of scientists following conducting a lengthy research. They surmised that the correlation that experienced earlier existed amongst heart ailment and espresso drinkers can now be attributed to the fact that quite a few people who consume huge amounts of coffee also are likely to smoke and get small training. However, individuals with high blood tension are nonetheless encouraged to lessen coffee consumption. Coffee might also secure towards Parkinson's ailment, and maybe Alzheimer's condition.
Coffee should definitely be consumed in moderation, as described previously mentioned, to acquire the best gains. A honest volume of caffeine might improve psychological comprehension and consciousness. It's presently been recommended that espresso allows intellectual capacity and could lower the possibilities of the progress of Parkinson's disease and Alzheimer's ailment.. Due to the fact caffeine can basically raise the heart price and blood tension caffeine mightn't be rather wholesome for a handful of persons who have heart challenges. The caffeine in espresso may possibly also be contraindicated with particular medicines, such as stimulants or diuretics.
There are a lot of procedures prior to the espresso beans come to be the espresso that you drink. Initially, espresso seeds are planted in wealthy soil in get to improve a great good quality espresso plant. The seed will be taken care of for a long interval of time until it is totally developed and bears fruit. At the time the coffee plant bears fruit, the farmers wait until eventually the fruit is ripe before they start harvesting it. green coffee tone extracts (Going At this website) beans are then made. After all the coffee crops have been ripped of their fruits, the farmers will roast all the espresso beans. Just after they are all roasted in the ideal level, coffee beans are grinded into espresso powder. At the time pulverized, the resulting raw material will then be packed and is all set to be offered.
Coffees are priced from $1.eighty five to$three.00, espressos array in rate from $1.75 to$4.00, and ice blended coffee beverages commence at $4.50 and go up to$five.twenty five. Very hot chocolate or vanilla is readily available from $2.sixty five to$3.40. No sugar added drinks are also available.
Violet (which includes purple and indigo below) is about inspiration, intuition, spirituality. Younger little ones and artists like violet. It incorporates the power of purple with the qualities of blue, so it is a fantastic shade to have all over when you are seeking for that 'muse'. Medically it relates to troubles of the head, eyes, brow, pituitary.
The leaves of the espresso plant are massive and are glossy, darkish environmentally friendly. The espresso plant makes a pretty property plant. The espresso plant can develop to be a few toes tall.
Even though creating gourmand espresso the temperature that the beans ended up roasted at performs an critical position in the taste of the coffee. Europeans usually delight in darker types of coffee beans and Individuals seem to get pleasure from the lighter coloured beans. Connoisseur coffee beans will retain their freshness and flavor better when they are put in oxygen evidence bags. If you get pleasure from espresso there are various versions of gourmand flavored coffee that are obtainable.
## December132013
### Green Coffee Beans Body Weight Reduction
green Coffee Tone extracts
To be considered Organic and natural or Accredited Organic and natural coffee, farmers developing the solution must motivate use of renewable methods, and practice drinking water and soil conservation. Coffee is grown devoid of pesticides or artificial fertilizers, and there is no use of genetic engineering.
Just how green coffee tone extracts bean extract contributes to pounds loss is not well recognized. Researchers speculate that it may well velocity up metabolic process, reduce absorption of unwanted fat and glucose in the intestine, lessen insulin levels, or all of the previously mentioned. Substances identified as polyphenols, which are current in a wide variety of plants like the espresso bean, have lengthy been suspected to stimulate unwanted fat decline and may be the active substances selling these venues. On the other hand, deducing their correct system of motion will involve far more analysis.
Virtually 70 several years in the past, roasting coffee in the kitchen area at household was as substantially a component of the everyday routine of individuals as observing Television is ours now-a-days. Most of the folks at that time could not find the money for to purchase roasted coffee so they relished roasting coffee at house with the help of solid iron stoves, over their fireplaces or out on their porches. A coffee roasting store at that time was viewed as a luxury enjoyed only by the city neighborhood dwellers.
The draw back of working with a solitary serve espresso machine is the wasteful use of single provide packs when a number of users, family members or places of work use them. Improved electrical power intake is also an problem, but only if other people use the machine. Single provide coffee makers should be just that-one provide if you want them to be electrical power successful as doable.
Overview: Coffee bean belongs to rubiaceae spouse and children. It originates in tropical zone of Africa with 2000 decades planting history. By 525 BC, Arabs experienced now begun to plant coffee beans and just after fifteen century it commenced to be planted extensively. Then immediately after 18 century, this plant broadly dispersed in Europe, Asia, Africa and Latin The usa, getting the head of 3 beverage crops in the planet.
## November292013
### How To Make Flavored Coffee Beans
green coffee tone tone pills from complete nutrition (just click the following website)
Persons are approved SlimShots to shallow tri-formula. This indicates that you have to acquire three doses in for each day foundation. The formula is built up of distinct all-natural components that begin working within five minutes. Each individual formulation starts with your morning breakfast till your last meal. The quite to start with dose consumed in the early morning contains green coffee tone green tone pills from complete, mate, meadowsweet, cherry stalk and green tea. However, the prescription for midday is a excellent blend of cider vinegar, apple pectin, and guar gum. Last of all, the crucial ingredients in the night time incorporate pineapple, grape marc extracts, chromium and orange pores and skin.
If you are just commencing to conceive your personal label coffee program, Virtues will help you to offer, marketplace, and create your coffee product. Their dedicated and professional staff will acquire you all the way from the first strategy to the products stream. Based on what you want to offer you your prospects, Virtues can give you green coffee, fair-trade espresso, natural espresso, or whichever coffee profile you desire. You have to have just to ask, and Virtues will support you to define your application just the way your prospects will motivation it.
Having said that, luckily, in the late 60s and 70s, there started off a again to the basics' movement. People today resorted to the neglected and dead marketplace of espresso roasting once again. Coffee is the next most traded commodity following oil on earth. The proliferation of coffee stores and properties has attained such huge proportions that certain neighborhoods have actually put a ban on any new espresso cafes.
Dependent on how darkish you want your roast to be, the roasting procedure can just take from 6 to fifteen minutes or so. Also, the darker you roast your beans, the additional smoke you'll produce, so be certain you have satisfactory ventilation. The roasting approach creates chaff, which is the pores and skin of the beans staying drop. This can be messy if you're not organized.
In most conditions, there are reports that demonstrate that these products and solutions will function, but you shouldn't anticipate to be equipped to sit back again on the couch, eat potato chips, and observe the weight just drop off. The dietary supplements only do part of the perform, and you will have to do the rest to truly reduce a lot of excess weight.
Picking the best producer is significant to presenting an fantastic tea. You have to study what you need prior to going searching for it. There are various designers out there. Choosing the next marijuana could be hard, If you must be not definitely a enterprise loyalist. The mystery will be to come across out what factors you require it to very own. Are you seeking a computerized? What kind of filters would you like to-use? These are a handful of objects to look at in progress.
White is what I refer to as the 'Christ Light' it elevates any colour, so pastels are normally calming and take on the 'higher' attributes of the coloration it originates from, pink is nurturing and spiritual due to the fact it requires the passion and power of purple and clams it down to the nurturing features of pink. Exact with all the other colours. Black is what I refer to as a magnifier. Individuals that test to intimidate by carrying all black are actually just speaking that they need to have course! (Believe of ministers and clergymen on the lookout to God for route-have on black with a white collar) Black magnifies any bit of coloration that is with it, it absorbs all shade whereas white is reflecting all color.
Ingesting of SlimShots has been revealed to assist lower calorie ingestion without the need of leading to any destructive side effects. You do come to feel hungry but not immensely. A lot more so, it slashes in your hungry by eight several hours. This raises a emotion of satiety, the very long-phrase effect of a meal. In this way, you turn out to be hungry once more when foodstuff is eaten at the upcoming food. This hunger suppressant helps a body weight administration system that involves healthful calorie conscious foods.
Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.15978452563285828, "perplexity": 4893.181765600412}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-30/segments/1500549425352.73/warc/CC-MAIN-20170725182354-20170725202354-00613.warc.gz"} |
https://accessphysiotherapy.mhmedical.com/content.aspx?bookid=2460§ionid=193999253 | Skip to Main Content
×close section menu
## OBJECTIVES
By studying this chapter, you should be able to do the following:
1. Express work, power, and energy in standardized (SI) units and convert those units to others commonly used in exercise physiology.
2. Give a brief explanation of the procedure used to calculate work performed during step, cycle ergometer, and treadmill exercise.
3. Describe the concept behind the measurement of energy expenditure using (a) direct calorimetry and (b) indirect calorimetry.
4. Calculate the following expressions of energy expenditure when given the oxygen uptake in liters per minute: kcal · min−1, ml · kg−1 · min−1, METs, and kcal · kg−1 · hr−1.
5. Estimate energy expenditure during horizontal treadmill walking and running, and cycle ergometry.
6. Describe the procedure used to calculate net efficiency during steady-state exercise; distinguish efficiency from economy.
## OUTLINE
• Units of Measure 17
• Metric System 17
• SI Units 17
• Work and Power Defined 17
• Work 17
• Power 18
• Measurement of Work and Power 18
• Bench Step 18
• Cycle Ergometer 19
• Treadmill 20
• Measurement of Energy Expenditure 21
• Direct Calorimetry 21
• Indirect Calorimetry 22
• Common Expressions of Energy Expenditure 23
• Estimation of Energy Expenditure 24
• Calculation of Exercise Efficiency 25
• Factors That Influence Exercise Efficiency 26
• Running Economy 27
## KEY TERMS
cycle ergometer
direct calorimetry
ergometer
ergometry
indirect calorimetry
kilocalorie (kcal)
MET (metabolic equivalent)
net efficiency
open-circuit spirometry
percent grade
power
relative $V˙O2$
System International (SI) units work
## INTRODUCTION
How much energy do you expend when you run a mile? How fast can you run 100 m? How high can you jump? These questions deal with energy, speed, and explosive power—and so will you as you study exercise physiology. Throughout this text, we will discuss such terms as aerobic and anaerobic power, efficiency, work capacity, and energy expenditure. The purpose of this chapter is to introduce you to some of the most common pieces of equipment and measurements linked to these terms. It is very important to understand this information at the outset, as it is used throughout the text. However, the details associated with specific exercise tests for fitness and performance are covered in detail in Chaps. 15 and 20. Let’s begin with the most basic units of measurement.
## UNITS OF MEASURE
### Metric System
In the United States, the English system of measurement remains in common use. In contrast, the metric system, which is used in most countries, is the standard system of measurement for scientists and is used by almost ...
### Pop-up div Successfully Displayed
This div only appears when the trigger link is hovered over. Otherwise it is hidden from view. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 1, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8963408470153809, "perplexity": 4891.651284812581}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": false}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-43/segments/1634323585204.68/warc/CC-MAIN-20211018155442-20211018185442-00523.warc.gz"} |
https://www.bas.ac.uk/data/our-data/publication/estimates-of-structural-complexity-in-clonal-plant-morphology-comparisons-of/ | # Estimates of structural complexity in clonal plant morphology: comparisons of grazed and ungrazed Acaena magellanica rhizomes
The aim of this study is to examine the information given by various indices of rhizome morphology that describe grazed and ungrazed rhizome systems of Acaena magellanica (Rosaceae). Internode lengths, branching probabilities, and branching angles were estimated from grazed and ungrazed rhizomes in the field. These parameter values were then used in computer simulations of rhizome growth, and the structural complexity of the simulated rhizomes were described using size, topology, and fractal dimensions. Grazed rhizomes had shorter internodes, higher probabilities of branching, and more open branching angles than ungrazed rhizomes. This resulted in a more directional growth (herring-bone pattern) in the simulated ungrazed rhizomes, whereas the grazed rhizomes had a more space-filling growth pattern. Most indices, even though they are based on different mathematical and theoretical backgrounds, were highly correlated and thus equally good at describing the structural complexity exhibited by the rhizomes. However, indices have different relationships to theories about function, and we suggest that any study of structural complexity of branching systems should use several different indices of shape depending on the questions asked.Key words: Acaena magellanica, fractal dimension, grazing, growth simulation, topology.
### Details
Publication status:
Published
Author(s):
Authors: Moen, Jon, Ingvarsson, Pär K., Walton, David W.H. ORCID record for David W.H. Walton
Date:
1 January, 1999
Journal/Source:
Canadian Journal of Botany / 77
Page(s):
869-876
Digital Object Identifier (DOI):
https://doi.org/10.1139/b99-047 | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9172953367233276, "perplexity": 10049.409245487786}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2020-24/segments/1590347423915.42/warc/CC-MAIN-20200602064854-20200602094854-00059.warc.gz"} |
https://www.zzzdavid.tech/NAS/ | ## Overview
Neural Architecture Search, or NAS, can be seen as a subtask of AutoML. It tries to automate the designing process of neural network architectures. An architecture search space can be seen as a Directed Asyclic Graph (DAG), and each possible architecture is a subgraph. We denote the search space as $A$, the subgraph $a$, the searched neural network $N(a,w)$. The goals of NAS are often two-fold:
• Weight Optimization
• Architecture Optimization
The constraints are diverse: such as computation (FLOPS), speed (latency), or even energy consumption and memory usage.
## Surveys
### Neural Architecture Search: A Survey
NAS methods encompasses three sub-tasks: designing search space, select search strategy, and use proper estimation strategy.
#### Search Space
The search space defines what architectures are discoverable during search. Search space designs can be largely classified into global search space and cell-based search space.
• Global: chain-structured, chain-structured with skip, segment-based
• Cell-based
Global Search Space
##### Chain-Structured Search Space
The simplist form of search space. Parameters include: the number of layers, the type of layers, hyperparameters of the layers, e.g., number of filters, kernel sizes and strides for convolutional layer.
##### Chain-Structured with Skips
Obviously the idea comes from ResNet, DenseNet or Xception. The branching can be described with layer’s inputs as a function
Taking existing architectures for example, for chain-structured net, $g_i (L_{i-1}^{out}, ..., L_0^{out}) = L_{i-1}^{out}$. For ResNet, $g_i (L_{i-1}^{out}, ..., L_0^{out}) = L_{i-1}^{out} + L_j^{out}, (j < i-1)$. For DenseNet, $g_i (L_{i-1}^{out}, ..., L_0^{out}) = concat(L_{i-1}^{out},...,L_0^{out})$
##### Segment-based
Segment-based method is considered as a global search space design, but with another level of granularity: segment, or block.
Mnas Search Space
Taking Mnas as an example, the network layers are grouped into a many blocks. The skeleton constructed with blocks is predefined. Inside each block, there are a variable number of repeated layers. Blocks are not necessarily the the same, the layer amount and operations can be different.
#### Cell-based Structure
Cell-based architecture is a lot like the segment-based one. However, instead of searching the topology/hyperparameters of each block, cell-based approach defines several types of cells, then connects repeated cells in a pre-defined manner. In such ways, the search space is further downsized.
Illustration of the cell search space
(Zoph, 2018) defined two types of cell: normal cell or reduction cell. Normal cell preserves dimensionality while reduction cell reduces spatial dimensions.
The problem of cell-based structure is that the macro-architecture, i.e. the structure based on cells, are still manually designed. (Liu, 2018b) tried to overcome macro-architecture engineering by introducing hierarchical search space.
#### Search Strategy
##### Reinforcement Learning Strategy
Different RL approaches differ in how they represent the agent’s policy and how they optimize it.
• Architecture generation: agent’s action
• Search space: action space
• Evaluation: agent’s reward is based on an estimate of the performance.
Agent’s Policy:
• RNN policy: sequentially sample a string that encodes the architecture
Training method:
• Proximal Policy Optimization
• Q-learning
##### Neron-Evolutionary Strategy
Neuro-evolutionary methods differ in how they sample parents, udpate populations, and generate offsprings.
In the context of NAS, mutations are local operations, such as adding or removing a layer, altering the hyperparameters of a layer, adding skip connections.
(Liu, 2019b) proposed a continuous relaxation to enable direct gradient-based optimization: instead of fixing a single operation $o_i$ to be executed at a specific layer, the authors compute a convex combination from a set of operations ${o_1, ..., o_m}$. Given a layer input $x$, the layer output $y$ is computed as $y = \sum_{i=1}^m \alpha_i o_i(x)$, $(\alpha_i \geq 0, \sum_{i=1}^m \alpha_i = 1)$
#### Performance Estimation Strategy
Overview of different methods for speeding up performance estimation in NAS
• Lower Fidelity
The bias in the estimation is the gap between the full evaluation. This may not be problematic as only relative ranking is considered. But when the gap is large, the relative ranking may not be stable.
• Learning Curve Extrapolation or Surrogate Model
Using early learning curve of architecture information to extrapolate performance.
• Network Morphism
No inherent search space upper bound. However, strict netwrok morphisms can only make architectures larger, therefore leading to redundancy.
• One-Shot
Training only one supernet, so only validation is needed at evaluation stage. The supernet restricts the search space, and may be limited by GPU memory.
• ENAS learns a RNN controller that samples architectures from the search space and trains the one-shot model based on approximate gradients obtained through REINFORCE.
• DARTS jointly optimize all weights with a continuous relaxation of the search space.
• SNAS optimizes a distribution over the candidate operations. The authors employ the concrete distribution and reparameterization to relax the discrete distribution and make it differentiable.
• Proxyless NAS “binarizes” the weights, maksing out all but one edge per operation to overcome the necessity of keeping the entire supernet model in GPU memory.
It is currently not well understood which biases they introduce into the search if the sampling of distribution of architectures is optimized along with the one-shot model instead of fixing it. For example, an initial bias in exploring certain parts of the search space more than others might lead to the weights of the one-shot model being better adapted for these architectures, which in turn would reinforce the bias of the search to these parts in the search space. This might result in premature convergence of NAS or little correlation between the one-shot and true performance of an architecture.
#### Future Directions
1. Applying NAS to less explored domains, such as image restoration, semantic segmentation, transfer learning, machine translation, GAN, or sensor fusion.
2. Develop MAS methos for multi-task problems, and for multi-objective problems, such as latency and power optimization.
3. Universal NAS on different tasks. More general and flexible search space design.
4. Developing benchmarks.
While NAS has achieved impressive performance, so far it provides little insights into why specific architectures work well and how similar the architectures derived in indepen- dent runs would be. Identifying common motifs, providing an understanding why those motifs are important for high performance, and investigating if these motifs generalize over different problems would be desirable.
## Paper Summary
### Once-For-All: Train One Network and Specialize It For Efficient Deployment
#### Motivation
Designing a once-for-all network that flexibly supports different depths, widths, kernel sizes, and resolutions without retraining.
#### Contributions
• The model training stage and architecture search stage is decoupled.
• A progressive shrinking method to trian the supernet
• Authors: Shulin Zeng, Hanbo Sun, Yu Xing, Xuefei Ning, Yi Shan, Xiaoming Chen, Yu Wang, Huazhong Yang
• Venue: 2020 ASP-DAC
• Institution: Tsinghua University, and Institute of Computing Technology, Chinese Academy of Sciences
• Xplore: https://ieeexplore.ieee.org/document/9045179
#### Motivation
1. Designing a suitable search space for DNN accelerators is still challenging.
2. Evaluating latency across platforms with various architectures and compilers is hard because we don’t have prior knowlege of the hardware & compiler.
#### Contribution
1. A black-box search space tuning method for Instruction Set Architecture (ISA) accelerators.
2. A layer-adaptive latency correction method.
##### The Complete NAS Workflow
Entire NAS workflow
The magic happens in “Basenet Pool” and “Policy-aware Latency”, where the authors constructs a automatic search space design method. “Policy-aware Latency LUT” stands for an improved latency profiling method. Previous works use standalone block latency to build a LUT, ignoring inter-layer latency influences. Such influences are caused by compiler policies, such as “layer fusion” that combines layers to shorten latency. This new latency profiling method aims to take inter-layer latency dependencies into account without knowing the underlying compiler or hardware.
##### How to Optimize Search Space?
Search Space Optimization
SSBN: stands for Search Space Base Network. Based on a specific net from the Search Space, change at most one block at a time to get a SSBN. Because the original Search Space can be regarded as linear combination of SSBNs, this reduces complexity without harming degree of freedom.
Generating Basenet Pool: there are currently 3 types of mainstream hand-designed blocks: VGG, Res, and MobileNet-based. For each type the authors construct a Specified Network (SN), and obtain its SSBNs. All SSBNs together are the Basenet Pool.
Selecting Search Space: for each group of SSBNs, the authors design a cost function combining accuracy and latency. For each group of SSBNs, their costs are first calculated. After that, they are sorted in ascending w.r.t. the cost. A threshold defined by the user selects a range of
SSBNs that goes into the new search space. The new search space is much smaller.
##### How to Correct Block Latency?
The authors design two methods for latency correction. The first one uses overall network latency measurements to calculate the difference between standalone and actual block latency. The second one is a refinement of the first. It takes other block’s latency into account, thus more fine-grained.
• $L_{BNblock}(n,l)$ is the block latency we want to know.
• $n$ is the type of block. $l$ is the index of layer.
• $L_{SNblock}(l)$ is the standalone layer latency.
• $L_{SN}$ is the overal latency of the network.
• $L_{BN}(n,l)$ is the overall latency where the target block is substituted.
This one is difficult to understand.
$L$ is the number of layers (or blocks) in the network. The authors first create $L$ networks preserving the target block but the rest are all one particular type. Then within each of these “Specified Network”, our target block’s latency is measured with method 1. At last, the block latency measurements are averaged to get the estimated “candidate network (CN)” block latency. | {"extraction_info": {"found_math": true, "script_math_tex": 7, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.6045535206794739, "perplexity": 4083.161554515497}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2023-06/segments/1674764499758.83/warc/CC-MAIN-20230129180008-20230129210008-00043.warc.gz"} |
https://biblio.ugent.be/publication/1200772 | Ghent University Academic Bibliography
Subharmonic branching at a reversible 1:1 resonance
Maria-Cristina Ciocci (2005) 11(13). p.1119-1135
abstract
We investigate the bifurcation of q-periodic points from a fixed point of a 2-parameter family of n-dimensional reversible diffeomorphisms (n >= 4). The focus is on the codimension 2 non-semisimple 1:1 resonancecase, that is, when the linearization at the fixed point has a pair of double eigenvalues on the unit circle, exp (+/- 2i pi p/q) (with gcd(p, q) = 1), with geometric multiplicity 1. Through a modified version of Lyapunov Schmidt reduction, the reduced bifurcation equations are obtained. These are then analysed using reversible normal form theory and (reversible) singularity theory. We obtain the existence of two branches of symmetric q-periodic orbits bifurcating from the fixed point. We also describe the corresponding bifurcation scenario for a family of reversible systems in the case of a two-fold resonance, cfr. [ 12,5].
Please use this url to cite or link to this publication:
author
organization
year
type
journalArticle (original)
publication status
published
subject
keyword
reversible systems, subharmonic branching, reversible maps, 1:1 resonance, SYSTEMS, BIFURCATIONS, SYMMETRY
journal title
JOURNAL OF DIFFERENCE EQUATIONS AND APPLICATIONS
J. Differ. Equ. Appl.
volume
11
issue
13
pages
1119 - 1135
Web of Science type
Article
Web of Science id
000233870100002
JCR category
MATHEMATICS, APPLIED
JCR impact factor
0.615 (2005)
JCR rank
75/151 (2005)
JCR quartile
2 (2005)
ISSN
1023-6198
DOI
10.1080/10236190500331214
language
English
UGent publication?
no
classification
A1
id
1200772
handle
http://hdl.handle.net/1854/LU-1200772
date created
2011-03-31 15:40:29
date last changed
2016-12-19 15:37:59
```@article{1200772,
abstract = {We investigate the bifurcation of q-periodic points from a fixed point of a 2-parameter family of n-dimensional reversible diffeomorphisms (n {\textrangle}= 4). The focus is on the codimension 2 non-semisimple 1:1 resonancecase, that is, when the linearization at the fixed point has a pair of double eigenvalues on the unit circle, exp (+/- 2i pi p/q) (with gcd(p, q) = 1), with geometric multiplicity 1. Through a modified version of Lyapunov Schmidt reduction, the reduced bifurcation equations are obtained. These are then analysed using reversible normal form theory and (reversible) singularity theory. We obtain the existence of two branches of symmetric q-periodic orbits bifurcating from the fixed point. We also describe the corresponding bifurcation scenario for a family of reversible systems in the case of a two-fold resonance, cfr. [ 12,5].},
author = {Ciocci, Maria-Cristina},
issn = {1023-6198},
journal = {JOURNAL OF DIFFERENCE EQUATIONS AND APPLICATIONS},
keyword = {reversible systems,subharmonic branching,reversible maps,1:1 resonance,SYSTEMS,BIFURCATIONS,SYMMETRY},
language = {eng},
number = {13},
pages = {1119--1135},
title = {Subharmonic branching at a reversible 1:1 resonance},
url = {http://dx.doi.org/10.1080/10236190500331214},
volume = {11},
year = {2005},
}
```
Chicago
Ciocci, Maria-Cristina. 2005. “Subharmonic Branching at a Reversible 1:1 Resonance.” Journal of Difference Equations and Applications 11 (13): 1119–1135.
APA
Ciocci, M.-C. (2005). Subharmonic branching at a reversible 1:1 resonance. JOURNAL OF DIFFERENCE EQUATIONS AND APPLICATIONS, 11(13), 1119–1135.
Vancouver
1.
Ciocci M-C. Subharmonic branching at a reversible 1:1 resonance. JOURNAL OF DIFFERENCE EQUATIONS AND APPLICATIONS. 2005;11(13):1119–35.
MLA
Ciocci, Maria-Cristina. “Subharmonic Branching at a Reversible 1:1 Resonance.” JOURNAL OF DIFFERENCE EQUATIONS AND APPLICATIONS 11.13 (2005): 1119–1135. Print. | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8294590711593628, "perplexity": 6774.6800769348765}, "config": {"markdown_headings": false, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.3, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-22/segments/1526794863662.15/warc/CC-MAIN-20180520170536-20180520190536-00030.warc.gz"} |
https://txt.binnyva.com/2007/05/extracting-daa-image-files/ | 25 May
I once got a DAA file from a P2P network. Initally I was at a lose about how to extract the data. Finally I found a method that works. First get the ‘poweriso’ utilty for Linux. You can get it at the PowerISO website
Then convert the DAA file to a regular ISO file using this command…
poweriso convert daa_image.daa -o iso_image.iso -ot iso
[tags]iso,daa,image,poweriso,command,linux[/tags]
## One thought on “Extracting DAA Image Files”
1. magicISO is a better tool for extracting any kind of image file… | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.33232665061950684, "perplexity": 8604.814426594568}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2020-45/segments/1603107912807.78/warc/CC-MAIN-20201031032847-20201031062847-00498.warc.gz"} |
http://gmatclub.com/forum/how-much-time-is-needed-to-do-well-in-ir-155398.html | Find all School-related info fast with the new School-Specific MBA Forum
It is currently 28 Apr 2015, 03:02
### GMAT Club Daily Prep
#### Thank you for using the timer - this advanced tool can estimate your performance and suggest more practice questions. We have subscribed you to Daily Prep Questions via email.
Customized
for You
we will pick new questions that match your level based on your Timer History
Track
every week, we’ll send you an estimated GMAT score based on your performance
Practice
Pays
we will pick new questions that match your level based on your Timer History
# Events & Promotions
###### Events & Promotions in June
Open Detailed Calendar
# How much time is needed to do well in IR?
Author Message
Manager
Joined: 09 Jul 2012
Posts: 60
Followers: 0
Kudos [?]: 13 [0], given: 29
How much time is needed to do well in IR? [#permalink] 04 Jul 2013, 09:10
I am scoring 48-49 in quant and 40+ in verbal section on the GMAT Prep test. I want to schedule the exam but I haven't started studying for IR section. So my question is, how much time and effort is needed to do well on this section? I would be happy with 6 or more.
Thanks.
Kaplan Promo Code Knewton GMAT Discount Codes GMAT Pill GMAT Discount Codes
Math Expert
Joined: 02 Sep 2009
Posts: 27123
Followers: 4199
Kudos [?]: 40543 [1] , given: 5540
Re: How much time is needed to do well in IR? [#permalink] 04 Jul 2013, 09:30
1
KUDOS
Expert's post
Baracuda123 wrote:
I am scoring 48-49 in quant and 40+ in verbal section on the GMAT Prep test. I want to schedule the exam but I haven't started studying for IR section. So my question is, how much time and effort is needed to do well on this section? I would be happy with 6 or more.
Thanks.
Check this video.
The 150 Hours Rule of Thumb
"One of the most fundamental concepts to understand about your GMAT prep is how much time you'll need to devote to your studies. Prior to the recent test change, which saw the inclusion of the Integrated Reasoning section into the GMAT, we recommended 100-120 hours of prep time in order to achieve a 700+ score. With the new section added, however, and the extra skills study that goes along with it, we recommend devoting 120-150 hours of prep time to land that same sort of score."
From it follows that from total of 120-150 hours of preparation you should spend approximately 30 hours or more learning about integrated reasoning data sets and the new question types that accompany them.
Hope it helps.
_________________
Manager
Joined: 09 Jul 2012
Posts: 60
Followers: 0
Kudos [?]: 13 [0], given: 29
Re: How much time is needed to do well in IR? [#permalink] 05 Jul 2013, 06:20
Bunuel wrote:
Baracuda123 wrote:
I am scoring 48-49 in quant and 40+ in verbal section on the GMAT Prep test. I want to schedule the exam but I haven't started studying for IR section. So my question is, how much time and effort is needed to do well on this section? I would be happy with 6 or more.
Thanks.
Check this video.
The 150 Hours Rule of Thumb
"One of the most fundamental concepts to understand about your GMAT prep is how much time you'll need to devote to your studies. Prior to the recent test change, which saw the inclusion of the Integrated Reasoning section into the GMAT, we recommended 100-120 hours of prep time in order to achieve a 700+ score. With the new section added, however, and the extra skills study that goes along with it, we recommend devoting 120-150 hours of prep time to land that same sort of score."
From it follows that from total of 12-150 hours of preparation you should spend approximately 30 hours or more learning about integrated reasoning data sets and the new question types that accompany them.
Hope it helps.
Gotcha, thanks!
Re: How much time is needed to do well in IR? [#permalink] 05 Jul 2013, 06:20
Similar topics Replies Last post
Similar
Topics:
How much time for IR+AWA? 6 20 Jan 2014, 12:09
How much time do you have after acceptances to accept offer? 4 04 Jul 2011, 19:46
How much do \$ do you need beyond loans? 1 31 May 2011, 18:00
1 How much time do I need to prepare for the AWA? 1 09 Apr 2010, 09:02
How Much Time do you spending reviewing error Log 1 03 Dec 2007, 17:23
Display posts from previous: Sort by | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.5122868418693542, "perplexity": 2823.7843465506153}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-18/segments/1429246661095.66/warc/CC-MAIN-20150417045741-00030-ip-10-235-10-82.ec2.internal.warc.gz"} |
https://www.aimsciences.org/article/doi/10.3934/dcds.2013.33.4157 | # American Institute of Mathematical Sciences
• Previous Article
Endomorphisms of Sturmian systems and the discrete chair substitution tiling system
• DCDS Home
• This Issue
• Next Article
The metric entropy of random dynamical systems in a Hilbert space: Characterization of invariant measures satisfying Pesin's entropy formula
September 2013, 33(9): 4157-4171. doi: 10.3934/dcds.2013.33.4157
## Simple skew category algebras associated with minimal partially defined dynamical systems
1 University West, Department of Engineering Science, SE-46186 Trollhättan, Sweden 2 Department of Mathematical Sciences, University of Copenhagen, Universitetsparken 5, DK-2100 Copenhagen Ø, Denmark
Received June 2012 Revised February 2013 Published March 2013
In this article, we continue our study of category dynamical systems, that is functors $s$ from a category $G$ to $Top^{op}$, and their corresponding skew category algebras. Suppose that the spaces $s(e)$, for $e ∈ ob(G)$, are compact Hausdorff. We show that if (i) the skew category algebra is simple, then (ii) $G$ is inverse connected, (iii) $s$ is minimal and (iv) $s$ is faithful. We also show that if $G$ is a locally abelian groupoid, then (i) is equivalent to (ii), (iii) and (iv). Thereby, we generalize results by Öinert for skew group algebras to a large class of skew category algebras.
Citation: Patrik Nystedt, Johan Öinert. Simple skew category algebras associated with minimal partially defined dynamical systems. Discrete & Continuous Dynamical Systems, 2013, 33 (9) : 4157-4171. doi: 10.3934/dcds.2013.33.4157
##### References:
[1] R. J. Archbold and J. S. Spielberg, Topologically free actions and ideals in discrete $C^*$-dynamical systems, Proc. of Edinburgh Math. Soc. (2), 37 (1993), 119-124. doi: 10.1017/S0013091500018733. Google Scholar [2] B. Blackadar, "Operator Algebras. Theory of $C^*$-Algebras and von Neumann Algebras," Encyclopaedia of Mathematical Sciences, 122, Operator Algebras and Non-commutative Geometry, III, Springer-Verlag, Berlin, 2006. Google Scholar [3] K. R. Davidson, "$C^*$-Algebras by Example," Fields Institute Monographs, 6, American Mathematical Society, Providence, RI, 1996. Google Scholar [4] E. G. Effros and F. Hahn, "Locally Compact Transformation Groups and $C^*$-Algebras," Memoirs of the American Mathematical Society, No. 75, American Mathematical Society, Providence RI, 1967. Google Scholar [5] G. A. Elliott, Some simple $C^*$-algebras constructed as crossed products with discrete outer automorphism groups, Publ. Res. Inst. Math. Sci., 16 (1980), 299-311. doi: 10.2977/prims/1195187509. Google Scholar [6] R. Exel and A. Vershik, C*-algebras of irreversible dynamical systems, Canad. J. Math., 58 (2006), 39-63. doi: 10.4153/CJM-2006-003-x. Google Scholar [7] S. Kawamura and J. Tomiyama, Properties of topological dynamical systems and corresponding $C^*$-algebras, Tokyo. J. Math., 13 (1990), 251-257. doi: 10.3836/tjm/1270132260. Google Scholar [8] A. Kishimoto, Outer automorphisms and reduced crossed products of simple $C^*$-algebras, Comm. Math. Phys., 81 (1981), 429-435. Google Scholar [9] G. Liu and F. Li, On strongly groupoid graded rings and the corresponding Clifford theorem, Algebra Colloq., 13 (2006), 181-196. Google Scholar [10] P. Lundström, Separable groupoid rings, Comm. Algebra, 34 (2006), 3029-3041. doi: 10.1080/00927870600639906. Google Scholar [11] P. Lundström and J. Öinert, Skew category algebras associated with partially defined dynamical systems, Internat. J. Math., 23 (2012), 1250040, 16 pp. doi: 10.1142/S0129167X12500401. Google Scholar [12] T. Masuda, Groupoid dynamical systems and crossed product. I. The case of W*-systems, Publ. Res. Inst. Math. Sci., 20 (1984), 929-957. doi: 10.2977/prims/1195180873. Google Scholar [13] T. Masuda, Groupoid dynamical systems and crossed product. II. The case of C*-systems, Publ. Res. Inst. Math. Sci., 20 (1984), 959-970. doi: 10.2977/prims/1195180874. Google Scholar [14] J. R. Munkres, "Topology," $2^{nd}$ edition, Prentice-Hall, Inc., Englewood Cliffs, NJ, 2000. Google Scholar [15] F. J. Murray and J. von Neumann, On rings of operators, Ann. of Math. (2), 37 (1936), 116-229. doi: 10.2307/1968693. Google Scholar [16] F. J. Murray and J. von Neumann, On rings of operators. IV, Ann. of Math. (2), 44 (1943), 716-808. Google Scholar [17] J. von Neumann, "Collected Works. Vol. III: Rings of Operators," Pergamon Press, New York-Oxford-London-Paris, 1961. Google Scholar [18] J. Öinert, Simple group graded rings and maximal commutativity, in "Operator Structures and Dynamical Systems," Contemporary Mathematics, 503, American Mathematical Society, Providence, RI, (2009), 159-175. doi: 10.1090/conm/503/09899. Google Scholar [19] J. Öinert and P. Lundström, Commutativity and ideals in category crossed products, Proc. Est. Acad. Sci., 59 (2010), 338-346. doi: 10.3176/proc.2010.4.13. Google Scholar [20] J. Öinert and P. Lundström, The ideal intersection property for groupoid graded rings, Comm. Algebra, 40 (2012), 1860-1871. doi: 10.1080/00927872.2011.559181. Google Scholar [21] J. Öinert and P. Lundström, Miyashita action in strongly groupoid graded rings, Int. Electron. J. Algebra, 11 (2012), 46-63. Google Scholar [22] J. Öinert, J. Richter and S. D. Silvestrov, Maximal commutative subalgebras and simplicity of Ore extensions, J. Algebra Appl., 12 (2013), 1250192, 16 pp. doi: 10.1142/S0219498812501927. Google Scholar [23] J. Öinert and S. D. Silvestrov, Commutativity and ideals in algebraic crossed products, J. Gen. Lie T. Appl., 2 (2008), 287-302. doi: 10.4303/jglta/S070404. Google Scholar [24] J. Öinert and S. D. Silvestrov, On a correspondence between ideals and commutativity in algebraic crossed products, J. Gen. Lie T. Appl., 2 (2008), 216-220. Google Scholar [25] J. Öinert and S. D. Silvestrov, Crossed product-like and pre-crystalline graded rings, in "Generalized Lie Theory in Mathematics, Physics and Beyond" (eds. S. Silvestrov, E. Paal, V. Abramov and A. Stolin), Springer, Berlin, (2009), 281-296. doi: 10.1007/978-3-540-85332-9_24. Google Scholar [26] J. Öinert, S. Silvestrov, T. Theohari-Apostolidi and H. Vavatsoulas, Commutativity and ideals in strongly graded rings, Acta Appl. Math., 108 (2009), 585-602. doi: 10.1007/s10440-009-9435-3. Google Scholar [27] J. Öinert, Simplicity of skew group rings of abelian groups,, to appear in Communications in Algebra, (). Google Scholar [28] A. L. T. Paterson, "Groupoids, Inverse Semigroups, and their Operator Algebras," Progress in Mathematics, 170, Birkhäuser Boston, Inc., Boston, MA, 1999. Google Scholar [29] G. K. Pedersen, "$C^*$-algebras and their Automorphism Groups," London Mathematical Society Monographs, 14, Academic Press, Inc. [Harcourt Brace Jovanovich, Publishers], London-New York, 1979. Google Scholar [30] S. C. Power, Simplicity of $C^*$-algebras of minimal dynamical systems, J. London Math. Soc. (2), 18 (1978), 534-538. doi: 10.1112/jlms/s2-18.3.534. Google Scholar [31] J. C. Quigg and J. S. Spielberg, Regularity and hyporegularity in $C^*$-dynamical system, Houston J. Math., 18 (1992), 139-152. Google Scholar [32] J. S. Spielberg, Free-product groups, Cuntz-Krieger algebras, and covariant maps, Internat. J. Math., 2 (1991), 457-476. doi: 10.1142/S0129167X91000260. Google Scholar [33] C. Svensson, S. Silvestrov and M. de Jeu, Dynamical systems and commutants in crossed products, Internat. J. Math., 18 (2007), 455-471. doi: 10.1142/S0129167X07004217. Google Scholar [34] C. Svensson, S. Silvestrov and M. de Jeu, Connections between dynamical systems and crossed products of Banach algebras by $\mathbbZ$, in "Methods of Spectral Analysis in Mathematical Physics," Operator Theory: Advances and Applications, 186, Birkhäuser Verlag, (2009), 391-401. doi: 10.1007/978-3-7643-8755-6_19. Google Scholar [35] C. Svensson, S. Silvestrov and M. de Jeu, Dynamical systems associated with crossed products, Acta Appl. Math., 108 (2009), 547-559. doi: 10.1007/s10440-009-9506-5. Google Scholar [36] M. Takesaki, "Theory of Operator Algebras. II," Encyclopaedia of Mathematical Sciences, 125, Operator Algebras and Non-Commutative Geometry, 6, Springer-Verlag, Berlin, 2003. Google Scholar [37] J. Tomiyama, "Invitation to $C^*$-Algebras and Topological Dynamics," World Scientific Advanced Series in Dynamical Systems, 3, World Scientific Publishing Co., Singapore, 1987. Google Scholar [38] J. Tomiyama, "The Interplay Between Topological Dynamics and Theory of $C^*$-Algebras," Lecture Notes Series, 2, Seoul National University, Research Institute of Mathematics, Global Anal. Research Center, Seoul, 1992. Google Scholar [39] D. P. Williams, "Crossed Products of $C^*$-Algebras," Mathematical Surveys and Monographs, 134, American Mathematical Society, Providence, RI, 2007. Google Scholar [40] G. Zeller-Meier, Produits croisés d'une $C^*$-algèbre par un groupe d'automorphismes, J. Math. Pures Appl. (9), 47 (1968), 101-239. Google Scholar
show all references
##### References:
[1] R. J. Archbold and J. S. Spielberg, Topologically free actions and ideals in discrete $C^*$-dynamical systems, Proc. of Edinburgh Math. Soc. (2), 37 (1993), 119-124. doi: 10.1017/S0013091500018733. Google Scholar [2] B. Blackadar, "Operator Algebras. Theory of $C^*$-Algebras and von Neumann Algebras," Encyclopaedia of Mathematical Sciences, 122, Operator Algebras and Non-commutative Geometry, III, Springer-Verlag, Berlin, 2006. Google Scholar [3] K. R. Davidson, "$C^*$-Algebras by Example," Fields Institute Monographs, 6, American Mathematical Society, Providence, RI, 1996. Google Scholar [4] E. G. Effros and F. Hahn, "Locally Compact Transformation Groups and $C^*$-Algebras," Memoirs of the American Mathematical Society, No. 75, American Mathematical Society, Providence RI, 1967. Google Scholar [5] G. A. Elliott, Some simple $C^*$-algebras constructed as crossed products with discrete outer automorphism groups, Publ. Res. Inst. Math. Sci., 16 (1980), 299-311. doi: 10.2977/prims/1195187509. Google Scholar [6] R. Exel and A. Vershik, C*-algebras of irreversible dynamical systems, Canad. J. Math., 58 (2006), 39-63. doi: 10.4153/CJM-2006-003-x. Google Scholar [7] S. Kawamura and J. Tomiyama, Properties of topological dynamical systems and corresponding $C^*$-algebras, Tokyo. J. Math., 13 (1990), 251-257. doi: 10.3836/tjm/1270132260. Google Scholar [8] A. Kishimoto, Outer automorphisms and reduced crossed products of simple $C^*$-algebras, Comm. Math. Phys., 81 (1981), 429-435. Google Scholar [9] G. Liu and F. Li, On strongly groupoid graded rings and the corresponding Clifford theorem, Algebra Colloq., 13 (2006), 181-196. Google Scholar [10] P. Lundström, Separable groupoid rings, Comm. Algebra, 34 (2006), 3029-3041. doi: 10.1080/00927870600639906. Google Scholar [11] P. Lundström and J. Öinert, Skew category algebras associated with partially defined dynamical systems, Internat. J. Math., 23 (2012), 1250040, 16 pp. doi: 10.1142/S0129167X12500401. Google Scholar [12] T. Masuda, Groupoid dynamical systems and crossed product. I. The case of W*-systems, Publ. Res. Inst. Math. Sci., 20 (1984), 929-957. doi: 10.2977/prims/1195180873. Google Scholar [13] T. Masuda, Groupoid dynamical systems and crossed product. II. The case of C*-systems, Publ. Res. Inst. Math. Sci., 20 (1984), 959-970. doi: 10.2977/prims/1195180874. Google Scholar [14] J. R. Munkres, "Topology," $2^{nd}$ edition, Prentice-Hall, Inc., Englewood Cliffs, NJ, 2000. Google Scholar [15] F. J. Murray and J. von Neumann, On rings of operators, Ann. of Math. (2), 37 (1936), 116-229. doi: 10.2307/1968693. Google Scholar [16] F. J. Murray and J. von Neumann, On rings of operators. IV, Ann. of Math. (2), 44 (1943), 716-808. Google Scholar [17] J. von Neumann, "Collected Works. Vol. III: Rings of Operators," Pergamon Press, New York-Oxford-London-Paris, 1961. Google Scholar [18] J. Öinert, Simple group graded rings and maximal commutativity, in "Operator Structures and Dynamical Systems," Contemporary Mathematics, 503, American Mathematical Society, Providence, RI, (2009), 159-175. doi: 10.1090/conm/503/09899. Google Scholar [19] J. Öinert and P. Lundström, Commutativity and ideals in category crossed products, Proc. Est. Acad. Sci., 59 (2010), 338-346. doi: 10.3176/proc.2010.4.13. Google Scholar [20] J. Öinert and P. Lundström, The ideal intersection property for groupoid graded rings, Comm. Algebra, 40 (2012), 1860-1871. doi: 10.1080/00927872.2011.559181. Google Scholar [21] J. Öinert and P. Lundström, Miyashita action in strongly groupoid graded rings, Int. Electron. J. Algebra, 11 (2012), 46-63. Google Scholar [22] J. Öinert, J. Richter and S. D. Silvestrov, Maximal commutative subalgebras and simplicity of Ore extensions, J. Algebra Appl., 12 (2013), 1250192, 16 pp. doi: 10.1142/S0219498812501927. Google Scholar [23] J. Öinert and S. D. Silvestrov, Commutativity and ideals in algebraic crossed products, J. Gen. Lie T. Appl., 2 (2008), 287-302. doi: 10.4303/jglta/S070404. Google Scholar [24] J. Öinert and S. D. Silvestrov, On a correspondence between ideals and commutativity in algebraic crossed products, J. Gen. Lie T. Appl., 2 (2008), 216-220. Google Scholar [25] J. Öinert and S. D. Silvestrov, Crossed product-like and pre-crystalline graded rings, in "Generalized Lie Theory in Mathematics, Physics and Beyond" (eds. S. Silvestrov, E. Paal, V. Abramov and A. Stolin), Springer, Berlin, (2009), 281-296. doi: 10.1007/978-3-540-85332-9_24. Google Scholar [26] J. Öinert, S. Silvestrov, T. Theohari-Apostolidi and H. Vavatsoulas, Commutativity and ideals in strongly graded rings, Acta Appl. Math., 108 (2009), 585-602. doi: 10.1007/s10440-009-9435-3. Google Scholar [27] J. Öinert, Simplicity of skew group rings of abelian groups,, to appear in Communications in Algebra, (). Google Scholar [28] A. L. T. Paterson, "Groupoids, Inverse Semigroups, and their Operator Algebras," Progress in Mathematics, 170, Birkhäuser Boston, Inc., Boston, MA, 1999. Google Scholar [29] G. K. Pedersen, "$C^*$-algebras and their Automorphism Groups," London Mathematical Society Monographs, 14, Academic Press, Inc. [Harcourt Brace Jovanovich, Publishers], London-New York, 1979. Google Scholar [30] S. C. Power, Simplicity of $C^*$-algebras of minimal dynamical systems, J. London Math. Soc. (2), 18 (1978), 534-538. doi: 10.1112/jlms/s2-18.3.534. Google Scholar [31] J. C. Quigg and J. S. Spielberg, Regularity and hyporegularity in $C^*$-dynamical system, Houston J. Math., 18 (1992), 139-152. Google Scholar [32] J. S. Spielberg, Free-product groups, Cuntz-Krieger algebras, and covariant maps, Internat. J. Math., 2 (1991), 457-476. doi: 10.1142/S0129167X91000260. Google Scholar [33] C. Svensson, S. Silvestrov and M. de Jeu, Dynamical systems and commutants in crossed products, Internat. J. Math., 18 (2007), 455-471. doi: 10.1142/S0129167X07004217. Google Scholar [34] C. Svensson, S. Silvestrov and M. de Jeu, Connections between dynamical systems and crossed products of Banach algebras by $\mathbbZ$, in "Methods of Spectral Analysis in Mathematical Physics," Operator Theory: Advances and Applications, 186, Birkhäuser Verlag, (2009), 391-401. doi: 10.1007/978-3-7643-8755-6_19. Google Scholar [35] C. Svensson, S. Silvestrov and M. de Jeu, Dynamical systems associated with crossed products, Acta Appl. Math., 108 (2009), 547-559. doi: 10.1007/s10440-009-9506-5. Google Scholar [36] M. Takesaki, "Theory of Operator Algebras. II," Encyclopaedia of Mathematical Sciences, 125, Operator Algebras and Non-Commutative Geometry, 6, Springer-Verlag, Berlin, 2003. Google Scholar [37] J. Tomiyama, "Invitation to $C^*$-Algebras and Topological Dynamics," World Scientific Advanced Series in Dynamical Systems, 3, World Scientific Publishing Co., Singapore, 1987. Google Scholar [38] J. Tomiyama, "The Interplay Between Topological Dynamics and Theory of $C^*$-Algebras," Lecture Notes Series, 2, Seoul National University, Research Institute of Mathematics, Global Anal. Research Center, Seoul, 1992. Google Scholar [39] D. P. Williams, "Crossed Products of $C^*$-Algebras," Mathematical Surveys and Monographs, 134, American Mathematical Society, Providence, RI, 2007. Google Scholar [40] G. Zeller-Meier, Produits croisés d'une $C^*$-algèbre par un groupe d'automorphismes, J. Math. Pures Appl. (9), 47 (1968), 101-239. Google Scholar
[1] Søren Eilers. C *-algebras associated to dynamical systems. Discrete & Continuous Dynamical Systems, 2006, 15 (1) : 177-192. doi: 10.3934/dcds.2006.15.177 [2] Santiago Cañez. Double groupoids and the symplectic category. Journal of Geometric Mechanics, 2018, 10 (2) : 217-250. doi: 10.3934/jgm.2018009 [3] El Houcein El Abdalaoui, Sylvain Bonnot, Ali Messaoudi, Olivier Sester. On the Fibonacci complex dynamical systems. Discrete & Continuous Dynamical Systems, 2016, 36 (5) : 2449-2471. doi: 10.3934/dcds.2016.36.2449 [4] Lianfa He, Hongwen Zheng, Yujun Zhu. Shadowing in random dynamical systems. Discrete & Continuous Dynamical Systems, 2005, 12 (2) : 355-362. doi: 10.3934/dcds.2005.12.355 [5] Mauricio Achigar. Extensions of expansive dynamical systems. Discrete & Continuous Dynamical Systems, 2021, 41 (7) : 3093-3108. doi: 10.3934/dcds.2020399 [6] Fritz Colonius, Marco Spadini. Fundamental semigroups for dynamical systems. Discrete & Continuous Dynamical Systems, 2006, 14 (3) : 447-463. doi: 10.3934/dcds.2006.14.447 [7] John Erik Fornæss. Sustainable dynamical systems. Discrete & Continuous Dynamical Systems, 2003, 9 (6) : 1361-1386. doi: 10.3934/dcds.2003.9.1361 [8] Vieri Benci, C. Bonanno, Stefano Galatolo, G. Menconi, M. Virgilio. Dynamical systems and computable information. Discrete & Continuous Dynamical Systems - B, 2004, 4 (4) : 935-960. doi: 10.3934/dcdsb.2004.4.935 [9] Mădălina Roxana Buneci. Morphisms of discrete dynamical systems. Discrete & Continuous Dynamical Systems, 2011, 29 (1) : 91-107. doi: 10.3934/dcds.2011.29.91 [10] Josiney A. Souza, Tiago A. Pacifico, Hélio V. M. Tozatti. A note on parallelizable dynamical systems. Electronic Research Announcements, 2017, 24: 64-67. doi: 10.3934/era.2017.24.007 [11] Philippe Marie, Jérôme Rousseau. Recurrence for random dynamical systems. Discrete & Continuous Dynamical Systems, 2011, 30 (1) : 1-16. doi: 10.3934/dcds.2011.30.1 [12] Tobias Wichtrey. Harmonic limits of dynamical systems. Conference Publications, 2011, 2011 (Special) : 1432-1439. doi: 10.3934/proc.2011.2011.1432 [13] David Burguet, Todd Fisher. Symbolic extensionsfor partially hyperbolic dynamical systems with 2-dimensional center bundle. Discrete & Continuous Dynamical Systems, 2013, 33 (6) : 2253-2270. doi: 10.3934/dcds.2013.33.2253 [14] Xinsheng Wang, Weisheng Wu, Yujun Zhu. Local unstable entropy and local unstable pressure for random partially hyperbolic dynamical systems. Discrete & Continuous Dynamical Systems, 2020, 40 (1) : 81-105. doi: 10.3934/dcds.2020004 [15] Xavier Brusset, Per J. Agrell. Intrinsic impediments to category captainship collaboration. Journal of Industrial & Management Optimization, 2017, 13 (1) : 113-133. doi: 10.3934/jimo.2016007 [16] Alan Weinstein. A note on the Wehrheim-Woodward category. Journal of Geometric Mechanics, 2011, 3 (4) : 507-515. doi: 10.3934/jgm.2011.3.507 [17] Yejuan Wang, Chengkui Zhong, Shengfan Zhou. Pullback attractors of nonautonomous dynamical systems. Discrete & Continuous Dynamical Systems, 2006, 16 (3) : 587-614. doi: 10.3934/dcds.2006.16.587 [18] Alexander Sakhnovich. Dynamical canonical systems and their explicit solutions. Discrete & Continuous Dynamical Systems, 2017, 37 (3) : 1679-1689. doi: 10.3934/dcds.2017069 [19] Bernd Aulbach, Martin Rasmussen, Stefan Siegmund. Approximation of attractors of nonautonomous dynamical systems. Discrete & Continuous Dynamical Systems - B, 2005, 5 (2) : 215-238. doi: 10.3934/dcdsb.2005.5.215 [20] Jérôme Rousseau, Paulo Varandas, Yun Zhao. Entropy formulas for dynamical systems with mistakes. Discrete & Continuous Dynamical Systems, 2012, 32 (12) : 4391-4407. doi: 10.3934/dcds.2012.32.4391
2019 Impact Factor: 1.338 | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.7605360150337219, "perplexity": 4589.99978934119}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-25/segments/1623487611089.19/warc/CC-MAIN-20210613222907-20210614012907-00336.warc.gz"} |
https://www.isa-afp.org/entries/Hoare_Time.html | # Hoare Logics for Time Bounds
Title: Hoare Logics for Time Bounds Authors: Maximilian P. L. Haslbeck and Tobias Nipkow Submission date: 2018-02-26 Abstract: We study three different Hoare logics for reasoning about time bounds of imperative programs and formalize them in Isabelle/HOL: a classical Hoare like logic due to Nielson, a logic with potentials due to Carbonneaux et al. and a separation logic following work by Atkey, Chaguérand and Pottier. These logics are formally shown to be sound and complete. Verification condition generators are developed and are shown sound and complete too. We also consider variants of the systems where we abstract from multiplicative constants in the running time bounds, thus supporting a big-O style of reasoning. Finally we compare the expressive power of the three systems. BibTeX: ```@article{Hoare_Time-AFP, author = {Maximilian P. L. Haslbeck and Tobias Nipkow}, title = {Hoare Logics for Time Bounds}, journal = {Archive of Formal Proofs}, month = feb, year = 2018, note = {\url{http://isa-afp.org/entries/Hoare_Time.html}, Formal proof development}, ISSN = {2150-914x}, }``` License: BSD License Depends on: Separation_Algebra | {"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9737182855606079, "perplexity": 2183.2951503502686}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-13/segments/1521257650188.31/warc/CC-MAIN-20180324093251-20180324113251-00304.warc.gz"} |
http://eprint.iacr.org/2003/195 | Cryptology ePrint Archive: Report 2003/195
Public Key Encryption with keyword Search
Dan Boneh and Giovanni Di Crescenzo and Rafail Ostrovsky and Giuseppe Persiano
Abstract: We study the problem of searching on data that is encrypted using a public key system. Consider user Bob who sends email to user Alice encrypted under Alice's public key. An email gateway wants to test whether the email contains the keyword urgent' so that it could route the email accordingly. Alice, on the other hand does not wish to give the gateway the ability to decrypt all her messages. We define and construct a mechanism that enables Alice to provide a key to the gateway that enables the gateway to test whether the word urgent' is a keyword in the email without learning anything else about the email. We refer to this mechanism as <I>Public Key Encryption with keyword Search</I>. As another example, consider a mail server that stores various messages publicly encrypted for Alice by others. Using our mechanism Alice can send the mail server a key that will enable the server to identify all messages containing some specific keyword, but learn nothing else. We define the concept of public key encryption with keyword search and give several constructions.
Category / Keywords: public-key cryptography /
Date: received 22 Sep 2003, last revised 24 Mar 2004
Contact author: dabo at cs stanford edu
Available format(s): PDF | BibTeX Citation
Short URL: ia.cr/2003/195
[ Cryptology ePrint archive ] | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.17785382270812988, "perplexity": 3217.1897447991078}, "config": {"markdown_headings": false, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2016-18/segments/1461860121976.98/warc/CC-MAIN-20160428161521-00098-ip-10-239-7-51.ec2.internal.warc.gz"} |
https://publikationen.bibliothek.kit.edu/1000129679 | # Tests for multivariate normality—a critical review with emphasis on weighted $L^2$-statistics
Ebner, Bruno 1; Henze, Norbert 1
1 Institut für Stochastik (STOCH), Karlsruher Institut für Technologie (KIT)
##### Abstract:
This article gives a synopsis on new developments in affine invariant tests for multivariate normality in an i.i.d.-setting, with special emphasis on asymptotic properties of several classes of weighted L$^{2}$-statistics. Since weighted L$^{2}$-statistics typically have limit normal distributions under fixed alternatives to normality, they open ground for a neighborhood of model validation for normality. The paper also reviews several other invariant tests for this problem, notably the energy test, and it presents the results of a large-scale simulation study. All tests under study are implemented in the accompanying R-package mnt.
Zugehörige Institution(en) am KIT Institut für Stochastik (STOCH) Publikationstyp Zeitschriftenaufsatz Publikationsmonat/-jahr 12.2020 Sprache Englisch Identifikator ISSN: 1133-0686, 1863-8260 KITopen-ID: 1000129679 Erschienen in TEST Verlag Springer Band 29 Heft 4 Seiten 845–892 Vorab online veröffentlicht am 01.12.2020 Nachgewiesen in DimensionsWeb of Science
KIT – Die Forschungsuniversität in der Helmholtz-Gemeinschaft
KITopen Landing Page | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.46829953789711, "perplexity": 13570.246288649454}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-21/segments/1652663006341.98/warc/CC-MAIN-20220527205437-20220527235437-00252.warc.gz"} |
https://www.quantumstudy.com/tag/work-energy-power/ | A neutron travelling with a velocity v and K.E. ‘E’ collides perfectly elastically head on with nucleus…
Q: A neutron travelling with a velocity v and K.E. ‘E’ collides perfectly elastically head on with nucleus of an atom of mass number A at rest. The fraction of total energy retained by the neutron is :
(a) $\displaystyle (\frac{A-1}{A+1})^2$
(b) $\displaystyle (\frac{A-1}{A})^2$
(c) $\displaystyle (\frac{A+1}{A-1})^2$
(d) $\displaystyle (\frac{A-1}{A})^2$
Ans: (a)
velocity of body after collision is
$\displaystyle v_1 = \frac{(m_1-m_2)u_1}{m_1 +m_2}$
$\displaystyle v_1 = \frac{(1-A)u_1}{1 + A}$
Fraction of K.E retained is
$\displaystyle \frac{1/2 m v_1^2}{1/2 m u_1^2} = (\frac{v_1}{u_1})^2$
$\displaystyle = (\frac{(1-A)}{1 + A})^2$
A bullet is fired at a target with a velocity of 80 m/s and penetrates 50 cm into it. If this bullet were fired into…
A bullet is fired at a target with a velocity of 80 m/s and penetrates 50 cm into it. If this bullet were fired into a target 25 cm thick with equal velocity, with what velocity would it emerge, supposing the resistance is uniform and same in both the cases?
(a) √80 m/s
(b) 40/√2 m/s
(c) 40 m/s
(d) 40√2 m/s
Ans: (d)
Sol:
Applying , $\displaystyle v^2 = u^2 + 2 a S$
$\displaystyle 0 = 80^2 + 2 a (0.5)$
a = – 6400 m⁄s2
Again , $\displaystyle v^2 = u^2 + 2 a S$
$\displaystyle v^2 = 80^2 + 2 (-6400) (0.25)$
$\displaystyle v^2 = 6400 - 3200 = 3200$
$\displaystyle v = \sqrt{3200} = 40 \sqrt{2} m/s$
A child on a swing is 1 metre above the ground at the lowest point and 2 metre above the ground…
Q: A child on a swing is 1 metre above the ground at the lowest point and 2 metre above the ground at the highest point. The horizontal speed of the child at the lowest point of the swing is (g = 10 m/s2 ) :
(a) 4.5 m/sec
(b) 6.4 m/sec
(c) 7.8 m/sec
(d) 10 m/sec
Ans: (a)
Sol: $\displaystyle v = \sqrt{2 g (h_2 - h_1)}$
$\displaystyle v = \sqrt{2 \times 10 (2 - 1)}$
$\displaystyle v = \sqrt{20} = 4.5 m/s$
A ball is allowed to fall down with initial speed v from a height of 10 m. It loses 50% kinetic energy…
Q: A ball is allowed to fall down with initial speed v from a height of 10 m. It loses 50% kinetic energy after striking the floor. It reaches to the same height after collision. What is the value of v ?
(a) 28 m/s
(b) 7 m/s
(c) 14 m/s
(d) it is never possible
Ans: (c)
Sol:
To reach same height of 10 m after collision,
Velocity After collision $\displaystyle = \sqrt{2 g h}$
$\displaystyle = \sqrt{2 \times 10 \times 10} = 10\sqrt{2} m/s$
As energy lost in collision is 50% , velocity becomes v⁄√2
∴ Velocity of ball on striking,
v = (10 √2) √2 = 20 m/s
Applying $\displaystyle v^2 = u^2 + 2 a S$
$\displaystyle 20^2 = u^2 + 2 \times 10 \times 10$
$\displaystyle u^2 = 20^2 - 200 = 200$
$\displaystyle u = \sqrt{200} = 10\sqrt{2}$
u = 14.14 m/s
A ball of mass ‘m’ moving with a horizontal velocity ‘v’ strikes the bob of mass ‘m’ of a pendulum at rest. ..
Q: A ball of mass ‘m’ moving with a horizontal velocity ‘v’ strikes the bob of mass ‘m’ of a pendulum at rest. During this collision, the ball sticks with the bob of the pendulum. The height to which the combined mass raises is (g = acceleration due to gravity)
(a) $\displaystyle \frac{v^2}{4 g}$
(b) $\displaystyle \frac{v^2}{8 g}$
(c) $\displaystyle \frac{v^2}{ g}$
(d) $\displaystyle \frac{v^2}{2 g}$
Ans: (b)
Sol: Applying conservation of momentum ,
m v = (m + m)v’
v’ = v/2
Applying conservation of Energy ,
$\displaystyle \frac{1}{2} (2 m) v'^2 = (2 m) g h$
$\displaystyle h = \frac{v'^2}{2 g}$
$\displaystyle h = (\frac{v}{2})^2 \times \frac{1}{2 g}$
$\displaystyle h = \frac{v^2}{8 g}$ | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 62, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8627830743789673, "perplexity": 1386.4979313033004}, "config": {"markdown_headings": false, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 5, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2020-29/segments/1593655882051.19/warc/CC-MAIN-20200703122347-20200703152347-00511.warc.gz"} |
http://tex.stackexchange.com/questions/58427/any-way-to-change-color-of-not | # Any way to change color of \not
I often use command \not just to cancel off symbols in my equations and i would need an advice on how to change the color of this command.
-
Have a look at the cancel package manual and the disclaimer in the end. – percusse Jun 3 '12 at 20:44
Related Question: Diagonal strikeout starting too low and ending too high. – Peter Grill Jun 4 '12 at 0:31
A very simple method would be to temporarily change the text color and then switch back to black. This can be done by a new command.
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\newcommand*{\cnot}[1][black]{\color{#1}\not\color{black}}
\begin{document}
$\cnot[red]\in$
\end{document}
The new command takes an arbitrary color as optional argument.
-
\newcommand*{\cnot}[1][black]{\mathrel{\color{#1}\not}} would avoid restating the current color. – egreg Jun 3 '12 at 20:55
Even more, the "current color" might not be black. – lockstep Jun 3 '12 at 21:00
do you need fontenc as part of the MWE? – cmhughes Jun 3 '12 at 21:55
@egreg: Hm, I always forget things like \mathrel. – Thorsten Donig Jun 5 '12 at 18:46
@ThorstenDonig A casual user might think that T1 and fontenc are essential for the solution. – egreg Jun 5 '12 at 19:21
show 3 more comments
As mentioned by percusse in the comments, it is better to use cancel package since \not can not strike out more than one variable (say (x+y)). You can define a macro to change the color of strike line as your need:
\documentclass{article}
\usepackage{xcolor}
\usepackage[thicklines]{cancel}
% \renewcommand*{\CancelColor}{\color{red}}%%if only one color is enough
\newcommand*{\mynot}[1]{\renewcommand{\CancelColor}{\color{#1}}\cancel}
\begin{document}
$\mynot{red}{\in}$
$(\mynot{green}{x+y})(x-y)$
$\mynot{black}{x+y}$
\mynot{blue}{This} is cancelled out. % \cancel works in text mode also.
\end{document}
-
The OP does not seem to ask about canceling complete expressions but about negating single relation symbols. For this purpose \not is quite sufficient. Furthermore the author of »cancel« explicitly discourages users from using the package (at the very end of its manual). – Thorsten Donig Jun 5 '12 at 18:52 | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.7095630168914795, "perplexity": 3799.7240040172906}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.3, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2013-48/segments/1386163055855/warc/CC-MAIN-20131204131735-00029-ip-10-33-133-15.ec2.internal.warc.gz"} |
https://wordassociations.net/en/words-associated-with/Metric | # Associations to the word «Metric»
## Wiktionary
METRIC, adjective. Of or relating to the metric system of measurement
METRIC, adjective. (music) of or relating to the meter of a piece of music.
METRIC, adjective. (mathematics) (physics) of or relating to distance
METRIC, noun. A measure for something; a means of deriving a quantitative measurement or approximation for otherwise qualitative phenomena (especially used in engineering)
METRIC, noun. (mathematics) A measurement of the "distance" between two points in some metric space: it is a real-valued function d(x,y) between points x and y satisfying the following properties: (1) "positive definiteness": $$d(x,y) \ge 0$$ and $$d(x,y) = 0 \mbox{ iff } x=y$$, (2) "symmetry": $$d(x,y) = d(y,x)$$, and (3) "triangle inequality": $$d(x,y) \le d(x,z) + d(z,y)$$.
METRIC, noun. Abbreviation of metric system.
METRIC, verb. (transitive) (aerospace, systems engineering) To measure or analyse statistical data concerning the quality or effectiveness of a process.
METRIC CARAT, noun. A unit of weight, 0.2 grams, used for gemstones, etc.
METRIC FEET, noun. Plural of metric foot
METRIC FOOT, noun. A unit of length (30 cm) used to sell wood in the United Kingdom.
METRIC LEVEL, noun. (music) The pulses in a metric structure.
METRIC LEVELS, noun. Plural of metric level
METRIC MILE, noun. A distance in international athletics (particularly track), the 1500 meter race, being about a mile (~1609 meters).
METRIC MILE, noun. (US) In high school track, 4 laps of the standard 400 meter track, 1600 meters.
METRIC MILES, noun. Plural of metric mile
METRIC OUNCE, noun. A metric approximation of the ounce; specifically:
METRIC OUNCE, noun. 25 grams.
METRIC OUNCE, noun. 30 grams.
METRIC OUNCES, noun. Plural of metric ounce
METRIC POUND, noun. Usually an informal term for half of a kilogram or 500 grams.
METRIC POUNDS, noun. Plural of metric pound
METRIC SHITLOAD, noun. (vulgar) (humorous) A very large number or amount.
METRIC SPACE, noun. (mathematics) Any space whose elements are points, between any two of which a non-negative real number can be defined as the distance between the points; an example is Euclidean space.
METRIC SPACES, noun. Plural of metric space
METRIC STRUCTURE, noun. (music) regular rhythmic components of a song, including its metre and tempo
METRIC STRUCTURES, noun. Plural of metric structure
METRIC SYSTEM, noun. The system of measurements developed in France in the 1790s and now used worldwide.
METRIC SYSTEM, noun. The modern version of that system, Systeme Internationale d'Unites (International System of Units), or SI system of measurements that is based on the base units of the meter/metre, the kilogram, the second, the ampere, the kelvin, the mole, and the candela.
METRIC SYSTEM, noun. Any variant of that system, that was not codified as SI, such as cgs
METRIC TON, noun. A tonne, a unit of mass equal to 1000 kilograms.
METRIC TONS, noun. Plural of metric ton
## Dictionary definition
METRIC, noun. A function of a topological space that gives, for any two points in the space, a value equal to the distance between them.
METRIC, noun. A decimal unit of measurement of the metric system (based on meters and kilograms and seconds); "convert all the measurements to metric units"; "it is easier to work in metric".
METRIC, noun. A system of related measures that facilitates the quantification of some particular characteristic.
METRIC, adjective. Based on the meter as a standard of measurement; "the metric system"; "metrical equivalents".
METRIC, adjective. The rhythmic arrangement of syllables.
## Wise words
Once a word has been allowed to escape, it cannot be recalled.
Horace | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8416747450828552, "perplexity": 7580.663779759336}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.3, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2020-10/segments/1581875145438.12/warc/CC-MAIN-20200221014826-20200221044826-00136.warc.gz"} |
https://toontownrewritten.fandom.com/wiki/Level_12_Cogs | ## FANDOM
2,288 Pages
Level 12 Cogs are the highest possible level of regular Cogs. They have a total of 200 health points. They can be found in boss battles and Cog buildings that have three or more floors, and they are the highest Cogs on the Corporate Ladder.
## Health
The health of Cogs ranging from level 1 to level 11 can be calculated using the equation $HP = (x + 1) * (x + 2)$ where x represents the Cog's level, and HP represents the cog's health points. Level 12 Cogs, however, are given an extra 10% boost. Therefore, instead of having 182 HP- as expected from the standard equation, they have 200 HP. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.6664498448371887, "perplexity": 1770.3729885815353}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-30/segments/1563195525374.43/warc/CC-MAIN-20190717181736-20190717203736-00547.warc.gz"} |
http://gallabytes.com/2014/03/exporting-literate-haskell-with.html | # Exporting Literate Haskell With HSColour and Pandoc
Posted on March 14, 2014
In yesterday’s post I said I would detail the workflow from literate Haskell + markdown to postable html, so here we go:
Requirements: You need to have Haskell installed somehow. I generally recommend the Haskell Platform installed through your OS’s package manager (pacman, apt-get, homebrew…). At a minimum, you need ghc and cabal-install Next, you need hscolour and pandoc installed. If you already have them, great! If not, run these commands:
cabal install hscolour
cabal install pandoc
Once you have those installed, it’s relatively simple - just run this script:
There you go! Now you’ve highlighted the code bits, and left the rest to be formatted as markdown! | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.6018745303153992, "perplexity": 11518.218300788607}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-34/segments/1502886123312.44/warc/CC-MAIN-20170823171414-20170823191414-00719.warc.gz"} |
https://www.nature.com/articles/s41586-018-0491-6?error=cookies_not_supported&code=4456e59c-b8dc-4428-9cec-686bf09a0465 | Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.
# Decoding the phase structure of QCD via particle production at high energy
## Abstract
Recent studies based on lattice Monte Carlo simulations of quantum chromodynamics (QCD)—the theory of strong interactions—have demonstrated that at high temperature there is a phase change from confined hadronic matter to a deconfined quark–gluon plasma in which quarks and gluons can travel distances that greatly exceed the size of hadrons. Here we show that the phase structure of such strongly interacting matter can be decoded by analysing particle production in high-energy nuclear collisions within the framework of statistical hadronization, which accounts for the thermal distribution of particle species. Our results represent a phenomenological determination of the location of the phase boundary of strongly interacting matter, and imply quark–hadron duality at this boundary.
This is a preview of subscription content, access via your institution
## Relevant articles
• ### Spectral functions of heavy quarkonia in a bulk-viscous quark gluon plasma
Journal of High Energy Physics Open Access 28 February 2022
• ### Study of nuclear modification factors of deuteron and anti-deuteron in Pb–Pb collisions at $$\sqrt{s_{\mathrm{NN}}} =2.76\,\hbox {TeV}$$
Scientific Reports Open Access 02 February 2022
• ### Prompt D0, D+, and D*+ production in Pb–Pb collisions at $$\sqrt{s_{\mathrm{NN}}}$$ = 5.02 TeV
Journal of High Energy Physics Open Access 28 January 2022
## Access options
\$32.00
All prices are NET prices.
## References
1. Gyulassy, M. & McLerran, L. New forms of QCD matter discovered at RHIC. Nucl. Phys. A 750, 30–63 (2005).
2. Braun-Munzinger, P. & Stachel, J. The quest for the quark–gluon plasma. Nature 448, 302–309 (2007). Concise review of pre-LHC situation and summary of expectations.
3. Jacak, B. V. & Müller, B. The exploration of hot nuclear matter. Science 337, 310–314 (2012).
4. Itoh, N. Hydrostatic equilibrium of hypothetical quark stars. Prog. Theor. Phys. 44, 291–292 (1970).
5. Collins, J. C. & Perry, M. Superdense matter: neutrons or asymptotically free quarks? Phys. Rev. Lett. 34, 1353–1356 (1975).
6. Cabibbo, N. & Parisi, G. Exponential hadronic spectrum and quark liberation. Phys. Lett. B 59, 67–69 (1975).
7. Chapline, G. & Nauenberg, M. Asymptotic freedom and the baryon-quark phase transition. Phys. Rev. D 16, 450–456 (1977).
8. Shuryak, E. V. Quark-gluon plasma and hadronic production of leptons, photons and psions. Phys. Lett. B 78, 150–153 (1978).
9. Boyanovsky, D., de Vega, H. & Schwarz, D. Phase transitions in the early and the present universe. Annu. Rev. Nucl. Part. Sci. 56, 441–500 (2006).
10. Rajagopal, K. & Wilczek, F. in At The Frontier Of Particle Physics. Handbook of QCD Vol. 3 (ed. Shifman, M.) 2061–2151 (World Scientific, New Jersey, 2001).
11. Heinz, U. W. & Jacob, M. Evidence for a new state of matter: an assessment of the results from the CERN lead beam program. Preprint at https://arxiv.org/abs/nucl-th/0002042 (2000).
12. E877 Collaboration. Observation of anisotropic event shapes and transverse flow in Au + Au collisions at AGS energy. Phys. Rev. Lett. 73, 2532–2535 (1994).
13. STAR Collaboration. Experimental and theoretical challenges in the search for the quark gluon plasma: the STAR Collaboration’s critical assessment of the evidence from RHIC collisions. Nucl. Phys. A 757, 102–183 (2005).
14. BRAHMS Collaboration. Quark gluon plasma and color glass condensate at RHIC? The perspective from the BRAHMS experiment. Nucl. Phys. A 757, 1–27 (2005).
15. PHENIX Collaboration. Formation of dense partonic matter in relativistic nucleus-nucleus collisions at RHIC: experimental evaluation by the PHENIX Collaboration. Nucl. Phys. A 757, 184–283 (2005).
16. PHOBOS Collaboration. The PHOBOS perspective on discoveries at RHIC. Nucl. Phys. A 757, 28–101 (2005).
17. Müller, B., Schukraft, J. & Wyslouch, B. First results from Pb+Pb collisions at the LHC. Annu. Rev. Nucl. Part. Sci. 62, 361–386 (2012). Impact of the first LHC data on QGP research.
18. Schukraft, J. Heavy ion physics at the Large Hadron Collider: what is new? What is next? Phys. Scr. T 158, 014003 (2013).
19. Braun-Munzinger, P., Koch, V., Schäfer, T. & Stachel, J. Properties of hot and dense matter from relativistic heavy ion collisions. Phys. Rep. 621, 76–126 (2016).
20. Braun-Munzinger, P. & Wambach, J. The phase diagram of strongly-interacting matter. Rev. Mod. Phys. 81, 1031–1050 (2009).
21. Müller, B. Investigation of hot QCD matter: theoretical aspects. Phys. Scr. T 158, 014004 (2013).
22. Satz, H. Probing the states of matter in QCD. Int. J. Mod. Phys. A 28, 1330043 (2013).
23. Particle Data Group Collaboration. Review of particle physics. Chin. Phys. C 40, 100001 (2016).
24. Gross, D. J. & Wilczek, F. Ultraviolet behavior of nonabelian gauge theories. Phys. Rev. Lett. 30, 1343–1346 (1973).
25. Politzer, H. D. Reliable perturbative results for strong interactions? Phys. Rev. Lett. 30, 1346–1349 (1973).
26. Karsch, F. Lattice QCD at high temperature and density. Lect. Notes Phys. 583, 209–249 (2002).
27. Wilczek, F. QCD made simple. Phys. Today 53, 22–28 (2000).
28. Bazavov, A. et al. The chiral and deconfinement aspects of the QCD transition. Phys. Rev. D 85, 054503 (2012).
29. Aoki, Y., Endrodi, G., Fodor, Z., Katz, S. & Szabo, K. The order of the quantum chromodynamics transition predicted by the standard model of particle physics. Nature 443, 675–678 (2006).
30. HotQCD Collaboration. The equation of state in (2+1)-flavor QCD. Phys. Rev. D 90, 094503 (2014). Determination of the equation of state of hot QGP from LQCD.
31. Borsányi, S. et al. Is there still any T c mystery in lattice QCD? Results with physical masses in the continuum limit III. J. High Energy Phys. 9, 73 (2010).
32. Borsányi, S. et al. Full result for the QCD equation of state with 2+1 flavors. Phys. Lett. B 730, 99–104 (2014).
33. Luo, X. & Xu, N. Search for the QCD critical point with fluctuations of conserved quantities in relativistic heavy-ion collisions at RHIC: an overview. Nucl. Sci. Tech. 28, 112 (2017).
34. Karsch, F. The last word(s) on CPOD 2013. Proc. Sci. 185, 46 (2013).
35. Dürr, S. et al. Ab-initio determination of light hadron masses. Science 322, 1224–1227 (2008).
36. Bazavov, A. et al. The QCD equation of state to $${\mathscr{O}}({\mu }_{B}^{6})$$ from lattice QCD. Phys. Rev. D 95, 054504 (2017).
37. Andronic, A., Braun-Munzinger, P., Stachel, J. & Winn, M. Interacting hadron resonance gas meets lattice QCD. Phys. Lett. B 718, 80–85 (2012).
38. Karsch, F. Thermodynamics of strong interaction matter from lattice QCD and the hadron resonance gas model. Acta Phys. Polon. B 7, 117–126 (2014).
39. Dashen, R., Ma, S.-K. & Bernstein, H. J. S Matrix formulation of statistical mechanics. Phys. Rev. 187, 345–370 (1969).
40. Cleymans, J. & Satz, H. Thermal hadron production in high-energy heavy ion collisions. Z. Phys. C 57, 135–147 (1993).
41. Braun-Munzinger, P., Stachel, J., Wessels, J. & Xu, N. Thermal equilibration and expansion in nucleus-nucleus collisions at the AGS. Phys. Lett. B 344, 43–48 (1995). Comprehensive application of the statistical hadronization model to data.
42. Braun-Munzinger, P., Redlich, K. & Stachel, J. in Quark Gluon Plasma Vol. 3 (eds Hwa, R. C. & Wang, X.-N.) 491–599 (World Scientific, Singapore, 2004).
43. Braun-Munzinger, P., Magestro, D., Redlich, K. & Stachel, J. Hadron production in Au–Au collisions at RHIC. Phys. Lett. B 518, 41–46 (2001). Establishing the statistical hadronization model in the RHIC era.
44. Letessier, J. & Rafelski, J. Hadron production and phase changes in relativistic heavy ion collisions. Eur. Phys. J. A 35, 221–242 (2008).
45. Stachel, J., Andronic, A., Braun-Munzinger, P. & Redlich, K. Confronting LHC data with the statistical hadronization model. J. Phys. Conf. Ser. 509, 012019 (2014).
46. Hagedorn, R. How we got to QCD matter from the hadron side by trial and error. Lect. Notes Phys. 221, 53–76 (1985).
47. Cleymans, J. & Redlich, K. Unified description of freezeout parameters in relativistic heavy ion collisions. Phys. Rev. Lett. 81, 5284–5286 (1998). First interpretation of the chemical freeze-out line.
48. Stock, R. The parton to hadron phase transition observed in Pb+Pb collisions at 158-GeV per nucleon. Phys. Lett. B 456, 277–282 (1999).
49. Braun-Munzinger, P. & Stachel, J. Particle ratios, equilibration, and the QCD phase boundary. J. Phys. G 28, 1971–1976 (2002).
50. Braun-Munzinger, P., Stachel, J. & Wetterich, C. Chemical freezeout and the QCD phase transition temperature. Phys. Lett. B 596, 61–69 (2004).
51. Andronic, A., Braun-Munzinger, P. & Stachel, J. Thermal hadron production in relativistic nuclear collisions: the hadron mass spectrum, the horn, and the QCD phase transition. Phys. Lett. B 673, 142–145 (2009).
52. Floerchinger, S. & Wetterich, C. Chemical freeze-out in heavy ion collisions at large baryon densities. Nucl. Phys. A 890–891, 11–24 (2012).
53. Bazavov, A. et al. Freeze-out conditions in heavy ion collisions from QCD thermodynamics. Phys. Rev. Lett. 109, 192302 (2012).
54. ALICE Collaboration. Centrality dependence of π, K, p production in Pb-Pb collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 2.76 TeV. Phys. Rev. C 88, 044910 (2013).
55. ALICE Collaboration. $${K}_{S}^{0}$$ and Λ production in Pb-Pb collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 2.76 TeV. Phys. Rev. Lett. 111, 222301 (2013).
56. ALICE Collaboration. Multi-strange baryon production at mid-rapidity in Pb-Pb collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 2.76 TeV. Phys. Lett. B 728, 216–227 (2014).
57. ALICE Collaboration. K *(892)0 and ϕ(1020) production in Pb-Pb collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 2.76 TeV. Phys. Rev. C 91, 024609 (2015).
58. ALICE Collaboration. $${}_{\Lambda }^{3}{\rm{H}}$$ and $${}_{\bar{\Lambda }}^{3}\bar{{\rm{H}}}$$ production in Pb-Pb collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 2.76 TeV. Phys. Lett. B 754, 360–372 (2016).
59. ALICE Collaboration. Production of light nuclei and anti-nuclei in pp and Pb-Pb collisions at energies available at the CERN Large Hadron Collider. Phys. Rev. C 93, 024917 (2016).
60. ALICE Collaboration. Production of 4He and $$\bar{{}^{4}{\rm{H}}{\rm{e}}}$$ in Pb–Pb collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 2.76 TeV at the LHC. Nucl. Phys. A 971, 1–20 (2018).
61. ALICE Collaboration. Pion, kaon, and proton production in central Pb–Pb collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 2.76 TeV. Phys. Rev. Lett. 109, 252301 (2012).
62. Becattini, F., Grossi, E., Bleicher, M., Steinheimer, J. & Stock, R. Centrality dependence of hadronization and chemical freeze-out conditions in heavy ion collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 2.76 TeV. Phys. Rev. C 90, 054907 (2014).
63. ALICE Collaboration. Enhanced production of multi-strange hadrons in high-multiplicity proton-proton collisions. Nat. Phys. 13, 535–539 (2017).
64. Andronic, A., Braun-Munzinger, P., Stachel, J. & Stöcker, H. Production of light nuclei, hypernuclei and their antiparticles in relativistic nuclear collisions. Phys. Lett. B 697, 203–207 (2011).
65. Chapline, G. & Kerman, A. On the Possibility of Making Quark Matter in Nuclear Collisions. Report No. MIT-CTP-695, https://inspirehep.net/record/134446/files/CTP-695.pdf (MIT Center of Theoretical Physics, 1978).
66. Csernai, L. P. & Kapusta, J. I. Entropy and cluster production in nuclear collisions. Phys. Rep. 131, 223–318 (1986).
67. Hirenzaki, S., Suzuki, T. & Tanihata, I. A general formula of the coalescence model. Phys. Rev. C 48, 2403–2408 (1993).
68. ExHIC Collaboration. Exotic hadrons from heavy ion collisions. Prog. Part. Nucl. Phys. 95, 279–322 (2017).
69. NPLQCD Collaboration. Light nuclei and hypernuclei from quantum chromodynamics in the limit of SU(3) flavor symmetry. Phys. Rev. D 87, 034506 (2013).
70. Hagedorn, R. & Redlich, K. Statistical thermodynamics in relativistic particle and ion physics: canonical or grand canonical? Z. Phys. C 27, 541–551 (1985). Theoretical foundations of the statistical thermodynamics of particle production.
71. Hamieh, S., Redlich, K. & Tounsi, A. Canonical description of strangeness enhancement from p–A to Pb–Pb collisions. Phys. Lett. B 486, 61–66 (2000).
72. Braun-Munzinger, P. & Stachel, J. (Non)thermal aspects of charmonium production and a new look at J/ψ suppression. Phys. Lett. B 490, 196–202 (2000). Statistical hadronization model for heavy quarks.
73. NA57 Collaboration. Energy dependence of hyperon production in nucleus nucleus collisions at SPS. Phys. Lett. B 595, 68–74 (2004).
74. Becattini, F. A thermodynamical approach to hadron production in e+e collisions. Z. Phys. C 69, 485–492 (1996).
75. Becattini, F., Castorina, P., Manninen, J. & Satz, H. The thermal production of strange and non-strange hadrons in e+e collisions. Eur. Phys. J. C 56, 493–510 (2008).
76. Andronic, A., Beutler, F., Braun-Munzinger, P., Redlich, K. & Stachel, J. Thermal description of hadron production in e+e collisions revisited. Phys. Lett. B 675, 312–318 (2009).
77. STAR Collaboration. Bulk properties of the medium produced in relativistic heavy-ion collisions from the beam energy scan program. Phys. Rev. C 96, 044904 (2017).
78. Cleymans, J., Oeschler, H. & Redlich, K. Influence of impact parameter on thermal description of relativistic heavy ion collisions at (1–2)A GeV. Phys. Rev. C 59, 1663–1673 (1999).
79. Braun-Munzinger, P., Heppe, I. & Stachel, J. Chemical equilibration in Pb + Pb collisions at the SPS. Phys. Lett. B 465, 15–20 (1999).
80. Manninen, J. & Becattini, F. Chemical freeze-out in ultra-relativistic heavy ion collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 130 and 200 GeV. Phys. Rev. C 78, 054901 (2008).
81. STAR Collaboration. Identified particle production, azimuthal anisotropy, and interferometry measurements in Au+Au collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 9.2 GeV. Phys. Rev. C 81, 024911 (2010).
82. Braun-Munzinger, P. & Stachel, J. Dynamics of ultrarelativistic nuclear collisions with heavy beams: an experimental overview. Nucl. Phys. A 638, 3c–18c (1998). Establishing the boundary line for chemical freeze-out.
83. Hagedorn, R. Statistical thermodynamics of strong interactions at high-energies. Nuovo Cim. 3 (Suppl.), 147–186 (1965).
84. Hagedorn, R. Miscellaneous Elementary Remarks about the Phase Transition from a Hadron Gas to a Quark-Gluon Plasma. Report No. CERN-TH-4100, http://cds.cern.ch/record/158166/files/198504017.pdf (CERN, 1985).
85. Stephanov, M. A., Rajagopal, K. & Shuryak, E. V. Signatures of the tricritical point in QCD. Phys. Rev. Lett. 81, 4816–4819 (1998).
86. Braun-Munzinger, P., Cleymans, J., Oeschler, H. & Redlich, K. Maximum relative strangeness content in heavy ion collisions around 30 GeV/A. Nucl. Phys. A 697, 902–912 (2002).
87. ALICE Collaboration. Centrality dependence of the charged-particle multiplicity density at midrapidity in Pb-Pb collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 5.02 TeV. Phys. Rev. Lett. 116, 222302 (2016).
88. Dainese, A. et al. Heavy ions at the Future Circular Collider. CERN Yellow Rep. 3, 635–691 (2017); https://e-publishing.cern.ch/index.php/CYRM/article/view/515/371.
89. Pierre Auger Collaboration. Ultra-high energy cosmic rays: recent results and future plans of Auger. AIP Conf. Proc. 1852, 040001 (2017).
90. Borsanyi, S. et al. QCD equation of state at nonzero chemical potential: continuum results with physical quark masses at order μ 2. J. High Energy Phys. 8, 53 (2012).
91. PHENIX Collaboration. Enhanced production of direct photons in Au+Au collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 200 GeV and implications for the initial temperature. Phys. Rev. Lett. 104, 132301 (2010).
92. ALICE Collaboration. Direct photon production in Pb-Pb collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 2.76 TeV. Phys. Lett. B 754, 235–248 (2016).
93. Braun-Munzinger, P., Kalweit, A., Redlich, K. & Stachel, J. Confronting fluctuations of conserved charges in central nuclear collisions at the LHC with predictions from lattice QCD. Phys. Lett. B 747, 292–298 (2015).
94. Karsch, F. Determination of freeze-out conditions from lattice QCD calculations. Cent. Eur. J. Phys. 10, 1234–1237 (2012).
95. Borsanyi, S. et al. Freeze-out parameters from electric charge and baryon number fluctuations: is there consistency? Phys. Rev. Lett. 113, 052301 (2014).
96. PHENIX Collaboration. Measurement of higher cumulants of net-charge multiplicity distributions in Au+Au collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 7.7–200 GeV. Phys. Rev. C 93, 011901 (2016).
97. Braun-Munzinger, P. & Redlich, K. Charmonium production from the secondary collisions at LHC energy. Eur. Phys. J. C 16, 519–525 (2000).
98. Zhang, B.-W., Ko, C.-M. & Liu, W. Thermal charm production in a quark-gluon plasma in Pb-Pb collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 25.5 TeV. Phys. Rev. C 77, 024901 (2008).
99. Zhou, K., Chen, Z., Greiner, C. & Zhuang, P. Thermal charm and charmonium production in quark gluon plasma. Phys. Lett. B 758, 434–439 (2016).
100. Cacciari, M. et al. Theoretical predictions for charm and bottom production at the LHC. J. High Energy Phys. 10, 137 (2012).
101. Andronic, A., Braun-Munzinger, P., Redlich, K. & Stachel, J. Statistical hadronization of heavy quarks in ultra-relativistic nucleus-nucleus collisions. Nucl. Phys. A 789, 334–356 (2007). Working out predictions for charmonium and bottomonium production at collider energies.
102. ALICE Collaboration. Suppression of high transverse momentum D mesons in central Pb-Pb collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 2.76 TeV. J. High Energy Phys. 9, 112 (2012).
103. ALICE Collaboration. D meson elliptic flow in noncentral Pb-Pb collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 2.76 TeV. Phys. Rev. Lett. 111, 102301 (2013).
104. STAR Collaboration. Observation of D 0 meson nuclear modifications in Au+Au collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 200 GeV. Phys. Rev. Lett. 113, 142301 (2014).
105. Matsui, T. & Satz, H. J/ψ suppression by quark-gluon plasma formation. Phys. Lett. B 178, 416–422 (1986). Debye screening of J / ψ mesons in a QGP.
106. Vogt, R. J/ψ production and suppression. Phys. Rep. 310, 197–260 (1999).
107. Braun-Munzinger, P. & Stachel, J. in Relativistic Heavy Ion Physics (ed. Stock, R.) 424–444 (Landolt-Börnstein – Group I: Elementary Particles, Nuclei and Atoms Vol. 23, Springer, Berlin, 2010).
108. Andronic, A., Braun-Munzinger, P., Redlich, K. & Stachel, J. The thermal model on the verge of the ultimate test: particle production in Pb-Pb collisions at the LHC. J. Phys. G 38, 124081 (2011).
109. Thews, R. L., Schroedter, M. & Rafelski, J. Enhanced J/ψ production in deconfined quark matter. Phys. Rev. C 63, 054905 (2001). Continuous formation and destruction of charmonia in the QGP.
110. Liu, Y.-P., Qu, Z., Xu, N. & Zhuang, P.-F. J/ψ transverse momentum distribution in high energy nuclear collisions at RHIC. Phys. Lett. B 678, 72–76 (2009).
111. Grandchamp, L., Rapp, R. & Brown, G. E. In medium effects on charmonium production in heavy ion collisions. Phys. Rev. Lett. 92, 212301 (2004).
112. Emerick, A., Zhao, X. & Rapp, R. Bottomonia in the quark-gluon plasma and their production at RHIC and LHC. Eur. Phys. J. A 48, 72 (2012).
113. Zhou, K., Xu, N., Xu, Z. & Zhuang, P. Medium effects on charmonium production at ultrarelativistic energies available at the CERN Large Hadron Collider. Phys. Rev. C 89, 054911 (2014).
114. NA50 Collaboration. ψ′ production in Pb-Pb collisions at 158 GeV/nucleon. Eur. Phys. J. C 49, 559–567 (2007).
115. ALICE Collaboration. J/ψ elliptic flow in Pb–Pb collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ =2.76 TeV. Phys. Rev. Lett. 111, 162301 (2013).
116. ALICE Collaboration. J/ψ elliptic flow in Pb-Pb collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 5.02 TeV. Phys. Rev. Lett. 119, 242301 (2017).
117. ALICE Collaboration. D-meson azimuthal anisotropy in mid-central Pb-Pb collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 5.02 TeV. Phys. Rev. Lett. 120, 102301 (2018).
118. STAR Collaboration. Measurement of J/ψ azimuthal anisotropy in Au+Au collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 200 GeV. Phys. Rev. Lett. 111, 052301 (2013).
119. NA50 Collaboration. J/ψ azimuthal anisotropy relative to the reaction plane in Pb-Pb collisions at 158 GeV per nucleon. Eur. Phys. J. C 61, 853–858 (2009).
120. Kluberg, L. & Satz, H. in Relativistic Heavy Ion Physics (ed. Stock, R.) 373–423 (Landolt-Börnstein – Group I: Elementary Particles, Nuclei and Atoms Vol. 23, Springer, Berlin, 2010).
121. Andronic, A., Braun-Munzinger, P., Redlich, K. & Stachel, J. Evidence for charmonium generation at the phase boundary in ultra-relativistic nuclear collisions. Phys. Lett. B 652, 259–261 (2007).
122. ALICE Collaboration. Centrality, rapidity and transverse momentum dependence of J/ψ suppression in Pb-Pb collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 2.76 TeV. Phys. Lett. B 743, 314–327 (2014). First experimental evidence of reduced J / ψ suppression at LHC energy.
123. ALICE Collaboration. J/ψ suppression at forward rapidity in Pb-Pb collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 5.02 TeV. Phys. Lett. B 766, 212–224 (2017).
124. Zhao, X. & Rapp, R. Medium modifications and production of charmonia at LHC. Nucl. Phys. A 859, 114–125 (2011).
125. CMS Collaboration. Event activity dependence of ϒ(nS) production in $$\sqrt{{s}_{{\rm{NN}}}}$$=5.02 TeV pPb and $$\sqrt{{s}_{{\rm{NN}}}}$$=2.76 TeV pp collisions. J. High Energy Phys. 4, 103 (2014).
126. CMS Collaboration. Observation of sequential ϒ suppression in PbPb collisions. Phys. Rev. Lett. 109, 222301 (2012).
127. ALICE Collaboration. Suppression of ϒ(1S) at forward rapidity in Pb–Pb collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 2.76 TeV. Phys. Lett. B 738, 361–372 (2014).
128. PHENIX Collaboration. Measurement of ϒ(1S + 2S + 3S) production in p+p and Au+Au collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 200 GeV. Phys. Rev. C 91, 024913 (2015).
129. Rigol, M., Dunjko, V. & Olshanii, M. Thermalization and its mechanism for generic isolated quantum systems. Nature 452, 854–858 (2008).
130. Gring, M. et al. Relaxation and prethermalization in an isolated quantum system. Science 337, 1318–1322 (2012).
131. Andronic, A. An overview of the experimental study of quark-gluon matter in high-energy nucleus-nucleus collisions. Int. J. Mod. Phys. A 29, 1430047 (2014).
132. Vovchenko, V., Begun, V. V. & Gorenstein, M. I. Hadron multiplicities and chemical freeze-out conditions in proton-proton and nucleus-nucleus collisions. Phys. Rev. C 93, 064906 (2016).
133. Becattini, F., Steinheimer, J., Stock, R. & Bleicher, M. Hadronization conditions in relativistic nuclear collisions and the QCD pseudo-critical line. Phys. Lett. B 764, 241–246 (2017).
134. NA51 Collaboration. J/ψ, ψ′ and Drell-Yan production in pp and pd interactions at 450 GeV/c. Phys. Lett. B 438, 35–40 (1998).
135. HERA-B Collaboration. A measurement of the ψ′ to J/ψ production ratio in 920-GeV proton-nucleus interactions. Eur. Phys. J. C 49, 545–558 (2007).
136. PHENIX Collaboration. Measurement of the relative yields of ψ(2S) to ψ(1S) mesons produced at forward and backward rapidity in p+p, p+Al, p+Au and 3He+Au collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 200 GeV. Phys. Rev. C 95, 034904 (2017).
137. LHCb Collaboration. Measurement of J/ψ production in pp collisions at $$\sqrt{s}$$ = 7 TeV. Eur. Phys. J. C 71, 1645 (2011).
138. LHCb Collaboration. Measurement of ψ(2S) meson production in pp collisions at $$\sqrt{s}$$ =7 TeV. Eur. Phys. J. C 72, 2100 (2012).
139. ALICE Collaboration. Energy dependence of forward-rapidity J/ψ and ψ(2S) production in pp collisions at the LHC. Eur. Phys. J. C 77, 392 (2017).
140. PHENIX Collaboration. J/ψ production vs centrality, transverse momentum, and rapidity in Au+Au collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 200 GeV. Phys. Rev. Lett. 98, 232301 (2007).
141. PHENIX Collaboration. J/ψ suppression at forward rapidity in Au+Au collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 200 GeV. Phys. Rev. C 84, 054912 (2011).
142. STAR Collaboration. J/ψ production at low p T in Au+Au and Cu+Cu collisions at $$\sqrt{{s}_{{\rm{NN}}}}$$ = 200 GeV at STAR. Phys. Rev. C 90, 024906 (2014).
143. Andronic, A. et al. The thermal proton yield anomaly in Pb-Pb collisions at the LHC and its resolution. Preprint at https://arxiv.org/abs/1808.03102 (2018).
144. Steinbrecher, P. The QCD crossover at zero and non-zero baryon densities from lattice QCD. Preprint at https://arxiv.org/abs/1807.05607 (2018).
## Acknowledgements
K.R. acknowledges support by the Polish National Science Centre under Maestro grant DEC-2013/10/A/ST2/00106. This work is part of and supported by the DFG Collaborative Research Centre ‘SFB1225/ISOQUANT’.
### Author contributions
All authors contributed equally to the physics analysis and to writing the manuscript.
## Author information
Authors
### Corresponding author
Correspondence to Peter Braun-Munzinger.
## Ethics declarations
### Competing interests
The authors declare no competing interests.
Publisher’s note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
## Rights and permissions
Reprints and Permissions
Andronic, A., Braun-Munzinger, P., Redlich, K. et al. Decoding the phase structure of QCD via particle production at high energy. Nature 561, 321–330 (2018). https://doi.org/10.1038/s41586-018-0491-6
• Accepted:
• Published:
• Issue Date:
• DOI: https://doi.org/10.1038/s41586-018-0491-6
### Keywords
• Ultra-relativistic Nuclear Collisions
• Relativistic Heavy Ion Collider (RHIC)
• Heavy Quark
• ### Study of nuclear modification factors of deuteron and anti-deuteron in Pb–Pb collisions at $$\sqrt{s_{\mathrm{NN}}} =2.76\,\hbox {TeV}$$
• Feng-Xian Liu
• Zhi-Lei She
• Ben-Hao Sa
Scientific Reports (2022)
• ### Spectral functions of heavy quarkonia in a bulk-viscous quark gluon plasma
• Lata Thakur
• Yuji Hirono
Journal of High Energy Physics (2022)
• ### Energy and centrality dependence of light nuclei production in relativistic heavy-ion collisions
• Li-Lin Zhu
• Bo Wang
• Hua Zheng
Nuclear Science and Techniques (2022)
• ### Dissociation of Pseudotensor Mesons π2(1670), η2(1645) and η2(1870) through Critical Temperature
• A. Türkan
• J.Y. Süngü
• E. Veli Veliev
International Journal of Theoretical Physics (2022)
• ### Production of light (anti)nuclei in pp collisions at $$\sqrt{s}$$ = 13 TeV
• S. Acharya
• N. Zurlo
Journal of High Energy Physics (2022) | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 2, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9646390676498413, "perplexity": 8453.47235342163}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2023-06/segments/1674764500339.37/warc/CC-MAIN-20230206113934-20230206143934-00544.warc.gz"} |
http://mathhelpforum.com/calculus/192865-equation-normal-line.html | # Math Help - Equation of the normal line?
1. ## Equation of the normal line?
Find the equation of the normal line to the graph of y=√ 8x at x=2.
The part that I'm stuck at is...how do you get the derivative of y=√ 8x? The book gives me 4 / √ 8x for the derivative. How do you get that?
I know how to do the rest, just not how to take the derivative of that type of function
Thanks so much
2. ## Re: Equation of the normal line?
Their notation is very messy, in my opinion.
$y=\sqrt{8x}=2\sqrt{2}\cdot x^{0.5}$
Now apply the power rule. If you prefer, you can go straight into the power rule, as we have $8^{0.5}x^{0.5}$ and the $8^{0.5}$ is just a constant. Either way, I'd avoid their notation if possible; I get an answer of $\sqrt{\frac{2}{x}}$ which is equivalent to theirs, although I've simplified slightly. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 4, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9641616344451904, "perplexity": 403.30119102767054}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-11/segments/1424936461988.0/warc/CC-MAIN-20150226074101-00306-ip-10-28-5-156.ec2.internal.warc.gz"} |
https://mathmodelsblog.wordpress.com/category/credibility/ | # Introduction to Buhlmann credibility
In this post, we continue our discussion in credibility theory. Suppose that for a particular insured (either an individual entity or a group of insureds), we have observed data $X_1,X_2, \cdots, X_n$ (the numbers of claims or loss amounts). We are interested in setting a rate to cover the claim experience $X_{n+1}$ from the next period. In two previous posts (Examples of Bayesian prediction in insurance, Examples of Bayesian prediction in insurance-continued), we discussed this estimation problem from a Bayesian perspective and presented two examples. In this post, we discuss the Buhlmann credibility model and work the same two examples using the Buhlmann method.
First, let’s further describe the setting of the problem. For a particular insured, the experience data corresponding to various exposure periods are assumed to be independent. Statistically speaking, conditional on a risk parameter $\Theta$, the claim numbers or loss amounts $X_1, \cdots, X_n,X_{n+1}$ are independent and identically distributed. Furthermore, the distribution of the risk characteristics in the population of insureds and potential insureds is represented by $\pi_{\Theta}(\theta)$. The experience (either claim numbers or loss amounts) of a particular insured with risk parameter $\Theta=\theta$ is modeled by the conditional distribution $f_{X \lvert \Theta}(x \lvert \theta)$ given $\Theta=\theta$.
The Buhlmann Credibility Estimator
Given the observations $X_1, \cdots, X_n$ in the prior exposure periods, the Buhlmann credibility estimate $C$ of the claim experience $X_{n+1}$ is
$\displaystyle C=Z \overline{X}+(1-Z)\mu$
where $Z$ is the credibility factor assigned to the observed experience data and $\mu$ is the unconditional mean $E[X]$ (the mean taken over all members of the risk parameter $\Theta$). The credibility factor $Z$ is of the form $\displaystyle Z=\frac{n}{n+K}$ where $n$ is a measure of the exposure size (it is the number of observation periods in our examples) and $\displaystyle K=\frac{E[Var[X \lvert \Theta]]}{Var[E[X \lvert \Theta]]}$. The parameter $K$ will be further explained below.
The Buhlmann credibility estimator $C$ is a linear function of the past data. Note that it is of the form:
$\displaystyle C=Z \overline{X}+(1-Z)\mu=w_0+\sum \limits_{i=1}^{n} w_i X_i$
where $w_0=(1-Z)\mu$ and $\displaystyle w_i=\frac{Z}{n}$ for $i=1, \cdots, n$.
Not only is the Buhlmann credibility estimator a linear estimator, it is the best linear estimator to the Bayesian predictive mean $E[X_{n+1} \lvert X_1, \cdots, X_n]$ and the hypothetical mean $E[X_{n+1} \lvert \Theta]$ in terms of minimizing squared error loss. In other words, the coefficients $w_i$ are obtained in such a way that the following expectations (loss functions) are minimized where the expectations are taken over all observations and/or $\Theta$ (see [1]):
$\displaystyle L_1=E\biggl( \biggl[E[X_{n+1} \lvert \Theta]-w_0-\sum \limits_{i=1}^{n} w_i X_i \biggr]^2 \biggr)$
$\displaystyle L_2=E\biggl( \biggl[E[X_{n+1} \lvert X_1, \cdots, X_n]-w_0-\sum \limits_{i=1}^{n} w_i X_i \biggr]^2 \biggr)$
The Buhlmann Method
As discussed above, the Buhlmann credibility factor $Z=\frac{n}{n+K}$ is chosen such that $C=Z \overline{X}+(1-Z) \mu$ is the best linear approximation to the Bayesian estimate of the next period’s claim experience. Now we focus on the calculation of the parameter $K$.
Conditional on the risk parameter $\Theta$, $E[X \lvert \Theta]$ is called the hypothetical mean and $Var[X \lvert \Theta]$ is called the process variance. Then $\mu=E[X]=E[E[X \lvert \Theta]]$ is the expected value of hypothetical means (the unconditional mean). The total variance of this random process is:
$\displaystyle Var[X]=E[Var[X \lvert \Theta]]+Var[E[X \lvert \Theta]]$
The first part of the total variance $E[Var[X \lvert \Theta]]$ is called the expected value of process variance (EPV) and the second part $Var[E[X \lvert \Theta]]$ is called the variance of the hypothetical means (VHM). The parameter $K$ in the Buhlmann method is simply the ratio $K=\frac{EPV}{VHM}$.
We can get an intuitive feel of this formula by considering the variability of the hypothetical means $E[X \lvert \Theta]$ across many values of the risk parameter $\Theta$. If the entire population of insureds (and potential insureds) is fairly homogeneous with respect to the risk parameter $\Theta$, then $VHM=Var[E[X \lvert \Theta]]$ does not vary a great deal and is relatively small in relation to $EPV=E[Var[X \lvert \Theta]]$. As a result, $K$ is large and $Z$ is closer to 0. This agrees with the notion that in a homogeneous population, the unconditional mean (the overall mean) is of more value as a predictor of the next period’s claim experience. On the other hand, if the population of insureds is heterogeneous with respect to the risk parameter $\Theta$, then the overall mean is of less value as a predictor of future experience and we should reply more on the experience of the particular insured. Again, the Buhlmann formula agrees with this notion. If $VHM=Var[E[X \lvert \Theta]]$ is large relative to $EPV=E[Var[X \lvert \Theta]]$, then $K$ is small and $Z$ is closer to 1.
Another attractive feature of the Buhlmann formula is that as more experience data accumulate (as $n \rightarrow \infty$), the credibility factor $Z$ approaches 1 (the experience data become more and more credible).
Example 1
In this random experiment, there are a big bowl (called B) and two boxes (Box 1 and Box 2). Bowl B consists of a large quantity of balls, 80% of which are white and 20% of which are red. In Box 1, 60% of the balls are labeled 0, 30% are labeled 1 and 10% are labeled 2. In Box 2, 15% of the balls are labeled 0, 35% are labeled 1 and 50% are labeled 2. In the experiment, a ball is selected at random from bowl B. The color of the selected ball from bowl B determines which box to use (if the ball is white, then use Box 1, if red, use Box 2). Then balls are drawn at random from the selected box (Box $i$) repeatedly with replacement and the values of the series of selected balls are recorded. The value of first selected ball is $X_1$, the value of the second selected ball is $X_2$ and so on.
Suppose that your friend performs this random experiment (you do not know whether he uses Box 1 or Box 2) and that his first selected ball is a 1 ($X_1=1$) and his second selected ball is a 2 ($X_2=2$). What is the predicted value $X_3$ of the third selected ball?
This example was solved in (Examples of Bayesian prediction in insurance) using the Bayesian approach. We now work this example in the Buhlmann approach.
The following restates the prior distribution of $\Theta$ and the conditional distribution of $X \lvert \Theta$. We denote “white ball from bowl B” by $\Theta=1$ and “red ball from bowl B” by $\Theta=2$.
$\pi_{\Theta}(1)=0.8$
$\pi_{\Theta}(2)=0.2$
$\displaystyle f_{X \lvert \Theta}(0 \lvert \Theta=1)=0.60$
$\displaystyle f_{X \lvert \Theta}(1 \lvert \Theta=1)=0.30$
$\displaystyle f_{X \lvert \Theta}(2 \lvert \Theta=1)=0.10$
$\displaystyle f_{X \lvert \Theta}(0 \lvert \Theta=2)=0.15$
$\displaystyle f_{X \lvert \Theta}(1 \lvert \Theta=2)=0.35$
$\displaystyle f_{X \lvert \Theta}(2 \lvert \Theta=2)=0.50$
The following computes the conditional means (hypothetical means) and conditional variances (process variances) and the other parameters of the Buhlmann method.
Hypothetical Means
$\displaystyle E[X \lvert \Theta=1]=0.60(0)+0.30(1)+0.10(2)=0.50$
$\displaystyle E[X \lvert \Theta=2]=0.15(0)+0.35(1)+0.50(2)=1.35$
$\displaystyle E[X^2 \lvert \Theta=1]=0.60(0)+0.30(1)+0.10(4)=0.70$
$\displaystyle E[X^2 \lvert \Theta=2]=0.15(0)+0.35(1)+0.50(4)=2.35$
Process Variances
$\displaystyle Var[X \lvert \Theta=1]=0.70-0.50^2=0.45$
$\displaystyle Var[X \lvert \Theta=2]=2.35-1.35^2=0.5275$
Expected Value of the Hypothetical Means
$\displaystyle \mu=E[X]=E[E[X \lvert \Theta]]=0.80(0.50)+0.20(1.35)=0.67$
Expected Value of the Process Variance
$\displaystyle EPV=E[Var[X \lvert \Theta]]=0.8(0.45)+0.20(0.5275)=0.4655$
Variance of the Hypothetical Means
$\displaystyle VHM=Var[E[X \lvert \Theta]]=0.80(0.50)^2+0.20(1.35)^2-0.67^2=0.1156$
Buhlmann Credibility Factor
$\displaystyle K=\frac{4655}{1156}$
$\displaystyle Z=\frac{2}{2+\frac{4655}{1156}}=\frac{2312}{6967}=0.33185$
Buhlmann Credibility Estimate
$\displaystyle C=\frac{2312}{6967} \frac{3}{2}+\frac{4655}{6967} (0.67)=\frac{6586.85}{6967}=0.9454356$
Note that the Bayesian estimate obtained in Examples of Bayesian prediction in insurance is 1.004237288. Under the Buhlmann model, the past claim experience of the insured in this example is assigned 33% weight in projecting the claim frequency in the next period.
Example 2
The number of claims $X$ generated by an insured in a potfolio of independent insurance policies has a Poisson distribution with parameter $\Theta$. In the portfolio of policies, the parameter $\Theta$ varies according to a gamma distribution with parameters $\alpha$ and $\beta$. We have the following conditional distributions of $X$ and distribution of the risk parameter $\Theta$.
$\displaystyle f_{X \lvert \Theta}(x \lvert \theta)=\frac{\theta^x e^{-\theta}}{x!}$ where $x=0,1,2, \cdots$
$\displaystyle \pi_{\Theta}(\theta)=\frac{\beta^{\alpha}}{\Gamma(\alpha)} \theta^{\alpha-1} e^{-\beta \theta}$ where $\Gamma(\cdot)$ is the gamma function.
Suppose that a particular insured in this portfolio has generated 0 and 3 claims in the first 2 policy periods. What is the Buhlmann estimate of the number of claims for this insured in period 3?
Since the conditional distribution of $X$ is Poisson, we have $E[X \lvert \Theta]=\Theta$ and $Var[X \lvert \Theta]=\Theta$. As a result, the $EPV$, $VHM$ and $K$ are:
$\displaystyle EPV=E[\Theta]=\frac{\alpha}{\beta}$
$\displaystyle VHM=Var[\Theta]=\frac{\alpha}{\beta^2}$
$\displaystyle K=\frac{EPV}{VHM}=\beta$
As a result, the credibility factor for a 2-period experience period is $Z=\frac{2}{2+\beta}$ and the Buhlmann estimate of the claim frequency in the next period is:
$\displaystyle C=\frac{2}{2+\beta} \thinspace \biggl(\frac{3}{2}\biggr)+\frac{\beta}{2+\beta} \thinspace \biggl(\frac{\alpha}{\beta}\biggr)$
To generalize the above results, suppose that we have observed $X_1=x_1, \cdots, X_n=x_n$ for this insured in the prior periods. Then the Buhlmann estimate for the claim frequency in the next period is:
$\displaystyle C=\frac{n}{n+\beta} \thinspace \biggl(\frac{\sum \limits_{i=1}^{n}x_i}{n}\biggr)+\frac{\beta}{n+\beta} \thinspace \biggl(\frac{\alpha}{\beta}\biggr)$
In this example, the Buhlmann estimate is exactly the same as the Bayesian estimate (Examples of Bayesian prediction in insurance-continued).
Reference
1. Klugman S. A., Panjer H. H., Willmot G. E., Loss Models, From Data To Decisions, Second Edition, 2004, John Wiley & Sons, Inc.
# Examples of Bayesian prediction in insurance-continued
This post is a continuation of the previous post Examples of Bayesian prediction in insurance. We present another example as an illustration of the methodology of Bayesian estimation. The example in this post, along with the example in the previous post, serve to motivate the concept of Bayeisan credibility and Buhlmann credibility theory. So these two posts are part of an introduction to credibility theory.
Suppose $X_1, \cdots, X_n,X_{n+1}$ are independent and identically distributed conditional on $\Theta=\theta$. We denote the density function of the common distribution of $X_j$ by $f_{X \lvert \Theta}(x \lvert \theta)$. We denote the prior distribution of the risk parameter $\Theta$ by $\pi_{\Theta}(\theta)$. The following shows the steps of the Bayesian estimate of the next observation $X_{n+1}$ given $X_1, \cdots, X_n$.
The Marginal Distribution
$\displaystyle f_{X_1, \cdots, X_n}(x_1, \cdots, x_n)=\int \limits_{\theta} \biggl[\prod \limits_{i=1}^{n} f_{X \lvert \Theta}(x_i \lvert \theta)\biggr] \pi_{\Theta}(\theta) d \theta$
The Posterior Distribution
$\displaystyle \pi_{\Theta \lvert X_1, \cdots, X_n}(\theta \lvert x_1, \cdots, x_n)$
$\displaystyle =\ \ \ \ \ \ \ \ \ \ \frac{1}{f_{X_1, \cdots, X_n}(x_1, \cdots, x_n)} \biggl[\prod \limits_{i=1}^{n} f_{X \lvert \Theta}(x_i \lvert \theta)\biggr] \pi_{\Theta}(\theta)$
The Predictive Distribution
$\displaystyle f_{X_{n+1} \lvert X_1, \cdots, X_n}(x \vert x_1, \cdots, x_n)$
$\displaystyle =\ \ \ \ \ \ \ \ \ \ \int \limits_{\theta} \biggl(f_{X \lvert \Theta}(x \lvert \theta)\biggr) \thinspace \pi_{\Theta \lvert X_1, \cdots, X_n}(\theta \lvert x_1, \cdots, x_n) d \theta$
The Bayesian Predictive Mean of the Next Period
$\displaystyle E[X_{n+1} \lvert X_1=x_1, \cdots, X_n=x_n]$
$\displaystyle =\ \ \ \ \ \ \ \ \ \ \int \limits_{x} x \thinspace f_{X_{n+1} \lvert X_1, \cdots, X_n}(x \vert x_1, \cdots, x_n) dx$
$\displaystyle E[X_{n+1} \lvert X_1=x_1, \cdots, X_n=x_n]$
$\displaystyle =\ \ \ \ \ \ \ \ \ \ \int \limits_{\theta} E[X \lvert \theta] \thinspace \pi_{\Theta \lvert X_1, \cdots, X_n}(\theta \lvert x_1, \cdots, x_n) d \theta$
Example 2
The number of claims $X$ generated by an insured in a potfolio of independent insurance policies has a Poisson distribution with parameter $\Theta$. In the portfolio of policies, the parameter $\Theta$ varies according to a gamma distribution with parameters $\alpha$ and $\beta$. We have the following conditional distributions of $X$ and prior distribution of $\theta$.
$\displaystyle f_{X \lvert \Theta}(x \lvert \theta)=\frac{\theta^x e^{-\theta}}{x!}$ where $x=0,1,2, \cdots$
$\displaystyle \pi_{\Theta}(\theta)=\frac{\beta^{\alpha}}{\Gamma(\alpha)} \theta^{\alpha-1} e^{-\beta \theta}$ where $\Gamma(\cdot)$ is the gamma function.
Suppose that a particular insured in this portfolio has generated 0 and 3 claims in the first 2 policy periods. What is the Bayesian estimate of the number of claims for this insured in period 3?
Note that the conditional mean $E[X \lvert \Theta]=\Theta$. Thus the unconditional mean $E[X]=E[\Theta]=\frac{\alpha}{\beta}$.
Comment
Note that the unconditional distribution of $X$ is a negative binomial distribution. In a previous post (Compound negative binomial distribution), it was shown that if $N \sim Poisson(\Lambda)$ and $\Lambda \sim Gamma(\alpha,\beta)$, then the unconditional distribution of $X$ has the following probability function. We make use of this result in the Bayesian estimation problem in this post.
$\displaystyle P[N=n]=\frac{\Gamma(\alpha+n}{\Gamma(\alpha) \Gamma(n)} \biggl[\frac{\beta}{\beta+1}\biggr]^{\alpha} \biggl[\frac{1}{\beta+1}\biggr]^n$
The Marginal Distribution
$\displaystyle f_{X_1,X_2}(0,3)=\int_{0}^{\infty} e^{-\theta} \frac{\theta^3 e^{-\theta}}{3!} \frac{\beta^{\alpha}}{\Gamma(\alpha)} \theta^{\alpha-1} e^{-\beta \theta} d \theta$
$\displaystyle =\int_{0}^{\infty} \frac{\beta^{\alpha}}{3! \Gamma(\alpha)} \theta^{\alpha+3-1} e^{\beta+2} d \theta=\frac{\Gamma(\alpha+3)}{6 \Gamma(\alpha)} \frac{\beta^{\alpha}}{(\beta+2)^{\alpha+3}}$
The Posterior Distribution
$\displaystyle \pi_{\Theta \lvert X_1,X_2}(\theta \lvert 0,3)=\frac{1}{f_{X_1,X_2}(0,3)} e^{-\theta} \frac{\theta^3 e^{-\theta}}{3!} \frac{\beta^{\alpha}}{\Gamma(\alpha)} \theta^{\alpha-1} e^{-\beta \theta}$
$\displaystyle =K \thinspace \theta^{\alpha+3-1} e^{-(\beta+2) \theta}$
In the above expression $K$ is a constant making $\pi_{\Theta \lvert X_1,X_2}(\theta \lvert 0,3)$ a density function. Note that it has the form of a gamma distribution. Thus the posterior distribution must be:
$\displaystyle \pi_{\Theta \lvert X_1,X_2}(\theta \lvert 0,3)=\frac{(\beta+2)^{\alpha+1}}{\Gamma(\alpha+3)} \thinspace \theta^{\alpha+3-1} e^{-(\beta+2) \theta}$
Thus the posterior distribution of $\Theta$ is a gamma distribution with parameter $\alpha+3$ and $\beta+2$.
The Predictive Distribution
Note that the predictive distribution is simply the mixture of $Poisson(\Theta)$ with $Gamma(\alpha+3,\beta+2)$ as mixing weights. By the comment above, the predictive distribution is a negative binomial distribution with the following probability function:
$\displaystyle f_{X_3 \lvert X_1,X_2}(x \lvert 0,3)=\frac{\Gamma(\alpha+5)}{\Gamma(\alpha+3) \Gamma(2)} \biggl[\frac{\beta+2}{\beta+3}\biggr]^{\alpha+3} \biggl[\frac{1}{\beta+3}\biggr]^{2}$
The Bayesian Predictive Mean
$\displaystyle E[X_3 \lvert 0,3]=\frac{\alpha+3}{\beta+2}=\frac{2}{\beta+2} \biggl(\frac{3}{2}\biggr)+\frac{\beta}{\beta+2} \biggl(\frac{\alpha}{\beta}\biggr) \ \ \ \ \ \ \ \ \ \ (1)$
Note that $E[X \lvert \Theta]=\Theta$. Thus the Bayesian predictive mean in this example is simply the mean of the posterior distribution of $\Theta$, which is $E[\Theta \vert 0,3]=\frac{\alpha+3}{\beta+2}$.
Comment
Generalizing the example, suppose that in the first $n$ periods, the claim counts for the insured are $X_1=x_1, \cdots, X_n=x_n$. Then the posterior distribution of the parameter $\Theta$ is a gamma distribution.
$\biggl[\Theta \lvert X_1=x_1, \cdots, X_n=x_n\biggr] \sim Gamma(\alpha+\sum_{i=1}^{n} x_i,\beta+n)$
Then the predictive distribution of $X_{n+1}$ given the observations has a negative binomial distribution. More importantly, the Bayesian predictive mean is:
$\displaystyle E[X_{n+1} \lvert X_1=x_1, \cdots, X_n=x_n]=\frac{\alpha+\sum_{i=1}^{n} x_i}{\beta+n}$
$\displaystyle =\frac{n}{\beta+n} \biggl(\frac{\sum \limits_{i=0}^{n} x_i}{n}\biggr)+\frac{\beta}{\beta+n} \biggl(\frac{\alpha}{\beta}\biggr)\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (2)$
It is interesting that the Bayesian predictive mean of the $(n+1)^{th}$ period is a weighted average of the mean of the observed data ($\overline{X}$) and the unconditional mean $E[X]=\frac{\alpha}{\beta}$. Consequently, the above Bayesian estimate is a credibility estimate. The weight given to the observed data $Z=\frac{n}{\beta+n}$ is called the credibility factor. The estimate and the factor are called Bayesian credibility estimate and Bayesian credibility factor, respectively.
In general, the credibility estimate is an estimator of the following form:
$\displaystyle E=Z \thinspace \overline{X}+ (1-Z) \thinspace \mu_0$
where $\overline{X}$ is the mean of the observed data and $\mu_0$ is the mean based on other information. In our example here, $\mu_0$ is the unconditional mean. In practice, $\mu_0$ could be the mean based on the entire book of business, or a mean based on a different block of similar insurance policies. Another interpretation is that $\overline{X}$ is the mean of the recent experience data and $\mu_0$ is the mean of prior periods.
One more comment about the credibility factor $Z=\frac{n}{\beta+n}$ derived in this example. As $n \rightarrow \infty$, $Z \rightarrow 1$. This makes intuitive sense since this gives more weight to $\overline{X}$ as more and more data are accumulated.
# Examples of Bayesian prediction in insurance
We present two examples to illustrate the notion of Bayesian predictive distributions. The general insurance problem we aim to illustrate is that of using past claim experience data from an individual insured or a group of insureds to predict the future claim experience. Suppose we have $X_1,X_2, \cdots, X_n$ with each $X_i$ being the number of claims or an aggregate amount of claims in a prior period of observation. Given such results, what will be the number of claims during the next period, or what will be the aggregate claim amount in the next period? These two examples will motivate the notion of credibility, both Bayesian credibility theory and Buhlmann credibility theory. We present Example 1 in this post. Example 2 is presented in the next post (Examples of Bayesian prediction in insurance-continued).
Example 1
In this random experiment, there are a big bowl (called B) and two boxes (Box 1 and Box 2). Bowl B consists of a large quantity of balls, 80% of which are white and 20% of which are red. In Box 1, 60% of the balls are labeled 0, 30% are labeled 1 and 10% are labeled 2. In Box 2, 15% of the balls are labeled 0, 35% are labeled 1 and 50% are labeled 2. In the experiment, a ball is selected at random from bowl B. The color of the selected ball from bowl B determines which box to use (if the ball is white, then use Box 1, if red, use Box 2). Then balls are drawn at random from the selected box (Box $i$) repeatedly with replacement and the values of the series of selected balls are recorded. The value of first selected ball is $X_1$, the value of the second selected ball is $X_2$ and so on.
Suppose that your friend performs this random experiment (you do not know whether he uses Box 1 or Box 2) and that his first ball is a 1 ($X_1=1$) and his second ball is a 2 ($X_2=2$). What is the predicted value $X_3$ of the third selected ball?
Though it is straightforward to apply the Bayes’ theorem to this problem (the solution can be seen easily using a tree diagram) to obtain a numerical answer, we use this example to draw out the principle of Bayesian prediction. So it may appear that we are making a simple problem overly complicated. We are merely using this example to motivate the method of Bayesian estimation.
For convenience, we denote “draw a white ball from bowl B” by $\theta=1$ and “draw a red ball from bowl B” by $\theta=2$. Box 1 and Box 2 are conditional distributions. The Bowl B is a distribution for the parameter $\theta$. The distribution given in Bowl B is a probability distribution over the space of all parameter values (called a prior distribution). The prior distribution of $\theta$ and the conditional distributions of $X$ given $\theta$ are restated as follows:
$\pi_{\theta}(1)=0.8$
$\pi_{\theta}(2)=0.2$
$\displaystyle f_{X \lvert \Theta}(0 \lvert \theta=1)=0.60$
$\displaystyle f_{X \lvert \Theta}(1 \lvert \theta=1)=0.30$
$\displaystyle f_{X \lvert \Theta}(2 \lvert \theta=1)=0.10$
$\displaystyle f_{X \lvert \Theta}(0 \lvert \theta=2)=0.15$
$\displaystyle f_{X \lvert \Theta}(1 \lvert \theta=2)=0.35$
$\displaystyle f_{X \lvert \Theta}(2 \lvert \theta=2)=0.50$
The following shows the conditional means $E[X \lvert \theta]$ and the unconditional mean $E[X]$.
$\displaystyle E[X \lvert \theta=1]=0.6(0)+0.3(1)+0.1(2)=0.50$
$\displaystyle E[X \lvert \theta=2]=0.15(0)+0.35(1)+0.5(2)=1.35$
$\displaystyle E[X]=0.8(0.50)+0.2(1.35)=0.67$
If you know which particular box your friend is using ($\theta=1$ or $\theta=2$), then the estimate of the next ball should be $E[X \lvert \theta]$. But the value of $\theta$ is unkown to you. Another alternative for a predicted value is the unconditional mean $E[X]=0.67$. While the estimate $E[X]=0.67$ is easy to calculate, this estimate does not take the observed data ($X_1=1$ and $X_2=2$) into account and it certainly does not take the parameter $\theta$ into account. A third alternative is to incorporate the observed data into the estimate of the next ball. We now continue with the calculation of the Bayesian estimation.
Unconditional Distribution
$\displaystyle f_X(0)=0.6(0.8)+0.15(0.2)=0.51$
$\displaystyle f_X(1)=0.3(0.8)+0.35(0.2)=0.31$
$\displaystyle f_X(2)=0.1(0.8)+0.50(0.2)=0.18$
Marginal Probability
$\displaystyle f_{X_1,X_2}(1,2)=0.1(0.3)(0.8)+0.5(0.35)(0.2)=0.059$
Posterior Distribution of $\theta$
$\displaystyle \pi_{\Theta \lvert X_1,X_2}(1 \lvert 1,2)=\frac{0.1(0.3)(0.8)}{0.059}=\frac{24}{59}$
$\displaystyle \pi_{\Theta \lvert X_1,X_2}(2 \lvert 1,2)=\frac{0.5(0.35)(0.2)}{0.059}=\frac{35}{59}$
Predictive Distribution of $X$
$\displaystyle f_{X_3 \lvert X_1,X_2}(0 \lvert 1,2)=0.6 \frac{24}{59} + 0.15 \frac{35}{59}=\frac{19.65}{59}$
$\displaystyle f_{X_3 \lvert X_1,X_2}(1 \lvert 1,2)=0.3 \frac{24}{59} + 0.35 \frac{35}{59}=\frac{19.45}{59}$
$\displaystyle f_{X_3 \lvert X_1,X_2}(2 \lvert 1,2)=0.1 \frac{24}{59} + 0.50 \frac{35}{59}=\frac{19.90}{59}$
Here is another formulation of the predictive distribution of $X_3$. See the general methodology section below.
$\displaystyle f_{X_3 \lvert X_1,X_2}(0 \lvert 1,2)=\frac{0.6(0.1)(0.3)(0.8)+0.15(0.5)(0.35)(0.2)}{0.059}=\frac{19.65}{59}$
$\displaystyle f_{X_3 \lvert X_1,X_2}(1 \lvert 1,2)=\frac{0.3(0.1)(0.3)(0.8)+0.35(0.5)(0.35)(0.2)}{0.059}=\frac{19.45}{59}$
$\displaystyle f_{X_3 \lvert X_1,X_2}(2 \lvert 1,2)=\frac{0.1(0.1)(0.3)(0.8)+0.5(0.5)(0.35)(0.2)}{0.059}=\frac{19.90}{59}$
The posterior distribution $\pi_{\theta}(\cdot \lvert 1,2)$ is the conditional probability distribution of the parameter $\theta$ given the observed data $X_1=1$ and $X_2=2$. This is a result of applying the Bayes’ theorem. The predictive distribution $f_{X_3 \lvert X_1,X_2}(\cdot \lvert 1,2)$ is the conditional probability distribution of a new observation given the past observed data of $X_1=1$ and $X_2=2$. Since both of these distributions incorporate the past observations, the Bayesian estimate of the next observation is the mean of the predictive distribution.
$\displaystyle E[X_3 \lvert X_1=1,X_2=2]$
$\displaystyle =0 \thinspace f_{X_3 \lvert X_1,X_2}(0 \lvert 1,2)+1 \thinspace f_{X_3 \lvert X_1,X_2}(1 \lvert 1,2)+2 \thinspace f_{X_3 \lvert X_1,X_2}(2 \lvert 1,2)$
$\displaystyle =0 \frac{19.65}{59}+1 \frac{19.45}{59}+ 2 \frac{19.90}{59}$
$\displaystyle =\frac{59.25}{59}=1.0042372$
$\displaystyle E[X_3 \lvert X_1=1,X_2=2]$
$\displaystyle =E[X \lvert \theta=1] \medspace \pi_{\Theta \lvert X_1,X_2}(1 \lvert 1,2)+E[X \lvert \theta=2] \medspace \pi_{\Theta \lvert X_1,X_2}(2 \lvert 1,2)$
$\displaystyle =0.5 \frac{24}{59}+1.35 \frac{35}{59}=\frac{59.25}{59}$
Note that we compute the Bayesian estimate $E[X_3 \vert X_1,X_2]$ in two ways, one using the predictive distribution and the other using the posterior distribution of the parameter $\theta$. The Bayesian estimate is the mean of the hypothetical means $E[X \lvert \theta]$ with expectation taken over the entire posterior distribution $\pi_{\theta}(\cdot \lvert 1,2)$.
Discussion of General Methodology
We now use Example 1 to draw out general methodology. We first describe the discrete case and have the continuous case as a generalization.
Suppose we have a family of conditional density functions $f_{X \lvert \Theta}(x \lvert \theta)$. In Example 1, the bowl B is the distribution of the parameter $\theta$. Box 1 and Box 2 are the conditional distributions with density $f_{X \lvert \Theta}(x \lvert \theta)$. In an insurance application, the $\theta$ is a risk parameter and the conditional distribution $f_{X \lvert \Theta}(x \lvert \theta)$ is the claim experience in a given fixed period (conditional on $\Theta=\theta$).
Suppose that $X_1,X_2, \cdots, X_n,X_{n+1}$ (conditional on $\Theta=\theta$) are independent and identically distributed where the common density function is $f_{X \lvert \Theta}(x \lvert \theta)$. In our Example 1, once a box is selected (e.g. Box 1), then the repeated drawing of the balls are independent and identically distributed. In an insurance application, the $X_k$ are the claim experience from an insured (or a group of insureds) where the insured belongs to the risk class with parameter $\theta$.
We are interested in the conditional distribution of $X_{n+1}$ given $\Theta=\theta$ to predict $X_{n+1}$. In our example, $X_{n+1}$ is the value of the ball in the $(n+1)^{st}$ draw. In an insurance application, $X_{n+1}$ may be the claim experience of an insured (or a group of insureds) in the next policy period. We can use the unconditional mean $E[X]=E[E(X \lvert \Theta)]$ (the mean of the hypothetical means). This approach does not take the risk parameter of the insured into the equation. On the other hand, if we know the value of $\theta$, then we can use $f_{X \lvert \Theta}(x \lvert \theta)$. But the risk parameter is usually unknown. The natural alternative is to condition on the observed experience in the $n$ prior periods $X_1, \cdots, X_n$ rather than conditioning on the risk parameter $\theta$. Thus we derive the predictive distribution of $X_{n+1}$ given the observation $X_1, \cdots, X_n$. Given the observed experience data $X_1=x_1,X_2=x_2, \cdots, X_n=x_n$, the following is the derivation of the Bayesian predictive distribution. Note that the prior distribution of the parameter $\theta$ is $\pi_{\Theta}(\theta)$.
The Unconditional Distribution
$\displaystyle f_X(x)=\sum \limits_{\theta} f_{X \lvert \Theta}(x \lvert \theta) \ \pi_{\Theta}(\theta)$
The Marginal Distribution
$\displaystyle f_{X_1, \cdots, X_n}(x_1, \cdots, x_n)=\sum \limits_{\theta} \biggl[\prod \limits_{i=1}^{n} f_{X_i \lvert \Theta}(x_i \lvert \theta)\biggr] \pi_{\Theta}(\theta)$
The Posterior Distribution
$\displaystyle \pi_{\Theta \lvert X_1, \cdots, X_n}(\theta \lvert x_1, \cdots, x_n)$
$\displaystyle = \ \ \ \ \ \ \ \ \ \ \frac{1}{f_{X_1, \cdots, X_n}(x_1, \cdots, x_n)} \biggl[\prod \limits_{i=1}^{n} f_{X_i \lvert \Theta}(x_i \lvert \theta)\biggr] \pi_{\Theta}(\theta)$
The Predictive Distribution
$\displaystyle f_{X_{n+1} \lvert X_1, \cdots, X_n}(x \vert x_1, \cdots, x_n)$
$\displaystyle =\ \ \ \ \ \ \ \ \ \ \sum \limits_{\theta} f_{X \lvert \Theta}(x \lvert \theta) \thinspace \pi_{\Theta \lvert X_1, \cdots, X_n}(\theta \lvert x_1, \cdots, x_n)$
Another formulation is:
$\displaystyle f_{X_{n+1} \lvert X_1, \cdots, X_n}(x \vert x_1, \cdots, x_n)$
$\displaystyle =\ \ \ \ \ \ \ \ \ \ \frac{1}{f_{X_1, \cdots, X_n}(x_1, \cdots, x_n)} \sum \limits_{\theta} f_{X_{n+1} \lvert \Theta}(x \lvert \theta) \biggl[ \prod \limits_{j=1}^{n}f_{X_j \lvert \Theta}(x_j \lvert \theta)\biggr] \thinspace \pi_{\Theta}(\theta)$
The Bayesian Predictive Mean of the Next Period
$\displaystyle E[X_{n+1} \lvert X_1=x_1, \cdots, X_n=x_n]$
$\displaystyle =\ \ \ \ \ \ \ \ \ \ \sum \limits_{x} x \thinspace f_{X_{n+1} \lvert X_1, \cdots, X_n}(x \vert x_1, \cdots, x_n)$
$\displaystyle E[X_{n+1} \lvert X_1=x_1, \cdots, X_n=x_n]$
$\displaystyle =\ \ \ \ \ \ \ \ \ \ \sum \limits_{\theta} E[X \lvert \theta] \thinspace \pi_{\Theta \lvert X_1, \cdots, X_n}(\theta \lvert x_1, \cdots, x_n)$
We state the same results for the case that the claim experience $X$ is continuous.
The Unconditional Distribution
$\displaystyle f_{X}(x) = \int_{\theta} f_{X \lvert \Theta} (x \lvert \theta) \ \pi_{\Theta}(\theta) \ d \theta$
The Marginal Distribution
$\displaystyle f_{X_1, \cdots, X_n}(x_1, \cdots, x_n)=\int \limits_{\theta} \biggl[\prod \limits_{i=1}^{n} f_{X \lvert \Theta}(x_i \lvert \theta)\biggr] \pi_{\Theta}(\theta) d \theta$
The Posterior Distribution
$\displaystyle \pi_{\Theta \lvert X_1, \cdots, X_n}(\theta \lvert x_1, \cdots, x_n)$
$\displaystyle =\ \ \ \ \ \ \ \ \ \ \frac{1}{f_{X_1, \cdots, X_n}(x_1, \cdots, x_n)} \biggl[\prod \limits_{i=1}^{n} f_{X \lvert \Theta}(x_i \lvert \theta)\biggr] \pi_{\Theta}(\theta)$
The Predictive Distribution
$\displaystyle f_{X_{n+1} \lvert X_1, \cdots, X_n}(x \vert x_1, \cdots, x_n)$
$\displaystyle =\ \ \ \ \ \ \ \ \ \ \int \limits_{\theta} f_{X \lvert \Theta}(x \lvert \theta) \thinspace \pi_{\Theta \lvert X_1, \cdots, X_n}(\theta \lvert x_1, \cdots, x_n) \ d \theta$
Another formulation is:
$\displaystyle f_{X_{n+1} \lvert X_1, \cdots, X_n}(x \vert x_1, \cdots, x_n)$
$\displaystyle =\ \ \ \ \ \ \ \ \ \ \frac{1}{f_{X_1, \cdots, X_n}(x_1, \cdots, x_n)} \int \limits_{\theta} f_{X_{n+1} \lvert \Theta}(x \lvert \theta) \biggl[ \prod \limits_{j=1}^{n}f_{X_j \lvert \Theta}(x_j \lvert \theta)\biggr] \thinspace \pi_{\Theta}(\theta) \ d \theta$
The Bayesian Predictive Mean of the Next Period
$\displaystyle E[X_{n+1} \lvert X_1=x_1, \cdots, X_n=x_n]$
$\displaystyle =\ \ \ \ \ \ \ \ \ \ \int \limits_{x} x \thinspace f_{X_{n+1} \lvert X_1, \cdots, X_n}(x \vert x_1, \cdots, x_n) dx$
$\displaystyle E[X_{n+1} \lvert X_1=x_1, \cdots, X_n=x_n]$
$\displaystyle =\ \ \ \ \ \ \ \ \ \ \int \limits_{\theta} E[X \lvert \theta] \thinspace \pi_{\Theta \lvert X_1, \cdots, X_n}(\theta \lvert x_1, \cdots, x_n) d \theta$
See the next post (Examples of Bayesian prediction in insurance-continued) for Example 2. | {"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 308, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9389846920967102, "perplexity": 312.40989084547465}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-51/segments/1544376827596.48/warc/CC-MAIN-20181216073608-20181216095608-00047.warc.gz"} |