How to extract mathematical operators and digits from a string?

So up until now, I've used Convert.ToInt32 to make strings work as integers but this does not work for the following:

"-30,-3" I have no idea how to extract either of the numbers or get rid of the comma without hard coding. Let alone how to maintain the negative signs.

"g" - a .CharIsDigit() might work here? Although it may just leave an empty string which might still break the function I'm feeding it into

" 6 + 9 " a .Trim() would work for the spaces but how in the hootin heck do I preserve the operator?

"4a" God help me.

" 3 - 4 * 7 + 25" This is extra hard mode where you need to maintain the order of operations.

Thanks a million in advance for any help!

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/VoiceofRedditMkI
πŸ“…︎ Nov 11 2021
🚨︎ report
Can mathematical operators be used within the parameters of isinstance function?

I'm working on a FizzBuzz program. Here is my code:

for number in Range(1,101):

if isinstance(number/3, int):

print("Fizz")

else...

The program doesn't print anything. The task is to print "Fizz" for any number divisible by 3. Can mathematical operations be used within isinstance()? Please help!

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/No_Elephant_4469
πŸ“…︎ Nov 04 2021
🚨︎ report
⊞ MATHEMATICAL OPERATORS WINDOWS 11
πŸ‘︎ 70
πŸ’¬︎
πŸ‘€︎ u/Anarcheddon
πŸ“…︎ Jul 18 2021
🚨︎ report
≑ MATHEMATICAL OPERATOR MENU ICON
πŸ‘︎ 16
πŸ’¬︎
πŸ‘€︎ u/edderiofer
πŸ“…︎ Jun 26 2021
🚨︎ report
λ“œ HANGEUL Mathematical Operator Square Image of or Equal To
πŸ‘︎ 46
πŸ’¬︎
πŸ‘€︎ u/hkexper
πŸ“…︎ Jun 10 2021
🚨︎ report
Which is the most difficult mathematical topic, just as curiosity, I’ve seen most answers as β€œoperator algebra” and β€œalgebraic geometry” any other ideas?

It can also be new mathematical fields :)

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/Arkdoz
πŸ“…︎ Feb 13 2021
🚨︎ report
What’s the mathematical expression with the largest value that you can write with just just ten digits using each of the ten digits from 0 to 9 but also using operators (-, +, *, ^, !, /) if you have to use each operator once and only once?
πŸ‘︎ 32
πŸ’¬︎
πŸ“…︎ Apr 22 2020
🚨︎ report
Mathematical Metaphysics accommodates the existence of thought-forms and other abstract entities, such as ghosts, guides, angels, demons, and God: the global operator.

Title: Incessance PDF: https://www.academia.edu/39954020/Incessance_Incesancia_

Synopsis: A nihilistic young man loses his family and friends to illness and tragedy. This man, a symbolic logician, ingests cannabis in combination with San Pedro Cactus and begins to experience strangely coherent surrealistic visions ... and he narrates his experience in visceral yet theoretical detail, over 2 days. The result: the man realizes and understands that ghosts, angels, demons, and God reside in a twin-mental/grammatical realm adjoined to physical spacetime. These entities are abstract or grammatical but absolutely real and weighing in on this reality via our mental and memory systems. Abstract entities express themselves to physical organisms as thought-forms and memory-forms. This twin realm is a mathematically-substrated hyperspace called β€œtimespace”. It is so called because spacetime is spatially or object-oriented, whereas timespace is temporally or relationally/operationally-oriented.

πŸ‘︎ 21
πŸ’¬︎
πŸ“…︎ May 25 2020
🚨︎ report
Help with animating mathematical operations

What is the best and easiest way to animate mathematical operations? An example would be at the 16:00 minute mark of this video

I don't have any animation background, so im not sure if there is a simple adobe software i can use, or this can be done in something as basic as powerpoint and just utilizing transitions...

Thanks

Edit: for clarification, I’m talking about animating the manipulation of an equation, not the physical representation/meaning of the equation.

πŸ‘︎ 10
πŸ’¬︎
πŸ‘€︎ u/PhysicsAndFinance
πŸ“…︎ Jan 04 2022
🚨︎ report
Performance of expressions with lots of mathematical operators?

