# All Questions

40 views

### Calculations after NumberForm [duplicate]

As specified in documentation center the functions AccountingForm, NumberForm, etc. are useful only to display numbers in ...
103 views

### Integrate does not work on my expression

I am trying to integrate a simple equation. The code is as follows ...
94 views

### How can I speed up this code with 4 variables sum

I have to make a sum over 4 variables. My code is very very slow. I want to know how to speed up this code. This problem is related to but different from one previous problem. Any help or suggestion ...
161 views

### Nested list from a flat folder list

I have a list of folders and files in my current working directory as a result of a built-in function FileNames: FileNames["*", "", Infinity]]. It looks like this: ...
106 views

### Typesetting in Mathematica

Are there typesetting environments/boxes or something similar in Mathematica? I want to write some documentation for a notebook using text cells and I would like to have a brief description of my ...
46 views

### Syntax highlighting in text cells

I want to write some documentation for a notebook using text cells. Now, I can select parts of the text within such a text cell and set its style to "Input". This does change its font, but there is no ...
43 views

### Export followed by Import producing “0.e1” numbers

I had a large table of data that I exported, and then when it had completed, I exported it to a file. (Just in the form Export["filename.dat", data], no specified ...
37 views

### How to assign values to constants inserted in a solution by DSolve

I am trying to solve first order ODE with DSolve, but it didn't pan out. How can I solve for the inserted variable K[1]? Your ...
126 views

### Determining FinancialData for Countries

How do I determine the FinancialData for Australia. For instance the one for USA follows as: FinancialData["NYSE", "Members"] ...
37 views

### In NMinimize, how can I efficiently handle NIntegrate errors for non-integrable functions?

I am using NMinimize to find parameters that minimise the integral of a function in the least squares sense: ...
65 views

### How to define this function in Mathematica? [closed]

Q set of rational, Q' set of irrational Determine $F+G$ , where $F(x) = x^2$ when $x \in Q$ and $-x^2$ when $x \in Q'$ $G(x)= {(2^{1/2},4),(7,0),(3,8)}$
107 views

### Show and hide various pieces of information in a Manipulate

I wanted to change the visibility of a function and its additional informations within a plot through the help of a checkbox, as shown in that post: Toggle visibility of elements in a plot But ...
68 views

### Integrate works but NIntegrate doesn't

I have a complicated integral function that I'm trying to evaluate, which will have to be done numerically. I wanted to try a simpler one first, one that has an analytic form, because I could check ...
53 views

### How to generate a list of outputs for function f(x,y) for a set of known (x,y) values [closed]

Say I want a list of outputs the function f(x,y)=x+y will give for x,y values of (1,5),(5,3),(0,2),(1,1),(2,6). How do I do that? I know this must be pretty straight forward. I just can't figure it ...
91 views

### Simplest identity that cannot be proved by FullSimplify [closed]

Apparently, FullSimplify is not able to prove all true identities, but usually it does pretty well when it comes to elementary functions. I'd like to know what are ...
32 views

### Formatting the output of SubstitutionSystem to create a Cantor set [closed]

I want to create a Cantor set using SubstitutionSystem, and plot it appropriately. This is the best I've been able to do so far: ...
70 views

### How to show the direction of highlighted path in graph

I am trying to show the direction of FindHamiltonianPath on the Graph. ...
311 views

### Finding all of the words containing certain letters

Is there a fast method to find all of the words containing the letters: {a, e, i, o, u, y}? I created an algorithm, but it takes more than 11 seconds to find all of ...
45 views

### Solving an ODE using shooting method [duplicate]

I have been trying to solve the following nonlinear ordinary differential equation: $$-\Phi''-\frac{3}{r}\Phi'+\Phi-\frac{3}{2}\Phi^{2}+\frac{\alpha}{2}\Phi^{3}=0$$ with boundary conditions ...
47 views

### Dynamic update of displayed quantities on a Plot within manipulate

I'll admit that I only skimmed some other threads about this. They seem rather complicated in contrast to my simple problem. I have two lines in space defined by a two-by-two coefficient matrix. I ...
51 views

### Method of characteristics, recursion formulas

I'm helping a friend out with a problem. He needs to plot out the solution to a water surge in a pipeline. I have all the parameters set and I've put the equations in Mathematica, but I can't get the ...
24 views

### How can I sketch a Plot using direction field? [closed]

I can't plot a graph of first order initial value problem using direction field
109 views

### Plotting a simple graph with more than 1 variables

Here's what I did: Plot[(Q E^(-(x^2/(4 t))))/(2 Sqrt[π t]), {x, 0, 10}] I want only x to vary. But Mathematica is giving me a blank plot. It's very strange. I ...
52 views

### How to speed up a high dimensional numerical integration of Gaussian-form integrand

My integral has the following form: $$\int \sin(\theta) d\theta d\phi\left| \int d^3p_1 d^3p_2d^3p_3 \frac{f(p,\theta,\phi)}{g(p,\theta,\phi)}e^{-\frac{1}{2}(p^\mathrm{T} .A.p)}\right |^2,$$ where ...
119 views

### Form of citation for data via Wolfram Mathematica

What citation or reference should I adhere to if I'm using curated data obtained via Mathematica? I'm talking about data, or eg. plots thereof, obtained using functions such as SatelliteData, ...
111 views

### Memory usage of compiled function: C vs WVM

Why does generating an array in "C"-compiled function uses 50% more memory than doing same thing in "WVM"-compiled function? ...
32 views

### Solving a differential equation with a complex (independent) varible

I'm trying to plug in complex values in the numerical solutions of ODEs without success. For instance y[I] /. NDSolve[{y'[x] == 0, y[0] == 3}, y, {x, -10, 10}] ...
29 views

