10
votes
2answers
94 views

Is it possible to attach a debugger to a dynamically linked library on the supported OS?

Recently, I discovered that LibraryLink technique is a very useful tool to improve the performance of function. Firstly, I need to use LibraryLink template to write C/C++ program. Then compiling the ...
5
votes
1answer
38 views

Strange problem with Derivative and BoxForm`MakeDerivativeBoxes

All of the following three lines should produce the same output, but the third variant produces an error on output. ...
1
vote
2answers
82 views

Selecting and plotting points belonging to a region from a random sample

I'm facing a problem with RandomReal when using ListPlot to plot some constrained points. I found that at every run of MA kernel ...
0
votes
0answers
30 views

How to solve a quadratic inequality containing parameters?

I have the following inequality to solve for $R$ in terms of $\delta$ and $n$, with assumption that $n \geq 3$ and $\delta>0$: $$-2 < 2 -\frac{16n\delta^{2}}{R^{2}\sin^{2}\frac{\pi}{n}} \left(...
19
votes
5answers
4k views

How do I increase the readability of this code?

Below is some code I am working on; being a beginner. How can I increase the readability of the part behind Manipulate? I can't read my own code anymore, because it is simply too long and unordered. ...
0
votes
3answers
56 views

plotting difference intervals of two vectors

IF $a=\{2,6,8,18,20,24,26\}$ and $b=\{0,5,3,10,15,21,25\}$. I want the interval of the pairwise differences, that is, [0,2], [5,6], etc showing by lines in plots. I don't know the command for it. I ...
1
vote
0answers
22 views

How to import specified current statistic to the Mathematica

There is amazing site about statistic of everything, www.worldometers.info. I want to import specified current statistic to the Mathematica for instance how to import dynamic "current world ...
1
vote
1answer
44 views

Domain in Graphics [on hold]

I made this animation: ...
0
votes
0answers
67 views

Pseudorandom selection with double constraints

I have an excel file with data in the format below and I want to extract 30 entries pseudorandomly. There are two constraints: Constraint 1: I need to select 30 of these rows with UPPER LIMITS on ...
3
votes
3answers
176 views

Why is my ListPlot rounding up fractions?

I'm trying to create a ListPlot that compares a country's poverty fraction with its cellular phone fraction. I'm using this to create the table. ...
-1
votes
1answer
105 views

Why this code gives different output for differents runs

Edit Here is my code to plot many constrained variables in (x,y) plan : the variables are : ...
11
votes
3answers
522 views

How to debug the C code for LibraryLink?

Recently, I use the C to rewrite a Mathematica function NonzeroBasis[], please see here for fully descriptions. Here, ...
0
votes
0answers
34 views

NDSolve is not giving any result nor any error [on hold]

I am trying to solve a differential equation for $\psi$, but NDSolve is not giving any result nor any error. Please help me. My function is ...
1
vote
3answers
33 views

plotting a two variable real valued function with domain given in vector format or discrete

I have a function $g(x,y)= -2x+5y$ and vector $ a=\{0,2,6,8,18,20,24,26\} $. I want to plot a $ g(1,a) $ but i don't know how to plot it? I use following commands: ...
2
votes
2answers
73 views

How can I plot a function defined as a derivative of another function?

How can I plot a function defined as a derivative of another function? For example, y[x_] := Sin[x] y1[x_] := D[y[x], x] Plot[y1[x], {x, 0, 2 Pi}] doesn't ...
0
votes
0answers
48 views

How to prevent updating of an assignment

I have the code you see below: For[ni = 1, ni < 3, ni++, ALLB[[ni, 1]] = LB[[1, 1]];]; This code is written in a main notebook, and I have another sub ...
1
vote
0answers
31 views

Arrange of several files

I am struggling to import my data. There are 400 files in CSV format with names organised by date like: Table1_20111003_YYYY_MM_DD_0000.dat. In each file over 20 colums and 86400 rows (seconds of ...
3
votes
0answers
88 views

How to get this terrible summation/product to run in Mathematica?

I've come across this formula and have no idea where to even start. (My assumption here is that $m,n$ are known and input into the expression to arrive at an answer.) $$f(m,n) = \sum_{\substack{0 \...
3
votes
3answers
146 views

Simultaneous plotting

For my experiment, I have to simultaneously fit the real part and imaginary part of cavity reflection data which is given here column 1: frequency, column 2: reflection magnitude, column 3: phase I ...
0
votes
0answers
16 views

web-embedded cdf plug in Raspberry pi3

web-embedded cdf plug in Raspberry pi3 hello. i am using rapsberry pi 3 and raspbian os. and mathemaica free on raspberry pi. but In raspberry pi web browser can not open(plug in) web-embedded cdf ...
9
votes
1answer
185 views

Random walk on a Sierpinski gasket

I am trying to simulate a random walk on a Sierpinski gasket. The best strategy i could come up with is to use Nearest point function to determine the next possible step of my walker. But this creates ...
7
votes
1answer
88 views

How does a construct like `i : func[arg_] := i = an expression using arg` work?

Occasionally I run into a Pattern that looks like i:func[arg_]:=i= an expression using arg I have two questions on this: Can ...
2
votes
0answers
221 views
+100

How to perform convolutions on this complicated pdf?

I am working on problems related to the pdf q[y] where $y=Log[f]$ and f[x] is a known pdf in x. But I can't figure out how to ...
0
votes
0answers
53 views

How to get smoother curves when plotting with mathematica 8.0?

Using the following line of code, I am trying to plot a few curves side-by-side. However, it turns out that the output curves are not that smooth as seen from the ups and downs (oscillating pattern) ...
1
vote
2answers
53 views

Plotting a set of parameters

I am trying to plot the equations that describe the Cartesian locations of Bi-Cylinder coordinates. The equations are as follows: ...
3
votes
1answer
54 views

How to implement search patterns and take into account language statistics?

Patterns in Mathematica I struggle some with patterns while trying to extract words out of large texts. Let us say that I have a long text (Strindberg) that we can call ...
3
votes
1answer
94 views

Background removal of gradient background

I am trying to calculate the sum of intensities present in my agarose gel: I want to compare the intensity of the total white band on the top with that of the one on the bottom. The idea is to ...
3
votes
2answers
56 views

DateListPlot from DateHistogram

How do I draw a DateListPlot from the bin height and bin middle position? I have a series of time events from which I calculate DateHistogram, but I want to represent the result through a kind ...
1
vote
1answer
62 views

Problems with Subsuperscript and Subscript Combination

I have a 3D figure, not important what it is, and I have the following code for the Z axis of this figure: ...
0
votes
0answers
22 views

FormBox in pretty strings

My goal is to write usage messages in the same style as Mathematica's built-in ones, such as List::usage. This involves a mess of ...
1
vote
2answers
144 views

Displaying Dandelin spheres touching hyperbola boundary patches in cone

Can we show the Dandelin spheres scenario (shown by Hrhm for case of ellipse) for a hyperbola as well? I'm not happy with what we get to see of this on the net. The double nappe/sheet of a cone is ...
3
votes
1answer
81 views
0
votes
0answers
30 views

Produce a function of parameters from a solution to parametric equation [on hold]

I am trying to produce a very simple result, namely given some function $f(x,a)=0$ find a solution $x(a)$ and let it be a function that I later plot depending on $a$. However Mathematica does not ...
7
votes
1answer
82 views

NDSolve how to monitor shooting method iteration?

here is a shooting method solution right out of the docs: ...
1
vote
1answer
67 views

Stiffness problem in an NDSolve system. StiffnessSwitching does not help?

I'm trying to solve an ODE system with the NDSolve method. This my ODE system, with the BC and the functions V and dV defined: ...
4
votes
5answers
201 views

Transforming a list of the form {{{x, y}, z}, … } into the form {{x, y, z}, … } [duplicate]

This should be a fairly simple question, but I can't figure out how to do it. I have a list of points of the following form: ...
3
votes
0answers
59 views

APIFunction calling another API

I've built a set of Wolfram APIs that call another API which builds specific queries given the parameters of a database and then outputs that query for the client in the query language syntax. Using <...
25
votes
3answers
3k views
+50

How can Mathematica be used to create images like these?

Here are two examples of artistic image interpolation using just black lines: TRIANGULATION: ANGULAR CELEBRITIES DRAWN WITH A PEN Interpolation for Triangulation-represented Digital Image The ...
5
votes
0answers
70 views

How-to derive conical region in an arbitrary geometry?

Description I have been working with derived geometric regions and ran into a problem when deriving RegionIntersection of a Cone...
0
votes
0answers
51 views

Saving the result of a NDSolve

I have solved this diff equation (with no problems): ...
2
votes
1answer
55 views

Problem using Nintegrate and NDsolve

I am going to use Nintegrate to integrate the result of NDsolve and also a Table. How I can ...
0
votes
0answers
31 views

The problem encounterend while calling a sub notebook from the main notebook

I have two notebooks; one of them is the main notebook which will call the second notebook several times in a loop and inside this loop, matrix called as ALLB, defined in the main notebook, will get ...
1
vote
2answers
44 views

ListPlot function in 2D- plan in two varibles

Suppose a function f[s,k]. How to Listplot this function in 2D plot in (s,k) plan, such that ...
0
votes
0answers
6 views

About calulus of variable [closed]

What are some good web link or pdf link to understand(self study) calculus of variable intuitively?I am a 12 th grade student with some notions of maxima and minima and some other notions in one ...
0
votes
0answers
92 views

Animating ballistic movement

I was tasked with creating a 3D animation of the movement of a ball through space, while taking into account influences such as the magnus effect, air drag, and rotation. In order for this to happen a ...
1
vote
2answers
54 views

Not able to apply Scan in place of For loop [closed]

I have been advised to avoid procedural loops and use other functions like Scan,NestList, FoldList, NestWhileList, Inner and Outer. My worry is that if I have a need in which certain critical ...
7
votes
1answer
105 views

How to plot a vector field on a geographic map?

Suppose I want to VectorPlot on a geographic map a vector field defined on a Reference Ellipsoid. The field is given to the following function as a ...

15 30 50 per page