I am having trouble finding information on this. I am just curious if there is any drawback (other than readability) of single expressions with lots of mathematical operators? Is it compiled into equivalent machine code if I use temp variables to break it up? If there is a difference, how many operators is too many? The problem I am working on is computation-heavy, so simplifying the math isn't really an option.

πŸ‘︎ 6
πŸ’¬︎
πŸ“…︎ Sep 07 2020
🚨︎ report
The Swiss Flag but with other mathematical operations
πŸ‘︎ 1k
πŸ’¬︎
πŸ‘€︎ u/Tsjaad_Donderlul
πŸ“…︎ Oct 18 2021
🚨︎ report
Aspiring CNC operator/programmer seeking some supplemental advice.

Hello everyone! I'm currently in my first semester of my school's Machine Tool Technology program and very much interested in the metal removal industry. I'm a Motorcycle enthusiasts with high hopes of being able to modify and eventually produce my own aftermarket components (in my spare time of course).

.We've finished most of the introductory class room book-work and have been assigned our first few projects for us to complete by operating the manual lathes.....Boy!!! if it isn't the most satisfying yet unnerving (for me at least) thing to operate and watch these powerful machines do their thing!!!!

I'm getting the hang of it fairly well, but at the same time unrelentingly seeking my instructors advice and guidance through even the simplest of steps during the production of these assignments.

So my Question here is this: Can some of you more experienced machinists drop the location any additional helpful references/resources related to the craft ranging from the basics of precision manual machining with lathes, mills, etc. to the CNC stuff more widely used in today's world that i'll be getting to later next year? G Code? Personal knowledge and tips are welcome of course as well!

Also, a list of quality brand precision measuring tools/ other equipment you believe will be ESSENTIAL to landing a solid job once I've graduated and am thrown to the outside world. (that wont break my bank after college finishes doing just that)

Cheers! and stay safe out there guys :)

πŸ‘︎ 10
πŸ’¬︎
πŸ‘€︎ u/Warm_Mulligan
πŸ“…︎ Sep 07 2019
🚨︎ report
Trying to make a simple C code where user has to input a mathematical operator but not sure what's wrong

Newbie at C, have an assignment where I need to write a code in C where the user inputs two numbers and a mathematical operator and the program combines all of this together an provide the result. The thing is I'm trying to write an if statement but for some reason I can't write the symbol for division (/) in it, is there something I'm doing wrong?

code :

float num1,num2; char opsymbol;

printf("Enter the first number:"); scanf("%f",&num1);

printf("Enter the second number:"); scanf("%f",&num2);

printf("Enter an operator:\n"); scanf(" %c",&opsymbol);

if (num2=0, opsymbol=/) { printf("Error, divisor cannot be 0!"); }

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/shwegdow
πŸ“…︎ May 07 2020
🚨︎ report
Performing mathematical operations from XML data?

