Skip to main content
improve formatting
Source Link
creidhne
  • 5.8k
  • 6
  • 25
  • 32

For example, I write a simple script in mathematicaMathematica like this:  x = 4; y = 5; x*y I. I want to get the output of x*y. I saved it as thean .m file. But But when I opened .mthe file, it showed

(* ::InputPackage:: *)
(*x=4;y=5;x*y*)

Why there* is::Input:: (***)?
If there is (***x=4;y=5;x*y*) in the code, the inner script will not run, right?

Why there is (**)? If there is (**) in the code, the inner script will not run, right?

For example, I write a simple script in mathematica like this: x = 4; y = 5; x*y I want to get the output of x*y. I saved it as the .m file. But when I opened .m file, it showed

(* ::Input:: *)
(*x=4;y=5;x*y*)

Why there is (**)?
If there is (**) in the code, the inner script will not run, right?

For example, I write a simple script in Mathematica like this:  x = 4; y = 5; x*y. I want to get the output of x*y. I saved it as an .m file. But when I opened the file, it showed

(* ::Package:: *)
(* ::Input:: *)
(*x=4;y=5;x*y*)

Why there is (**)? If there is (**) in the code, the inner script will not run, right?

Source Link

how to generate .m file in mathematica without (**); Run the mathematica script on HPC

For example, I write a simple script in mathematica like this: x = 4; y = 5; x*y I want to get the output of x*y. I saved it as the .m file. But when I opened .m file, it showed

(* ::Input:: *)
(*x=4;y=5;x*y*)

Why there is (**)?
If there is (**) in the code, the inner script will not run, right?