unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Quickly check for differences in code and locate possible errors.
@ 2023-03-28 13:56 Hongyi Zhao
  2023-03-28 14:40 ` gebser
  2023-03-28 15:03 ` Gregory Heytings
  0 siblings, 2 replies; 5+ messages in thread
From: Hongyi Zhao @ 2023-03-28 13:56 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-03-29  8:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-28 13:56 Quickly check for differences in code and locate possible errors Hongyi Zhao
2023-03-28 14:40 ` gebser
2023-03-28 15:03 ` Gregory Heytings
2023-03-29  2:04   ` Hongyi Zhao
2023-03-29  8:34     ` Gregory Heytings

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).