2
votes
0answers
103 views

How to efficiently find parts of a string with beginning and ending specified?

I'm trying to find specific URL addresses from a html document. The addresses can be found between the strings "href=\"" and "\" class=\"listing". The problem is not including strings like this: "href=...
2
votes
2answers
131 views

Approximation of $f(x)$ at large values of $x$?

Suppose you a function $f(x)=1/x+x^2$. At large values of $x$, it is closely approximated by $f(x)=x^2$. Can Mathematica do this for me for a more complicated function? How would I input the ...
0
votes
2answers
67 views

interpretation of parentheses in ToExpression

The code below generates the plot "z" and gives a name to the "Show" function. ...
2
votes
1answer
281 views

MathLink dependencies: “LNK2019: unresolved external symbol _MLMain”

I am trying to compile the MathLink examples included with Mathematica. I am careful to ensure that the libraries are present in the Visual Studio folder as indicated by the installation manual. I am ...
5
votes
3answers
437 views

Easiest way to create a binary variable

Binary variable is often used in applied statistics. However, I had a hard time to figure out how to create it. Somebody might have better idea how to do it. I have two variables say x and y as ...
1
vote
1answer
67 views

Using Inner to calculate a log likelihood

I am trying to use the function Inner to calculate the sum of log likelihoods of a custom probability distribution 'custom' applied to a vector of data 'vData'. The custom distribution changes ...
0
votes
0answers
25 views

Sort giving unexpted output! [duplicate]

I want to perform sorting on a list of strings, If i take for example the list s s={"test9","test8","test10"}; If i perform the Sort function i will get: ...
1
vote
1answer
46 views

Auto generate parameters in Manipulate

I have a manipulation problem that I can't find a solution online. Here is a simple example from my case. ...
1
vote
1answer
120 views

Importing, sorting and exporting lists

I have several TSV lists (.txt) of something like 2000*2000 numerics (e.g. 1.8645) to import ...
4
votes
2answers
170 views

Tooltip with position of the list element

I want to use Listplot with Tooltipthat displays Positionof the element I'm hovering over. <...
10
votes
2answers
179 views

How can access to curated data needed by GeoRegionValuePlot be speeded up?

Seems that GeoRegionValuePlot requests data from the internet multiple times to process its plot. As an example, let's graph smoking per capita worldwide. ...
6
votes
0answers
130 views

Slow NIntegrate over complicated domains (sometimes)

This is no longer a problem with Mathematica 10.* where I can use regions to do the integrations Overview I have a very large matrix I need to calculate where each element requires the integration ...
4
votes
0answers
138 views

MeshRegion and BoundaryMeshRegion differences between 10.0.1 and 10.0.2

Original text My need is simple: I have many non-overlapping regions that I will need to use as plotting domains and integration domains. The new region type operations in Mathematica 10 has made my ...
4
votes
1answer
630 views

Where does this gray solid line come from in plot? [duplicate]

Where does this gray solid line come from? It's not y=0 or x=0. Sometimes it occurs, sometime does not. I can't really produce a smaller example that does the same thing as it is really "random". The ...
0
votes
0answers
95 views

DSolve gives back input (coupled ODEs)

I'm trying to solve a system of coupled ODEs, however I keep getting back the input whenever I try to solve with DSolve. The variables I'm solving for are complex. Here's what I have : ...
3
votes
0answers
73 views

Is there an equivalent to MovingMap[] for functions that work on more than one TimeSeries?

I have a family of functions that require two TimeSeries (A and B). As a trivial example, imagine a function called beta[tsA_,tsB_] that determines the slope of the linear regression line for the ...
0
votes
2answers
63 views

How to get approximate (decimal) output for ArcCosh[e^x] [closed]

The specific input I'm using is ArcCosh[e^1.5400733368255632], how do I get this to give me an output in decimal form?
5
votes
2answers
167 views

NMinimize in one-dimensional Interval

An Interval should be a one-dimensional region, so a region. I tried to minimize a function over an interval, e.g.: ...
6
votes
1answer
704 views

Remote Kernel configuration works in v9 but not in v10

I have both v9 and v10 currently installed on my computer (Windows 7). For reasons that are not entirely clear, if I create a new remote kernel in one version, it is accessible to the other; however, ...
1
vote
2answers
434 views

Getting the polynomial from a polinomial root equation

After doing some preceding work I end up with a polynomial equation that should look something like this: Eq = c + b x + a x^2 - d x^2 == k I would like to ...
2
votes
0answers
45 views

Why does Mathematica provide incosistent convergence conditions?

In[1]:= Clear[a, n] In[2]:= SumConvergence[(n^(n - 2))/((a^n)*(n!)), n] Out[2]= Abs[a] > E In[3]:= SumConvergence[(n^(n - 2))/((E^n)*(n!)), n] Out[3]= True All ...
3
votes
1answer
113 views

Package and imbricated compiled functions

I would like to build up a Mathematica package Pck which contains compiled functions. However when loading this library I obtain an error. When reduced to a minimal ...
0
votes
2answers
64 views

How to stop code from evaluating same thing twice?

I have this code for evaluating some fractions: ...
6
votes
1answer
143 views

Tools for MathLink traffic analysis?

