Let's take a test drive
The main goal of Math Editor is to make writing math reports as easy as possible. Let's investigate this claim together!
We use MathLive web component because it makes writing LaTeX effortless with its virtual keyboard.
This is a centered block of the famous quadratic formula:
x=2a−b±√b2−4ac
You can also inline it: f(x)={10∣x∣<1∣x∣>1 is called a gate function.
MathLive supports over 800 TeX commands. you can view the full list Here.
We use GeoGebra to graph functions of one or two variables.
We use Excalidraw to sketch hand-drawn like diagrams.
Here's some C# code
static class MatrixExtensions
{
// Extension methods
// read matrix from console
public static void ReadMatrix(this double[,] matrix)
{
int rows = matrix.GetLength(0);
int cols = matrix.GetLength(1);
// read matrix size from console if not provided
if (rows == 0 || cols == 0)
{
WriteLine("Enter number of rows");
int.TryParse(ReadLine(), out rows);
WriteLine("Enter number of columns");
int.TryParse(ReadLine(), out cols);
}
for (int i = 0; i < rows; i++)
{
for (int j = 0; j < cols; j++)
{
WriteLine("Enter element [{0}][{1}]", i + 1, j + 1);
double.TryParse(ReadLine(), out matrix[i, j]);
}
}
}
// print matrix to console
public static void PrintMatrix(this double[,] matrix)
{
for (int i = 0; i < matrix.GetLength(0); i++)
{
for (int j = 0; j < matrix.GetLength(1); j++)
{
Write("{0,4}", matrix[i, j]);
}
WriteLine();
}
}
}
Lorem ipsum?
In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. Lorem ipsum may be used as a placeholder before final copy is available.