wxMaxima
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
test_MatrixPower.cpp File Reference

A matrix power A^^n is marked as one: A^⟨n⟩ (GH #1005). More...

#include <wx/app.h>
#include <wx/bitmap.h>
#include <wx/dcmemory.h>
#include <wx/log.h>
#include "CellPointers.h"
#include "Configuration.h"
#include "MathParser.h"
#include "cells/Cell.h"
#include "cells/ExptCell.h"
#include "cells/GroupCell.h"
#include "cells/SubSupCell.h"
#include <catch2/catch.hpp>
Include dependency graph for test_MatrixPower.cpp:

Data Structures

class  TestApp
 

Functions

 SCENARIO ("A matrix power draws its exponent between angle brackets")
 
 SCENARIO ("A matrix power broken into lines reads A^^n")
 
 SCENARIO ("Exports say it is a matrix power")
 
 SCENARIO ("A matrix power survives saving, loading and copying")
 
 SCENARIO ("A matrix power of an indexed variable is marked, too")
 
 wxDECLARE_APP (TestApp)
 
int main (int argc, char **argv)
 

Detailed Description

A matrix power A^^n is marked as one: A^⟨n⟩ (GH #1005).

In Maxima A^n of a matrix is the elementwise power, so an A^^n drawn as a plain exponent looks exactly like a different result. Until this, the only place the difference survived was copy as text: the screen, LaTeX, MathML and RTF all showed A^n, and saving and reloading a .wxmx lost it entirely.

The maths is hand-written XML of the shape wxMathML.lisp emits, parsed by the real MathParser, so no Maxima is needed.