0
votes
0answers
76 views

Social Media Data, specifying the time interval

I am facing a problem concerning the SocialMediaData function built in Mathematica. I am trying to investigate the ...
0
votes
1answer
144 views

Help using NIntegrate

I need some help with NIntegrate. I pasted the code that I wrote below; I know that up to "de" is correct. What I would like to do is NIntegrate de w.r.t phi{0,0.1} and curlE{-10,10}. The final ...
1
vote
2answers
95 views

Manipulate which creates and deletes Manipulators dynamically

I want to plot a function in a Manipulate in which the number of terms varies and a Manipulator for the coefficient of each term ...
3
votes
3answers
237 views

Can Mathematica solve $x^{b^2} + ax^b -1 = 0$ for $x$ with $a>0$, $b>1$?

I have a problem that I can't seem to solve neither analytically nor with Mathematica. Namely, I have the expression $$x^{b^2} + ax^b - 1= 0,$$ which I want to solve for $x$ with $a>0$, $b>1$. ...
4
votes
3answers
245 views

Using Mouseover to change the appearance of a button without writing the button specification twice

When I code in Mathematica, I often find myself having to repeat large chunks of code for a function to work. The latest example of this is a color changing button that prints when clicked, code shown ...
0
votes
0answers
131 views

PDE combined with ODE 1D

I try to solve the following system of PDE coupled with ODE: $$\theta_t - a\theta_{xx} + b\kappa_a(\theta^4-\varphi)=0,$$ $$-\alpha\varphi_{xx} + \kappa_a(\varphi - \theta^4) = 0,$$ $$-a\theta_x + ...
1
vote
3answers
154 views

Simple question about AxesLabel

I am plotting a function and for labeling the axes I use: ...
1
vote
3answers
94 views

Question about plotting one function with different colors [duplicate]

How to plot a function with different colors. I want to plot the function x^3-x with distinct color. For example, using red from -1.5 to 0 and using green from 0 to ...
-2
votes
2answers
111 views

Question about plotting

I would like to duplicate this graph: I've used this code to draw the circle: Graphics[{Circle[{0, 0}, 3, {-2Pi, 2Pi}]},PointSize[.025]] But Mathematica ...
0
votes
0answers
152 views

Financial Derivative european call option

When estimating financial derivatives like a european call option there is a parameter named: dividend paid per time unit. What does this mean, I have not been able to find any more information about ...
0
votes
1answer
189 views

Select positive value from a vector

I am wondering how to pick out the positive Omega value from soln, and make these positive values into a row vector. I know how ...
4
votes
1answer
308 views

Mathematica script - Using front end

I'm running Mathematica on OS X and I want to create an Automator action that converts spreadsheet files. I have written this script: ...
1
vote
1answer
251 views

Plot a solid generated by a family of surfaces

I'm trying to graph a series of planes as a solid object in Mathematica. I first tried to use the Plot3D options as well as the fill options to plot a $3D$ volume, ...
5
votes
2answers
401 views

How to count the number of n-gons and line intersections in an image of a complete graph?

I would like to count the number of line intersections and number of n-gons in a complete graph (which forms a regular polygon). The only way I've come up with that would allow me to do both in ...
0
votes
1answer
87 views

How to discriminate Weatherdata latitude and longitude from a more detailed list

From this list of weather data how can I discriminate only latitude longitude for each station? For example from the following sample I would need only the coordinates: "50136","","Aoluguya|Mohe, ...
1
vote
1answer
130 views

How to format output when using Manipulate

As in the title, I want to output the image of a 3D body with its volume and surface area shown nicely beside it. (Maybe in a table?) But how can I do it? Is it possible to calculate the surface area ...
1
vote
1answer
184 views

Working with means and variances