I want to simply perform the max - min difference from some data from XML. (Those who are <@type='LAST">).

&lt;SCORE max="1" min="0" mode="H" type="LAST"/&gt;
&lt;SCORE max="0" min="0" mode="H" type="LAST"/&gt;
&lt;SCORE max="1" min="0" mode="H" type="MID"/&gt;

One way , isΒ  to get the data into a list and work with the list, however, I would like to know how would be possible without it.

πŸ‘︎ 18
πŸ’¬︎
πŸ‘€︎ u/Bloubloum
πŸ“…︎ Nov 26 2021
🚨︎ report
ELI5: How do computers running mathematical operations "know" what addition, subtraction, etc. is?

For instance, I could type "5 + 2" into a calculator and it would return the number 7. But how would the programmer of that calculator "explain" the concept of addition to the calculator in the first place, so that it can perform the intended operation?

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/Pictocheat
πŸ“…︎ Dec 15 2021
🚨︎ report
"Human bodies are not only locally-layered biological systems, but indeed, are also syntactically superposed quantum field-operators which act as hybrid attractors of scientific and mathematical levels of causality. " Metaphysical novel, maybe some of you might like it. academia.edu/39954020/Inc…
πŸ‘︎ 81
πŸ’¬︎
πŸ‘€︎ u/Di_le
πŸ“…︎ Jan 13 2020
🚨︎ report
TIL that most mathematical symbols are invented not arbitrarily, but to fulfill one of the following roles: constants, variables, delimiters, operators, relational symbols and notational symbols mathvault.ca/hub/higher-m…
πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/miaumee
πŸ“…︎ Jul 21 2020
🚨︎ report
Army RTO or "radio operator" here to offer /r/battlefield3 some practical suggestions for effective in-game communication based on lessons from "RTO school" and my personal experiences playing bf3. Feel free to skip to TL;DR. [supplemental videos, and links included]

r/battlefield3, I am an RTO in the army, who is completing AIT or my technical training for radio communications. /u/bklingaman commented on a comment I left on a self-post made by /u/dafuq0_0 regarding new was to communicate in battlefield asking me for suggestions on effective communication. I decided to share with all of you some really practical techniques for comms in the game that are based on my personal experience playing with my army buddies on a regular basis and from what I've learned in A-school. feel free to skip to the TL;DR at any point

  • first off, stop referring to objectives as "D" and "C". From here on out they ought to be known to you as "Delta" and "Charlie" etc.

  • Secondly, rather than letting the squad leader be the random guy who happens to get into the squad first. Make a conscious designation of who will run the squad and put him in the real position of leadership with the agreement that until he begins to fuck up, you will follow his direction and orders at all times no matter what if only for the sake of combat efficiency and prevention of hesitation when time available to react is critical. If he fucks up too much that map, take a vote at the end of the map and decide if someone else should take a crack at it on the next map. If you get "voted off the island", be humble step down, and try somebody else's brand. This method will help to identify the strong leader who can think the fastest. This will free up those following him to focus on the most immediate threats, and will allow him to exert a more strategic or tactical approach to your squads movements throughout the battlefield. Keep the squad leader away from the point of the element so that his perspective of the battlefield is more "global" and he can see threats in the order that they present themselves not necessarily in the order that they pose a danger to your Squad's survival, that is for the squad members to worry about. Personally, I like being a follower, the shooter and the reflexive point man, I like running the MAV in support of the leader of my squad in a HC-no map server and getting my guys through the shit doing MY DESIGNATED job, whatever it may be.

  • Thirdly, you and your buddies need to begin memorizing the cardinal directions of every map yall play regularly if not all the maps. This may seem tedious but YOU WOULD NOT BELIEVE how much easier it will be to call out targets

... keep reading on reddit ➑

πŸ‘︎ 219
πŸ’¬︎
πŸ‘€︎ u/dguv22
πŸ“…︎ Mar 20 2013
🚨︎ report
Add a mathematical operation as an column to a vector

Hi I have a h/w exercise for my uni. What I want is to add as a column a mathematical operation to a matrix for instance A=(1:4) B=(2:5) C= A .*B +A(1)*B(2) what I want is to multiply each element of the matrixes and add an extra column with the product of A(1)*B(2) so the final result would be C= 2 6 12 20 3 and not adding A(1)*B(2) in every column. How can I do that?

πŸ‘︎ 2
πŸ’¬︎
πŸ“…︎ Dec 28 2021
🚨︎ report
The Nature Of The Mathematical Universe: Did Bounded Linear Operators Exist In The Time Of Dinosaurs? billwadge.wordpress.com/2…
πŸ‘︎ 10
πŸ’¬︎
πŸ‘€︎ u/mystikaldanger
πŸ“…︎ May 03 2019
🚨︎ report
Is the mathematical operation between two DISTINCT irrational numbers always an irrational number ?

I looked this question up on brainly - Link here and someone has given an example of :

[2 + sqrt(2)] - [-2 + sqrt(2)] = 4

But here 2 is not an irrational number. The OP there is combining rational and irrational number to support their proof.

Is there a case where, two distinct purely irrational numbers can yield a rational number ?

Eg: sqrt(2) * sqrt(3)

πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/t_Denhops
πŸ“…︎ Oct 30 2021
🚨︎ report
Overloading mathematical operators in elisp (2017) kitchingroup.cheme.cmu.ed…
πŸ‘︎ 24
πŸ’¬︎
πŸ‘€︎ u/agumonkey
πŸ“…︎ Nov 05 2018
🚨︎ report
Is it possible to switch from the Series 1515 (Operations Research) to the Series 1530 (Statistics) or 1529 (Mathematical Statistics)? I will be GS-12 in a few months.

My undergraduate studies were in pure mathematics. I use and study R every day. I am considering to enroll in a master's degree in applied statistics with R, and/or a master's degree in machine learning with R. However, if I cannot switch to the Series 1530 (Statistics) or 1529 (Mathematical Statistics) , self-study sounds more flexible and inexpensive. I do R programming all the time, but not sure if that would be enough. In the 1515 series, Operations Research, we work with many programming languages, and I am love it, but I am considering to switch just to specialize in something.

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/pavaobjazevic2
πŸ“…︎ Dec 03 2021
🚨︎ report
I have just discovered the nightmare of the syntax of mathematical operators. What is going on here?

Specifically with words "plus," "minus," as there seems to be quite the debate about whether they are prepositions or conjunctions. Is it possible for them to fill both roles? It seems to fit well as a conjunction if you equate it with "and:"

One and two is three. One plus two is three.

But it also seems to work as a prepositional phrase equal to "added to."

One added to two is three. One plus two is three.

As a native speaker, the second variant seems a bit unnatural, as it forces me to think about the operation kind of backwards from now I would normally processes it.

I welcome any thoughts, argument, and resources on the topic!

πŸ‘︎ 28
πŸ’¬︎
πŸ‘€︎ u/swing_out
πŸ“…︎ Aug 22 2018
🚨︎ report
All fiat currencies are collapsing, as mathematically inescapable. Master operators of national banks and/or treasuries, to remain viable in the aftermath, must amass gold and silver. Answer this poll.

As a master operator who must amass gold and silver to be ready for the next financial era, what must you ensure before the collapse.

Your answer will reflect if you play poker and understand the tells of the historic event unfolding right before our eyes.

View Poll

πŸ‘︎ 44
πŸ’¬︎
πŸ‘€︎ u/9x4x1
πŸ“…︎ Nov 26 2021
🚨︎ report
Reverse Polish notation (RPN) is a mathematical notation in which every operator follows all of its operands, in contrast to Polish notation (PN), which puts the operator before its operands. en.wikipedia.org/wiki/Rev…
πŸ‘︎ 146
πŸ’¬︎
πŸ‘€︎ u/sverdrupian
πŸ“…︎ Dec 22 2016
🚨︎ report
How to compare resource usage between mathematical operations in Verilog?

So I just finished a screening test for an FPGA engineering internship on hackerrank. It was pretty easy; half of it was just basic digital logic stuff like "find the output of this circuit given these inputs" or "What is the minimum number of logic gates required to implement this function", stuff like that.

There was a solid chunk where I had to analyze some simple modules, and I don't think I did too well on 2 questions.

On of them asked me to order these operations in order from least resource usage to most, assuming Z and X are 32 bit unsigned integers:

Z &lt;= X + 1
Z &lt;= X / 3
Z &lt;= X / 8
Z &lt;= X * 8
Z &lt;= X % 8
Z &lt;= X + 128
Z &lt;= X + 121

I should clarify, there was a group of questions and these were some of the operations included.

For operations where I had to choose between adding a number that's a power of 2 and multiplying a power of 2 (like Z <= X * 8 vs Z <= X + 128) I put the multiplication down as less resources, since that would just entail shifting bits left 3 bits in this case. Not entirely sure how addition is done in the RTL (I always see a circle with a plus in it in the schematic, but that doesn't mean much to me. Does it just infer an adder or something?)

