RayArias / HelloWorld

1 stars 0 forks source link

General To-Do Personal Coding List for Projects without a Repository Here. #2

Open RayArias opened 2 years ago

RayArias commented 2 years ago

Comments here represent a public personal (non-institutional) coding To-Do list for Projects that do not have a repository.

RayArias commented 2 years ago

Kibibit/Kybbles & Kbits Virtual Processor and Machine project revived from 2015 and renamed Kovfefe Virtual Processor and Machine. Code is in C++ and based on C++ objects. Currently reworking documentation on design of the Kovfefe Unit Object (kuo), containing the Great Data Union (gdu) consisting of 1024 bits configurable in many different ways, and the Status and Control Union (scu), or StatCon, consisting of 32 bits for arithmetic, reading status of kuo, and datatyping info held in the gdu, etc. There are even 10 bits that are left unused that the user can make use of.

This entry and other future entries regarding any aspect of the Kovfefe project may be moved to a repository for this project as soon as one is established in the Trashcan NFP account.

RayArias commented 2 years ago

I put the Quadratic Formula into my Java version of HelloWorld for fun. I had to learn the ANSI codes that work in Android to clear the screen. (If you compile this and run it in Windows, Mac, Linux, ChromeOS, Unix, iOS, or any other operating system, let me know how it works for you. Thanks!) Also, it appears that when I open an input channel to the console, use it, close it, reopen the channel using a different object, and attempt to use it again, there is always an error. Therefore, I have removed the lines of code that close the input channel initially and reopen it as another object. Then I noticed that, because the same object must be used to press ENTER and to type in the coefficients for a quadratic equation later. Therefore, I have arranged to open the input channel and blindread a String from the main method and then pass the object to the static QuadraticEquation.input(Scanner) method.

The actual math and finding solutions was simple enough and handled quite quickly. However, the part that took a long time to test and debug was how to display the quadratic equation intended by the user as well as displaying the solutions in a mathematically concise, and yet still correct, way.

I am considering launching a freetime project of a program that applies the cubic, and/or even the quartic, formula to find solutions for linear, quadratic, cubic, and/or quartic equations. (There is no general formula to find solutions to 5th degree and higher polynomials that can be expressed algebraically. However, I may educate myself to see if making programs to calculate and display such solutions is possible and practical, so I can explore this as a route for future freetime development.) Once I have one of thrse programs working, I may embed it into a webpage so users can solve their own 1st to 3rd (or even 4th) degree equations.