# 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.

69 questions
Filter by
Sorted by
Tagged with
64 views

### Strange error not found in a monte carlo code, Infinite expression 1/0 encountered

I've been trying to code a kinetic monte carlo simulation for a dimerization reaction, 2M ---> D. However I have a kinetic Monte Carlo code for a first order decomposition reaction of AIBN (that's ...
35 views

131 views

### NonlinearModelFit inside Manipulate

I can't understand why this behavior with my code... I'm trying to visually adjust the best parameters to fit my model, everything is working fine, less the part of adjusting the model. ...
98 views

### Why this expression doesn't work?

I am trying to choose a function and then the parameters using Manipulate, but isn't working... ...
156 views

### A box structure with a depth exceeding the maximum allowed depth was encountered

I am trying to perform the task in Mark McClure's article Parametric L-Systems and borderline fractals. I have copied his opening code on the first three pages: ...
100 views

### Help with NDSolve for system of odes [closed]

Can someone please tell me what I am doing wrong? I am trying to solve a system of odes using NDSolve. The code I have written is as follows: ...
89 views

When I use variables, errors are encountered. But when I change the variables to constants, I don't have a problem, but I wonder why. ...
33 views

### How to get a full name function [duplicate]

I have some function in string format,and I can get it short name without context ...
437 views

### Label State Space Models converting ODEs

Say I have a set of differential equations not necessarily in first order form. I would like to build the corresponding state space model. When equations are many and long, it becomes difficult to ...
105 views

...
63 views

### Defining constants inside a script?

At the beginning of my script, I define a constant E by writing E:=2u+2uv, but then at the end of the script after running the final command, the result comes out with the form K/(2u+2uv). My question ...
174 views

638 views

### NDSolve: Indeterminate expression 0. ComplexInfinity encountered? [closed]

The following code give errors that I don't understand. Could you please suggest a method to solve these differential equations? ...
58 views

### Second order differential equation, with term from previous numerical solution

I have a second order differential equation, in terms of a term that was previously obtained from numerically solving another equation. Numerical solution of equation before 2nd order equation: <...
339 views

### Solving cubic equation with unknown coefficients

I am trying to solve a cubic equation with unknown coefficients (p and t), here is the code: ...
118 views

### My program to model exterior ballistics doesn't doesn't produce the plot I expect

Here is my program to model exterior ballistics. It doesn't doesn't produce the plot I expect. How can I fix it? ...
109 views

### Lagrange multipliers implementation (beginner question) [closed]

I am trying to write a code to find the minimum of $f(x,y) = (Mx + Ny) \,/\sqrt{M^2 x + N^2 y}$?, subject to the constraint $g(x,y)=x+y-1$. Also, $x,y>0$, and $M$ and $N$ are positive constants. ...
48 views

### Variable Definitions and Random Numbers [closed]

I have currently created the following matrix: m={{RandomReal[{0,1}],RandomReal[{0,1}]},{RandomReal[{0,1}],RandomReal[{0,1}]}} In other words, a $2 \times 2$ ...
{"ft_lang_label":"__label__en","ft_lang_prob":0.9040027,"math_prob":0.77990663,"size":12564,"snap":"2020-34-2020-40","text_gpt3_token_len":3242,"char_repetition_ratio":0.14363058,"word_repetition_ratio":0.018292682,"special_character_ratio":0.2575613,"punctuation_ratio":0.13486204,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9739591,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-08-15T03:18:18Z\",\"WARC-Record-ID\":\"<urn:uuid:eeb3c578-2c6e-4731-89f1-b8780fc6f335>\",\"Content-Length\":\"253942\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:395fd1f2-e7e5-4a41-be5b-2b1f99a73328>\",\"WARC-Concurrent-To\":\"<urn:uuid:4712b7ee-3c33-4a00-a5d1-ca1eeab3c50e>\",\"WARC-IP-Address\":\"151.101.129.69\",\"WARC-Target-URI\":\"https://mathematica.stackexchange.com/questions/tagged/broken-code\",\"WARC-Payload-Digest\":\"sha1:DXGLYALRFBGHWIGNKXZWDQXVKHI65P42\",\"WARC-Block-Digest\":\"sha1:SKODVOLIOHQ5X3XATWTELFGPXQE2SOVP\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-34/CC-MAIN-2020-34_segments_1596439740423.36_warc_CC-MAIN-20200815005453-20200815035453-00351.warc.gz\"}"}