Re: [LON-CAPA-users] Piecewise Linear Functions

2020-03-21 Thread Harding, Gene L
Thanks Justin! (Sorry for the slow reply; stuck in the lab for a few hours this afternoon/evening.) Gene L. Harding, PE Associate Professor of ECET Purdue University 574-520-4190 https://polytechnic.purdue.edu/south-bend/ From: LON-CAPA-users On Behalf Of Justin Gray Sent: Saturday, March 21,

[LON-CAPA-users] {Disarmed} Re: Piecewise Linear Functions

2020-03-21 Thread Athanas, Angela
Hi Gene, I have one done for an algebra class that I am working on. The problem, which I have the code available, is published and is algebra-02-01-09. It defines all parameters in the script part and plots the piecewise defined functions (several) in the problem part below using gnu plot. This

Re: [LON-CAPA-users] Piecewise Linear Functions

2020-03-21 Thread Justin Gray
Hi Gene, To answer your first question, here is a sample piecewise-defined function in Gnuplots: x < 0 ? -x : x**2 Best, Justin -- *Justin Gray* Senior Lecturer | Department of Mathematics Simon Fraser University | SCK 10531 University Dr., Burnaby, B.C. V5A 1S6

[LON-CAPA-users] Piecewise Linear Functions

2020-03-21 Thread Harding, Gene L
Hi, Does anyone know how to define a piecewise linear function in LON-CAPA, and plot it with gnuplot? And, a related question: How do you put plots next to each other? I need to display a plot of voltage on one graph, with a plot of phase-angle-fired half-sine current right below it on a