text:
[–][deleted]  (19 children)

sorry, this has been archived and can no longer be voted on

[deleted]

[–] 19 points20 points  (8 children)

sorry, this has been archived and can no longer be voted on

What route did you take to end up doing that?

[–][deleted]  (7 children)

sorry, this has been archived and can no longer be voted on

[deleted]

[–] 9 points10 points  (5 children)

sorry, this has been archived and can no longer be voted on

What were the make-up courses like? Because I assume they made you take senior level biology classes or something to get caught up on the material

[–] 5 points6 points  (3 children)

sorry, this has been archived and can no longer be voted on

Yeah thats what I'm worried about when I try to go to grad school. Was a Math undergrad but looking to get a Masters in Engineering and I'm worried about all the makeup courses ill have to pay for to actually start taking grad classes

[–] 3 points4 points  (1 child)

sorry, this has been archived and can no longer be voted on

For engineering they'd probably be hard as hell if you have my experience. I'm a math/physics double major, my school is 100% theoretical for math and I can't imagine how I'd go into applied math grad school, let alone engineering without the physics education I also have.

[–]Statistics 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

It's actually not that bad. I'm in a statistics PhD program right now, with a BS in Math and a minor in Physics. My undergraduate education was almost entirely pure mathematics, and I had almost no knowledge of statistics before I started the program. Math degrees are much more flexible than you'd think.

[–] 3 points4 points  (0 children)

sorry, this has been archived and can no longer be voted on

Could you please explain how you did this? I'd like to do the exact same switch.

[–]Differential Geometry 14 points15 points  (6 children)

sorry, this has been archived and can no longer be voted on

really? what type of math?

[–][deleted]  (3 children)

sorry, this has been archived and can no longer be voted on

[deleted]

[–] 15 points16 points  (1 child)

sorry, this has been archived and can no longer be voted on

It's also completely fundamental to digital signal processing. Computers and brains have a lot in common.

[–] 2 points3 points  (0 children)

sorry, this has been archived and can no longer be voted on

You got that right. Few people realize where the ideas for computers come from. ;)

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

I posted this in a thread I made a few days ago but I think everyone should really hear this advice. If you're planning on going into research, learn as much linear algebra as humanly possible.

[–]Geometry 29 points30 points  (0 children)

sorry, this has been archived and can no longer be voted on

The brainy kind.

[–] 3 points4 points  (0 children)

sorry, this has been archived and can no longer be voted on

Not sure what OP is doing, but if he is on the experimental side of things, there is a lot of very complicated math that goes into the processing of MRI, FMRI and PET scans.

[–] 10 points11 points  (0 children)

sorry, this has been archived and can no longer be voted on

Turns out math is very useful for neuroscience everything.

Welcome aboard.

[–] 7 points8 points  (0 children)

sorry, this has been archived and can no longer be voted on

Got any cool papers involving interesting combinations of math and neuro? I'd enjoy a fun read at the end of a work week!

[–] 2 points3 points  (0 children)

sorry, this has been archived and can no longer be voted on

That's interesting - I did a Cognitive Science minor with my math degree just because I found it fascinating. Didn't run into much direct need for math in undergrad CogSci study, though.

I have a pretty cool job, but I envy yours.

[–] 28 points29 points  (4 children)

sorry, this has been archived and can no longer be voted on

I am teaching 2nd grade and sharing my love of maths with 7-year-olds.

[–] 29 points30 points  (3 children)

sorry, this has been archived and can no longer be voted on

"Kids, today we're going to be learning about applications of Euler's formula in the analysis of ordinary differential equations."

[–]Probability 38 points39 points  (0 children)

sorry, this has been archived and can no longer be voted on

"But we learned that last year!"

[–] 2 points3 points  (1 child)

sorry, this has been archived and can no longer be voted on

[–] 25 points26 points  (7 children)

sorry, this has been archived and can no longer be voted on

Started out as an art major in college. Took some math classes and really got into it. Graduated with my degree in both, but ended up in math grad school so I could "make money" (but also b/c I like it). Physically, math has taken me to Northfield, Baton Rouge, Boston, Princeton. Hopefully more exotic places, eventually.

[–] 3 points4 points  (0 children)

sorry, this has been archived and can no longer be voted on

I had a linear algebra professor once say "People often ask me what math is good for. Well, it's certainly good for travel!"

[–] 2 points3 points  (3 children)

sorry, this has been archived and can no longer be voted on

Northfield, eh? Seems to be a pretty mathy town. Three folks in my Ph.D. program (of about thirty-five total) were Northfield undergrads, and now I'm teaching at one of the colleges.

[–] 2 points3 points  (2 children)

sorry, this has been archived and can no longer be voted on

Someone posted a chart the other day that listed the rate of PhD pursuit by undergrad degree granting institution. Carleton College was around 6th on the list, with 10% of their students continuing to the PhD level.

Edit: St. Olaf is also in Northfield.

[–] 1 point2 points  (1 child)

sorry, this has been archived and can no longer be voted on

I would like to see this list if anyone has it.

Edit: Could be this if anyone else is interested

http://www.thecollegesolution.com/the-colleges-where-phds-get-their-start

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

http://iraa.trinity.edu/Documents/ir_docs/Baccalaureate%20Origins%20of%20Doctoral%20Recipients.pdf

Page 3 is similar to what I was thinking of. Can't find more recent data at the moment.

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

Math took me to Northfield as well, but also Poland, Hungary, and Singapore.

[–][S] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

What art did you major in? Did math help you in said field? And do you still use those art skillz?

[–] 20 points21 points  (22 children)

sorry, this has been archived and can no longer be voted on

I went into engineering. Image and video processing, to be exact. This area of electrical engineering (you can also enter from the computer science side) is really just programming and math.

[–] 5 points6 points  (20 children)

sorry, this has been archived and can no longer be voted on

TBH, all of electrical engineering is basically programming and math. (and arguably programming itself is just a part of math).

[–] 9 points10 points  (8 children)

sorry, this has been archived and can no longer be voted on

arguably programming itself is just a part of math

Well, if you want to view it theoretically, programming is mathematics: execution times, algorithms, complexity, logic and sets. But in reality, programming is more about maintaining efficiency, managing bugs, compatibility, etc. It's really more technical than mathematical.

[–] 6 points7 points  (0 children)

sorry, this has been archived and can no longer be voted on

Good point. This is where the distinction between computer science and software engineering comes into play. CS is execution times, algorithms, complexity, logic, sets, etc. and software engineering is maintaining efficiency, managing bugs, compatibility, etc.

[–] 3 points4 points  (3 children)

sorry, this has been archived and can no longer be voted on

It's also about writing clean code. A huge part of programming is actually communicating with other humans moreso than with the computer.

[–] 0 points1 point  (2 children)

sorry, this has been archived and can no longer be voted on

I think one of their thoughest challenges is managing complexity. If they can keep the program as several small modules, each of them as simple as possible, then it makes the life of whoever has to manage the source code easier.

[–] 0 points1 point  (1 child)

sorry, this has been archived and can no longer be voted on

That depends really. Small isn't always better (and big is almost never better). There are lots of tradeoffs in programming and complexity generally comes from taking one tradeoff to the extreme.

[–] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

I didn't express myself well. What I wanted to mean with smaller was more manageable.

[–] 0 points1 point  (1 child)

sorry, this has been archived and can no longer be voted on

But in reality, programming is more about maintaining efficiency, managing bugs, compatibility, etc.

You're talking Software Engineering, not programming, programming is a part of SE and as such, programming itself is very logic driven.

[–] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

programming itself is very logic driven.

So is math.