Anyway, is there a good way of ordering these by resource usage/ I think I'm right with my thoughts of multiplying and dividing by a power of 2 being very resource-friendly, but I don't know about the resource usage of addition and subtraction, or modulus. Let along how the operations compare when one of the operands isn't a clean power of 2.

In another problem, I was given a simple 3-state state machine, and asked how many registers (I always thought of a register as a grouping of flip flops that represents one signal, either one or multiple bits wide, but it seemed to mean flip flops in this test) are used in 1-hot, binary, and gray encoding. Think I got those right, but I was also asked

"which encoding reduces the amount of logic prior to signal x?". I can't remember exactly what it was, but it was asking something about how the encoding used for the state machine states influences something about an output signal that goes high in one state. I didn't see any correlation, so i don't think I got that part right.

The rest of the test went very well, and I still expect to get an interview. But, I'd like to know how to solve these problems in the future.

Thanks for any help

πŸ‘︎ 14
πŸ’¬︎
πŸ‘€︎ u/turkishjedi21
πŸ“…︎ Sep 22 2021
🚨︎ report
[Round 52262] Using mathematical operators, solve each of these problems.
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/atoms12123
πŸ“…︎ Sep 08 2018
🚨︎ report
With this supplement, any Dungeon Master can overcome the tedium of cross-country travel. No more clunky conversions from previous editions! No more complex mathematical calculations! The end result will be a truly engaging and wild experience! kickstarter.com/projects/…
πŸ‘︎ 55
πŸ’¬︎
πŸ‘€︎ u/take5man
πŸ“…︎ May 12 2021
🚨︎ report
(x-post /r/battlefield3/) Army RTO or "radio operator" here to offer /r/battlefield3 some practical suggestions for effective in-game communication based on lessons from "RTO school" and my personal experiences playing bf3. Feel free to skip to TL;DR. [supplemental videos, and links included] reddit.com/r/battlefield3…
πŸ‘︎ 20
πŸ’¬︎
πŸ‘€︎ u/kuroyume_cl
πŸ“…︎ Mar 20 2013
🚨︎ report
Alexa misunderstanding mathematical operations??

