help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quickly check for differences in code and locate possible errors.


From: Hongyi Zhao
Subject: Quickly check for differences in code and locate possible errors.
Date: Tue, 28 Mar 2023 21:56:33 +0800

Hi here,

I've the following two lines of wolfram code written in two versions:

Version 1. This is the correct version:

getPGRotMat =getRotMat[If[MemberQ[RotMat[[1]]["CubiPrim"],
#],"CubiPrim","HexaPrim"],#]&;
Grid[Table[{PGinfo[[i,;;2]],{#\[RightArrow]getPGRotMat[#]} &
/@getPGElem[i]},{i,32}],Frame -> All]

Version 2. This is the wrong version:

getPGRotMat 
=getRotMat[If[MemberQ[RotMat[[1]]["CubiPrim"],#],"CubiPrim","HexaPrim"],#]&;
Grid[Table[{PGinfo[i,;;2],{#\[RightArrow]getPGRotMat[#]} &
/@getPGElem[i]},{i,3}],Frame \[RightArrow] All]

I would like to know whether it's possible to quickly check for
differences in code and locate possible errors with the help of Emacs.
Any tips will be appreciated.

Regards,
Zhao
-- 
Assoc. Prof. Hongsheng Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province



reply via email to

[Prev in Thread] Current Thread [Next in Thread]