TypeError: 'float' object is not callable when trying to use a specific math equationIs floating point math broken?TypeError: 'float' object is not callableDelphi 5 and floating point multiplication and and mathTypeError: a bytes-like object is required, not 'str' when writing to a file in Python3Mathematical Equation ConversionSimple Math Equations in Android AppHow to debug TypeError 'str' object is not callable python3 when implementing linkedListPython: area of a regular polygonPython 3: TypeError: 'float' object is not callableTrying to create functions with simple equations inside

Can I use 220 V outlets on a 15 ampere breaker and wire it up as 110 V?

How can I find out about the game world without meta-influencing it?

Is it true that "only photographers care about noise"?

Does a single fopen introduce TOCTOU vulnerability?

As easy as Three, Two, One... How fast can you go from Five to Four?

Quasar Redshifts

What does the homotopy coherent nerve do to spaces of enriched functors?

How much web presence should I have?

Are the guests in Westworld forbidden to tell the hosts that they are robots?

What does this line mean in Zelazny's The Courts of Chaos?

Recording Spectral Lines at Home

My mom's return ticket is 3 days after I-94 expires

Do Veracrypt encrypted volumes have any kind of brute force protection?

Parsing text written the millitext font

Dedicated bike GPS computer over smartphone

Why does there seem to be an extreme lack of public trashcans in Taiwan?

Make Gimbap cutter

What class is best to play when a level behind the rest of the party?

Mathematica 12 has gotten worse at solving simple equations?

Do SFDX commands count toward limits?

C++ logging library

How do I type a hyphen in iOS 12?

Part of my house is inexplicably gone

Should I list a completely different profession in my technical resume?



TypeError: 'float' object is not callable when trying to use a specific math equation


Is floating point math broken?TypeError: 'float' object is not callableDelphi 5 and floating point multiplication and and mathTypeError: a bytes-like object is required, not 'str' when writing to a file in Python3Mathematical Equation ConversionSimple Math Equations in Android AppHow to debug TypeError 'str' object is not callable python3 when implementing linkedListPython: area of a regular polygonPython 3: TypeError: 'float' object is not callableTrying to create functions with simple equations inside






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I have an assignment for a university course that I'm doing and I need assistance on why I'm getting this TypeError.



The original equation is:
Surface Area = 3√(25 + 10√5) * 𝑎^2



a = input("Edge Length: ")

suface_area = (3 * math.sqrt(25 + (10 * math.sqrt(5)) (a) ** 2))

print(surface_area)


I expect the written code to give me an output of the calculated "Surface area" that this equation is supposed to provide me, however I keep getting the TypeError message when the program tries to execute the code.



Please give me feedback on what I should try to fix this.
Thanks!










share|improve this question



















  • 5





    You are missing the multiplication operation * before (a) ** 2.

    – Warren Weckesser
    Mar 24 at 23:15











  • oh dang haha, cheers for pointing that out.

    – Moses Ford
    Mar 24 at 23:19

















1















I have an assignment for a university course that I'm doing and I need assistance on why I'm getting this TypeError.



The original equation is:
Surface Area = 3√(25 + 10√5) * 𝑎^2



a = input("Edge Length: ")

suface_area = (3 * math.sqrt(25 + (10 * math.sqrt(5)) (a) ** 2))

print(surface_area)


I expect the written code to give me an output of the calculated "Surface area" that this equation is supposed to provide me, however I keep getting the TypeError message when the program tries to execute the code.



Please give me feedback on what I should try to fix this.
Thanks!










share|improve this question



















  • 5





    You are missing the multiplication operation * before (a) ** 2.

    – Warren Weckesser
    Mar 24 at 23:15











  • oh dang haha, cheers for pointing that out.

    – Moses Ford
    Mar 24 at 23:19













1












1








1








I have an assignment for a university course that I'm doing and I need assistance on why I'm getting this TypeError.



The original equation is:
Surface Area = 3√(25 + 10√5) * 𝑎^2



