Module:TA4TK:myTest: Difference between revisions

From MaRDI portal
Koprucki (talk | contribs)
No edit summary
Koprucki (talk | contribs)
No edit summary
Line 12: Line 12:
p.schroedinger = function ( frame )
p.schroedinger = function ( frame )


local str = "\\mathrm i\\hbar \frac{d}{dt} |\\Psi(t)\rangle = \\hat{H} |\\Psi(t)\rangle"
local str = "<math>\\mathrm i\\hbar \frac{d}{dt} |\\Psi(t)\rangle = \\hat{H} |\\Psi(t)\rangle</math>"
return str
return str

Revision as of 10:13, 17 December 2024

Documentation for this module may be created at Module:TA4TK:myTest/doc

-- Main table to hold all functions

local p = {}

p.hello = function( frame )
	
	local str = "Hello World!"
	
	return str
end

p.schroedinger = function ( frame )

	local str = "<math>\\mathrm i\\hbar \frac{d}{dt} |\\Psi(t)\rangle = \\hat{H} |\\Psi(t)\rangle</math>"
	
	return str
end

return p