Skip to main content

Matrix

During my AP Computer Science class, I implemented a matrix using arrays.

The implementation includes constructors that make a default matrix of 10 by 10 or a matrix in the size of the user's choice initialized by random numbers.

Method of the implementation allow the user to make an identity matrix, change all elements with random numbers, or change all elements with console inputs.

Users are able to perform the following operations: add, subtract, or multiply two matrices, check if two matrices are the same, perform row operations, and do gaussian eliminations and back substitution.

There are also methods implemented to print a matrix in an easy to read form.

https://github.com/hedgehog412/apcom/tree/master/Matrix

Comments

Popular posts from this blog

Frankenstein reimagined

*This was written as a creative writing assignment on June 18, 2018 for Ms. Seuk's British literature class. While attempting to imitate Mary Shelley's voice as closely as possible, I wrote what would have happened if Frankenstein actually created the mate for his monster instead of destroying it. I sat at my desk, blindly staring at the violent storm ripping at the windows. The thunder was roaring and the wind was howling as if to chastise me. Rain pelted the windows, ready to break in. A crack of lightening illuminated the room, only to be followed by impenetrable darkness seconds later. The lightening brought back memories I was trying to avoid. The lightening was not unlike the one that struck earlier in the night. With that crack of lightening, another filthy fiend opened its eyes. As promised, the monster took its female away out of my sight. It was now over. The monster and its partner were going to go far away, unable to harm anyone anymore. But disgust and agony s...

A Thorough Examination of Lady Macbeth

***This essay was written on April 2, 2018 for Ms. Seuk's British Literature class Lady Macbeth is the character who shows the most drastic change in the play  Macbeth .From a devious criminal mastermind to a sleepwalking suicide victim, she is the epitome of a guilt-ridden character. Although she is only the wife of the main character in his namesake play , Lady Macbeth and her evolution throughout the play plays a significant role in Macbeth . In the beginning of the play, she is full of greed and would do anything to satisfy her desires. Immediately after reading the letter that alerts her of the prophecy, she says  “Yet do I fear fthy nature, It is too full o’th’milk of human kindness To catch the nearest way…Hie thee hither, That I may pour my spirits in thine ear and chatise with the valour of my toungue All that impedes thee from the golden round” (1.5.15-27) Lady Macbeth starts to plan how to make Macbeth king, immediately jumping to the conclusion that ...

Essay Feedback: Relay essay

This essay is an essay that I will never be able to forget. I read hundreds of essays each year and this one definitly stands out. You faild so horribly in defending for your side that you were extremely successful in advocating for the opposition. With the essay prompt: Should we allow female students to wear pants?, you chose to write an essay about why we shouldn't allow it. However, because of the many hypocrisites and logical errors in your essay, one can only agree to allow the change in uniform after reading your essay. But will the school administrators agree? I don't know. No essay will probably persuade them anyways. Maybe some pressure from Gangwon's department of educatin might help, or some parent's complaint. Personally, I don't see why girls wearing pants is not good looking-who made up that nonsense? It's merely a stereotype of gender that lies within the society. Like how Scottich men wear kilts, men wearing skirts should also not be so special...