why pandas dataframe -0.999990 to list become -0.9999899999999999,who can help me?
Is floating point math broken?
I keep running into areas where I see a chest in a section of the room that seems completely walled-off. Is there any way to get to these, or is that just the randomly generated dungeon being a tease?  I had to splice two screenshots together to show an example of what I'm talking about:   Is there any way to get in there? Idiom/Phrase for "results without work/effort" I'd be greatly appreciative of a cleverly devised idiom/phrase that depicts the following concept:     Results without work/effort.   ...and/or...     My Work/Effort; Your Result.   Any idioms/phrases you can recount or conceive would be of use.    Contextual Edit:  The idiom/phrase should be in the context of service offering/hiring or task delegation, not free-loading as most answers thus far have understandably assumed. E.g.     [You hire me for] My Work/Effort; [My work/effort produces] Your   Result. Etiquette on sending a thank you e-mail to respondents who gave me helpful information Analogue of spherical coordinates in $n$-dimensions What's the analogue to spherical coordinates in $n$-dimensions? For example, for $n=2$ the analogue are polar coordinates $r,\theta$, which are related to the Cartesian coordinates $x_1,x_2$ by  $$x_1=r \cos  \theta$$ $$x_2=r \sin  \theta$$  For $n=3$, the analogue would be the ordinary spherical coordinates $r,\theta ,\varphi$, related to the Cartesian coordinates $x_1,x_2,x_3$ by  $$x_1=r \sin  \theta  \cos  \varphi$$ $$x_2=r \sin  \theta  \sin  \varphi$$ $$x_3=r \cos  \theta$$  So these are my questions: Is there an analogue, or several, to spherical coordinates in $n$-dimensions for $n&gt;3$? If there are such analogues, what are they and how are they related to the Cartesian coordinates? Thanks. During Thor's interrogation, Agent Coulson exits the room and Loki enters and informs him that his father Odin had passed away and that he cannot undo his banishment. Not only does he communicate with Thor, but he goes to the area where Mjölnir is embedded in the rock and attempts to lift it, with SHIELD scientists and agents completely oblivious to his presence. Loki shows a similar ability when he converses with 'The Other' and when he manipulates Erik Selvig. Is this a part of Loki's illusion powers or another one of his abilities that has not been addressed? How was he able to visit Earth without using the Bifrost? How do I tell if ACR will work with my camera and how do I get the correct version for Photoshop? In MySql, find strings with a given prefix Python "extend" for a dictionary Ubuntu16.04 boots into initramfs Ubuntu doesn't boot up and it goes into initramfs. I am writing from a live CD trial session. what should I do?  I understand that the boot flow is broken and that when the files from root are going to be loaded into the ram, it does not find the files in the root directory. Please correct me if I'm wrong.  The following is the output from ashell as I input the "exit" command:  (initramfs) exit /dev/mapper/ubuntu--vg-root contains a file system with errors, check forced. Inodes that were part of a corrupted orphan linked list found.  /dev/mapper/ubuntu-vg-root: UNEXPECTED INCONSISTENCY; Run fsck MANUALLY.     (i.e., without -a or -p options)  fsck exited with status code 4. The root file system on /dev/mapper/ubuntu--vg-root requires manual fsck Visiting Russia as an Arab. Am I going to be hassled? How to adapt classicthesis layout to B5paper and Linux Libertine Question says it all: I am using classicthesis with XeTeX to typeset my PhD thesis. I want to use B5 paper size (176 × 250 mm) and the beautiful Linux Libertine font. I'm wondering how to    calculate the optimal page margins actually apply these settings to the document   Any help is greatly appreciated =)  EDIT: I should add that I need to generate two different PDF files from this:   a version with papersize A4 (210 × 297 mm), where the B5 layout is (approximately) centered, and crop marks are shown, to pass on to the printing company a version with papersize B5 for online distribution, having the same layout as the printed one.   I tried fiddling with using  and \areaset command, but to no avail. How do I prove that in every commuting family there is a common eigenvector? The proof given by my textbook is highly non-satisfying. The author adopted some magic-like "reductio ad absurdum" and the proof (although is correct) didn't reveal the nature of this problem. I made my own effort into it and tried a different approach. Yet I can't finish it.  Let $\mathscr{F}$ be a commuting family in $M_n(\mathbb{C}^n)$, and $A\in\mathscr{F}$, then $A$ has $n$ eigenvalues. We pick one, say $\lambda$. Let $x$ be one of its eigenvector.  We can easily prove that, if $A$ has no other eigenvector with eigenvalue $\lambda$ that linearly independent with $x$, which means that $\{cx|c\in\mathbb{C}\}$ are the only vectors satisfying $Ax=\lambda x$, then $x$ is a common eigenvector. Because $\forall B\in\mathscr{F}$ and $\forall y\in \{cx|c\in\mathbb{C}\}$, $$A(Bx)=ABx=BAx=B(Ax)=B(\lambda x)=\lambda (Bx)$$, so that $Bx$ has to be in $\{cx|c\in\mathbb{C}\}$, that is, $Bx=c_0x$ for some $c_0\in\mathbb{C}$, which means $x$ is a eigenvector of $B$ too.  But what if there are vectors satisfying $Ax=\lambda x$ that's not in  $\{cx|c\in\mathbb{C}\}$? Well, then we should have a set of linearly independent eigenvectors $\{x_1,x_2,...,x_k\}$, that $\{c_1x_1+c_2x_2+...+c_kx_k|c_i\in\mathbb{C}\}$ are the only vectors satisfying $Ax=\lambda x$.  Now, I have a reasonable hypothesis that there exists some $x=c_1x_1+c_2x_2+...+c_kx_k$, that can be proven to be a common eigenvector of $\mathscr{F}$. I've tried some approaches to prove it but all failed.  Do you guys believe it's true? And if it is true then how do I prove it? The system L0 is defined as follows:  Axioms: A1 (α → (β → α))  A2 2. (α → (β → γ) → ((α → β) → (α → γ))  A3 ((¬β → ¬α) → ((¬β → α) → β))  In one of my problem sheets, I am told that I am allowed to use the following theorem: if   ⊢ (α → α)    ⊢ (α → α) → (α → α)  My attempt to solve/prove the second one  ⊢ (α → α) → (α → α) choose 2 axioms which match.  α →α   β→α  γ→α  (α → (α → α) → ((α → α) → (α → α))  I'm struggling to see an obvious way of proving the theorem.  Is it provable? And if so, can you point me in the right direction?  Thanks a lot! Is an explanation of 'effect of Earth's rotation on $g$' possible from an inertial reference frame? Edit : Added a picture for better understanding of my querry. All the texts I have studied has used an non-inertial frame to explain the phenomenon. But every time I see something explained with pseudo forces, I try to realize in real forces.   But in this case I tried to explain it in a frame which is centered in Earth's center and not rotating. But I couldn't explain what happens to the tangential component (to the point on Earth's surface where $g$ to be measured) of centripetal acceleration in this scenario. It doesn't cancel out.   But then I thought the tangential component is so low that practically it would have no effect.  Is my explanation wrong? How do I contact other users? How can I contact another user, if that user has not specified any contact details in their profile? I'm hoping there's something in the same conceptual space as the old VB6 IsNumeric() function? Solve $\sin x = 1 - x$ How would you be solve sin x = 1 - x, without drawing the graph and manually measuring the point of intersection? Please provide a mobile-optimized captcha page Some irreducible character separates elements in different conjugacy classes Let $x$ and $y$ be elements that are not conjugate in $G$.  Then there is some irreducible character $\chi$ such that $\chi(x) \not = \chi(y)$.   Clearly the "irreducible" part isn't important, since any character can be written as the sum of irreducible characters, but I'm having trouble going beyond that.  I'd appreciate a good hint over a full answer, and I'd be most interested in a way to construct a group representation $\varphi:G \to GL(V)$ of $G$ such that the character of the representation takes different values on $x$ and $y$. How can I re-write the conditionals for this button I've been trying out React for a couple of days and I tried to build a button component with some conditionals. Everything works but I feel like I am not doing it the right way. Could anyone review my code and give me some advice and tell me what I am doing wrong or what i could do better. I think I am using too many return statements. I use Typescript for type checking. Would appreciate any help! import { Link } from &quot;gatsby&quot;;  interface Props {   content: string,   color: string,   path?: string,   type?: string }  export default function Button(props: Props): JSX.Element {   let elementType;    const checkProps = () =&gt; {     const availableColors = ['blue', 'grey', 'dark-grey', 'white'];     const borderColors = [''];     let buttonStyle;      // Check if props.color exists in availableColors     if(!availableColors.includes(props.color)) {       console.error(`&quot;${props.color} color key not available for button style`);       return;     }          buttonStyle = buttonStyles[`button--${props.color}`];      // Check if props.content is valid     if(!props.content) {       console.error(`&quot;${props.content} is not valid as content`);       return;     }      // Check if props.type exists     if(!props.type) {       elementType = &lt;button className={ buttonStyle }&gt;{ props.content }&lt;/button&gt;       return;     }      if(props.type !== 'link') {       console.error(`&quot;${props.type} is not a valid type, use 'link' instead or use nothing for default button`);       return;     } else {         elementType = &lt;Link to={ props.path } className={ buttonStyle }&gt;{ props.content }&lt;/Link&gt;     }   }    checkProps();    return (     &lt;React.Fragment&gt;       { elementType }     &lt;/React.Fragment&gt;   ); }```