How to plot a function with argument as degree I want to plot a function. The function is, F is proportional to x/cos(x). Here x is rotation in degree and F is the force. I have to plot the graph where the x axis will be from 0 to 70 degree and the y axis will be linear value 0 to 5. I am not able to find any option to draw graphs where x axis is with rotational degree. I was using these codes: \begin{document}  \usepackage{pgfplots}  \begin{tikzpicture}  \begin{axis}[  grid=both,  trig format plots=deg  domain=0:70, samples=50, no marks,  xticklabels={0$\deg$,10$\deg$,20$\deg$,30$\deg$,40$\deg$,50$\deg$,60$\deg$,70$\deg$},  xtick={deg(0),deg(10),deg(20),deg(30),deg(40),deg(50),deg(60),deg(70)}, x post scale = 5 ] \addplot {deg(x)/cos(deg(x))};  \end{axis}  \end{tikzpicture}  \end{document}
Plotting a function with an argument in degrees I want to plot a function. The function is, F is proportional to x/cos(x). Here x is rotation in degree and F is the force. I have to plot the graph where the x axis will be from 0 to 70 degree and the y axis will be linear value 0 to 5. I am not able to find any option to draw graphs where x axis is with rotational degree.
So I'm using an app that stores images heavily in the DB. What's your outlook on this? I'm more of a type to store the location in the filesystem, than store it directly in the DB.  What do you think are the pros/cons? I had this question:    All 3 responses were rated at 1 when the bounty expired. Nothing got selected as the "best answer", and I can't even manually select an answer. What happens if I do not honor a futures contract? I have little knowledge about futures contracts. The recent negative price of crude oil spurred my curiosity about this stuff.   I read this post about .  According to this post, when I buy a futures contract, I enter into a contractual agreement to buy some commodity on some future date, and I only need to pay a 2% initial margin.   Suppose the price of the commodity does not fluctuate but I change my mind and decide not to buy the commodity at maturity. What punishment could be exerted on me?   I do not want the 2% initial margin back because that is a little money compared to the real value of the commodity. If there is no extra penalty, it would be unfair for the seller — imagine the seller transports 1000 barrels of crude oil to your front door and you say "I do not need it any more, please take it away, thank you!"  Update: I did more research about this and have more questions.  If I buy a futures contract at $10 and the price of the contract drops to -$37 at the last trading day, at which price should I buy the commodity at the delivery day, $10 or -$37?   There seems not just one contract I enter into when I buy a futures contract: the original futures contract between me and the seller of the commodity(or the exchange?), the contract between me and my brokerage, the contract between the brokerage and the exchange. I'm not clear about the exact entities of each contract and the obligations involved in each contract. The contracts seem contradictory with each other, e.g., my brokerage may forcefully sell my futures contract if my account balance is not enough, which will prevent me from fulfilling the obligations in the futures contract, i.e., receiving the commodity on future date.  If I(or an institutional trader) trade directly (not via a brokerage) with an exchange(does CME accept individual traders?), does the exchange have the rights to forcefully sell my contracts at the last trading day at any price or close my position at the settlement price(say -$37)? If the exchange does so thus letting me own $5,000M to it, is it more justice for me to sue the exchange rather than let the exchange sue me? If I could hold the position, the loss caused by my not executing the delivery/receipt of the commodity may be less than $5,000M. Of course, the loss will be determined by the court, not by the exchange according to the settlement price formed by itself or a few possible conspirators. While using the mobile site on my Android phone, I saw a comment that I wanted to flag but there was no flag button. After searching, I saw  that says flagging comments is not supported on mobile site.  Could the ability to flag comments be added to the mobile site? My application got crashed because of not initializing the view Decode escaped Url without using HttpUtility.UrlDecode How to divide an image into blocks in MATLAB? Installing opencv I've downloaded opencv but unfortunately I've got no idea how to install it. All the pages I found online were only telling me how to download and install it directly from the console, not what to do when you already have it downloaded. Could anybody tell me what to do? collapse vs minimize In the experiments for photoelectric emission, the light is incident on one face of the emitting plate, for example the anode, when determining the stopping potential. The electrons are emitted by this face of the plate. Why are the electrons emitted in the direction of the incident light, and not opposite to it?  I have read a little about photons (the key words being, a little), and from what i gather, they have an intrinsic momentum $p=h/\lambda$, which is transferred entirely to the particle that absorbs it (along with the energy $h\nu$). This should imply that the electrons try to move further into the cathode, and not escape it! What is the fault in the reasoning?  Thanks! How to extend my root (/) partition? I have a shapefile with date in a string field. I create a new field with date type and use the calculator to make the conversion. But the result only provide the date part, the time part is removed. Even when the preview show the correct conversion.  Here you can see the original string field time and the result date time2. And the use of the conversion function to_datetime() and the preview result at the end    If you go to the layer properties you can change the edit mode to date/time. Then if go to the data and try to edit time2 you get the current date/time. So is possible save date and time in the same field. But the update tool still doesn't work as expected      As J.R said. Even when you can change QGIS edit to allow Date/Time the save to shapefile will discard the time. Is it the "Stack Exchange Network" or the "Stack Overflow Network"? How do I sort a two-dimensional (rectangular) array in C#? I have a two-dimensional array (of Strings) which make up my data table (of rows and columns).  I want to sort this array by any column.  I tried to find an algorithm for doing this in C#, but have not been successful.  Any help is appreciated. durbinWatsonTest() in R for non time-series data I am trying to understand whether the Durbin-Watson test is meaningful at all when applied to regression data that have no temporal order (eg. blood pressure ~ bodyMassIndex + exercise).   I would say no, as the autocorrelation should obviously vary with the order of the subjects (which is random), but I wonder whether the durbinWatsonTest in R involves a bootstrapping of the data, where order of the bootstrapping data is shuffled each time, and then perhaps an average autocorrelation is computed over the bootstrapping samples (but then again, shouldn't this average autocorrelation be zero for randomly sampled data?).  On the other hand, the value of the statistics seems to be quite stable over multiple runs of the function, so I am even more confused...  I came across it in Andy Field's book "Discovering Statistics with R", where it is used is an example with non-time series data, although in another, more recent book of the same author ("Adventures in Statistics") it does say that the test is applicable only to time series data. Modelling a spiral around a sphere I'm trying to figure out the best way to model the sphere-spiral here:    Is it possible to make this shape directly? Or do you have to make it as a cylinder and wrap it to a sphere? Another point of view that $\mathbb{Z}/m\mathbb{Z} \times\mathbb{Z}/n\mathbb{Z}$ is cyclic. I was thinking that the product of groups $\mathbb{Z}/2\mathbb{Z} \times\mathbb{Z}/2\mathbb{Z}$ is not cyclic, but $\mathbb{Z}/2\mathbb{Z} \times\mathbb{Z}/p\mathbb{Z}$ is cyclic if p is an odd prime. Then I found logic that $\mathbb{Z}/m\mathbb{Z} \times\mathbb{Z}/n\mathbb{Z}$ is certainly cyclic if $m$ and $n$ are coprimes.  I searched on google a proof of that, to compare with mine and the answer is that $\mathbb{Z}/m\mathbb{Z} \times\mathbb{Z}/n\mathbb{Z}$ is isomorphic to $\mathbb{Z}/mn\mathbb{Z}$ (which is clearly cyclic) $\iff$ $m$ and $n$ are coprimes.  But I got another proof and I want to know what you think about it :     I claim that $([1]_m,[1]_n)$ generates $\mathbb{Z}/m\mathbb{Z}$   $\times\mathbb{Z}/n\mathbb{Z}$, where $[a]_d$ is the canonical   projection of $a\in \mathbb{Z}$ into $\mathbb{Z}/d\mathbb{Z}$.       Let's take multiples of $([1]_m,[1]_n)$ until we get $m \cdot$   $([1]_m,[1]_n) = ([0]_m,[m]_n)$ (where I suppose $m=\min(m,n)$...   otherwise, consider $\mathbb{Z}/n\mathbb{Z}$   $\times\mathbb{Z}/m\mathbb{Z}$ and $\min(m,n)=n$).       The next step is $([1]_m,[m+1]_n)$. This pair is not equal to   $([1]_m,[1]_n)$, since $m+1 \not\equiv1$ mod $n$ ($m$ and $n$ are   supposed to be coprimes). We can now continue adding $([1]_m,[1]_n)$   to the results.      The last step is precisely reached when you got   $([mn]_m,[mn]_n)=([0]_m,[0]_n)$. At this point, the fact that $m$ and $n$ are coprimes is absolutely necessary because if they are not coprimes, $lcm(m,n)\ne m\cdot n$ and   $([lcm(m,n)]_m,[lcm(m,n)]_n)=([0]_m,[0]_n)$ but all the $m \cdot n$ possible pairs are not reached, only the $lcm(m,n)$ are ! Find out which application listens to specific key bindings? Is there an application to know which key is bound by which process and therefore not usable in another application? Screen brightness control not working on Lenovo T530 Disable drag and drop option for multiple file uploader These are the screenshots of multiple file uploader from the same SharePoint 2010 site. Some users are seeing the first and some are seeing the second one. Is it possible to disable the second view(drag and drop) by editing upload.aspx in the layouts folder?      Thank you