[–] 4 points5 points  (10 children)

sorry, this has been archived and can no longer be voted on

Someone asked me after I said I was about to finish my EE degree and they asked if I really used imaginary numbers that often.

They couldn't believe when I said that doing calculus with them actually made the work easier.

[–] 1 point2 points  (7 children)

sorry, this has been archived and can no longer be voted on

You gotta love complex path integrals.

[–] 1 point2 points  (1 child)

sorry, this has been archived and can no longer be voted on

RF engineering truly is black magic.

[–]Statistics 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

I did that for a bit and my understand is that it really is black magic.

[–] 1 point2 points  (4 children)

sorry, this has been archived and can no longer be voted on

as a physicist, path integral probably means something completely different. I suspect you're talking about contour integrals in the complex plane.

[–] 0 points1 point  (1 child)

sorry, this has been archived and can no longer be voted on

Well he's talking about line integrals, which when we used to solve weird integrals are called contour integrals because of the relation to the cleverly chosen contour.

[–] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

Yeah, that is it.

[–] 0 points1 point  (1 child)

sorry, this has been archived and can no longer be voted on

Eh, I would blame Feynman for this one. "Path integral" is an unfortunate name.

[–] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

I blame feynman for everything, so that's cool

[–] 0 points1 point  (1 child)

sorry, this has been archived and can no longer be voted on

Who exactly said that?

[–] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

My cousin's fiance.

[–] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

I did image processing research as a research assistant for my masters in math.

[–]Applied Math 31 points32 points  (8 children)

sorry, this has been archived and can no longer be voted on

After a BS in applied math I worked as a programmer/analyst at a mathematical consulting firm. Went back to school and got an MS in math, and I taught CS and Math classes while doing so. Went to another school for a Ph.D. in applied math, then took a job as a systems engineer at a defense firm. After some interesting career twists, I work at a different place and manage the design, fabrication, assembly, and test of spacecraft mechanical systems. I don't use math at all, and never saw this coming.

[–] 6 points7 points  (4 children)

sorry, this has been archived and can no longer be voted on

What medium do you work in now then?

[–]Applied Math 10 points11 points  (1 child)

sorry, this has been archived and can no longer be voted on

My applied math and strong physics background has helped me pick up a great deal of on-the-job mechanical engineering. So while I am involved with technical discussions and decisions (the details of the implementation are left to the team members), as the manager my work mostly boils down to dealing with lists, schedules, and budgets.

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

I bet you get paid through the roof to do it as well, congrats man/mam.

[–]Geometry 8 points9 points  (1 child)

sorry, this has been archived and can no longer be voted on

Mostly air, I expect.

[–] 2 points3 points  (0 children)

sorry, this has been archived and can no longer be voted on

This made me chuckle, why thank you.

[–] 4 points5 points  (2 children)

sorry, this has been archived and can no longer be voted on

What mathematical consulting firms are there and what do they do?

[–]Applied Math 3 points4 points  (0 children)

sorry, this has been archived and can no longer be voted on

A google search will start turning these firms up. Terms to look for include "mathematical consulting", "operations research consulting", and "statistical consulting". After you find the web pages of the companies you'll start to see all the things that they do.

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

All finance consulting firms have a quant group within them. Level of quantitative depends from firm to firm. Generally hedge funds and investment banks have more sophisticated models.

[–] 13 points14 points  (4 children)

sorry, this has been archived and can no longer be voted on

I'm doing a PhD in physics but I make some extra cash on the side by being a mathematical/statistical consultant.

[–] 2 points3 points  (3 children)

sorry, this has been archived and can no longer be voted on

Physics got me into Math and I've long thought about doing something with Math also on the side. Can I ask what type of stuff you consult for?

[–] 4 points5 points  (2 children)

sorry, this has been archived and can no longer be voted on

Basically I try to forecast the cost effectiveness of public health projects.

[–] 1 point2 points  (1 child)

sorry, this has been archived and can no longer be voted on

Interesting, thank you. I'm guessing this is government related contracting work?

[–] 2 points3 points  (0 children)

sorry, this has been archived and can no longer be voted on

I think the guy I work for has a contract with the government, but I don't really know the details.

[–] 60 points61 points  (17 children)

sorry, this has been archived and can no longer be voted on

From being a drunk undergraduate, to being a drunk PhD student, to being a drunk postdoc.

[–] 9 points10 points  (4 children)

sorry, this has been archived and can no longer be voted on

[–] 29 points30 points  (1 child)

sorry, this has been archived and can no longer be voted on

I think the advice is "don't drink as much as I do."

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

In general or with respect to being a drunk?

As far as the drinking and doing research goes I'd say stick to doing the more creative conceptual stuff when you are hungover/drinking and try to be in good mental shape for actually writing down the details in proofs and doing computations. This will save a lot of pain in my experience.

One should also not underestimate the connections one can make with other mathematicians, especially those higher up the academic ladder, by going to the pub. Like anything else it really helps to network.

[–]Group Theory 12 points13 points  (11 children)

sorry, this has been archived and can no longer be voted on

Change that to 'stoned' and you have described my journey.

[–] 13 points14 points  (1 child)

sorry, this has been archived and can no longer be voted on

Asymptotically near the line between sanity and insanity.

[–] 2 points3 points  (0 children)

sorry, this has been archived and can no longer be voted on

That is really good :D lol'd

[–] 20 points21 points  (0 children)

sorry, this has been archived and can no longer be voted on

To the bottom of several bourbon bottles.

[–]Geometry 41 points42 points  (8 children)

sorry, this has been archived and can no longer be voted on

Two years older and deeper in debt.

[–] 26 points27 points  (0 children)

sorry, this has been archived and can no longer be voted on

St. Peter don't you call me, cause I can't go. I owe my soul to the campus book store.

[–] 8 points9 points  (6 children)

sorry, this has been archived and can no longer be voted on

I'm so scared this will happen to me

[–] 9 points10 points  (3 children)

sorry, this has been archived and can no longer be voted on

It won't if you work hard and learn math like a boss. But in all seriousness, it opens up a lot of career options. Go for it, champ!

[–] 11 points12 points  (1 child)

sorry, this has been archived and can no longer be voted on

Like the option to commit suicide in a debt-laden depression.

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

Now this is getting close to the movie Pi

[–] 2 points3 points  (0 children)

sorry, this has been archived and can no longer be voted on

You forget luck.

[–][S] 1 point2 points  (1 child)

sorry, this has been archived and can no longer be voted on

Too scared. Though I have music as a fall back and wouldn't mind being a music bum anyway haha.

[–] 6 points7 points  (1 child)

sorry, this has been archived and can no longer be voted on

To infinity and beyond!

Alright maybe not quite infinity, but pretty high up. I'm an aerospace engineer.

[–] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

The limit is infinity. You just keep getting closer, but not quite there.

[–] 6 points7 points  (3 children)

sorry, this has been archived and can no longer be voted on

Well, math took me to endless frustration during high school.

I finished up into pre-calculus, barely passing every time. I felt like an idiot. It seemed like no matter how hard I tried, I didn't understand. I thought I'd understand something, and then I'd find out I was wrong. I'd understand something, but make a slight mistake on the test and get no points for the problem, for making mistakes I knew were wrong. I was actually diagnosed with a math learning disability.

I realized I wanted to be a physicist 2 years after I graduated high school, and decided I needed to review math. Bizarrely, my ACT math score from when I was 15 somehow placed me into calculus.

