(rows: number[][])
| 1844 | const result = ce.expr(['Norm', ['Tuple', -3, 4], 1]).evaluate(); |
| 1845 | expect(result.toString()).toMatchInlineSnapshot(`7`); |
| 1846 | }); |
| 1847 | |
| 1848 | it('should compute the L-infinity norm of a Tuple', () => { |
| 1849 | // max(|-3|, |4|) = 4 |
| 1850 | const result = ce.expr(['Norm', ['Tuple', -3, 4], 'Infinity']).evaluate(); |
| 1851 | expect(result.toString()).toMatchInlineSnapshot(`4`); |
| 1852 | }); |
no test coverage detected