I noticed that the documentation for LinkSnooper says that it is "obsolete". I don't have any experience with this tool, but I thought it looked interesting after seeing results it was able to provide ...
2
votes
2answers
46 views

Filling a region defined by a reduce command

I'd like to shade the region defined in the xy-plane produced by this code: ...
3
votes
1answer
122 views

How do I create a logical permutation expression automatically

How can I create a permutation automatically with logical expressions ? For example (2 logical variables): ...
4
votes
2answers
229 views

InstallR on OS X with external R installation on 10.0.1.0

I had no problem to follow the instructions given at InstallR on OS X with external R installation to get an external R working with Mathematica 10.0.0.0. However when Mathematica was updated to 10.0....
1
vote
1answer
70 views

ml32i1m.lib and ml64i3m.lib Files

I have to install a package to use together with MatLab (http://www.mathworks.com/matlabcentral/fileexchange/6044-mathematica-symbolic-toolbox-for-matlab-version-2-0]1) that requires locating files ...
1
vote
0answers
168 views

How to control precision of parameters in NonlinearModelFit?

I am using NonlinearModelFit for fitting a dataset to some complex numerical model function that depends on a few parameters. The final required precision of these parameters is very low, like 3 ...
2
votes
1answer
80 views

`TransitiveClosureGraph` doesn't return self-loops for nodes that are in a cycle

This is from boost library documentation: The transitive closure of a graph G = (V,E) is a graph G* = (V,E*) such that E* contains an edge (u,v) if and only if G contains a path (of at least ...
0
votes
1answer
81 views

Basic stylesheet customization of “Text” cells not working for me

I have learned much from other posts about stylesheet customization. Here is my procedure: Step 1 - Open a new, empty document. Step 2 - Format..Edit Stylesheet. I have added the following ...
3
votes
5answers
557 views

Define a function with variables linked implicitly

I would like to define a function $f(x,y)$, with the variables x and y linked by an equation implicitly, so $f(x,y)=f(x(y),y)=f(y)$. Eventually I would like to draw a graph with $f(x(y),y)$ being the ...
17
votes
1answer
2k views
1
vote
0answers
48 views

Cursor function for 3D plots [duplicate]

I will illustrate my question with a picture from a matlab plot. Is it possible to do the same thing with Mathematica plots in 3D as well? The above is from a 3D matlab plot. I can get tooltips ...
0
votes
1answer
69 views
9
votes
2answers
386 views

Solve a PDE over a region defined by a Bezier patch

I am using NDSolve to find the solution to a PDE over an arbitrary domain. The domain is specified by a Bezier patch. ...
0
votes
1answer
117 views

converting DO loop into NestList form

I would like to rewrite this Do loop using NestList. Can you help me? ** DO loop ...
23
votes
5answers
723 views

How can a big table be treated as a database?

I often work with big tables that I want to treat kind of like a database. Here's an example table. ...
2
votes
0answers
210 views

How to plot feasible objective space of a Generic Multiobjective Optimization problem?

As you know, a generic Multiobjective optimization problem can be stated as follows: $min{\space}F(\bf{X})=[f_1(x),...,f_n(x)]$ $h_k(x)=0{\space\space\space} k=1,...,n_e$ $g_i(x)\leq0{\space\space\...
1
vote
6answers
612 views

Converting two lists into a list of tuples [duplicate]

I wonder how I can turn the list $\{a_1,...,a_n\}$ into the new list $\{(a_1,1),...,(a_n,n)\}$, i.e $a_k \mapsto (a_k,k)$, how do I do that? I figured the function Tuples might work, but it just ...
24
votes
3answers
4k views

I'd like to display field lines for a point charge in 3 dimensions

I'd like to display field lines for a point charge in 3 dimensions. Not a force field (short arrows) but continuous field lines that start on the charge.
1
vote
1answer
100 views

Is there a way to split a list (or number) into a specific number of parts?

I know there's a way to split a list into parts of a specific length, and I know there's a way to get all possible partitions of an integer. But I was wondering if there's a way to partition a list ...
8
votes
2answers
417 views

How to make a cylinder with bottom that shows hidden part of edge as dashed curve [duplicate]

I am learning a bit about TikZ and found a nice feature in its graphics, that I am having hard time duplicating with Graphics3D. It is making a ...
12
votes
2answers
16k views

Figuring when the minute and hour hand coincide on a clock

I would like to list all possible times in a 12-hour period, where the hour hand overlaps the minute hand completely. This is really a question about three distinct things - to be done in Mathematica ...
5
votes
2answers
373 views

Calculate area under a polyline

Consider the following code: tmp = {{0, 0}, {1, 1}, {2, 1}, {3, 2}, {1, 0.5}}; ListLinePlot[tmp, Filling -> Axis] Is there any easy way to compute filled area?...
2
votes
0answers
145 views

Kalman filter estimation

Does anyone have any examples of the estimation of Kalman filters in Mathematica? I am new to these filters and struggling to compose the likelihood function. Some examples would be really helpful. ...
1
vote
1answer
91 views

How to Plot a Bezier Curve for a specified Control Polygon with a restricted interval

I am having some confusion in plotting a Bezier Curve for the specified interval [a,b] for a given control point polygon. For example: ...

15 30 50 per page