Is it possible to print the value, that the free() wants to free the memory?
How can I get the size of a memory block allocated using malloc()?
Find the maximum value of the expression ${\frac {x}{1+x^2}} + {\frac {y}{1+y^2}}+{\frac {z}{1+z^2}}$. Find the maximum value of the expression :   $${\frac {x}{1+x^2}} + {\frac {y}{1+y^2}}+{\frac {z}{1+z^2}}$$   where $x,y,z$ are real numbers satisfying the condition that $x+y+z=1$.   Taking $x=y=z=\frac {1}{3}$, I get the expression as $\frac {3x}{1+x^2}$, which is equal to $\frac {1}{1+{\frac{1}{9}}}$ or $\frac {9}{10}$.  How can I actually solve the problem without making unnecessary assumptions ? Does voltage drop occur with zero load and zero resistance Correct interpretation of a "double-negative" in American Pop Culture (i.e. "I ain't afraid of no ghost!") What temperature is achieved in focus point by 5000 flat 1x1cm mirrors onto a satellite dish? There is this  ("R5800 Solar Death Ray") where teenager built a 5000 mirror device which concetrates the solar rays which is showing the potency of the mosaic method of concentrating sunlight using elliptical dish. It can fire the wood, boil the water in seconds, melt an aluminum, glass or even burn the whole in concrere or rock.  What is the approximate maximum temperature (could be a range) is achieved by this mirror device in its focus point on sunny day?       The R5800 solar concentrator, replaced by the new R23k, is made from   an ordinary fiberglass satellite dish. It is covered in about 5800   3/8" (~1cm) mirror tiles. When properly aligned, it can generate a   spot the size of a dime with an intensity of 5000 times normal   daylight. This intensity of light is more than enough to melt steel,   vaporize aluminum, boil concrete, turn dirt into lava, and obliterate   any organic material in an instant. It stands at 5'9" and is 42"   across.   Technical details &amp; calculations:     Calculations: Area of dish aperture (elliptical)= (pi x 102cm x   73cm)/4 = 5848 sq cm       Area of focal point (circular)= pi(0.6cm)^2 = 1.14 sq cm      Dish Type= 0.7m x 1m offset focus elliptical.      Concentration Power= 5000x      Output Power Estimate = 560 watts Let $X_1$ and $X_2$ are independent $N(0, \sigma^2)$ random variables. What is the distribution of $X_1^2 + X_2^2$? Let $X_1$ and $X_2$ are independent $N(0, \sigma^2)$ which means (mean = 0, variance = $\sigma^2$) random variables. What is the distribution of $X_1^2 + X_2^2$?  My approach is that  $X_1\sim N(0, \sigma^2)$ and $X_2\sim N(0, \sigma^2)$  Then $X_1^2$ and $X_2^2$ have chi-squared distribution with 1 degree of freedom. (I am not sure the degree of freedom and not sure how to show it as well(please help on this))  Then I found the moment-generating function for $X_1^2$ and $X_2^2$;$$m_{X_1^2} = (1-2t)^{-1/2}$$ and $$m_{X_2^2} = (1-2t)^{-1/2}$$  So the moment generating function for $X_1^2 + X_2^2$ is $$m_{X_1^2}(t) m_{X_2^2}(t) = (1-2t)^{-2/2}$$  So $X_1^2 + X_2^2$ has a chi-squared distribution with 2 degrees of freedom. Is this correct? I've read that flash memories can "only" be reprogrammed 100000 to 1000000 times, until the memory storage "deteriorates"  Why exactly does this happen with flash and not other memory types, and what does "deteriorate" refer to, internally?  EDIT: Since it's not only flash that this happens, I'd like to generalize a bit and inquire about the memories that have this problem. Also, does the wearing out between these memory types occur due to the same phenomenon? Show that if $f(z)$ is an entire function such that it takes real values on the lines $Im(z)=0$ and $Im(z)=a$ (for some $a \in \mathbb{R}_{\neq 0})$, then $f$ is periodic with period $2 i a$.    So here is my thought process: First of all by reflection principle $f(\bar{z})=\overline{f(z)}$ so if our function $f$ is given in the strip $0 \leq Im(z) \leq a$, then its values on $-a \leq Im(z) \leq a$ follow by reflection principle. Then by imposing $f(z)=f(z+2 ia)$ we can intuitively see that this will define an entire function by looking at how the strips $na \leq Im(z) \leq 2na$ seamlessly stack on top of each other. Is this logical? And how would one prove this analytically? Who was the piano player that Starbuck met in the bar on Galactica? Towards the end of season four, Starbuck meets a piano player in the makeshift bar on Galactica.  Now, it appears that this guy is some kind of ghost/angel like Caprica-6 and the ghost Baltar - but I have an idea that he could also be the original copy of the seventh model (Daniel). It's mentioned right in the episode before that Cavil poisoned all of the bodies that were being prepared to accept a copy of Daniel - but it's ambiguous about the fate of the original cylon with that personality. Daniel was also mentioned as an 'artist' and 'sensitive' person.  So - could it have been Daniel that helped Starbuck realise what the music meant? Node.js on multi-core machines Permutations with repeating digits My question is this : how many distinct two digit numbers can be produced from numbers $4, 3, 3, 1$? When applying the formula $$\frac{4!}{(4-2)!2!}$$ you come up with $6$, yet when doing the problem manually, I come up with $7$ numbers, namely $41, 43, 14, 13, 33, 31, 34$. Can anybody explain this discrepancy?  Thanks. How can I define a custom listing environment? I am trying to define an enviroment for a specific programming language, F#. Here's my code:  \definecolor{bluekeywords}{rgb}{0.13,0.13,1} \definecolor{greencomments}{rgb}{0,0.5,0} \definecolor{turqusnumbers}{rgb}{0.17,0.57,0.69} \definecolor{redstrings}{rgb}{0.5,0,0}  \lstdefinelanguage{FSharp}     {morekeywords={let, new, match, with, rec, open, module, namespace, type, of, member, and, for, in, do, begin, end, fun, function, try, mutable, if, then, else},     keywordstyle=\color{bluekeywords},     sensitive=false,     morecomment=[l][\color{greencomments}]{///},     morecomment=[l][\color{greencomments}]{//},     morecomment=[s][\color{greencomments}]{{(*}{*)}},     morestring=[b]",     stringstyle=\color{redstrings}     }  \newenvironment{fslisting}   {     \lstset{         language=FSharp,         basicstyle=\ttfamily,         breaklines=true,         columns=fullflexible}     \begin{lstlisting}   }   {     \end{lstlisting}   }   Then I'm trying to use it as such:  \begin{fslisting} type 'a Process = 'a Signal IObservable \end{fslisting}   But it doesn't work. The output log says that the listing is not terminated - or is terminated by the document. So the rest of the document is also formatted as a listing, which is of course not the intention.  What am I doing wrong here? Why 220V and 110V? Why did the industry choose these seemingly unintuitive values of 110V and 220V for the mains AC? Is there a physical reason why they aren't simply 100V and 200V? Multiple forms in delphi Find $x$ in   $$ \Large 2 = x^{x^{x^{\:\cdot^{\:\cdot^{\:\cdot}}}}}$$   A trick to solve this is to see that $$\large 2 = x^{x^{x^{\:\cdot^{\:\cdot^{\:\cdot}}}}} \quad\implies\quad 2 = x^{\Big(x^{x^{x^{\:\cdot^{\:\cdot^{\:\cdot}}}}}\Big)} = x^2 \quad\implies\quad x = \pm \sqrt{2} $$  Are these solutions correct? If not, why? If yes, are there other solutions?    PS: An extension of this discussion can be found in Differences between ways to express future actions In a script I'm trying to find the Terminal.app window containing a specific tty device and raise that window to the top. Here's what I have in Applescript so far:  tell application "System Events"   set foundWin to false   if (name of processes) contains "Terminal" then     tell application "Terminal"       set theTabs to first tab of every window where tty is "$(tty)"       repeat with theTab in theTabs         if class of theTab is tab then           set theWin to (first window whose tabs contains theTab)           set selected tab of theWin to theTab           set foundWin to true         end if       end repeat     end tell   end if   if foundWin then     --RAISE THE WINDOW?!   end if end tell   Where I'm getting stuck is the "raising the window" part.  Here are some things that are not quite what I want:  set frontmost of theWin to true -- this brings the window to the front of the group of Terminal.app windows but doesn't raise it above any other windows.  tell application "Terminal" to activate -- this brings every Terminal window to the front in a big stack. I just want the one window.  tell application "System Events"     set theSysWin to first window of process "Terminal" whose name is (name of theWin)     perform action "AXRaise" of theSysWin end tell   This almost does it, but what it does is to raise the terminal window to the #2 position, still underneath the active window (if the active app is something other than Terminal.app.)  click theSysWin at {10,50} -- doesn't seem to do anything.  click first static text of theSysWin -- doesn't seem to do anything.  Is there a way to do this? It doesn't have to be in Applescript.  EDIT I did find this web page (  ) quoting an Obj-C/Cocoa call:  SetFrontProcessWithOptions(&amp;psn, kSetFrontProcessFrontWindowOnly);  I'm not familiar with either ObjC or Cocoa, and this is (ultimately) getting invoked from a shell script, so not sure where to go from there. Azure DNS does not lookup SPF policies for certain domains Seeking English term for relationship between two members of extended family? Do gravitational lenses work on gravitational waves? How do I integrate the following $$\int \frac{dx}{\sin^3 x + \cos^3 x}$$ ?  It appears that I am supposed to break this up into $(\sin x + \cos x)(1-\cos x \sin x)$, but the next thing to do is not apparent to me.