Swift - Find antilog for 4 digit Integer in iOS

0 votes

I need to find an antilog for 5995. I can get the actual antilog value when I am using anti logarithm book. but I could get infinite when I am using below code snippet in iOS. But the correct answer is 3977 How can I calculate the antilog value for 5995 using programatically. Share your valuable suggestions to get the rid of issue.

LOG

let number = 5995.0
let logOfNumber = log10(number)
print("logOfNumber ", logOfNumber)

ANTI LOG

let antilog = pow(10, number)
print("antilog ", antilog)

Although I tried the below link to find it.


 

Nov 8, 2022 in Mobile Development by gaurav
• 23,260 points
1,193 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
Turns out if the user does not have JavaScript enabled on mobile Safari, Facebook will redirect you to the mbasic.facebook.com site and prevent the user from logging in to your app via Facebook. There's probably not much we can do with the Facebook iOS SDK to override that. We'll just have to remind the user to enable JavaScript on Safari.
answered Dec 12, 2022 by gaurav
• 23,260 points

edited Mar 5

Related Questions In Mobile Development

0 votes
0 answers

Change English Number To Persian Numbers in Text Swift,IOS

Hi How can i replace english numbers ...READ MORE

Nov 8, 2022 in Mobile Development by gaurav
• 23,260 points
532 views
0 votes
0 answers
0 votes
0 answers

How to fetch the width and height of a programatically added view in Swift/ iOS?

I have added a UIView and a ...READ MORE

Nov 10, 2022 in Mobile Development by gaurav
• 23,260 points
1,245 views
0 votes
0 answers
0 votes
0 answers
0 votes
0 answers

Accurate timing in iOS

I am looking at the 'Metronome' sample ...READ MORE

Nov 8, 2022 in Mobile Development by gaurav
• 23,260 points
462 views
0 votes
1 answer

Get User Group in Swift using AWS Cognito

The groups are exposed in the ID ...READ MORE

answered Nov 12, 2018 in AWS by Priyaj
• 58,020 points
1,639 views
0 votes
1 answer

URL Scheme for iOS Home App

I think you could try doing it ...READ MORE

answered Nov 16, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,242 views
0 votes
1 answer

iOS App : Porting Code to App

If you make a post, missing parameters ...READ MORE

answered Jan 18, 2019 in IoT (Internet of Things) by Shubham
• 13,490 points
842 views
0 votes
1 answer

swift for windows? xcode on windows? ?

Hi, @Aminegac, If you’re a little more technically ...READ MORE

answered Dec 4, 2020 in Others by Nikita
1,937 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP