Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pretty matrix output #17

Open
brinza888 opened this issue Apr 22, 2022 · 1 comment
Open

Add pretty matrix output #17

brinza888 opened this issue Apr 22, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@brinza888
Copy link
Owner

Include for this library Sympy or just standard fractions.
Also need to support roots.

@brinza888 brinza888 added the enhancement New feature or request label Apr 22, 2022
@brinza888
Copy link
Owner Author

Stage 1

Implement Matrix method .pretty(), that will be return string with formatted matrix.
Main idea on this stage is to make support of fractions. If matrix element can not be represented as decimal, .pretty() should represent this element as fraction (even improper).

Example:
Here is element [0][1] is fixed point decimal got by dividing 2 by 3 (2/3). Same with 1 divided by 3 (element [1][0])

10.5 0.666
0.333 0.256

To avoid fixed point values for periodic fractions we will use just fraction representation.

10.5 1/6
1/3 0.256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants