# All Questions

24 views

### Plotting Zeros of a Complex Variable

I'm trying to plot the zeros within a certain distance from the origin using Mathematica of a given function (in my case, partial sums of the Zeta Function). I've tried plugging in simple functions, ...
21 views

### Addition of sparse array objects

I have been having some trouble with the addition of large (but very sparse) matrices using SparseArray. Here is the simplest example to illustrate the issue. First, I will define diagonal matrices ...
24 views

...
19 views

### Force multiplication by a single factor

I have an expression that Mathematica decides to return in the general form: y = f ( a/f + b/Sqrt[f + 2] + c*f^2/Sqrt[f + 2]) (actually my expression is much ...
31 views

### Reading a text file and list

I'm new to Mathematica and I am trying to import a single column data file as follows: data=Import["mydata.txt",{"Data", All}] ...
36 views

### Paste letter grades B+ , C-, A, B into notebook and not get B+C-AB

I have worked for two days to find a way through this problem. I am porting my student grade records into Mathematica from spreadsheets, or sometimes from my college web sites, or sometimes from my ...
24 views

### Represent finite sum as an integral

I'm trying to estimate a number of iterations in cycle via integral function. For example, I can represent the cycle below ...
38 views

### Insert a linebreak and character repeatedly into a very long string

Suppose I have a very long string ...
23 views

### Importing and manipulating data in HDF format

I have two matrices A1 and A2 in HDF format. I use the following code to import them. ...
51 views

### Plotting data in a weird format

I have a lot of data on the following form: data = {{param1,param2,param3,param4,{{x1,y1},{x2,y2},...,{xn,yn}}},...} The first variables in each sublist are ...
24 views

### NDSolve example - analytical vs numerical solution. How to specify initial conditions?

So, I have the following equation: y[t]^-3 == w^2 y[t]/t^2 + y''[t] where w^2 = (t0 k0)^2. Analytic solution is easy to ...
24 views

### Differential equation with a composite variable

So I want to make a numerical solution of the following equation: $u_{xx}-(6u^5-8u^3+2u)-u_t/r = 0$ where r = $\sqrt{t^2+x^2}$ and I'd want a solution $u = u(r)$. The only constraint I know of is ...
84 views

### How to draw rectangle in mathematica with arrow

I have a basic question but i cant seem to find an answer for it. How do i draw a rectangle in mathematica with either clockwise or counterclockwise arrow heads. In this picture i know two points ...
94 views

### InstallR on OS X with external R installation

How do I InstallR on OS X to use my already installed and configured R? Simply using ...
99 views

### Interpolation: Unstructured grid error

If I try to make a table SimpleTable and to interpolate a function of two variables, I encounter a problem. For example: ...
14 views

### trying to speed up sequential use of NDSolve for large system of ODEs

I don't have a basic example just yet but I'll describe the problem for now. I have a large system (>100) of coupled first order ODEs. Where the output from one solution becomes the ICs for the next ...
30 views

### Sorting non-numerical lists [on hold]

The Sort function will by default sort from lowest to highest. In[1]:= Sort[{3, 1, 4}] Out[1]= {1, 3, 4} However, if the list ...
43 views

### How to 'center' a Histogram

How can a generate a histogram so the peak of the distribution is at x=0? I want to center these histograms for comparison ...
18 views

### Launching external program in background process with ParallelSubmit

I work on the implementation of an image processing pipeline in Mathematica in which I also would like to use external programs to do certain processing steps. As an example I have macros for the ...
398 views

### Finding differences between Pi with varying number of decimals

I have the following code In[32]:= N[Pi, 2] Out[32]= 3.1 In[33]:= N[Pi, 1] Out[33]= 3. In[34]:= N[Pi, 2] - N[Pi, 1] Out[34]= 0.*10^-1 Why can't Mathematica ...
20 views

### Polynomial GCD over a ring (with composite characteristic)

I'd like to implement the "Franklin-Reiter Related Message Attack" (see section 4.3 of Boneh's paper). As part of the implementation, I require to compute the GCD of two polynomials over ...
46 views

### Extract element from list seems not right [on hold]

I have a list of symbolic expressions. like this: ...
39 views

### Import a large no. of image from a folder together to Mathematica and assign a variable to each of the image [duplicate]

I am using Mathematica for the processing of images. For this I have to process a lot of images. Currently, I import one by one of the images to run the simulation. I want to import all the image ...
52 views

### intersection of two lines with a slope slider

I am trying to build an IS/LM model with sliders for a few things including the slope of the IS curve. I am stuck getting the equilibrium ticks and dashed lines to properly follow the intersection of ...
59 views

### Convergence in NIntegrate vs Integrate