I overshot my goal by a bit. I ran out of review and just started learning calculus, figuring it'd make the class easier if I knew a bit beforehand. I overshot that a bit too. Calculus I ends at chapter 5 of the big old math textbook the school uses for Calc I-III. I'm at the end of chapter 8, working on improper integration. I figure the class will reenforce what I've learned and add on anything I missed by accident.

So, uh...yeah. I went from not being in college, going "yeah, it'd be cool to be a scientist, but I'm so bad at math" to sitting in my chemistry class going "Man, this class would be more fun if the math was harder."

Admittedly I haven't gone anywhere other than "college" yet, but that's probably a decent start.

EDIT: Sorry if I sound like a douche, keep in mind my response to this is basically just "oh my god. How could my high school math teachers make anything this easy and this useful seem as hard and useless as they did?"

Seriously. My pre-calc teacher couldn't even explain the use of imaginary numbers to the class, the only example she could think of was "you would need to know about these to be a high school pre-calculus teacher."

So I was pretty glad to finally have what the hell those are useful for explained when I got to the early ODEs.

[–][S] 3 points4 points  (1 child)

sorry, this has been archived and can no longer be voted on

Didn't sound douchey at all man. So glad you found the love of maths, sounds like it took some work but would obviously be rewarding.

[–] 2 points3 points  (0 children)

sorry, this has been archived and can no longer be voted on

Glad to hear it didn't sound douchey.

To be honest I like it because it always feels vaguely like magic.

"She turned me into a newt, and she found the volume of an irregularly shaped three dimensional object by integrating an infinite number of two-dimensional planes!" "A WIIIIIIIITCH! Burn her!"

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

Sounds fairly similar to my path actually. Hated math in HS. Started college as communications major. Finished on time as a Physics major. First year was really hard but absolutely loved it after that.

[–] 21 points22 points  (6 children)

sorry, this has been archived and can no longer be voted on

I found out juggling is just very, very creatively applied maths and physics.. I don't really do anything with math, it just helps me be a better juggler:)

[–][S] 6 points7 points  (4 children)

sorry, this has been archived and can no longer be voted on

That's awesome. Could you elaborate though? How exactly did math/physics help? Ie. was it through an understanding of gravity? Or perhaps an analysis of rhythm and time through oscillations, similar to this? Edit: wrong link haha.

[–] 14 points15 points  (2 children)

sorry, this has been archived and can no longer be voted on

[–] 4 points5 points  (0 children)

sorry, this has been archived and can no longer be voted on

My QM professor has a love for Java apps. He'll love this.

[–][S] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

Better then I could have imagined. Math never ceases to amaze me.

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

I never got around to learning advanced maths, only up to some usual integrals and stuff.. However the basic principles, the rhythm, understanding of how different forces interact - gravity, centrifugal, momentum.. This and some dancing classes immensely help not only in learning particular tricks but to also understand the principle and explore beyond just static patterns.

Also, I do firepoi - a (burning) weight on a lenght of a chain in each hand. Doing a longer exposure photo can lead to beautiful geometric shapes - Triquetras or Antispin Flowers being the best examples.. And so on:)

Not to mention that most juggling styles can be written in some kind of a mathematical notation with varying difficulty according to the particular prop. Juggling siteswaps being the easiest, probably.

[–]Applied Math 4 points5 points  (0 children)

sorry, this has been archived and can no longer be voted on

My professor actually gave us a lecture in juggling once last year. Here's a similar lecture he gave about juggling, it's realllly cool.

[–] 6 points7 points  (2 children)

sorry, this has been archived and can no longer be voted on

Graphics programming and procedural generation. It's amazing what happens when you put simple formuae together and combine them. I've been experimenting with feedback systems for both graphics and gameplay purposes (...or just drawing funky fractals) and using Linear Algebra to hack my way around vertex shaders.

Higher Math is one of those things that I'll always welcome in to my mental toolbox, even though I usually just use a sine-wave 'hammer' at the end of the day.

[–][S] 0 points1 point  (1 child)

sorry, this has been archived and can no longer be voted on

I've always been impressed/intrigued with the use of mathin various art forms. Is this a self-imposed project or are you employed to do this? If the latter, how'd ya get there?

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

It's mostly a hobby. I'm currently interning at a game company as a general code monkey, but I've been showing my side projects to VFX artists and graphics programmers trying to gain some traction. You should give /r/proceduralgeneration a look-see, if you like getting your math in your art.

[–] 13 points14 points  (1 child)

sorry, this has been archived and can no longer be voted on

More school.

[–][S] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

The pursuit of knowledge.

[–] 6 points7 points  (2 children)

sorry, this has been archived and can no longer be voted on

To a job applying math to industrial applications in Austria.

[–] 1 point2 points  (1 child)

sorry, this has been archived and can no longer be voted on

What do you do more specifically?

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

I went ahead and continued my education to get the Ph. D. with no real idea of what I wanted to do afterward. I applied to a job over here that I did not get, but someone passed my resume around until it ended up with my now current boss.

Basically, I work in a research group that works on math modeling projects, mainly involving inverse problems (think image denoising and deblurring). My research is in linear system solvers which shows up often as a component in inverse problem codes.

[–] 5 points6 points  (6 children)

sorry, this has been archived and can no longer be voted on

I ended up studying in America for a year as part of my degree because my grades where good, never expected that.

[–] 3 points4 points  (5 children)

sorry, this has been archived and can no longer be voted on

where are you from originally?

[–] 2 points3 points  (4 children)

sorry, this has been archived and can no longer be voted on

England :D

[–] 3 points4 points  (1 child)

sorry, this has been archived and can no longer be voted on

Sorry to hear that.

[–] 2 points3 points  (0 children)

sorry, this has been archived and can no longer be voted on

That I ended up in the US for a year or that im from the UK?

[–] 0 points1 point  (1 child)

sorry, this has been archived and can no longer be voted on

That automatically makes you awesome. English accents rock! (I am from the USA)

[–] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

Thanks. I miss the US accents I used to hear on a daily basis. It can be quite easy on the ear (I when talking to someone I sound massively posh imo).

[–] 6 points7 points  (0 children)

sorry, this has been archived and can no longer be voted on

Did my undergrad, got a Ph.D., now a (visiting assistant) professor of the teachy sort. It's a good life if you can put the pieces together, but the job market is pretty tough right now.

[–]Representation Theory 5 points6 points  (2 children)

sorry, this has been archived and can no longer be voted on

Hope the hospital is nothing serious. Get well soon.

Math saved my life. Education is the great equalizer.

My family wasn't very big on education, if not outright anti-intellectual. School was viewed as a waste of good earning years. Once the family business imploded in my teens, the obvious options were law enforcement or the military until my high school teachers took notice. Until then, I hadn't even entertained college as a possibility.

Fast-forward to a PhD in Math, with postdocs taking me from South Jersey to extended stays in Stockholm, Boston, California, and Oklahoma/Texas, and shorter stays all over. It was an awesome run, but I had to walk away from a great job mid-tenure to return East for family. That pretty much stalled the academic career.

From there, I was near NYC, so actuarial work it would be. The exams were fun, although what I learned about healthcare finance was terrifying. The money was good, but I knew my calling was elsewhere.

Strangely enough I'm following in the family footsteps of small business. My big passion is teaching on YouTube and contributing content to ureddit. In a year and a half, I've reached more students than I'll ever have in a lifetime of classroom work. I'm excited to see what comes next....

[–] 1 point2 points  (1 child)

sorry, this has been archived and can no longer be voted on

what I learned about healthcare finance was terrifying

What did you see?

[–]Representation Theory 4 points5 points  (0 children)

sorry, this has been archived and can no longer be voted on

Much of this is in the news, where I expect some sensationalism. Seeing it in my textbooks was sobering.