My goal is to work out on the following equation: $$Mean(P)(1-Mean (P))\left (h + (1 - 2 h) (1 - \frac {Var (P)} {Mean (P) (1 - Mean (P))}) (1 - Mean (P)) + \frac {Var (P)} {Mean (P) (1 - Mean ...
0
votes
1answer
88 views

Problems with For statement

I'm trying to iterate some expression through for loop: ...
2
votes
2answers
255 views

A fast way to compare interval

I have a list of intervall. Some of these intervals are disjoint, some are overlapped and some are included in others. To leave no ambiguity about my explanation, you can see the following examples: ...
1
vote
1answer
388 views

Factor vector out of a matrix

I am wondering how to factor a[1],a[2],...,a[4] out of sim so that I can write sim as the ...
10
votes
2answers
278 views

How can I make sure that 3D plots have the exact same orientation and viewpoint?

Edit - I made the example data much smaller, so it's not so much to download. I am trying to make animations of electronic orbitals, using functions like the ones listed here. In order to make an ...
2
votes
1answer
509 views

How to see source code of a demonstration in notebook [duplicate]

I downloaded this demonstration The source code can be previewed here However, when I download the NB file, I cannot get access to this said code. All I can see is the output. I'm obviously missing ...
0
votes
1answer
244 views

Mapping a function over n levels

I want to map a function over a matrix of rank n, for example: ...
1
vote
0answers
63 views

Hashing by Equals instead of SameQ

I have some numerical code involving complex numbers representing points on a plane. Some of these are equal but not identical, ie ...
3
votes
1answer
394 views

Transforming a huge rectangular table to Sparse Array

I am interested in the most efficient way to transform a huge rectangular array to a sparse array structure. Consider a numeric rectangular table that is rather sparse, with zero positions being set ...
0
votes
1answer
517 views

Plot3D Not Showing plot

I have a function that I'm trying to visualize and for some reason the plot only shows a small snippet of the graph of the function. The function, d, and relevant ...
16
votes
0answers
212 views

Exp is slower for some number ranges

I get a hit on performance with the Exp function depending on the range of my inputs. for example, with: ...
5
votes
2answers
140 views

What is the syntax to conditionally suppress plotting in version 9?

Bug introduced in 9.0 and fixed in 9.0.1 In Mathematica 7 it is very easy to conditionally suppress plotting of individual lines using If: ...
1
vote
1answer
159 views

Set plot axes to be positive in both directions

How can I set the axes of a plot to be positive in both directions, along the lines of this image? I've looked through some questions on how to change the axis direction (here, here and here) but ...
1
vote
0answers
414 views

running a notebook with a batch file

I am using Windows (7 if needed). I am trying to learn how to write a batch file that EXECUTES a notebook. This is the batch ...
1
vote
2answers
127 views

How to drop the identical rows and columns of a matrix?

I'm currently trying to find a way to eliminate from a square matrix of generic dimension the duplicate (up to sign) rows and columns, obtaining a smaller dimensional matrix. I searched around here ...
11
votes
4answers
960 views

Plot the minimum of a list of functions

This is my first question on any stack-exchange site and I'm also very new to using Mathematica software so please excuse/correct me if I mess up. I would like to take a list of functions of a single ...
2
votes
3answers
820 views

Testing for continuity over a given domain

Is there any way to use Mathematica to test whether a function is continuous over a given domain?
2
votes
1answer
241 views

Taylor expansion of function of vectors—simplifying the output

I've got a real-valued function of several vectors $f(u,v,w)$ formed by taking scalar products of linear combinations of the vectors, I want to Taylor expand around small $v$ by writing $$f(u,\delta ...
2
votes
1answer
47 views

Inserting a closed section

Is there a way to insert a closed section? I know in .m files if you do (* ::Section::Closed:: *) and open the .m file using system editor, a closed section will be ...
1
vote
2answers
326 views

PlotMarkers with black border

I notice that when I paste my graphs in word sometimes they are not very well readable. A colleague of mine send me a graph made with Sigmaplot. The first figure is made with Mathematica, the second ...
2
votes
3answers
299 views

Treat strings as variables?

I have a list of strings, {"x1", "x2", "x3", "x4"} And a list of linear equations: ...
1
vote
2answers
202 views

Plotting adiabatics

I have the following code for drawing two isotherms for a Carnot engine: ...
1
vote
1answer
310 views

How can I combine my 3D graphics and animate them?

I'm just a beginner but can someone tell me how I can take my image of an Elf and put it together with a 3d background and I'm trying to animate it snowing but I wanna use a "play" button. Trying to ...
9
votes
2answers
211 views

Make further objects blurry?

I have the following function: ...
1
vote
0answers
66 views

Getting data through a serial port [duplicate]

I need to receive data from a serial port and save it to a list so I can use it later. Since the input will depend on human interaction, My program must keep running and saving as long as data is ...
2
votes
1answer
101 views

Defer parts of the expression

Is there a way to Defer only parts of the expression? For example, I have a=1; and then I want the expression to be shown as...
0
votes
1answer
107 views

How do you add options to a function that is being mapped?

Simple example: Normally: ListPlot[list, Joined->True] If I want to map ListPlot how do I keep the ...
1
vote
2answers
315 views

From a list of (x,y) pairs, generate a new list of (x,ymean) pairs, where ymean is the average of all y's with the same x in the original list [duplicate]

This seems like the sort of thing where Mathematica can give a very simple solution. I have a list of points {x,y}: ...
5
votes
1answer
286 views

Why setting PlotPoints make my 3d contour plot broken?

I'm trying to make a iso surface plot from some data using ContourPlot3d. My data is a 3 dimension data with form like {{x,y,f[x,y]},...}. I first make this data ...
0
votes
0answers
39 views

Adding columns of data to a matrix [duplicate]

I create a matrix of values using Table. Here's my code: ...
7
votes
2answers
187 views

Why does StreamColorFunctionScaling refuse to turn off?

Consider this simple streamline plot: StreamPlot[{-y/10, x/10}, {x, -1, 1}, {y, -1, 1}, StreamColorFunction -> Function[{x, y, u, v}, Hue[v]]] The ...
11
votes
3answers
1k views

Determine frequency of oscillations

I am wondering how I could determine the frequency of oscillations of a differential model equation? How could I find the frequency from this example given in Mathematica Documentation: ...
0
votes
0answers
298 views

Symbolic tensor product calculation

I am trying to calculate the a symbolic tensor product $\langle \nabla f\otimes f,\nabla g\otimes g\rangle ^2+(\langle \nabla f\otimes g,\nabla f\otimes g\rangle +\langle \nabla g\otimes f,\nabla ...
1
vote
2answers
158 views

Controlling what is plotted in a multi-curve plot

My question is on trying to cut off certain plots within a Plot with multiple expressions being plotted. I want to be able to stop the two dashed-line plots at ...

15 30 50 per page