-2
votes
0answers
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 ...
7
votes
1answer
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"] ...
3
votes
1answer
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: ...
-4
votes
0answers
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)}$
2
votes
2answers
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 ...
0
votes
1answer
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 ...
0
votes
3answers
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 ...
4
votes
0answers
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 ...
1
vote
0answers
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: ...
5
votes
2answers
69 views

How to show the direction of highlighted path in graph

I am trying to show the direction of FindHamiltonianPath on the Graph. ...
5
votes
3answers
310 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 ...
1
vote
0answers
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 ...
2
votes
1answer
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 ...
3
votes
0answers
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 ...
-1
votes
0answers
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
3
votes
2answers
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 ...
3
votes
0answers
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 ...
12
votes
1answer
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, ...
9
votes
0answers
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? ...
2
votes
0answers
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}] ...
0
votes
1answer
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: ...
7
votes
0answers
52 views

How to partition a 2-D array properly?

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} ...
5
votes
1answer
88 views

Vertex Order of Graph

Given a graph, I want to find the shortest distance between each pair of vertices: ...
6
votes
0answers
83 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 ...
0
votes
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} ...
0
votes
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 ...
0
votes
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: ...
1
vote
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 ...
-2
votes
0answers
42 views
3
votes
2answers
94 views

Coloring image components according to their area

I have a rasterized image img that is created by this code: ...
4
votes
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: ...
1
vote
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 ...
4
votes
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 ...
1
vote
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? ...
4
votes
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 ...
2
votes
1answer
94 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 ...
1
vote
0answers
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 ...
7
votes
1answer
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). ...
0
votes
0answers
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!!
4
votes
2answers
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 ...
8
votes
2answers
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. ...
0
votes
0answers
44 views

How to customize an animation [duplicate]

I want to create an animation regarding the restricted three-body problem for the Earth-Moon system. The code is as follows ...
5
votes
0answers
43 views

How can I wrap a C++ object in WSTP?

I am trying to wrap a sophisticated C/C++ API in Mathematica using WSTP, but can't work out how to return a pointer to a C/C++ data structure. This object was created on the C/C++ side of the wrapper, ...
3
votes
1answer
84 views

Problem exporting and re-importing STL file

I wrote all code and there're no errors in code. Result of code is like first picture(left). But I can't Import that structure. The result of import stl file is second one(right one). How can I import ...
-1
votes
1answer
116 views

Problem with NDSolve and If

If T=T1, program can calculate. But, when T = T1*If[Abs[q2[t] - q2d] < e1 && Abs[q2'[t]] < e1, 0, 1], program can ...
1
vote
1answer
44 views

Labelling Vertices of a GraphicsComplex

I cannot figure out how to label the vertices of a GraphicsComplex, for example ...
2
votes
3answers
96 views

slwcon and eincr in integrating multivariate Gaussian random variables

Why is the following integration involving multivariate Gaussian distribution so slow and generating an error? Is there a better integration strategy? All that I'm doing is considering ...
1
vote
0answers
47 views

Create set of data from vector curve [closed]

I need exactly what is written in the title. Suppose we have some curve plotted: p = Plot[Sin[x],{x,0,2pi}] now we save that as vector graphics: ...
2
votes
1answer
107 views

When are sparse arrays effective?

Sparse arrays are not effective in Mathematica 10. More computational time is needed to perform arithmetic operations on sparse arrays. Their size is also bigger than normal arrays. Here is a simple ...
5
votes
1answer
119 views

Image analysis: Gravel Sieve

In this link: http://broadwaysand.com/?page_id=165, you can find different gravel pictures. A quarter dollar coin gives the scale, because its diameter is 0.955 inches (24.26 mm) I want to get the ...

15 30 50 per page