Reputation
2,673
Top tag
Next privilege 3,000 Rep.
Cast close & reopen votes
Badges
8 17
Newest
 Yearling
Impact
~34k people reached

1d
answered SocialMediaData[“Facebook”, “FriendNetwork”] being returned unevaluated
2d
answered How to trace back to the reasons of this GUIScreenShot's behaviour?
Feb
10
comment What is a good way to import interpolating functions of large size?
The structure InterpolatingFunctions are not documented and are subject to change between versions.
Feb
10
comment How to solve this equation? Which command should be applied?
@MohammadAmin This isn't how math works. Outside the classroom, very few things have such solutions. There are techniques you can use to approximate solutions or ways to represent solutions in different ways, but those require understanding your application for the solution and are topics for a math help board, not here.
Feb
3
comment Phase Portrait to Differential Equation
It's a little vauge to me what you want to do. Do you mean from an image? Or from something like a list of points? Asking "Can Mathematica do this?" is never a useful question. Mathematica can do whatever you are capable of programming. If your question is, "Is this easy to do in Mathematica?" the answer is no. It's not easy in general. But there are probably some tricks you might try.
Feb
3
comment ArXiv queries not working with ServiceConnect
I can't reproduce on OS X. What version of OS X are you using? 1. First try typing out this code in a new notebook after restarting the kernel by running Quit. Please type out the code. Don't cut and paste it. Please also don't type it out in the documentation. Use a notebook. Does it behave the same? 2. Maybe something is wrong with the paclet: what is the output of Needs["PacletManager"];PacletInformation["ServiceConnection_ArXiv"]`
Feb
1
comment Algorithm to solve monetary obligation
At any rate, programming this isn't a easy, but also not that hard for an experienced programmer. Are you familiar with graph theory? You may want to try implementing this or trying it out on small example graphs first.
Jan
31
comment Why do Wolfram Alpha and Mathematica give different answers?
No. Your mistake is common. I've seen it made by plenty of people ranging from highschool students to engineering/science professors at good universities. You, like me, were probably taught calculus by people who had little experience with it in the real world. You were taught to expect that there is a "correct" answer to the integral. Instead you should have investigated whether the solution had the properties of a correct solution.
Jan
31
comment Algorithm to solve monetary obligation
Do you need to do this in a way that guarantees that minimal amounts of money are transferred? That might not be feasible. I'm not sure. But it might be feasible to use a heuristic of some kind in selecting the spanning tree.
Jan
31
comment Algorithm to solve monetary obligation
So the algorithm I would first think up of is this. 1. Find a spanning tree. 2. Pick an edge not in the spanning tree. Modify the values of the edges along the spanning tree connecting those two values so that the edge may be removed. 3. Repeat (2) until all edges are removed.
Jan
31
comment Algorithm to solve monetary obligation
The first step in solving this is to find out how it is solved on paper. I think this is a question more for a site about algorithms than for Mathematica. Once you know what algorithm to use, you can ask about using Mathematica to implement it.
Jan
31
comment Algorithm to solve monetary obligation
I'm sure this is a standard problem in Graph theory. But if it is, I don't remember it. You have a directed Graph of edge values and you're looking for a spanning tree.
Jan
22
comment Mathematica 10.2 is slow to NIntegrate highly oscillatory integrals
Actually, judging from the results, it's probably the opposite. I bet version 10 tries to do something smart behind the scenes with the Interpolation instead of treating it as a function.
Jan
22
comment Mathematica 10.2 is slow to NIntegrate highly oscillatory integrals
NIntegrate isn't every supposed to be ran on an Interpolation. So they probably didn't care too much about making sure it runs fast. They've upgraded a lot of things with Interpolation since version 9. Perhaps version 9 had a special shortcut it used directly on the InterpolationObject instead of calling it like a numerical function? Who knows.
Jan
21
comment Resolve assuming $x$ is real when $x$ is a free variable in a ForAll expression
Look at the result of '(2 (x^2 + y^2))/y^3 >= 0'. You have x in an inequality. If x is an arbitrary complex number, isn't that statement nonsense?
Jan
21
comment Resolve assuming $x$ is real when $x$ is a free variable in a ForAll expression
Your code uses a comparison (>) with x. The complex numbers are not an ordered field. You cannot use (>) with them. So when you do use (>) with a number, it is assumed you mean it is a real number.
Jan
18
comment How to deal with MathLinkException in webMathematica
This is a problem that I would contact Wolfram Technical Support about: support.wolfram.com/kb/5292
Jan
18
comment How to optimize this code?
I want to note that typically, you use a different formula for the hypotenuse, for numerical stability. Maybe you should use Norm instead.
Jan
18
comment How to optimize this code?
Without compiling, you might consider this, which is about 2x as fast it seems: PolarCoords = newCoord /. {x_, y_} :> {Sqrt[x^2 + y^2], Mod[ArcTan[x, y], N[2 [Pi]]]};
Jan
18
answered How to optimize this code?