Skip to content

Commit

Permalink
Updated setup files
Browse files Browse the repository at this point in the history
  • Loading branch information
Proektsoftbg committed Oct 7, 2024
1 parent ec859c8 commit 961c5ba
Show file tree
Hide file tree
Showing 30 changed files with 74 additions and 988 deletions.
6 changes: 3 additions & 3 deletions Calcpad.Cli/Calcpad.Cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<Version>7.0.9</Version>
<Authors>Nedelcho Ganchovski</Authors>
<Company>Proektsoft EOOD</Company>
<PackageId>Calcpad</PackageId>
<Product>Calcpad</Product>
<AssemblyName>Calcpad</AssemblyName>
<PackageId>Cli</PackageId>
<Product>Cli</Product>
<AssemblyName>Cli</AssemblyName>
<StartupObject>Calcpad.Cli.Program</StartupObject>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,19 @@ b = [10; 20; 30]'- the right hand side vector
x = clsolve(A; b)'- the solution vector obtained by Cholesky decomposition
A*x'- check: multiplying the matrix by the solution vector should give the right hand side vector

'<p><b>Msolve</b>(<em>matrix</em>, <em>matrix</em>)</p><hr/>
A = [8; 6; -4|6; 12; -3|-4; -3; 9]'- creates a general coefficients matrix
B = join_cols([10; 20; 30]; [40; 50; 60])'- the right hand side matrix
X = msolve(A; B)'- the solution matrix obtained by LU (LDLT) decomposition
A*X'- check: multiplying the coefficients matrix by the solution matrix should give the right hand side matrix

'<p><b>Cmsolve</b>(<em>matrix</em>, <em>matrix</em>)</p><hr/>
A = copy([8; 6; -4|6; 12; -3|-4; -3; 9]; _
symmetric(3); 1; 1)'- creates a symmetric coefficients matrix
B = join_cols([10; 20; 30]; [40; 50; 60])'- the right hand side matrix
X = cmsolve(A; B)'- the solution matrix obtained by Cholesky decomposition
A*X'- check: multiplying the coefficients matrix by the solution matrix should give the right hand side matrix

