Questions tagged [code-generation]
The code-generation tag has no summary.
92 questions
0
votes
0
answers
88
views
How to design code for solution of the system of Equations?
I am studying a research article of fluid mechanics with title ``Influence of mixed convection nanofluid flow over a rotating sphere in
the presence of diffusion of liquid hydrogen and ammonia''
The ...
3
votes
0
answers
75
views
Mathematica call CompiledFunction from Python with Listable and Parrallelization attributes
I have a CompiledFunction e.g. this:
...
1
vote
0
answers
65
views
Generator of limits of successions according to type of indeterminacy. Correct syntax
I am trying to make a limit generator with 3 columns, number of the exercise, the second column is the limit (perfectly written with n-->00), and the third column is the result of the limit.
I have ...
1
vote
0
answers
131
views
How can I write the code for an inverse integral transform?
How can I code any type of integral transform with its inverse integral transform in Mathematica which gives the correct results and properties? Below is the example for Elzaki transform:
...
0
votes
2
answers
178
views
How to find codewords from constraint equations? [closed]
I have edited this question to include more information about what algorithm I wish to use etc.
Say if I have a linear binary code with parity check matrix
$$H = \begin{bmatrix}
0 & 1 & 1 &...
0
votes
0
answers
99
views
Part specification error
I am doing a solved exercise shared here.
However, while running the code, I encountered an error on page-8, under the Dynamics section.
with error :
I think this error is due to the absence of ...
1
vote
2
answers
265
views
Number operator
Suppose CR is my creation operator and AR is my annihilation operator.
I have to show that ...
1
vote
1
answer
497
views
Stepped Infinite Square Well [closed]
Here is the link for making the above graph for the Stepped infinite square well.
The problem here is, all the eigenfunctions and energy eigenvalues are previously defined. Whereas, I want to use this ...
4
votes
1
answer
266
views
How to convert any string of code to an input cell?
This is a generalization of this question, which already has very nice answers.
Suppose str is a string of valid code, so that ...
2
votes
2
answers
374
views
How to generate input cells whose code is determined dynamically?
Following this post, I want to use code to generate an input cell with new code. However, unlike the linked post, I want my code to dynamically determine the new code to be printed in the input cell.
...
3
votes
1
answer
328
views
Convert boundary condition involving derivative to NeumannValue programmatically
As discussed in e.g.
what causes the error "The dependent variable in the boundary condition needs to be linear" when using NDSolve?
When FiniteElement ...
2
votes
1
answer
140
views
Activating part without resolving [[1]]
I'll try to make this question more clear in a little while. In the mean time, I'll ask directly the question which motivated it:
Latin Square from submatrix
Original Question
I want, for instance, ...
3
votes
1
answer
120
views
Have Button fire with both Kernel and FrontEnd
Here's some code which, when evaluated, types an expression in the cell below it:
...
1
vote
1
answer
245
views
How to use Through by default on numeric functions?
I've used the following code to simulate defining operations between functions:
...
0
votes
0
answers
110
views
How to formulate NDSolve[...] for a two-sector SIR model
The following Code aims to simulate the employment effects of a pandemic, drawing on the conventional SIR model. I extended the SIR model with two economic sectors (...