Math Question

i need to print the x value of a circle (center is 0 and max = 1)
depending on the angle entered
i know it is possible with functions but i dont remember wich one

example :
user enter 0 : returned value is 0
user enter 45 : returned value is 0.5
user enter 90: returned value is 1
user enter 135 the returned value is 0.5
user enter 180 the returned value is 0
user enter 225 the returned value is -0.5

...
and so on

View Replies


ADVERTISEMENT

Math Functions...

Didn't remember if anybody had started started like this, but I decided it would be cool to start it again. If you have a math function request ask it below, or if you have made one then add it:

I have a few cretegean plane (think thats how you spell it), calculations. One request I have is, does anybody have a short function for square root?

View Replies View Related

Simple Math

I am trying to add my numeric fields together to produce a total. Does the following make sense to anyone? Code:

View Replies View Related

Doing A Math Problem With ASP

I want to enter a math formula to caculate how many pages are there for each thread.

At this point, I set the page break to 15 posts for each thread. In other words, one page contains 15 replies to one thread. If there are more than 15 and less than 30 replies, then page number is equal to 2. If more than 30, the page number is equal to 3.

If I translate this to a math formula, it would be like

total replies divided by 15 = the number of page (this number should round up like 0.x=1)
if total replies is 3, so 3 divided by 15 = 0.2 (round it up to 1)
if total replies is 18, so 18 divided by 15 = 1.2 (round it up to 2)

How can I do this?

View Replies View Related

Math Working

<%
Dim BeforeTax
Dim A
Dim B
Dim C
A = OrderSummary.Fields.Item("Order_Total").Value
B = OrderSummary.Fields.Item("Tax").Value
C = OrderSummary.Fields.Item("Shipping").Value
BeforeTax = A-(B+C)
%>

I tried this after I tried to have just one line with BeforeTax = OrderSummary.Fields.Item("Order_Total").Value-....

Any idea why I get an error?

View Replies View Related

Math Equation

normally if i want to do a simple math equation and user only key in A and B but the C will be auto generate. and i wanna store all these three variables in the system. can anyone write a simple program for me? i declare inside head tag rite?

View Replies View Related

Math Behind The Sessionid

how unique the sessionid is in ASP. What is the math behind it's creation, and what are the probobolities of it being reproduced, i.e. 1/10000? or 1 in twenty million? Can someone give me some guidance on this? I'm trying to create some unique numbers for
data assignement, and would like a way that does not replicate.

View Replies View Related

Simple Math In Asp

i am trying to remove stock from my database when someone orders a product. basically the code has no errors but it wont change the stock level.

how do i get asp to subtract one number from another the bit of code i have for this part of the function is Code:

View Replies View Related

Math Calculations

I have a page which has a buyers premium amount field and an empty field the client will place the amount they wish to bid.

How can I get the page to calculate the premium total and the grand total. will I need to put some sort of button on the page to request the calculation or can it be triggered automatically?

View Replies View Related

Math.round

How can I round the value to the nearest whole number. I have searched on math.round but
can not get it to function. Here is how I am getting the results if not division by zero. Code:

View Replies View Related

Math Calculator

I just developed a simple math calculator using c# in asp.net, now i want to be able to check for the higest and lowest answer from the label control, how to do this?

View Replies View Related

Math Functions In Forms

I have several forms written in asp and I would like to make a couple of the fields autocaculate, but I have no clue how to go about this. I only need addition and division.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved