Post Reply 
Change displayed form?
10-25-2018, 02:56 AM
Post: #9
RE: Change displayed form?
(10-25-2018 02:01 AM)rushfan Wrote:  
(10-24-2018 02:18 AM)Anders Wrote:  1. normalized laplace expressions
partfrac() is a great way to normalize the output from Laplace for many (but not all) conversions. Maybe we should add parameter to laplace() to tell laplace() that we want the result in the normalized form..., i.e. laplace(expression of parameter 1, [param 1 (i.e. t)], [param 2 (i.e. s)], [normalized flag]) where the normalized flag is either 1 or 0 for yes and no, with default = 1 for yes.

In the normalized form we want a sum of terms, where each term is a function of s that corresponds 1:1 to each term in the original expression (where each term was a function of t)

Example of common terms (of t and the corresponding terms of s):
unit step : 1 <-> 1/s
ramp: t <-> 1/s^2
sine: sin(a*t) <-> a/(s^2 +a^2)

see more attached

2. Found some issues with laplace and ilaplace/invlaplace

I played around with laplace() and ilaplace() and noticed that they no longer behave like the used to

ilaplace((1/(x^2+1)^2)) (or invlaplace() which is and works the same ilapalce())

results in:

1/4*(-x*e^(i*x)-x*e^(−i*x)−i*e^(i*x)+i*e^(−i*x))

which is correct (if you apply Euler) but it is no longer presented in the usual recognizable formal (like it used to do and indeed the help menu shows it should/did):

1/2*sin(x)-1/2*x*cos(x)

I realize that I had "i" checked in CAS settings and if I uncheck that I get the expected result: 1/2*sin(x)-1/2*x*cos(x).

Is this the way this should work - the transformation being dependent of "i" being checked or not?

I was using a "physical " prime
version is 2.0.0.13865 from 2018 07 06
Hardware version C

Also, the virtual Prime does not behave the same way as the "physical" Prime.

The virtual Prime does not like when you use the familiar parameters s and t but prefers x.

laplace(2*t*e^(-3*t)+5,t,s)
results in
"laplace(2*t*e^(-3*t)+5,t,s) Error: Bad Argument Value"

but:

laplace(2*x*e^(-3*x)+5,x,s)
works fine
(5*s^2+32*s+45)/(s^3+6*s^2+9*s)

The Virtual Prime have the same version and date (version is 2.0.0.13865 from 2018 07 06) as the "real" Prime.

Running simplify( exp2trig( ilaplace(1/(x^2+1)^2))) works for me.

You can create a program to run simplify( exp2trig( ilaplace( ))).

Thanks. I get that, but that was not really my point (there were many). To know that you need to apply exp2trig you need to know the answer (which you typically do not until; you have tried ilaplace() first).

My view was that the average EE (or any engineering doing differential equations) undergrad student pov would not immediately know this when they see a bunch of e ^ -ix....., but that a student would reasonably expect the ilaplace() to present the familiar mapping back to the time domain.
You now, like the classic laplace tables the professor gives the students at the beginning a circuit class. Just look at Wikipedia for instance Laplace transform
same goes for z transforms dealing with the discrete time domain:
Z-transforms
Hugely important also in comp sci.

What that student need to know is that "i" should not be checked in CAS setting for the mapping to work as expected.

In some ways it is actually good that ilaplace can present both the complex form and the non-complex. It makes it more flexible if you want to do more advance stuff but, maybe by default, ilaplace() should always show the non-complex form (regardless of "i" CAS setting) and have a parameter complex on/off to explicitly tell CAS to show complex form. ilaplace(expression of parameter 1, [param 1 (i.e. t)], [param 2 (i.e. s)], [normalized flag Y/N: default Y], [complex Y/N: default N])

Just a thought. I think HP/Parisse, would get fewer questions and the students would better intuitive and immediate use of the HP Prime.

I would certainly have loved to have had and HP Prime with that capability in grad school. It would save so much time and avoid errors in the mapping back and forth the between time and frequency domain of complex circuits analysis.

Anyway, the other errors I mentioned above is still a problem.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Change displayed form? - DrD - 10-20-2018, 09:52 AM
RE: Change displayed form? - Albert Chan - 10-20-2018, 12:33 PM
RE: Change displayed form? - DrD - 10-20-2018, 05:20 PM
RE: Change displayed form? - Anders - 10-24-2018, 02:18 AM
RE: Change displayed form? - rushfan - 10-25-2018, 02:01 AM
RE: Change displayed form? - Anders - 10-25-2018 02:56 AM
RE: Change displayed form? - rushfan - 10-25-2018, 04:17 AM
RE: Change displayed form? - Anders - 10-25-2018, 05:59 AM
RE: Change displayed form? - Anders - 10-24-2018, 03:42 AM
RE: Change displayed form? - parisse - 10-24-2018, 05:27 AM
RE: Change displayed form? - Anders - 10-24-2018, 03:36 PM



User(s) browsing this thread: 5 Guest(s)