I am faced with this situation that for a certain integration, $\int _0 ^\infty \frac { \tanh (\pi \sqrt{x} )} {\sqrt{x+10} } dx$ - the command Integrate returns ...
30 views

### Strange result using NIntegrate with Max and PDF

This is really trivial and I appologise in advance if I have made a stupid error somewhere. I have been chasing down some strange results when using NIntegrate with ...
21 views

### Resolve a conditional expression including exists and forall

I don't know the Resolve function exactly, especially when involved with Exists and ForAll, ...
44 views

### How to get the digits of the base 2 representation of an integer [on hold]

I would like to convert a number into base 2 and then use IntegerDigits[] on it. When using BaseForm[i,2], the notebook only ...
52 views

### How do I make map coordinate system frame with specified map projection [on hold]

How do I make map coordinate system frame with specified map projection? as the plot with Mercator projection.Beause I want to plot some point on the map coordinate system.
129 views

### Visualising Special Relativity

Mathematica newbie learning by doing (or not so far, in this case). Problem: Special Relativity - consider two inertial frames $A$ & $A'$ in relative motion. At a time $t0$ as measured in $S$, ...
17 views

### solving a trigonometric differential equation [migrated]

hello could anybody please show me how to solve y''+ 2*y'+2y = 10 cos(t) I found the Yc , but I have problems figuring out the particular solution . Thank you for your help
34 views

### Issue with recurrence variables .. and manipulate

Hello i have problem with this code: ...
62 views

### Accumulate 2D points that have the same first component [duplicate]

I have a list of points: points={{3, 0}, {3, 9}, {4, 2}, {5, 5}, {6, 9}, {6, 6}, {6, 1}, {7, 7}, {8,0}, {8, 10}}; And as you can see on the plot, there are ...
81 views

### How to solve that kind of partial fraction decomposition equations?

I need to find all variables $A, B, C, D$ for given equation with independent variable $s$. How can I solve that with Mathematica ? Example, not working: UPDATE: One Two Three Four ...
52 views

### NLP Project in Mathematica [on hold]

For my CS class, I am required to create a final project written in Mathematica. My favorite field of CS is NLP (natural language processing), so I'm looking for ideas related to NLP for my project. I ...
84 views

### Solve non linear system of equations

I am trying to solve a system of two equations with two unknowns. In these equations I have, a part from constants: Unknown nr 1, $$D_{\perp}$$ Unknown nr 2, $$\omega_C$$ Known function of r: ...
53 views

### Numerical method for solving a polynomial equation

I am looking for a numerical solution of a equation which contains, in general, one polynomial equation with unknown variable x. I have tried Reduce, ...
84 views

### Problem with CurrentValue[“MouseOver”] when graphics are wrapped with Deploy

Please take a look at following toy example: ...
57 views

### Plot rate of change in $x$ axis of list of points

I have a list of points, that may have clusters in some of the $x$ axis values, and my goal is to get a function that shows that graphically. Something like this, but the red function is "hand ...
118 views

### Mathematica Workbench - when to expect an update? [on hold]

I'm considering getting Mathematica Workbench 2. Looking at the videos on Workbench 2 and on "Profiling Mathematica code" @ 01:09 I see the current version nr 2 dates back to at least oktober 3 2007 ...
34 views

### Spherical harmonic derivative

Consider the following substitution Derivative[2, 0][S][th, ph] /. S -> Function[{th, ph}, SphericalHarmonicY[3, 0, th, ph]] which gives correct answer. While ...
66 views

### How to get a number from Solve [duplicate]

It's often useful to get just one number from Solve. I use the following construction for acquiring one solution from the expression returned by ...
28 views

### Parallel kernels won't start [on hold]

On my new MacPro (on Mavericks) Parallel kernels will only start if the Master kernel is the standard one with name Local. My other added Master kernels will work but any Parallel Kernel evaluation ...
33 views

### executing a mathematica packet from within java

i have this package.m that i am trying to call to from within java code using netbeans, however it does not seem to be responding. how can i test to see that i am actually connecting to Mathematica? ...
73 views

### Patterns of function-arguments in expressions

I want a function that compares an expression with a specific pattern. The expression has always the following form: ...
64 views

### Unexpected output from oddSublists

I have just bought Mathematica and I'm in the process of plowing through Shifrin's great book. On page 74 the function oddSublists doesn't give me the expected ...
71 views

### CurveGraphics for 3D System of DEQs

I am using the CurveGraphics6 NB to try and do some 3D related phase portraits and graphics. The following works and produces an animation. ...
63 views

### Savitzky-golay filter

How to use Savitzky-golay filter on csv file? I have file.csv in this format: 0.1,1.6,2.8,0 0.2,1.2,2.3,1 0.7,1.5,2.4,2 0.6,1.2,2.7,3 0.4,1.4,2.9,4 0.3,1.3,2.5,5 ...