Jump to content

Display a linear combination: Difference between revisions

Line 37:
 
=={{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. 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>
/*Abhishek Ghosh, 24th September 2017*/
503

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.