### Using Select function to select elements based on last element of nested list [closed]

Good morning, I have a list with each element containing a tuple and a single. It is of this form: ...
52 views

Given that I have the following array lst = Array[Subscript[P, #1, #2] &, {5, 5}, {0, 0}] $\left( \begin{array}{ccccc} P_{0,0} & P_{0,1} & P_{0,2} ... 1answer 88 views ### Vertex Order of Graph Given a graph, I want to find the shortest distance between each pair of vertices: ... 0answers 84 views ### What is the best way to transfer arbitrary-precision reals using WSTP? I'm developing a Mathematica package, inside of which there is a number-crunching function. It uses a list of arbitrary-precision numbers as input and it takes a lot of time to do its job. So I've ... 0answers 73 views ### Evaluating a derivative at a specific point [on hold] I'm quite new to Mathematica (and stackexchange) so I'm getting stuck on something simple. I have the expression$$\phi_{n}(z,s)=q^n\left[-\frac{e^{-sb}z \left((1-q)^{\lfloor \gamma\rfloor} ... 2answers 44 views ### Custom multivariate discrete distribution [closed] This is related to How to define an n-variate empirical distribution function probability for any n? and RandomVariate from 2-dimensional probability distribution but I don't think neither questions ... 2answers 54 views ### How to use the {{ lhs == rhs, ineqs }, … } form of Exclusions? I am trying to make use of this option: To plot the principal portion of Tan: ... 0answers 44 views ### Plotting roots for a singular numerically-only integrable equation In my problem I need to plot roots with respect to a parameter. But the condition for root is det(Function)=0. This function cannot be solved symbolically. So I need to put in a parameter value and ... 0answers 42 views ### NDSolveValue returns NDSolveValue::ndnum [on hold] How do I solve this problem? ... 2answers 94 views ### Coloring image components according to their area I have a rasterized image img that is created by this code: ... 1answer 109 views ### How can I temporarily suspend the Combinatorica package? Sometimes after I load the Combinatorica package by entering Needs["Combinatorica`"], I need to use Mathematica for something like: ... 0answers 29 views ### Loading a notebook to a website When I upload a Mathematica notebook to my website, when I click on the link, it opens, but as text, not a Mathematica notebook. At some sites, when I click on a Mathematica notebook, the notebook ... 1answer 101 views ### How can I make angle brackets function like lists? Is there a way to make <a,b,c> behave like {a,b,c}, but remain displayed as ... 1answer 52 views ### Replace symbol with numerical value How do I get the same result, i.e., how can I get Mathematica to replace a with 1? ... 1answer 71 views ### User defined packages don't load with$\mathtt{Needs}$or$\mathtt{Get}\$

As an introduction to packages in Mathematica I'm following this short guide by Leonid Shifrin, and tried using the sample package provided in that answer. However, both ...
95 views

### How to solve coupled complex-valued equations faster and get simplified solution

I have six coupled equations. How to solve these equations symbolically faster in Mathematica. In these equations, variables p,q,x,y are ...
29 views

### How to plot market share data in standard form [duplicate]

I am trying to accomolish exactly this (not related to market but with exactly same representation): Is there any special function in mathematica to do these types of plots? Or how would you ...
119 views

### Exporting 2D & 3D graphics for use in Adobe Illustrator

I have recently (perhaps since Mathematica Version 10?) encountered a change in how PDF images are saved and how they behave after being loaded into Adobe Illustrator (v16.0.4 under Mac OS X 10.10.5). ...
44 views

### INTERNAL SELF-TEST ERROR: winFonts|c|265 [closed]

INTERNAL SELF-TEST ERROR: winFonts|c|265 I don't know what happen,even the mathematica cann't calculate. and it show symble in a unnormoal,and it makes me crazy. I need help!!! I need help!!
65 views

### Using parenthesized Regex backreferences in StringReplace

(I am sorry for my poor English,I'll try to use a simple sentence to convey me.) I can use StringCases to get the target to change like this ...
166 views

### Problem With Mesh on 2D Plot

How to make the mesh color on 2D plot automatically same with the plot color? The code below doesn't work and produces "Automatic is not a graphics directive" error message. ...