Display a linear combination: Difference between revisions

Content added Content deleted
Line 37: Line 37:


=={{header|C}}==
=={{header|C}}==
Accepts vector coefficients from the command line, prints usage syntax if invoked with no arguments. This implementation can handle floating point values but displays integer values as integers. All test case results shown with invocation.
Accepts vector coefficients from the command line, prints usage syntax if invoked with no arguments. This implementation can handle floating point values but displays integer values as integers. All test case results shown with invocation. A multiplication sign is not shown between a coefficient and the unit vector when a vector is written out by hand ( i.e. human readable) and is thus not shown here as well.
<lang C>
<lang C>
/*Abhishek Ghosh, 24th September 2017*/
/*Abhishek Ghosh, 24th September 2017*/