I want to use the partial marked red in the figure to write my own code. The code I want to write is like figure below.
But an error occurred.
How can I achieve my code? Thank you for your answer.
Welcome to the Julia forum!
Two remarks:
- Please do share code as text enclosed in triple backticks like ``` and not as screenshots.
- Please share a complete example, including the using statements and example input data.
This makes it much easier for others to reproduce your problem.
Also helpful: the output of:
versioninfo()
The main issue here is
julia> ∂
ERROR: UndefVarError: `∂` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
So you need to figure out where is the API ∂ from.
If you want to imitate some standard reference, you need to have a better understanding of it. (I have no idea where is the simplified-Chinese-Annotated code snippet from. It appears to be not self-contained.)
If you just want to know how to type it, the REPL help tells you:
help?> ∂
"∂" can be typed by \partial<tab>
This kind of tab completion is supported in the REPL and can also be configured in most modern editors.
But by default, ∂ doesn’t have any definition in Julia, and is just another possible identifier, like x or f. It is up to you to assign a meaning to it.


