50g group photo

Yahoo Groups archive

50g

Index last updated: 2026-04-13 22:47 UTC

Thread

Making a square wave on the HP48GII

Making a square wave on the HP48GII

2014-06-30 by willowvst@...


I am making a model of a frequency mixer on the HP48GII. I need to make a square wave as part of this.

The way I thought I would do it was to make a cosine wave and then use the SIGN function to give me a +1 when it's positive and a -1 when it's negative. I seem to get a line at +1 not the expected result.

The formula I have in Plot is 'C1(t)= SIGN(cos(2*(pi)*F1*t))'.

t is the independent variable.

Anyone know why it doesn't work?

Ed

Re: [50g] Making a square wave on the HP48GII

2014-07-01 by Don Hart

First some FYI...

cos should be COS. Upper/lower case matters, including the variables (t)

You don't really need 'C1(t)='. You can just use the righthand side by itself.

Use X for the independent var instead of 't', unless you change it in the settings.

Now, I'm not sure what all your equation does (F1 ?) so I simplified and the following works:

%%HP: T(3)A(R)F(.);
'SIGN(COS(2*\pi*X))'

or

%%HP: T(3)A(R)F(.);
'C1(X)=SIGN(COS(2*\pi*X))'

~~~
ASCII shall receive, Hollerith and get it quicker

--------------------------------------------
On Mon, 6/30/14, willowvst@... [50g] <50g@yahoogroups.com> wrote:
Show quoted textHide quoted text
 Subject: [50g] Making a square wave on the HP48GII
 To: 50g@yahoogroups.com
 Date: Monday, June 30, 2014, 5:25 AM
 
 
 
 
 
 
 
 
 
 
         
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 I am making a model of a frequency mixer on the HP48GII.
 I need to make a square wave as part of this.
 The way I thought I would do it was to make a cosine wave
 and then use the SIGN function to give me a +1 when it's
 positive and a -1 when it's negative. I seem to get a
 line at +1 not the expected result.
 The formula I have in Plot is 'C1(t)=
 SIGN(cos(2*(pi)*F1*t))'.
  
 t is the independent variable. 
  
 Anyone know why it doesn't work?
  
 Ed

Re: [50g] Making a square wave on the HP48GII

2014-07-25 by willowvst@...

Thanks Ron,
I will try your suggestion.
I never got the sign function working (when I was trying this mixer) but I did get the mixer working!

best wishes,

Ed

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.