0
votes
0answers
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 ...
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
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 ...
5
votes
3answers
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 ...
1
vote
1answer
67 views

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

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

Is the MMA formulation correct?

Let $H$ be a $4\times 8$ matrix and $R$ is a vector of 2 elements. ...
8
votes
9answers
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. ...
5
votes
0answers
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 ...
7
votes
3answers
1k views

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

I have found the following parametrisation for a Klein bottle: ...
3
votes
1answer
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 ...
1
vote
1answer
54 views

Kronecker product

I have a problem, I want to compute kronecker product as given below; ...
-4
votes
0answers
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 ...
3
votes
1answer
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 ...
3
votes
3answers
254 views
0
votes
0answers
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 ...
1
vote
1answer
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 ...
0
votes
0answers
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 ...
3
votes
1answer
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 ...
1
vote
1answer
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}]; ...
-5
votes
0answers
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 ...
7
votes
1answer
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$. ...
17
votes
1answer
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 ...
2
votes
0answers
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: ...
0
votes
0answers
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 ...
2
votes
3answers
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? <...
1
vote
1answer
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, ...
0
votes
0answers
45 views
1
vote
0answers
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 ...
3
votes
0answers
33 views

Trouble Converting From GeoGridPosition with Equirectangular Projection

A simplified version of my code is: ...
0
votes
1answer
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: ...
2
votes
1answer
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 ...
2
votes
0answers
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 ...
0
votes
1answer
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: ...
14
votes
6answers
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 ...
0
votes
0answers
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 ...
2
votes
2answers
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 ...
-2
votes
0answers
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 ...
-1
votes
0answers
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.
0
votes
2answers
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. ...
0
votes
3answers
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 ...
0
votes
0answers
39 views

Singularity/Stiff system error

I am after the solutions of the coupled differential equations ...
2
votes
2answers
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 ...
0
votes
0answers
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 ...
0
votes
1answer
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 ...
4
votes
1answer
107 views

Why do I get the Null when I evaluate Print[x] // InputForm? [duplicate]

When I execute: Print[x]//InputForm I get a Null at the last line of the result. This is an example shown in the ...
2
votes
0answers
68 views

Confusing alternative definition of a function [duplicate]

I saw a function defined something like the following: f[n_Integer][r, θ] = Sin[n r π/L] Cos[n r L π θ/4] My question is, why did my professor define the ...

15 30 50 per page