Questions tagged [broken-code]
Use this tag only if you did your research and you still don't know why your syntactically correct code does not work.
127 questions
6
votes
3
answers
511
views
Is ContainsAny implemented incorrectly? (Version 14.2.0)
I was using ContainsAny in the Select function when I noticed that some of the relevant records in my dataset were missing. ...
0
votes
0
answers
83
views
How to tailor the input of a predefined network to match my own data?
I'd like to use the ResNet V2 on my own data, but my data is not image. Let's say my data is a list of numbers or a time sequence. Therefore, I decided to revise the ResNet V2 a little bit.
...
1
vote
0
answers
110
views
Solution of the system of Equations using iterative Varga's Algorithm?
I am working on research article with link https://www.sciencedirect.com/science/article/abs/pii/S0378475421004560
It contains dimensionless non-linear equations mentioned in article.
I am writing the ...
1
vote
1
answer
148
views
How to fix error in HAM (Homotopy Analysis Method) while running code for second order solution?
This code works well to generate first order solution but gives recursion error on generating second order solution. I think the error is causing due to computation of $f$ but don't know how to fix it....
2
votes
2
answers
121
views
Simple example of running one notebook from another [closed]
I have two notebook codes 'calculation.nb' and 'caller.nb'. The first code simply generates and prints a random number. The second code I want to use to call the first code a set number of times (say ...
1
vote
0
answers
71
views
Broken code from 14.0 to 14.1 [duplicate]
why the behavour of nlmf["ParameterTable"] has been changed from 14.0 to 14.1?
After a run of
...
1
vote
3
answers
180
views
How to only evaluate this function in the new variables after the derivative has been taken?
I have the following situation. I will first post the code and then explain what I'm trying to do and what is going wrong
...
1
vote
0
answers
75
views
Unsuccessful in parallelizing a string decomposition
I am categorizing a very large set of indexed strings that, due to size and complexity, takes long enough to desire to execute this via parallelization.
The below is a simplification, not ...
1
vote
2
answers
246
views
How to compute this limit in a shorter time?
Suppose we want to compute the following limit:
\begin{equation}
\lim_{\varepsilon\to 0}\lim_{r\to\infty}\frac{\lfloor 1.0101\left(\lceil 6r^2 \pi/{\varepsilon}\rceil-1\right)+1\rfloor}{ \lceil 6r^2 \...
3
votes
2
answers
352
views
Problem with illustrating pathways
This is slightly different from this and this question. We are focusing on an illustration of all pathways from a specific sample.
Suppose we have the following sample:
$$\small{\mathcal{S}=\left\{(-1....
0
votes
1
answer
133
views
Help defining all pathways of a sample from the same start-point
This is slightly different from this question. We are focusing on finding all pathways of a sample rather than partitions of equal area:
Suppose we have the following sample:
$$\small{\mathcal{S}=\...
0
votes
0
answers
106
views
Why am I getting this error? Set::setraw: Cannot assign to raw object 73
Here is my code. I tried all modifications to this code but I'm not able to resolve the problem. Can anyone tell me why am I getting this error?
...
0
votes
0
answers
146
views
SoftmaxLayer with one-hot vectors
The quantum physics problem I am looking at is a rotated qubit. The setup involves a y-rotated qubit measured in the z-basis (hence spin-up and spin-down). This scenario typically includes modeling ...
1
vote
1
answer
174
views
Most efficient way of defining the following sets for every step $n$
For each $n\in\mathbb{N}$, how do we compute sets $A_n$ and $B_n$ below:
Let $A_1=[0,2/3)$. Let $B_1=(2/3,1]$.
If $A_n$ is a union of intervals, then for each interval cut out the
middle $1/2^{n+1}$ ...
0
votes
1
answer
141
views
Generate all commutators and anti-commutators up to a certain order of a list of matrices
I am given a list of matrices. At first order I want to evaluate the commutators and anti-commutators of all pairs in the list and return a new list that contains two lists: one containing all ...