Annual healthcare inflation. Basic compound interest problem, but with the interest rate around 10%. It's the Gordian knot of the healthcare crisis, and the first round of healthcare reform seems to have given it a pass.

A longer-lived population coupled with lower birth rates means fewer workers to support the social safety net. Brace yourself. The Boomers are retiring.

Getting familiar with health plan costs and mortality tables, and how they apply to myself and family. These issues become a little bit more real.

I did a lot of data scrubbing. It was always a drag when a spouse dies or when someone dies just before or after retiring. I never knew these people, but I did know their names and usually remembered them from the previous year.

[–] 5 points6 points  (0 children)

sorry, this has been archived and can no longer be voted on

I went pretty far with math education. When I finished grad school, I did something completely different and went into business. I relied heavily on logic, problem solving and all forms of economics and game theory.

I retired a while ago. I mostly tinker with cars, go running, drive my kids places, and when I'm done driving for the day, I swim and drink scotch while occasionally browsing reddit.

[–] 4 points5 points  (3 children)

sorry, this has been archived and can no longer be voted on

Database marketing

[–] 1 point2 points  (2 children)

sorry, this has been archived and can no longer be voted on

More or less what I'm doing...

[–] 1 point2 points  (1 child)

sorry, this has been archived and can no longer be voted on

There's the odd bit of fun analytics, mostly dull bar graphs though

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

Well, I do a lot of analytics; I haven't had to make a bar graph yet.

I guess I mean to say what I do is similar. I'm in the "marketing technology and analytics" industry.

[–] 5 points6 points  (0 children)

sorry, this has been archived and can no longer be voted on

Into electrical engineering!

[–][deleted]  (3 children)

sorry, this has been archived and can no longer be voted on

[deleted]

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

What do you think of the Chinese math education? I'm currently teaching here at an international school so the students come from a Chinese math background into our Western style of classes. I've always been curious what this transition is like for them as I don't quite know their public system well enough. My students always say that math in their public schools is so much harder than what we learn, but is it really?

[–] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

my wife is doing her masters in math education. glad to know it may take her career somewhere.

[–][S] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

I like this. I've always wanted to travel and to think I could do it via maths gives me a little quiver..

[–] 5 points6 points  (3 children)

sorry, this has been archived and can no longer be voted on

professional poker player for 4 years and now a secondary (high school) maths teacher

[–][S] 1 point2 points  (2 children)

sorry, this has been archived and can no longer be voted on

How successful were you? And I've always wondered what deems someone as a 'professional' player.

[–] 2 points3 points  (0 children)

sorry, this has been archived and can no longer be voted on

I'm thinking that if he wasn't very good, he wouldn't be able to play it for very long.

[–] 2 points3 points  (0 children)

sorry, this has been archived and can no longer be voted on

my definition of a pro player is that there main income comes from poker. in my case my only income. didnt make a fortune, just enough to pay the bills and take roughly 6 months of holidays a year (am very lazy)

[–]Discrete Math 4 points5 points  (2 children)

sorry, this has been archived and can no longer be voted on

My undergraduate and masters research work has lead me to doing mathematical research for a gold-mining company in Australia and helping neuroscientists at a hospital for sick children.

[–][S] 1 point2 points  (1 child)

sorry, this has been archived and can no longer be voted on

Is the work with the gold mining company statistics based? what is actually involved? Thanks

[–]Discrete Math 2 points3 points  (0 children)

sorry, this has been archived and can no longer be voted on

No, it was graph theory based. They gave us locations of ore underground, and then we designed a mineshaft layout that minimized construction + operation while fitting under some of their constraints, like ventilation and minimum curvature for trucks.

[–] 4 points5 points  (1 child)

sorry, this has been archived and can no longer be voted on

Insurance...but I do not recommend it. Boring and a true soul killer industry. The true dark side stay away.

[–][S] 2 points3 points  (0 children)

sorry, this has been archived and can no longer be voted on

Cheers forthe warning.

[–] 4 points5 points  (0 children)

sorry, this has been archived and can no longer be voted on

QA Engineer

[–] 8 points9 points  (2 children)

sorry, this has been archived and can no longer be voted on

When you're in academia everyone tries to sell you that "pure math" and being a career academic is the only way to happiness. I did physics with a minor in statistics. Screw academia, sell out. The private sector is great.

I'm a data analyst with a focus on business intelligence, but essentially anyone with a solid handle on stats and a willingness to learn a bit of the business side can do really well in this or similar fields. The private sector is drooling for anyone with a math/stats background that has a half-decent capacity to interact with business people.

"Data-driven" companies are rapidly becoming the norm, and your expertise will be appreciated and put to good use. If you're good at it you can make great money and work at almost any company you want. You'll have to supplement your mathematical/science skills with other ones like Marketing, Business, and Communication to be really successful, but as long as you're not too much of a purist to thumb your nose at those "lesser" fields (which really are interesting in their own right), you will do very well for yourself and find meaningful and fulfilling work.

[–][S] 2 points3 points  (1 child)

sorry, this has been archived and can no longer be voted on

This is interesting. I've always been leaning towards pure math but your post has left me unhinged. The thing I like most in math is the pursuit and hopefully discovery of new ideas. My question is; is there room for discovery of mathematical ideas in such a career?

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

Sorry for the delayed response. Of course, it depends. Certainly it's possible. But it's much less likely you'll be generating the types of findings that end up as chapter titles in textbooks. You're work will be more nuanced, filling a specific niche, but there will be near-immediate practical applications of this work that can make a significant impact on lots of people. Think of projects like Amazon's recommendation engine, adding new functionality to Mathematica, working out the song matching logic for Pandora, working on SpaceX, or (shudder) the finance sector. In these and other scenarios you may not be "creating new knowledge" in the academic sense, but you will be creating new applications of knowledge that have never been done before by anyone else.

[–] 3 points4 points  (0 children)

sorry, this has been archived and can no longer be voted on

Turns out math is very useful for applied physics and electrical engineering. So I'm in university right now. We'll see where I'll be when I get my masters degree.

[–]Mathematical Physics 3 points4 points  (2 children)

sorry, this has been archived and can no longer be voted on

Into a part of my undergraduate career where, despite my resume including solid internships/jobs/publications from first semester onward, I still have no money to show for it and don't even have a stable place to live.

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

do tell. sounds like myself.

[–] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

[–]Mathematical Physics 3 points4 points  (0 children)

sorry, this has been archived and can no longer be voted on

Always [since HS] knew I'd do physics. Here I am.

[–] 3 points4 points  (0 children)

sorry, this has been archived and can no longer be voted on

To my computer screen more often than not. Whether that be investigative little bits of code for things that are at a comfortable level of difficulty to think about, or playing through a game where higher concepts that are used seamlessly to create 3D worlds to explore.

[–] 3 points4 points  (2 children)

sorry, this has been archived and can no longer be voted on

My phd is in computational electromagnetics. Heavy physics, heavy math. Math has allowed me to describe incredible physical phenomena in a succinct manner leading to a bad ass job.

[–] 1 point2 points  (1 child)

sorry, this has been archived and can no longer be voted on

[–] 2 points3 points  (0 children)

sorry, this has been archived and can no longer be voted on

Biological modeling. I went from pure biology to modeling. I am now trying to develop algorithms for epidemic modeling.

[–] 3 points4 points  (0 children)

sorry, this has been archived and can no longer be voted on

Math has thought me how to think. Logic. Finding faulty arguments. No, this does not imply that. I do math erryday and love every agonizing minute of it.

[–]Number Theory 3 points4 points  (2 children)

