Equation or not?

02242017, 02:50 PM
Post: #1




Equation or not?
I would like to find a simple way to test whether a provided sentence is an equation or an inequality. Specifically, I need to extract only the equations from a list of relations provided as string objects.
For example: L0:={"x+y=1","2x+2y<2","3x+3y<=3","4x+4y≤4","5x+5y>5","6x+6y>=6","7x+7y≥7","8x+8y<>8",9x+9y≠9"}; L1:={"=","<","<=","≤",">",">=","≥","<>","≠"}; L0(1) is a desired sentence. (It may be one among many, or located elsewhere in any given list, etc.). L1 is a list of the relational operators that might show up in a provided list, so ONLY sentences that contain a stand alone "=" must be detected. Any thoughts on a reasonably concise way to do this? 

« Next Oldest  Next Newest »

Messages In This Thread 
Equation or not?  DrD  02242017 02:50 PM
RE: Equation or not?  Han  02242017, 03:59 PM
RE: Equation or not?  DrD  02242017, 04:22 PM
RE: Equation or not?  Han  02242017, 04:37 PM
RE: Equation or not?  Didier Lachieze  02242017, 08:02 PM
RE: Equation or not?  EdDereDdE  02242017, 11:34 PM
RE: Equation or not?  Didier Lachieze  02252017, 09:31 AM
RE: Equation or not?  DrD  02252017, 11:03 AM
RE: Equation or not?  Arno K  02282017, 10:32 PM
RE: Equation or not?  Han  03012017, 12:23 AM
RE: Equation or not?  Arno K  03012017, 08:01 AM
RE: Equation or not?  Han  03012017, 04:04 PM
RE: Equation or not?  Arno K  03012017, 07:15 PM
RE: Equation or not?  Han  03012017, 07:22 PM
RE: Equation or not?  parisse  03022017, 07:35 AM
RE: Equation or not?  DrD  03022017, 12:31 PM

User(s) browsing this thread: 1 Guest(s)