0
votes
1answer
54 views

Why this function can't be plot [on hold]

Situation I have define a function in Mathematica like this: phi[t_] := Subscript[\[Phi], m] Cos[(2 \[Pi])/T t] Then I specify some parameters in this function ...
6
votes
0answers
40 views

Evaluation leak from Dynamic in Button's action

a = 1; Button["Print", a++] Button["Print", Dynamic[a++]] Button["Print", Dynamic[a++];] Button["Print", {Dynamic[a++]}] Dynamic @ a The second ...
0
votes
0answers
15 views

2 functions in a package for CDF, 1 is OK 2nd is not working

I am developing a CDF application to teach me how to create CDF files. In this application I am taking numeric and symbolic integral of a function. I create package with two functions; 1-taking the ...
0
votes
1answer
26 views

Forcing evaluation of LinearSolve [on hold]

I have a linear solve function: ls = LinearSolve[MatrixForm[Transpose[basisNScoeffs]]]; Which I then use to generate a table of solutions: ...
2
votes
1answer
114 views

How do i plot a conical spiral on top of a cone?

So i need plot a spiral from the top of a cone, can someone help me with my code i have made a similar thing for a cylinder, but there radius wasnt change and in this case i cant figure out how to ...
0
votes
0answers
28 views

Analogue maple's Digits Environment Variable [duplicate]

I want setup (in Mathematica) once and for all operations number of digits after decimal point, similar how it's done in maxima: ...
0
votes
1answer
43 views

Solution of Coupled second-order ODEs and plot the diagram

