# All Questions

12 views

### Translate C++ in Mathematica 10.0.2

By translating the following program written in C ++ ...
73 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. ...
560 views

### Generating random symmetric matrix

Suppose first that I want to generate a matrix whose elements are independent and identically distributed (i.i.d.) with distribution dist. This is easy: ...
22 views

### How do I remove roads from Mathematica maps?

I'm using GeoGraphics and Polygon[Interpreter["USState"]["Colorado"]] to create a map of Colorado and several bordering states. ...
20 views

### How would one return from a place of a pure function's body using Return?

From previous answers, replies and discussions it is known, while not formally documented (even in the most recent Wolfram Language Documentation Center), that Return can be used in a two-argument ...
26 views

### Replace x_Integer Rational Atomic

It's isn't a big deal but if you run the following you don't get the expect output IMO ...
10 views

### Problem of FileEncoding of the output file of FileTemplateApply

Problem of FileTemplateApply FileTemplateApply will change a file-encoding[UTF8] into a file-encoding[WindowsANSI], it seems it doen't accept CharacterEncoding ...
203 views

### Looping through 3 million elements of a list to 'Set' values is slow

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 ...
11 views

### Can Mathematica Deploy a Dynamic-3D-Tag-Cloud in one webpage

Recently I've used mathemtica WordCloud function to generate a tag picture here And there is also a JS-Version 3D-tag-Sphere below[not so good] My Question is: ...
46 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 ...
87 views

### Are these codes the same?

I have this code: ...
105 views

### FunctionInterpolation and Which combine badly

Update 2: Got two solid answers, but had trouble implementing one, and found the other could only save me computation time by sacrificing accuracy. So I chose neither as an official answer, but ...
23 views

### Unexpected behavior from Return called in a Block [duplicate]

I like to write functions that dispose of failure cases early, before they do the main calculation, but I don't like to write cascading If statements. Here is a toy ...
59 views

### Solve an integral equation: to fit the given data with an integral of two functions?

I am trying to find an efficient way to solve the following equation $$h\left(b\right)=\int_{0}^{b}f\left(\frac{b-c}{1-c}\right)\frac{g\left(c\right)}{1-c}dc$$ where for $h(b)$ I have the data ...
64 views

### How to prevent ExportString from reencoding diacritics when exporting as JSON

I'm not sure if it's a bug with Mathematica or if I'm missing something, but when trying to ExportString a UTF-8 string with diacritics as JSON, it's messing up the ...
453 views

### Mathematica 10.0.x freezes in Initializing kernels

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 ...
702 views

### Front end freezes on start-up

Update 2015 September 4: An incorrect paclet update was pushed recently that caused Mathematica to not hang on startup with "Initializing kernels". The problem and solution are described here: ...
39 views

### Remember Plotting Command

I used a command in another computer to obtain a surface without using any input more than the command. It returns me a surface like this: Anyone knows the command or commands that let me graph ...
16 views

...
48 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 ...
61 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 ...
35 views

### Mathematica Wont Open [duplicate]

Mathematica 10 will not open on my computer which runs Windows 8. It is stuck on the initializing kernals screen regardless of whether I try to open the program or open an old document. The problem ...
69 views

### Newton's Method Glitch

I wonder if you can help me with my program - it involves using Newton's Method but my main issue is getting a defined function to return a given value. Essentially, I want to get my function ...
71 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 ...
51 views

### Multiple Constrained Sum

I need to perform a multiple summation, that obeys some conditions. This arises in the study of a statistical physics model. q=Exp[-β]. I would like to ask if ...
55 views

### Is there a hidden location-type property for TropicalStormData?

TropicalStormData gives you time-series data on tropical storms. In the property list there is not a location (geographic coordinates) property listed. There are ...
106 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 ...
61 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 ...
54 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 ...
33 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 ...
45 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 ...
436 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 ...
48 views

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

I want to convert the same subroutine in Mathematica and then want to call it in main body. Please guide
34 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. ...
32 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
24 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 ...
34 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 ...
48 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 ...
42 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 ...
53 views

### Format tabular data with a certain row highlighted

I have tried a method to highlight certain rows in various tableform. An example: ...
63 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 ...
253 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 ...
39 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 ...
63 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}} ...
62 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 ...
23 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 ...
94 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 ...
86 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 ...