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

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

Re: Quickly check for differences in code and locate possible errors.


From: address@hidden
Subject: Re: Quickly check for differences in code and locate possible errors.
Date: Tue, 28 Mar 2023 10:40:37 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

On 3/28/23 9:56 AM, Hongyi Zhao wrote:
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

It's been a long time since I've compiled something in an emacs buffer, so I can't speak to locating code errors, and have no experience with wolfram. "C-h a diff ENTER" displays a few possibilities for finding differences.



reply via email to

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