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
Topic
insitutem
Denmark
3 Posts
Posted - 09/06/2004 : 04:05:36 AM
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
Try ....
f1(x)=(x<5?sin(10*x):(10*sin(10*x)));
insitutem
Denmark
3 Posts
Posted - 09/06/2004 : 06:37:41 AM
Interesting, that shuts down Origin!
Mike Buess
USA
3037 Posts
Posted - 09/06/2004 : 07:28:37 AM
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
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Forum
Origin Viewer Forum
Origin Forum for Programming
Forum for Python
LabTalk Forum
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000