6
votes
0answers
163 views

Using stateful web services with Mathematica 9

The WebServices package in Mathematica 9 no longer seems to support stateful web sessions. This requires the client (i.e., the WebServices package) to pass back the HTTP Cookies that it receives from ...
4
votes
1answer
362 views

What's the simplest way to plot an ErrorListPlot with only y error bars?

Sometimes I get really tired of Preparing data for making an ErrorListPlot using Thread and friends. Is there a simpler way to plot an ErrorListPlot with only y ...
-4
votes
1answer
268 views

Export plot to Excel

Very new to Mathematica. Used the code to solve for the response of a system of spring mass dampers but would like to export the data to Excel. ...
5
votes
2answers
217 views

Graph does not evaluate some options when not displayed

How can I force Graph to evaluate all its options without actually displaying the graph itself? Evaluating the following code ignores the ...
3
votes
1answer
291 views

Create Euler equation

I've tried to make some research, but without any luck. How do I setup the Euler equation for this in Mathematica?: $ \text{Min} \int_0^1\left(2x^2+ \left(4t-5 e^{r \, t} \right) x \, \dot{x} + ...
10
votes
5answers
330 views

Transform a list of functions to a composition

How do I apply a list of functions in a nested way? Example: functionList = {f1,f2,f3} RequiredCommand[functionList,Pi] such that the required command returns ...
3
votes
0answers
412 views

ItoProcess for stochastic reaction-diffusion equation

I am trying to simulate a stochastic differential equation in time and space, but I'm unsure if this can be done in Mathematica. The sde that I would like to study is: $$ ...
0
votes
2answers
404 views

How to plot vector function r(t) = i + j + t*k

How can I plot the vector function $r(t) = i + j + t\;k$, where i, j, k are unit vectors, and t is the parameter of the function r.
1
vote
0answers
405 views

Doing local FFT on huge 3D vector data cell mesh and visualizing it spatially?

Simulation type: I'm running a simulation with the OOMMF micromagnetics package http://math.nist.gov/oommf/ where are magnet is represented by a mesh of 3 million cells, it gets excited by a ...
0
votes
0answers
31 views

Exporting large expression [duplicate]

I generated a huge mathematical expression (~200k terms, impossible to simplify yet) and want to save it for later analysis. Last time I did Export to *.nb file and ...
2
votes
1answer
351 views

Inequalities with assumptions and constraints

I'm using Mathematica 8 I've been searching the net without luck for this specific solutions: Suppose I have an inequality f(x;M,m)>0 where I KNOW that M>4m and m>0. How can I let Mathematica know ...
4
votes
1answer
86 views

Use of the option EvaluationElements

When trying to answer this question, I ran into the following problem. In the help documentation of EvaluationElements, it is claimed that we can use EvaluateNotebook to evaluate only cells that have ...
1
vote
1answer
213 views

Plotting & Solving

I'm trying to plot replicate a graph from one of the articles and it has series of equations it has solved. here is my code so far: ...
8
votes
1answer
187 views

Working in a team in Workbench

Imagine the following scenario: user A is developing a project with documentation in workbench. She wants to share her (unfinished) work with a small group (4-5) of users (B,C,D,E) , so that all ...
1
vote
3answers
299 views

Summation over 3 lists

I have three lists. As an example, a = {10, 5, 6, 8, 7}; b = {4, 8, 9, 7, 9}; c = {7, 5, 12, 4, 1}; I want to get $$x(i)=\sum ...
2
votes
1answer
408 views

Creating hexahedral finite elements in Mathematica

Is it possible to do FEM using hexahedral elements in Mathematica? If it possible, is there any help to do that?
0
votes
0answers
29 views

Error in extracting a column [duplicate]

I imported excel data to Mathematica using this command. kuruzD = Import[ "C:\\Users\\TMH\\Documents\\Problem Set 4\\kuruzData.xlsx"][[1]] //TableForm I want to ...
11
votes
2answers
241 views

Is it possible to create Evaluatable cell which will be automatically overwritten?

Am trying to generate an Evaluatable cell which itself is an output cell which will be overwritten when the original Input cell ...
1
vote
3answers
267 views

How to find intersection of multiple lists excluding empty ones?

I have lists like list1={1, 1, 2, 3}; list2={3, 1, 4}; list3={}; I want to find the intersection of all list. I tried the following way, but it's not working. ...
3
votes
2answers
500 views

Axis labels are clipped (in BarChart)

I have created a bar chart with the below code. My $x$ axis labels have been cut in half for some reason. My $x$ axis heading is also missing. I tried using ...
4
votes
1answer
408 views

Creating plot markers with centered text

I want to create a series of plot markers which are circles, squares etc. with 2-3 letter codes centered within the marker. My current attempt looks like this: ...
1
vote
0answers
120 views

Getting poles of a Gamma functions [duplicate]

