Hello, I have to work on Mathematica for studies reasons but i'm not very familiar with it. I explain what we are trying to do with Mathematica: We want to calculate a hessian matrix but we want to keep the calculus theoretical as long as possible. So we have to determinate the size a the matrix : n and there is where my problems starts . I have some script written by a professor and we have to use them. Here is his instruction : Run the Mathematica script double_chain.m with the parameter n, for example in the terminal like this:
<path-to-Mathematica>/WolframKernel -nopromt -run <<double_chain.m" n
So what i understand is to run the script from the command in windows but it doesn't work, Mathematica does not find my file. Moreover the first lines of the script are :
input=$CommandLine;
Print["n="<>input[[5]]]
n=ToExpression[input[[5]]];
So I then tried to replace "$CommandLine" by pretty much everything that makes sens but nothing works.
When i cancel the first 2 lanes and put a number after n=, the program does give me a satisfying result. So my problem is to enter this "n parameter". Thank you for your help.