# All Questions

32 views

### Superimposing ListContourPlots on each other

I have two ListContorPlots that I would like to plot on top of each other for easy visualization. I tried using Overlay for ...
37 views

### Restrict range of Functions

I have a function f[x,y,...,z] and I want to restrict its range to positive numbers only, f>0. f[x,y,...,z] is multivalued for some x,y,...,z and I cannot plot it for these values. How can I restrict ...
574 views

### Front end freezes on start-up

In version 10.1.0 under Windows 7 x64 I have a repeating problem. Every time I start the Mathematica Front End the Welcome to Wolfram Mathematica screen appears, then freezes and eventually is marked ...
20 views

### Solving a system of non-linear equations / approximate or exact solution — either takes ages or gives non-sense

I would like to find all solutions in terms of functions F and g of the following equation $h(x)=\int_0^x F(x-y)g(y) dy$ Normally $h(.)$, $F(.)$ and $g(.)$ are continuous. But I have a numerical ...
33 views

### Implementing BinCounts for alphabetical structures

Is it possible to implement BinCounts for alphabets such that those alphabets which fall into the group {a,b,c,d} can be counted ...
428 views

### Sierpinski carpet with GraphData

Is this graph in the list among the so-called "standard" structures used in GraphData? However, I have not found, yet, anything like "Carpet" or "Sponge" in the ...
17 views

### how to write a fortran subroutine in Mathematica and then how to call it in main body of program

I want to convert the same subroutine in Mathematica and then want to call it in main body. Please guide
30 views

### Creating a Table with a list of If statements given in a certain order

I am trying to create a conditional Table with If statements, where I move to the next condition only if the first one is satisfied, otherwise I "Break[]" and move to the next element of the table. ...
21 views

### Multiple Constrained Sum

I would like to ask if someone knows how to speed up this code, or write an equivalent one in order to perform a multiple summation. The variables a_i are to be ...
49 views

### How to determine the parameter in a differential equation with some fixed solution

Assuming that I have a ODE system with undetermined parameter $$x''(t) == y(t) x(t)$$ $$y'(t) == 2 - a x(t)$$ and I have some fixed solution condition $$x(0)=0$$ $$x(10)=8$$ $$y(10)=3.5$$ Is there ...
35 views

### Calculate the mean of ordered distribution of the defined distribution

15I am trying to evaluate the mean of the following: Let $a\sim Binom(10,1/2)$, consider the random variable $$d=\left|\frac{2}{\sqrt{10}}a-\sqrt{10}\right|$$ Let $d_1,\dots,d_{20}$ be i.i.d copies of ...
25 views

### How to load a file in a directory inside the current working directory

How can I use something like that NotebookEvaluate[ "Mathematica\\SomeFile.nb"]; Instead of ...
20 views

### Redo in Mathematica 9.0 [on hold]

I know that there is the undo command Ctrl+Z in Mathematica 9.0. But I can't find Redo. I tried Ctrl+Y it does not work. and ...
242 views

### Mathematica 10.0.1 freezes in Initializing kernels (Windows 10)

I updated to Windows 10 and have been running Mathematica fine on it for over a month. For some reason, it has just stopped working. I don't remember any Windows updates occurring which would have ...
55 views

### Convert FullForm to XML Structure and back

How might I create a function that converts between FullForm and a XML structuce? Ultimately I'm ideally looking to use CSS and JS to edited the XML structure. ...
27 views

### Visualsinig the system of linear equation using r program [on hold]

I need the graph of the following equation in 3d x+y+z=1;x+y+z=2;x+y+z=3 how do I get the clear visualization using r programming
19 views

### NotebookAutoSave -> True “partially” working?

I am a novice to Mathematica (using v10.2) and was wondering why: SetOptions[SelectedNotebook[], NotebookAutoSave -> True] does not switch on ...
42 views

### How to center a graphic in its output cell

Say I have produced a single graphic ouput, perhaps a plot. Instead of displaying left-aligned in the notebook, I would like it to display in the center of the output cell. I would like it to stay ...
24 views

### Using NIntegrate and DiscretePlot to visualize pseudodifferential operators

In harmonic analysis, pseudodifferential operators are a way to generalize the notions of derivatives, through the use of Fourier transforms. The basic idea being, Let ...
42 views

### Map inside LogLinearPlot with legends and different colors [on hold]

I have been trying to use Plot with a nested map to make plots of a numerically integrated function with different argument parameters, and after some searching I have finally got that sorted. My MWE ...
37 views

### Plotting multiple instances of a function defined with NIntegrate

I have a function that involves an NIntegrate, for example something like this: f[x_, z_] := NIntegrate[z*x*y^2, {y, 0, x}]; I want to plot this function for a ...
46 views

### Format tabular data with a certain row highlighted

I have tried a method to highlight certain rows in various tableform. An example: ...
59 views

### Interactive ListPlot by mouse clicking

Say I have a list of 2-tuples that is visualized by ListPlot. Each 2-tuple is also associated with another graph. Now what I want to realize is to display the ...
244 views

### I change a single constant and the simple script suddenly takes forever to complete

I writed a code to display the Dragon Curve fractal, and I reached my goal. The algorithm works by taking the previous two points and then adding the following one by making a 90 degrees turn left or ...
38 views

### How would one set up a conditional to evaluate at the last output value (wondrous numbers) [duplicate]

I know this is pretty fundamental, but I'm trying to learn Mathematica on my own and this is stumping me. I know 5 is wondrous and it takes 5 steps to reach one, but I can't figure out the input to ...
61 views

### Plotting a partial sum