sorry, this has been archived and can no longer be voted on

Computer Science and Math major at the moment. I thought about going to graduate school for math, but now I'm not so sure. Embedded systems look very interesting so I might go into that field.

[–] 2 points3 points  (1 child)

sorry, this has been archived and can no longer be voted on

as an BSEE/MSCE, embedded systems is a very wide field...from robotics to running 'hello world' on a a PICAXE. it's not as fun as i thought it would be. however, given your math background, maybe go into running complex algorithms/equations on embedded systems given their sometimes limited hardware?!?! just my $0.02. [–]Number Theory 1 point2 points (0 children) sorry, this has been archived and can no longer be voted on Yeah, that's pretty much what I'm considering at the moment. Thanks for the advice! [–][deleted] (2 children) sorry, this has been archived and can no longer be voted on [deleted] [–]Algebra 2 points3 points (1 child) sorry, this has been archived and can no longer be voted on Do you also not live with your mom? [–] 8 points9 points (0 children) sorry, this has been archived and can no longer be voted on I'm taking the unconventional route and pursuing playing poker professionally. You'd be surprised at how much statistics is involved, particularly expected value and variance [–] 9 points10 points (0 children) sorry, this has been archived and can no longer be voted on Math has taken me here. It builds the car that I drive, it flies the plane I ride, and governs the rate at which my microwave rotates. It serves me reddit pages and turns the wheels in my head. Where hasn't math taken me? [–] 7 points8 points (2 children) sorry, this has been archived and can no longer be voted on Math has so far taken me from unemployed to underemployed. In a year, I should be employed, and 2 years past then, I'm probably going to be overemployed. Then comes retirement, but that may take a while. /engineering student. [–]Statistics 2 points3 points (1 child) sorry, this has been archived and can no longer be voted on So as an engineer you see that as being employed the entire time! High Five! [–] 1 point2 points (0 children) sorry, this has been archived and can no longer be voted on Yes. I was previously a specialist in spatial occupation and resource dwindlement. [–] 6 points7 points (7 children) sorry, this has been archived and can no longer be voted on Finance/Wall Street [–] 2 points3 points (6 children) sorry, this has been archived and can no longer be voted on Where did you go exactly from Maths? and what got you in to finance? I've been thinking about this recently as an undergrad. [–] 1 point2 points (5 children) sorry, this has been archived and can no longer be voted on Graduate school in math, specifically Stochastic Calculus and Analysis. Never finished my PhD, left with a MS. Got picked up by a financial services firm. I do miss the challenge and fun of doing pure math but I don't regret the decision one bit. The pay gap is just too big. [–] 1 point2 points (4 children) sorry, this has been archived and can no longer be voted on So, out of curiosity, what's your salary range? [–] 1 point2 points (3 children) sorry, this has been archived and can no longer be voted on My first job in 2009 was$70k base with no bonus. I am leaving for a new job this week which is \$130k base and a 35% target bonus. This is low by the standards of the industry.

[–] 0 points1 point  (2 children)

sorry, this has been archived and can no longer be voted on

Yep, I recently read a bit about these jobs. What about the environment? Long hours? Stress? Thank you.

[–] 2 points3 points  (1 child)

sorry, this has been archived and can no longer be voted on

If you are interested if finance then you should ask in /r/finance or /r/financialcarreers

The hours depend greatly on the firm culture and group. Front desk jobs usually have terrible hours, risk jobs are a bit better, while hedge funds have the best hours. Stress level depends on personality to some extent. If you are going to worry about work, career, end of year bonus etc. then you will be stressed out. The environment depends on the group. I was lucky enough to work with a lot of Math, Physics, Comp Sci PhDs and they were a great bunch of people. Then I worked a project with accountants and MBAs and they were ruthless, backstabbing assholes. So greatly depends.

My advice is to take some courses in Finance and Math at the PhD level, maybe do an quant internship. If you get into it for purely the money then you will turn into one of these self-hating assholes.

PS: Generally life is a compromise. Don't get a job just for the money or just because you will enjoy your work.

[–] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

I see, thanks a lot!

[–] 2 points3 points  (1 child)

sorry, this has been archived and can no longer be voted on

I volunteered in Cambodia for a while after college teaching math (and music and English), then got a job teaching math at essentially an international high school in China, though I almost went to Qatar and considered Sudan momentarily as well.

People don't think travel and math go together. They definitely do. So if you want to see the world, math is one ticket.

E: I should answer all of your questions, sorry. I didn't expect this, no. I was one of those who didn't think math and travel went together, and assumed I'd be teaching English to travel after graduating. I was quite wrong. It actually works out that being an English speaker with a math degree is perhaps MORE attractive to these types of schools though, so it worked out awesomely for me.

I mostly use math to teach it, I would say, but I also really love recreational problem solving, whether its math or programming, stuff like Project Euler, etc. Math applies itself really, really easily to comp sci and since I've gotten pretty good at algorithmic programming, that's helped me get into some more CS type jobs as well.

[–][S] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

Thanks for answering my questions. Travel is definitely one of my wants, so to hear you have done it so easily is a relief, if not strengthening this want haha.

[–] 2 points3 points  (0 children)

sorry, this has been archived and can no longer be voted on

Took me into various internet start-up and eventually into advertising. At first I felt like an oddity, but then met 2 other women, both with math degrees, in strategy and information design.

Can't say that we use the math we learned, but we apply the logic, problem solving and analytical skills we developed, making us kick-ass at our jobs.

[–]Algebra 2 points3 points  (0 children)

sorry, this has been archived and can no longer be voted on

Seems like at least one mathematics professor ought to respond, so here goes.

