Closed philchalmers closed 8 years ago
These seem to be useful additions. We hadn't thought about latex output, but that is a nice extension.
I thought so as well. There probably could be another function written to do this more generally (akin to xtable::xtableMatharray()
) which also accepts a fraction
argument. Unfortunately, xtable
drops the fractions when generating the TeX code and reverts to decimals, so it has to be coerced to a character object first. Would be happy to write a wrapper like this.
Hi Phil,
Thanks for your interest in this -- it's helpful because of course I originally wrote gaussianElimination() to be transparent.
Best, John
-----Original Message----- From: Phil Chalmers [mailto:notifications@github.com] Sent: March 14, 2016 12:09 PM To: friendly/matlib matlib@noreply.github.com Subject: Re: [matlib] A assortment of additions (#5)
I thought so as well. There probably could be another function written to do this more generally (akin to xtable::xtableMatharray()) which also accepts a fraction argument. Unfortunately, xtable drops the fractions when generating the TeX code and reverts to decimals, so it has to be coerced to a character object first. Would be happy to write a wrapper like this.
— Reply to this email directly or view it on GitHub https://github.com/friendly/matlib/pull/5#issuecomment-196387410 . https://github.com/notifications/beacon/ANcgQghtBtEacNLGlBjkit10XFIcon 7sks5ptYgYgaJpZM4Hvp8W.gif
Let's wait until John & I update our versions from these commits to the repo and do some testing. We are happy for your participation in this project.
Hi Michael,
These are just some additions that I made to the package, nothing ground-breaking. I've kept the commits distinct so you can cherry pick/criticise them as you please. Here's what I've added:
gsorth
verbose
output fromgaussianElimination
(e.g., returns invisible object rather than printing the same object 2x), prints the initial form, and adds a newline space to better distinguish stepslatex
logical argument togaussianElimination
andshowEqn
to construct output suitable for LaTeX documentsLet me know if you have any questions. Cheers.