I am given the Legendre expansion of the first kind. $$f(x)=\sum_{n=0}^{\infty}A_{n}P_{n}(x).$$ I have worked the coefficient to be A_{n}=\frac{1}{\left \| P_{n}(x) \right \|^{2}} ...
61 views

### Plotting PV isotherms followig the Redlich Kwong equation of state [on hold]

I am attempting to plot the $PV$ isotherms for 1 mole of neon from 4-1000K assuming the equations of state Redlich Kwong. I do get a graph but it looks more like the graph for ideal gas instead of ...
19 views

### Solving a consistent overdetermined linear system

Not a duplicate question. I already tried all the Answers offered for this Question and they failed, so I believe this is a different problem with Solve[]. I have a solveable, consistent system of ...
171 views

### Looping through 3 million elements of a list to 'Set' values is slow [on hold]

I am looping through the 3 million elements of a time-series (v1, o1) and corresponding values (v2, o2). v1 contains a uniformly increasing timestamp (e.g. 1 to 3,000,000 in increments of 1) o1 ...
91 views

### How do I exclude regions from numeric integration on Mathematica?

The part of the equation that is giving me trouble is below: f[t_,v_]:= Exp[-(1/Log[1-t/v]^2)]*(v-t) I need to integrate this function over the ranges .1 ...
83 views

### After NumberForm I cannot apply a Sine function. Why? [duplicate]

After NumberForm I cannot apply a Sine function. Why? This works: sol1 = x /. Solve[x^2 - 3 == 0, x] Sin[sol1] Output = $\{-Sin[\sqrt{3}],Sin[\sqrt{3}]\}$ Also ...
82 views

### Calculate sum of probabilities in multinomial model

The question at hand: On average in every 7th chocoloate egg there is a figure to be drawn from a known list of special figures (e.g 15 distinct pieces) the other draws are on average fails. With ...
21 views

### How to solve PDE in 2D region with mixed boundary condition?

I'm trying to solve the inhomogeneous wave equation with mixed boundary conditions. How do I input these conditions? Is is still with NDSolve?
101 views

### FunctionInterpolation and Which combine badly

Update: The main question has been answered, but my problem hasn't been solved. The problem is I have a situation where I want to use Which on an InterpolatingFunction several times to repeatedly ...
29 views

### Can I model the general political landscape with mathematica? [on hold]

I want to develop a website which would model a province of 2 million people from a political point of view. Is mathematica a good fit for such a project? My background is that I'm an experienced ...
4k views

### File-backed lists/variables for handling large data

Background Currently I am working with some large data (most of it generated by Mathematica itself). I usually find it a hassle to do this. For example, I just exported a large amount of data to ...
604 views

### Lazy lists of Tuples and Subsets

I'm trying to build a lazy list that evaluates the n'th m-tuple or subset of a given list using Mathematicas ordering without calculating all the Tuples. The purpose is to allow for example the ...
56 views

### solve Z of matrix [on hold]

x=Cz+(lambda)z x and z are n*1 column vectors C is n*n matrix (lambda) is a scalar it want to solve for z. the hint is z=Iz where I is n*n also C+(lambda) is an invalid expression, but C+(lambda)I ...
959 views

### How to Fold over lazy lists and over tasks, just as with Lists?

Many modern languages, such as Haskell, feature lazy lists, which can model infinite sequences of values, albeit synchronously. Lately, the reactive programming movement has shown that asynchronous ...
3k views

### Functional style using lazy lists?

Let's say I want to answer the question "what are the first 400 palindromic prime numbers?" The first approach that comes to my mind from the set of languages that I know is to use some sort of lazy ...
83 views

### Simple minimization not evaluating

I tried to solve a rather simple optimization problem, which Mathematica apparently cannot handle. A minimal example is the following: ...
40 views

### Writing a function with two functions as arguments

I am trying to write a function of two functions. A function of one function works as in h[f___, x_, y_] := Integrate[f, x] h[x^2 + y, x, y] and this ...
86 views

### Is DiscretizeRegion not yet ready ro discretize 3D-solids?

In the DiscretizeRegion documentation: "The region reg can be anything that is ConstantRegionQ and RegionEmbeddingDimension less than or equal to 3." With DiscretizeRegion there could be an easy way ...
63 views

### Why can't Mathematica simplify this expression involving conjugate of complex expression? [on hold]

In theory it should recognise that all terms are real, and drop the Conjugate attribute. Any clues why this might be so?
47 views

### When NSolve for X, Y, only output solution for X

I have an NSolve with two equations and two unknowns (X,Y). There is a unique solution. NSolve currently gives me the solution pair (X,Y). But I only want to read out one of the variables (say X). ...
80 views

### Time zone Projection [on hold]

This question stems from another question at here. I want to compare time zones (civil time) with watch readings from a model clock (see illustrations in link above) using this theory. I'm not ...
175 views

### Listable compiled function crashes the kernel with “no more memory available”

Bug introduced in 9.0.0 and persisting through 10.2.0 I am trying to speed up a function that involves continued fractions. Since ContinuedFraction cannot be ...
34 views

### Open file menu bug with ubuntu dark theme

I'm using Mathematica on a Ubuntu with a dark theme. When I click on the open file menu option, it shows up with a white background and white letters. I can only see something if the folder or file is ...
59 views

### Find six vectors with rational entries under constraints?

Define six vectors v[i] with i=1,2,3...,6. Each v[i] is six dimensional and all entries in ...
40 views

### string manipulate with “\”

I'm trying to code that makes download files from some pages. What I am using built-in function is Import, and stringreplace. I found that when I import url there is blank and I need to replace them ...

15 30 50 per page