Hi all,

Been using Alexa a lot to run quick calculations for cooking and other things like percentage of something of X divided by Y.

Lately, she's gone completely nuts. I ask her "6 divided by 5" and she replies "sorry, I did not get that. 526 divided by what?" Or "Alexa, 10 percent of 20?" And she replies "10% of 2,020 is 202". Like, I'm 100% sure I'm asking the right questions, she never did this before. Why is she COMPLETELY misunderstanding the numbers I'm telling her?

I tried rebooting it but still not working. What the hell is happening??

πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/Apobec88
πŸ“…︎ Oct 21 2021
🚨︎ report
Mark Rosewater wants to hear from the community: Which non-Masters supplemental set release [is your] favorite (i.e. Battlebond, Planechase, Modern Horizons)? markrosewater.tumblr.com/…
πŸ‘︎ 124
πŸ’¬︎
πŸ‘€︎ u/HonorBasquiat
πŸ“…︎ Jan 10 2022
🚨︎ report
Change mathematical operator in VBA code based on Textbox.Value

I have a snippet of code that looks like this:

PriceReference(1) * ThisWorkbook.Sheets("Sheet1").Range("A1")

However, I would like to change this so that the mathematical operator (*) is changed to whatever is entered in a Textbox in a userform, thus making the operator selectable based on what the user wants (+, -, /, *). Something like below, but instead of Textbox1.Value it would assume whichever operator the user selects.

PriceReference(1) Textbox1.Value ThisWorkbook.Sheets("Sheet1").Range("A1")

How do I go about doing this?

πŸ‘︎ 9
πŸ’¬︎
πŸ‘€︎ u/pccninja
πŸ“…︎ Dec 17 2018
🚨︎ report
TIL that there is a higher mathematical operator than the exponent called Knuth's up-arrow notation. It is expressed using a double up arrow. 10^^3 expresses a number one followed by ten billion zeroes. en.wikipedia.org/wiki/Knu…
πŸ‘︎ 53
πŸ’¬︎
πŸ‘€︎ u/El-Doctoro
πŸ“…︎ Oct 20 2016
🚨︎ report
Even thoigh multiplying and dividing are probably the most common mathematical operators, most keyboards don't have proper characters for them. Yet almost all keyboards still have a scroll lock.
πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/1t35
πŸ“…︎ Jun 07 2018
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.