faker icon indicating copy to clipboard operation
faker copied to clipboard

Add new notations module for science

Open CoolPlayLin opened this issue 2 years ago • 7 comments

Clear and concise description of the problem

Add notations module to science so that we could use symbol to express units in science

Suggested solution

According to https://en.wikipedia.org/wiki/List_of_common_physics_notations

Alternative

No response

Additional context

No response

CoolPlayLin avatar Sep 23 '23 07:09 CoolPlayLin

Thank you for your feature proposal.

We marked it as "waiting for user interest" for now to gather some feedback from our community:

  • If you would like to see this feature be implemented, please react to the description with an up-vote (:+1:).
  • If you have a suggestion or want to point out some special cases that need to be considered, please leave a comment, so we are aware about them.

We would also like to hear about other community members' use cases for the feature to give us a better understanding of their potential implicit or explicit requirements.

We will start the implementation based on:

  • the number of votes (:+1:) and comments
  • the relevance for the ecosystem
  • availability of alternatives and workarounds
  • and the complexity of the requested feature

We do this because:

  • There are plenty of languages/countries out there and we would like to ensure that every method can cover all or almost all of them.
  • Every feature we add to faker has "costs" associated to it:
    • initial costs: design, implementation, reviews, documentation
    • running costs: awareness of the feature itself, more complex module structure, increased bundle size, more work during refactors

View more issues which are waiting for user interest

github-actions[bot] avatar Sep 23 '23 07:09 github-actions[bot]

What is the difference between this and faker.science.unit?

ST-DDT avatar Sep 23 '23 08:09 ST-DDT

@ST-DDT In science, unit is used to mean possessed by a physical quantity. notations is used to mean code of physical unit. For example, The formula of pressure is P = F / S. The P means pressure, F means force and S means square. Both they are notations instead of units. Anyway, the unit of F is Newton, P is Pascal, S can use meter, centmeter, kilometer and etc.

CoolPlayLin avatar Sep 23 '23 11:09 CoolPlayLin

i would call things like force, pressure, area "quantities" https://en.wikipedia.org/wiki/Physical_quantity - the notation is just the symbol.

matthewmayer avatar Sep 23 '23 11:09 matthewmayer

export interface Notation {
  /**
   * The long version of the notations (e.g. `work`).
   */
  name: string;
  /**
   * The short version/abbreviation of the notations (e.g. `w`)
   */
  symbol: string;
}

However, one notation can refer to more than one meaning.( e.g. uppercase C can refer capacitance, heat capacity and constant of integration ) I don't think this interface is good. Could you tell me how I modify it?😊

@matthewmayer

CoolPlayLin avatar Sep 24 '23 00:09 CoolPlayLin

I would wait for more upvotes. One of the reason to wait for 10+ upvotes is to get a variety of opinions over what use cases people might need this for. That informs making sensible naming decisions.

I don't use the science module in any of my projects, but if we can find 10 people who do over a few months, they'd have a much better idea of how to structure the api.

matthewmayer avatar Sep 24 '23 03:09 matthewmayer

i would call things like force, pressure, area "quantities" en.wikipedia.org/wiki/Physical_quantity - the notation is just the symbol.

I agree with this--- "notation" is too similar to "unit", so if we implement it, we should name this method "quantity".

ejcheng avatar Sep 24 '23 19:09 ejcheng