We have two second-order Coupled differential equations as the followings: $$\left\{\begin{array}{lr} \displaystyle \frac{{{d^2}{y_1}}}{{d{x^2}}} = \{ \frac{{\sqrt {\frac{{1 - {\varepsilon ...
0
votes
1answer
41 views

Classifier Random Forest Accuracy Not Consistent

I tried running a random forest classifier over different training sample sizes. The results are very strange because I could not replicate my accuracy with the same sample size in the second ...
0
votes
2answers
88 views

Uniting lists of lists

Here's what I'm trying to do. First a simple example: ...
0
votes
0answers
21 views

ConformImages Parameters unclear [on hold]

What is the difference between these two statements? ConformImages[files,10] ConformImages[files]
4
votes
0answers
57 views

Problem with Parallelization when using Packages

I tried to find a solution to my problem in several answers posted in MSE but due to lack of my knowledge on parallelization territory, I couldn't figure out solution to my problem. I have a big code ...
5
votes
2answers
135 views

How to speed up Integration of interpolation function?

I have a list of data and interpolate it to a function. Then I need to done something integration with the interpolation function. But I found the speed is unacceptable slow. My data is here (a ...
0
votes
0answers
12 views

Defining a differential form in the 'Exterior Differential Calculus' package

I want to define the following differential form $$ F = H^{01} dx \wedge dt $$ However when I type F = H^01 d[x]\[Wedge]d[t] I get the error 'Recursion depth ...
-1
votes
1answer
85 views

Solve an equation in several variables

I'm new to Mathematica, so my question may be quite trivial, but I need help. Let $F(x,y,a,b,c,d):\mathbb{R}^6\rightarrow \mathbb{R}$ be a function in 6 variables. I need to find conditions for $x$ ...
3
votes
1answer
60 views

Add delay to the final frame of a GIF?

I'd like for there to be a pause during the final frame in my animation, before it loops. Here's some tweekable starter code: ...
2
votes
0answers
47 views

Where does a package have to be loaded?

I'm trying to solve a very tricky bug in my program. It's tricky because it seems to be not working intermittently, and mostly not working when running with large data sets. The code itself is kind of ...
0
votes
0answers
47 views

Want all numeric output to be displayed in a base other than 10 [on hold]

Is it possible to set all calculations to use a base other than 10 by default?
1
vote
0answers
30 views

`QPochhammer` function simplification?

Consider the function which in Mathematica is denoted as QPochhammer[a,q,n], and its infinite product cousine: which in Mathematica reads ...
0
votes
0answers
32 views

Parallelization or other speed-up of the algebraic evaluation of Eigensystem

I am calculating the eigen system of a 16 x 16 matrix HCF[B02, B04 …] of 8 variables in it. The matrix is Hermitian and has many 0 elements and only a few ...
5
votes
2answers
96 views

Threading sublists on list

Suppose I have a list of the form: list = {a, b, {c, d}, f, {g, h}} i.e. an element of the list could be another list. I want to 'thread' each element of the ...
0
votes
0answers
22 views

Savgol Filter Smoothing [on hold]

How can I improve my savgol filter? I have it currently set at a window length of 5, and a polynomial order of 2, but I want to increase the smoothing ability. Is there any way that I can do so?
1
vote
0answers
24 views

Why would killing the kernel defreeze/unhang the front end?

My Mathematica front end will freeze occasionally for unreproducible reasons. This seems mostly associated with long (> 1 hour) computations, although not exclusively. If I click on the Mathematica ...
0
votes
1answer
42 views

Manipulation of imported Datafile

Since I am solving a differential equation in a for loop with NDSolve ...
6
votes
3answers
204 views

How to speed up computation of medoids?

I need to compute medoids (based on SquaredEuclideanDistance for large lists of k-vectors (k = 14). My implementations so far are impractically slow. Here is a ...
0
votes
1answer
34 views

Solving a polynomial where variables are constrained to take only some values

I want to find out which combinations of 1's and 0's would make this kind of equation be null: ...
1
vote
0answers
32 views

Prevent infinite product from trying to evaluate?

Consider an expression involving several infinite and non-infinite products, like ...
1
vote
1answer
52 views

How can I access a variable using Position?

I want to define a vector PosVec[a, b] dependent on the variables a and b of a matrix ...
1
vote
1answer
58 views

How to integrate with integer parameter in Mathematica?

I would like to integrate the following expression with N being Integer ...
1
vote
2answers
55 views

Plotting vectors and curves on a 3D surface

I am having trouble plotting curves on surfaces. I have searched for similar examples and I have tried both Plot3D and ParametricPlot3D commands and experimented with Epilog and MeshFunctions (et.c) ...
2
votes
1answer
73 views

Apply function to a part of a list [on hold]

Let's say I have some data: data={{a1,b1},{a2,b2},{a3,b3},{a4,b4},...} and I would like to apply the function: f1[x_]=x*5 to ...
0
votes
0answers
28 views

Performing numerical derivative after numerical integration

First of all, I am sorry to repeat a question which is similar to the closed question, "Numerical Derivative after numerical integration". I could not understand the solution introduced in the link. ...
2
votes
2answers
39 views

ListPlot of a complex data file

Here are some sample data: ...
3
votes
1answer
42 views

How can I plot a “slice” of the mesh for a 3D plot?

I'm using NDSolveValue to solve the Laplacian equation for this geometry: I want to view the mesh that NDSolveValue is using, so I do the following: ...
0
votes
2answers
52 views

How to solve polynomial equation using Mathematica? [on hold]

Solve for $x$ the following equation. $$(ax+b)(cx+d)=(cx+f)(ax+g)$$ Where $a,\,b,\,c,\,d,\,f,\,g$ are constants.
0
votes
0answers
15 views

seach combinaisons of terms that equals a sum within a sequencial ordered linear values? [on hold]

subset size k = 2 (can be > 2) Sum to find = 11 sequence : 1,2,3,4,5,6,7,8,9,10.. n => result of k-size [1,11] [2,9] [3,7] ....
2
votes
2answers
68 views

BarLegend problem when rescaling color of multiple vectorplot

I want to make multiple vector plot at same color scale with same BarLegend. Similar posts are (1), (2) I made a minimal example to show the problem I encountered ...
0
votes
1answer
56 views

Missing curves in a plot [on hold]

I am trying to plot multiple curves for a particular parameter in a function S1, where the only variable is t and the rest are ...
1
vote
1answer
106 views

Conjugate[a/b + c/d]

Trying to obtain the result of Conjugate[a/b+c/d] only gives the same result. As such, I use Refine as: ...
0
votes
0answers
40 views

The function I defined is not giving any output [on hold]

Could anyone tell me why the function I have defined is not giving any output? When I run it, gen is not showing any output. Thanks! ...
7
votes
3answers
409 views

Plot independent 2D graphs on walls of 3D Plot

Sorry, I know a lot of similar questions have been asked before, but I just can't find one that exactly describes my problem. How can I make the according 2D (marginal distribution) graphs appear on ...
1
vote
2answers
70 views

FindRoot with Grad

I want to find a numeric solution using Grad. With Solve, I get ...
5
votes
1answer
73 views

getWSLINK documentation vs reality

The example in the documentation for getWSLINK says WSLINK link = libData->getWSLINK(libData); Compiling ...
1
vote
0answers
40 views

Compute second functional derivative with VariationalD?

I have problems to compute the second functional derivative of a general function. The following lines generate the first derivative: ...
5
votes
0answers
92 views

Wrong limit: Limit[(1 + (-1)^n/n)^n, n -> Infinity]=1 (Mathematica 10.4 and W-Alpha)

Since $(1-\frac{1}{n})^n\to 1/e$ and $(1+1/n)^n\to e$, the sequence $(1+\frac{(-1)^n}{n})^n$ has no limit as $n\to\infty$, but has limits for odds and even numbers. If $n$ were taken to be real, there ...
4
votes
1answer
69 views

3DPlot Rendering Artefacts (z-fighting)

I am trying to render a matrix as a depth map: ...
1
vote
0answers
81 views

Wave equation PDE with changing boundary condition

This is my first post here, normally with mathematica I will solve out the PDE using eigen function expansion or separation of variables and then model the solution in mathematica. However this time I ...
0
votes
1answer
69 views

Mapping over function's several parameters regions [on hold]

About this post: Mapping multiple parameters of a function to specific values I wonder if the parameters a and b have ranges ...
0
votes
2answers
67 views

Wrong numerical results from LegendreP

{Cos[Pi/180] // N, LegendreP[46, 0.9998476951563913`], LegendreP[46, Cos[Pi/180]] // N} give ...
9
votes
1answer
219 views

Vastly incorrect answers obtained by increasing WorkingPrecision with modified Bessel functions

Bug introduced in 7.0 or earlier and persisting through 10.4.1 This is a follow-up to this question regarding numerical instabilities occurring with modified Bessel functions. In trying to explore ...
1
vote
1answer
40 views

REAL Roots of a 2 variable Polynomial

I am looking to plot the real zeros of polynomials of two variables in Mathematica, but I have encountered an issue. To accomplish this task I have been using ContourPlot to plot the polynonial ...

15 30 50 per page