Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6026891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:30:40+00:00 2026-05-23T04:30:40+00:00

I am using math.h with GCC and GSL. I was wondering how to get

  • 0

I am using math.h with GCC and GSL. I was wondering how to get this to evaluate?

I was hoping that the pow function would recognize pow(-1,1.2) as ((-1)^6)^(1/5). But it doesn’t.

Does anybody know of a c++ library that will recognize these? Perhaps somebody has a decomposition routine they could share.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:30:41+00:00Added an answer on May 23, 2026 at 4:30 am

    It seems like you’re looking for pow(abs(x), y).


    Explanation: you seem to be thinking in terms of

    xy = (xN)(y/N)

    If we choose that N === 2, then you have

    (x2)y/2 = ((x2)1/2)y

    But

    (x2)1/2 = |x|

    Substituting gives

    |x|y

    This is a stretch, because the above manipulations only work for non-negative x, but you’re the one who chose to use that assumption.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I assume that abs and fabs are behaving different when using math.h . But
I'm trying to install ree-1.8.7-2011.03 using rbenv install ree-1.8.7-2011.03 , but I get this
Am using Math.round and I am finding that it will not return me any
I just wondering, how can write web applications or web pages using LaTeX-styled math?
I'm using strtotime($my_time); to create timestamps that I use in php math. The variable
I have the following code. #include math.h // for sqrt() function #include <iostream> using
I'm using the standard gcc compiler in math software development with C-language. I don't
I am using this Math for a bg color animation on hover: var col
I have seen many places using Math.floor() and Math.random() like below $('a.random-color').hover(function() { //mouseover
I heard that you could right-shift a number by .5 instead of using Math.floor().

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.