René's URL Explorer Experiment


Title: Added support for i32, i64, f32 and f64's sqrt and cbrt by Kishan-Ved · Pull Request #2571 · lcompilers/lpython · GitHub

Open Graph Title: Added support for i32, i64, f32 and f64's sqrt and cbrt by Kishan-Ved · Pull Request #2571 · lcompilers/lpython

X Title: Added support for i32, i64, f32 and f64's sqrt and cbrt by Kishan-Ved · Pull Request #2571 · lcompilers/lpython

Description: Till now, LPython's math module has sqrt() and cbrt() functions that work only for f64 types. In this PR, I have added support for i32, i64, f32 and f64 datatypes, along with an integration test.

Open Graph Description: Till now, LPython's math module has sqrt() and cbrt() functions that work only for f64 types. In this PR, I have added support for i32, i64, f32 and f64 datatypes, along with an integration test.

X Description: Till now, LPython's math module has sqrt() and cbrt() functions that work only for f64 types. In this PR, I have added support for i32, i64, f32 and f64 datatypes, along with an integration test.

Opengraph URL: https://github.com/lcompilers/lpython/pull/2571

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c040a8fe-5053-78e3-0dd1-4b08088e9bda
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id976A:2AF88A:7423040:9EAA0BB:69787A58
html-safe-nonceb3650e9aab7a02082ebd38182e6ca36ab3b620dd16f41451292c42619b60794d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzZBOjJBRjg4QTo3NDIzMDQwOjlFQUEwQkI6Njk3ODdBNTgiLCJ2aXNpdG9yX2lkIjoiMzc3MTcyMjQ3ODc1MzcwODYzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac21ae32c67182752172ba5a13edefce9d79ba7355008cf7efc6526cdd87865cdc
hovercard-subject-tagpull_request:1753342270
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/lcompilers/lpython/pull/2571/files
twitter:imagehttps://avatars.githubusercontent.com/u/124593234?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/124593234?s=400&v=4
og:image:altTill now, LPython's math module has sqrt() and cbrt() functions that work only for f64 types. In this PR, I have added support for i32, i64, f32 and f64 datatypes, along with an integration test.
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/lcompilers/lpython git https://github.com/lcompilers/lpython.git
octolytics-dimension-user_id96538276
octolytics-dimension-user_loginlcompilers
octolytics-dimension-repository_id442864346
octolytics-dimension-repository_nwolcompilers/lpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id442864346
octolytics-dimension-repository_network_root_nwolcompilers/lpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release520b65a872113b919c1bbdb03834a50af15859fd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Flcompilers%2Flpython%2Fpull%2F2571%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Flcompilers%2Flpython%2Fpull%2F2571%2Ffiles
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=lcompilers%2Flpython
Reloadhttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes
Reloadhttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes
Reloadhttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes
lcompilers https://patch-diff.githubusercontent.com/lcompilers
lpythonhttps://patch-diff.githubusercontent.com/lcompilers/lpython
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Flcompilers%2Flpython
Fork 173 https://patch-diff.githubusercontent.com/login?return_to=%2Flcompilers%2Flpython
Star 1.6k https://patch-diff.githubusercontent.com/login?return_to=%2Flcompilers%2Flpython
Code https://patch-diff.githubusercontent.com/lcompilers/lpython
Issues 503 https://patch-diff.githubusercontent.com/lcompilers/lpython/issues
Pull requests 85 https://patch-diff.githubusercontent.com/lcompilers/lpython/pulls
Actions https://patch-diff.githubusercontent.com/lcompilers/lpython/actions
Projects 0 https://patch-diff.githubusercontent.com/lcompilers/lpython/projects
Wiki https://patch-diff.githubusercontent.com/lcompilers/lpython/wiki
Security 0 https://patch-diff.githubusercontent.com/lcompilers/lpython/security
Insights https://patch-diff.githubusercontent.com/lcompilers/lpython/pulse
Code https://patch-diff.githubusercontent.com/lcompilers/lpython
Issues https://patch-diff.githubusercontent.com/lcompilers/lpython/issues
Pull requests https://patch-diff.githubusercontent.com/lcompilers/lpython/pulls
Actions https://patch-diff.githubusercontent.com/lcompilers/lpython/actions
Projects https://patch-diff.githubusercontent.com/lcompilers/lpython/projects
Wiki https://patch-diff.githubusercontent.com/lcompilers/lpython/wiki
Security https://patch-diff.githubusercontent.com/lcompilers/lpython/security
Insights https://patch-diff.githubusercontent.com/lcompilers/lpython/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Flcompilers%2Flpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Flcompilers%2Flpython%2Fissues%2Fnew%2Fchoose
Kishan-Vedhttps://patch-diff.githubusercontent.com/Kishan-Ved
lcompilers:mainhttps://patch-diff.githubusercontent.com/lcompilers/lpython/tree/main
Kishan-Ved:sqrtcbrthttps://patch-diff.githubusercontent.com/Kishan-Ved/lpython/tree/sqrtcbrt
Conversation 20 https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571
Commits 4 https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/commits
Checks 0 https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/checks
Files changed https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/files
Please reload this pagehttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes
Added support for i32, i64, f32 and f64's sqrt and cbrt https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#top
Show all changes 4 commits https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/files
87415bf Added Support for real and integer sqrt and cbrt Kishan-Ved Mar 3, 2024 https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/commits/87415bfef674fd8a51b0e96ea597c78fecc09571
6b11066 updated Kishan-Ved Mar 3, 2024 https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/commits/6b11066c69a447b059c6a9cf592389faf4b1f525
f5c8b3d updated Kishan-Ved Mar 3, 2024 https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/commits/f5c8b3d51a53a4f7fd084e86d244f851a02468e2
2e34731 added integration test Kishan-Ved Mar 3, 2024 https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/commits/2e347314bd8c0aba32a27a90d935fb7e95bc0f6f
Clear filters https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/files
Please reload this pagehttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes
Please reload this pagehttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes
CMakeLists.txt https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#diff-67c8fb3f4b6629c703ecb1c20661e195a435fe18141d370cd76cd2abc39021a8
test_math_04.py https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#diff-fe5217a25de97885b51975f21cd5aaaec434e4fd8d1ea7a77efc1a606c380b4e
math.py https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#diff-a0a76ce2e75e1f9a54274ee8aca7dc1c2c969ae0b3b4cc788272d21fde74f27e
integration_tests/CMakeLists.txthttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#diff-67c8fb3f4b6629c703ecb1c20661e195a435fe18141d370cd76cd2abc39021a8
View file https://patch-diff.githubusercontent.com/lcompilers/lpython/blob/2e347314bd8c0aba32a27a90d935fb7e95bc0f6f/integration_tests/CMakeLists.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#diff-67c8fb3f4b6629c703ecb1c20661e195a435fe18141d370cd76cd2abc39021a8
ubaidskhttps://patch-diff.githubusercontent.com/ubaidsk
Mar 6, 2024https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#r1515144790
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes
Kishan-Vedhttps://patch-diff.githubusercontent.com/Kishan-Ved
Mar 7, 2024https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#r1515915125
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes
Kishan-Vedhttps://patch-diff.githubusercontent.com/Kishan-Ved
Mar 7, 2024https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#r1515920481
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://docs.python.org/3/library/math.htmlhttps://docs.python.org/3/library/math.html
Please reload this pagehttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes
Kishan-Vedhttps://patch-diff.githubusercontent.com/Kishan-Ved
Mar 7, 2024https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#r1515976439
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes
ubaidskhttps://patch-diff.githubusercontent.com/ubaidsk
Mar 7, 2024https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#r1516176287
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes
Kishan-Vedhttps://patch-diff.githubusercontent.com/Kishan-Ved
Mar 7, 2024https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#r1516181662
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#2556https://github.com/lcompilers/lpython/pull/2556
Please reload this pagehttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes
https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#diff-67c8fb3f4b6629c703ecb1c20661e195a435fe18141d370cd76cd2abc39021a8
integration_tests/test_math_04.pyhttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#diff-fe5217a25de97885b51975f21cd5aaaec434e4fd8d1ea7a77efc1a606c380b4e
View file https://patch-diff.githubusercontent.com/lcompilers/lpython/blob/2e347314bd8c0aba32a27a90d935fb7e95bc0f6f/integration_tests/test_math_04.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/{{ revealButtonHref }}
ubaidskhttps://patch-diff.githubusercontent.com/ubaidsk
Mar 6, 2024https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#r1515158689
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes
Kishan-Vedhttps://patch-diff.githubusercontent.com/Kishan-Ved
Mar 7, 2024https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#r1515916310
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes
src/runtime/math.pyhttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#diff-a0a76ce2e75e1f9a54274ee8aca7dc1c2c969ae0b3b4cc788272d21fde74f27e
View file https://patch-diff.githubusercontent.com/lcompilers/lpython/blob/2e347314bd8c0aba32a27a90d935fb7e95bc0f6f/src/runtime/math.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#diff-a0a76ce2e75e1f9a54274ee8aca7dc1c2c969ae0b3b4cc788272d21fde74f27e
ubaidskhttps://patch-diff.githubusercontent.com/ubaidsk
Mar 6, 2024https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#r1515150558
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@certikhttps://github.com/certik
Please reload this pagehttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes
ubaidskhttps://patch-diff.githubusercontent.com/ubaidsk
Mar 6, 2024https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#r1515151755
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes
Thirumalai-Shaktivelhttps://patch-diff.githubusercontent.com/Thirumalai-Shaktivel
Mar 9, 2024https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#r1518507874
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://gcc.gnu.org/onlinedocs/gfortran/SQRT.htmlhttps://gcc.gnu.org/onlinedocs/gfortran/SQRT.html
Please reload this pagehttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes
https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2571/changes#diff-a0a76ce2e75e1f9a54274ee8aca7dc1c2c969ae0b3b4cc788272d21fde74f27e
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.