Given a function of two variables, how can I define a 2nd function that is the integral of the 1st w.r.t. one of the variables?
Efficient evaluation of functions defined by NIntegrate
Pivot rows into multiple columns I have a SQL Server instance that has a linked server to an Oracle server. There is a table on the Oracle server called PersonOptions which contains the following data:  ╔══════════╦══════════╗ ║ PersonID ║ OptionID ║ ╠══════════╬══════════╣ ║        1 ║ A        ║ ║        1 ║ B        ║ ║        2 ║ C        ║ ║        3 ║ B        ║ ║        4 ║ A        ║ ║        4 ║ C        ║ ╚══════════╩══════════╝   I need to pivot that data so the results are:  ╔══════════╦═════════╦══════════╦══════════╗ ║ PersonID ║ OptionA ║ Option B ║ Option C ║ ╠══════════╬═════════╬══════════╬══════════╣ ║        1 ║       1 ║        1 ║          ║ ║        2 ║         ║          ║        1 ║ ║        3 ║         ║        1 ║          ║ ║        4 ║       1 ║          ║        1 ║ ╚══════════╩═════════╩══════════╩══════════╝   Any suggestions? Proving $\lim_{n\to\infty} a^{\frac{1}{n}}=1$ by definition of limit I recently got a new router, a DRL-600L Router from D-Link, and was setting up some filters to block out certain websites.  One problem I am having is blocking out addresses that use https instead of http.  For example, I'm trying to block out Facebook, because Facebook.   So far, the filter filters http://www.facebook.com perfectly fine, but for the url https://www.facebook.com, it won't block that.  How can I block those kinds of websites? Is it possible to have an ASP.NET MVC route that uses subdomain information to determine its route?  For example:   user1.domain.com goes to one place user2.domain.com goes to another?   Or, can I make it so both of these go to the same controller/action with a username parameter? I would like to update VirtualBox on my 32 bit Ubuntu 15.04 machine from 4.3.26 to 4.3.28, using a Debian package I manually downloaded from . But simply double-clicking the package opens up the Software Centre which gives an error that installing it would break an existing package (the exact message was:   Breaks existing package 'virtualbox' conflict: virtualbox-4.3 ()   and it does not appear to have an option to ignore this and proceed with the installation anyway. Is there a command-line work-around this problem, perhaps? Is there a continuous function such that $\int_0^{\infty} f(x)dx$ converges, yet $\lim_{x\rightarrow \infty}f(x) \ne 0$? Is there a continuous function such that $\int_0^{\infty} f(x)dx$ converges, yet $\lim_{x\rightarrow \infty}f(x) \ne 0$?  I know there are such functions, but I just can't think of any example. Calculating MEAN and STANDARD DEVIATION confussed [] ** calculate the mean and standard deviation of each investment, assume that both returns come from independent samples, are both normally distributed and that the (true but unknown) variances are the same,, Can someone could check my  calculations for  mean and standard deviation? I did calculations but not sure what to do with negative values of distances(If if am correct Investment A MEAN= 78.6875 when it comes to calculating standard deviation i have to power difference by 2 ?  ** Weapon damage bonuses and critical hits What techniques have been used to repeat geometry or other detail to the infinite horizon? How can I remove the first line of a text file using bash/sed script? In school, we just started learning about trigonometry, and I was wondering: is there a way to find the sine, cosine, tangent, cosecant, secant, and cotangent of a single angle without using a calculator?  Sometimes I don't feel right when I can't do things out myself and let a machine do it when I can't.  Or, if you could redirect me to a place that explains how to do it, please do so.  My dad said there isn't, but I just had to make sure.  Thanks. How do I calculate the power consumed by a lightbulb? $\sum_{n=-\infty}^{\infty}\frac{1}{(n+\alpha)^2}=\frac{\pi^2}{(\sin \pi \alpha)^2}$? Why is quantum entanglement considered to be an active link between particles? From everything I've read about quantum mechanics and quantum entanglement phenomena, it's not obvious to me why quantum entanglement is considered to be an active link. That is, it's stated every time that measurement of one particle affects the other.  In my head, there is a less magic explanation: the entangling measurement affects both particles in a way which makes their states identical, though unknown. In this case measuring one particle will reveal information about state of the other, but without a magical instant modification of remote entangled particle.  Obviously, I'm not the only one who had this idea. What are the problems associated with this view, and why is the magic view preferred? What are Virtual Methods? Why would you declare a method as "virtual".   What is the benefit in using virtual? Accented letters with IM FELL fonts I am having an error compiling the following code with xelatex and lualatex:  ** WARNING ** "seac" character deprecated in Type 2 charstring. ** ERROR ** Type2 Charstring Parser: Parsing charstring failed: (status=-1, stack=5)  Output file removed.  \documentclass{article}  \usepackage{xunicode} \usepackage{fontspec}  \setmainfont[Mapping=tex-text,Ligatures={Common}, Numbers={OldStyle}]{IM FELL English PRO} \begin{document}  Buongiorno a tutti. Trallallà.  \end{document}   The error disappears when I omit the accented à. It also doesn't happen when I use other fonts.  Could you suggest any workaround?  Thank you, A Sort order in Windows Explorer The behaviour described below occurs on Windows-7 systems and on Windows XP. We operate in a dual-language environment - English and Hebrew.  When in Windows Explorer we sort files by name, the order in which they are listed is not what we would expect. Here is a list of file names as sorted by Windows Explorer (all of the files have a .pdf suffix):   1G110033H-PP 19C050G-PP-ORB 19C050H-PPRM 19C100H-PPRM 19C-MBPS-PP 19C-MBPS-PP-1 29AAC050-PP 29AAC100-PP 29AAC100-PPUL   29B004064-PP 101AC050-PP 101AC100-PP 101B100-PPE 1091003G-PPFSUL 10108033G-PPSA 10125033H-PPM     It looks to me that first the items are sorted according to the position of the first alphabetic character in the name, and then, within those groups, they are sorted in "normal" alpha-numeric order.  That is, all the files with an alpha character in the first position are on top of the list, followed by those with the first alpha character in the second position, followed by those with the first alpha character in the third position, and so on.  An alternate way of looking at this is that, in a file name composed of numbers and letters, the sort treats the first group of numbers in the name as the major sort node, with the rest of the name being the secondary sort node.  Now that I understand the sequencing logic, it's not a big problem, but I was wondering why this happens? Estimating Spline curve by OLS. Is a good idea to fix the knots at Chebyshev sites? I am writing my master's degree thesis on a novel method for fixing knots in an adaptive way and while reading the literature I've found many references to the so-called Chebyshev sites. This sites or points are basically the roots of the Chebyshev polynomials, and there's a proof showing that the Lebesgue constant (a measure that allows us to see how good is a polynomial interpolation) is very close to its lower bound if we put our knots in those sites. A practical guide to splines (De Boor, 1972) for example provides such a proof.  Anyway I am not interested in polynomial interpolation with splines, but in regression using LASSO on a set of B-splines . On Numerical methods in economics (Judd, 1998) it's stated that the results regarding the 'optimality' of the Chebyshev sites hold also for the regression case, but there is no proof showing that the latter is true.  I would like to know if it's a good idea to estimate the regression using B-splines constructed over a knot sequence given by the Chebyshev sites, since in the OLS framework I am not interested on minimising the Lebesgue constant but rather I want to minimise the $\| \cdot \|_2^2$. In many articles I've found phrases like "we will set the knots at the Chebyshev sites, that are well known to be good..." making allusion to the results presented in De Boor, but ignoring that those refer to the interpolation case.  If your could put some light on the problem I will be very grateful. I've been told that I should use simple past in reported speech when the direct speech is in simple present such as I **am** the best   ~>   He said he **was** the best  but what happens for imperative mood direct speech     "Mom said dont trust strangers"   Or     "Mom said didn't trust strangers"   I think I should maintain the first form. But I'm not sure. And I'm not even sure this relates to the sentence mood. I need the best choice and a further explaination for this :) Optional argument to \item