All Questions

Filter by
Sorted by
Tagged with
1
vote
0answers
53 views

Is there a neural network or feature available which can synthesize speech from a voice?

Consider the following VoCo project from Adobe. In it they show how they are able to take 20 mins of speech and create additional narration in the same voice very accurately. Video1 (Nov-2016) ...
5
votes
1answer
94 views

why DSolve in V 12 returned an internal module variables with $ on them in this example?

Fyi, Reported to WRI in case it is a bug. [CASE:4288939] Is this supposed to happen? ...
9
votes
3answers
941 views

How can I solve for the intersection points of two ellipses?

I need to find the points at which the two ellipses implicitly defined by $\qquad y^2=4-4\,x^2 \quad[E1]$ and $\qquad (1-(x/2))^2+(y-1)^2=1 \quad[E2]$ intersect. So I isolated $y$ in E2 and ...
0
votes
0answers
57 views

Extending the Definition of GCD [on hold]

Suppose we have $q \in \sqrt[b]{a}$ for $a,b\in\mathbb{N}$ and $$q=\prod_{\underset{p \le q, \ i\le|p|, \ k\in \mathbb{N}}{p\in\text{prime},\ j_i,i\in\mathbb{N}}} {p}^{({j_i}/{k})}$$ $|p|$ is the ...
7
votes
3answers
190 views

changing number of arguments to a function in secondary evaluation

So I have a function that produces answers involving uninstantiated(?) function names, e.g. Out[1]= f[a,b,c,d]. I then want to evalute this leftover result by, ...
2
votes
1answer
76 views

Creating a user defined PDF

