![]() Inside the menu, first create a title, and then add each menu option followed by a variable to be used as a label. The Menu( command is found by pressing prgm while in the code editor. Once the user inputs the vector values, we should clear the home screen and prompt which mathematical operation they want to perform. The ClrAllLists command can be found in the catalog ( 2nd → 0). Before doing so however, we should clear the home screen and erase all stored lists because we will be storing stuff there later. ![]() ![]() Use the Input command to collect the x, y, and z values for two vectors (u and v). To begin, we need to prompt the user for the values of the two vectors. You can name it whatever you like, but it’s wise to name it something related to its function. To create a program, press the prgm button and scroll over to NEW. Jump to Complete Code! Creating the Program This program can help save a lot of time on tests or homework in classes that deal with vectors such as physics or calculus. Continue reading for a walk-through of how to create the program yourself, or press the button below to jump directly to the finished code. Tired of calculating vector cross products or unit vectors by hand? This handy program allows you to input two vectors and add or subtract them, or take the dot or cross product, and receive the resulting vector along with its magnitude and unit vector (or just magnitude in the case of the dot product).
0 Comments
Leave a Reply. |