file examples/libMathematicaTest.m

[No description available]

Attributes

Name
() ::Package() ::Section() Dummy() author(*) t dat)[var_]CalculateSquare
CalculateSum[var1_, var2_]pad0
Var2
PrintVar[]pad1
PrintVarorVar2[check_]pad2
PrintVarorVar2[check_]Var
VarEqualVar2[]pad3
VarEqualVar2[]<>[var]ToString
VoidTest[]pad4
ExtractElement[list_, i_]pad5
ExtractElement[list_, i_][var_]func

Attributes Documentation

variable CalculateSquare

(*) ::Package(*) ::Section(*) Dummy(*) author(*) t dat)[var_] CalculateSquare;

variable pad0

CalculateSum[var1_, var2_] __pad0__;

variable Var2

Var2 =2.5;

variable pad1

PrintVar[] __pad1__;

variable pad2

PrintVarorVar2[check_] __pad2__;

variable Var

PrintVarorVar2[check_] Var;

variable pad3

VarEqualVar2[] __pad3__;

variable ToString

VarEqualVar2[]<>[var] ToString;

variable pad4

VoidTest[] __pad4__;

variable pad5

ExtractElement[list_, i_] __pad5__;

variable func

ExtractElement[list_, i_][var_] func {i,Length[list]}]


\[Delta]var = 75;

Source code

(* ::Package:: *)

(* ::Section:: *)
(* Dummy Mathematica package for testing *)


(* \author Tomas Gonzalo *)
(*         t.e.gonzalo@fys.uio.no *)
(* \date 2016 Sept *)



CalculateSquare[var_] := var^2;


CalculateSum[var1_,var2_]:=var1+var2


Var=42;


Var2=2.5;


PrintVar[]:=Var;


PrintVarorVar2[check_]:=If[check,Var,Var2];


VarEqualVar2[]:=Var==Var2


StringTest[var_]:="This is not a test, "<>ToString[var];


VoidTest[]:=Var=Var+1;


ExtractElement[list_,i_]:=list[[i]]


SquareList[list_]:=Table[list[[i]]^2,{i,Length[list]}]


\[Delta]var = 75;


\[CapitalGamma]func[var_] := var + 2;

Updated on 2024-07-18 at 13:53:35 +0000