I have a derived distribution which I want to play with, which is of the form $$\frac{1}{\sigma^{2}}2^{-2+\frac{x}{10}} 5^{-1+\frac{x}{10}} e^{-\frac{1}{\sigma^{2}} 2^{-1+\frac{x}{10}} 5^{\frac{x}{10}}...
7
votes
2answers
373 views

How can I iterate this process?

a = RandomVariate[UniformDistribution[{0, 1}]]; b = RandomVariate[UniformDistribution[{0, 1}]]; c = RandomVariate[UniformDistribution[{0, 1}]]; a + a b + a b c ...
7
votes
1answer
94 views

Converting Piecewise function to C code

I'm trying to convert a function to C Code f = D[Piecewise[{{x^2, -10 < x < 0}, {x, x > 0}}], x] I decided to scan through conditions and corresponding ...
5
votes
3answers
97 views

Optimal way to extract “positive part” of a multivariate polynomial

I've got multivariate polynomials with numerical coefficients, like e. g. p - s - p q^2 s^2 + 3 r s^2 + 3 r^2 s^2 - p r^2 s^2 - 2 q r^2 s^2 - 2 r^3 s^2 + s^3 and ...
0
votes
1answer
28 views

Remove inequalities from set of rules

I solved a set of equation and use reduce on the set of solutions. Changing the equal sign to arrows I get some set of rules but some of the entries are inequalities. E.g. ...
3
votes
0answers
88 views

Why does Factor[] not factor -1?

Consider the two expressions -2a-2b and -a-b. The TreeForm[] looks identical However, ...
2
votes
1answer
65 views

Inconsistent Vector Plot over Contour Plot

I am trying to plot the gradient vector field over the contour plot of a function. While the demo function seems to work very well with the demo taken from How to use vector plot and gradient vectors?...
0
votes
1answer
54 views

Solving a profit maximization with Cobb-Douglas production function

I'm considering a typical profit-maximization problem: \begin{equation} \label{optimization1} \begin{aligned} & \underset{K,L}{\text{max}} & & P Y - r K - w L \\ \end{aligned} \end{...
2
votes
0answers
55 views

NBodySimulation in ParallelTable [closed]

When I use the NBodySimulation in a ParallelTable I do not get multiple processors effectively activating. If I want to sweep ...
3
votes
3answers
116 views

How to relate a binned pdf to a pdf, taking into account how the data is binned?

I have a data set which I represent as a PDF histogram Histogram[Data,{"Raw", NumberOfBins},"PDF"]. I want to know the distribution parameters of my data. I've ...
20
votes
0answers
188 views

How to get an absolute value of Around?

Around is a useful feature of Mathematica 12 to work with uncertain data. x = Around[-1, {0.5, 1.5}] $-1.0^{+1.5}_{-0.5}$ ...
0
votes
1answer
182 views

Is Mathematica really integrating something?

I have a recursive method to get a function, which is already working in other programs, so everything is alright with the method. My problem is when I try to integrate ...
3
votes
3answers
71 views

Identify complex expression and replace

I'm having trouble finding a way (if there is) to analyse an expression, identify a complex pattern in it and then replace it with another thing. I think it will be easier to explain my problem with ...
4
votes
1answer
56 views

Working examples for SemidefiniteOptimization

It appears to me that for some types of invocation, SemidefiniteOptimization is not working for matrices larger that 2x2. An example from help that works ...
0
votes
0answers
33 views
0
votes
1answer
34 views

diagonalisation of systems of symbolic equations from two cross products

A description of what I'm attempting: Given a generic vector $\vec{r}$ and a point in space $D$, I want to build a reference frame centred in $\vec{r}= (x,y,z)$, with one axis directed along the ...
2
votes
1answer
45 views

Hybrid Systemn Anomalous results while using ParametricNDSolveValue

The hybrid system that I am solving ...
3
votes
0answers
71 views

BVP of coupled ODEs with unknown initial values

I want to solve the following 2nd order coupled ODEs: $$ \begin{align} f^{\prime \prime} (r) + \frac{2}{r} f^{\prime} (r) + f (r) g (r)^2 - f (r) + f (r)^3 - \frac{1}{5} f (r)^5 &= 0 \\ g^...
2
votes
0answers
38 views

Sensitivity analysis of a hybrid system (using WhenEvent) using ParametricNDSolve [closed]

I am trying to do a sensitivity analysis using ParametricNDSolve for a hybrid system. with the following event: ...
8
votes
1answer
107 views

Getting scores from PCA

I'm not super familiar with Principal Component Analysis, but from what I understand, it sorts a vector in order of decreasing variance, and uses that to transform the vector to correlate variables ...
1
vote
0answers
37 views

Combining MeshRegions of generated 3D shapes and RandomPolygons

I am interested in generating 3D a joint BoundaryMeshRegion or a MeshRegion from different shapes and polygons. This works for <...
5
votes
6answers
678 views

Pretty heat maps

I would like to create a heat map like that following: This code: f[x_, y_] := (x^2 + y^2)^2 Exp[-((x^2 + y^2)/5)] DensityPlot[f[x, y], {x, 0, 5}, {y, 0, 5}] ...
1
vote
1answer
25 views

How to set a time range for one day and transpose it with a certain number

I would like to create a time list for one day with range from 0:00 to 23:50 and transpose this list with a constant number 239 and then transpose these two lists. I tried to make it but it doesn't ...
6
votes
2answers
117 views

Make uniform mesh with quad elements

I have the following code that generates a finite element mesh with triangular elements which by using command ToQuadMesh I convert to the quadrilateral elements, but I am not able to make the uniform ...
17
votes
2answers
419 views

Creating graph out of particles images

I have recently started learning how to use Mathematica's brilliant image processing tools, and the image I've taken as first example is the following (source): So far I've tried to first use ...
11
votes
2answers
142 views

Custom SGD optimizer in Mathematica neural network framework?

I have a new approach to SGD optimizer, and thought to try to test it in Mathematica. It uses gradients to simultaneously maintain online parabola model for smarter choice of step size - I only need ...
7
votes
1answer
85 views

Why call to StreamPlot terminates kernel each time?

FYI, reported to WRI [CASE:4288967] By mistake, I put x range starting from negative to make StreamPlot for expression with ...
0
votes
0answers
34 views

Mathematica wrongly displays rows instead of columns [duplicate]

I want to perform some operations with certain column but when I tried to display the first column as it is shown in attached picture 1 (in some reference on web) of the table but Mathematica ...
0
votes
0answers
32 views

Why LinearLayer does not equal w.x+b [on hold]

Why if I define a linear layer: l1=LinearLayer[50, "Weights" -> wl1, "Biases" -> bl1] and calculate l1[x1]-wl1.x1+bl1 ...
1
vote
0answers
26 views

RegionPlot of a ParametricRegion (problems MMA v11.0.1)

Having problems to visualize a ParametricRegion I took an example from the documentation ...
0
votes
0answers
41 views

How to turn an algorithm into a function

I have written a script to help me find the several local minima of a dataset. It takes two arguments: the dataset list and an x-coordinate value that tells the script from where to start looking for ...
2
votes
1answer
30 views

Nesting NDSolve, Manipulate and Plot functions

I have a system of differential equations that I'd like to solve for different values of a parameter. I am doing so, by ...
5
votes
3answers
455 views

Arrange a list in ascending order by deleting list elements

I am new to mathematica and currently learning it by solving some basic problems. I am trying to arrange a list in ascending order using a detailed IF loop. For instance if we start out with $\{1,65,...
4
votes
1answer
42 views

How to integrate this oscillatory function with apparent singularities

I want to integrate the following function with respect to x,between 0 and +Infinity: ...
0
votes
0answers
24 views

Conversion of numerics to/from database Real

I am writing data from MMA (11.0.1.0, Win 10 home 64 bit) to a Microsoft SQL Server/T-SQL database and am having considerable trouble controlling precision. The target column in the database has data ...
1
vote
1answer
79 views

How is the best way to integrate using loops

I'm using Mathematica, and I want to integrate a function f[wr] in wr using some method that works with a Table/Do/For in the variable wr. I tried to use something like the Riemann's sum, to evaluate ...
1
vote
0answers
71 views

Extracting a vector from NDSolve solution

I made an NDSolveValue to get the variable ff[t] ...
2
votes
0answers
61 views

ParallelSubmit does not trigger computations

I am having some problems with parallel computations. I'm afraid it may be a "known issue" but I haven't found any solution. In general, my script looks like this ("prepare" and "process" are my own ...
12
votes
1answer
132 views

Using Select on Dataset with missing keys

I have a very large dataset with about a million entries with up to 75 keys each. Across the whole dataset about half of the keys are blank. In order to reduce filesize, I have used the following ...
1
vote
1answer
39 views

Drop-down menu to globally change definition of a function `t[x]`?

If have a function t[x_] which is used extensively in a long notebook, but which has a variety of definitions, and which is used in a variety of ways. I'm looking ...
0
votes
1answer
49 views

How to simplify an expression with no constraints?

Simplifying expressions on Mathematica is a recurrent topic. However I found myself stuck with this one: Solving an rational equation on Mathematica gives me the following expression: ...
0
votes
1answer
53 views

Automating a large operation by making a function

I would like to automate the following operation. To be transparent I shall put my code into separate chunks and explain the process. Suppose I have the following: ...
1
vote
0answers
61 views

function application f//x when the function has more than one parameter [closed]

I want to use the function apply (or something even better). x//f with a function that has more than one parameter. Here is how it works with one parameter. <...
3
votes
2answers
77 views

From f[g[x,t]] to f[g]

How can you change f[g[x,t],t] to f[g,t] ? I have differential equations ...
2
votes
1answer
37 views

Compare values in specific times between several days

I have imported csv file which is a Daily Load Diagram consisting of 3 months (1st dec 2018 to 28th feb 2019) and the values of current are taken every 10 seconds. ...

15 30 50 per page