I call it the "Logic Operator": 74LS181 ALU powered device for doing 8 bit logical functions and arithmetic reddit.com/gallery/mjw7js
πŸ‘︎ 687
πŸ’¬︎
πŸ‘€︎ u/TheRealProfB
πŸ“…︎ Apr 04 2021
🚨︎ report
Dynamic arithmetic function

Hi. I am lost in this.
I have a table with a string column for mathematics functions:
TABLE A.RULE = ' 0.1 * (VAL1 * 0.9 + VAL2) '

I need create a query for convert two fields to one using the user predefined rule.

Example:
SELECT d.PK, d.VAL1, d.VAL2, f.RULE, dbo.fGetRuleValue(f.RULE, d.VAL1, d.VAL2) AS RULE_VALUE
FROM dbo.TB_DATA d,
dbo.TB_FIELD f
WHERE d.FK_FIELD = f.PK_FIELD;

I try with exec('SELECT @.r = ' + @.RULE) or sys.SP_ExecuteSQL('SELECT @.r = ' + @.RULE), but functions dont can call stored procedures and dynamic procedures.

My procedure dont going to make INSERTS, DELETES, UPDATES, ALTERS, DROPS or CREATES in the database...

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Majinsei
πŸ“…︎ Apr 13 2021
🚨︎ report
Rebinding Arithmetic Functions

I'm continuing to read through the text of Software Design for Flexibility, but I'm using Racket instead of Scheme.

I've encountered the part where they rebind arithmetic operators.

