The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 functions in intervals
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

insitutem

Denmark
3 Posts

Posted - 09/06/2004 :  04:05:36 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 6.1
Operating System: win xp pro

How do I define functions in intervals?

Example:

f1(x)=sin(10*x) for x<5
f1(x)=10*sin(10*x) for x=>5

Hope somebody can help.




rlewis

Canada
253 Posts

Posted - 09/06/2004 :  04:57:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Try ....

f1(x)=(x<5?sin(10*x):(10*sin(10*x)));
Go to Top of Page

insitutem

Denmark
3 Posts

Posted - 09/06/2004 :  06:37:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Interesting, that shuts down Origin!

Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 09/06/2004 :  07:28:37 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You must have copied/pasted the whole line into the function box because Origin only crashes for me if I include 'f1(x)=' in the function. Use only the RHS...

x<5?sin(10*x):10*sin(10*x)

Mike Buess
Origin WebRing Member
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000