SELECT [wct].[JACOBIAN] (
<@Func, nvarchar(max),>
,<@VarNames, nvarchar(4000),>
,<@X, nvarchar(4000),>
,<@H, float,>)
DECLARE @r as float = 2.5
DECLARE @theta as float = 7*PI()/16
DECLARE @phi as float = 63*PI()/128
DECLARE @func as varchar(max) = '
SELECT
@r*SIN(@theta)*COS(@Phi) as x
,@r*SIN(@theta)*SIN(@Phi) as y
,@r*COS(@theta) as z'
DECLARE @varnames as varchar(max) = '@r,@theta,@phi'
DECLARE @X as varchar(max) = wct.MATRIX2STRING_q('SELECT 2.5, 7*PI()/16,63*PI()/128')
DECLARE @h as float = wct.POWER(2,-20)
SELECT
*
FROM
wct.MATRIX(
wct.JACOBIAN(
@func
,@varnames
,@X
,@h
)
)
This produces the following result.