# All Questions

32 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 ...
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 ...
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 ...
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 ...
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 ...
106 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 ...
133 views

### How to extract the displayed name of an entity

Entities are typically displayed in their elided form: It's useful when exploring the output of EntityList to have access to the canonical name of the ...
67 views

### Evaluating Bessel-Schläfli-type Integral with Infinite contour

I am attempting to evaluate the integral $$\int_{\infty-i\pi}^{\infty+i\pi} dt \frac{e^{-\frac{l}{n}t}}{[(X'-X)^2+r^2+s^2- 2rs \cosh(t)]},$$ the only variable being $t$, ...
82 views

### Is the MMA formulation correct?

Let $H$ be a $4\times 8$ matrix and $R$ is a vector of 2 elements. ...
1k views

### Riffle but not quite

Given the two lists below, is there an in-built command or otherwise neat way of accomplishing the desired output. ...
78 views

### Softmax Regression Classification Algorithm

I'm following the Stanford Machine Learning course while simultaneously developing my Mathematica abilities. I'm having issues with my Softmax Classifier implementation (for ref, have a look at these ...
1k views

### My 3D plot of a Klein bottle doesn't look right

I have found the following parametrisation for a Klein bottle: ...
54 views

### How to assume all variables in my code are reals

I won't have any occasion to have any imaginary number in my code. If there are any, that is an error. So allowing the imaginary case simply hinders the equation manipulation and simplification. I ...
54 views

### Kronecker product

I have a problem, I want to compute kronecker product as given below; ...
44 views

### How to correctly UPDATE the Centroids in the Fuzzy C Means (FCM) algorithm? [migrated]

ATTENTION TO THE MODERATORS: In a previous time, my question was arbitrarily moved to stackoverflow forum, despite my inquiring to not do it, then it later was deleted from that forum by another ...
126 views

### How to get a best fit line on a scatterplot?

I know that I am supposed to call listplot inside of the show function but I can't seem to get that to work. The best I can get is this, which has the best fit line following the scatterplot. How do I ...
254 views

I defined ...
49 views

### How to automate a computation and save the outputs?

I'm working with neutrino oscillations in matter and i'm computing the oscillation probabilities as functions of the Energy. This is what i have ...
80 views

### Creating sublists [duplicate]

I got this example in Mathematica references. v = ToExpression["a" <> ToString[#]] & /@ Range[1,44] Could someone explain to me the function of the ...
54 views

### Memory not freed after killing kernel [on hold]

Even after killing the kernel the memory was not back. I run more than 40 computation session on 14 core in a PC with 12GB ram. after about a month just one of my codes remain running with using about ...
67 views

### Dealing with a large number of optimizations performed with parameters read in from a CSV file

I have a large CSV file (1.5M rows), with each row containing a set of parameters that I need for an optimization routine in Mathematica. I'm hoping to import the data, run the computation, and then ...
59 views

### Create a table indexed form a list giving a the index specifications

I need to create a table indexed form a list. e.g.: list={{i, 3}, {j, 4}}; would give the table Table[..., {i,3}, {j,4}]; ...
36 views

### Mathematica >> Python [closed]

PLEASE HELP ME! How do I write the following Mathematica code into Python: [Mathematica] Speed = Table[0, {i,100000}, {j,3}] [Python] Speed = #a list of some sort. # As a little helper, if you ...
74 views

### Issuing with ParametricNDSolveValue

I am having a problem with ParametricNDSolveValue[] . let me start with a simple example. Considered following example with constant parameter $a$. ...
161 views

### How to implement custom NIntegrate integration strategies?

How can new integration strategies algorithms be used with NIntegrate? This is a different type of extension than the extensions with new integration rules, as ...
27 views

### Protected Variable Error with Workbench 3.0

I have Wolfram Workbench 3.0, build 78, with Mathematica 10.4 as the front end. I am using Windows 10. I am trying to run a simple test source code test.m: ...
45 views

### Improving kernel density estimation of statistical PDF from measured CDF

I'm trying to use WeightedData and SmoothKernelDistribution to generate a PDF from measured points along a CDF. I've tried to ...
110 views

### How to integrate numerically the product of result of NDsolve? [closed]

I am going to integrate the product of the results of NDsolve, in fact If x and y are the results as interpolating function, How I can integrate x*y numerically? <...
44 views

### Control data type (or precison?) to limit memory usage

I couldn't find the answer to my question, so here it is: I have quite a large table, which I generate in Matlab (for some reasons i use both Matlab and Mathematica, I'd like to use only one of them, ...
45 views

### How can I do numerical calculation directly without any symbolic calculation? [duplicate]

Here I define a set of functions: ...
46 views

### Magnify Part of a 3D Graphic [duplicate]

I have a 3D Graphic built, and I want to magnify part of it. I would prefer a circle or ring-shape that can be placed anywhere in front of a 3D graphic that would magnify it. Ultimately, I want to ...
33 views

### Trouble Converting From GeoGridPosition with Equirectangular Projection

A simplified version of my code is: ...
52 views

### Dynamic input for Complex, Determinant output problems [duplicate]

I'm having trouble using Complex with Dynamic real and imaginary inputs. The inputs come from a matrix of popup menus: ...
228 views

### Simplifying square root of exponential

Very simple question: Why doesn't Mathematica simplify this square root expression? Refine[Sqrt[Exp[I p]], p > 0] // FullSimplify It should give ...
82 views

### A certain kind of Object Oriented functionality in Mathematica?

I'm looking to implement a certain aspect of object oriented programming in Mathematica. I've read a lot of the big threads where people have discussed different approaches to implement OO in ...
35 views

### NonlinearModelFit error: the function value is not a list of real numbers with dimensions {101} at {a,k,m0} = \ {1.,1.,1.} [closed]

So I'm trying to find a sigmoidal fit for my numerical solutions of these two ODEs but I keep getting an error and I don't know how to get around it. Here's my code: ...
2k views

### How can I plot this spirally surface?

I would like to plot a surface that looks something like this sand spiral. But I really have no idea how. Ideally I would like to be able to express this as a function in cartesian coordinates. I'm ...
5 views

### Probability problem [migrated]

I created this problem based on the following probability riddle here. You're a king, and you were given two groups of people, and a certain information about them. First group has 2 people. One of ...
122 views

### Multiple object detection and tracking in images

The code below: reads in a number of png images, where the background is dark and objects of interest (here 3) are bright dots determines in each image the coordinates and other information ...
79 views

### Animating Differential Equations [closed]

I was tasked with creating a 3D animation in Mathematica, which aims to describe the movement of a football through space as it's kicked. There are several differential equations regarding this matter ...
27 views

### How to convert HTTPRequestData[“Body”] to Association? [closed]

Say I have an APIFunction, which should take its parameters from the body. How should I parse the HTTPRequestData["Body"] to take it as Association? It returns a plain string.
42 views

### How to use None in FrameTicks in ListPlot [closed]

FrameTicks are plotted all round the frame, but I only want them on the left and bottom. ...
78 views

### Issue finding roots in a polynomial [closed]

I am trying to find the roots of the polynomial (-2 + x)^3 (-2 + x^2) (-4 + x^3) (4 + 2 x^2 + x^4) (-8 - 8 x - 2 x^2 + x^3 + x^4) . I am using the command ...
39 views

### Singularity/Stiff system error

I am after the solutions of the coupled differential equations ...
275 views

### How to solve an equation with a nested function

I have the equation f[f[x]] == 28 + 9 x How can I solve this for f[x]? I note that this post relates to the topic, but ...
44 views

### Rotating the nested lists of a list [closed]

I have a nested list of the form List1 = {{1},{2},{3},{4},{5},{6}} I want to apply RotateRight to each of the elements in ...
62 views

### Plotting Matrix versus Matrix [closed]

So I recently started using Mathematica and I haven't been able to figure out how to simply plot elements of one matrix versus another matrix which are not directly related or are not a function of ...