You seem to have forgotten to include your question. Also maybe can you put your code in code blocks? It’s not legible and the * get parsed as markdown italics
With “question” I don’t mean your assignment. I mean what are you expecting from your code and what happens instead. What exactly do you need help on? Few people will solve the entire exercise for you. Maybe using a few words to explain what you are trying to do doesn’t hurt either…
It looks like you might have overlooked the paragraph right underneath the due date?
This forum doesn’t have an official homework policy, but it’s unlikely that someone will solve this for you. You might have more luck with a very targeted question if you run into a specific error, and post reproducible code.
Regarding Homework Policy, there was an attempt to establish one, but it fizzled out a while ago. Maybe we should revive that effort.
I don’t think it’s been “formalized” in the way the “Make it easier to help you” post has been.
That said, this post feels to be more in the category of “please solve this for me” instead of a clear “this is what’s going wrong, can you help me?” or “I expected this, but that happens instead, why?”…
@raman_kumar I don’t think there are any magicians among us who can divine your thoughts. Please explain what your question is and where you are stuck.
And what are you trying to do? a(j) is a function call, is that what you’re after? Your error can be minimally reproduced by this:
julia> a(i) + b(j) = 0
ERROR: syntax: "a(i)" is not a valid function argument name around REPL[20]:1
Stacktrace:
[1] top-level scope
@ REPL[20]:1
Which tells you that when seeing a(i) on the left hand side of an equal sign, Julia expects you to define a function, but adding to function calls on the LHS is not valid syntax. What are you actually trying to do with this line?
In your code above you have plot(j, u(n, j)), rather than u[n, j] - which one is it? It appears that u is a 4x4 matrix, so u(n, j) won’t work because it tries to call a function u (that’s what round brackets do), while u[n, j] wouldn’t work because you define j = 1:100 and u doesn’t have 100 columns.
All indexing must be with square brackets. Parentheses are for function calls. Replace a(j), b(j), … with a[j], b[j], … in this line and the definitions above it.
I’m not sure that a, b etc are supposed to be containers being indexed rather than functions - in the loop above it just says a(j) = ... so maybe it’s supposed to define a function?
In any case @raman_kumar the error about invalid function argument names I have explained above, I think to make progress you should start by reading the Julia documentation to understand the basic concepts of working with functions, vectors, matrices, indexing etc. in Julia.