|
From: | Doug Stewart |
Subject: | Re: A problem with ilaplace() |
Date: | Tue, 14 Nov 2017 12:16:12 -0500 |
Hello folks,
I have reduced the problem. -
It is explained in Octave script:
#----------------------------------------------------------- ---------------
clc;
clear all;
pkg load symbolic;
syms p t;
#a few simple calculations
Rgen=50;C1=100e-9;Rlast=50;
fg=10e3;
R1=1/(2*pi*10e3*C1)-Rgen;
wg=2*pi*fg;
#this works fine, Tp1 is a simple imagined example ...
Tp1=1/(5*p+6);
laplace1=1/p*Tp1;
ux=function_handle(ilaplace(laplace1, p, t));
#this doesn't work, I don't understand that because Tp2 is the same
#as the example with other numbers
Tp2=1/(1+(Rgen+R1)/Rlast+p*C1*(Rgen+R1));
laplace2=1/p*Tp2;
ux=function_handle(ilaplace(laplace2, p, t));
#----------------------------------------------------------- -----------------------------
I don't understand that the second example doesn't work, all variables are defined.
Any hint?
Thanks - Leo
[Prev in Thread] | Current Thread | [Next in Thread] |