(define - #| new definition ... |#)

but before doing that they are able to store the original value of -

(define n:- #| somehow look original value of '- up in the 'system-global-environment |#)

However, Racket does not seem to have system-global-environment bound.

What would be the equivalent?

EDIT: I found make-base-namespace and namespace-variable-value which seem to do the trick.

I am using them like so:

(define (base-binding sym)
  (namespace-variable-value sym #t #f (make-base-namespace)))
(define n:- (base-binding '-))
πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/chebertapps
πŸ“…︎ Mar 24 2021
🚨︎ report
[Group 5] My HL Math AA IA task 1 is due in a few days... My class covered Trigonometry, Complex numbers, Arithmetic and Geometric series, Probability (conditional, permutations, sets, bayes theorem, etc.), functions, and etc. Any ideas?
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/bebeboowee
πŸ“…︎ Feb 15 2021
🚨︎ report
I found a great method for cleaning and converting speaker measurements into useable FRD files, but I don't have Excel, which the method requires (link in body text). Can I do the same thing Bagby describe in REW using Trace Arithmetic functions?

How to Achieve Accurate In-Room Quasi-Anechoic Free-Field Frequency Response Measurements Down to 10 Hz by Jeff Bagby

I have the most recent version of REW (5.20) and all of my on/off axis and far/near field measurements (taken with REW and UMM-6). I'm just wondering if I can do the same thing in REW that Jeff describes with his FRD Response Blender and Minimum Phase Extractor. Bagby's software runs in Excel, but I don't have an active subscription.

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/twowaysplit
πŸ“…︎ Jan 03 2021
🚨︎ report
Prolog to Represent Arithmetic Functions

Hi, I’m very new to Prolog and because of COVID I’ve received basically no guidance in learning it. I’m also struggling to find recourses online so hopefully someone can help.

I’ve been given the program:

p(0,X,X).

p(s(Y),X,s(Z)) :- p(Y,X,Z).

We were told this used a representation of natural numbers that started with 0 and then used s(n) to represent the successor of n. And then asked to work out which arithmetic function this represents.

I’m still not really sure what it’s for and I can’t get the program to do anything useful despite trying for hours. Any help would really be appreciated.

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/xNegomi
πŸ“…︎ Dec 23 2020
🚨︎ report
Another Scheme Yielding a Representation of an Arithmetic Function - in This Case the Euler Ο•-Function -Through a Geometrical Construction: A Plot of the 'Thomae' Function
πŸ‘︎ 28
πŸ’¬︎
πŸ‘€︎ u/Ooudhi_Fyooms
πŸ“…︎ Nov 06 2020
🚨︎ report
Tutor services in calculus, linear optimization, linear algebra, vectors and matrices, Functions (Arithmetic and Composition), Trigonometry

For Exams and assignments in the said areas, contact me Discord: Cyprinus#3128 Email: cyprinuscarpio2019@gmail.com

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Much-Ingenuity
πŸ“…︎ Jan 14 2021
🚨︎ report
Simple scripting VM example (parser + bytecode) with strings, arithmetic, control flow (no functions (yet!)); nan-tagging and indirect-threading; based on "Crafting Interpreters" book; faster than PUC-Rio Lua and Node.js (JIT off) in arithmetic loop benchmark godbolt.org/z/5GbhnK
πŸ‘︎ 15
πŸ’¬︎
πŸ‘€︎ u/nikki93
πŸ“…︎ Sep 14 2020
🚨︎ report
Does anybody know what arithmetic function this logic gate performs?
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/MatthewJHeath
πŸ“…︎ Sep 06 2020
🚨︎ report
MySQL Tutorial Series for Beginners, Learn To Retrieve Data and Basics of MySQL, Master Data Sorting and Calculation, How to Work With Subqueries and Joins, Learn to Analyze Data With MySQL Functions and Master MySQL Operators (Logical, Set, & Arithmetic) youtube.com/playlist?list…
πŸ‘︎ 15
πŸ’¬︎
πŸ‘€︎ u/Reginald_Martin
πŸ“…︎ Sep 10 2020
🚨︎ report
Have you tried the arithmetic functions in Q&A?

it is pretty cool for a quick check, are you using it?

https://preview.redd.it/5o1psjngtfr51.png?width=1080&format=png&auto=webp&s=648c201a913910887f8dc9f51ee0cd97ddaec50b

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/HowToPowerBI
πŸ“…︎ Oct 06 2020
🚨︎ report
Having trouble with understanding the ALU, (my handwriting sucks). For an ALU to be considered an ALU does it have to have all these arithmetic functions plus whatever logic functions are required. Or can you make a simple ALU with a full adder that can subtract with an OR gate and call it a day?
πŸ‘︎ 132
πŸ’¬︎
πŸ‘€︎ u/XuOUT
πŸ“…︎ Dec 29 2019
🚨︎ report
Believing in (in-)consistency: "There are very few systems, of very low strength, that we know are consistent. Presburger arithmetic is complete and consistent ... but cannot even define the multiplication function β„• Γ— β„• β†’ β„•." thehighergeometer.wordpre…
πŸ‘︎ 227
πŸ’¬︎
πŸ‘€︎ u/flexibeast
πŸ“…︎ Jun 21 2019
🚨︎ report
If I did well on the Arithmetic and Quantitative Reasoning sections of the Accuplacer but did poorly on the Advanced Algebra and Functions section, how many classes would I place below the lowest college credit math class? And how long would it take to reach that base class?

So i'm gonna take my accuplacer (for William Paterson University) on the 28th of June and i've been studying for like 2 weeks now. I've done really well reviewing the first 2 sections constantly but now i'm getting through the last one and it has me pretty confused. I'm afraid that if I do poorly in that section i'll place in a remedial class far below the lowest credit college class and thus take longer to graduate (2024). Can yall also give me any ideas on what specific topics are in that last portion of the math test for those that took it? Thanks

πŸ‘︎ 2
πŸ’¬︎
πŸ“…︎ Jun 23 2020
🚨︎ report
[Modular arithmetic] How can i find a function for this set of data?

I'm trying to find a function for this data

 x | y 
-------
 1 | 1
 2 | 1
 3 | 2
 4 | 2
 5 | 3
 6 | 3
   |

... for all natural numbers

I've tried different arrangements of modulo terms, but I can't figure it out. I've tried y = x - x mod 2 and y = x - (x+1) mod x, and they each work for only some, but not all

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/pymatgen
πŸ“…︎ May 12 2020
🚨︎ report
Is there a website/app as elegant as Desmos that can plot vector valued functions in R3? Im in calc 3 atm and visuals help me learn way more than reading and studying arithmetic.
πŸ‘︎ 13
πŸ’¬︎
πŸ‘€︎ u/DTList000
πŸ“…︎ Feb 03 2020
🚨︎ report
Where are the arithmetic functions in Solidity? /r/solidity/comments/gogx…
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/spite77
πŸ“…︎ May 22 2020
🚨︎ report
10 Days of Javascript - Day One ( Hello World, Data types, Arithmetic operations, Functions) youtube.com/watch?v=zZVmG…
πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/davidkimolo
πŸ“…︎ Mar 22 2020
🚨︎ report
[ANN] micromath v1.0.0: fast, embedded-friendly approximation-based math library with support for basic arithmetic, trig functions, 2D/3D vector types, statistical analysis, and quaternions. Optimizes for speed and code size at the cost of precision

Announcing micromath 1.0:

  • github: https://github.com/neobirth/micromath
  • crates.io: https://crates.io/crates/micromath/1.0.0
  • docs: https://docs.rs/micromath/

Micromath now implements most of the standard library functions for f32 which are available in std but not core for all Rust targets with a focus on embedded.

In addition to that, it provides a number of other functions including trig, stats, and quaternions, with a strong emphasis for optimizing for speed and small code size at the cost of precision.

If you're okay with sqrt(2) = 1.5 (note: precision/error ranges are meticulously documented!) and working on things like embedded platforms where speed and small code size are a must and algorithms are generally forgiving of imprecision, this is the library for you!

WASM developers: this might also be up your alley!

πŸ‘︎ 100
πŸ’¬︎
πŸ‘€︎ u/bascule
πŸ“…︎ Dec 03 2019
🚨︎ report
Has any interesting result been proved about the arithmetic function G(n), the number of nonisomorphic finite groups of size n?

I know there's a simple closed form in terms of the prime factorization of n when we only conisder finite abelian groups. Have we at least proved any results about the asymptotic growth of this function?

πŸ‘︎ 28
πŸ’¬︎
πŸ“…︎ Jun 01 2019
🚨︎ report
80 Videos I made for grade 11 students in QLD, Australia. Topics are Arithmetic and Geometric Sequences, Intro to Functions, Counting and Probability, Index Laws. Hope somebody finds something useful in here. joelsperanza.com/mathemat…
πŸ‘︎ 16
πŸ’¬︎
πŸ‘€︎ u/FlippedteachingPD
πŸ“…︎ Dec 08 2019
🚨︎ report
TIL The functions of performing mental arithmetic and regulating our emotions are housed in the same part of the cerebral cortex, and the processes that support one also support the other; which is thought to be why practising mental arithmetic can prevent depression and anxiety. dana.org/News/Mental_Math…
πŸ‘︎ 424
πŸ’¬︎
πŸ“…︎ Nov 04 2017
🚨︎ report
Computing the Uncomputable: Joel David Hamkins showed how any function can be computed if a non-standard model of Peano arithmetic is assumed. (2016) johncarlosbaez.wordpress.…
πŸ‘︎ 26
πŸ’¬︎
πŸ‘€︎ u/Birch_Tree
πŸ“…︎ Apr 28 2019
🚨︎ report
Hey /r/math, do you know of any resources on arithmetic prime counting functions? Or maybe on transforming arithmetic functions into analytic ones?

I've been doing what research I can on Google scholar, but outside of University I'm a little limited on my access to academic journals. I am looking forward to posting some related results as soon as I know they aren't old news.

Edit: By "transforming arithmetic to analytic" I really mean rectifying the differences between them. Sorry for the poor phrasing.

Edit 2: Maybe someone with a background in Fourier analysis could help with the second question. Still looking.

πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/jma235
πŸ“…︎ Dec 10 2019
🚨︎ report
Our society shames all of our most basic functions from eating to shitting to even sex. It's like we live in a world of trigonometry where bringing up arithmetic is considered inappropriate.
πŸ‘︎ 184
πŸ’¬︎
πŸ‘€︎ u/jmd10of14
πŸ“…︎ Aug 05 2017
🚨︎ report
I have no clue what this is. I can do the arithmetic and get the right answer, but I don't even know what dr/dh is supposed to represent. The derivative of a cone? I don't what that means. I understand derivatives of functions, but this just leaves me dumbfounded. I need a visual, please help.
πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/anonspergers
πŸ“…︎ Jun 12 2019
🚨︎ report
Can any programming languages statically enforce that errors in arithmetic functions will never occur?

Understandably, most languages use runtime errors to handle operations such as integer division by zero or square root of a negative number (when returning a non-complex number) are attempted. (In C and C++, the situation is even worse. Fundamental arithmetic may incur undefined behavior, spoiling any guarantees about the behavior of a program, and there is no way to ensure that this has not happened.) This can be very burdensome for users determined to implement comprehensive error handling. They can either wrap all of these fundamental operations in error handling code or they can attempt to write code that will never incur these errors and pray that they got it right.

I wonder if any programming language can prevent these sort of errors at compile-time by enforcing that programmers write programs which the compiler can prove cannot incur these sorts of errors.

The closest thing I know of is C used with Frama-C. I'm not an expert user, but Frama-C has an associated language for specifying pre- and post-conditions embedded alongside C code in C comments which Frama-C can statically check.

The necessary logic for such a system would obviously be applicable beyond arithmetic, but arithmetic is a nice example of where this sort of feature would be useful. Arithmetic functions are often numerous and we often want arithmetic portions of code to be performant, which is hampered by error checking.

πŸ‘︎ 16
πŸ’¬︎
πŸ‘€︎ u/xPfG7pdvS8
πŸ“…︎ Jan 03 2018
🚨︎ report
C: Making a recusive function that takes an array and returns 1 if it's an arithmetic sequence.

So I need to make a function that takes an array (Not including the length of the array.), and returns 1 if it's an arithmetic sequence and 0 otherwise. Now the problem is, what's the terminating criteria of the recursion, if I don't know how many elements there are in the array, since when I plug in, I plug in just the array and not the amount of elements it has?

https://preview.redd.it/a88nephse4e21.png?width=645&format=png&auto=webp&s=a1e5ce8eee1d466a194d936a2ae3671a2ad166d8

That's what I tried to do, and that's the idea. But when do I stop?

So I succeeded, but how do I do it without entering the number of elements?

That's how I had done it when I can plug in the amount of elements.

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/mooshykid
πŸ“…︎ Feb 02 2019
🚨︎ report
Believing in (in-)consistency: "There are very few systems, of very low strength, that we know are consistent. Presburger arithmetic is complete and consistent ... but cannot even define the multiplication function β„• Γ— β„• β†’ β„•." thehighergeometer.wordpre…
πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/Chewbacta
πŸ“…︎ Jun 21 2019
🚨︎ report
Solving Modular Arithmetic Function

I haven't been able to determine if this problem has a name. I'm trying to come up with a formula to generate an output given 3 inputs f(X, Y, Z) which is related to modular arithmetic.

Is it possible to find a minimal solution for n that satisfies the below relationship. Not all inputs have a solution. I can iterate to solve the issue (i.e. checking all values of n from 0 -> Z-1), but I'm looking for a more efficient path.

( X + nY ) mod Z = 0

Examples:

f(2, 4, 7) = 3, because (2 + (3*4)) mod 7 = 0

f(1, 2, 5) = 2, because (1 + (2*2)) mod 5 = 0

f(3, 6, 8) has no solution for n.

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/bluemooseking
πŸ“…︎ Jun 10 2019
🚨︎ report
Windows Calculator goes open-source, using arbitrary-precision arithmetic for the simple stuff and Taylor series for roots and transcendental functions. arstechnica.com/gadgets/2…
πŸ‘︎ 18
πŸ’¬︎
πŸ‘€︎ u/lewisje
πŸ“…︎ Mar 08 2019
🚨︎ report
1940s mechanical computers could be explained to laymen - Navy film shows arithmetic and trig. functions implemented in steel, used to aim a moving ship's guns at moving targets eugeneleeslover.com/VIDEO…
πŸ‘︎ 288
πŸ’¬︎
πŸ‘€︎ u/StudiedUnderSinn
πŸ“…︎ Feb 13 2010
🚨︎ 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.