Repository
https://github.com/php/php-src
What Will I Learn?
I will learn the mathematical methods , we will take the " Abs, Acos , Acosh and Asin " methods.
- How to get the absolute value using Abs method.
- What's the Acos method and how to use it.
- The concept of the Acosh method and its uses.
- How to get the arc sin of a value using Asin method.
Requirements
- Server support PHP , Xampp or Wamp for example
- An IDE like Sublime text.
- Browser (Chrome for example)
Difficulty
- Basic
Description
1- Abs method
This function returns the absolute value of a natural, integer or real number. Thus, it will remove the sign from the specified number so that when it is a negative number, it eliminates the minus sign "-" before the number.
It is therefore impossible to get a negative number with this function, they will always be positive, it is therefore a very useful function to keep the "natural" part of a number.
It has the expression as parameter ,this parameter is used to specify an expression representing a number to process.
It return a number greater than 0 these values are the only ones that can be returned. The absolute value of a number is always positive.
To use the abs method you need to pass the number as parameter
abs($number)
I have a negative number and I want to get the positive of this number using the abs method
$number = -25;
echo abs($number);
The abs method will return the positive number , it will eliminate the minus sign (-) , and this is the result
2- Acos method
This function returns the cosine arc of number . The acos is the inverse function of cos (), which means that a == cos (acos (a)) for any value in the validity range of acos ().
It has The argument to be treated and it returns the arc cosine of the argument, in radians.
To use the acos method you need to pass the argument as parameter
acos($argument)
The validity range is [-1,1], I will pass the number 0 to this method and this is the result
echo acos(0);
3- Acosh Method
This function returns the hyperbolic cosine arc of an argument. It has the expression as parameter , This parameter is used to specify the expression containing the number to be processed.
To use the acosh method you must pass the argument as parameter
acosh(argument)
The validity range is [-1,+inf[, I will pass the number 3 to this method and this is the result
echo acosh(3);
4- Asin Method
This trigonometric function makes it possible to return the sine arc. It has the expression as parameter this parameter is used to indicate the expression containing the number to be processed.
The value of the parameter must be in a range between -1 and 1, otherwise the function will consider that domain error has occurred.
It returns -π / 2 to π / 2 these values are used to indicate the radians of the sine arc.
To use the asin method you need to pass a number between -1 and 1
asin($number)
I will pass the number 0 to the asin method and this is the result
Video Tutorial
Curriculum
- PHP Tutorial #01 Indexed Arrays, Associative Arrays and Multidimensional Arrays
- PHP Tutorial #02 Array Methods (Sort, Rsort, Ksort, Krsort , Array_Reverse And Shuffle)
- PHP Tutorial #03 Array Methods ( Search Methods , Addition Methods and the Remove Methods)
- PHP Tutorial #04 Array Methods (Array_Sum, Array_Rand, Array_Column and Array_Unique)
- PHP Tutorial #05 Array Methods (Array_Chunk, Array_Combine, Array_Count_Values and Array_Product)
- PHP Tutorial #06 Array Methods (Array_Fill_Keys,Array_Fill, Array_Flip and Array_Filter)
- PHP Tutorial #07 Array Methods ( Array_Keys, Array_Map, Array_Merge and Array_Pad )
- PHP Tutorial #08 Array Methods ( Array_Replace, Array_Values, Array_Slice and Array_Intersect )
- PHP Tutorial #09 Array Methods (Array_Walk, Current, Next, Prev, End and Reset )
- PHP Tutorial #10 Array Methods (Array_Diff_Key, Array_Diff, Array_Intersect_Key and Array_Change_Key_Case )
- PHP Tutorial #11 String Methods ( Addslaches, Chr, Chop and Chunk_splite )
- PHP Tutorial #12 String Methods ( Bin2Hex, Count_Chars, Explode and Hex2Bin )
- PHP Tutorial #13 String Methods (Implode, Join, Lcfirst, Ltrim and Fprintf )
- PHP Tutorial #14 String Methods (Md5_File, Md5, Nl2br and Addcslaches )
- PHP Tutorial #15 String Methods (Number_Format, Ord, Parse_Str, Print and Printf )
- PHP Tutorial #16 String Methods (QuoteMeta, Rtrim , Sha1_file and Sha1 )
Proof of Work Done
https://github.com/alexendre-maxim/PHP-Tutorial/blob/master/string7.php
Hi @alexendre-maxim
Thank you for your contribution to the video tutorial category.
As mentioned in the last post, it would be good to go beyond the basic level and try to cover concepts that are more in-depth requiring tutorial.
You can take a look at tensor's tutorials to get an idea of how you can go into deeper concepts.
https://steemit.com/utopian-io/@tensor/a-beginners-guide-to-dart---control-flow-and-low-level-compilation---part-two
Even though this is a beginners tutorial but the concepts taught do carry some depth that requires step by step teaching.
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Chat with us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you for your review, @rosatravels! Keep up the good work!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @alexendre-maxim! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :
Click here to view your Board
If you no longer want to receive notifications, reply to this comment with the word
STOP
To support your work, I also upvoted your post!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hi @alexendre-maxim!
Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey, @alexendre-maxim!
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit