[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem symbolic on windows
From: |
Stef Pillaert |
Subject: |
Problem symbolic on windows |
Date: |
Wed, 5 Feb 2020 10:20:43 -0600 (CST) |
Hello,
I have this code: it runs in matlab (if "pkg load symbolic" is uncommented),
it doenst in octave - altough I think it "used" to run one year ago ;-):
% sprongfuncties in Matlab/Octave
% Geheugen leegmaken
clc
clear
close all
% basisgegevens
EI=1000;
%deze regel is enkel nodig in octave om symbolisch te kunnen werken, maar in
matlab niet.
pkg load symbolic
%de variabele x declareren we als symbolisch, zodat er symbolisch mee kan
gerekend worden.
syms M(x) C1 C2;
%De M-functie:
M(x)=13*x-heaviside(x-2)*15*(x-2)-heaviside(x-4)*9*(x-4)^2/2;
%we maken de eerste van 2 subplots
subplot(2,1,1)
fplot(M(x),[0,6]);
intM(x)=int(M(x))+C1;
intintM(x)=int(intM(x))+C2;
alfa(x)=-intM(x)/EI;
z(x)=-intintM(x)/EI;
rndvw=[z(0)==0,z(6)==0];
onbek=[C1,C2];
opl=solve(rndvw,onbek);
C1=opl.C1
C2=opl.C2
%de tweede subplot
subplot(2,1,2)
fplot(eval(z(x)),[0,6]);
%de doorbuiging in het midden, eveneens in "variable precision arithmetic":
eval(z(3)),vpa(eval(z(3)))
%oppervlakte onder de vervormingslijn (evt. nuttig voor invloedslijnen)
int(eval(z(x)),[0,6]),vpa(int(eval(z(x)),[0,6]))
When I run it (on Windows10), it gives me this error message:
error: isalnum: not defined for class
error: called from
fplot at line 100 column 3
Sprongfuncties_in_Octave at line 19 column 1
>>
Any idea what is happening here?
Many thanks,
Stef
--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
- Problem symbolic on windows,
Stef Pillaert <=