Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #471456
| From | "Tim Williams" <tmoranwms@gmail.com> |
|---|---|
| Newsgroups | sci.electronics.design |
| Subject | Re: Ping Aylward, Puzzling Error Message |
| Date | 2017-08-01 14:50 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <olqlpt$obt$1@dont-email.me> (permalink) |
| References | <aejunc1toj4u6uon2d1fgguqhfq2sh0367@4ax.com> <da9f5f18-fb9c-4cb7-90e3-93de35256d11@googlegroups.com> <igsunc9r6imp0fp9a8a2mfs8mnn13kaeat@4ax.com> <0ituncpvoo62rof7cuu9eaj8694dtj0lnv@4ax.com> <m61vncl93vtfn9lbun3m9d7i4qq5790ers@4ax.com> |
"John Larkin" <jjlarkin@highland_snip_technology.com> wrote in message news:m61vncl93vtfn9lbun3m9d7i4qq5790ers@4ax.com... >> if (W + xW -2*DWC <=0) > > In some contexts > > DWC <=0 > > is a logical expression that on its own evaluates to 1 or 0. > > The expression needs more parentheses to be unambiguous. John, 1. In most languages (including BASIC, C and so on), arithmetic operators take precedence over conditional operators. The statement is unambiguous. You claim to know C, and write in BASIC, so you /must/ be aware of this. 2. Even in a language without OoO, the result is not ambiguous, just different: (((W + xW - 2) * DWC) <= 0. The conditional operation is even identical, only the arithmetic changed (because multiplication was not evaluated first, as PEMDAS requires). 3. This has nothing to do with the question, which was asking which SPICE parameter was wrong. (The OP figured it out on his own.) Tim -- Seven Transistor Labs, LLC Electrical Engineering Consultation and Contract Design Website: http://seventransistorlabs.com
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Ping Aylward, Puzzling Error Message Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2017-07-31 08:36 -0700
Re: Ping Aylward, Puzzling Error Message Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-31 10:38 -0700
Re: Ping Aylward, Puzzling Error Message Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2017-07-31 11:25 -0700
Re: Ping Aylward, Puzzling Error Message mhx@iae.nl - 2017-07-31 10:51 -0700
Re: Ping Aylward, Puzzling Error Message John Larkin <jjlarkin@highland_snip_technology.com> - 2017-07-31 11:08 -0700
Re: Ping Aylward, Puzzling Error Message Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2017-07-31 11:28 -0700
Re: Ping Aylward, Puzzling Error Message John Larkin <jjlarkin@highland_snip_technology.com> - 2017-07-31 12:33 -0700
Re: Ping Aylward, Puzzling Error Message Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2017-07-31 13:28 -0700
Re: Ping Aylward, Puzzling Error Message John Larkin <jjlarkin@highland_snip_technology.com> - 2017-07-31 13:39 -0700
Re: Ping Aylward, Puzzling Error Message mhx@iae.nl - 2017-07-31 14:37 -0700
Re: Ping Aylward, Puzzling Error Message bitrex <bitrex@de.lete.earthlink.net> - 2017-07-31 18:59 -0400
Re: Ping Aylward, Puzzling Error Message Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2017-07-31 16:07 -0700
Re: Ping Aylward, Puzzling Error Message John Larkin <jjlarkin@highland_snip_technology.com> - 2017-07-31 17:31 -0700
Re: Ping Aylward, Puzzling Error Message bitrex <bitrex@de.lete.earthlink.net> - 2017-07-31 18:45 -0400
Re: Ping Aylward, Puzzling Error Message John Larkin <jjlarkin@highland_snip_technology.com> - 2017-07-31 17:32 -0700
Re: Ping Aylward, Puzzling Error Message Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2017-07-31 17:49 -0700
Re: Ping Aylward, Puzzling Error Message John Larkin <jjlarkin@highland_snip_technology.com> - 2017-07-31 18:07 -0700
Re: Ping Aylward, Puzzling Error Message Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2017-07-31 18:17 -0700
Re: Ping Aylward, Puzzling Error Message "Tim Williams" <tmoranwms@gmail.com> - 2017-08-01 14:50 -0500
Re: Ping Aylward, Puzzling Error Message Jasen Betts <jasen@xnet.co.nz> - 2017-08-02 01:33 +0000
csiph-web