1
vote
0answers
113 views

Slider with non-linear behavior [duplicate]

I am trying to develop a small tool and I am stuck on a very simple problem. This how I want it to look: I have ...
1
vote
4answers
373 views

How do I create a list of 25 random quadratic equations in the form ax^2+bx+c?

My teacher suggests using the RandomInteger command along with the Factor command, but I cannot figure out the syntax. A, b, and c need to be non zero integers between -10 and 10.
5
votes
1answer
825 views

Asymmetric X and Y error bars on ListLogPlot

The wonderful error bar log plots package ErrorBarLogPlots from V6 no longer positions labels correctly (since ...
2
votes
2answers
395 views

Enter exact rational numbers easily with decimal notation

Is there a simple way to enter decimal numbers such as 0.123 so that Mathematica interprets it as an exact rational number 123/1000?
2
votes
0answers
105 views

How do I toggle between the program snippet form of a displayformula and the human readable form of the equation?

I have a DisplayFormulaNumbered cell in my Mathematica notebook. If I use the Cell | Convert To menu item to convert the cell to Standard or Traditional Form, the formula is now rendered as a program ...
1
vote
1answer
346 views

Horizontal axis tick marks

I have a question about adjusting the number of horizontal tick marks on a 2D plot. Example: f[x_] := 4*Sin[4*x] Plot[{f[x]}, {x, -10, 10}, Ticks -> {Table[Pi n, {n, -5, 5}]}] Gives the following ...
1
vote
2answers
355 views

Can't find a fit for Erf

I have the following numbers ...
0
votes
1answer
79 views

How to write series of Do[ ]'s with a single Table[ ]?

Edited to provide more information (sorry I don't know how to format matrices here) I would like to replace: m = 4; ...
3
votes
1answer
433 views

ContourPlot or DensityPlot ColorFunction with x, y and z arguments

Is it possible to apply a color function to ContourPlot or DensityPlot that is function of x, y and z, and not simply of z? Example: ...
0
votes
2answers
170 views

setting real parameters in Hamiltonian matrix

The following Matrix represents my Hamiltonian. m = {{ B/2 - d - j/2 + a, (Sqrt[2]*j)/2, M}, {(Sqrt[2]*j)/2, B/2 + a, 0}, {M, 0, (-3*B)/2 - d + j/2 + a} How can ...
3
votes
1answer
115 views

Choosing the units for plotting

I´m new to using units in Mathematica. I have read other similar posts about this issue but I haven´t found an answer so far. My problem is simple: I want to plot a certain function with a certain ...
7
votes
1answer
357 views

How to substitute the following conditions into an expression?

I have an expression: $p=a\;b\; x + b^2\; y + a\;c\; z$. I want to substitute $a\;b=1$, $b^2 = 2$ and $a\;c = 4$ to obtain $p = x + 2y + 4z$. How can I tell Mathematica to do that? I dont know how to ...
5
votes
2answers
820 views

How to optimally solve and generalize this Conway's Game of Life puzzle

I tried solving this using mma. I am aware of this command - Cellular automata. But i don't want to use that coz then there is no challenge. So below is how i did it and my question is can this be ...
3
votes
0answers
175 views

Launching Remote Kernels takes a lot of time

I recently played around with establishing a remote kernel setup without using mathematica grid. To do this I use the LaunchKernels[] command and ...
6
votes
0answers
84 views

When and why are Assuming and Assumptions not equivalent? [duplicate]

In this question there's an example of an integral where using Assuming and Assumptions give different results: ...
13
votes
2answers
351 views

Get Coordinates 4 significant digits limitation

The tool "get coordinates" (clicking on a plot), seems to work with a fixed number of significant digits (4), in a way that we can quickly lose sensibility (the tool really becomes useless). The ...
5
votes
1answer
201 views

Simplification of integrals depending on a parameter [duplicate]

Assuming[Element[n, Integers], Integrate[Sin[x]*Sin[n*x],{x,0,Pi}]] returns 0, which is obviously wrong for n=1. ...
0
votes
2answers
486 views

Double integral with variable in the limits

I'm trying to solve this integral: $$ ...
5
votes
4answers
422 views

How to Merge Date and Time?

Given the following time series data where row is date and column is time intervals. ...
2
votes
1answer
482 views

Defining Piecewise Functions [duplicate]

I'm having trouble defining piecewise functions. What I have so far is a function that outputs something in a suitable format for Piecewise: ...
0
votes
2answers
101 views

List of lengths of runs of elements

I have a list where a few distinct numbers occur, e.g. {41, 41, 41, 1009, 41, 41, 41, 41, 41, 41, 41, 1009, 41, 41, 41} I want to extract the information of how ...
7
votes
2answers
262 views

listplot very large numbers

Suppose we have the following function: NN = 150; W[n1_] := NN!/(n1 ! (NN - n1!)) (1/2)^n1 (1/2)^(NN - n1) Then we can Plot or Listplot it: ...
0
votes
3answers
337 views

How to plot a function with two parameters determined by another parameter?

I have one small question. My code is like follows. ...
0
votes
1answer
87 views

How do I plot a variable against another variable in Mathematica?

I'm working on a system that has molecular interactions, for which I have the defined constants. r=0.5; a=1; c=0.01; d=0.1; e=0.02; k=500; and my system of ...
2
votes
1answer
729 views

Rolling Ball Image Background Subtraction [closed]

I am currently doing particle detection on some images and I wanted to do an Image Background Subtraction similar to what is available on ImageJ so as to even out the background tone. ImageJ uses a ...
2
votes
1answer
406 views

Numerical Integration with Variable Parameters

So I want to numerically compute the integral of a long complicated expression over a specified domain (in this case an ellipse). I know how to use a Boole function to sample within the ellipse, but I ...
0
votes
0answers
52 views

Generating Suffixes [duplicate]

I am doing a large Matrix calculation in which I need to generate symbols first like $F^{\mu\nu}$ I would like to get $\mu\nu = 00, 11, 22, 33$ and so on. I need to have the symbols before I can ...
5
votes
0answers
984 views

Import Large Excel File

Currently, I am working on a large time series dataset, which contains 928,586 rows and 35 time intervals in columns, in excel format (.xlsx) and using Import to ...
1
vote
1answer
65 views

Palette created by my code doesn't work

I think I am lost on some basic issue ... I created two CellTags, tagone and tagtwo If I create this palette inputting the following code by hand I get a beautifully working palette that makes me ...
5
votes
1answer
61 views

Mysterious behavior of Precision for complex arrays

Mysterious behavior of Precision: {{1.0+I*0.0},{0.0+I*0.0}} // SetPrecision[#,30]& // Precision // Print; ...
1
vote
1answer
257 views

Domain errors with Maximize/NMaximize

I am trying to maximize a (somewhat) complicated function over probability distribution $p$ and $q$. Here is my input: ...
1
vote
2answers
158 views

Generating list of coordinates in $\mathbb{Z}^n$ given by set of inequalities

I am trying to generate list of coordinates that forms a subset in the integer lattice $\mathbb{Z}^n$. This set is given by set of inequalities. Right now, I am using the following: ...
3
votes
0answers
61 views

How to change the position of numbers on plot [duplicate]

How to change the position of numbers in axes on plot? I want to see the numbers on the x-axis over it, not under it as it is now to have them clearly visible.
3
votes
4answers
165 views

How do I prevent exponents from being expanded when displaying text

I have a power of 2 in a list, and I want it to show as $2^{31}$ (2 with exponent 31), not 2147483648. I've tried this: ...
0
votes
1answer
224 views

Cannot get specific value from NDSolve (multiple functions)

I am trying to solve six connected differential equations. This is my code: ...
0
votes
0answers
40 views

Using Manipulate, how do you display the points on the curve and the tangent vector? [duplicate]

I'm new to Mathematica and my assignment is very vague... I'm hoping someone can explain to me a bit more of that this quesion means: Given the curve C, display the point on the curve and the ...
0
votes
2answers
295 views

How to get a solution for the following equation?

When I try to solve this equation using Mathematica: Solve[Exp[b*x]-c*(x^2)-a*x-1 == 0, x] /. {a -> 6.336, b -> 8, c -> 32} I don't get any result and ...
1
vote
0answers
172 views

Why won't Mathematica plot my function? [duplicate]

I'm using a theoretical answer found on the official Wolfram site as a reference to ensure my code isn't faulty (even though I'm fairly confident that my original code is half decent). ...
4
votes
1answer
954 views

Is it possible to calculate a Lebesgue integral in Mathematica?

As the title says, I wonder if it is possible to calculate a Lebesgue integral in Mathematica, especially when the domain of integration is $\mathbb{R}^N$, or in other words multivatiate Lebesgue ...
3
votes
1answer
140 views

Reading many single files and creating numbered (? or indexed) variable

I tried many different approaches, but I could not solve the following problems, I appreciate your help: What is the best way to read many data files? I mean we have ...
6
votes
1answer
180 views

Avoiding overcomplicated structure of groups, masks and splited text on vector format plot export

I'm trying to generate a template for exporting figures and plots in a consistent way that will allow easy editing in any vector based drawing software (such as illustrator). My problem is that ...
3
votes
1answer
80 views

How can I terminate a running computation in Manipulate?

I want to make a simple cdf file that makes some hard computations inside Manipulate. Is there a simple way, lets say using a "stop!" Button, to terminate the time consuming calculations--without ...
5
votes
1answer
144 views

Problem with With [duplicate]

I am puzzled byWith. it does not seem to work. Please see example below (I have also used Evaluate and ...
3
votes
2answers
150 views

Bare symbol invocation fails but not if used with an argument

How to achieve the following behavior on a symbol f? Background: The main goal is to use the symbol to tag an abstract data structure where downvalues are used to store information. Only defined ...
1
vote
1answer
306 views

Need help with solving a second order differential equation

I need help with solving this differential equation. ...
0
votes
1answer
125 views

Maximization of a function within a unit square [closed]

I work in a unit square. I have some conditions under which areas within the unit square are defined. Say for simplicity that there are two conditions which define two areas. For example, if y > 1/2 ...
3
votes
1answer
66 views

Properly applying BandstopFilter

In the documentation about BandstopFilter it says that the cutoff-frequencies w1 and w2 in ...
0
votes
1answer
58 views

Specifying Table/grid dimensions in version 7

The result of my calculations is quite large list (nested list to be precise). I would like to improve its visualization, to make it more legible, by setting the number of columns to let's say 5. ...
0
votes
0answers
86 views

How to increase range in Plot without exceeding maximum bounds?

Does there exist some way to increase the plot range of following plot from 10^7 to new value 10^16? It exceeds its maximum ...
3
votes
1answer
163 views

Dynamic generation of Buttons

The Project I am trying to dynamically turn on/off the display of data for a circos-esque plot that I generated. The Code I have data stored in mfData and a ...

15 30 50 per page