#rad
'Trigonometric:<hr/>
x = [0; 30; 45|60; 90; 180]*(π/180)
Expand Down
3 changes: 3 additions & 0 deletions Calcpad.Cli/Syntax/Sublime/calcpad.sublime-completions
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"#end if",
"#equ",
"#for",
"#while",
"#global",
"#gra",
"#hide",
Expand Down Expand Up @@ -204,6 +205,7 @@
"cholesky",
"clsolve",
"cm",
"cmsolve",
"cofactor",
"col",
"column",
Expand Down Expand Up @@ -422,6 +424,7 @@
"mresize",
"ms",
"msearch",
"msolve",
"mΩ",
"m℧",
"nA",
Expand Down
4 changes: 2 additions & 2 deletions Calcpad.Cli/Syntax/Sublime/calcpad.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ contexts:
scope: punctuation.section.brackets.calcpad
- match: '[a-zA-Z]+[a-zA-Z0-9_]*\$'
scope: meta.string.calcpad
- match: '\b(sign|abs|mod|gcd|lcm|sin|cos|tan|csc|sec|cot|sinh|cosh|tanh|csch|sech|coth|asin|acos|atan|acsc|asec|acot|asinh|acosh|atanh|acsch|asech|acoth|ln|log|log_2|exp|sqr|sqrt|cbrt|round|floor|ceiling|trunc|re|im|phase|random|root|atan2|min|max|sum|sumsq|srss|average|product|mean|switch|take|line|spline|not|and|or|xor|timer|vector|len|size|fill|range|join|resize|first|last|slice|sort|rsort|order|revorder|reverse|extract|search|count|find|find_eq|find_ne|find_lt|find_gt|find_le|find_ge|lookup|Lokup_eq|Lookup_ne|Lookup_lt|Lookup_gt|Lookup_le|Lookup_ge|norm|norm_1|norm_2|norm_e|norm_i|norm_p|unit|dot|cross|matrix|identity|diagonal|column|utriang|ltriang|symmetric|vec2diag|dig2vec|vec2col|join_cols|join_rows|augment|stack|mfill|fill_row|fill_col|mresize|copy|add|n_rows|n_cols|row|col|extract_rows|extract_cols|submatrix|mnorm|mnorm_2|mnorm_e|mnorm_1|mnor_i|cond|cond_1|cond_2|cond_e|cond_i|det|rank|transp|trace|inverse|adj|cofactor|eigenvals|eigenvecs|eigen|lu|qr|svd|cholesky|lsolve|clsolve|hprod|fprod|kprod|sort_cols|rsort_cols|sor_rows|rsort_rows|order_cols|revorder_cols|order_rows|revorder_rows|mcount|mfind|mfind_eq|mfind_ne|mfind_lt|mfind_le|mfind_gt|mfind_ge|msearch|hlookup|hlookup_eq|hlookup_ne|hlookup_lt|hlookup_le|hlookup_gt|hlookup_ge|vlookup|vlookup_eq|vlookup_ne|vlookup_lt|vlookup_le|vlookup_gt|vlookup_ge)\b'
- match: '\b(sign|abs|mod|gcd|lcm|sin|cos|tan|csc|sec|cot|sinh|cosh|tanh|csch|sech|coth|asin|acos|atan|acsc|asec|acot|asinh|acosh|atanh|acsch|asech|acoth|ln|log|log_2|exp|sqr|sqrt|cbrt|round|floor|ceiling|trunc|re|im|phase|random|root|atan2|min|max|sum|sumsq|srss|average|product|mean|switch|take|line|spline|not|and|or|xor|timer|vector|len|size|fill|range|join|resize|first|last|slice|sort|rsort|order|revorder|reverse|extract|search|count|find|find_eq|find_ne|find_lt|find_gt|find_le|find_ge|lookup|Lokup_eq|Lookup_ne|Lookup_lt|Lookup_gt|Lookup_le|Lookup_ge|norm|norm_1|norm_2|norm_e|norm_i|norm_p|unit|dot|cross|matrix|identity|diagonal|column|utriang|ltriang|symmetric|vec2diag|dig2vec|vec2col|join_cols|join_rows|augment|stack|mfill|fill_row|fill_col|mresize|copy|add|n_rows|n_cols|row|col|extract_rows|extract_cols|submatrix|mnorm|mnorm_2|mnorm_e|mnorm_1|mnor_i|cond|cond_1|cond_2|cond_e|cond_i|det|rank|transp|trace|inverse|adj|cofactor|eigenvals|eigenvecs|eigen|lu|qr|svd|cholesky|lsolve|clsolve|msolve|cmsolve|hprod|fprod|kprod|sort_cols|rsort_cols|sor_rows|rsort_rows|order_cols|revorder_cols|order_rows|revorder_rows|mcount|mfind|mfind_eq|mfind_ne|mfind_lt|mfind_le|mfind_gt|mfind_ge|msearch|hlookup|hlookup_eq|hlookup_ne|hlookup_lt|hlookup_le|hlookup_gt|hlookup_ge|vlookup|vlookup_eq|vlookup_ne|vlookup_lt|vlookup_le|vlookup_gt|vlookup_ge)\b'
scope: support.function.calcpad
- match: '#'
scope: punctuation.definition.keyword.calcpad
pop: true
set:
- match: '\b([Rr]epeat|[Ll]oop|[Bb]reak|[Cc]coutinue|[Ss]how|[Hh]ide|[Pp]re|[Pp]ost|[Vv]al|[Ee]qu|[Nn]oc|[Nn]osub|[Nn]ovar|[Vv]arsub|[Rr]ad|[Dd]eg|[Gg]ra|[Ii]f|[Ee]lse|[Ee]lse [Ii]f|[Ee]nd [Ii]f[Ff]or||[Ii]nclude|[Ll]ocal|[Gg]lobal|[Dd]ef|[Ee]nd [Dd]ef|[Pp]ause|[Ii]nput|[Ss]plit|[Ww]rap)\b'
- match: '\b([Rr]epeat|[Ll]oop|[Bb]reak|[Cc]coutinue|[Ss]how|[Hh]ide|[Pp]re|[Pp]ost|[Vv]al|[Ee]qu|[Nn]oc|[Nn]osub|[Nn]ovar|[Vv]arsub|[Rr]ad|[Dd]eg|[Gg]ra|[Ii]f|[Ee]lse|[Ee]lse [Ii]f|[Ee]nd [Ii]f|[Ff]or|[Wh]ile|[Ii]nclude|[Ll]ocal|[Gg]lobal|[Dd]ef|[Ee]nd [Dd]ef|[Pp]ause|[Ii]nput|[Ss]plit|[Ww]rap)\b'
scope: keyword.control.calcpad
- match: '[^a-zA-Z]'
pop: true
Expand Down
Binary file removed Examples/Frame/Frame-var.odt
Binary file not shown.
Binary file removed Examples/Frame/Frame-var.pdf
Binary file not shown.
Binary file removed Examples/Frame/Frame.odt
Binary file not shown.
Binary file removed Examples/Frame/Frame.pdf
Binary file not shown.
Loading

0 comments on commit 961c5ba

Please sign in to comment.