In high school, I loved mathematics and physics. Taught myself calculus at age 15. Attended two NSF sponsored summer projects, learning group theory and special relativity. Studied general relativity as a senior. Won full scholarships (couldn't have gone to college otherwise) to an ivy league school. Started as a physics major but switched to mathematics for philosophical reasons. Wasted time as an undergraduate on various extra-curicular activities.

Got into a very good graduate program, eventually got a PhD in algebraic topology, but was becoming dissatisfied. Something wasn't right. The job market was terrible, so for various reasons I took a tenure track position, but at a third rate school in the American South. Suffered culture shock, couldn't stomach the quality of the students. After getting some good advice, I left there and got a masters degree in CS from an excellent department. That was a very smart thing to do at that time. I loved CS, and loved programming. That was what was missing before; algebraic topology was just too relentlessly pure.

I then got a tenure track position at a good university not known for mathematics or science. Yet remarkably, the mathematics department was very good, full of known researchers with degrees from Princeton, Columbia, etc. I've been here ever since. I'm a full professor. I'm fortunate that this university has grown enormously in the last fifteen years or so in national standing. Things are very good here. I've found my niche developing mathematical software that does pure and applied mathematics. I develop my own methods to solve really cool problems in chemistry, operations research, lots of stuff.

[–] 6 points7 points  (4 children)

sorry, this has been archived and can no longer be voted on

Went into Economics. I was like: critical thinking about social issues AND I get to use math? Sign me up!

[–] 1 point2 points  (3 children)

sorry, this has been archived and can no longer be voted on

Awesome, that's something I'd love to do. If you don't mind, can you elaborate a bit about what path have you taken and what you do?

[–] 1 point2 points  (2 children)

sorry, this has been archived and can no longer be voted on

I hadn't heard about Economics before college, and took my first econ class my first year. I basically stuck with it after that, graduating with a math/econ double major. I had a strong suspicion that I wanted to go on to grad school in economics, but I wanted to work for a little while first (note: the unemployment rate was much lower when I finished college, so this may not be the best idea for you.) I got a job as a research assistant at the Urban Institute, where I got to work with economists. Convinced me that grad school was the way to go. Applied to top programs on down from there, and ended up going to U Michigan. It was a good experience. Hard, but good. Now I'm an assistant professor of economics, working toward tenure.

Other questions?

[–] 1 point2 points  (1 child)

sorry, this has been archived and can no longer be voted on

Sorry if I reply 3 months later but no, no more questions. Seems like you had a great experience!

[–] 5 points6 points  (5 children)

sorry, this has been archived and can no longer be voted on

[–] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

That looks really cool.

[–] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

I did that program back in the mid-90s. Great experience.

[–][S] 0 points1 point  (1 child)

sorry, this has been archived and can no longer be voted on

Would this be plausible for an Australian? It says American/Canadian on the website :(

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

I don't know. But I'm sure it wouldn't hurt to ask. They're great people!

[–] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

I did this in early 2000s. Was a pretty awesome experience.

[–] 6 points7 points  (1 child)

sorry, this has been archived and can no longer be voted on

Interesting topic, I'm still a student and I'm looking forward to read loads of stories here.

[–][S] 2 points3 points  (0 children)

sorry, this has been archived and can no longer be voted on

As am I. All the nurses keep asking me where I'm going to end up with my degree. I got sick (mind the pun) of explaining math was useful in almost all situations and thought I'd share with them your experiences as well as inspire myself :)

[–] 7 points8 points  (7 children)

sorry, this has been archived and can no longer be voted on

marketing = moneyz

math + marketing = shitloads of moneyz.

[–] 3 points4 points  (6 children)

sorry, this has been archived and can no longer be voted on

Please expand! In what way do you use mathematics in your marketing?

[–] 2 points3 points  (4 children)

sorry, this has been archived and can no longer be voted on

Digital analytics ain't bad. It's my field.

[–] 1 point2 points  (2 children)

sorry, this has been archived and can no longer be voted on

Why do you lie to people?

[–] 0 points1 point  (1 child)

sorry, this has been archived and can no longer be voted on

Hey man. Sorry for not responding to your comment day of. I spent yesterday helping my buddy move.

I'm based in New York, but I suggest you reach out to the agencies out there, namely, Ogilvy, MediaVest, Media Contacts, etc. Pound the pavement and shoot for an Analyst position.

I also suggest you work on your attitude. From your last comment, it seems a bit poor.

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

I used to be terrible at math but had a few good teachers in high school where I did well. Had a shitty full time job for a while which gave me motivation to do better in school. Figured out I can do math so now I'm a physics/engineering major and it's going to take me to Orlando to go to UCF in just a few semesters.

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

Mathematical reasoning is why I work as a SDE at a big tech company

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

Nowhere... because I am bad at math. Writing, on the other hand, has taken me from San Francisco, Ca to Rome, Italy. Mind the pun.

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

I've taken my maths degree and become a geophysicist, processing seismic data for oil companies to interpret. I, however, refer to myself as a "seismic wizard".

[–] 5 points6 points  (0 children)

sorry, this has been archived and can no longer be voted on

To hell and back again.

[–] 1 point2 points  (1 child)

sorry, this has been archived and can no longer be voted on

I've seen things you people wouldn't believe. Attack ships on fire off the shoulder of Orion. I watched C-beams glitter in the dark near the Tannhauser gate. All those moments will be lost in time... like tears in rain... Time to die.

[–] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

I don't think that was math. I think that was the Doctor.

[–] 1 point2 points  (0 children)

sorry, this has been archived and can no longer be voted on

To the library ;)

[–] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

A-Levels in Math has taken me to Physics Undergrad. Now I'm lurking in /r/physics aswell :/

[–] 0 points1 point  (0 children)

sorry, this has been archived and can no longer be voted on

Software builds, release engineering, and configuration management. A large fraction of build engineers at big companies are math majors.


text:
Question

# If $y={{\log }_{7}}\left( \log x \right)$ then, find $\dfrac{dy}{dx}$ .

Hint: We will apply the change base rule to convert base 7 to base ‘e’ by using the formula ${{\log }_{a}}b=\dfrac{{{\log }_{n}}b}{{{\log }_{n}}a}$. On applying this formula, we will get equation like $y={{\log }_{7}}\left( \log x \right)=\dfrac{{{\log }_{e}}\left( \log x \right)}{{{\log }_{e}}7}$. Then, we will differentiate both sides with respect to x and on solving we will get the answer. Formula used here are $\dfrac{d}{dx}{{\log }_{e}}x=\dfrac{1}{x}$, $\dfrac{d}{dx}\left( \log x \right)=\dfrac{1}{x}$.

Here, we have to differentiate the equation $y={{\log }_{7}}\left( \log x \right)$ with respect to x.
But we are having the equation in base 7. So, first we will apply the change base rule to convert base 7 into base ‘e’ i.e. natural base using the formula ${{\log }_{a}}b=\dfrac{{{\log }_{n}}b}{{{\log }_{n}}a}$
Here, we have $b=\log x$ and a as 7.
So, on using the rule, we can write it as
$y={{\log }_{7}}\left( \log x \right)=\dfrac{{{\log }_{e}}\left( \log x \right)}{{{\log }_{e}}7}$ …………………..(1)
Now, we will differentiate both sides with respect to x. So, we get as
$\dfrac{dy}{dx}=\dfrac{d}{dx}\left( \dfrac{{{\log }_{e}}\left( \log x \right)}{{{\log }_{e}}7} \right)$
Here, ${{\log }_{e}}7$ is constant term so we will take it out of differentiation and we know that $\dfrac{d}{dx}{{\log }_{e}}x=\dfrac{1}{x}$ . So, using this formula we will get equation as
$\dfrac{dy}{dx}=\dfrac{1}{{{\log }_{e}}7}\dfrac{d}{dx}{{\log }_{e}}\left( \log x \right)$
Now, we will be applying chain rule in differentiating $\dfrac{d}{dx}{{\log }_{e}}\left( \log x \right)$ . So, we get as
$\dfrac{dy}{dx}=\dfrac{1}{{{\log }_{e}}7}\times \dfrac{1}{\log x}\times \dfrac{d}{dx}\left( \log x \right)$
We also know that $\dfrac{d}{dx}\left( \log x \right)=\dfrac{1}{x}$ . On putting values, we get as
$\dfrac{dy}{dx}=\dfrac{1}{{{\log }_{e}}7}\times \dfrac{1}{\log x}\times \dfrac{1}{x}$
$\dfrac{dy}{dx}=\dfrac{1}{x{{\log }_{e}}7\left( \log x \right)}$
Note: Be careful while applying the change base formula. Sometimes instead of using ${{\log }_{a}}b=\dfrac{{{\log }_{n}}b}{{{\log }_{n}}a}$ , students take ${{\log }_{a}}b=\dfrac{{{\log }_{n}}a}{{{\log }_{n}}b}$ and whole answer gets wrong. If we use this wrong formula, then there are chances of getting incorrect answers and students will get confused while solving the equation. So, please remember the formula properly and then try to solve it.

format: plain


text:
# PHP 7.1 and PHPDocs

#1

We start discussing PHPDocs in PHP 7.1 project in other topics:

it will be nice to discuss at here as separate issue.

Why to bother?

With PHP 7.1 we can use type hinting (also for simple types) and return types defined next to the function. Often PHPDoc comment looks like duplicated information we already provided in method signature. However in PHPDocs we can add much more information and be more specific (for example as @PowerKiKi said: type-hint array and PHPDocs int[]). In PHPDocs we have to always add @throws tags as it is not specified anywhere in method signature (probably we should include all throws, even if it is thrown from other method call inside the function).

