Skip to player
Skip to main content
Search
Connect
Watch fullscreen
Like
Bookmark
Share
More
Add to Playlist
Report
Types of Flowgorithm Functions
TestingDocs
Follow
2 years ago
Types of Flowgorithm Functions
Category
📚
Learning
Transcript
Display full video transcript
00:00
Logarithm functions are of two types, one intrinsic functions and the other one is the
00:10
user-defined functions.
00:12
So intrinsic functions are built-in functions that you can directly call in your flowchart
00:20
and user-defined functions you need to define them in your flowchart, you need to define
00:26
the program logic and invoke them in your flowcharts.
00:36
In this video let's invoke a built-in function and see how we can call in your flowchart.
00:47
So let's declare a variable called x of type real, prompt the user to enter the number.
01:07
So take the input x.
01:15
Now we will just invoke intrinsic or built-in logarithm function called abs which returns
01:24
the absolute value.
01:26
So we will define result x.
01:44
So in the assign symbol we will specify the result and we will invoke the function with
01:53
the parameter x.
01:56
So this will call the built-in function abs and pass the value of x to the function, computes
02:07
the value and returns the result to the variable called result on the left hand side.
02:16
Click on okay, we will just output the value of the function using, just outputting the
02:31
value of the variable result here.
02:43
Let's run the function and see the output.
02:47
Click on the play button.
02:52
The absolute function if the number is positive returns the value as it is and if it is a
02:59
negative number it returns the minus of the number.
03:04
So the absolute function will always return a positive value.
03:10
Let's run a sample test case here.
03:19
So the result is 5.6.
03:21
Let's run flowchart with the negative number, let's say minus of 2.5.
03:33
We can see that the output of the function will be positive and notice that the absolute
03:44
function always returns a positive value irrespective of the input variable x.
03:52
When you invoke a function you need to pass the name, you need to provide the name of
03:59
the function and pass the function parameters.
04:03
If the function has more than one, you need to pass all the list of parameters as a comma
04:09
separated.
04:11
So when you invoke a function it will execute the code or the function logic and returns
04:19
a value to the caller and that value will be stored in your flowchart variable that
04:26
you provide in the left hand side.
04:31
Coming back to this example, abs is the function name or the function name of the built-in
04:39
function and we have provided the parameter x to the function.
04:44
So the function executes itself and returns a value, that value will be stored in the
04:53
flowchart variable called result in this example, okay.
04:59
Hope you understood about built-in function, abs is just one built-in function in flowchart.
05:06
There are several other intrinsic functions available, we will explore them in upcoming
05:12
videos.
05:14
If you like this video, subscribe to the channel.
05:18
Thanks for watching.
Be the first to comment
Add your comment
Recommended
2:20
|
Up next
Flowgorithm Hello World Flowchart
TestingDocs
2 years ago
1:33
Selenium IDE Install on Firefox
TestingDocs
2 years ago
3:45
Python Install on Windows
TestingDocs
2 years ago
4:32
Area of Circle Flowgorithm Flowchart
TestingDocs
2 years ago
0:50
Generate Java Code from Flowgorithm Flowchart
TestingDocs
2 years ago
2:24
Python Interactive Interpreter
TestingDocs
2 years ago
7:45
HelloWorld Java Program Step-to-Step Guide
TestingDocs
9 years ago
3:11
Run Python Script
TestingDocs
1 year ago
4:10
Python Package Manager
TestingDocs
1 year ago
2:50
Java Install on Windows
TestingDocs
1 year ago
0:51
Former Aide Claims She Was Asked to Make a ‘Hit List’ For Trump
Veuer
2 years ago
1:08
Musk’s X Is ‘the Platform With the Largest Ratio of Misinformation or Disinformation’ Amongst All Social Media Platforms
Veuer
2 years ago
4:50
59 companies that are changing the world: From Tesla to Chobani
Fortune
2 years ago
0:46
3 Things to Know About Coco Gauff's Parents
People
2 years ago
0:35
8 Things to Do in the Morning to Improve Productivity
Martha Stewart Living
2 years ago
1:18
USC vs. Colorado: Can Caleb Williams Earn a New Heisman Moment?
SportsGrid
2 years ago
1:04
Vic Mensa Reveals Celebrity Crush, Biggest Dating Pet Peeve & More on Speed Dating | Billboard News
Billboard
2 years ago
1:09
Hollywood Writers Reach ‘Tentative Agreement’ With Studios After 146 Day Strike
Veuer
2 years ago
1:26
Love is Blind stars admit they're burnt out from social media
Fortune
2 years ago
2:01
NHA Customers in Limbo as Company Faces Potential Merger
SportsGrid
2 years ago
2:55
Vanilla Ice Explains How the 90’s Shaped America
FACTZ
2 years ago
0:36
Amazon’ Prime Video Will Show Commercials Starting Next Year
Veuer
2 years ago
11:13
Pokimane Answers The Web's Most Searched Questions
WIRED
2 years ago
4:16
BREAKING NEWS: Matt Gaetz Tells House Committee: 'I'm Not Going To Vote For A Continuing Resolution'
Forbes Breaking News
2 years ago
1:00
What's Popular on Uber Eats?
Stringr
2 years ago
Be the first to comment