Equation or not?
|
02-24-2017, 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 - 02-24-2017 02:50 PM
RE: Equation or not? - Han - 02-24-2017, 03:59 PM
RE: Equation or not? - DrD - 02-24-2017, 04:22 PM
RE: Equation or not? - Han - 02-24-2017, 04:37 PM
RE: Equation or not? - Didier Lachieze - 02-24-2017, 08:02 PM
RE: Equation or not? - EdDereDdE - 02-24-2017, 11:34 PM
RE: Equation or not? - Didier Lachieze - 02-25-2017, 09:31 AM
RE: Equation or not? - DrD - 02-25-2017, 11:03 AM
RE: Equation or not? - Arno K - 02-28-2017, 10:32 PM
RE: Equation or not? - Han - 03-01-2017, 12:23 AM
RE: Equation or not? - Arno K - 03-01-2017, 08:01 AM
RE: Equation or not? - Han - 03-01-2017, 04:04 PM
RE: Equation or not? - Arno K - 03-01-2017, 07:15 PM
RE: Equation or not? - Han - 03-01-2017, 07:22 PM
RE: Equation or not? - parisse - 03-02-2017, 07:35 AM
RE: Equation or not? - DrD - 03-02-2017, 12:31 PM
|
User(s) browsing this thread: 3 Guest(s)