What do you think?

Should we always add FULL PHPDocs with @params, @return, @throws… even if it duplicates some information or add only needed PHPDocs part (when something is “different” than in signature)?

My opinion is that we should keep full PHPDocs, because:

• it will be consistent and clear
• we can use automated tools to sync comments with method signature (phpcs?)
• we can specify more information in PHPDocs, always have everything there, all params, throws and return type
• if we need add description to the variable/return type/throws we add it in PHPDocs. Not always is possible to chose descriptive-enough and short variable/param name.

If we decide to add only PHPDocs tags only when needed I can see following issues:

• if we want to add description to one param should we define all others also in PHPDocs?
• if we want to change type of variable (to be more specific - int[]) should we add also all others?
• how IDE/phpdocumentor (if anybody is using it) is gonna work with partial informations in PHPDocs?
• how we make sure that PHPDocs added only when needed is right and it’s not a bug - if we define it only in some functions it would be not clear if it is right that it’s there or its just mistake/residue.
• if we are going to use libraries that supports PHP 5.6/PHP 7.0 there will not be type-hinting/return types. If we implement/extend some interface/class from that library we would be able to add type hinting/return type because of declaration incompatibility. Should we then add only @inheritDoc, nothing, or PHPDocs with params/return/throws tags?

What do you think? What do you prefer? Maybe you have another ideas/comments?

Feedback on problem-details module
#2

I personally prefer to have docblocks only if they provide more information than I can glean from the signature. This would mean:

• Document with @param annotations only if the type varies, or if explanation of its purpose and/or value are required. This needs only be done for the specific arguments where this is needed, as the annotation includes the argument name.
• Document with @return annotation only if the type varies, or the return value needs an explanation.
• Document with @throws ALWAYS when a method explicitly throws one or more exceptions.
• If you can provide a meaningful description detailing the method’s purpose and usage.
• Document with @inheritDoc if the parent method’s docblock has additional information.

To answer the last bullet point, we will only be supporting PHP 7.1+ going forward, so the above should largely answer those things.

All of that said: my opinion is largely contingent on how phpDocumentor and IDEs interpret docblocks in these situations. If they do not handle them cleanly, then we should likely be consistent and add them everywhere, and, in such a case, I’d support having a phpcs rule that would detect if they are out of sync (and, better yet, fix them!).

#3

Thats how PhpStorm 2017.1.4 (May 16, 2017) generates docblocks:

    /**
* @param string $key * @param \ArrayObject$container
* @return string
* @throws \Exception
*/
public function methodExample(string $key, \ArrayObject$container): string
{
if ($container->count() === 0) { throw new \Exception(); } if (!$container->offsetExists($key)) { throw new \RuntimeException(); } if (!is_string($value = $container->offsetGet($key))) {
throw new \LogicException();
}
return $value; }  By default parameters and return type is added to docblock. Mismatch between docblock and method signature is reported as invalid docblock (warning, part of docblock underlined). Runtime and logic exceptions are skipped (default code style). Personally I like when docblocks are always there, even if something is self-explanatory. That’s also what I would expect from framework like Zend, where we got that “configuration over magic” (I know, it’s not related, but still got that on my mind). #4 @cpm Question: what does PHPStorm display for typehints for a method you’re calling if that method has PHP 7.1+ typehints and a subset of @param annotations? #5 The behaviour is consistent whether the docblock is there or not: the IDE will consider both definitions like with union types if there is a mismatch. It will also report un-documented @throws if any callee has an unhanded thrown exception that is documents as @throws in the callee. If it was for me, and we had full PHP 7.1 hints, I would completely drop docblocks except for following scenarios: • @param array (this always requires better specifications) • Same for iterable/Traversable • @throws of any sort: if the method throws or rethrows. This may look annoying, but is extremely important to eagerly detect BC breaks related to thrown exception types. A glimpse at the docblock changes in a patch and you know that an added or removed @throws is a problem #6 Exactly like that, it creates union if there is mismatch between both definitions (so type hint is like “string|int”) #7 All about PHPStorm is true, I’d like to highlight some issues: • by default PHPStorm generates full PHPDocs (always when we type before method /** and press “enter” the whole PHPDocs is generated) - does anyone know if we can configure it? I couldn’t find that option. • by default PHPStorm highlights issues if PHPDocs is not complete/not consistent - when there is missing param declaration, return type, throws or inconsistent types. I just found that it is configurable and it could be disabled to not check PHPDocs at all. Is anyone using PHPStorm EAP? Are there any changes in case of PHPDoc and PHP7.1? I’ve tested phpDocumentor with full and partial PHPDocs on PHP7.1. Here is repository I’ve created https://github.com/webimpress/php-docs and here is generated documentation for the library: https://webimpress.github.io/php-docs/index.html I described everything there, to summarize: phpDocumentor does not support PHP 7.1 yet, and because of that there are some issues. Mainly this tool is generating documentation based on PHPDocs, but it also analyze code in some degree (method params). Maybe with PHP 7.1 support it will be changed/improved. Last release (2.9.0) been on the 22nd of May 2016… I was thinking about partial docs and still I’m not convinced, but now I thinking that it should be possible to write also some sniffs which checks these PHPDocs and say if these are correct or not. We just need to specify all rules, when we can specify annotations and should be fine. But my biggest worry is that with partial documentation we have to look in “two places” to have full picture what is the function, what parameters it accepts and what exceptions it throws. We wouldn’t be able to read all of it from PHPDocs but from PHPDocs and function declaration. So when we look on the function we will create the same in our head what PHPStorm does with suggestion - union between PHPDocs annotations and function declaration. Probably it’s fine in case of small methods, not sure if in all cases it will be good enough. Regarding @throws annotation, IMHO we should always define all @throws - doesn’t matter if function throws it explicit or implicit, I mean: class Test { /** * @throws ErrorException * @throws RuntimeException */ public function m1(?int$a) : int
{
if ($a) { throw new ErrorException(); } return$this->m2();
}

/**
* @throws RuntimeException
*/
public function m2() : int
{
throw new RuntimeException();
}
}

@ocramius is that what you meant?

Another question: how we should specify ‘better’ type for iterable/Traversable? Should it be iterable<string> or string[]? If we go with first option, then for arrays we should do array<string> or string[], or maybe even array<int, string> which means “array with integer keys and string values”?
Currently PHPStorm for int[] in suggestion shows type as \int[], for array<int, int> suggestion is just array.

#8

I think https://www.thecodingmachine.com/type-hint-all-the-things/
clarifies this

<NAME>

http://ocramius.github.com/

#9

That’s not that easy. You have to consider that, as soon as you have any kind of dependency you are using, your method can suddenly throw anything (if you don’t have direct control over that dependency).

#10

Yesterday I’ve pushed new sniffs to ZendCodingStandard library with sniffs to check params, return type and throws in function. I’ve started preparing PR, first for zend-expressive-hal to check how it works with these sniffs and I have found several issues:

1. mixed/mixed[] type is sometimes useful, especially in tests, when we have for example:
public function invalidAttributeNames()
{
return [
'null'         => [null],
'false'        => [false],
'true'         => [true],
'zero'         => [0],
'int'          => [1],
'zero-float'   => [0.0],
'float'        => [1.1],
'empty-string' => [''],
'array'        => [['attribute']],
'object'       => [(object) ['name' => 'attribute']],
];
}

I think then we should allow using it.