Why do the following 2 sequences give different answers? n = 1.5 Series[Gamma[0.5 - n - x], {x, 0, 2}] Series[Gamma[-1 - x], {x, 0, 2}] (..clearly the output from the second expression is ...
5
votes
3answers
241 views

Storing data in the Notebook in readable form

The common problem in my theretical work is a need to import some experimental data to work with. This means that my notebook depends on some external files which makes it difficult to share it with ...
1
vote
1answer
176 views

Weighted Kirchhoff Matrix?

I have a weighted graph and I want its graph Laplacian matrix (what Mathematica calls the Kirchhoff matrix in the unweighted case). Is there an easy way to get this? For example, the command: ...
11
votes
2answers
591 views

Make good looking histograms from frequency data

I allways do my calculations in Mathematica and I make my histograms using ROOT language. However I am wondering is it possible to make good looking histogram inside Mathematica? A sample of what I ...
1
vote
2answers
478 views

Area of the largest rectangle bounded by $y=x^2$ and the x-axis within the unit interval

I am trying to find the area of the largest rectangle (whose sides are parallel to the coordinate axes) contained in the region bounded by the graphs of $y = 0, y = x^2,$ and $x = 1$ using ...
1
vote
1answer
57 views

Is SynchronousUpdating->False supposed to make this simple Dynamic example work?

x = 0; Dynamic[{x, Button["+1", Pause[6]; x++]}, SynchronousUpdating -> False] The documentation states that Dynamic and Manipulate will abort synchronous ...
4
votes
0answers
179 views

Strange result from evaluating a Limit expression

When I evaluate the limit of (1-Cos[x]) Sin[1/x] at x = 0 in Mathematica 9, I obtained ...
2
votes
1answer
119 views

Obtaining a function from the function

Assume that; ...
1
vote
1answer
118 views

Constrain plot points to below a certain line

I have a set of curves that take on large values when approaching 1. I'm trying to create a straight line with certain slope and then truncate the plot for any curve that goes above that line for any ...
0
votes
1answer
145 views

Difference between FindInstance and NSolve

Assume that ...
4
votes
2answers
443 views

WhenEvent in NDSolve

How come this doesn't work as I intended? ...
1
vote
1answer
168 views

FindMaximum inconsistency

The code below seems to work for n<11. But for n=11, and above, it outputs newa then just outputs "beep" sound. WhyTheBeep says "The kernel Local has quit ...
1
vote
1answer
299 views

How to guess initial complex value for FindRoot

I have to solve a transcendental equation for a parameter, say $\beta$. Now, the $\beta$ has a range from $ik$ to $k$ where $i$ is the usual imaginary root $\sqrt{-1}$ and $k$ is a real number. ...
0
votes
4answers
559 views

Specify a variable as an integer

I have a formula that always evaluates to a certain number for any variable X under one condition that X is an integer and ...
0
votes
2answers
205 views

Find white regions in image

At the white regions of this image I want to add a few random arrows. I would like to realize two different of adding the random arrows: The arrows may not leave the white region The arrows have to ...
4
votes
2answers
650 views

How do you configure Mathematica 9 to automatically evaluate all notebooks?

I have a Mathematica 6 course that I am using in Mathematica 9; there is no updated version. Every time I open a notebook I have to go to the Evaluation menu and click on "Evaluate Notebook". Is there ...
8
votes
2answers
435 views

Why does Integrate declare a convergent integral divergent?

When I try this command Integrate[1/Sqrt[(s^2 - u)^2 - 1], {s, m, Infinity}, Assumptions -> u > 2 && m > 10] Mathematica declares that the ...
5
votes
2answers
472 views

Export to CSV is very slow - can performance be improved?

I have to provide data exports from Mathematica to CSV format and it is very slow compared to other formats as can be seen in the following table: JSON, 15 sec, 8.4 MB TXT, 23 sec, 5.6 MB XLSX, ...
3
votes
1answer
355 views

Non commutative multiply- expand expression

I began to use Mathematica a few days. My problem is: How to expand expression like $(a+b)*(a+b)$, where this multiplication is non commutative? Mathematica can do this?
3
votes
1answer
202 views

How to troubleshoot CUDALink?

This is a follow-up question from linking the libraries for CUDALlink in Ubuntu 12.10. The tests that I execute (CUDAQ[], ...
1
vote
0answers
60 views

Finding Maximum Root [duplicate]

How can I find the greatest root for a polynomial if the polynomial degree is very large. One way is using NSolve. This command can find all roots in numeric. Then, ...
6
votes
4answers
448 views

How to collect terms with positive powers in polynomial

I am trying to collect all terms with non-negative powers of $x$ in polynomials like $\frac{1}{x^2}\left(a x^2+x^{\pi }+x+z\right)^2$ First expand the polynomial ...
2
votes
1answer
98 views

strange output from ToExpression

I want to set constraints to my parameters, e.g., "m", but Mma gives nonsensical output. How could I avoid this phenomenon by using another but "equivalent expression"? Or, is this just in my computer ...
1
vote
2answers
205 views

What ways are there to convert an Integer to a list of digits?

How can I convert an Integer to list of numbers? For example: 781049 ==> {7, 8, 1, 0, 4, 9} What are the possible ways of ...
6
votes
0answers
160 views

Calculating the rank of a huge sparse array

By virtue of the suggestion in my previous question, I constructed the sparse matrix whose size is $518400 \times 86400$, mostly filled with $0$ and $\pm 1$. Now I want to calculate its rank. Since ...
3
votes
2answers
366 views

Triangle mapped on a sphere in $\mathbb R^3$?

How can I map a triangle on an sphere? I want to visualize (plot or animate) it for my student in my Non Euclidean geometry. I have no restrictions on the triangle's kind or on the sphere in $\mathbb ...
3
votes
3answers
108 views

Can I put subscripted parameter values into a package?

When defining packages, can I put parameter values alone or along with functions into a package in subscripted form? ...
1
vote
2answers
758 views

Efficient ways to create matrices and solve matrix equations

I am attempting, for the first time, to use Mathematica to do some serious linear algebra. I would like to solve systems of equations of the form $$U_{n n'} f_{n'} = b_n.$$ I have an expression for ...
2
votes
1answer
439 views

Tutorial for basic numerical methods for PDEs

I'm afraid this is probably not going to be a "good" question, but I'd like to use Mathematica to learn about basic numerical schemes for solving pdes. For example, I'd like to compute the solution of ...

15 30 50 per page