Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline JuanMa_arg  
#1 Posted : 25 August 2022 18:10:06(UTC)
JuanMa_arg


Rank: Member

Groups: Registered
Joined: 29/09/2019(UTC)
Posts: 14
Argentina
Location: Mendoza

Dear, I would like to ask you if it is possible to perform integrals of functions defined by intervals.

Thanks and regards

JuanMa

Current_duty cycle.png

Edited by user 25 August 2022 22:33:47(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline overlord  
#2 Posted : 26 August 2022 00:03:22(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 509 time(s) in 339 post(s)
if/else has a long lasted bug.
It doesn't allow you to compute in certain situations.
I had a list for that, if I can find I will post it here.
You can use cases() if you encounter a bug.
Here is your file re-written with cases.

Regards

cases instead ifelse.sm (8kb) downloaded 31 time(s).

2022-08-26_00-01.png
thanks 1 user thanked overlord for this useful post.
on 26/08/2022(UTC)
Offline Jean Giraud  
#3 Posted : 26 August 2022 01:25:07(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: JuanMa_arg Go to Quoted Post
Dear, I would like to ask you if it is possible to perform integrals of functions defined by intervals.

Yes, though very many had to be doctored.
Jean

Integrate Discontinuous.sm (11kb) downloaded 10 time(s).
Offline Jean Giraud  
#4 Posted : 26 August 2022 01:50:54(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Integrate Discontinuous SCALAR.sm (7kb) downloaded 9 time(s).
Offline overlord  
#5 Posted : 26 August 2022 01:53:00(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 509 time(s) in 339 post(s)
Here is my reply to if bug.
https://en.smath.com/forum/yaf_postsm75905_bug-in-if.aspx#post75905

There are other bugs with some specific conditions.
Don't get confused with long list, when you get use to smath it gets easier to remember.
I didn't mention if/else in this reply, but it can be added.
https://en.smath.com/forum/yaf_postsm71178_solve---bugs.aspx#post71178

And here is a list may be useful to consider.
https://en.smath.com/forum/yaf_postsm76117_Vertical-Bar-Question.aspx#post76117

Regards
Offline JuanMa_arg  
#6 Posted : 26 August 2022 14:22:51(UTC)
JuanMa_arg


Rank: Member

Groups: Registered
Joined: 29/09/2019(UTC)
Posts: 14
Argentina
Location: Mendoza

Originally Posted by: overlord Go to Quoted Post
Here is my reply to if bug.
https://en.smath.com/forum/yaf_postsm75905_bug-in-if.aspx#post75905

There are other bugs with some specific conditions.
Don't get confused with long list, when you get use to smath it gets easier to remember.
I didn't mention if/else in this reply, but it can be added.
https://en.smath.com/forum/yaf_postsm71178_solve---bugs.aspx#post71178

And here is a list may be useful to consider.
https://en.smath.com/forum/yaf_postsm76117_Vertical-Bar-Question.aspx#post76117

Regards



Thanks to both

Edited by moderator 29 August 2022 19:21:11(UTC)  | Reason: marked as Solved

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.