1. What type we should define for multidimensional arrays, like:
return [
'foo' => 'bar',
'id'  => 12345678,
'self' => [
'href' => '/api/foo',
],
['href' => '/doc/resources/foo'],
],
],
'_embedded' => [
'bar' => [
'bar' => 'baz',
'self' => ['href' => '/api/bar'],
],
],
'baz' => [
[
'baz' => 'bat',
'id'  => 987654,
'self' => ['href' => '/api/baz/987654'],
],
],
[
'baz' => 'bat',
'id'  => 987653,
'self' => ['href' => '/api/baz/987653'],
],
],
],
],
];

In that case mixed[] can be a bit confusing (as it is not one-level array). Any ideas? Maybe we should allow just array?

1. It is not always possible to specify type for array/iterable/\Traversable, for example:
https://github.com/zendframework/zend-hydrator/blob/master/src/ExtractionInterface.php#L18

Another example would be from zend-expressive-hal:
https://github.com/zendframework/zend-expressive-hal/blob/master/src/ResourceGenerator/ExtractCollection.php#L44

These methods are very generic and we can’t provide better specifications.
I think we shouldn’t force it. Of course it should be allowed to provide better specification, because in some cases it will be possible and useful.

1. Type Generator - functions with yield, for example:
It’s kinda similar to Traversable, in perfect world we would like to have better specification but I think it is not always possible or pretty hard to do.

2. Tag @inheritDoc and {@inheritDoc}
https://github.com/phpDocumentor/fig-standards/blob/master/proposed/phpdoc.md#61-making-inheritance-explicit-using-the-inheritdoc-tag
The difference is:

• @inheritDoc when we inherit everything from parent method and we are not providing anything extra,
• {@inheritDoc} - when we inherit everything from parent and we extend description or specify type, more throws etc.
What do you think, should we allow using both of them? Currently I do not support any of them, and require define params/return type/throws always (only when needed as we agreed), but I can imagine in some cases with inheritance it will be duplicated many times.
1. Arrays with non-integer keys - let say array of strings with strings keys.
Here: http://www.icosaedro.it/phplint/phplint2/doc/reference.htm?p=docblocks#literalarrays
is suggested to use string[string] (old notation was array[string]string). If we go with string[string] PHPStorm doesn’t support it at all - and thinks that type is string not even string[].
Of course if keys are integers we should omit int in square brackets (as it is default).
Another notation I’ve seen is: array(string => string) (also not supported by PHPStorm).

2. Arrays with mixed values: but only (let say) int and string:
https://github.com/phpDocumentor/fig-standards/blob/master/proposed/phpdoc.md#arrays
It’s suggested there to use (int|string)[]. As I know, many people used int[]|string[] in that case, but I think (int|string)[] is more accurate - it means (for me) “array which contains ints and strings (at the same time)”, when int[]|string[] means “array of ints XOR array of strings”.

3. Generic types:
https://github.com/phpDocumentor/fig-standards/blob/master/proposed/phpdoc.md#collections
For example:

/**
* @param \ArrayObject<string>
*/

Should we allow that style of definition?

1. Defining array values:
https://github.com/phpDocumentor/fig-standards/blob/master/proposed/phpdoc.md#examples-12
/**
* @param array $options { * @var bool$required Whether this element is required
*     @var string \$label    The display name for this element
* }
*/

We do something similar here:

It is not supported by PHPStorm as far as I know.
Should we implement it or not?

That’s it for now. Please let me know what do you think on each of above points.
Below I prepared short questionnaire for all above points, hope it will help

1. Allow mixed / mixed[] types

• yes
• no
• another suggestion

0 voters

2. Multidimensional arrays:

• mixed[]
• just array
• another suggestion

0 voters

3. Do not require better specification for following types:

• array
• iterable
• \Travesable
• \Generator
• always require better specification for above types
• another suggestion

0 voters

4. Generators (included in point 4)

• any suggestions?

5. @inheritDoc and {@inheritDoc}

• disallow using both, always params/return type/throws need to be provided
• allow using both (CS checks cannot be done on method when one of these tags is provided)
• another suggestion

0 voters

6. Array with non-integers keys (array of strings with string keys):

• string[] is enough
• use string[string]
• use array[string]string
• use array(string => string)
• another suggestion

0 voters

7. Array with mixed values (int and string only):

• allow (int|string)[]
• int[]|string[] is clear enough and use it
• another suggestion

0 voters

8. Generic types:

• allow \ArrayObject<key-type, value-type>
• it is useless
• another suggestion

0 voters

9. Defining array values:

• use PSR-5 proposed standard with @var for each key
• keep old ‘standard’ (as it is in zend-code) with @configkey tag
• we don’t need any standards
• another suggestion

0 voters

#11

A few quick notes/observations:

• I see 3 and 4 as essentially the same question, particularly with the way you wrote the poll for 3. Generator is a valid return type, and while it may not indicate the items available, the main point is that you’re getting an iterable set. If more information is needed, that’s what the docblock is for. When a more specific type is known or expected, rule 8 surrounding collections/generics can kick in.

• 6 and 9 are also related. I’d argue that a mixed[] or string[] or similar indicates that an array is being returned with values of the specified type(s), while the { @var ... } notation indicates that an associative array is indicated.


text:
1. ## check

can someone tell me if this is right

6
x-1

7
2

19/2

i got that because i cancelled the x-1

but it just doesnt seem right

2. Originally Posted by seders99
can someone tell me if this is right

6
x-1

7
2

19/2

i got that because i cancelled the x-1

but it just doesnt seem right
Hi seders99,

Is this your problem?

$\frac{6}{x-1}+\frac{7}{2}=\frac{19}{2}$

or are you just simplifying the expression:

$\frac{6}{x-1}+\frac{7}{2}$?

3. just simplify the expression that you have listed

4. Originally Posted by masters
Hi seders99,

Is this your problem?

$\frac{6}{x-1}+\frac{7}{2}=\frac{19}{2}$

or are you just simplifying the expression:

$\frac{6}{x-1}+\frac{7}{2}$?
Originally Posted by seders99
just simplify the expression that you have listed
Ok, then.

$\frac{6}{x-1}+\frac{7}{2}=\frac{(6)(2)+7(x-1)}{2(x-1)}=\frac{12+7x-7}{2(x-1)}=\frac{7x+5}{2(x-1)}$


text:
# Problem: Suppose an oncoming ambulance moving at 115 km/h emits a steady 785-Hz sound from its siren.What frequency, in Hz, is received by a person watching the oncoming ambulance? The speed of sound on this day is 345 m/s

###### FREE Expert Solution

Let the speed of the sound be vw

Speed of the source be vs

The frequency received by the person as the ambulance approaches is expressed as:

$\overline{){{\mathbf{f}}}_{{\mathbf{o}}}{\mathbf{=}}{\mathbf{f}}\mathbf{\left(}\frac{{\mathbf{v}}_{\mathbf{w}}}{{\mathbf{v}}_{\mathbf{w}}\mathbf{-}{\mathbf{v}}_{\mathbf{s}}}\mathbf{\right)}}$

Converting 115 km/h

###### Problem Details

Suppose an oncoming ambulance moving at 115 km/h emits a steady 785-Hz sound from its siren.

What frequency, in Hz, is received by a person watching the oncoming ambulance? The speed of sound on this day is 345 m/s


text:
Studies of $W W$ and $W Z$ production and limits on anomalous $W W \gamma$ and $W W Z$ couplings

The collaboration
Phys.Rev.D 60 (1999) 072002, 1999.

Abstract (data abstract)
FNAL-COLLIDER. Limits on W W Z and W W GAMMA couplings from WW/WZ --& gt; E NU JET JET production.