Fixing issue with sums & latex variables.

This commit is contained in:
Adsooi 2023-05-24 03:58:13 +02:00
parent 6abbbe5e61
commit d1843b455a
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ class SommeGainsBode extends Common.ExecutableObject {
}
getLatexString() {
return `${Latex.variable(this.name)} = ${Objects.getObjectsName('Gain Bode').map(Latex.variable).join(' + ')}`
return `${Latex.variable(this.name)} = ${Objects.getObjectsName('Gain Bode').map(name => Latex.variable(name)).join(' + ')}`
}
execute(x = 0) {

View file

@ -53,7 +53,7 @@ class SommePhasesBode extends Common.ExecutableObject {
}
getLatexString() {
return `${Latex.variable(this.name)} = ${Objects.getObjectsName('Phase Bode').map(Latex.variable).join(' + ')}`
return `${Latex.variable(this.name)} = ${Objects.getObjectsName('Phase Bode').map(name => Latex.variable(name)).join(' + ')}`
}
execute(x=1) {