McCharts - ArkTS Programming Software Development by 杨_659 ….data.map((item) => Number(item.value || 0)) const maxValue = Math.max(...values) let maxNameW = 0 let cSpiltNum = 5 // Split into… Re: Need currency pound symbol before amount calculation Programming Web Development by Biiim … times it 100 round it and divide by 100 eg: `Math.round(4.4534*100)/100` Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by jkon … answers to those. I believe that however you do the math, the result will be the same. Is your example valid… math.round Programming Software Development by mattsearle …, could someone please add the math.code function in the code below so that the resulting … Re: math functions? Programming Software Development by n.utiu math.h trigonometric functions take parameters in radians. To convert radians to degrees : cos (60 degrees) is equivalent to [CODE]cos (PI*60/180)[/CODE] PI - predefined constant in math.h Re: math.round Programming Software Development by Taywin … var upA = a*100 var upB = b*100 var resA = Math.round((upA*3.35)) / 100 // <= 784.72 var resB… Re: Math problem in C Programming Software Development by vegaseat … 292.797 * PI/180; // degrees to radians math = asin(sin(x) * 0.39777); printf("…The result is %f radians",math); math = math * 180 / PI; // radians back to degrees printf…("\nThe result is %f degrees",math); getchar(); return 0; } [/code] You … Math problem in C Programming Software Development by ray96 …#include <stdio.h> #include <math.h> main() { double math; math=sin(292.797) * asin(0.39777); printf…("The result is %f",math); return 0; } Ok, why aren't the 2 calculations…of variables, I have tried converting radians to degrees, (math * 180 / PI) I have tried other things too,… Math.max prob???...XD Programming Software Development by upstream …but when i try to rewrite it using the Math.max method, it only return the second highest number…will be compared to the n1 variable... return Math.max(n1,Math.max(n2,n3)); [CODE]import java.util.…> maxValue) maxValue = n3; return maxValue; */ return Math.max(n1,Math.max(n2,n3)); } public static void main(String args… Math.abs Programming Software Development by anevins …. I think this is because I haven't used the Math.abs correctly but I don't know how to fix….nextDouble(); input2 = scan.nextDouble(); cubed = Math.pow(input1, 3); input2 = Math.abs(input2); squared = Math.sqrt(input2); smallest = Math.min(squared, cubed); DecimalFormat fmt… Re: Math.max prob???...XD Programming Software Development by iamthwee >return Math.max(n1,Math.max(n2,n3)); What happens if you break that down. int one = 0; int two = 0; one = Math.max(n2,n3); two = Math.max(n1,one); return two; Does that make any difference? Math output Programming Software Development by vinnijain … mathematical equations and side by side the corresponding math format is generated like we see in books.…using LATEX/MimeTEX for generating math format and it uses special symbols for generating math format. Like for square…implement "\div" and generate the coresponding math format.Similarly for fraction ,in the textbox there should… Re: Math.abs Programming Software Development by Zaad … programme that u have given the output is correct as Math.abs converts the negative value to a positive value and…;]Enter 2 numbers: -68792.75 -459451.009 -325557730528518.94 [/COLOR] Math.abs is used to get the absolute value of a… number no matter it is positive or negative Math.abs(-5) gives 5 But if u r intending something… Re: math.random() Programming Software Development by coil …we cast the result to an int. (int)(Math.random()) will always return 0, because the method…. Thus, we multiply results then cast. (int)(Math.random()*5) will produce 0, 1, 2, 3… want numbers between 2 and 5. (int)(Math.random()*5+2) can produce numbers up to… 6, because if Math.random() returns 0.9999, multiplying it by 5… Re: Math.max prob???...XD Programming Software Development by upstream …;Blue"]double[/COLOR]) [code] double maxValue; maxValue = Math.max(n2,n3); return Math.max(n1,maxValue); [/code] i can't say… Re: Math output Programming Software Development by vinnijain … feed a textbox some latex text and expect it shows math formulas you see in textbooks. Did you not try it…] Actually after feeding in textbox I was able to display math formulae for many symbols.Also In textbox I am using…..... The only solution which I could find is to make math dictionary from all latex types to user friendly symbols.I… Math in real time Programming Computer Science by kihtmaine …? I want know what is the role of discrete math in computing. I mean in our everyday lives, I'd … of it. I want to see the theories in discrete math is used in the field programming / software developing, games, web… Re: Math output Programming Software Development by vinnijain … articles.......... These are for calculations.But I want to show math format not the calculations............ And the application which I have… replace the textbox text with Mimetex and correspondingly it generate math output...... Re: Math output Programming Software Development by vinnijain … bracket format in textbox which is user friendly but in math format output I want the fraction form which we see… in books. In textbox I want bracket only but in math format I want it in actual fraction like in books… Re: Math output Programming Software Development by vinnijain … any symbol.So when we click on any of the math symbol ,it is appended in the textbox.So,when i… for this "()/()" when its being used with other math symbols too.......... If I would be inserting only "()/()"… Re: Math output Programming Software Development by Geekitygeek … a picturebox which then displays the equation in the standard math format. vinnijain wants to make it more user friendly so… to convert the latex string to an image of the math notation. There! 5 pages of thread condensed into 3 short… Math.random Programming Software Development by sixdegreesunder … trying to assign random numbers which math.random will choose.Each time I run program Math.random must choose either 50,100… explanation makes sense. Thank you! [CODE] int width; width = (int)(Math.random() *3+1);[/CODE] Math Game Code Help Programming Software Development by lance7tour …s 'pop-up dialog Const cTitlebarMsg = "The Math Game" 'Instantiate an instance of the WshShell … 16 Then MsgBox "Correct! You obviously know your math!" Else ProveIt = MsgBox("Incorrect. Do you …quot; WshShl.SendKeys "In case you question my math..... watch this!" WScript.Sleep 2000 WshShl.SendKeys &… Math.random Programming Software Development by cobalt555 … reason I am receiving this error , cannot find symbol, method Math random() not found . If anyone knows why it would be… of great help. int digit1 = (int)(Math.random() * 10); int digit2 =(int)(Math.random()* 10); this is supposed to give me… math domain error Programming by abdallah mohamad … fourth = 10000 but an error still happenening the error is math domain error can anybody help in this code and error… import math import logging n = 0 while n <= 10: print(math.log(n)) n = n + 1 Re: Math in real time Programming Computer Science by Rashakil Fol It depends what they are teaching in the discrete math class, because there's a few parts to the subject. … things. Do you have to prove anything in your discrete math class? That's the most important thing. You should be… Re: Math output Programming Software Development by Geekitygeek Hi, you have working code that takes the user input and displays it in Math format, is that correct? If so, could you post that code here and we can show you how to rework it :) Re: Math output Programming Software Development by Geekitygeek … trhough a function that swaps out the readable characters for math format using string.replace. [CODE] private string FormatText(string input… Re: Math output Programming Software Development by Geekitygeek … time you add to the user friendly textbox, add the math format to a class level string variable as well. This… Re: Math output Programming Software Development by vinnijain hi Sknake, The links which you have given me,I have already read those.I don't want calculation,but only want to generate math format for the equation entered in the textbox. The work which I have done is attached in this thread........... Kindly help me out.....