|
From: | Leo Baumann |
Subject: | Re: A problem with ilaplace() |
Date: | Tue, 14 Nov 2017 19:34:23 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
Am 14.11.2017 um 18:22 schrieb Doug Stewart:
Doug, I found a solution for Octave. Watch the script, please :) #------------------------------------------------------------------------------------- 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; a=5.3;b=7.1; #this works fine, Tp1 is a simple imagined example ... Tp1=1/(p*a+b); laplace1=1/p*Tp1; ux1=function_handle(ilaplace(laplace1, p, t)); #this works now, too - I have made the coefficient of p in the denominator of Tp2 to 1 c=C1*(Rgen+R1);d=1+(Rgen+R1)/Rlast; Tp2=1/c/(p+d/c); laplace2=1/p*Tp2; ux2=function_handle(ilaplace(laplace2, p, t)); #-------------------------------------------------------------------------------------------------------------- It works if the coefficient of p in the denominator of Tp2 is 1. Regards - Leo |
[Prev in Thread] | Current Thread | [Next in Thread] |