a = input("Edge Length: ")

suface_area = (3 * math.sqrt(25 + (10 * math.sqrt(5)) (a) ** 2))

print(surface_area)


I expect the written code to give me an output of the calculated "Surface area" that this equation is supposed to provide me, however I keep getting the TypeError message when the program tries to execute the code.



Please give me feedback on what I should try to fix this.
Thanks!










share|improve this question
















I have an assignment for a university course that I'm doing and I need assistance on why I'm getting this TypeError.



The original equation is:
Surface Area = 3√(25 + 10√5) * 𝑎^2



a = input("Edge Length: ")

suface_area = (3 * math.sqrt(25 + (10 * math.sqrt(5)) (a) ** 2))

print(surface_area)


I expect the written code to give me an output of the calculated "Surface area" that this equation is supposed to provide me, however I keep getting the TypeError message when the program tries to execute the code.



Please give me feedback on what I should try to fix this.
Thanks!







python-3.x math






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 24 at 23:15









Vasilis G.

4,2462925




4,2462925










asked Mar 24 at 23:10









Moses FordMoses Ford

132




132







  • 5





    You are missing the multiplication operation * before (a) ** 2.

    – Warren Weckesser
    Mar 24 at 23:15











  • oh dang haha, cheers for pointing that out.

    – Moses Ford
    Mar 24 at 23:19












  • 5





    You are missing the multiplication operation * before (a) ** 2.

    – Warren Weckesser
    Mar 24 at 23:15











  • oh dang haha, cheers for pointing that out.

    – Moses Ford
    Mar 24 at 23:19







5




5





You are missing the multiplication operation * before (a) ** 2.

– Warren Weckesser
Mar 24 at 23:15





You are missing the multiplication operation * before (a) ** 2.

– Warren Weckesser
Mar 24 at 23:15













oh dang haha, cheers for pointing that out.

– Moses Ford
Mar 24 at 23:19





oh dang haha, cheers for pointing that out.

– Moses Ford
Mar 24 at 23:19












1 Answer
1






active

oldest

votes


















0














Two tiny issues with your code is causing problems.



  1. You're missing a * in before (a)**2 in suface_area = (3 * math.sqrt(25 + (10 * math.sqrt(5)) (a) ** 2)).


  2. You misspelled the variable name suface_area when your print function is being told to printsurface_area.


Hope this helps!






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55329467%2ftypeerror-float-object-is-not-callable-when-trying-to-use-a-specific-math-equ%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Two tiny issues with your code is causing problems.



    1. You're missing a * in before (a)**2 in suface_area = (3 * math.sqrt(25 + (10 * math.sqrt(5)) (a) ** 2)).


    2. You misspelled the variable name suface_area when your print function is being told to printsurface_area.


    Hope this helps!






    share|improve this answer



























      0














      Two tiny issues with your code is causing problems.



      1. You're missing a * in before (a)**2 in suface_area = (3 * math.sqrt(25 + (10 * math.sqrt(5)) (a) ** 2)).


      2. You misspelled the variable name suface_area when your print function is being told to printsurface_area.


      Hope this helps!






      share|improve this answer

























        0












        0








        0







        Two tiny issues with your code is causing problems.



        1. You're missing a * in before (a)**2 in suface_area = (3 * math.sqrt(25 + (10 * math.sqrt(5)) (a) ** 2)).


        2. You misspelled the variable name suface_area when your print function is being told to printsurface_area.


        Hope this helps!






        share|improve this answer













        Two tiny issues with your code is causing problems.



        1. You're missing a * in before (a)**2 in suface_area = (3 * math.sqrt(25 + (10 * math.sqrt(5)) (a) ** 2)).


        2. You misspelled the variable name suface_area when your print function is being told to printsurface_area.


        Hope this helps!







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 25 at 1:18









        Atlas KuaAtlas Kua

        165




        165



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55329467%2ftypeerror-float-object-is-not-callable-when-trying-to-use-a-specific-math-equ%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript