Mathematics forum

Mathematics is a big part of web development, but at the same time it’s not language specific.

Any chance of a maths forum page being added?

I’t seems to me that if you had a Math question that didn’t “fit” in a web dev forum, posting the question in General Chat might attract the attention of a Math wiz or three.

Thanks Alex.
I forgot to come back here last night. I’d ment to, but some friends turned up. I had the right equation, but the wrong number for the 12th root of 2. Once I knew what it was called, I searched for it and found the right decimal equivalent :slight_smile:

The guitar is working properly now, but some of the initial sounds are out. A friend’s recording his beauty this weekend and giving me permission to use the samples :slight_smile:

There’s MathML, a markup language based around the notation of mathematical equations. :slight_smile:

OK, I’ll ask the same question that uses the same mathematics but relating only to html elements :slight_smile:

I’m creating a guitar fretboard. The containers width is 700px. The maths I’ve used for the individual frets, styled with CSS, is

dim s,f,fret_width,fret_left
for s=0 to 5
response.write ".s" & s & "{top:" & 15 * s & "px;}" & vbcrlf
response.write ".f0{left:700px;width:6px;}" & vbcrlf
for f=1 to 20
response.write ".f" & f & "{left:" & fret_left & "px;width:" & fret_width & "px;}" & vbcrlf
response.write "#strings span.f21{left:0px;width:" & fret_left & "px;font-size:5px;height:5px;margin-top:5px;}" & vbcrlf
response.write "#sounds object,#sounds embed{display:block;float:right;width:" & (700-fret_left) & "px;height:1px;margin:7px 0px;z-Index:0;}" & vbcrlf

Is fret_left-int(700/(1.059463094^(f+1))) the correct equation to use?

BTW, the tilting and opacity of the maze are not done in javascript, they are done with CSS using stylesheet changers :slight_smile: And will work with or without javascript.
I’m making it to use the livescript functions, so it will work without javascript, and would be controlled by the server. I will then be able to make it so people can’t cheat by changing the javascript through the address bar. I will just use <a href=“index.asp?left=1&down=1”> and use changeScript to make it dynamic. The response from the server will just be the javascript to move the cube provided there is no wall in the way.

A question on the mathematics of how to get an object in the browser to move in a particular way (such as rotating) is a web related question and would belong in the JavaScript forum.

It is web development but your question about the equations frelates to the web page content and not to the design or development of the page. As such that question belongs on a forum that deals with that type of content where you are far more likely to find someone who knows the answer.

o rly? :smiley:

perhaps you can give an example, and explain why you chose to use the adjective “big”

My guitar is out of tune :frowning:
I’m not sure if it’s the media player that’s getting it wrong, or my equation to pitch shift sounds from one note to another.

I use the same equation used for compound interest.

I chose the word “big” as the web can be used for much more, when people think outside the box :slight_smile:

The equation I’m using is

Select Case noteCount
 Case 1
 Case 6
End select

The above sets the initial rate offset depending on whether 1 sound does the whole guitar or 6 (the initial sound of each open string).

The maths I’m using is


where i is the number of the string being played


is the variation taken from a database
eg, for D I’ve stored “X,X,0,2,3,2 X,5,4,2,3,2 5,5,7,7,7,5”, which is the 3 variations, in an array of 18.
A standard D is X,X,0,2,3,2 where X is the strings not played, 0 is open string, 2 is on fret 2

The initial notes where recorded from a guitar just tuned, although not a very good one, but that shouldn’t matter as so long as the initial notes are in tune and the maths is correct, the rest should be in tune.

Thanks Felgall.
I’m sure there are some mathematicians here that are better than me, and like music. I’d rather not subscribe to another forum just for one piece of small maths.
I also had a problem with the maths of my maze and it’s tilting. One that isn’t language based or music based. I spent hours trying to work it out, it would have been great to come here and ask.
Now the maze has tilt, I would also like to give it rotation, but that is even bigger mathematics. Once it has rotation it almost becomes a 3d engine in pure HTML, CSS and JavaScript, although at the moment without percpective.
If I made it so it could rotate, I would not be limited by the height of the walls.
At least on a programmers forum people would understand the concept and its language.

There is a firefox page that might work on other browsers
Uses the same maths

I’m looking forward to when HTML5’s <audio> comes out as that is supposed to allow rate setting.

maths in web development would be like calculating widths of DIVs or something like that

The guitar is a web page, that’s in development. Why is that not web development?

i would suggest that the maths in your example pertain to music, not web development

maths in web development would be like calculating widths of DIVs or something like that

i like your page, though, although i couldn’t get it to do anything interesting, and i wouldn’t know an augmented fifth from an armadillo

On Apple’s demo pages within their site there is a percpective demo page.
Implementing that, and not just in the way Apple do, is going to need some serious maths.
A new forum might not get used very much to begin with, as CSS3 doesn’t get used much, but it will be needed in the future, more than knowing how to display something on a page, which most of us can do quite easily.

One example would be the maths for the speed of scrolling or moving of objects, start slow, speed up, end slow type maths. I saw a site using it as it was a part of their CSS3 demo. They didn’t need the maths as it was implemented within the CSS as an attribute, but the same maths would be good to use in other areas. I can’t even remember the name of equations they were using, but it was shown in various graphs.

In the words of Mrs Doyle, go on, go on, go on, go on :smiley: