This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
row, column = (3,3) | |
print(f"Minor / Cofactor calculator for {row} x {column} matrix\nSeparate your elements with a whitespace\neg. Row 1: a b c [ENTER]\n") | |
matrix = [] | |
for i in range(row): | |
matrow = [int(x) for x in input(f"Row {i+1}: ").split(" ")] | |
if len(matrow) != column: | |
print("Invalid row, try again") | |
i -= 1 | |
continue | |
matrix.append(matrow) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sympy import * | |
x= symbols('x') | |
# SETTINGS | |
# f -> function to be evaulated, in terms of x | |
# x0 -> starting value | |
# repeat -> amount of iterations | |
# precision -> floating point rounding. | |
f = x**2 - 168 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <stdexcept> | |
#include <initializer_list> | |
#include <set> | |
using namespace std; | |
class Matrix{ | |
int row; | |
int col; | |
double *ptr; |